studyStudent.vue 841 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296
  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"
  178. alt=""
  179. />
  180. </div>
  181. </div>
  182. <div
  183. v-if="nav.tool[0].tool != undefined"
  184. class="toolChild"
  185. :class="{ toolActive: nav.isOpen }"
  186. >
  187. <div v-for="(t, toolIndex) in nav.tool" :key="toolIndex">
  188. <div
  189. class="gjCss"
  190. :class="{ isGjCss: t.isTool }"
  191. @click="jumpGj(stageIndex, navIndex, toolIndex, nav.id)"
  192. >
  193. <div>工具{{ toolIndex + 1 }}:</div>
  194. <div v-if="t.tool == 58">模拟驾驶</div>
  195. <div v-if="t.tool == 59">路径搜索</div>
  196. <div v-if="t.tool == 60">深度学习</div>
  197. <div v-if="t.tool == 10">倒计时</div>
  198. <div v-if="t.tool == 65">挑人</div>
  199. <div v-if="t.tool == 7">思维网格</div>
  200. <div v-if="t.tool == 1">电子白板</div>
  201. <div v-if="t.tool == 52">文档</div>
  202. <div v-if="t.tool == 3">思维导图</div>
  203. <div v-if="t.tool == 48">表格</div>
  204. <div v-if="t.tool == 49">学生分组</div>
  205. <div v-if="t.tool == 4">问卷调查</div>
  206. <div v-if="t.tool == 45">选择题</div>
  207. <div v-if="t.tool == 15">问答</div>
  208. <div v-if="t.tool == 16">作业提交</div>
  209. <div v-if="t.tool == 50">批量上传</div>
  210. <div v-if="t.tool == 41">选择匹配</div>
  211. <div v-if="t.tool == 47">排序</div>
  212. <div v-if="t.tool == 40">个人评价</div>
  213. <div v-if="t.tool == 18">训练平台</div>
  214. <div v-if="t.tool == 21">AIoT Blockly</div>
  215. <div v-if="t.tool == 23">AI Python</div>
  216. <div v-if="t.tool == 24">AI Blockly</div>
  217. <div v-if="t.tool == 32">源码编辑</div>
  218. <div v-if="t.tool == 57">CocoPi</div>
  219. <div v-if="t.tool == 63">海龟编程</div>
  220. <div v-if="t.tool == 28">翻译</div>
  221. <div v-if="t.tool == 31">数字画板</div>
  222. <div v-if="t.tool == 39">GeoGebra</div>
  223. <div v-if="t.tool == 66">公式编辑</div>
  224. <div v-if="t.tool == 67">分子结构</div>
  225. <div v-if="t.tool == 68">时间轴</div>
  226. <div v-if="t.tool == 69">英语写作</div>
  227. <div v-if="t.tool == 70">英语口语</div>
  228. <div v-if="t.tool == 25">目标管理</div>
  229. <div v-if="t.tool == 26">课程设计</div>
  230. <div v-if="t.tool == 62">交互视频</div>
  231. <div v-if="t.tool == 71">AI智能体</div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. <!-- :class="{ navLeftCss: !mlDialog }" -->
  241. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  242. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  243. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 47px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 18px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  244. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) && !['2'].includes(tType) ? '100%' : 'calc(100% - 745px)'}">
  245. <div>任务{{ taskCount + 1 }}</div>
  246. <el-tooltip
  247. effect="light"
  248. :content="
  249. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  250. "
  251. placement="top"
  252. >
  253. <div>
  254. {{
  255. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  256. .task
  257. }}
  258. </div>
  259. </el-tooltip>
  260. </div>
  261. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid) || ['2'].includes(tType)"><!--v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'"-->
  262. <div class="btnLeft">
  263. <el-tooltip effect="light" content="刷新" placement="top">
  264. <div class="reBtnIcon" @click="refreshCourse">
  265. <span>刷新</span>
  266. </div>
  267. </el-tooltip>
  268. <el-tooltip effect="light" content="评论" placement="top">
  269. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  270. <span>评论</span>
  271. </div>
  272. </el-tooltip>
  273. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  274. <el-tooltip effect="light" content="录制" placement="top">
  275. <div class="vedioIcon" @click="startRecording">
  276. <span>录制</span>
  277. </div>
  278. </el-tooltip>
  279. </div>
  280. <div v-else-if="tType == 1 || tType == 4">
  281. <el-tooltip effect="light" content="下载" placement="top">
  282. <div class="vedioIcon1" @click="stopRecording">
  283. <span>下载</span>
  284. </div>
  285. </el-tooltip>
  286. </div>
  287. </div>
  288. <div class="btnRight">
  289. <div
  290. class="last"
  291. @click="nextOrpreSteps(0)"
  292. v-if="!(IsFollow && tType == 2)"
  293. @mouseover="isHovered = true"
  294. @mouseout="isHovered = false"
  295. >
  296. <div class="lastImg">
  297. <img
  298. :src="
  299. isHovered
  300. ? require('../assets/icon/newIcons/whiteLast.png')
  301. : require('../assets/icon/newIcons/last.png')
  302. "
  303. alt=""
  304. />
  305. </div>
  306. <div class="lastText">上一步</div>
  307. </div>
  308. <div
  309. class="last"
  310. @click="nextOrpreSteps(1)"
  311. v-if="!(IsFollow && tType == 2)"
  312. @mouseover="isHovered1 = true"
  313. @mouseout="isHovered1 = false"
  314. >
  315. <div class="lastText">下一步</div>
  316. <div class="lastImg">
  317. <img
  318. :src="
  319. isHovered1
  320. ? require('../assets/icon/newIcons/whiteNext.png')
  321. : require('../assets/icon/newIcons/next.png')
  322. "
  323. alt=""
  324. />
  325. </div>
  326. </div>
  327. <div
  328. class="last"
  329. @click="juriVisible = true"
  330. v-if="tType == 1"
  331. @mouseover="isHovered2 = true"
  332. @mouseout="isHovered2 = false"
  333. >
  334. <div class="lastImg">
  335. <img
  336. :src="
  337. isHovered2
  338. ? require('../assets/icon/newIcons/whiteLock.png')
  339. : require('../assets/icon/newIcons/lock.png')
  340. "
  341. alt=""
  342. />
  343. </div>
  344. <div class="lastText">权限</div>
  345. </div>
  346. <div
  347. class="returnBtn1 returnIcon"
  348. @click.stop="
  349. goTo(
  350. '/courseDetail?userid=' +
  351. userid +
  352. '&oid=' +
  353. oid +
  354. '&org=' +
  355. org +
  356. '&cid=' +
  357. classId +
  358. '&courseId=' +
  359. id +
  360. '&tType=' +
  361. tType +
  362. '&screenType=' +
  363. screenType
  364. )
  365. "
  366. >
  367. <div class="lastImg">
  368. <img src="../assets/icon/newIcon/return.png" alt="" />
  369. </div>
  370. <div class="lastText" style="color: #000">返回</div>
  371. </div>
  372. </div>
  373. <!-- <div
  374. class="returnBtn lockIcon"
  375. @click="juriVisible = true"
  376. v-if="tType == 1"
  377. >
  378. 权限
  379. </div>
  380. <div
  381. class="returnBtn vedioIcon"
  382. @click="startRecording"
  383. v-if="!videoStart && (tType == 1 || tType == 4)"
  384. >
  385. 录制
  386. </div>
  387. <div
  388. class="returnBtn"
  389. @click="stopRecording"
  390. v-else-if="tType == 1 || tType == 4"
  391. style="background: #ee5255"
  392. >
  393. 下载
  394. </div>
  395. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  396. 评论
  397. </div>
  398. <div
  399. class="returnBtn"
  400. @click="nextOrpreSteps(0)"
  401. v-if="!(IsFollow && tType == 2)"
  402. >
  403. 上一步
  404. </div>
  405. <div
  406. class="returnBtn"
  407. @click="nextOrpreSteps(1)"
  408. v-if="!(IsFollow && tType == 2)"
  409. >
  410. 下一步
  411. </div>
  412. <div class="returnBtn" @click="refreshCourse">刷新</div>
  413. <div
  414. class="returnBtn returnIcon"
  415. @click.stop="
  416. goTo(
  417. '/courseDetail?userid=' +
  418. userid +
  419. '&oid=' +
  420. oid +
  421. '&org=' +
  422. org +
  423. '&cid=' +
  424. classId +
  425. '&courseId=' +
  426. id +
  427. '&tType=' +
  428. tType +
  429. '&screenType=' +
  430. screenType
  431. )
  432. "
  433. >
  434. 返回
  435. </div> -->
  436. </div>
  437. </div>
  438. <div
  439. class="isNoMessage"
  440. v-if="
  441. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  442. .chapterData.length == 0 &&
  443. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  444. .toolChoose[0].tool.length == 0 &&
  445. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .taskDetail == '' &&
  447. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .eList &&
  449. !(
  450. courseDetail.userid == userid ||
  451. (courseDetail.course_teacher &&
  452. courseDetail.course_teacher.indexOf(userid) != -1)
  453. )
  454. "
  455. >
  456. <img src="../assets/icon/isNoMessage.png" alt />
  457. </div>
  458. <div class="study_top" :class="{ pzClass: pzDialog }">
  459. <div
  460. class="vedioBox"
  461. v-if="
  462. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  463. .taskDetail != '' ||
  464. vChapterData[taskCount].length > 0 ||
  465. fileC[taskCount].length > 0
  466. "
  467. style="border-radius: 0 0 20px 20px"
  468. >
  469. <div
  470. class="taskBox"
  471. v-if="
  472. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  473. .taskDetail != ''
  474. "
  475. >
  476. <div
  477. style="
  478. display: flex;
  479. flex-wrap: nowrap;
  480. flex-direction: column;
  481. position: relative;
  482. "
  483. >
  484. <div
  485. style="
  486. padding: 15px 0;
  487. line-height: 29px;
  488. font-size: 18px;
  489. color: #0e1e33;
  490. "
  491. class="cont"
  492. v-if="
  493. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  494. .taskDetail != ''
  495. "
  496. v-html="
  497. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  498. .taskDetail
  499. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  500. taskCount
  501. ].taskDetail
  502. : '暂无描述'
  503. "
  504. ></div>
  505. </div>
  506. </div>
  507. <div
  508. class="student_head"
  509. v-if="
  510. vChapterData[taskCount].length > 0 ||
  511. fileC[taskCount].length > 0
  512. "
  513. >
  514. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  515. <div
  516. :class="
  517. contentDialog == false
  518. ? 'box_course isContentCss'
  519. : 'box_course'
  520. "
  521. v-if="
  522. vChapterData.length > 0 &&
  523. vChapterData[taskCount] &&
  524. showType !== ''
  525. "
  526. >
  527. <div class="wheel" style="height: auto" v-if="showType === 0">
  528. <div
  529. class="workd_media"
  530. style="height: 650px; width: calc(100% - 50px)"
  531. >
  532. <video-player
  533. class="video-player vjs-custom-skin"
  534. :class="contentDialog == false ? 'isAllWidth' : ''"
  535. :playsinline="true"
  536. :options="playerO[taskCount]"
  537. @play="onPlayerPlay($event)"
  538. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  539. ></video-player>
  540. </div>
  541. </div>
  542. <div
  543. class="wheel"
  544. v-if="showType == 1"
  545. style="
  546. box-shadow: 0 0 6px 1px #f2f2f2;
  547. width: 95%;
  548. margin: 0 auto;
  549. background: #f1f1f1;
  550. "
  551. >
  552. <div class="title">查看文档</div>
  553. <el-form class="textBox">
  554. <el-form-item class="textTitle">
  555. <div style="font-size: 22px">
  556. {{ text.name }}
  557. </div>
  558. </el-form-item>
  559. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  560. <div v-html="text.url" class="textContent cont"></div>
  561. </el-form>
  562. </div>
  563. <div
  564. class="wheel"
  565. v-if="
  566. pptImgUrl1.indexOf(
  567. 'https://view.officeapps.live.com/op/view.aspx?src='
  568. ) != -1 && showType == 2
  569. "
  570. style="width: 95%; margin: 0 auto"
  571. >
  572. <iframe
  573. style="width: 100%; height: 100%; border: none"
  574. :src="pptImgUrl1"
  575. ></iframe>
  576. </div>
  577. <div
  578. class="wheel"
  579. v-else-if="showType == 2"
  580. style="width: 95%; margin: 0 auto"
  581. >
  582. <iframe
  583. style="width: 100%; height: 100%; border: none"
  584. security="restricted"
  585. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  586. :src="pptImgUrl1"
  587. ></iframe>
  588. </div>
  589. <div
  590. class="wheel"
  591. v-if="showType == 3"
  592. style="width: 95%; margin: 0 auto"
  593. >
  594. <pdf
  595. :pdfUrl="pptImgUrl1"
  596. style="width: 100%; height: 100%; overflow: auto"
  597. ></pdf>
  598. </div>
  599. <div
  600. class="wheel"
  601. v-if="showType == 4"
  602. style="width: 95%; margin: 0 auto"
  603. >
  604. <el-image
  605. :src="pptImgUrl1"
  606. fit="contain"
  607. style="width: 100%; height: 100%; cursor: pointer"
  608. @click="previewImg(pptImgUrl1)"
  609. ></el-image>
  610. </div>
  611. </div>
  612. <div
  613. class="pButton"
  614. style="position: absolute; right: 20px; top: 0; z-index: 998"
  615. v-if="!contentDialog"
  616. @click="setContent(true)"
  617. >
  618. <!-- 批 -->
  619. <img
  620. src="../assets/icon/newIcons/isLeft.png"
  621. style="width: 45px"
  622. alt=""
  623. />
  624. </div>
  625. <div
  626. v-if="contentDialog == true"
  627. :style="{
  628. width:
  629. (vChapterData[taskCount].length > 0 ||
  630. fileC[taskCount].length > 0) &&
  631. showType === ''
  632. ? 'calc(100%)'
  633. : '300px',
  634. margin:
  635. (vChapterData[taskCount].length > 0 ||
  636. fileC[taskCount].length > 0) &&
  637. showType === ''
  638. ? '0 15px'
  639. : '0 15px 0 0',
  640. }"
  641. >
  642. <div
  643. class="vedioList"
  644. v-if="
  645. vChapterData[taskCount].length > 0 ||
  646. fileC[taskCount].length > 0
  647. "
  648. style="height: 650px"
  649. >
  650. <div class="navCorOpenBox">
  651. <div class="navTitile">内容列表:</div>
  652. <div class="navCorOpen" @click="setContent(false)">
  653. <img src="../assets/icon/newIcons/isRight.png" alt="" />
  654. </div>
  655. </div>
  656. <div class="navBox">
  657. <div
  658. v-show="
  659. vChapterData[taskCount].length > 0 ||
  660. fileC[taskCount].length > 0
  661. "
  662. style="padding: 10px 0 25px 0"
  663. >
  664. <div
  665. class="vedioTimeBox"
  666. v-for="(vitem, vindex) in vChapterData[taskCount]"
  667. :key="vindex + '1'"
  668. >
  669. <div class="navListItem" v-if="vitem.type == 2">
  670. <div
  671. @click="lookVedio(vitem.url, vindex)"
  672. class="navText"
  673. :class="isClickNav == vindex ? 'isClickNav' : ''"
  674. >
  675. <span v-if="vitem.text">{{ vitem.text }}-</span
  676. >{{ vitem.name }}
  677. </div>
  678. <div class="downIcon" @click="downloadFile2(vitem)">
  679. <img src="../assets/icon/newIcon/down.png" alt />
  680. </div>
  681. </div>
  682. <div class="navListItem" v-if="vitem.type == 6">
  683. <div
  684. @click="lookText(taskCount, vindex)"
  685. class="navText"
  686. :class="isClickNav == vindex ? 'isClickNav' : ''"
  687. >
  688. {{ vitem.name }}.doc
  689. </div>
  690. <div
  691. class="downIcon"
  692. @click="checkFileFull1(vitem.type, vitem)"
  693. >
  694. <img
  695. src="../assets/icon/newIcon/allScreen.png"
  696. alt
  697. />
  698. </div>
  699. </div>
  700. <div
  701. class="navListItem"
  702. v-if="vitem.type == 8 || vitem.type == 14"
  703. >
  704. <div
  705. @click="doUrl(vitem.url, vindex)"
  706. class="navText"
  707. :class="isClickNav == vindex ? 'isClickNav' : ''"
  708. >
  709. {{ vitem.title ? vitem.title : vitem.url }}
  710. </div>
  711. <div
  712. class="downIcon"
  713. @click="checkFileFull1(vitem.type, vitem)"
  714. >
  715. <img
  716. src="../assets/icon/newIcon/allScreen.png"
  717. alt
  718. />
  719. </div>
  720. </div>
  721. <div class="navListItem" v-if="vitem.type == 3">
  722. <div
  723. @click="downFile(vitem, vindex)"
  724. class="navText"
  725. :class="isClickNav == vindex ? 'isClickNav' : ''"
  726. >
  727. <span v-if="vitem.text">{{ vitem.text }}-</span
  728. >{{ vitem.name }}
  729. </div>
  730. <div
  731. class="downIcon"
  732. @click="checkFileFull1(vitem.type, vitem)"
  733. >
  734. <img
  735. src="../assets/icon/newIcon/allScreen.png"
  736. alt
  737. />
  738. </div>
  739. <div class="downIcon" @click="downloadFile2(vitem)">
  740. <img src="../assets/icon/newIcon/down.png" alt />
  741. </div>
  742. </div>
  743. <div class="navListItem" v-if="vitem.type == 12">
  744. <div class="navText" @click="downloadFile2(vitem)">
  745. <span v-if="vitem.text">{{ vitem.text }}-</span
  746. >{{ vitem.name }}
  747. </div>
  748. <div
  749. class="downIcon"
  750. @click="checkFileFull1(vitem.type, vitem)"
  751. >
  752. <img
  753. src="../assets/icon/newIcon/allScreen.png"
  754. alt
  755. />
  756. </div>
  757. <div class="downIcon" @click="downloadFile2(vitem)">
  758. <img src="../assets/icon/newIcon/down.png" alt />
  759. </div>
  760. </div>
  761. <div class="navListItem" v-if="vitem.type == 13">
  762. <div
  763. class="navText"
  764. @click="checkPhoto(vitem, vindex)"
  765. :class="isClickNav == vindex ? 'isClickNav' : ''"
  766. >
  767. {{ vitem.name }}
  768. </div>
  769. <div class="downIcon" @click="downloadFile2(vitem)">
  770. <img src="../assets/icon/newIcon/down.png" alt />
  771. </div>
  772. </div>
  773. </div>
  774. <div
  775. class="fileC_box"
  776. v-if="fileC[taskCount].length > 0"
  777. >
  778. <div class="fileC_title">以下文件不支持预览</div>
  779. <div
  780. class="vedioTimeBox"
  781. v-for="(vitem, vindex) in fileC[taskCount]"
  782. :key="vindex + '1'"
  783. >
  784. <div class="navListItem" v-if="vitem.type == 12">
  785. <div class="navText" style="color: #acb4bf">
  786. <span v-if="vitem.text">{{ vitem.text }}-</span
  787. >{{ vitem.name }}
  788. </div>
  789. <div
  790. class="downIcon"
  791. @click="downloadFile2(vitem)"
  792. >
  793. <img
  794. src="../assets/icon/newIcon/down.png"
  795. alt
  796. />
  797. </div>
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. </div>
  805. </div>
  806. <div style="width: calc(100% - 315px)">
  807. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  808. <!-- <el-button
  809. type="primary"
  810. class="newButton"
  811. @click="checkFileFull(showType, pptImgUrl1)"
  812. >全屏查看</el-button
  813. >
  814. <el-button
  815. type="primary"
  816. class="newButton"
  817. @click="downloadFile(pptImgUrl1)"
  818. v-if="showType != 2"
  819. >文件下载</el-button
  820. > -->
  821. <el-button
  822. class="newButton"
  823. v-if="
  824. showType == 2 &&
  825. pptImgUrl1.indexOf(
  826. 'https://view.officeapps.live.com/op/view.aspx?src='
  827. ) == -1
  828. "
  829. type="primary"
  830. @click="openLine(pptImgUrl1)"
  831. >打开链接
  832. </el-button>
  833. </div>
  834. <!-- <div
  835. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  836. v-if="showType == 1"
  837. >
  838. <el-button
  839. type="primary"
  840. class="newButton"
  841. @click="checkFileFull(showType, text)"
  842. >全屏查看</el-button
  843. >
  844. </div> -->
  845. </div>
  846. </div>
  847. </div>
  848. <div class="student_body" v-resize="resize">
  849. <div
  850. class="vedioBox"
  851. :style="{
  852. borderRadius:
  853. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  854. .taskDetail == '' &&
  855. vChapterData[taskCount].length == 0 &&
  856. fileC[taskCount].length == 0
  857. ? '0 0 20px 20px'
  858. : '20px',
  859. }"
  860. v-if="
  861. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  862. .toolChoose[0].tool &&
  863. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  864. .toolChoose[0].tool.length > 0
  865. "
  866. >
  867. <div
  868. class="toolHeng2"
  869. style="position: relative"
  870. v-if="
  871. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  872. .toolChoose[0].tool &&
  873. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  874. .toolChoose[0].tool.length &&
  875. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  876. .toolChoose[0].tool.length > 0
  877. "
  878. >
  879. <div class="workNav">工作区</div>
  880. <div
  881. class="filebox"
  882. style="flex-wrap: nowrap"
  883. v-for="(tool, toolIndex) in chapInfoList[courseType]
  884. .chapterInfo[0].taskJson[taskCount].toolChoose"
  885. :key="toolIndex"
  886. >
  887. <div class="bzBox">
  888. <div class="yCss"></div>
  889. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  890. 工具{{ toolIndex + 1 }}
  891. </div>
  892. <div
  893. v-if="timeWorkList[toolIndex].length > 0"
  894. style="margin: 0 0 0 10px"
  895. >
  896. {{
  897. timeWorkList[toolIndex][0].time
  898. ? "时间:" + timeWorkList[toolIndex][0].time
  899. : ""
  900. }}
  901. </div>
  902. </div>
  903. <div class="toolBox">
  904. <div>
  905. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  906. :key="indexTool"-->
  907. <!-- <div class="iframeBox">
  908. <div
  909. class="addPoint isBorder"
  910. v-for="(tooC, toolCIndex) in tool.tool"
  911. :key="toolCIndex"
  912. >
  913. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  914. <div
  915. class="iframeName"
  916. >
  917. 电子白板
  918. </div>
  919. <iframe
  920. src="https://iwb.cocorobo.cn/"
  921. ref="whiteBoard"
  922. ></iframe>
  923. </div>
  924. </div>
  925. </div>-->
  926. <div class="noiframeBox">
  927. <div
  928. class="addPoint"
  929. v-for="(tooC, toolCIndex) in tool.tool"
  930. :key="toolCIndex"
  931. >
  932. <div v-if="tooC == 1">
  933. <img
  934. src="../assets/icon/secondToolList/whiteBoard.png"
  935. alt
  936. @click="addTools(tooC, toolIndex, taskCount)"
  937. />
  938. <div style="margin: 5px 0">电子白板</div>
  939. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  940. style="position: absolute;right: 33px;top: -30px;">
  941. 投影
  942. </div>
  943. </div>
  944. <div v-if="tooC == 3">
  945. <img
  946. src="../assets/icon/secondToolList/mindMapping.png"
  947. alt
  948. @click="addTools(tooC, toolIndex, taskCount)"
  949. />
  950. <div style="margin: 5px 0">思维导图</div>
  951. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  952. style="position: absolute;right: 33px;top: -30px;">
  953. 投影
  954. </div>
  955. </div>
  956. <div v-if="tooC == 6">
  957. <img
  958. src="../assets/icon/secondToolList/doc.png"
  959. alt
  960. @click="addTools(tooC, toolIndex, taskCount)"
  961. />
  962. <div style="margin: 5px 0">协同文档</div>
  963. </div>
  964. <div v-if="tooC == 7">
  965. <img
  966. src="../assets/icon/secondToolList/mindNetwork.png"
  967. alt
  968. @click="addTools(tooC, toolIndex, taskCount)"
  969. />
  970. <div style="margin: 5px 0">思维网格</div>
  971. <!-- && worksStudent[toolIndex].length>0 -->
  972. <div class="upload_toolBtn" v-if="tType==='1' " @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  973. style="position: absolute;right: 33px;top: -30px;">
  974. 投影
  975. </div>
  976. </div>
  977. <div v-if="tooC == 8">
  978. <img
  979. src="../assets/icon/secondToolList/library.png"
  980. alt
  981. @click="addTools(tooC, toolIndex, taskCount)"
  982. />
  983. <div style="margin: 5px 0">素材库</div>
  984. </div>
  985. <div v-if="tooC == 17">
  986. <img
  987. src="../assets/icon/secondToolList/library.png"
  988. alt
  989. @click="addTools(tooC, toolIndex, taskCount)"
  990. />
  991. <div style="margin: 5px 0">学习资料</div>
  992. </div>
  993. <div v-if="tooC == 2">
  994. <img
  995. @click="addTools(tooC, toolIndex, taskCount)"
  996. src="../assets/icon/secondToolList/note.png"
  997. alt
  998. />
  999. <div style="margin: 5px 0">便签</div>
  1000. </div>
  1001. <div v-if="tooC == 4">
  1002. <img
  1003. @click="addTools(tooC, toolIndex, taskCount)"
  1004. src="../assets/icon/thirdToolList/ask.png"
  1005. alt
  1006. />
  1007. <div style="margin: 5px 0">问卷调查</div>
  1008. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1009. style="position: absolute;right: 33px;top: -30px;">
  1010. 统计分析
  1011. </div>
  1012. </div>
  1013. <div v-if="tooC == 45">
  1014. <img
  1015. @click="addTools(tooC, toolIndex, taskCount)"
  1016. src="../assets/icon/thirdToolList/choose.png"
  1017. alt
  1018. />
  1019. <div style="margin: 5px 0">选择题</div>
  1020. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1021. style="position: absolute;right: 33px;top: -30px;">
  1022. 投影
  1023. </div>
  1024. </div>
  1025. <!-- <div v-if="tooC == 5">
  1026. <img
  1027. @click="addTools(tooC, toolIndex, taskCount)"
  1028. src="../assets/icon/thirdToolList/score.png"
  1029. alt
  1030. />
  1031. <div style="margin: 5px 0">量规评分</div>
  1032. </div> -->
  1033. <div v-if="tooC == 10">
  1034. <img
  1035. @click="addTools(tooC, toolIndex, taskCount)"
  1036. src="../assets/icon/thirdToolList/time.png"
  1037. alt
  1038. />
  1039. <div style="margin: 5px 0">倒计时</div>
  1040. </div>
  1041. <div v-if="tooC == 15">
  1042. <img
  1043. @click="addTools(tooC, toolIndex, taskCount)"
  1044. src="../assets/icon/thirdToolList/answer.png"
  1045. alt
  1046. />
  1047. <div style="margin: 5px 0">问答</div>
  1048. <div class="upload_toolBtn" v-if="tType==='1' " @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1049. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1050. 投影
  1051. </div>
  1052. </div>
  1053. <div v-if="tooC == 26">
  1054. <img
  1055. @click="addTools(tooC, toolIndex, taskCount)"
  1056. src="../assets/icon/thirdToolList/courseDesign.png"
  1057. alt
  1058. />
  1059. <div style="margin: 5px 0">课程设计</div>
  1060. </div>
  1061. <div v-if="tooC == 18">
  1062. <img
  1063. @click="addTools(tooC, toolIndex, taskCount)"
  1064. src="../assets/icon/thirdToolList/trainPlatform.png"
  1065. alt
  1066. />
  1067. <div style="margin: 5px 0">训练服务器</div>
  1068. </div>
  1069. <div v-if="tooC == 16">
  1070. <img
  1071. @click="addTools(tooC, toolIndex, taskCount)"
  1072. src="../assets/icon/thirdToolList/work.png"
  1073. alt
  1074. />
  1075. <div style="margin: 5px 0">作业提交</div>
  1076. </div>
  1077. <div v-if="tooC == 50">
  1078. <img
  1079. @click="addTools(tooC, toolIndex, taskCount)"
  1080. src="../assets/icon/thirdToolList/plwork.png"
  1081. alt
  1082. />
  1083. <div style="margin: 5px 0">批量上传</div>
  1084. </div>
  1085. <div v-if="tooC == 21">
  1086. <img
  1087. @click="addTools(tooC, toolIndex, taskCount)"
  1088. src="../assets/icon/fourthToolList/program.png"
  1089. alt
  1090. />
  1091. <div style="margin: 5px 0">AIoT Blockly</div>
  1092. </div>
  1093. <!-- <div v-if="tooC == 22">
  1094. <img
  1095. @click="addTools(tooC, toolIndex, taskCount)"
  1096. src="../assets/icon/fourthToolList/program.png"
  1097. alt
  1098. />
  1099. <div style="margin: 5px 0">AI体验</div>
  1100. </div> -->
  1101. <div v-if="tooC == 23">
  1102. <img
  1103. @click="addTools(tooC, toolIndex, taskCount)"
  1104. src="../assets/icon/fourthToolList/Pythonprogram.png"
  1105. alt
  1106. />
  1107. <div style="margin: 5px 0">AI Python</div>
  1108. </div>
  1109. <div v-if="tooC == 24">
  1110. <img
  1111. @click="addTools(tooC, toolIndex, taskCount)"
  1112. src="../assets/icon/fourthToolList/AIprogram.png"
  1113. alt
  1114. />
  1115. <div style="margin: 5px 0">AI Blockly</div>
  1116. </div>
  1117. <div v-if="tooC == 25">
  1118. <img
  1119. @click="addTools(tooC, toolIndex, taskCount)"
  1120. src="../assets/icon/thirdToolList/evalua.png"
  1121. alt
  1122. />
  1123. <div style="margin: 5px 0">目标管理</div>
  1124. </div>
  1125. <div v-if="tooC == 31">
  1126. <img
  1127. @click="addTools(tooC, toolIndex, taskCount)"
  1128. src="../assets/icon/secondToolList/networkPanel.png"
  1129. alt
  1130. />
  1131. <div style="margin: 5px 0">数学画板</div>
  1132. </div>
  1133. <div v-if="tooC == 28">
  1134. <img
  1135. @click="addTools(tooC, toolIndex, taskCount)"
  1136. src="../assets/icon/secondToolList/translation.png"
  1137. alt
  1138. />
  1139. <div style="margin: 5px 0">翻译</div>
  1140. </div>
  1141. <div v-if="tooC == 37">
  1142. <img
  1143. @click="addTools(tooC, toolIndex, taskCount)"
  1144. src="../assets/icon/secondToolList/mohe.png"
  1145. alt
  1146. />
  1147. <div style="margin: 5px 0">魔盒识字</div>
  1148. </div>
  1149. <div v-if="tooC == 38">
  1150. <img
  1151. @click="addTools(tooC, toolIndex, taskCount)"
  1152. src="../assets/icon/secondToolList/24game.png"
  1153. alt
  1154. />
  1155. <div style="margin: 5px 0">24点</div>
  1156. </div>
  1157. <div v-if="tooC == 39">
  1158. <img
  1159. @click="addTools(tooC, toolIndex, taskCount)"
  1160. src="../assets/icon/secondToolList/GeoGebra.png"
  1161. alt
  1162. />
  1163. <div style="margin: 5px 0">GeoGebra</div>
  1164. </div>
  1165. <div v-if="tooC == 32">
  1166. <img
  1167. @click="addTools(tooC, toolIndex, taskCount)"
  1168. src="../assets/icon/thirdToolList/code.png"
  1169. alt
  1170. />
  1171. <div style="margin: 5px 0">源码编辑</div>
  1172. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1173. style="position: absolute;left: 110px;bottom: 30px;">
  1174. 上传文件
  1175. <input type="file" accept="*" style="display: none"
  1176. @change="beforeUpload1($event, 7, toolIndex)" />
  1177. </div> -->
  1178. </div>
  1179. <div v-if="tooC == 40">
  1180. <img
  1181. @click="addTools(tooC, toolIndex, taskCount)"
  1182. src="../assets/icon/secondToolList/eval.png"
  1183. alt
  1184. />
  1185. <div style="margin: 5px 0">个人评价</div>
  1186. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1187. style="position: absolute;right: 33px;top: -30px;">
  1188. 投影
  1189. </div>
  1190. </div>
  1191. <div v-if="tooC == 41">
  1192. <img
  1193. @click="addTools(tooC, toolIndex, taskCount)"
  1194. src="../assets/icon/thirdToolList/select.png"
  1195. alt
  1196. />
  1197. <div style="margin: 5px 0">选择匹配</div>
  1198. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1199. style="position: absolute;right: 33px;top: -30px;">
  1200. 投影
  1201. </div>
  1202. </div>
  1203. <div v-if="tooC == 44">
  1204. <img
  1205. @click="addTools(tooC, toolIndex, taskCount)"
  1206. src="../assets/icon/thirdToolList/hanClass.png"
  1207. alt
  1208. />
  1209. <div style="margin: 5px 0">汉字宫</div>
  1210. </div>
  1211. <div v-if="tooC == 47">
  1212. <img
  1213. @click="addTools(tooC, toolIndex, taskCount)"
  1214. src="../assets/icon/fourthToolList/conSentences.png"
  1215. alt
  1216. />
  1217. <div style="margin: 5px 0">排序</div>
  1218. <div class="upload_toolBtn" v-if="tType==='1' " @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1219. style="position: absolute;right: 33px;top: -30px;">
  1220. 投影
  1221. </div>
  1222. </div>
  1223. <div v-if="tooC == 48">
  1224. <img
  1225. @click="addTools(tooC, toolIndex, taskCount)"
  1226. src="../assets/icon/fourthToolList/table.png"
  1227. alt
  1228. />
  1229. <div style="margin: 5px 0">表格</div>
  1230. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1231. style="position: absolute;right: 33px;top: -30px;">
  1232. 投影
  1233. </div>
  1234. </div>
  1235. <div v-if="tooC == 52">
  1236. <img
  1237. @click="addTools(tooC, toolIndex, taskCount)"
  1238. src="../assets/icon/fourthToolList/text.png"
  1239. alt
  1240. />
  1241. <div style="margin: 5px 0">文档</div>
  1242. <div class="upload_toolBtn" v-if="tType==='1' " @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1243. style="position: absolute;right: 33px;top: -30px;">
  1244. 投影
  1245. </div>
  1246. </div>
  1247. <div v-if="tooC == 49">
  1248. <img
  1249. @click="addTools(tooC, toolIndex, taskCount)"
  1250. src="../assets/icon/fourthToolList/group.png"
  1251. alt
  1252. />
  1253. <div style="margin: 5px 0">学生分组</div>
  1254. <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1255. style="position: absolute;right: 33px;top: -30px;">
  1256. 投影
  1257. </div>
  1258. </div>
  1259. <div v-if="tooC == 57">
  1260. <img
  1261. @click="addTools(tooC, toolIndex, taskCount)"
  1262. src="../assets/icon/fourthToolList/cocopi.png"
  1263. alt
  1264. />
  1265. <div style="margin: 5px 0">CocoPi</div>
  1266. </div>
  1267. <div v-if="tooC == 58">
  1268. <img
  1269. @click="addTools(tooC, toolIndex, taskCount)"
  1270. src="../assets/icon/fourthToolList/car.png"
  1271. alt
  1272. />
  1273. <div style="margin: 5px 0">模拟驾驶</div>
  1274. </div>
  1275. <div v-if="tooC == 59">
  1276. <img
  1277. @click="addTools(tooC, toolIndex, taskCount)"
  1278. src="../assets/icon/fourthToolList/lineSearch.png"
  1279. alt
  1280. />
  1281. <div style="margin: 5px 0">路径搜索</div>
  1282. </div>
  1283. <div v-if="tooC == 60">
  1284. <img
  1285. @click="addTools(tooC, toolIndex, taskCount)"
  1286. src="../assets/icon/fourthToolList/deepLearning.png"
  1287. alt
  1288. />
  1289. <div style="margin: 5px 0">深度学习</div>
  1290. </div>
  1291. <div v-if="tooC == 61">
  1292. <img
  1293. @click="addTools(tooC, toolIndex, taskCount)"
  1294. src="../assets/icon/fourthToolList/allHistory.png"
  1295. alt
  1296. />
  1297. <div style="margin: 5px 0">全历史</div>
  1298. </div>
  1299. <div v-if="tooC == 62">
  1300. <img
  1301. @click="addTools(tooC, toolIndex, taskCount)"
  1302. src="../assets/icon/fourthToolList/interVideo.png"
  1303. alt
  1304. />
  1305. <div style="margin: 5px 0">交互视频</div>
  1306. </div>
  1307. <div v-if="tooC == 63">
  1308. <img
  1309. @click="addTools(tooC, toolIndex, taskCount)"
  1310. src="../assets/icon/fourthToolList/Wood.png"
  1311. alt
  1312. />
  1313. <div style="margin: 5px 0">海龟编程</div>
  1314. </div>
  1315. <div v-if="tooC == 71">
  1316. <img
  1317. @click="addTools(tooC, toolIndex, taskCount)"
  1318. src="../assets/icon/fourthToolList/chatgpt.png"
  1319. alt
  1320. />
  1321. <div style="margin: 5px 0">AI智能体</div>
  1322. </div>
  1323. <div v-if="tooC == 65">
  1324. <img
  1325. @click="addTools(tooC, toolIndex, taskCount)"
  1326. src="../assets/icon/firstToolList/pickPeople.png"
  1327. alt
  1328. />
  1329. <div style="margin: 5px 0">挑人</div>
  1330. </div>
  1331. <div v-if="tooC == 66">
  1332. <img
  1333. @click="addTools(tooC, toolIndex, taskCount)"
  1334. src="../assets/icon/secondToolList/formulaEdi.png"
  1335. alt
  1336. />
  1337. <div style="margin: 5px 0">公式编辑</div>
  1338. </div>
  1339. <div v-if="tooC == 67">
  1340. <img
  1341. @click="addTools(tooC, toolIndex, taskCount)"
  1342. src="../assets/icon/secondToolList/molStr.png"
  1343. alt
  1344. />
  1345. <div style="margin: 5px 0">分子结构</div>
  1346. </div>
  1347. <div v-if="tooC == 68">
  1348. <img
  1349. @click="addTools(tooC, toolIndex, taskCount)"
  1350. src="../assets/icon/secondToolList/timeAxis.png"
  1351. alt
  1352. />
  1353. <div style="margin: 5px 0">时间轴</div>
  1354. </div>
  1355. <div v-if="tooC == 69">
  1356. <img
  1357. @click="addTools(tooC, toolIndex, taskCount)"
  1358. src="../assets/icon/secondToolList/english.png"
  1359. alt
  1360. />
  1361. <div style="margin: 5px 0">英语写作</div>
  1362. </div>
  1363. <div v-if="tooC == 70">
  1364. <img
  1365. @click="addTools(tooC, toolIndex, taskCount)"
  1366. src="../assets/icon/thirdToolList/englishVoice.png"
  1367. alt
  1368. />
  1369. <div style="margin: 5px 0">英语口语</div>
  1370. </div>
  1371. </div>
  1372. </div>
  1373. </div>
  1374. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1375. <!-- <div class="toolTitle">工具描述</div> -->
  1376. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1377. <div style="height:100%;"
  1378. v-html="contentConvent(tool.toolDetail)"
  1379. v-if="toolDetailIndex != toolIndex"
  1380. ></div>
  1381. <div v-else @click.stop="" style="height:100%;">
  1382. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1383. </div>
  1384. </div>
  1385. <el-button
  1386. type="primary"
  1387. v-if="tool.tool[0] == 32"
  1388. style="position: absolute; right: 30px; top: -45px"
  1389. @click="addImg($event)"
  1390. >上传作业<input
  1391. type="file"
  1392. accept="*"
  1393. style="display: none"
  1394. @change="beforeUpload1($event, 7, toolIndex)"
  1395. /></el-button>
  1396. <el-button
  1397. type="primary"
  1398. v-if="tool.tool[0] == 15"
  1399. style="position: absolute; right: 30px; top: -45px"
  1400. @click="openWordCloud(toolIndex)"
  1401. >生成词云</el-button
  1402. >
  1403. <el-button
  1404. type="primary"
  1405. v-if="
  1406. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1407. "
  1408. style="position: absolute; right: 30px; top: -45px"
  1409. @click="uploadWorks(toolIndex)"
  1410. >导出作业</el-button
  1411. >
  1412. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1413. position: absolute;
  1414. right: 30px;
  1415. transform: translateY(-130%);
  1416. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1417. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1418. </div>
  1419. <div
  1420. v-if="
  1421. tType &&
  1422. tType == 2 &&
  1423. !sIsOpen &&
  1424. tool.tool.indexOf(16) != -1
  1425. "
  1426. class="worksBox"
  1427. >
  1428. <div
  1429. class="zuoyeYulan"
  1430. v-if="workStudent[toolIndex].length > 0"
  1431. >
  1432. <span class="worksTitle">作业预览</span>
  1433. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1434. </div>
  1435. <div
  1436. class="worksDetailBox"
  1437. v-if="workStudent[toolIndex].length > 0"
  1438. >
  1439. <div
  1440. class="works"
  1441. style="
  1442. width: 200px;
  1443. height: 140px;
  1444. margin: 10px 10px 10px 0;
  1445. box-shadow: 0 0 6px 1px #dfdada;
  1446. "
  1447. v-for="(w, wIndex) in workStudent[toolIndex]"
  1448. :key="wIndex"
  1449. >
  1450. <div class="workImg" v-if="w.type == 0">
  1451. <img
  1452. :src="w.works"
  1453. @click="previewImg(w.works,w)"
  1454. alt
  1455. />
  1456. <div
  1457. class="answerScore"
  1458. v-if="w.score"
  1459. @click.stop="openScore(w)"
  1460. :class="{
  1461. rightW:
  1462. w.userid == userid || tType == 1 || tType == 4,
  1463. }"
  1464. >
  1465. {{ JSON.parse(w.score).wScore }}分
  1466. </div>
  1467. <div
  1468. class="answerScore"
  1469. @click.stop="openScore(w)"
  1470. v-else-if="courseDetail.userid == userid"
  1471. :class="{
  1472. rightW:
  1473. w.userid == userid || tType == 1 || tType == 4,
  1474. }"
  1475. >
  1476. 评分
  1477. </div>
  1478. <img
  1479. class="deleteImg"
  1480. src="../assets/deleteworks.png"
  1481. v-if="
  1482. w.userid == userid || tType == 1 || tType == 4
  1483. "
  1484. @click.stop="deleteWorks(w.wid)"
  1485. alt
  1486. />
  1487. </div>
  1488. <div class="workImg" v-if="w.type == 1">
  1489. <img :src="word" @click="openFile(w.works,w)" alt />
  1490. <div
  1491. class="answerScore"
  1492. v-if="w.score"
  1493. @click.stop="openScore(w)"
  1494. :class="{
  1495. rightW:
  1496. w.userid == userid || tType == 1 || tType == 4,
  1497. }"
  1498. >
  1499. {{ JSON.parse(w.score).wScore }}分
  1500. </div>
  1501. <div
  1502. class="answerScore"
  1503. @click.stop="openScore(w)"
  1504. v-else-if="courseDetail.userid == userid"
  1505. :class="{
  1506. rightW:
  1507. w.userid == userid || tType == 1 || tType == 4,
  1508. }"
  1509. >
  1510. 评分
  1511. </div>
  1512. <img
  1513. class="deleteImg"
  1514. src="../assets/deleteworks.png"
  1515. v-if="
  1516. w.userid == userid || tType == 1 || tType == 4
  1517. "
  1518. @click.stop="deleteWorks(w.wid)"
  1519. alt
  1520. />
  1521. </div>
  1522. <div class="workImg" v-if="w.type == 3">
  1523. <img
  1524. style="cursor: pointer"
  1525. :src="video"
  1526. @click="openVideo(w)"
  1527. alt
  1528. />
  1529. <div
  1530. class="answerScore"
  1531. v-if="w.score"
  1532. @click.stop="openScore(w)"
  1533. :class="{
  1534. rightW:
  1535. w.userid == userid || tType == 1 || tType == 4,
  1536. }"
  1537. >
  1538. {{ JSON.parse(w.score).wScore }}分
  1539. </div>
  1540. <div
  1541. class="answerScore"
  1542. @click.stop="openScore(w)"
  1543. v-else-if="courseDetail.userid == userid"
  1544. :class="{
  1545. rightW:
  1546. w.userid == userid || tType == 1 || tType == 4,
  1547. }"
  1548. >
  1549. 评分
  1550. </div>
  1551. <img
  1552. class="deleteImg"
  1553. src="../assets/deleteworks.png"
  1554. v-if="
  1555. w.userid == userid || tType == 1 || tType == 4
  1556. "
  1557. @click.stop="deleteWorks(w.wid)"
  1558. alt
  1559. />
  1560. </div>
  1561. <div class="workImg" v-if="w.type == 12">
  1562. <img
  1563. style="cursor: pointer"
  1564. :src="word2"
  1565. @click="downloadFile(w.works)"
  1566. alt
  1567. />
  1568. <div
  1569. class="answerScore"
  1570. v-if="w.score"
  1571. @click.stop="openScore(w)"
  1572. :class="{
  1573. rightW:
  1574. w.userid == userid || tType == 1 || tType == 4,
  1575. }"
  1576. >
  1577. {{ JSON.parse(w.score).wScore }}分
  1578. </div>
  1579. <div
  1580. class="answerScore"
  1581. @click.stop="openScore(w)"
  1582. v-else-if="courseDetail.userid == userid"
  1583. :class="{
  1584. rightW:
  1585. w.userid == userid || tType == 1 || tType == 4,
  1586. }"
  1587. >
  1588. 评分
  1589. </div>
  1590. <img
  1591. class="deleteImg"
  1592. src="../assets/deleteworks.png"
  1593. v-if="
  1594. w.userid == userid || tType == 1 || tType == 4
  1595. "
  1596. @click.stop="deleteWorks(w.wid)"
  1597. alt
  1598. />
  1599. </div>
  1600. <div class="worksName">
  1601. <div>{{ w.sName }}</div>
  1602. </div>
  1603. </div>
  1604. </div>
  1605. </div>
  1606. <div
  1607. v-if="
  1608. tType &&
  1609. tType == 2 &&
  1610. !sIsOpen &&
  1611. tool.tool.indexOf(32) != -1
  1612. "
  1613. class="worksBox"
  1614. >
  1615. <div
  1616. class="zuoyeYulan"
  1617. v-if="workStudent[toolIndex].length > 0"
  1618. >
  1619. <span class="worksTitle">作业预览</span>
  1620. </div>
  1621. <div
  1622. class="worksDetailBox"
  1623. v-if="workStudent[toolIndex].length > 0"
  1624. >
  1625. <div
  1626. class="works"
  1627. style="
  1628. width: 200px;
  1629. height: 140px;
  1630. margin: 10px 10px 10px 0;
  1631. box-shadow: 0 0 6px 1px #dfdada;
  1632. "
  1633. v-for="(w, wIndex) in workStudent[toolIndex]"
  1634. :key="wIndex"
  1635. >
  1636. <div class="workImg">
  1637. <img
  1638. :src="word2"
  1639. @click="downloadFile(w.works)"
  1640. alt
  1641. />
  1642. <div
  1643. class="answerScore"
  1644. v-if="w.score"
  1645. @click.stop="openScore(w)"
  1646. :class="{
  1647. rightW:
  1648. w.userid == userid || tType == 1 || tType == 4,
  1649. }"
  1650. >
  1651. {{ JSON.parse(w.score).wScore }}分
  1652. </div>
  1653. <div
  1654. class="answerScore"
  1655. @click.stop="openScore(w)"
  1656. v-else-if="courseDetail.userid == userid"
  1657. :class="{
  1658. rightW:
  1659. w.userid == userid || tType == 1 || tType == 4,
  1660. }"
  1661. >
  1662. 评分
  1663. </div>
  1664. <img
  1665. class="deleteImg"
  1666. src="../assets/deleteworks.png"
  1667. v-if="
  1668. w.userid == userid || tType == 1 || tType == 4
  1669. "
  1670. @click.stop="deleteWorks(w.wid)"
  1671. alt
  1672. />
  1673. </div>
  1674. <div class="worksName">
  1675. <div>{{ w.sName }}</div>
  1676. </div>
  1677. </div>
  1678. </div>
  1679. </div>
  1680. <div
  1681. v-if="
  1682. tType &&
  1683. tType == 2 &&
  1684. !sIsOpen &&
  1685. tool.tool.indexOf(57) != -1
  1686. "
  1687. class="worksBox"
  1688. >
  1689. <div
  1690. class="zuoyeYulan"
  1691. v-if="workStudent[toolIndex].length > 0"
  1692. >
  1693. <span class="worksTitle">作业预览</span>
  1694. </div>
  1695. <div
  1696. class="worksDetailBox"
  1697. v-if="workStudent[toolIndex].length > 0"
  1698. >
  1699. <div
  1700. class="works"
  1701. style="
  1702. width: 200px;
  1703. height: 140px;
  1704. margin: 10px 10px 10px 0;
  1705. box-shadow: 0 0 6px 1px #dfdada;
  1706. "
  1707. v-for="(w, wIndex) in workStudent[toolIndex]"
  1708. :key="wIndex"
  1709. >
  1710. <div class="workImg">
  1711. <img
  1712. :src="word2"
  1713. @click="downloadFile(w.works)"
  1714. v-if="w.type == 12"
  1715. alt
  1716. />
  1717. <img
  1718. :src="word2"
  1719. @click="
  1720. openCocoPi(57, toolIndex, w.userid, w.sName)
  1721. "
  1722. v-else-if="w.type == 15"
  1723. alt
  1724. />
  1725. <div
  1726. class="answerScore"
  1727. v-if="w.score"
  1728. @click.stop="openScore(w)"
  1729. :class="{
  1730. rightW:
  1731. w.userid == userid || tType == 1 || tType == 4,
  1732. }"
  1733. >
  1734. {{ JSON.parse(w.score).wScore }}分
  1735. </div>
  1736. <div
  1737. class="answerScore"
  1738. @click.stop="openScore(w)"
  1739. v-else-if="courseDetail.userid == userid"
  1740. :class="{
  1741. rightW:
  1742. w.userid == userid || tType == 1 || tType == 4,
  1743. }"
  1744. >
  1745. 评分
  1746. </div>
  1747. <img
  1748. class="deleteImg"
  1749. src="../assets/deleteworks.png"
  1750. v-if="
  1751. w.userid == userid || tType == 1 || tType == 4
  1752. "
  1753. @click.stop="deleteWorks(w.wid)"
  1754. alt
  1755. />
  1756. </div>
  1757. <div class="worksName">
  1758. <div>{{ w.sName }}</div>
  1759. </div>
  1760. </div>
  1761. </div>
  1762. </div>
  1763. <div
  1764. v-if="
  1765. tType &&
  1766. tType == 2 &&
  1767. !sIsOpen &&
  1768. tool.tool.indexOf(4) != -1
  1769. "
  1770. class="worksBox"
  1771. >
  1772. <div
  1773. class="zuoyeYulan"
  1774. v-if="workStudent[toolIndex].length > 0"
  1775. >
  1776. <span class="worksTitle">作业预览</span>
  1777. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1778. </div>
  1779. <div
  1780. class="worksDetailBox"
  1781. v-if="workStudent[toolIndex].length > 0"
  1782. >
  1783. <div
  1784. class="isWorksName2"
  1785. v-for="(w, wIndex) in workStudent[toolIndex]"
  1786. :key="wIndex"
  1787. @click="
  1788. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1789. "
  1790. >
  1791. {{ w.sName }}
  1792. <img
  1793. class="deleteImg deleteImg2"
  1794. src="../assets/deleteworks.png"
  1795. v-if="w.userid == userid || tType == 1 || tType == 4"
  1796. @click.stop="deleteWorks(w.wid)"
  1797. alt
  1798. />
  1799. </div>
  1800. <!-- <div
  1801. class="works"
  1802. style="
  1803. width: 200px;
  1804. height: 140px;
  1805. border-radius: 10px;
  1806. box-shadow: 0 0 6px 1px #dfdada;
  1807. overflow: hidden;
  1808. "
  1809. v-for="(w, wIndex) in workStudent[toolIndex]"
  1810. :key="wIndex"
  1811. >
  1812. <div class="workImg">
  1813. <img
  1814. src="../assets/icon/works/noImg.png"
  1815. @click="
  1816. openTools(
  1817. 4,
  1818. toolIndex,
  1819. taskCount,
  1820. w.works,
  1821. w.sName
  1822. )
  1823. "
  1824. alt
  1825. />
  1826. </div>
  1827. <div class="worksName">
  1828. <div>{{ w.sName }}</div>
  1829. <div>{{ w.time }}</div>
  1830. </div>
  1831. </div> -->
  1832. </div>
  1833. </div>
  1834. <div
  1835. v-if="
  1836. tType &&
  1837. ((tType == 2 && sIsOpen == true) ||
  1838. tType == 1 ||
  1839. tType == 4) &&
  1840. tool.tool.indexOf(62) != -1
  1841. "
  1842. class="worksBox"
  1843. >
  1844. <div
  1845. class="zuoyeYulan"
  1846. v-if="
  1847. worksStudent.length &&
  1848. worksStudent[toolIndex].length > 0
  1849. "
  1850. >
  1851. <div class="worksTop">
  1852. <div>作业预览</div>
  1853. <div
  1854. class="corOpen"
  1855. @click="contract(toolIndex)"
  1856. v-if="
  1857. (isCloseList[toolIndex].isCloseBoolean) &&
  1858. isCloseList[toolIndex].isClose == 0
  1859. "
  1860. >
  1861. 折叠
  1862. </div>
  1863. <div
  1864. class="corOpen"
  1865. @click="contract(toolIndex)"
  1866. v-if="isCloseList[toolIndex].isClose == 1"
  1867. >
  1868. 展开
  1869. </div>
  1870. </div>
  1871. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1872. </div>
  1873. <div>
  1874. <div
  1875. :id="'tool-' + toolIndex"
  1876. :style="{
  1877. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1878. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1879. }"
  1880. class="worksDetailBox"
  1881. v-if="
  1882. worksStudent.length &&
  1883. worksStudent[toolIndex].length > 0
  1884. "
  1885. >
  1886. <div
  1887. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1888. :key="wIndex"
  1889. class="isWorksName2"
  1890. @click="
  1891. openTools(
  1892. 62,
  1893. toolIndex,
  1894. taskCount,
  1895. w.works,
  1896. w.sName
  1897. )
  1898. "
  1899. >
  1900. {{ w.sName }}
  1901. <img
  1902. class="deleteImg deleteImg2"
  1903. src="../assets/deleteworks.png"
  1904. v-if="
  1905. w.userid == userid || tType == 1 || tType == 4
  1906. "
  1907. @click.stop="deleteWorks(w.wid)"
  1908. alt
  1909. />
  1910. </div>
  1911. </div>
  1912. </div>
  1913. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1914. 未提交
  1915. </div>
  1916. <div
  1917. class="noWorksS"
  1918. v-if="noWorksS && noWorksS[toolIndex].length"
  1919. >
  1920. <div
  1921. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1922. :key="sIndex"
  1923. class="noWorksName"
  1924. >
  1925. <el-tooltip effect="dark" :content="s.student" placement="top">
  1926. <span>{{ s.student }}</span>
  1927. </el-tooltip>
  1928. </div>
  1929. </div>
  1930. </div>
  1931. <div
  1932. v-if="
  1933. tType &&
  1934. tType == 2 &&
  1935. !sIsOpen &&
  1936. tool.tool.indexOf(62) != -1
  1937. "
  1938. class="worksBox"
  1939. >
  1940. <div
  1941. class="zuoyeYulan"
  1942. v-if="workStudent[toolIndex].length > 0"
  1943. >
  1944. <span class="worksTitle">作业预览</span>
  1945. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1946. </div>
  1947. <div
  1948. class="worksDetailBox"
  1949. v-if="workStudent[toolIndex].length > 0"
  1950. >
  1951. <div
  1952. class="isWorksName2"
  1953. v-for="(w, wIndex) in workStudent[toolIndex]"
  1954. :key="wIndex"
  1955. @click="
  1956. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1957. "
  1958. >
  1959. {{ w.sName }}
  1960. <img
  1961. class="deleteImg deleteImg2"
  1962. src="../assets/deleteworks.png"
  1963. v-if="w.userid == userid || tType == 1 || tType == 4"
  1964. @click.stop="deleteWorks(w.wid)"
  1965. alt
  1966. />
  1967. </div>
  1968. </div>
  1969. </div>
  1970. <div
  1971. v-if="
  1972. tType &&
  1973. tType == 2 &&
  1974. !sIsOpen &&
  1975. tool.tool.indexOf(45) != -1
  1976. "
  1977. class="worksBox"
  1978. >
  1979. <div
  1980. class="zuoyeYulan"
  1981. v-if="workStudent[toolIndex].length > 0"
  1982. >
  1983. <span class="worksTitle">作业预览</span>
  1984. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1985. </div>
  1986. <div
  1987. class="worksDetailBox"
  1988. v-if="workStudent[toolIndex].length > 0"
  1989. >
  1990. <div
  1991. class="isWorksName2"
  1992. v-for="(w, wIndex) in workStudent[toolIndex]"
  1993. :key="wIndex"
  1994. @click="
  1995. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1996. "
  1997. >
  1998. {{ w.sName }}
  1999. <img
  2000. class="deleteImg deleteImg2"
  2001. src="../assets/deleteworks.png"
  2002. v-if="w.userid == userid || tType == 1 || tType == 4"
  2003. @click.stop="deleteWorks(w.wid)"
  2004. alt
  2005. />
  2006. </div>
  2007. </div>
  2008. </div>
  2009. <div
  2010. v-if="
  2011. tType &&
  2012. tType == 2 &&
  2013. !sIsOpen &&
  2014. tool.tool.indexOf(69) != -1
  2015. "
  2016. class="worksBox"
  2017. >
  2018. <div
  2019. class="zuoyeYulan"
  2020. v-if="workStudent[toolIndex].length > 0"
  2021. >
  2022. <span class="worksTitle">作业预览</span>
  2023. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2024. </div>
  2025. <div
  2026. class="worksDetailBox"
  2027. v-if="workStudent[toolIndex].length > 0"
  2028. >
  2029. <div
  2030. class="isWorksName2"
  2031. v-for="(w, wIndex) in workStudent[toolIndex]"
  2032. :key="wIndex"
  2033. @click="
  2034. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2035. "
  2036. >
  2037. {{ w.sName }}
  2038. <img
  2039. class="deleteImg deleteImg2"
  2040. src="../assets/deleteworks.png"
  2041. v-if="w.userid == userid || tType == 1 || tType == 4"
  2042. @click.stop="deleteWorks(w.wid)"
  2043. alt
  2044. />
  2045. </div>
  2046. </div>
  2047. </div>
  2048. <div
  2049. v-if="
  2050. tType &&
  2051. tType == 2 &&
  2052. !sIsOpen &&
  2053. tool.tool.indexOf(15) != -1
  2054. "
  2055. class="worksBox"
  2056. >
  2057. <div
  2058. class="zuoyeYulan"
  2059. v-if="workStudent[toolIndex].length > 0"
  2060. >
  2061. <span class="worksTitle">作业预览</span>
  2062. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2063. </div>
  2064. <div
  2065. class="worksDetailBox"
  2066. v-if="workStudent[toolIndex].length > 0"
  2067. >
  2068. <div
  2069. class="works"
  2070. v-for="(w, wIndex) in workStudent[toolIndex]"
  2071. :key="wIndex"
  2072. >
  2073. <div class="workImg">
  2074. <!-- <img
  2075. src="../assets/icon/works/noImg.png"
  2076. @click="openTools(15, toolIndex, taskCount, w.works)"
  2077. alt=""
  2078. />-->
  2079. <div class="answerBg">
  2080. <!-- <div>{{ w.sName }}</div> -->
  2081. <el-tooltip
  2082. class="item"
  2083. effect="light"
  2084. :content="JSON.parse(w.works)[0].answer"
  2085. placement="top"
  2086. >
  2087. <div class="answerContent">
  2088. {{ JSON.parse(w.works)[0].answer }}
  2089. </div>
  2090. </el-tooltip>
  2091. <div
  2092. class="answerScore"
  2093. v-if="w.score"
  2094. @click.stop="openScore(w)"
  2095. :class="{
  2096. rightW:
  2097. w.userid == userid ||
  2098. tType == 1 ||
  2099. tType == 4,
  2100. }"
  2101. >
  2102. {{ JSON.parse(w.score).wScore }}分
  2103. </div>
  2104. <div
  2105. class="answerScore"
  2106. @click.stop="openScore(w)"
  2107. v-else-if="courseDetail.userid == userid"
  2108. :class="{
  2109. rightW:
  2110. w.userid == userid ||
  2111. tType == 1 ||
  2112. tType == 4,
  2113. }"
  2114. >
  2115. 评分
  2116. </div>
  2117. <img
  2118. class="deleteImg"
  2119. src="../assets/deleteworks.png"
  2120. v-if="
  2121. w.userid == userid || tType == 1 || tType == 4
  2122. "
  2123. @click.stop="deleteWorks(w.wid)"
  2124. alt
  2125. />
  2126. </div>
  2127. <div class="comment">
  2128. <div class="worksName">
  2129. <div>{{ w.sName }}</div>
  2130. </div>
  2131. </div>
  2132. </div>
  2133. </div>
  2134. </div>
  2135. </div>
  2136. <div
  2137. v-if="
  2138. tType &&
  2139. tType == 2 &&
  2140. !sIsOpen &&
  2141. tool.tool.indexOf(1) != -1
  2142. "
  2143. class="worksBox"
  2144. >
  2145. <div
  2146. class="zuoyeYulan"
  2147. v-if="workStudent[toolIndex].length > 0"
  2148. >
  2149. <span class="worksTitle">作业预览</span>
  2150. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2151. </div>
  2152. <div
  2153. class="worksDetailBox"
  2154. v-if="workStudent[toolIndex].length > 0"
  2155. >
  2156. <div
  2157. class="works"
  2158. style="
  2159. width: 200px;
  2160. height: 140px;
  2161. margin: 10px 10px 10px 0;
  2162. box-shadow: 0 0 6px 1px #dfdada;
  2163. "
  2164. v-for="(w, wIndex) in workStudent[toolIndex]"
  2165. :key="wIndex"
  2166. >
  2167. <div class="workImg">
  2168. <img
  2169. :src="w.works"
  2170. @click="previewImg(w.works,w)"
  2171. alt
  2172. />
  2173. <div
  2174. class="answerScore"
  2175. v-if="w.score"
  2176. @click.stop="openScore(w)"
  2177. :class="{
  2178. rightW:
  2179. w.userid == userid || tType == 1 || tType == 4,
  2180. }"
  2181. >
  2182. {{ JSON.parse(w.score).wScore }}分
  2183. </div>
  2184. <div
  2185. class="answerScore"
  2186. @click.stop="openScore(w)"
  2187. v-else-if="courseDetail.userid == userid"
  2188. :class="{
  2189. rightW:
  2190. w.userid == userid || tType == 1 || tType == 4,
  2191. }"
  2192. >
  2193. 评分
  2194. </div>
  2195. <img
  2196. class="deleteImg"
  2197. src="../assets/deleteworks.png"
  2198. v-if="
  2199. w.userid == userid || tType == 1 || tType == 4
  2200. "
  2201. @click.stop="deleteWorks(w.wid)"
  2202. alt
  2203. />
  2204. </div>
  2205. <div class="worksName">
  2206. <div>{{ w.sName }}</div>
  2207. </div>
  2208. </div>
  2209. </div>
  2210. </div>
  2211. <div
  2212. v-if="
  2213. tType &&
  2214. tType == 2 &&
  2215. !sIsOpen &&
  2216. tool.tool.indexOf(3) != -1
  2217. "
  2218. class="worksBox"
  2219. >
  2220. <div
  2221. class="zuoyeYulan"
  2222. v-if="workStudent[toolIndex].length > 0"
  2223. >
  2224. <span class="worksTitle">作业预览</span>
  2225. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2226. </div>
  2227. <div
  2228. class="worksDetailBox"
  2229. v-if="workStudent[toolIndex].length > 0"
  2230. >
  2231. <div
  2232. class="works"
  2233. style="
  2234. width: 200px;
  2235. height: 140px;
  2236. margin: 10px 10px 10px 0;
  2237. box-shadow: 0 0 6px 1px #dfdada;
  2238. "
  2239. v-for="(w, wIndex) in workStudent[toolIndex]"
  2240. :key="wIndex"
  2241. >
  2242. <div class="workImg">
  2243. <img
  2244. :src="w.works"
  2245. @click="previewImg(w.works,w)"
  2246. alt
  2247. />
  2248. <div
  2249. class="answerScore"
  2250. v-if="w.score"
  2251. @click.stop="openScore(w)"
  2252. :class="{
  2253. rightW:
  2254. w.userid == userid || tType == 1 || tType == 4,
  2255. }"
  2256. >
  2257. {{ JSON.parse(w.score).wScore }}分
  2258. </div>
  2259. <div
  2260. class="answerScore"
  2261. @click.stop="openScore(w)"
  2262. v-else-if="courseDetail.userid == userid"
  2263. :class="{
  2264. rightW:
  2265. w.userid == userid || tType == 1 || tType == 4,
  2266. }"
  2267. >
  2268. 评分
  2269. </div>
  2270. <img
  2271. class="deleteImg"
  2272. src="../assets/deleteworks.png"
  2273. v-if="
  2274. w.userid == userid || tType == 1 || tType == 4
  2275. "
  2276. @click.stop="deleteWorks(w.wid)"
  2277. alt
  2278. />
  2279. </div>
  2280. <div class="worksName">
  2281. <div>{{ w.sName }}</div>
  2282. </div>
  2283. </div>
  2284. </div>
  2285. </div>
  2286. <div
  2287. v-if="
  2288. tType &&
  2289. tType == 2 &&
  2290. !sIsOpen &&
  2291. tool.tool.indexOf(6) != -1
  2292. "
  2293. class="worksBox"
  2294. >
  2295. <div
  2296. class="zuoyeYulan"
  2297. v-if="workStudent[toolIndex].length > 0"
  2298. >
  2299. <span class="worksTitle">作业预览</span>
  2300. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2301. </div>
  2302. <div
  2303. class="worksDetailBox"
  2304. v-if="workStudent[toolIndex].length > 0"
  2305. >
  2306. <div
  2307. class="works"
  2308. style="
  2309. width: 200px;
  2310. height: 140px;
  2311. margin: 10px 10px 10px 0;
  2312. box-shadow: 0 0 6px 1px #dfdada;
  2313. "
  2314. v-for="(w, wIndex) in workStudent[toolIndex]"
  2315. :key="wIndex"
  2316. >
  2317. <div class="workImg">
  2318. <img
  2319. :src="w.works"
  2320. @click="previewImg(w.works,w)"
  2321. alt
  2322. />
  2323. <div
  2324. class="answerScore"
  2325. v-if="w.score"
  2326. @click.stop="openScore(w)"
  2327. :class="{
  2328. rightW:
  2329. w.userid == userid || tType == 1 || tType == 4,
  2330. }"
  2331. >
  2332. {{ JSON.parse(w.score).wScore }}分
  2333. </div>
  2334. <div
  2335. class="answerScore"
  2336. @click.stop="openScore(w)"
  2337. v-else-if="courseDetail.userid == userid"
  2338. :class="{
  2339. rightW:
  2340. w.userid == userid || tType == 1 || tType == 4,
  2341. }"
  2342. >
  2343. 评分
  2344. </div>
  2345. <img
  2346. class="deleteImg"
  2347. src="../assets/deleteworks.png"
  2348. v-if="
  2349. w.userid == userid || tType == 1 || tType == 4
  2350. "
  2351. @click.stop="deleteWorks(w.wid)"
  2352. alt
  2353. />
  2354. </div>
  2355. <div class="worksName">
  2356. <div>{{ w.sName }}</div>
  2357. </div>
  2358. </div>
  2359. </div>
  2360. </div>
  2361. <div
  2362. v-if="
  2363. tType &&
  2364. tType == 2 &&
  2365. !sIsOpen &&
  2366. tool.tool.indexOf(7) != -1
  2367. "
  2368. class="worksBox"
  2369. >
  2370. <div
  2371. class="zuoyeYulan"
  2372. v-if="workStudent[toolIndex].length > 0"
  2373. >
  2374. <span class="worksTitle">作业预览</span>
  2375. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2376. </div>
  2377. <div
  2378. class="worksDetailBox"
  2379. v-if="workStudent[toolIndex].length > 0"
  2380. >
  2381. <div
  2382. class="works"
  2383. style="
  2384. width: 200px;
  2385. height: 140px;
  2386. margin: 10px 10px 10px 0;
  2387. box-shadow: 0 0 6px 1px #dfdada;
  2388. "
  2389. v-for="(w, wIndex) in workStudent[toolIndex]"
  2390. :key="wIndex"
  2391. >
  2392. <div class="workImg">
  2393. <img
  2394. :src="w.works"
  2395. @click="previewImg(w.works,w)"
  2396. alt
  2397. />
  2398. <div
  2399. class="answerScore"
  2400. v-if="w.score"
  2401. @click.stop="openScore(w)"
  2402. :class="{
  2403. rightW:
  2404. w.userid == userid || tType == 1 || tType == 4,
  2405. }"
  2406. >
  2407. {{ JSON.parse(w.score).wScore }}分
  2408. </div>
  2409. <div
  2410. class="answerScore"
  2411. @click.stop="openScore(w)"
  2412. v-else-if="courseDetail.userid == userid"
  2413. :class="{
  2414. rightW:
  2415. w.userid == userid || tType == 1 || tType == 4,
  2416. }"
  2417. >
  2418. 评分
  2419. </div>
  2420. <img
  2421. class="deleteImg"
  2422. src="../assets/deleteworks.png"
  2423. v-if="
  2424. w.userid == userid || tType == 1 || tType == 4
  2425. "
  2426. @click.stop="deleteWorks(w.wid)"
  2427. alt
  2428. />
  2429. </div>
  2430. <div class="worksName">
  2431. <div>{{ w.sName }}</div>
  2432. </div>
  2433. </div>
  2434. </div>
  2435. </div>
  2436. <div
  2437. v-if="
  2438. tType &&
  2439. tType == 2 &&
  2440. !sIsOpen &&
  2441. tool.tool.indexOf(26) != -1
  2442. "
  2443. class="worksBox"
  2444. >
  2445. <div
  2446. class="zuoyeYulan"
  2447. v-if="workStudent[toolIndex].length > 0"
  2448. >
  2449. <span class="worksTitle">作业预览</span>
  2450. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2451. </div>
  2452. <div
  2453. class="worksDetailBox"
  2454. v-if="workStudent[toolIndex].length > 0"
  2455. >
  2456. <div
  2457. class="works"
  2458. style="
  2459. width: 200px;
  2460. height: 140px;
  2461. margin: 10px 10px 10px 0;
  2462. box-shadow: 0 0 6px 1px #dfdada;
  2463. "
  2464. v-for="(w, wIndex) in workStudent[toolIndex]"
  2465. :key="wIndex"
  2466. >
  2467. <div class="workImg">
  2468. <img
  2469. :src="w.works"
  2470. @click="previewImg(w.works,w)"
  2471. alt
  2472. />
  2473. <img
  2474. class="deleteImg"
  2475. src="../assets/deleteworks.png"
  2476. v-if="
  2477. w.userid == userid || tType == 1 || tType == 4
  2478. "
  2479. @click.stop="deleteWorks(w.wid)"
  2480. alt
  2481. />
  2482. </div>
  2483. <div class="worksName">
  2484. <div>{{ w.sName }}</div>
  2485. </div>
  2486. </div>
  2487. </div>
  2488. </div>
  2489. <div
  2490. v-if="
  2491. tType &&
  2492. ((tType == 2 && sIsOpen == true) ||
  2493. tType == 1 ||
  2494. tType == 4) &&
  2495. tool.tool.indexOf(16) != -1
  2496. "
  2497. class="worksBox"
  2498. >
  2499. <div
  2500. class="zuoyeYulan"
  2501. v-if="
  2502. (worksStudent.length &&
  2503. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2504. "
  2505. >
  2506. <div class="worksTop">
  2507. <div>作业预览</div>
  2508. <div
  2509. class="corOpen"
  2510. @click="contract(toolIndex)"
  2511. v-if="
  2512. (isCloseList[toolIndex].isCloseBoolean) &&
  2513. isCloseList[toolIndex].isClose == 0
  2514. "
  2515. >
  2516. 折叠
  2517. </div>
  2518. <div
  2519. class="corOpen"
  2520. @click="contract(toolIndex)"
  2521. v-if="isCloseList[toolIndex].isClose == 1"
  2522. >
  2523. 展开
  2524. </div>
  2525. </div>
  2526. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2527. </div>
  2528. <div
  2529. class="group_workBox"
  2530. v-for="(g, gindex) in courseGroup.group"
  2531. :key="gindex"
  2532. >
  2533. <div class="group_box">
  2534. <div class="group_title">
  2535. <el-tooltip
  2536. class="item"
  2537. effect="light"
  2538. :content="g.name"
  2539. placement="top"
  2540. >
  2541. <div class="group_name">{{ g.name }}</div>
  2542. </el-tooltip>
  2543. </div>
  2544. <div
  2545. class="group_work"
  2546. v-if="
  2547. g.works &&
  2548. g.works.length &&
  2549. g.works[toolIndex].length
  2550. "
  2551. >
  2552. <div
  2553. class="works"
  2554. style="
  2555. width: 200px;
  2556. height: 140px;
  2557. margin: 10px 10px 10px 0;
  2558. border-radius: 15px;
  2559. box-shadow: 0 0 6px 1px #dfdada;
  2560. "
  2561. v-for="(w, wIndex) in g.works[toolIndex]"
  2562. :key="wIndex"
  2563. :class="w.type == 1 ? 'isTypeOne' : ''"
  2564. >
  2565. <div class="workImg" v-if="w.type == 0">
  2566. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2567. <img
  2568. :src="w.works"
  2569. @click="previewImg(w.works,w)"
  2570. alt
  2571. />
  2572. <div
  2573. class="answerScore"
  2574. v-if="w.score"
  2575. @click.stop="openScore(w)"
  2576. :class="{
  2577. rightW:
  2578. w.userid == userid ||
  2579. tType == 1 ||
  2580. tType == 4 ||
  2581. w.ateacher == userid,
  2582. }"
  2583. >
  2584. {{ JSON.parse(w.score).wScore }}分
  2585. </div>
  2586. <div
  2587. class="answerScore"
  2588. @click.stop="openScore(w)"
  2589. v-else-if="courseDetail.userid == userid"
  2590. :class="{
  2591. rightW:
  2592. w.userid == userid ||
  2593. tType == 1 ||
  2594. tType == 4 ||
  2595. w.ateacher == userid,
  2596. }"
  2597. >
  2598. 评分
  2599. </div>
  2600. <img
  2601. class="deleteImg"
  2602. src="../assets/deleteworks.png"
  2603. v-if="
  2604. w.userid == userid || tType == 1 || tType == 4
  2605. "
  2606. @click.stop="deleteWorks(w.wid)"
  2607. alt
  2608. />
  2609. </div>
  2610. <div class="workImg" v-if="w.type == 1">
  2611. <img :src="word" @click="openFile(w.works,w)" alt />
  2612. <!-- @click="openFile(w.works)" -->
  2613. <div
  2614. class="answerScore"
  2615. v-if="w.score"
  2616. @click.stop="openScore(w)"
  2617. :class="{
  2618. rightW:
  2619. w.userid == userid ||
  2620. tType == 1 ||
  2621. tType == 4 ||
  2622. w.ateacher == userid,
  2623. }"
  2624. >
  2625. {{ JSON.parse(w.score).wScore }}分
  2626. </div>
  2627. <div
  2628. class="answerScore"
  2629. @click.stop="openScore(w)"
  2630. v-else-if="courseDetail.userid == userid"
  2631. :class="{
  2632. rightW:
  2633. w.userid == userid ||
  2634. tType == 1 ||
  2635. tType == 4 ||
  2636. w.ateacher == userid,
  2637. }"
  2638. >
  2639. 评分
  2640. </div>
  2641. <img
  2642. class="deleteImg"
  2643. src="../assets/deleteworks.png"
  2644. v-if="
  2645. w.userid == userid || tType == 1 || tType == 4
  2646. "
  2647. @click.stop="deleteWorks(w.wid)"
  2648. alt
  2649. />
  2650. </div>
  2651. <div class="workImg" v-if="w.type == 3">
  2652. <img
  2653. style="cursor: pointer"
  2654. :src="video"
  2655. @click="openVideo(w)"
  2656. alt
  2657. />
  2658. <!-- @click="openVideo(w.works)" -->
  2659. <div
  2660. class="answerScore"
  2661. v-if="w.score"
  2662. @click.stop="openScore(w)"
  2663. :class="{
  2664. rightW:
  2665. w.userid == userid ||
  2666. tType == 1 ||
  2667. tType == 4 ||
  2668. w.ateacher == userid,
  2669. }"
  2670. >
  2671. {{ JSON.parse(w.score).wScore }}分
  2672. </div>
  2673. <div
  2674. class="answerScore"
  2675. @click.stop="openScore(w)"
  2676. v-else-if="courseDetail.userid == userid"
  2677. :class="{
  2678. rightW:
  2679. w.userid == userid ||
  2680. tType == 1 ||
  2681. tType == 4 ||
  2682. w.ateacher == userid,
  2683. }"
  2684. >
  2685. 评分
  2686. </div>
  2687. <img
  2688. class="deleteImg"
  2689. src="../assets/deleteworks.png"
  2690. v-if="
  2691. w.userid == userid || tType == 1 || tType == 4
  2692. "
  2693. @click.stop="deleteWorks(w.wid)"
  2694. alt
  2695. />
  2696. </div>
  2697. <div class="workImg" v-if="w.type == 12">
  2698. <img
  2699. style="cursor: pointer"
  2700. :src="word2"
  2701. @click="downloadFile(w.works)"
  2702. alt
  2703. />
  2704. <!-- @click="openVideo(w.works)" -->
  2705. <div
  2706. class="answerScore"
  2707. v-if="w.score"
  2708. @click.stop="openScore(w)"
  2709. :class="{
  2710. rightW:
  2711. w.userid == userid ||
  2712. tType == 1 ||
  2713. tType == 4 ||
  2714. w.ateacher == userid,
  2715. }"
  2716. >
  2717. {{ JSON.parse(w.score).wScore }}分
  2718. </div>
  2719. <div
  2720. class="answerScore"
  2721. @click.stop="openScore(w)"
  2722. v-else-if="courseDetail.userid == userid"
  2723. :class="{
  2724. rightW:
  2725. w.userid == userid ||
  2726. tType == 1 ||
  2727. tType == 4 ||
  2728. w.ateacher == userid,
  2729. }"
  2730. >
  2731. 评分
  2732. </div>
  2733. <img
  2734. class="deleteImg"
  2735. src="../assets/deleteworks.png"
  2736. v-if="
  2737. w.userid == userid || tType == 1 || tType == 4
  2738. "
  2739. @click.stop="deleteWorks(w.wid)"
  2740. alt
  2741. />
  2742. </div>
  2743. <div class="comment" style="min-width: 200px">
  2744. <div class="worksName">
  2745. <div>{{ w.sName }}</div>
  2746. </div>
  2747. <div class="commentList">
  2748. <div class="commentList">
  2749. <div
  2750. class="commentImg"
  2751. @click="
  2752. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2753. "
  2754. >
  2755. <img
  2756. :src="w.isLikes == true ? likes : noLikes"
  2757. alt=""
  2758. />
  2759. </div>
  2760. <div>{{ w.likesCount }}</div>
  2761. </div>
  2762. <div
  2763. class="commentList"
  2764. style="margin-right: 15px"
  2765. >
  2766. <div
  2767. class="commentImg"
  2768. @click="
  2769. commentOther(
  2770. w,
  2771. toolIndex,
  2772. wIndex,
  2773. null,
  2774. g.id
  2775. )
  2776. "
  2777. >
  2778. <img
  2779. src="../assets/icon/comment/comment.png"
  2780. alt=""
  2781. />
  2782. </div>
  2783. <div>{{ w.commentCount }}</div>
  2784. </div>
  2785. </div>
  2786. </div>
  2787. </div>
  2788. </div>
  2789. <div class="group_work" v-else>暂无提交作业</div>
  2790. </div>
  2791. </div>
  2792. <div
  2793. :id="'tool-' + toolIndex"
  2794. :style="{
  2795. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2796. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2797. }"
  2798. class="worksDetailBox"
  2799. v-if="
  2800. worksStudent.length &&
  2801. worksStudent[toolIndex].length > 0
  2802. "
  2803. >
  2804. <div
  2805. class="works"
  2806. style="
  2807. width: 200px;
  2808. height: 140px;
  2809. margin: 10px 10px 10px 0;
  2810. border-radius: 15px;
  2811. box-shadow: 0 0 6px 1px #dfdada;
  2812. "
  2813. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2814. :key="wIndex"
  2815. :class="w.type == 1 ? 'isTypeOne' : ''"
  2816. >
  2817. <div class="workImg" v-if="w.type == 0">
  2818. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2819. <img
  2820. :src="w.works"
  2821. @click="previewImg(w.works,w)"
  2822. alt
  2823. />
  2824. <div
  2825. class="answerScore"
  2826. v-if="w.score"
  2827. @click.stop="openScore(w)"
  2828. :class="{
  2829. rightW:
  2830. w.userid == userid ||
  2831. tType == 1 ||
  2832. tType == 4 ||
  2833. w.ateacher == userid,
  2834. }"
  2835. >
  2836. {{ JSON.parse(w.score).wScore }}分
  2837. </div>
  2838. <div
  2839. class="answerScore"
  2840. @click.stop="openScore(w)"
  2841. v-else-if="courseDetail.userid == userid"
  2842. :class="{
  2843. rightW:
  2844. w.userid == userid ||
  2845. tType == 1 ||
  2846. tType == 4 ||
  2847. w.ateacher == userid,
  2848. }"
  2849. >
  2850. 评分
  2851. </div>
  2852. <img
  2853. class="deleteImg"
  2854. src="../assets/deleteworks.png"
  2855. v-if="
  2856. w.userid == userid || tType == 1 || tType == 4
  2857. "
  2858. @click.stop="deleteWorks(w.wid)"
  2859. alt
  2860. />
  2861. </div>
  2862. <div class="workImg" v-if="w.type == 1">
  2863. <img :src="word" @click="openFile(w.works,w)" alt />
  2864. <!-- @click="openFile(w.works)" -->
  2865. <div
  2866. class="answerScore"
  2867. v-if="w.score"
  2868. @click.stop="openScore(w)"
  2869. :class="{
  2870. rightW:
  2871. w.userid == userid ||
  2872. tType == 1 ||
  2873. tType == 4 ||
  2874. w.ateacher == userid,
  2875. }"
  2876. >
  2877. {{ JSON.parse(w.score).wScore }}分
  2878. </div>
  2879. <div
  2880. class="answerScore"
  2881. @click.stop="openScore(w)"
  2882. v-else-if="courseDetail.userid == userid"
  2883. :class="{
  2884. rightW:
  2885. w.userid == userid ||
  2886. tType == 1 ||
  2887. tType == 4 ||
  2888. w.ateacher == userid,
  2889. }"
  2890. >
  2891. 评分
  2892. </div>
  2893. <img
  2894. class="deleteImg"
  2895. src="../assets/deleteworks.png"
  2896. v-if="
  2897. w.userid == userid || tType == 1 || tType == 4
  2898. "
  2899. @click.stop="deleteWorks(w.wid)"
  2900. alt
  2901. />
  2902. </div>
  2903. <div class="workImg" v-if="w.type == 3">
  2904. <img
  2905. style="cursor: pointer"
  2906. :src="video"
  2907. @click="openVideo(w)"
  2908. alt
  2909. />
  2910. <!-- @click="openVideo(w.works)" -->
  2911. <div
  2912. class="answerScore"
  2913. v-if="w.score"
  2914. @click.stop="openScore(w)"
  2915. :class="{
  2916. rightW:
  2917. w.userid == userid ||
  2918. tType == 1 ||
  2919. tType == 4 ||
  2920. w.ateacher == userid,
  2921. }"
  2922. >
  2923. {{ JSON.parse(w.score).wScore }}分
  2924. </div>
  2925. <div
  2926. class="answerScore"
  2927. @click.stop="openScore(w)"
  2928. v-else-if="courseDetail.userid == userid"
  2929. :class="{
  2930. rightW:
  2931. w.userid == userid ||
  2932. tType == 1 ||
  2933. tType == 4 ||
  2934. w.ateacher == userid,
  2935. }"
  2936. >
  2937. 评分
  2938. </div>
  2939. <img
  2940. class="deleteImg"
  2941. src="../assets/deleteworks.png"
  2942. v-if="
  2943. w.userid == userid || tType == 1 || tType == 4
  2944. "
  2945. @click.stop="deleteWorks(w.wid)"
  2946. alt
  2947. />
  2948. </div>
  2949. <div class="workImg" v-if="w.type == 12">
  2950. <img
  2951. style="cursor: pointer"
  2952. :src="word2"
  2953. @click="downloadFile(w.works)"
  2954. alt
  2955. />
  2956. <!-- @click="openVideo(w.works)" -->
  2957. <div
  2958. class="answerScore"
  2959. v-if="w.score"
  2960. @click.stop="openScore(w)"
  2961. :class="{
  2962. rightW:
  2963. w.userid == userid ||
  2964. tType == 1 ||
  2965. tType == 4 ||
  2966. w.ateacher == userid,
  2967. }"
  2968. >
  2969. {{ JSON.parse(w.score).wScore }}分
  2970. </div>
  2971. <div
  2972. class="answerScore"
  2973. @click.stop="openScore(w)"
  2974. v-else-if="courseDetail.userid == userid"
  2975. :class="{
  2976. rightW:
  2977. w.userid == userid ||
  2978. tType == 1 ||
  2979. tType == 4 ||
  2980. w.ateacher == userid,
  2981. }"
  2982. >
  2983. 评分
  2984. </div>
  2985. <img
  2986. class="deleteImg"
  2987. src="../assets/deleteworks.png"
  2988. v-if="
  2989. w.userid == userid || tType == 1 || tType == 4
  2990. "
  2991. @click.stop="deleteWorks(w.wid)"
  2992. alt
  2993. />
  2994. </div>
  2995. <div class="comment" style="min-width: 200px">
  2996. <div class="worksName">
  2997. <div>{{ w.sName }}</div>
  2998. </div>
  2999. <div class="commentList">
  3000. <div class="commentList">
  3001. <div
  3002. class="commentImg"
  3003. @click="
  3004. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3005. "
  3006. >
  3007. <img
  3008. :src="w.isLikes == true ? likes : noLikes"
  3009. alt=""
  3010. />
  3011. </div>
  3012. <div>{{ w.likesCount }}</div>
  3013. </div>
  3014. <div class="commentList" style="margin-right: 15px">
  3015. <div
  3016. class="commentImg"
  3017. @click="commentOther(w, toolIndex, wIndex)"
  3018. >
  3019. <img
  3020. src="../assets/icon/comment/comment.png"
  3021. alt=""
  3022. />
  3023. </div>
  3024. <div>{{ w.commentCount }}</div>
  3025. </div>
  3026. </div>
  3027. </div>
  3028. </div>
  3029. </div>
  3030. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3031. 未提交
  3032. </div>
  3033. <div
  3034. class="noWorksS"
  3035. v-if="noWorksS && noWorksS[toolIndex].length"
  3036. >
  3037. <div
  3038. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3039. :key="sIndex"
  3040. class="noWorksName"
  3041. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3042. >
  3043. <el-tooltip effect="dark" :content="s.student" placement="top">
  3044. <span>{{ s.student }}</span>
  3045. </el-tooltip>
  3046. </div>
  3047. </div>
  3048. </div>
  3049. <div
  3050. v-if="
  3051. tType &&
  3052. ((tType == 2 && sIsOpen == true) ||
  3053. tType == 1 ||
  3054. tType == 4) &&
  3055. tool.tool.indexOf(70) != -1
  3056. "
  3057. class="worksBox"
  3058. >
  3059. <div
  3060. class="zuoyeYulan"
  3061. v-if="
  3062. (worksStudent.length &&
  3063. worksStudent[toolIndex].length > 0)
  3064. "
  3065. >
  3066. <div class="worksTop">
  3067. <div>作业预览</div>
  3068. <div
  3069. class="corOpen"
  3070. @click="contract(toolIndex)"
  3071. v-if="
  3072. (isCloseList[toolIndex].isCloseBoolean) &&
  3073. isCloseList[toolIndex].isClose == 0
  3074. "
  3075. >
  3076. 折叠
  3077. </div>
  3078. <div
  3079. class="corOpen"
  3080. @click="contract(toolIndex)"
  3081. v-if="isCloseList[toolIndex].isClose == 1"
  3082. >
  3083. 展开
  3084. </div>
  3085. </div>
  3086. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3087. </div>
  3088. <div
  3089. :id="'tool-' + toolIndex"
  3090. :style="{
  3091. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3092. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3093. }"
  3094. class="worksDetailBox"
  3095. v-if="
  3096. worksStudent.length &&
  3097. worksStudent[toolIndex].length > 0
  3098. "
  3099. >
  3100. <div
  3101. class="works"
  3102. style="
  3103. width: 200px;
  3104. height: 140px;
  3105. margin: 10px 10px 10px 0;
  3106. border-radius: 15px;
  3107. box-shadow: 0 0 6px 1px #dfdada;
  3108. "
  3109. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3110. :key="wIndex"
  3111. :class="w.type == 1 ? 'isTypeOne' : ''"
  3112. >
  3113. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3114. <img :src="word" alt />
  3115. <img
  3116. class="deleteImg"
  3117. src="../assets/deleteworks.png"
  3118. v-if="
  3119. w.userid == userid || tType == 1 || tType == 4
  3120. "
  3121. @click.stop="deleteWorks(w.wid)"
  3122. alt
  3123. />
  3124. </div>
  3125. <div class="comment" style="min-width: 200px">
  3126. <div class="worksName">
  3127. <div>{{ w.sName }}</div>
  3128. </div>
  3129. </div>
  3130. </div>
  3131. </div>
  3132. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3133. 未提交
  3134. </div>
  3135. <div
  3136. class="noWorksS"
  3137. v-if="noWorksS && noWorksS[toolIndex].length"
  3138. >
  3139. <div
  3140. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3141. :key="sIndex"
  3142. class="noWorksName"
  3143. >
  3144. <el-tooltip effect="dark" :content="s.student" placement="top">
  3145. <span>{{ s.student }}</span>
  3146. </el-tooltip>
  3147. </div>
  3148. </div>
  3149. </div>
  3150. <div
  3151. v-if="
  3152. tType &&
  3153. tType == 2 &&
  3154. !sIsOpen &&
  3155. tool.tool.indexOf(70) != -1
  3156. "
  3157. class="worksBox"
  3158. >
  3159. <div
  3160. class="zuoyeYulan"
  3161. v-if="workStudent[toolIndex].length > 0"
  3162. >
  3163. <span class="worksTitle">作业预览</span>
  3164. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3165. </div>
  3166. <div
  3167. class="worksDetailBox"
  3168. v-if="workStudent[toolIndex].length > 0"
  3169. >
  3170. <div
  3171. class="works"
  3172. style="
  3173. width: 200px;
  3174. height: 140px;
  3175. margin: 10px 10px 10px 0;
  3176. box-shadow: 0 0 6px 1px #dfdada;
  3177. "
  3178. v-for="(w, wIndex) in workStudent[toolIndex]"
  3179. :key="wIndex"
  3180. >
  3181. <div class="workImg" @click.stop="openScore(w,toolIndex)">
  3182. <img :src="word" alt />
  3183. <img
  3184. class="deleteImg"
  3185. src="../assets/deleteworks.png"
  3186. v-if="
  3187. w.userid == userid || tType == 1 || tType == 4
  3188. "
  3189. @click.stop="deleteWorks(w.wid)"
  3190. alt
  3191. />
  3192. </div>
  3193. <div class="worksName">
  3194. <div>{{ w.sName }}</div>
  3195. </div>
  3196. </div>
  3197. </div>
  3198. </div>
  3199. <div
  3200. v-if="
  3201. tType &&
  3202. ((tType == 2 && sIsOpen == true) ||
  3203. tType == 1 ||
  3204. tType == 4) &&
  3205. tool.tool.indexOf(32) != -1
  3206. "
  3207. class="worksBox"
  3208. >
  3209. <div
  3210. class="zuoyeYulan"
  3211. v-if="
  3212. worksStudent.length &&
  3213. worksStudent[toolIndex].length > 0
  3214. "
  3215. >
  3216. <div class="worksTop">
  3217. <div>作业预览</div>
  3218. <div
  3219. class="corOpen"
  3220. @click="contract(toolIndex)"
  3221. v-if="
  3222. (isCloseList[toolIndex].isCloseBoolean) &&
  3223. isCloseList[toolIndex].isClose == 0
  3224. "
  3225. >
  3226. 折叠
  3227. </div>
  3228. <div
  3229. class="corOpen"
  3230. @click="contract(toolIndex)"
  3231. v-if="isCloseList[toolIndex].isClose == 1"
  3232. >
  3233. 展开
  3234. </div>
  3235. </div>
  3236. </div>
  3237. <div
  3238. :id="'tool-' + toolIndex"
  3239. class="worksDetailBox"
  3240. :style="{
  3241. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3242. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3243. }"
  3244. v-if="
  3245. worksStudent.length &&
  3246. worksStudent[toolIndex].length > 0
  3247. "
  3248. >
  3249. <div
  3250. class="works"
  3251. style="
  3252. width: 200px;
  3253. height: 140px;
  3254. margin: 10px 10px 10px 0;
  3255. border-radius: 15px;
  3256. box-shadow: 0 0 6px 1px #dfdada;
  3257. "
  3258. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3259. :key="wIndex"
  3260. :class="w.type == 1 ? 'isTypeOne' : ''"
  3261. >
  3262. <div class="workImg">
  3263. <img
  3264. :src="word2"
  3265. @click="downloadFile(w.works)"
  3266. alt
  3267. />
  3268. <div
  3269. class="answerScore"
  3270. v-if="w.score"
  3271. @click.stop="openScore(w)"
  3272. :class="{
  3273. rightW:
  3274. w.userid == userid ||
  3275. tType == 1 ||
  3276. tType == 4 ||
  3277. w.ateacher == userid,
  3278. }"
  3279. >
  3280. {{ JSON.parse(w.score).wScore }}分
  3281. </div>
  3282. <div
  3283. class="answerScore"
  3284. @click.stop="openScore(w)"
  3285. v-else-if="courseDetail.userid == userid"
  3286. :class="{
  3287. rightW:
  3288. w.userid == userid ||
  3289. tType == 1 ||
  3290. tType == 4 ||
  3291. w.ateacher == userid,
  3292. }"
  3293. >
  3294. 评分
  3295. </div>
  3296. <img
  3297. class="deleteImg"
  3298. src="../assets/deleteworks.png"
  3299. v-if="
  3300. w.userid == userid || tType == 1 || tType == 4
  3301. "
  3302. @click.stop="deleteWorks(w.wid)"
  3303. alt
  3304. />
  3305. </div>
  3306. <div class="comment" style="min-width: 200px">
  3307. <div class="worksName">
  3308. <div>{{ w.sName }}</div>
  3309. </div>
  3310. <div class="commentList">
  3311. <div class="commentList">
  3312. <div
  3313. class="commentImg"
  3314. @click="
  3315. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3316. "
  3317. >
  3318. <img
  3319. :src="w.isLikes == true ? likes : noLikes"
  3320. alt=""
  3321. />
  3322. </div>
  3323. <div>{{ w.likesCount }}</div>
  3324. </div>
  3325. <div class="commentList" style="margin-right: 15px">
  3326. <div
  3327. class="commentImg"
  3328. @click="commentOther(w, toolIndex, wIndex)"
  3329. >
  3330. <img
  3331. src="../assets/icon/comment/comment.png"
  3332. alt=""
  3333. />
  3334. </div>
  3335. <div>{{ w.commentCount }}</div>
  3336. </div>
  3337. </div>
  3338. </div>
  3339. </div>
  3340. </div>
  3341. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3342. 未提交
  3343. </div>
  3344. <div
  3345. class="noWorksS"
  3346. v-if="noWorksS && noWorksS[toolIndex].length"
  3347. >
  3348. <div
  3349. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3350. :key="sIndex"
  3351. class="noWorksName"
  3352. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3353. >
  3354. <el-tooltip effect="dark" :content="s.student" placement="top">
  3355. <span>{{ s.student }}</span>
  3356. </el-tooltip>
  3357. </div>
  3358. </div>
  3359. </div>
  3360. <div
  3361. v-if="
  3362. tType &&
  3363. ((tType == 2 && sIsOpen == true) ||
  3364. tType == 1 ||
  3365. tType == 4) &&
  3366. tool.tool.indexOf(57) != -1
  3367. "
  3368. class="worksBox"
  3369. >
  3370. <div
  3371. class="zuoyeYulan"
  3372. v-if="
  3373. worksStudent.length &&
  3374. worksStudent[toolIndex].length > 0
  3375. "
  3376. >
  3377. <div class="worksTop">
  3378. <div>作业预览</div>
  3379. <div
  3380. class="corOpen"
  3381. @click="contract(toolIndex)"
  3382. v-if="
  3383. (isCloseList[toolIndex].isCloseBoolean) &&
  3384. isCloseList[toolIndex].isClose == 0
  3385. "
  3386. >
  3387. 折叠
  3388. </div>
  3389. <div
  3390. class="corOpen"
  3391. @click="contract(toolIndex)"
  3392. v-if="isCloseList[toolIndex].isClose == 1"
  3393. >
  3394. 展开
  3395. </div>
  3396. </div>
  3397. </div>
  3398. <div
  3399. :id="'tool-' + toolIndex"
  3400. class="worksDetailBox"
  3401. :style="{
  3402. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3403. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3404. }"
  3405. v-if="
  3406. worksStudent.length &&
  3407. worksStudent[toolIndex].length > 0
  3408. "
  3409. >
  3410. <div
  3411. class="works"
  3412. style="
  3413. width: 200px;
  3414. height: 140px;
  3415. margin: 10px 10px 10px 0;
  3416. border-radius: 15px;
  3417. box-shadow: 0 0 6px 1px #dfdada;
  3418. "
  3419. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3420. :key="wIndex"
  3421. :class="w.type == 1 ? 'isTypeOne' : ''"
  3422. >
  3423. <div class="workImg">
  3424. <img
  3425. :src="word2"
  3426. @click="downloadFile(w.works)"
  3427. v-if="w.type == 12"
  3428. alt
  3429. />
  3430. <img
  3431. :src="word2"
  3432. @click="
  3433. openCocoPi(57, toolIndex, w.userid, w.sName)
  3434. "
  3435. v-else-if="w.type == 15"
  3436. alt
  3437. />
  3438. <div
  3439. class="answerScore"
  3440. v-if="w.score"
  3441. @click.stop="openScore(w)"
  3442. :class="{
  3443. rightW:
  3444. w.userid == userid ||
  3445. tType == 1 ||
  3446. tType == 4 ||
  3447. w.ateacher == userid,
  3448. }"
  3449. >
  3450. {{ JSON.parse(w.score).wScore }}分
  3451. </div>
  3452. <div
  3453. class="answerScore"
  3454. @click.stop="openScore(w)"
  3455. v-else-if="courseDetail.userid == userid"
  3456. :class="{
  3457. rightW:
  3458. w.userid == userid ||
  3459. tType == 1 ||
  3460. tType == 4 ||
  3461. w.ateacher == userid,
  3462. }"
  3463. >
  3464. 评分
  3465. </div>
  3466. <img
  3467. class="deleteImg"
  3468. src="../assets/deleteworks.png"
  3469. v-if="
  3470. w.userid == userid || tType == 1 || tType == 4
  3471. "
  3472. @click.stop="deleteWorks(w.wid)"
  3473. alt
  3474. />
  3475. </div>
  3476. <div class="comment" style="min-width: 200px">
  3477. <div class="worksName">
  3478. <div>{{ w.sName }}</div>
  3479. </div>
  3480. <div class="commentList">
  3481. <div class="commentList">
  3482. <div
  3483. class="commentImg"
  3484. @click="
  3485. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3486. "
  3487. >
  3488. <img
  3489. :src="w.isLikes == true ? likes : noLikes"
  3490. alt=""
  3491. />
  3492. </div>
  3493. <div>{{ w.likesCount }}</div>
  3494. </div>
  3495. <div class="commentList" style="margin-right: 15px">
  3496. <div
  3497. class="commentImg"
  3498. @click="commentOther(w, toolIndex, wIndex)"
  3499. >
  3500. <img
  3501. src="../assets/icon/comment/comment.png"
  3502. alt=""
  3503. />
  3504. </div>
  3505. <div>{{ w.commentCount }}</div>
  3506. </div>
  3507. </div>
  3508. </div>
  3509. </div>
  3510. </div>
  3511. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3512. 未提交
  3513. </div>
  3514. <div
  3515. class="noWorksS"
  3516. v-if="noWorksS && noWorksS[toolIndex].length"
  3517. >
  3518. <div
  3519. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3520. :key="sIndex"
  3521. class="noWorksName"
  3522. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3523. >
  3524. <el-tooltip effect="dark" :content="s.student" placement="top">
  3525. <span>{{ s.student }}</span>
  3526. </el-tooltip>
  3527. </div>
  3528. </div>
  3529. </div>
  3530. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3531. <div
  3532. class="zuoyeYulan"
  3533. v-if="
  3534. worksStudent.length &&
  3535. worksStudent[toolIndex].length > 0
  3536. "
  3537. >
  3538. <span class="worksTitle">作业预览</span>
  3539. <div
  3540. class="corOpen"
  3541. @click="contract(toolIndex)"
  3542. v-if="
  3543. (isCloseList[toolIndex].isCloseBoolean) &&
  3544. isCloseList[toolIndex].isClose == 0
  3545. "
  3546. >
  3547. 折叠
  3548. </div>
  3549. <div
  3550. class="corOpen"
  3551. @click="contract(toolIndex)"
  3552. v-if="isCloseList[toolIndex].isClose == 1"
  3553. >
  3554. 展开
  3555. </div>
  3556. </div>
  3557. <div
  3558. :id="'tool-' + toolIndex"
  3559. :style="{
  3560. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3561. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3562. }"
  3563. class="worksDetailBox"
  3564. v-if="
  3565. worksStudent.length &&
  3566. worksStudent[toolIndex].length > 0
  3567. "
  3568. >
  3569. <div
  3570. class="works"
  3571. style="
  3572. width: 200px;
  3573. height: 140px;
  3574. margin: 10px 10px 10px 0;
  3575. border-radius: 15px;
  3576. box-shadow: 0 0 6px 1px #dfdada;
  3577. "
  3578. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3579. :key="wIndex"
  3580. :class="w.type == 1 ? 'isTypeOne' : ''"
  3581. >
  3582. <div class="workImg" v-if="w.type == 0">
  3583. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3584. <img
  3585. :src="w.works"
  3586. @click="previewImg(w.works,w)"
  3587. alt
  3588. />
  3589. <div
  3590. class="answerScore"
  3591. v-if="w.score"
  3592. @click.stop="openScore(w)"
  3593. :class="{
  3594. rightW:
  3595. w.userid == userid ||
  3596. tType == 1 ||
  3597. tType == 4 ||
  3598. w.ateacher == userid,
  3599. }"
  3600. >
  3601. {{ JSON.parse(w.score).wScore }}分
  3602. </div>
  3603. <div
  3604. class="answerScore"
  3605. @click.stop="openScore(w)"
  3606. v-else-if="courseDetail.userid == userid"
  3607. :class="{
  3608. rightW:
  3609. w.userid == userid ||
  3610. tType == 1 ||
  3611. tType == 4 ||
  3612. w.ateacher == userid,
  3613. }"
  3614. >
  3615. 评分
  3616. </div>
  3617. <img
  3618. class="deleteImg"
  3619. src="../assets/deleteworks.png"
  3620. v-if="
  3621. w.userid == userid || tType == 1 || tType == 4
  3622. "
  3623. @click.stop="deleteWorks(w.wid)"
  3624. alt
  3625. />
  3626. </div>
  3627. <div
  3628. class="workImg"
  3629. style="cursor: pointer"
  3630. v-if="w.type == 1"
  3631. >
  3632. <img :src="word" @click="openFile(w.works,w)" alt />
  3633. <!-- @click="openFile(w.works)" -->
  3634. <div
  3635. class="answerScore"
  3636. v-if="w.score"
  3637. @click.stop="openScore(w)"
  3638. :class="{
  3639. rightW:
  3640. w.userid == userid ||
  3641. tType == 1 ||
  3642. tType == 4 ||
  3643. w.ateacher == userid,
  3644. }"
  3645. >
  3646. {{ JSON.parse(w.score).wScore }}分
  3647. </div>
  3648. <div
  3649. class="answerScore"
  3650. @click.stop="openScore(w)"
  3651. v-else-if="courseDetail.userid == userid"
  3652. :class="{
  3653. rightW:
  3654. w.userid == userid ||
  3655. tType == 1 ||
  3656. tType == 4 ||
  3657. w.ateacher == userid,
  3658. }"
  3659. >
  3660. 评分
  3661. </div>
  3662. <img
  3663. class="deleteImg"
  3664. src="../assets/deleteworks.png"
  3665. v-if="
  3666. w.userid == userid || tType == 1 || tType == 4
  3667. "
  3668. @click.stop="deleteWorks(w.wid)"
  3669. alt
  3670. />
  3671. </div>
  3672. <div class="workImg" v-if="w.type == 3">
  3673. <img
  3674. style="cursor: pointer"
  3675. :src="video"
  3676. @click="openVideo(w)"
  3677. alt
  3678. />
  3679. <!-- @click="openVideo(w.works)" -->
  3680. <div
  3681. class="answerScore"
  3682. v-if="w.score"
  3683. @click.stop="openScore(w)"
  3684. :class="{
  3685. rightW:
  3686. w.userid == userid ||
  3687. tType == 1 ||
  3688. tType == 4 ||
  3689. w.ateacher == userid,
  3690. }"
  3691. >
  3692. {{ JSON.parse(w.score).wScore }}分
  3693. </div>
  3694. <div
  3695. class="answerScore"
  3696. @click.stop="openScore(w)"
  3697. v-else-if="courseDetail.userid == userid"
  3698. :class="{
  3699. rightW:
  3700. w.userid == userid ||
  3701. tType == 1 ||
  3702. tType == 4 ||
  3703. w.ateacher == userid,
  3704. }"
  3705. >
  3706. 评分
  3707. </div>
  3708. <img
  3709. class="deleteImg"
  3710. src="../assets/deleteworks.png"
  3711. v-if="
  3712. w.userid == userid || tType == 1 || tType == 4
  3713. "
  3714. @click.stop="deleteWorks(w.wid)"
  3715. alt
  3716. />
  3717. </div>
  3718. <div class="comment" style="min-width: 200px">
  3719. <div class="worksName">
  3720. <div
  3721. style="cursor: pointer"
  3722. @click="
  3723. openSname(w.sName, w.wid, toolIndex, w.userid)
  3724. "
  3725. >
  3726. {{ w.sName }}
  3727. </div>
  3728. </div>
  3729. <div class="commentList">
  3730. <div class="commentList">
  3731. <div
  3732. class="commentImg"
  3733. @click="
  3734. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3735. "
  3736. >
  3737. <img
  3738. :src="w.isLikes == true ? likes : noLikes"
  3739. alt=""
  3740. />
  3741. </div>
  3742. <div>{{ w.likesCount }}</div>
  3743. </div>
  3744. <div class="commentList" style="margin-right: 15px">
  3745. <div
  3746. class="commentImg"
  3747. @click="commentOther(w, toolIndex, wIndex)"
  3748. >
  3749. <img
  3750. src="../assets/icon/comment/comment.png"
  3751. alt=""
  3752. />
  3753. </div>
  3754. <div>{{ w.commentCount }}</div>
  3755. </div>
  3756. </div>
  3757. </div>
  3758. </div>
  3759. </div>
  3760. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3761. 未提交
  3762. </div>
  3763. <div
  3764. class="noWorksS"
  3765. v-if="noWorksS && noWorksS[toolIndex].length"
  3766. >
  3767. <div
  3768. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3769. :key="sIndex"
  3770. class="noWorksName"
  3771. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3772. >
  3773. <el-tooltip effect="dark" :content="s.student" placement="top">
  3774. <span>{{ s.student }}</span>
  3775. </el-tooltip>
  3776. </div>
  3777. </div>
  3778. </div>
  3779. <div
  3780. v-if="
  3781. tType &&
  3782. ((tType == 2 && sIsOpen == true) ||
  3783. tType == 1 ||
  3784. tType == 4) &&
  3785. tool.tool.indexOf(4) != -1 &&
  3786. (tool.askJson[0].answer ||
  3787. tool.askJson[0].answer === 0) &&
  3788. checkJson[toolIndex].length
  3789. "
  3790. class="xuan_right_box"
  3791. >
  3792. <div
  3793. class="tool_right_box"
  3794. v-for="(item, index) in tool.askJson"
  3795. :key="index"
  3796. >
  3797. <div style="width: calc(100% - 30px);">
  3798. <el-tooltip
  3799. effect="light"
  3800. :content="index + 1 + '、' + item.askstitle"
  3801. placement="top"
  3802. popper-class="text_tooltip"
  3803. >
  3804. <div
  3805. style="
  3806. width: calc(100% - 130px);
  3807. display: block;
  3808. white-space: nowrap;
  3809. overflow: hidden;
  3810. text-overflow: ellipsis;
  3811. word-break: break-word;
  3812. cursor: pointer;
  3813. "
  3814. >
  3815. {{ index + 1 + "、" + item.askstitle }}
  3816. </div>
  3817. </el-tooltip>
  3818. </div>
  3819. <div class="right_box_xuan">
  3820. <span>正确率</span>
  3821. <span>{{
  3822. (checkJson[toolIndex][index].right
  3823. ? checkJson[toolIndex][index].right
  3824. : 0) + "%"
  3825. }}</span>
  3826. </div>
  3827. </div>
  3828. </div>
  3829. <div
  3830. class="xuan_right_box"
  3831. style="background: unset; padding: 0 10px"
  3832. v-if="
  3833. tType &&
  3834. ((tType == 2 && sIsOpen == true) ||
  3835. tType == 1 ||
  3836. tType == 4) &&
  3837. tool.tool.indexOf(4) != -1
  3838. "
  3839. >
  3840. <AskStatic
  3841. v-if="
  3842. worksStudent.length &&
  3843. worksStudent[toolIndex].length > 0
  3844. "
  3845. :askJSON="tool"
  3846. :checkJson="checkJson[toolIndex]"
  3847. ></AskStatic>
  3848. </div>
  3849. <div
  3850. v-if="
  3851. tType &&
  3852. ((tType == 2 && sIsOpen == true) ||
  3853. tType == 1 ||
  3854. tType == 4) &&
  3855. tool.tool.indexOf(4) != -1
  3856. "
  3857. class="worksBox"
  3858. >
  3859. <div
  3860. class="zuoyeYulan"
  3861. v-if="
  3862. worksStudent.length &&
  3863. worksStudent[toolIndex].length > 0
  3864. "
  3865. >
  3866. <div class="worksTop">
  3867. <div>作业预览</div>
  3868. <div
  3869. class="corOpen"
  3870. @click="contract(toolIndex)"
  3871. v-if="
  3872. (isCloseList[toolIndex].isCloseBoolean) &&
  3873. isCloseList[toolIndex].isClose == 0
  3874. "
  3875. >
  3876. 折叠
  3877. </div>
  3878. <div
  3879. class="corOpen"
  3880. @click="contract(toolIndex)"
  3881. v-if="isCloseList[toolIndex].isClose == 1"
  3882. >
  3883. 展开
  3884. </div>
  3885. </div>
  3886. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3887. </div>
  3888. <div>
  3889. <div
  3890. :id="'tool-' + toolIndex"
  3891. :style="{
  3892. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3893. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3894. }"
  3895. class="worksDetailBox"
  3896. v-if="
  3897. worksStudent.length &&
  3898. worksStudent[toolIndex].length > 0
  3899. "
  3900. >
  3901. <div
  3902. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3903. :key="wIndex"
  3904. class="isWorksName2"
  3905. @click="
  3906. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3907. "
  3908. >
  3909. {{ w.sName }}
  3910. <img
  3911. class="deleteImg deleteImg2"
  3912. src="../assets/deleteworks.png"
  3913. v-if="
  3914. w.userid == userid || tType == 1 || tType == 4
  3915. "
  3916. @click.stop="deleteWorks(w.wid)"
  3917. alt
  3918. />
  3919. </div>
  3920. <!-- <div class="works" style="
  3921. width: 200px;
  3922. height: 140px;
  3923. border-radius: 10px;
  3924. box-shadow: 0 0 6px 1px #dfdada;
  3925. overflow: hidden;
  3926. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3927. <div class="workImg">
  3928. <img src="../assets/icon/works/noImg.png" @click="
  3929. openTools(
  3930. 4,
  3931. toolIndex,
  3932. taskCount,
  3933. w.works,
  3934. w.sName
  3935. )
  3936. " alt />
  3937. </div>
  3938. <div class="worksName">
  3939. <div>{{ w.sName }}</div>
  3940. <div>{{ w.time }}</div>
  3941. </div>
  3942. </div> -->
  3943. </div>
  3944. </div>
  3945. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3946. 未提交
  3947. </div>
  3948. <div
  3949. class="noWorksS"
  3950. v-if="noWorksS && noWorksS[toolIndex].length"
  3951. >
  3952. <div
  3953. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3954. :key="sIndex"
  3955. class="noWorksName"
  3956. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3957. >
  3958. <el-tooltip effect="dark" :content="s.student" placement="top">
  3959. <span>{{ s.student }}</span>
  3960. </el-tooltip>
  3961. </div>
  3962. </div>
  3963. </div>
  3964. <div
  3965. v-if="
  3966. tType &&
  3967. ((tType == 2 && sIsOpen == true) ||
  3968. tType == 1 ||
  3969. tType == 4) &&
  3970. tool.tool.indexOf(45) != -1 &&
  3971. (tool.testJson.testJson[0].answer ||
  3972. tool.testJson.testJson[0].answer === 0) &&
  3973. checkJson[toolIndex].length
  3974. "
  3975. class="xuan_right_box"
  3976. >
  3977. <div
  3978. class="tool_right_box"
  3979. v-for="(item, index) in tool.testJson.testJson"
  3980. :key="index"
  3981. >
  3982. <div class="right_box_xuan" style="margin-right: 10px">
  3983. <span>正确率</span>
  3984. <span>{{
  3985. (checkJson[toolIndex][index].right
  3986. ? checkJson[toolIndex][index].right
  3987. : 0) + "%"
  3988. }}</span>
  3989. </div>
  3990. <div style="width: calc(100% - 30px);">
  3991. <el-tooltip
  3992. effect="light"
  3993. :content="index + 1 + '、' + item.teststitle"
  3994. placement="top"
  3995. popper-class="text_tooltip"
  3996. >
  3997. <div
  3998. style="
  3999. width: calc(100% - 130px);
  4000. display: block;
  4001. white-space: nowrap;
  4002. overflow: hidden;
  4003. text-overflow: ellipsis;
  4004. word-break: break-word;
  4005. cursor: pointer;
  4006. "
  4007. >
  4008. {{ index + 1 + "、" + item.teststitle }}
  4009. </div>
  4010. </el-tooltip>
  4011. </div>
  4012. </div>
  4013. </div>
  4014. <div
  4015. class="xuan_right_box"
  4016. style="background: unset; padding: 0 10px; width: 91.5%"
  4017. v-if="
  4018. tType &&
  4019. ((tType == 2 && sIsOpen == true) ||
  4020. tType == 1 ||
  4021. tType == 4) &&
  4022. tool.tool.indexOf(45) != -1
  4023. "
  4024. >
  4025. <AskStatic2
  4026. v-if="
  4027. worksStudent.length &&
  4028. worksStudent[toolIndex].length > 0
  4029. "
  4030. :askJSON="tool"
  4031. :checkJson="checkJson[toolIndex]"
  4032. ></AskStatic2>
  4033. </div>
  4034. <div
  4035. v-if="
  4036. tType &&
  4037. ((tType == 2 && sIsOpen == true) ||
  4038. tType == 1 ||
  4039. tType == 4) &&
  4040. tool.tool.indexOf(45) != -1
  4041. "
  4042. class="worksBox"
  4043. >
  4044. <div
  4045. class="zuoyeYulan"
  4046. v-if="
  4047. worksStudent.length &&
  4048. worksStudent[toolIndex].length > 0
  4049. "
  4050. >
  4051. <div class="worksTop">
  4052. <div>作业预览</div>
  4053. <div
  4054. class="corOpen"
  4055. @click="contract(toolIndex)"
  4056. v-if="
  4057. (isCloseList[toolIndex].isCloseBoolean) &&
  4058. isCloseList[toolIndex].isClose == 0
  4059. "
  4060. >
  4061. 折叠
  4062. </div>
  4063. <div
  4064. class="corOpen"
  4065. @click="contract(toolIndex)"
  4066. v-if="isCloseList[toolIndex].isClose == 1"
  4067. >
  4068. 展开
  4069. </div>
  4070. </div>
  4071. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4072. </div>
  4073. <div>
  4074. <div
  4075. :id="'tool-' + toolIndex"
  4076. :style="{
  4077. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4078. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4079. }"
  4080. class="worksDetailBox"
  4081. v-if="
  4082. worksStudent.length &&
  4083. worksStudent[toolIndex].length > 0
  4084. "
  4085. >
  4086. <div
  4087. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4088. :key="wIndex"
  4089. class="isWorksName2"
  4090. @click="
  4091. openTools(
  4092. 45,
  4093. toolIndex,
  4094. taskCount,
  4095. w.works,
  4096. w.sName
  4097. )
  4098. "
  4099. >
  4100. {{ w.sName }}
  4101. <img
  4102. class="deleteImg deleteImg2"
  4103. src="../assets/deleteworks.png"
  4104. v-if="
  4105. w.userid == userid || tType == 1 || tType == 4
  4106. "
  4107. @click.stop="deleteWorks(w.wid)"
  4108. alt
  4109. />
  4110. </div>
  4111. </div>
  4112. </div>
  4113. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4114. 未提交
  4115. </div>
  4116. <div
  4117. class="noWorksS"
  4118. v-if="noWorksS && noWorksS[toolIndex].length"
  4119. >
  4120. <div
  4121. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4122. :key="sIndex"
  4123. class="noWorksName"
  4124. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4125. >
  4126. <el-tooltip effect="dark" :content="s.student" placement="top">
  4127. <span>{{ s.student }}</span>
  4128. </el-tooltip>
  4129. </div>
  4130. </div>
  4131. </div>
  4132. <div
  4133. v-if="
  4134. tType &&
  4135. ((tType == 2 && sIsOpen == true) ||
  4136. tType == 1 ||
  4137. tType == 4) &&
  4138. tool.tool.indexOf(69) != -1
  4139. "
  4140. class="worksBox"
  4141. >
  4142. <div
  4143. class="zuoyeYulan"
  4144. v-if="
  4145. worksStudent.length &&
  4146. worksStudent[toolIndex].length > 0
  4147. "
  4148. >
  4149. <div class="worksTop">
  4150. <div>作业预览</div>
  4151. <div
  4152. class="corOpen"
  4153. @click="contract(toolIndex)"
  4154. v-if="
  4155. (isCloseList[toolIndex].isCloseBoolean) &&
  4156. isCloseList[toolIndex].isClose == 0
  4157. "
  4158. >
  4159. 折叠
  4160. </div>
  4161. <div
  4162. class="corOpen"
  4163. @click="contract(toolIndex)"
  4164. v-if="isCloseList[toolIndex].isClose == 1"
  4165. >
  4166. 展开
  4167. </div>
  4168. </div>
  4169. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4170. </div>
  4171. <div>
  4172. <div
  4173. :id="'tool-' + toolIndex"
  4174. :style="{
  4175. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4176. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4177. }"
  4178. class="worksDetailBox"
  4179. v-if="
  4180. worksStudent.length &&
  4181. worksStudent[toolIndex].length > 0
  4182. "
  4183. >
  4184. <div
  4185. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4186. :key="wIndex"
  4187. class="isWorksName2"
  4188. style="width: 160px;height: 65px;line-height: 65px;"
  4189. @click="
  4190. openTools(
  4191. 69,
  4192. toolIndex,
  4193. taskCount,
  4194. w.works,
  4195. w.sName,
  4196. w.wid
  4197. )
  4198. "
  4199. >
  4200. {{ w.sName }}
  4201. <img
  4202. class="deleteImg1"
  4203. src="../assets/evaEnglish.png"
  4204. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4205. alt
  4206. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4207. />
  4208. <img
  4209. class="deleteImg deleteImg2"
  4210. src="../assets/deleteworks.png"
  4211. v-if="
  4212. w.userid == userid || tType == 1 || tType == 4
  4213. "
  4214. @click.stop="deleteWorks(w.wid)"
  4215. alt
  4216. />
  4217. </div>
  4218. </div>
  4219. </div>
  4220. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4221. 未提交
  4222. </div>
  4223. <div
  4224. class="noWorksS"
  4225. v-if="noWorksS && noWorksS[toolIndex].length"
  4226. >
  4227. <div
  4228. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4229. :key="sIndex"
  4230. class="noWorksName"
  4231. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4232. >
  4233. <el-tooltip effect="dark" :content="s.student" placement="top">
  4234. <span>{{ s.student }}</span>
  4235. </el-tooltip>
  4236. </div>
  4237. </div>
  4238. </div>
  4239. <div
  4240. v-if="
  4241. tType &&
  4242. ((tType == 2 && sIsOpen == true) ||
  4243. tType == 1 ||
  4244. tType == 4) &&
  4245. tool.tool.indexOf(15) != -1
  4246. "
  4247. class="worksBox"
  4248. >
  4249. <div
  4250. class="zuoyeYulan"
  4251. v-if="
  4252. (worksStudent.length &&
  4253. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4254. "
  4255. >
  4256. <div class="worksTop">
  4257. <div>作业预览</div>
  4258. <div
  4259. class="corOpen"
  4260. @click="contract(toolIndex)"
  4261. v-if="
  4262. (isCloseList[toolIndex].isCloseBoolean) &&
  4263. isCloseList[toolIndex].isClose == 0
  4264. "
  4265. >
  4266. 折叠
  4267. </div>
  4268. <div
  4269. class="corOpen"
  4270. @click="contract(toolIndex)"
  4271. v-if="isCloseList[toolIndex].isClose == 1"
  4272. >
  4273. 展开
  4274. </div>
  4275. </div>
  4276. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4277. </div>
  4278. <div
  4279. class="group_workBox"
  4280. v-for="(g, gindex) in courseGroup.group"
  4281. :key="gindex"
  4282. >
  4283. <div class="group_box">
  4284. <div class="group_title">
  4285. <el-tooltip
  4286. class="item"
  4287. effect="light"
  4288. :content="g.name"
  4289. placement="top"
  4290. >
  4291. <div class="group_name">{{ g.name }}</div>
  4292. </el-tooltip>
  4293. </div>
  4294. <div
  4295. class="group_work"
  4296. v-if="
  4297. g.works &&
  4298. g.works.length &&
  4299. g.works[toolIndex].length
  4300. "
  4301. >
  4302. <div
  4303. class="works"
  4304. v-for="(w, wIndex) in g.works[toolIndex]"
  4305. :key="wIndex"
  4306. >
  4307. <div
  4308. class="workImg"
  4309. style="
  4310. border-radius: 15px;
  4311. box-shadow: 0px 0px 5px 5px #eee;
  4312. "
  4313. >
  4314. <div
  4315. class="answerBg"
  4316. style="border-radius: 15px 15px 0 0"
  4317. @click="
  4318. commentOther(w, toolIndex, wIndex, null, g.id)
  4319. "
  4320. >
  4321. <div class="answerContent">
  4322. {{ JSON.parse(w.works)[0].answer }}
  4323. </div>
  4324. <div
  4325. class="answerScore"
  4326. v-if="w.score"
  4327. @click.stop="openScore(w)"
  4328. :class="{
  4329. rightW:
  4330. w.userid == userid ||
  4331. tType == 1 ||
  4332. tType == 4,
  4333. }"
  4334. >
  4335. {{ JSON.parse(w.score).wScore }}分
  4336. </div>
  4337. <div
  4338. class="answerScore"
  4339. @click.stop="openScore(w)"
  4340. v-else-if="courseDetail.userid == userid"
  4341. :class="{
  4342. rightW:
  4343. w.userid == userid ||
  4344. tType == 1 ||
  4345. tType == 4,
  4346. }"
  4347. >
  4348. 评分
  4349. </div>
  4350. <img
  4351. class="deleteImg"
  4352. src="../assets/deleteworks.png"
  4353. v-if="
  4354. w.userid == userid ||
  4355. tType == 1 ||
  4356. tType == 4
  4357. "
  4358. @click.stop="deleteWorks(w.wid)"
  4359. alt
  4360. />
  4361. </div>
  4362. <div class="comment">
  4363. <div class="worksName">
  4364. <div>{{ w.sName }}</div>
  4365. </div>
  4366. <div class="commentList">
  4367. <div
  4368. class="commentImg"
  4369. @click="
  4370. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4371. "
  4372. >
  4373. <img
  4374. :src="w.isLikes == true ? likes : noLikes"
  4375. alt=""
  4376. />
  4377. </div>
  4378. <div>{{ w.likesCount }}</div>
  4379. </div>
  4380. <div
  4381. class="commentList"
  4382. style="margin-right: 15px"
  4383. >
  4384. <div
  4385. class="commentImg"
  4386. @click="
  4387. commentOther(
  4388. w,
  4389. toolIndex,
  4390. wIndex,
  4391. null,
  4392. g.id
  4393. )
  4394. "
  4395. >
  4396. <img
  4397. src="../assets/icon/comment/comment.png"
  4398. alt=""
  4399. />
  4400. </div>
  4401. <div>{{ w.commentCount }}</div>
  4402. </div>
  4403. </div>
  4404. </div>
  4405. </div>
  4406. </div>
  4407. <div class="group_work" v-else>暂无提交作业</div>
  4408. </div>
  4409. </div>
  4410. <div
  4411. :id="'tool-' + toolIndex"
  4412. :style="{
  4413. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4414. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4415. }"
  4416. class="worksDetailBox"
  4417. v-if="
  4418. worksStudent.length &&
  4419. worksStudent[toolIndex].length > 0
  4420. "
  4421. >
  4422. <div
  4423. class="works"
  4424. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4425. :key="wIndex"
  4426. >
  4427. <div
  4428. class="workImg"
  4429. style="
  4430. border-radius: 15px;
  4431. box-shadow: 0px 0px 5px 5px #eee;
  4432. "
  4433. >
  4434. <!-- <img
  4435. src="../assets/icon/works/noImg.png"
  4436. @click="openTools(15, toolIndex, taskCount, w.works)"
  4437. alt=""
  4438. />-->
  4439. <div
  4440. class="answerBg"
  4441. style="border-radius: 15px 15px 0 0"
  4442. @click="commentOther(w, toolIndex, wIndex)"
  4443. >
  4444. <!-- <div>{{ w.sName }}</div> -->
  4445. <div class="answerContent">
  4446. {{ JSON.parse(w.works)[0].answer }}
  4447. </div>
  4448. <div
  4449. class="answerScore"
  4450. v-if="w.score"
  4451. @click.stop="openScore(w)"
  4452. :class="{
  4453. rightW:
  4454. w.userid == userid ||
  4455. tType == 1 ||
  4456. tType == 4,
  4457. }"
  4458. >
  4459. {{ JSON.parse(w.score).wScore }}分
  4460. </div>
  4461. <div
  4462. class="answerScore"
  4463. @click.stop="openScore(w)"
  4464. v-else-if="courseDetail.userid == userid"
  4465. :class="{
  4466. rightW:
  4467. w.userid == userid ||
  4468. tType == 1 ||
  4469. tType == 4,
  4470. }"
  4471. >
  4472. 评分
  4473. </div>
  4474. <img
  4475. class="deleteImg"
  4476. src="../assets/deleteworks.png"
  4477. v-if="
  4478. w.userid == userid || tType == 1 || tType == 4
  4479. "
  4480. @click.stop="deleteWorks(w.wid)"
  4481. alt
  4482. />
  4483. </div>
  4484. <div class="comment">
  4485. <div class="worksName">
  4486. <div>{{ w.sName }}</div>
  4487. </div>
  4488. <div class="commentList">
  4489. <div
  4490. class="commentImg"
  4491. @click="
  4492. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4493. "
  4494. >
  4495. <img
  4496. :src="w.isLikes == true ? likes : noLikes"
  4497. alt=""
  4498. />
  4499. </div>
  4500. <div>{{ w.likesCount }}</div>
  4501. </div>
  4502. <div class="commentList" style="margin-right: 15px">
  4503. <div
  4504. class="commentImg"
  4505. @click="commentOther(w, toolIndex, wIndex)"
  4506. >
  4507. <img
  4508. src="../assets/icon/comment/comment.png"
  4509. alt=""
  4510. />
  4511. </div>
  4512. <div>{{ w.commentCount }}</div>
  4513. </div>
  4514. </div>
  4515. </div>
  4516. </div>
  4517. </div>
  4518. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4519. 未提交
  4520. </div>
  4521. <div
  4522. class="noWorksS"
  4523. v-if="noWorksS && noWorksS[toolIndex].length"
  4524. >
  4525. <div
  4526. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4527. :key="sIndex"
  4528. class="noWorksName"
  4529. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4530. >
  4531. <el-tooltip effect="dark" :content="s.student" placement="top">
  4532. <span>{{ s.student }}</span>
  4533. </el-tooltip>
  4534. </div>
  4535. </div>
  4536. </div>
  4537. <div
  4538. v-if="
  4539. tType &&
  4540. ((tType == 2 && sIsOpen == true) ||
  4541. tType == 1 ||
  4542. tType == 4) &&
  4543. tool.tool.indexOf(1) != -1
  4544. "
  4545. class="worksBox"
  4546. >
  4547. <div
  4548. class="zuoyeYulan"
  4549. v-if="
  4550. (worksStudent.length &&
  4551. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4552. "
  4553. >
  4554. <div class="worksTop">
  4555. <div>作业预览</div>
  4556. <div
  4557. class="corOpen"
  4558. @click="contract(toolIndex)"
  4559. v-if="
  4560. (isCloseList[toolIndex].isCloseBoolean) &&
  4561. isCloseList[toolIndex].isClose == 0
  4562. "
  4563. >
  4564. 折叠
  4565. </div>
  4566. <div
  4567. class="corOpen"
  4568. @click="contract(toolIndex)"
  4569. v-if="isCloseList[toolIndex].isClose == 1"
  4570. >
  4571. 展开
  4572. </div>
  4573. </div>
  4574. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4575. </div>
  4576. <div
  4577. class="group_workBox"
  4578. v-for="(g, gindex) in courseGroup.group"
  4579. :key="gindex"
  4580. >
  4581. <div class="group_box">
  4582. <div class="group_title">
  4583. <el-tooltip
  4584. class="item"
  4585. effect="light"
  4586. :content="g.name"
  4587. placement="top"
  4588. >
  4589. <div class="group_name">{{ g.name }}</div>
  4590. </el-tooltip>
  4591. </div>
  4592. <div
  4593. class="group_work"
  4594. v-if="
  4595. g.works &&
  4596. g.works.length &&
  4597. g.works[toolIndex].length
  4598. "
  4599. >
  4600. <div
  4601. class="works"
  4602. style="
  4603. width: 200px;
  4604. height: 140px;
  4605. margin: 10px 10px 10px 0;
  4606. border-radius: 15px;
  4607. box-shadow: 0 0 6px 1px #dfdada;
  4608. "
  4609. v-for="(w, wIndex) in g.works[toolIndex]"
  4610. :key="wIndex"
  4611. :class="w.type == 1 ? 'isTypeOne' : ''"
  4612. >
  4613. <div class="workImg">
  4614. <img
  4615. :src="w.works"
  4616. @click="previewImg(w.works,w)"
  4617. alt
  4618. />
  4619. <div
  4620. class="answerScore"
  4621. v-if="w.score"
  4622. @click.stop="openScore(w)"
  4623. :class="{
  4624. rightW:
  4625. w.userid == userid ||
  4626. tType == 1 ||
  4627. tType == 4,
  4628. }"
  4629. >
  4630. {{ JSON.parse(w.score).wScore }}分
  4631. </div>
  4632. <div
  4633. class="answerScore"
  4634. @click.stop="openScore(w)"
  4635. v-else-if="courseDetail.userid == userid"
  4636. :class="{
  4637. rightW:
  4638. w.userid == userid ||
  4639. tType == 1 ||
  4640. tType == 4,
  4641. }"
  4642. >
  4643. 评分
  4644. </div>
  4645. <img
  4646. class="deleteImg"
  4647. src="../assets/deleteworks.png"
  4648. v-if="
  4649. w.userid == userid || tType == 1 || tType == 4
  4650. "
  4651. @click.stop="deleteWorks(w.wid)"
  4652. alt
  4653. />
  4654. </div>
  4655. <div class="comment" style="min-width: 200px">
  4656. <div class="worksName">
  4657. <div>{{ w.sName }}</div>
  4658. </div>
  4659. <div class="commentList">
  4660. <div class="commentList">
  4661. <div
  4662. class="commentImg"
  4663. @click="
  4664. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4665. "
  4666. >
  4667. <img
  4668. :src="w.isLikes == true ? likes : noLikes"
  4669. alt=""
  4670. />
  4671. </div>
  4672. <div>{{ w.likesCount }}</div>
  4673. </div>
  4674. <div
  4675. class="commentList"
  4676. style="margin-right: 15px"
  4677. >
  4678. <div
  4679. class="commentImg"
  4680. @click="
  4681. commentOther(
  4682. w,
  4683. toolIndex,
  4684. wIndex,
  4685. null,
  4686. g.id
  4687. )
  4688. "
  4689. >
  4690. <img
  4691. src="../assets/icon/comment/comment.png"
  4692. alt=""
  4693. />
  4694. </div>
  4695. <div>{{ w.commentCount }}</div>
  4696. </div>
  4697. </div>
  4698. </div>
  4699. </div>
  4700. </div>
  4701. <div class="group_work" v-else>暂无提交作业</div>
  4702. </div>
  4703. </div>
  4704. <div
  4705. :id="'tool-' + toolIndex"
  4706. :style="{
  4707. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4708. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4709. }"
  4710. class="worksDetailBox"
  4711. v-if="
  4712. worksStudent.length &&
  4713. worksStudent[toolIndex].length > 0
  4714. "
  4715. >
  4716. <div
  4717. class="works"
  4718. style="
  4719. width: 200px;
  4720. height: 140px;
  4721. margin: 10px 10px 10px 0;
  4722. border-radius: 15px;
  4723. box-shadow: 0 0 6px 1px #dfdada;
  4724. "
  4725. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4726. :key="wIndex"
  4727. >
  4728. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4729. <div class="workImg">
  4730. <img
  4731. :src="w.works"
  4732. @click="previewImg(w.works,w)"
  4733. alt
  4734. />
  4735. <div
  4736. class="answerScore"
  4737. v-if="w.score"
  4738. @click.stop="openScore(w)"
  4739. :class="{
  4740. rightW:
  4741. w.userid == userid || tType == 1 || tType == 4,
  4742. }"
  4743. >
  4744. {{ JSON.parse(w.score).wScore }}分
  4745. </div>
  4746. <div
  4747. class="answerScore"
  4748. @click.stop="openScore(w)"
  4749. v-else-if="courseDetail.userid == userid"
  4750. :class="{
  4751. rightW:
  4752. w.userid == userid || tType == 1 || tType == 4,
  4753. }"
  4754. >
  4755. 评分
  4756. </div>
  4757. <img
  4758. class="deleteImg"
  4759. src="../assets/deleteworks.png"
  4760. v-if="
  4761. w.userid == userid || tType == 1 || tType == 4
  4762. "
  4763. @click.stop="deleteWorks(w.wid)"
  4764. alt
  4765. />
  4766. </div>
  4767. <div class="comment" style="min-width: 200px">
  4768. <div class="worksName">
  4769. <div>{{ w.sName }}</div>
  4770. </div>
  4771. <div class="commentList">
  4772. <div class="commentList">
  4773. <div
  4774. class="commentImg"
  4775. @click="
  4776. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4777. "
  4778. >
  4779. <img
  4780. :src="w.isLikes == true ? likes : noLikes"
  4781. alt=""
  4782. />
  4783. </div>
  4784. <div>{{ w.likesCount }}</div>
  4785. </div>
  4786. <div class="commentList" style="margin-right: 15px">
  4787. <div
  4788. class="commentImg"
  4789. @click="commentOther(w, toolIndex, wIndex)"
  4790. >
  4791. <img
  4792. src="../assets/icon/comment/comment.png"
  4793. alt=""
  4794. />
  4795. </div>
  4796. <div>{{ w.commentCount }}</div>
  4797. </div>
  4798. </div>
  4799. </div>
  4800. </div>
  4801. </div>
  4802. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4803. 未提交
  4804. </div>
  4805. <div
  4806. class="noWorksS"
  4807. v-if="noWorksS && noWorksS[toolIndex].length"
  4808. >
  4809. <div
  4810. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4811. :key="sIndex"
  4812. class="noWorksName"
  4813. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4814. >
  4815. <el-tooltip effect="dark" :content="s.student" placement="top">
  4816. <span>{{ s.student }}</span>
  4817. </el-tooltip>
  4818. </div>
  4819. </div>
  4820. </div>
  4821. <div
  4822. v-if="
  4823. tType &&
  4824. ((tType == 2 && sIsOpen == true) ||
  4825. tType == 1 ||
  4826. tType == 4) &&
  4827. tool.tool.indexOf(3) != -1
  4828. "
  4829. class="worksBox"
  4830. >
  4831. <div
  4832. class="zuoyeYulan"
  4833. v-if="
  4834. (worksStudent.length &&
  4835. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4836. "
  4837. >
  4838. <div class="worksTop">
  4839. <div>作业预览</div>
  4840. <div
  4841. class="corOpen"
  4842. @click="contract(toolIndex)"
  4843. v-if="
  4844. (isCloseList[toolIndex].isCloseBoolean) &&
  4845. isCloseList[toolIndex].isClose == 0
  4846. "
  4847. >
  4848. 折叠
  4849. </div>
  4850. <div
  4851. class="corOpen"
  4852. @click="contract(toolIndex)"
  4853. v-if="isCloseList[toolIndex].isClose == 1"
  4854. >
  4855. 展开
  4856. </div>
  4857. </div>
  4858. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4859. </div>
  4860. <div
  4861. class="group_workBox"
  4862. v-for="(g, gindex) in courseGroup.group"
  4863. :key="gindex"
  4864. >
  4865. <div class="group_box">
  4866. <div class="group_title">
  4867. <el-tooltip
  4868. class="item"
  4869. effect="light"
  4870. :content="g.name"
  4871. placement="top"
  4872. >
  4873. <div class="group_name">{{ g.name }}</div>
  4874. </el-tooltip>
  4875. </div>
  4876. <div
  4877. class="group_work"
  4878. v-if="
  4879. g.works &&
  4880. g.works.length &&
  4881. g.works[toolIndex].length
  4882. "
  4883. >
  4884. <div
  4885. class="works"
  4886. style="
  4887. width: 200px;
  4888. height: 140px;
  4889. margin: 10px 10px 10px 0;
  4890. border-radius: 15px;
  4891. box-shadow: 0 0 6px 1px #dfdada;
  4892. "
  4893. v-for="(w, wIndex) in g.works[toolIndex]"
  4894. :key="wIndex"
  4895. :class="w.type == 1 ? 'isTypeOne' : ''"
  4896. >
  4897. <div class="workImg">
  4898. <img
  4899. :src="w.works"
  4900. @click="previewImg(w.works,w)"
  4901. alt
  4902. />
  4903. <div
  4904. class="answerScore"
  4905. v-if="w.score"
  4906. @click.stop="openScore(w)"
  4907. :class="{
  4908. rightW:
  4909. w.userid == userid ||
  4910. tType == 1 ||
  4911. tType == 4,
  4912. }"
  4913. >
  4914. {{ JSON.parse(w.score).wScore }}分
  4915. </div>
  4916. <div
  4917. class="answerScore"
  4918. @click.stop="openScore(w)"
  4919. v-else-if="courseDetail.userid == userid"
  4920. :class="{
  4921. rightW:
  4922. w.userid == userid ||
  4923. tType == 1 ||
  4924. tType == 4,
  4925. }"
  4926. >
  4927. 评分
  4928. </div>
  4929. <img
  4930. class="deleteImg"
  4931. src="../assets/deleteworks.png"
  4932. v-if="
  4933. w.userid == userid || tType == 1 || tType == 4
  4934. "
  4935. @click.stop="deleteWorks(w.wid)"
  4936. alt
  4937. />
  4938. </div>
  4939. <div class="comment" style="min-width: 200px">
  4940. <div class="worksName">
  4941. <div>{{ w.sName }}</div>
  4942. </div>
  4943. <div class="commentList">
  4944. <div class="commentList">
  4945. <div
  4946. class="commentImg"
  4947. @click="
  4948. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4949. "
  4950. >
  4951. <img
  4952. :src="w.isLikes == true ? likes : noLikes"
  4953. alt=""
  4954. />
  4955. </div>
  4956. <div>{{ w.likesCount }}</div>
  4957. </div>
  4958. <div
  4959. class="commentList"
  4960. style="margin-right: 15px"
  4961. >
  4962. <div
  4963. class="commentImg"
  4964. @click="
  4965. commentOther(
  4966. w,
  4967. toolIndex,
  4968. wIndex,
  4969. null,
  4970. g.id
  4971. )
  4972. "
  4973. >
  4974. <img
  4975. src="../assets/icon/comment/comment.png"
  4976. alt=""
  4977. />
  4978. </div>
  4979. <div>{{ w.commentCount }}</div>
  4980. </div>
  4981. </div>
  4982. </div>
  4983. </div>
  4984. </div>
  4985. <div class="group_work" v-else>暂无提交作业</div>
  4986. </div>
  4987. </div>
  4988. <div
  4989. :id="'tool-' + toolIndex"
  4990. :style="{
  4991. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4992. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4993. }"
  4994. class="worksDetailBox"
  4995. v-if="
  4996. worksStudent.length &&
  4997. worksStudent[toolIndex].length > 0
  4998. "
  4999. >
  5000. <div
  5001. class="works"
  5002. style="
  5003. width: 200px;
  5004. height: 140px;
  5005. margin: 10px 10px 10px 0;
  5006. border-radius: 15px;
  5007. box-shadow: 0 0 6px 1px #dfdada;
  5008. "
  5009. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5010. :key="wIndex"
  5011. >
  5012. <!-- @click="previewImg(w.works)" -->
  5013. <div class="workImg">
  5014. <img
  5015. :src="w.works"
  5016. @click="previewImg(w.works,w)"
  5017. alt
  5018. />
  5019. <div
  5020. class="answerScore"
  5021. v-if="w.score"
  5022. @click.stop="openScore(w)"
  5023. :class="{
  5024. rightW:
  5025. w.userid == userid || tType == 1 || tType == 4,
  5026. }"
  5027. >
  5028. {{ JSON.parse(w.score).wScore }}分
  5029. </div>
  5030. <div
  5031. class="answerScore"
  5032. @click.stop="openScore(w)"
  5033. v-else-if="courseDetail.userid == userid"
  5034. :class="{
  5035. rightW:
  5036. w.userid == userid || tType == 1 || tType == 4,
  5037. }"
  5038. >
  5039. 评分
  5040. </div>
  5041. <img
  5042. class="deleteImg"
  5043. src="../assets/deleteworks.png"
  5044. v-if="
  5045. w.userid == userid || tType == 1 || tType == 4
  5046. "
  5047. @click.stop="deleteWorks(w.wid)"
  5048. alt
  5049. />
  5050. </div>
  5051. <div class="comment" style="min-width: 200px">
  5052. <div class="worksName">
  5053. <div>{{ w.sName }}</div>
  5054. </div>
  5055. <div class="commentList">
  5056. <div class="commentList">
  5057. <div
  5058. class="commentImg"
  5059. @click="
  5060. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5061. "
  5062. >
  5063. <img
  5064. :src="w.isLikes == true ? likes : noLikes"
  5065. alt=""
  5066. />
  5067. </div>
  5068. <div>{{ w.likesCount }}</div>
  5069. </div>
  5070. <div class="commentList" style="margin-right: 15px">
  5071. <div
  5072. class="commentImg"
  5073. @click="commentOther(w, toolIndex, wIndex)"
  5074. >
  5075. <img
  5076. src="../assets/icon/comment/comment.png"
  5077. alt=""
  5078. />
  5079. </div>
  5080. <div>{{ w.commentCount }}</div>
  5081. </div>
  5082. </div>
  5083. </div>
  5084. </div>
  5085. </div>
  5086. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5087. 未提交
  5088. </div>
  5089. <div
  5090. class="noWorksS"
  5091. v-if="noWorksS && noWorksS[toolIndex].length"
  5092. >
  5093. <div
  5094. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5095. :key="sIndex"
  5096. class="noWorksName"
  5097. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5098. >
  5099. <el-tooltip effect="dark" :content="s.student" placement="top">
  5100. <span>{{ s.student }}</span>
  5101. </el-tooltip>
  5102. </div>
  5103. </div>
  5104. </div>
  5105. <div
  5106. v-if="
  5107. tType &&
  5108. ((tType == 2 && sIsOpen == true) ||
  5109. tType == 1 ||
  5110. tType == 4) &&
  5111. tool.tool.indexOf(6) != -1
  5112. "
  5113. class="worksBox"
  5114. >
  5115. <div
  5116. class="zuoyeYulan"
  5117. v-if="
  5118. (worksStudent.length &&
  5119. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5120. "
  5121. >
  5122. <div class="worksTop">
  5123. <div>作业预览</div>
  5124. <div
  5125. class="corOpen"
  5126. @click="contract(toolIndex)"
  5127. v-if="
  5128. (isCloseList[toolIndex].isCloseBoolean) &&
  5129. isCloseList[toolIndex].isClose == 0
  5130. "
  5131. >
  5132. 折叠
  5133. </div>
  5134. <div
  5135. class="corOpen"
  5136. @click="contract(toolIndex)"
  5137. v-if="isCloseList[toolIndex].isClose == 1"
  5138. >
  5139. 展开
  5140. </div>
  5141. </div>
  5142. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5143. </div>
  5144. <div
  5145. class="group_workBox"
  5146. v-for="(g, gindex) in courseGroup.group"
  5147. :key="gindex"
  5148. >
  5149. <div class="group_box">
  5150. <div class="group_title">
  5151. <el-tooltip
  5152. class="item"
  5153. effect="light"
  5154. :content="g.name"
  5155. placement="top"
  5156. >
  5157. <div class="group_name">{{ g.name }}</div>
  5158. </el-tooltip>
  5159. </div>
  5160. <div
  5161. class="group_work"
  5162. v-if="
  5163. g.works &&
  5164. g.works.length &&
  5165. g.works[toolIndex].length
  5166. "
  5167. >
  5168. <div
  5169. class="works"
  5170. style="
  5171. width: 200px;
  5172. height: 140px;
  5173. margin: 10px 10px 10px 0;
  5174. border-radius: 15px;
  5175. box-shadow: 0 0 6px 1px #dfdada;
  5176. "
  5177. v-for="(w, wIndex) in g.works[toolIndex]"
  5178. :key="wIndex"
  5179. :class="w.type == 1 ? 'isTypeOne' : ''"
  5180. >
  5181. <div class="workImg">
  5182. <img
  5183. :src="w.works"
  5184. @click="previewImg(w.works,w)"
  5185. alt
  5186. />
  5187. <div
  5188. class="answerScore"
  5189. v-if="w.score"
  5190. @click.stop="openScore(w)"
  5191. :class="{
  5192. rightW:
  5193. w.userid == userid ||
  5194. tType == 1 ||
  5195. tType == 4,
  5196. }"
  5197. >
  5198. {{ JSON.parse(w.score).wScore }}分
  5199. </div>
  5200. <div
  5201. class="answerScore"
  5202. @click.stop="openScore(w)"
  5203. v-else-if="courseDetail.userid == userid"
  5204. :class="{
  5205. rightW:
  5206. w.userid == userid ||
  5207. tType == 1 ||
  5208. tType == 4,
  5209. }"
  5210. >
  5211. 评分
  5212. </div>
  5213. <img
  5214. class="deleteImg"
  5215. src="../assets/deleteworks.png"
  5216. v-if="
  5217. w.userid == userid || tType == 1 || tType == 4
  5218. "
  5219. @click.stop="deleteWorks(w.wid)"
  5220. alt
  5221. />
  5222. </div>
  5223. <div class="comment" style="min-width: 200px">
  5224. <div class="worksName">
  5225. <div>{{ w.sName }}</div>
  5226. </div>
  5227. <div class="commentList">
  5228. <div class="commentList">
  5229. <div
  5230. class="commentImg"
  5231. @click="
  5232. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5233. "
  5234. >
  5235. <img
  5236. :src="w.isLikes == true ? likes : noLikes"
  5237. alt=""
  5238. />
  5239. </div>
  5240. <div>{{ w.likesCount }}</div>
  5241. </div>
  5242. <div
  5243. class="commentList"
  5244. style="margin-right: 15px"
  5245. >
  5246. <div
  5247. class="commentImg"
  5248. @click="
  5249. commentOther(
  5250. w,
  5251. toolIndex,
  5252. wIndex,
  5253. null,
  5254. g.id
  5255. )
  5256. "
  5257. >
  5258. <img
  5259. src="../assets/icon/comment/comment.png"
  5260. alt=""
  5261. />
  5262. </div>
  5263. <div>{{ w.commentCount }}</div>
  5264. </div>
  5265. </div>
  5266. </div>
  5267. </div>
  5268. </div>
  5269. <div class="group_work" v-else>暂无提交作业</div>
  5270. </div>
  5271. </div>
  5272. <div
  5273. :id="'tool-' + toolIndex"
  5274. :style="{
  5275. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5276. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5277. }"
  5278. class="worksDetailBox"
  5279. v-if="
  5280. worksStudent.length &&
  5281. worksStudent[toolIndex].length > 0
  5282. "
  5283. >
  5284. <div
  5285. class="works"
  5286. style="
  5287. width: 200px;
  5288. height: 140px;
  5289. margin: 10px 10px 10px 0;
  5290. border-radius: 15px;
  5291. box-shadow: 0 0 6px 1px #dfdada;
  5292. "
  5293. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5294. :key="wIndex"
  5295. >
  5296. <!-- @click="previewImg(w.works)" -->
  5297. <div class="workImg">
  5298. <img
  5299. :src="w.works"
  5300. @click="previewImg(w.works,w)"
  5301. alt
  5302. />
  5303. <div
  5304. class="answerScore"
  5305. v-if="w.score"
  5306. @click.stop="openScore(w)"
  5307. :class="{
  5308. rightW:
  5309. w.userid == userid || tType == 1 || tType == 4,
  5310. }"
  5311. >
  5312. {{ JSON.parse(w.score).wScore }}分
  5313. </div>
  5314. <div
  5315. class="answerScore"
  5316. @click.stop="openScore(w)"
  5317. v-else-if="courseDetail.userid == userid"
  5318. :class="{
  5319. rightW:
  5320. w.userid == userid || tType == 1 || tType == 4,
  5321. }"
  5322. >
  5323. 评分
  5324. </div>
  5325. <img
  5326. class="deleteImg"
  5327. src="../assets/deleteworks.png"
  5328. v-if="
  5329. w.userid == userid || tType == 1 || tType == 4
  5330. "
  5331. @click.stop="deleteWorks(w.wid)"
  5332. alt
  5333. />
  5334. </div>
  5335. <div class="comment" style="min-width: 200px">
  5336. <div class="worksName">
  5337. <div>{{ w.sName }}</div>
  5338. </div>
  5339. <div class="commentList">
  5340. <div class="commentList">
  5341. <div
  5342. class="commentImg"
  5343. @click="
  5344. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5345. "
  5346. >
  5347. <img
  5348. :src="w.isLikes == true ? likes : noLikes"
  5349. alt=""
  5350. />
  5351. </div>
  5352. <div>{{ w.likesCount }}</div>
  5353. </div>
  5354. <div class="commentList" style="margin-right: 15px">
  5355. <div
  5356. class="commentImg"
  5357. @click="commentOther(w, toolIndex, wIndex)"
  5358. >
  5359. <img
  5360. src="../assets/icon/comment/comment.png"
  5361. alt=""
  5362. />
  5363. </div>
  5364. <div>{{ w.commentCount }}</div>
  5365. </div>
  5366. </div>
  5367. </div>
  5368. </div>
  5369. </div>
  5370. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5371. 未提交
  5372. </div>
  5373. <div
  5374. class="noWorksS"
  5375. v-if="noWorksS && noWorksS[toolIndex].length"
  5376. >
  5377. <div
  5378. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5379. :key="sIndex"
  5380. class="noWorksName"
  5381. >
  5382. <el-tooltip effect="dark" :content="s.student" placement="top">
  5383. <span>{{ s.student }}</span>
  5384. </el-tooltip>
  5385. </div>
  5386. </div>
  5387. </div>
  5388. <div
  5389. v-if="
  5390. tType &&
  5391. ((tType == 2 && sIsOpen == true) ||
  5392. tType == 1 ||
  5393. tType == 4) &&
  5394. tool.tool.indexOf(7) != -1
  5395. "
  5396. class="worksBox"
  5397. >
  5398. <div
  5399. class="zuoyeYulan"
  5400. v-if="
  5401. (worksStudent.length &&
  5402. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5403. "
  5404. >
  5405. <div class="worksTop">
  5406. <div>作业预览</div>
  5407. <div
  5408. class="corOpen"
  5409. @click="contract(toolIndex)"
  5410. v-if="
  5411. (isCloseList[toolIndex].isCloseBoolean) &&
  5412. isCloseList[toolIndex].isClose == 0
  5413. "
  5414. >
  5415. 折叠
  5416. </div>
  5417. <div
  5418. class="corOpen"
  5419. @click="contract(toolIndex)"
  5420. v-if="isCloseList[toolIndex].isClose == 1"
  5421. >
  5422. 展开
  5423. </div>
  5424. </div>
  5425. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5426. </div>
  5427. <div
  5428. class="group_workBox"
  5429. v-for="(g, gindex) in courseGroup.group"
  5430. :key="gindex"
  5431. >
  5432. <div class="group_box">
  5433. <div class="group_title">
  5434. <el-tooltip
  5435. class="item"
  5436. effect="light"
  5437. :content="g.name"
  5438. placement="top"
  5439. >
  5440. <div class="group_name">{{ g.name }}</div>
  5441. </el-tooltip>
  5442. </div>
  5443. <div
  5444. class="group_work"
  5445. v-if="
  5446. g.works &&
  5447. g.works.length &&
  5448. g.works[toolIndex].length
  5449. "
  5450. >
  5451. <div
  5452. class="works"
  5453. style="
  5454. width: 200px;
  5455. height: 140px;
  5456. margin: 10px 10px 10px 0;
  5457. border-radius: 15px;
  5458. box-shadow: 0 0 6px 1px #dfdada;
  5459. "
  5460. v-for="(w, wIndex) in g.works[toolIndex]"
  5461. :key="wIndex"
  5462. :class="w.type == 1 ? 'isTypeOne' : ''"
  5463. >
  5464. <div class="workImg">
  5465. <img
  5466. :src="w.works"
  5467. @click="previewImg(w.works,w)"
  5468. alt
  5469. />
  5470. <div
  5471. class="answerScore"
  5472. v-if="w.score"
  5473. @click.stop="openScore(w)"
  5474. :class="{
  5475. rightW:
  5476. w.userid == userid ||
  5477. tType == 1 ||
  5478. tType == 4,
  5479. }"
  5480. >
  5481. {{ JSON.parse(w.score).wScore }}分
  5482. </div>
  5483. <div
  5484. class="answerScore"
  5485. @click.stop="openScore(w)"
  5486. v-else-if="courseDetail.userid == userid"
  5487. :class="{
  5488. rightW:
  5489. w.userid == userid ||
  5490. tType == 1 ||
  5491. tType == 4,
  5492. }"
  5493. >
  5494. 评分
  5495. </div>
  5496. <img
  5497. class="deleteImg"
  5498. src="../assets/deleteworks.png"
  5499. v-if="
  5500. w.userid == userid || tType == 1 || tType == 4
  5501. "
  5502. @click.stop="deleteWorks(w.wid)"
  5503. alt
  5504. />
  5505. </div>
  5506. <div class="comment" style="min-width: 200px">
  5507. <div class="worksName">
  5508. <div>{{ w.sName }}</div>
  5509. </div>
  5510. <div class="commentList">
  5511. <div class="commentList">
  5512. <div
  5513. class="commentImg"
  5514. @click="
  5515. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5516. "
  5517. >
  5518. <img
  5519. :src="w.isLikes == true ? likes : noLikes"
  5520. alt=""
  5521. />
  5522. </div>
  5523. <div>{{ w.likesCount }}</div>
  5524. </div>
  5525. <div
  5526. class="commentList"
  5527. style="margin-right: 15px"
  5528. >
  5529. <div
  5530. class="commentImg"
  5531. @click="
  5532. commentOther(
  5533. w,
  5534. toolIndex,
  5535. wIndex,
  5536. null,
  5537. g.id
  5538. )
  5539. "
  5540. >
  5541. <img
  5542. src="../assets/icon/comment/comment.png"
  5543. alt=""
  5544. />
  5545. </div>
  5546. <div>{{ w.commentCount }}</div>
  5547. </div>
  5548. </div>
  5549. </div>
  5550. </div>
  5551. </div>
  5552. <div class="group_work" v-else>暂无提交作业</div>
  5553. </div>
  5554. </div>
  5555. <div
  5556. :id="'tool-' + toolIndex"
  5557. :style="{
  5558. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5559. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5560. }"
  5561. class="worksDetailBox"
  5562. v-if="
  5563. worksStudent.length &&
  5564. worksStudent[toolIndex].length > 0
  5565. "
  5566. >
  5567. <div
  5568. class="works"
  5569. style="
  5570. width: 200px;
  5571. height: 140px;
  5572. margin: 10px 10px 10px 0;
  5573. border-radius: 15px;
  5574. box-shadow: 0 0 6px 1px #dfdada;
  5575. "
  5576. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5577. :key="wIndex"
  5578. >
  5579. <!-- @click="previewImg(w.works)" -->
  5580. <div class="workImg">
  5581. <img
  5582. :src="w.works"
  5583. @click="previewImg(w.works,w)"
  5584. alt
  5585. />
  5586. <div
  5587. class="answerScore"
  5588. v-if="w.score"
  5589. @click.stop="openScore(w)"
  5590. :class="{
  5591. rightW:
  5592. w.userid == userid || tType == 1 || tType == 4,
  5593. }"
  5594. >
  5595. {{ JSON.parse(w.score).wScore }}分
  5596. </div>
  5597. <div
  5598. class="answerScore"
  5599. @click.stop="openScore(w)"
  5600. v-else-if="courseDetail.userid == userid"
  5601. :class="{
  5602. rightW:
  5603. w.userid == userid || tType == 1 || tType == 4,
  5604. }"
  5605. >
  5606. 评分
  5607. </div>
  5608. <img
  5609. class="deleteImg"
  5610. src="../assets/deleteworks.png"
  5611. v-if="
  5612. w.userid == userid || tType == 1 || tType == 4
  5613. "
  5614. @click.stop="deleteWorks(w.wid)"
  5615. alt
  5616. />
  5617. </div>
  5618. <div class="comment" style="min-width: 200px">
  5619. <div class="worksName">
  5620. <div>{{ w.sName }}</div>
  5621. </div>
  5622. <div class="commentList">
  5623. <div class="commentList">
  5624. <div
  5625. class="commentImg"
  5626. @click="
  5627. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5628. "
  5629. >
  5630. <img
  5631. :src="w.isLikes == true ? likes : noLikes"
  5632. alt=""
  5633. />
  5634. </div>
  5635. <div>{{ w.likesCount }}</div>
  5636. </div>
  5637. <div class="commentList" style="margin-right: 15px">
  5638. <div
  5639. class="commentImg"
  5640. @click="commentOther(w, toolIndex, wIndex)"
  5641. >
  5642. <img
  5643. src="../assets/icon/comment/comment.png"
  5644. alt=""
  5645. />
  5646. </div>
  5647. <div>{{ w.commentCount }}</div>
  5648. </div>
  5649. </div>
  5650. </div>
  5651. </div>
  5652. </div>
  5653. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5654. 未提交
  5655. </div>
  5656. <div
  5657. class="noWorksS"
  5658. v-if="noWorksS && noWorksS[toolIndex].length"
  5659. >
  5660. <div
  5661. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5662. :key="sIndex"
  5663. class="noWorksName"
  5664. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5665. >
  5666. <el-tooltip effect="dark" :content="s.student" placement="top">
  5667. <span>{{ s.student }}</span>
  5668. </el-tooltip>
  5669. </div>
  5670. </div>
  5671. </div>
  5672. <div
  5673. v-if="
  5674. tType &&
  5675. ((tType == 2 && sIsOpen == true) ||
  5676. tType == 1 ||
  5677. tType == 4) &&
  5678. tool.tool.indexOf(26) != -1
  5679. "
  5680. class="worksBox"
  5681. >
  5682. <div
  5683. class="zuoyeYulan"
  5684. v-if="
  5685. worksStudent.length &&
  5686. worksStudent[toolIndex].length > 0
  5687. "
  5688. >
  5689. <div class="worksTop">
  5690. <div>作业预览</div>
  5691. <div
  5692. class="corOpen"
  5693. @click="contract(toolIndex)"
  5694. v-if="
  5695. (isCloseList[toolIndex].isCloseBoolean) &&
  5696. isCloseList[toolIndex].isClose == 0
  5697. "
  5698. >
  5699. 折叠
  5700. </div>
  5701. <div
  5702. class="corOpen"
  5703. @click="contract(toolIndex)"
  5704. v-if="isCloseList[toolIndex].isClose == 1"
  5705. >
  5706. 展开
  5707. </div>
  5708. </div>
  5709. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5710. </div>
  5711. <div
  5712. :id="'tool-' + toolIndex"
  5713. :style="{
  5714. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5715. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5716. }"
  5717. class="worksDetailBox"
  5718. v-if="
  5719. worksStudent.length &&
  5720. worksStudent[toolIndex].length > 0
  5721. "
  5722. >
  5723. <div
  5724. class="works"
  5725. style="width: 240px; height: 140px; overflow: hidden"
  5726. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5727. :key="wIndex"
  5728. :class="w.type == 1 ? 'isTypeOne' : ''"
  5729. >
  5730. <div class="workImg" v-if="w.type == 0">
  5731. <img
  5732. :src="w.works"
  5733. @click="previewImg(w.works,w)"
  5734. alt
  5735. />
  5736. <img
  5737. class="deleteImg"
  5738. src="../assets/deleteworks.png"
  5739. v-if="
  5740. w.userid == userid || tType == 1 || tType == 4
  5741. "
  5742. @click.stop="deleteWorks(w.wid)"
  5743. alt
  5744. />
  5745. </div>
  5746. <div class="workImg" v-if="w.type == 1">
  5747. <img :src="word" @click="openFile(w.works,w)" alt />
  5748. <img
  5749. class="deleteImg"
  5750. src="../assets/deleteworks.png"
  5751. v-if="
  5752. w.userid == userid || tType == 1 || tType == 4
  5753. "
  5754. @click.stop="deleteWorks(w.wid)"
  5755. alt
  5756. />
  5757. </div>
  5758. <div class="worksName">
  5759. <div>{{ w.sName }}</div>
  5760. </div>
  5761. </div>
  5762. </div>
  5763. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5764. 未提交
  5765. </div>
  5766. <div
  5767. class="noWorksS"
  5768. v-if="noWorksS && noWorksS[toolIndex].length"
  5769. >
  5770. <div
  5771. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5772. :key="sIndex"
  5773. class="noWorksName"
  5774. >
  5775. <el-tooltip effect="dark" :content="s.student" placement="top">
  5776. <span>{{ s.student }}</span>
  5777. </el-tooltip>
  5778. </div>
  5779. </div>
  5780. </div>
  5781. <div
  5782. v-if="
  5783. tType &&
  5784. ((tType == 2 && sIsOpen == true) ||
  5785. tType == 1 ||
  5786. tType == 4) &&
  5787. tool.tool.indexOf(40) != -1
  5788. "
  5789. class="worksBox"
  5790. >
  5791. <div
  5792. class="zuoyeYulan"
  5793. v-if="
  5794. worksStudent.length &&
  5795. worksStudent[toolIndex].length > 0
  5796. "
  5797. >
  5798. <div class="worksTop">
  5799. <div>作业预览</div>
  5800. <div
  5801. class="corOpen"
  5802. @click="contract(toolIndex)"
  5803. v-if="
  5804. (isCloseList[toolIndex].isCloseBoolean) &&
  5805. isCloseList[toolIndex].isClose == 0
  5806. "
  5807. >
  5808. 折叠
  5809. </div>
  5810. <div
  5811. class="corOpen"
  5812. @click="contract(toolIndex)"
  5813. v-if="isCloseList[toolIndex].isClose == 1"
  5814. >
  5815. 展开
  5816. </div>
  5817. </div>
  5818. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5819. </div>
  5820. <div
  5821. :id="'tool-' + toolIndex"
  5822. :style="{
  5823. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5824. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5825. }"
  5826. class="worksDetailBox"
  5827. v-if="
  5828. worksStudent.length &&
  5829. worksStudent[toolIndex].length > 0
  5830. "
  5831. >
  5832. <div
  5833. class="works"
  5834. style="
  5835. width: 200px;
  5836. height: 140px;
  5837. margin: 10px 10px 10px 0;
  5838. border-radius: 15px;
  5839. box-shadow: 0 0 6px 1px #dfdada;
  5840. "
  5841. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5842. :key="wIndex"
  5843. :class="w.type == 1 ? 'isTypeOne' : ''"
  5844. >
  5845. <div class="workImg">
  5846. <img
  5847. src="../assets/icon/works/noImg.png"
  5848. @click="openPj(w.works, toolIndex)"
  5849. alt
  5850. />
  5851. <img
  5852. class="deleteImg"
  5853. src="../assets/deleteworks.png"
  5854. v-if="
  5855. w.userid == userid || tType == 1 || tType == 4
  5856. "
  5857. @click.stop="deleteWorks(w.wid)"
  5858. alt
  5859. />
  5860. </div>
  5861. <div class="comment" style="min-width: 200px">
  5862. <div class="worksName">
  5863. <div>{{ w.sName }}</div>
  5864. </div>
  5865. <div class="commentList">
  5866. <div class="commentList">
  5867. <div
  5868. class="commentImg"
  5869. @click="
  5870. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5871. "
  5872. >
  5873. <img
  5874. :src="w.isLikes == true ? likes : noLikes"
  5875. alt=""
  5876. />
  5877. </div>
  5878. <div>{{ w.likesCount }}</div>
  5879. </div>
  5880. <div class="commentList" style="margin-right: 15px">
  5881. <div
  5882. class="commentImg"
  5883. @click="commentOther(w, toolIndex, wIndex)"
  5884. >
  5885. <img
  5886. src="../assets/icon/comment/comment.png"
  5887. alt=""
  5888. />
  5889. </div>
  5890. <div>{{ w.commentCount }}</div>
  5891. </div>
  5892. </div>
  5893. </div>
  5894. </div>
  5895. </div>
  5896. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5897. 未提交
  5898. </div>
  5899. <div
  5900. class="noWorksS"
  5901. v-if="noWorksS && noWorksS[toolIndex].length"
  5902. >
  5903. <div
  5904. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5905. :key="sIndex"
  5906. class="noWorksName"
  5907. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5908. >
  5909. <el-tooltip effect="dark" :content="s.student" placement="top">
  5910. <span>{{ s.student }}</span>
  5911. </el-tooltip>
  5912. </div>
  5913. </div>
  5914. </div>
  5915. <div
  5916. v-if="
  5917. tType &&
  5918. tType == 2 &&
  5919. !sIsOpen &&
  5920. tool.tool.indexOf(40) != -1
  5921. "
  5922. class="worksBox"
  5923. >
  5924. <div
  5925. class="zuoyeYulan"
  5926. v-if="workStudent[toolIndex].length > 0"
  5927. >
  5928. <span class="worksTitle">作业预览</span>
  5929. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5930. </div>
  5931. <div
  5932. class="worksDetailBox"
  5933. v-if="workStudent[toolIndex].length > 0"
  5934. >
  5935. <div
  5936. class="works"
  5937. style="
  5938. width: 200px;
  5939. height: 140px;
  5940. margin: 10px 10px 10px 0;
  5941. "
  5942. v-for="(w, wIndex) in workStudent[toolIndex]"
  5943. :key="wIndex"
  5944. >
  5945. <div class="workImg">
  5946. <img
  5947. src="../assets/icon/works/noImg.png"
  5948. @click="openPj(w.works, toolIndex)"
  5949. alt
  5950. />
  5951. <img
  5952. class="deleteImg"
  5953. src="../assets/deleteworks.png"
  5954. v-if="
  5955. w.userid == userid || tType == 1 || tType == 4
  5956. "
  5957. @click.stop="deleteWorks(w.wid)"
  5958. alt
  5959. />
  5960. </div>
  5961. <div class="worksName">
  5962. <div>{{ w.sName }}</div>
  5963. </div>
  5964. </div>
  5965. </div>
  5966. </div>
  5967. <div
  5968. v-if="
  5969. tType &&
  5970. ((tType == 2 && sIsOpen == true) ||
  5971. tType == 1 ||
  5972. tType == 4) &&
  5973. tool.tool.indexOf(41) != -1
  5974. "
  5975. >
  5976. <AnswerData2
  5977. v-if="
  5978. worksStudent.length &&
  5979. worksStudent[toolIndex].length > 0
  5980. "
  5981. :problemJson="tool.selectJson.answer"
  5982. :people="worksStudent[toolIndex]"
  5983. ></AnswerData2>
  5984. </div>
  5985. <div
  5986. v-if="
  5987. tType &&
  5988. ((tType == 2 && sIsOpen == true) ||
  5989. tType == 1 ||
  5990. tType == 4) &&
  5991. tool.tool.indexOf(41) != -1
  5992. "
  5993. class="worksBox"
  5994. >
  5995. <div
  5996. class="zuoyeYulan"
  5997. v-if="
  5998. worksStudent.length &&
  5999. worksStudent[toolIndex].length > 0
  6000. "
  6001. >
  6002. <div class="worksTop">
  6003. <div>作业预览</div>
  6004. <div
  6005. class="corOpen"
  6006. @click="contract(toolIndex)"
  6007. v-if="
  6008. (isCloseList[toolIndex].isCloseBoolean) &&
  6009. isCloseList[toolIndex].isClose == 0
  6010. "
  6011. >
  6012. 折叠
  6013. </div>
  6014. <div
  6015. class="corOpen"
  6016. @click="contract(toolIndex)"
  6017. v-if="isCloseList[toolIndex].isClose == 1"
  6018. >
  6019. 展开
  6020. </div>
  6021. </div>
  6022. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6023. </div>
  6024. <div
  6025. :id="'tool-' + toolIndex"
  6026. :style="{
  6027. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6028. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6029. }"
  6030. class="worksDetailBox"
  6031. v-if="
  6032. worksStudent.length &&
  6033. worksStudent[toolIndex].length > 0
  6034. "
  6035. >
  6036. <div
  6037. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6038. :key="wIndex"
  6039. class="isWorksName2"
  6040. @click="openXz(w, toolIndex)"
  6041. >
  6042. {{ w.sName }}
  6043. <img
  6044. class="deleteImg deleteImg2"
  6045. src="../assets/deleteworks.png"
  6046. v-if="w.userid == userid || tType == 1 || tType == 4"
  6047. @click.stop="deleteWorks(w.wid)"
  6048. alt
  6049. />
  6050. </div>
  6051. <!-- <div
  6052. class="works"
  6053. style="
  6054. width: 200px;
  6055. height: 140px;
  6056. margin: 10px 10px 10px 0;
  6057. border-radius: 15px;
  6058. box-shadow: 0 0 6px 1px #dfdada;
  6059. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6060. :class="w.type == 5 ? 'isTypeOne' : ''">
  6061. <div class="workImg">
  6062. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6063. </div>
  6064. <div class="worksName">
  6065. <div>{{ w.sName }}</div>
  6066. </div>
  6067. </div> -->
  6068. </div>
  6069. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6070. 未提交
  6071. </div>
  6072. <div
  6073. class="noWorksS"
  6074. v-if="noWorksS && noWorksS[toolIndex].length"
  6075. >
  6076. <div
  6077. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6078. :key="sIndex"
  6079. class="noWorksName"
  6080. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6081. >
  6082. <el-tooltip effect="dark" :content="s.student" placement="top">
  6083. <span>{{ s.student }}</span>
  6084. </el-tooltip>
  6085. </div>
  6086. </div>
  6087. </div>
  6088. <div
  6089. v-if="
  6090. tType &&
  6091. tType == 2 &&
  6092. !sIsOpen &&
  6093. tool.tool.indexOf(41) != -1
  6094. "
  6095. class="worksBox"
  6096. >
  6097. <div
  6098. class="zuoyeYulan"
  6099. v-if="workStudent[toolIndex].length > 0"
  6100. >
  6101. <span class="worksTitle">作业预览</span>
  6102. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6103. </div>
  6104. <div
  6105. class="worksDetailBox"
  6106. v-if="workStudent[toolIndex].length > 0"
  6107. >
  6108. <div
  6109. class="works"
  6110. style="
  6111. width: 200px;
  6112. height: 140px;
  6113. margin: 10px 10px 10px 0;
  6114. "
  6115. v-for="(w, wIndex) in workStudent[toolIndex]"
  6116. :key="wIndex"
  6117. >
  6118. <div class="workImg">
  6119. <img
  6120. src="../assets/icon/works/noImg.png"
  6121. @click="openXz(w, toolIndex)"
  6122. alt
  6123. />
  6124. <img
  6125. class="deleteImg"
  6126. src="../assets/deleteworks.png"
  6127. v-if="
  6128. w.userid == userid || tType == 1 || tType == 4
  6129. "
  6130. @click.stop="deleteWorks(w.wid)"
  6131. alt
  6132. />
  6133. </div>
  6134. <div class="worksName">
  6135. <div>{{ w.sName }}</div>
  6136. </div>
  6137. </div>
  6138. </div>
  6139. </div>
  6140. <div v-if="false" class="xuan_right_box">
  6141. <div
  6142. class="tool_right_box"
  6143. v-for="(item, index) in tool.sentenceList"
  6144. :key="index"
  6145. >
  6146. <div>
  6147. <span
  6148. style="word-break: break-all; white-space: normal"
  6149. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6150. >
  6151. </div>
  6152. <div class="right_box_xuan">
  6153. <span>正确率</span>
  6154. <span>{{
  6155. (checkJson[toolIndex][index].right
  6156. ? checkJson[toolIndex][index].right
  6157. : 0) + "%"
  6158. }}</span>
  6159. </div>
  6160. <div class="right_box_xuan">
  6161. <span>答对人数</span>
  6162. <span>{{
  6163. checkJson[toolIndex][index].rightPerson.length
  6164. }}</span>
  6165. </div>
  6166. </div>
  6167. </div>
  6168. <div
  6169. v-if="
  6170. tType &&
  6171. ((tType == 2 && sIsOpen == true) ||
  6172. tType == 1 ||
  6173. tType == 4) &&
  6174. tool.tool.indexOf(47) != -1
  6175. "
  6176. >
  6177. <AnswerData
  6178. v-if="
  6179. checkJson[toolIndex].length &&
  6180. (tool.sentenceList || tool.sentenceList.length > 0)
  6181. "
  6182. :people="checkJson[toolIndex]"
  6183. ></AnswerData>
  6184. </div>
  6185. <div
  6186. v-if="
  6187. tType &&
  6188. tType == 2 &&
  6189. !sIsOpen &&
  6190. tool.tool.indexOf(47) != -1
  6191. "
  6192. class="worksBox"
  6193. >
  6194. <div
  6195. class="zuoyeYulan"
  6196. v-if="workStudent[toolIndex].length > 0"
  6197. >
  6198. <span class="worksTitle">作业预览</span>
  6199. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6200. </div>
  6201. <div
  6202. class="worksDetailBox"
  6203. v-if="workStudent[toolIndex].length > 0"
  6204. >
  6205. <div
  6206. class="works"
  6207. style="
  6208. width: 200px;
  6209. height: 140px;
  6210. margin: 10px 10px 10px 0;
  6211. "
  6212. v-for="(w, wIndex) in workStudent[toolIndex]"
  6213. :key="wIndex"
  6214. >
  6215. <!-- @click="openXz(w, toolIndex)" -->
  6216. <div class="workImg" @click="openSen(w, toolIndex)">
  6217. <img src="../assets/icon/works/noImg.png" alt />
  6218. <img
  6219. class="deleteImg"
  6220. src="../assets/deleteworks.png"
  6221. v-if="
  6222. w.userid == userid || tType == 1 || tType == 4
  6223. "
  6224. @click.stop="deleteWorks(w.wid)"
  6225. alt
  6226. />
  6227. </div>
  6228. <div class="worksName">
  6229. <div>
  6230. {{ w.sName }}
  6231. </div>
  6232. </div>
  6233. </div>
  6234. </div>
  6235. </div>
  6236. <div
  6237. v-if="
  6238. tType &&
  6239. ((tType == 2 && sIsOpen == true) ||
  6240. tType == 1 ||
  6241. tType == 4) &&
  6242. tool.tool.indexOf(47) != -1
  6243. "
  6244. class="worksBox"
  6245. >
  6246. <div
  6247. class="zuoyeYulan"
  6248. v-if="
  6249. worksStudent.length &&
  6250. worksStudent[toolIndex].length > 0
  6251. "
  6252. >
  6253. <div class="worksTop">
  6254. <div>作业预览</div>
  6255. <div
  6256. class="corOpen"
  6257. @click="contract(toolIndex)"
  6258. v-if="
  6259. (isCloseList[toolIndex].isCloseBoolean) &&
  6260. isCloseList[toolIndex].isClose == 0
  6261. "
  6262. >
  6263. 折叠
  6264. </div>
  6265. <div
  6266. class="corOpen"
  6267. @click="contract(toolIndex)"
  6268. v-if="isCloseList[toolIndex].isClose == 1"
  6269. >
  6270. 展开
  6271. </div>
  6272. </div>
  6273. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6274. </div>
  6275. <div
  6276. :id="'tool-' + toolIndex"
  6277. :style="{
  6278. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6279. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6280. }"
  6281. class="worksDetailBox"
  6282. v-if="
  6283. worksStudent.length &&
  6284. worksStudent[toolIndex].length > 0
  6285. "
  6286. >
  6287. <!-- @click="openXz(w, toolIndex)" -->
  6288. <div
  6289. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6290. :key="wIndex"
  6291. class="isWorksName2"
  6292. @click="openSen(w, toolIndex)"
  6293. >
  6294. {{ w.sName }}
  6295. <img
  6296. class="deleteImg deleteImg2"
  6297. src="../assets/deleteworks.png"
  6298. v-if="w.userid == userid || tType == 1 || tType == 4"
  6299. @click.stop="deleteWorks(w.wid)"
  6300. alt
  6301. />
  6302. </div>
  6303. </div>
  6304. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6305. 未提交
  6306. </div>
  6307. <div
  6308. class="noWorksS"
  6309. v-if="noWorksS && noWorksS[toolIndex].length"
  6310. >
  6311. <div
  6312. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6313. :key="sIndex"
  6314. class="noWorksName"
  6315. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6316. >
  6317. <el-tooltip effect="dark" :content="s.student" placement="top">
  6318. <span>{{ s.student }}</span>
  6319. </el-tooltip>
  6320. </div>
  6321. </div>
  6322. </div>
  6323. <div
  6324. v-if="
  6325. tType &&
  6326. ((tType == 2 && sIsOpen == true) ||
  6327. tType == 1 ||
  6328. tType == 4) &&
  6329. tool.tool.indexOf(48) != -1
  6330. "
  6331. class="worksBox"
  6332. >
  6333. <div
  6334. class="zuoyeYulan"
  6335. v-if="
  6336. worksStudent.length &&
  6337. worksStudent[toolIndex].length > 0
  6338. "
  6339. >
  6340. <div class="worksTop">
  6341. <div>作业预览</div>
  6342. <div
  6343. class="corOpen"
  6344. @click="contract(toolIndex)"
  6345. v-if="
  6346. (isCloseList[toolIndex].isCloseBoolean) &&
  6347. isCloseList[toolIndex].isClose == 0
  6348. "
  6349. >
  6350. 折叠
  6351. </div>
  6352. <div
  6353. class="corOpen"
  6354. @click="contract(toolIndex)"
  6355. v-if="isCloseList[toolIndex].isClose == 1"
  6356. >
  6357. 展开
  6358. </div>
  6359. </div>
  6360. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6361. </div>
  6362. <div
  6363. :id="'tool-' + toolIndex"
  6364. :style="{
  6365. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6366. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6367. }"
  6368. class="worksDetailBox"
  6369. v-if="
  6370. worksStudent.length &&
  6371. worksStudent[toolIndex].length > 0
  6372. "
  6373. >
  6374. <div
  6375. class="works"
  6376. style="
  6377. width: 200px;
  6378. height: 140px;
  6379. margin: 10px 10px 10px 0;
  6380. border-radius: 15px;
  6381. box-shadow: 0 0 6px 1px #dfdada;
  6382. "
  6383. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6384. :key="wIndex"
  6385. :class="w.type == 1 ? 'isTypeOne' : ''"
  6386. >
  6387. <div class="workImg">
  6388. <img :src="word" @click="openTable(w)" alt />
  6389. <!-- @click="openFile(w.works)" -->
  6390. <div
  6391. class="answerScore"
  6392. v-if="w.score"
  6393. @click.stop="openScore(w)"
  6394. :class="{
  6395. rightW:
  6396. w.userid == userid ||
  6397. tType == 1 ||
  6398. tType == 4 ||
  6399. w.ateacher == userid,
  6400. }"
  6401. >
  6402. {{ JSON.parse(w.score).wScore }}分
  6403. </div>
  6404. <div
  6405. class="answerScore"
  6406. @click.stop="openScore(w)"
  6407. v-else-if="courseDetail.userid == userid"
  6408. :class="{
  6409. rightW:
  6410. w.userid == userid ||
  6411. tType == 1 ||
  6412. tType == 4 ||
  6413. w.ateacher == userid,
  6414. }"
  6415. >
  6416. 评分
  6417. </div>
  6418. <img
  6419. class="deleteImg"
  6420. src="../assets/deleteworks.png"
  6421. v-if="
  6422. w.userid == userid || tType == 1 || tType == 4
  6423. "
  6424. @click.stop="deleteWorks(w.wid)"
  6425. alt
  6426. />
  6427. </div>
  6428. <div class="comment" style="min-width: 200px">
  6429. <div class="worksName">
  6430. <div>{{ w.sName }}</div>
  6431. </div>
  6432. <div class="commentList">
  6433. <div class="commentList">
  6434. <div
  6435. class="commentImg"
  6436. @click="
  6437. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6438. "
  6439. >
  6440. <img
  6441. :src="w.isLikes == true ? likes : noLikes"
  6442. alt=""
  6443. />
  6444. </div>
  6445. <div>{{ w.likesCount }}</div>
  6446. </div>
  6447. <div class="commentList" style="margin-right: 15px">
  6448. <div
  6449. class="commentImg"
  6450. @click="commentOther(w, toolIndex, wIndex)"
  6451. >
  6452. <img
  6453. src="../assets/icon/comment/comment.png"
  6454. alt=""
  6455. />
  6456. </div>
  6457. <div>{{ w.commentCount }}</div>
  6458. </div>
  6459. </div>
  6460. </div>
  6461. </div>
  6462. </div>
  6463. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6464. 未提交
  6465. </div>
  6466. <div
  6467. class="noWorksS"
  6468. v-if="noWorksS && noWorksS[toolIndex].length"
  6469. >
  6470. <div
  6471. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6472. :key="sIndex"
  6473. class="noWorksName"
  6474. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6475. >
  6476. <el-tooltip effect="dark" :content="s.student" placement="top">
  6477. <span>{{ s.student }}</span>
  6478. </el-tooltip>
  6479. </div>
  6480. </div>
  6481. </div>
  6482. <div
  6483. v-if="
  6484. tType &&
  6485. tType == 2 &&
  6486. !sIsOpen &&
  6487. tool.tool.indexOf(48) != -1
  6488. "
  6489. class="worksBox"
  6490. >
  6491. <div
  6492. class="zuoyeYulan"
  6493. v-if="workStudent[toolIndex].length > 0"
  6494. >
  6495. <span class="worksTitle">作业预览</span>
  6496. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6497. </div>
  6498. <div
  6499. class="worksDetailBox"
  6500. v-if="workStudent[toolIndex].length > 0"
  6501. >
  6502. <div
  6503. class="works"
  6504. style="
  6505. width: 200px;
  6506. height: 140px;
  6507. margin: 10px 10px 10px 0;
  6508. box-shadow: 0 0 6px 1px #dfdada;
  6509. "
  6510. v-for="(w, wIndex) in workStudent[toolIndex]"
  6511. :key="wIndex"
  6512. >
  6513. <div class="workImg">
  6514. <img :src="word" @click="openTable(w)" alt />
  6515. <div
  6516. class="answerScore"
  6517. v-if="w.score"
  6518. @click.stop="openScore(w)"
  6519. :class="{
  6520. rightW:
  6521. w.userid == userid || tType == 1 || tType == 4,
  6522. }"
  6523. >
  6524. {{ JSON.parse(w.score).wScore }}分
  6525. </div>
  6526. <div
  6527. class="answerScore"
  6528. @click.stop="openScore(w)"
  6529. v-else-if="courseDetail.userid == userid"
  6530. :class="{
  6531. rightW:
  6532. w.userid == userid || tType == 1 || tType == 4,
  6533. }"
  6534. >
  6535. 评分
  6536. </div>
  6537. <img
  6538. class="deleteImg"
  6539. src="../assets/deleteworks.png"
  6540. v-if="
  6541. w.userid == userid || tType == 1 || tType == 4
  6542. "
  6543. @click.stop="deleteWorks(w.wid)"
  6544. alt
  6545. />
  6546. </div>
  6547. <div class="worksName">
  6548. <div>{{ w.sName }}</div>
  6549. </div>
  6550. </div>
  6551. </div>
  6552. </div>
  6553. <div
  6554. v-if="
  6555. tType &&
  6556. ((tType == 2 && sIsOpen == true) ||
  6557. tType == 1 ||
  6558. tType == 4) &&
  6559. tool.tool.indexOf(52) != -1
  6560. "
  6561. class="worksBox"
  6562. >
  6563. <div
  6564. class="zuoyeYulan"
  6565. v-if="
  6566. worksStudent.length &&
  6567. worksStudent[toolIndex].length > 0
  6568. "
  6569. >
  6570. <div class="worksTop">
  6571. <div>作业预览</div>
  6572. <div
  6573. class="corOpen"
  6574. @click="contract(toolIndex)"
  6575. v-if="
  6576. (isCloseList[toolIndex].isCloseBoolean) &&
  6577. isCloseList[toolIndex].isClose == 0
  6578. "
  6579. >
  6580. 折叠
  6581. </div>
  6582. <div
  6583. class="corOpen"
  6584. @click="contract(toolIndex)"
  6585. v-if="isCloseList[toolIndex].isClose == 1"
  6586. >
  6587. 展开
  6588. </div>
  6589. </div>
  6590. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6591. </div>
  6592. <div
  6593. :id="'tool-' + toolIndex"
  6594. :style="{
  6595. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6596. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6597. }"
  6598. class="worksDetailBox"
  6599. v-if="
  6600. worksStudent.length &&
  6601. worksStudent[toolIndex].length > 0
  6602. "
  6603. >
  6604. <div
  6605. class="works"
  6606. style="
  6607. width: 200px;
  6608. height: 140px;
  6609. margin: 10px 10px 10px 0;
  6610. border-radius: 15px;
  6611. box-shadow: 0 0 6px 1px #dfdada;
  6612. "
  6613. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6614. :key="wIndex"
  6615. :class="w.type == 1 ? 'isTypeOne' : ''"
  6616. >
  6617. <div class="workImg">
  6618. <img :src="word" @click="openWord(w)" alt />
  6619. <!-- @click="openFile(w.works)" -->
  6620. <div
  6621. class="answerScore"
  6622. v-if="w.score"
  6623. @click.stop="openScore(w)"
  6624. :class="{
  6625. rightW:
  6626. w.userid == userid ||
  6627. tType == 1 ||
  6628. tType == 4 ||
  6629. w.ateacher == userid,
  6630. }"
  6631. >
  6632. {{ JSON.parse(w.score).wScore }}分
  6633. </div>
  6634. <div
  6635. class="answerScore"
  6636. @click.stop="openScore(w)"
  6637. v-else-if="courseDetail.userid == userid"
  6638. :class="{
  6639. rightW:
  6640. w.userid == userid ||
  6641. tType == 1 ||
  6642. tType == 4 ||
  6643. w.ateacher == userid,
  6644. }"
  6645. >
  6646. 评分
  6647. </div>
  6648. <img
  6649. class="deleteImg"
  6650. src="../assets/deleteworks.png"
  6651. v-if="
  6652. w.userid == userid || tType == 1 || tType == 4
  6653. "
  6654. @click.stop="deleteWorks(w.wid)"
  6655. alt
  6656. />
  6657. </div>
  6658. <div class="comment" style="min-width: 200px">
  6659. <div class="worksName">
  6660. <div>{{ w.sName }}</div>
  6661. </div>
  6662. <div class="commentList">
  6663. <div class="commentList">
  6664. <div
  6665. class="commentImg"
  6666. @click="
  6667. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6668. "
  6669. >
  6670. <img
  6671. :src="w.isLikes == true ? likes : noLikes"
  6672. alt=""
  6673. />
  6674. </div>
  6675. <div>{{ w.likesCount }}</div>
  6676. </div>
  6677. <div class="commentList" style="margin-right: 15px">
  6678. <div
  6679. class="commentImg"
  6680. @click="commentOther(w, toolIndex, wIndex)"
  6681. >
  6682. <img
  6683. src="../assets/icon/comment/comment.png"
  6684. alt=""
  6685. />
  6686. </div>
  6687. <div>{{ w.commentCount }}</div>
  6688. </div>
  6689. </div>
  6690. </div>
  6691. </div>
  6692. </div>
  6693. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6694. 未提交
  6695. </div>
  6696. <div
  6697. class="noWorksS"
  6698. v-if="noWorksS && noWorksS[toolIndex].length"
  6699. >
  6700. <div
  6701. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6702. :key="sIndex"
  6703. class="noWorksName"
  6704. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6705. >
  6706. <el-tooltip effect="dark" :content="s.student" placement="top">
  6707. <span>{{ s.student }}</span>
  6708. </el-tooltip>
  6709. </div>
  6710. </div>
  6711. </div>
  6712. <div
  6713. v-if="
  6714. tType &&
  6715. tType == 2 &&
  6716. !sIsOpen &&
  6717. tool.tool.indexOf(52) != -1
  6718. "
  6719. class="worksBox"
  6720. >
  6721. <div
  6722. class="zuoyeYulan"
  6723. v-if="workStudent[toolIndex].length > 0"
  6724. >
  6725. <span class="worksTitle">作业预览</span>
  6726. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6727. </div>
  6728. <div
  6729. class="worksDetailBox"
  6730. v-if="workStudent[toolIndex].length > 0"
  6731. >
  6732. <div
  6733. class="works"
  6734. style="
  6735. width: 200px;
  6736. height: 140px;
  6737. margin: 10px 10px 10px 0;
  6738. box-shadow: 0 0 6px 1px #dfdada;
  6739. "
  6740. v-for="(w, wIndex) in workStudent[toolIndex]"
  6741. :key="wIndex"
  6742. >
  6743. <div class="workImg">
  6744. <img :src="word" @click="openWord(w)" alt />
  6745. <div
  6746. class="answerScore"
  6747. v-if="w.score"
  6748. @click.stop="openScore(w)"
  6749. :class="{
  6750. rightW:
  6751. w.userid == userid || tType == 1 || tType == 4,
  6752. }"
  6753. >
  6754. {{ JSON.parse(w.score).wScore }}分
  6755. </div>
  6756. <div
  6757. class="answerScore"
  6758. @click.stop="openScore(w)"
  6759. v-else-if="courseDetail.userid == userid"
  6760. :class="{
  6761. rightW:
  6762. w.userid == userid || tType == 1 || tType == 4,
  6763. }"
  6764. >
  6765. 评分
  6766. </div>
  6767. <img
  6768. class="deleteImg"
  6769. src="../assets/deleteworks.png"
  6770. v-if="
  6771. w.userid == userid || tType == 1 || tType == 4
  6772. "
  6773. @click.stop="deleteWorks(w.wid)"
  6774. alt
  6775. />
  6776. </div>
  6777. <div class="worksName">
  6778. <div>{{ w.sName }}</div>
  6779. </div>
  6780. </div>
  6781. </div>
  6782. </div>
  6783. <div
  6784. v-if="tool.tool.indexOf(49) != -1"
  6785. class="xuan_right_box"
  6786. style="margin: 0 15px 0 25px; width: 93%"
  6787. >
  6788. <div
  6789. v-if="courseDetail.userid == userid"
  6790. style="
  6791. display: flex;
  6792. justify-content: flex-end;
  6793. margin-right: 10px;
  6794. "
  6795. >
  6796. <el-button
  6797. type="primary"
  6798. size="small"
  6799. @click="addTools(49, toolIndex, taskCount)"
  6800. >分组设置</el-button
  6801. >
  6802. </div>
  6803. <div
  6804. v-if="groupStudentUid[toolIndex]"
  6805. class="group_staic_box"
  6806. >
  6807. <div
  6808. v-for="(gp, gd) in tool.groupJson.group"
  6809. :key="gd"
  6810. class="group_staic"
  6811. >
  6812. <span> {{ gp.name }}</span>
  6813. <span>
  6814. 目前人数{{
  6815. groupStudentUid[toolIndex][gd].length
  6816. }}人</span
  6817. >
  6818. </div>
  6819. </div>
  6820. </div>
  6821. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6822. <div
  6823. class="zuoyeYulan"
  6824. v-if="
  6825. worksStudent.length &&
  6826. worksStudent[toolIndex].length > 0
  6827. "
  6828. >
  6829. <span class="worksTitle">作业预览</span>
  6830. </div>
  6831. <div>
  6832. <div
  6833. class="group_workBox"
  6834. v-for="(g, gindex) in tool.groupJson.group"
  6835. :key="gindex"
  6836. >
  6837. <div
  6838. class="group_box"
  6839. v-if="
  6840. groupStudentUid[toolIndex] &&
  6841. worksStudent[toolIndex] &&
  6842. (worksStudent[toolIndex][gindex].length ||
  6843. groupStudentUid[toolIndex][gindex].indexOf(
  6844. userid
  6845. ) != -1)
  6846. "
  6847. >
  6848. <div class="group_title">
  6849. <el-tooltip
  6850. class="item"
  6851. effect="light"
  6852. :content="g.name"
  6853. placement="top"
  6854. >
  6855. <div class="group_name">{{ g.name }}</div>
  6856. </el-tooltip>
  6857. <el-button
  6858. type="primary"
  6859. v-if="
  6860. groupStudentUid[toolIndex][gindex].indexOf(
  6861. userid
  6862. ) != -1
  6863. "
  6864. @click="groupUpload(toolIndex, taskCount, gindex)"
  6865. >上传作业</el-button
  6866. >
  6867. </div>
  6868. <div class="group_work">
  6869. <div
  6870. class="works"
  6871. style="
  6872. width: 200px;
  6873. height: 140px;
  6874. margin: 10px 10px 10px 0;
  6875. border-radius: 15px;
  6876. box-shadow: 0 0 6px 1px #dfdada;
  6877. "
  6878. v-for="(w, wIndex) in worksStudent[toolIndex][
  6879. gindex
  6880. ]"
  6881. :key="wIndex"
  6882. :class="w.type == 1 ? 'isTypeOne' : ''"
  6883. >
  6884. <div class="workImg" v-if="w.type == 0">
  6885. <img
  6886. :src="w.works"
  6887. @click="previewImg(w.works,w)"
  6888. alt
  6889. />
  6890. <div
  6891. class="answerScore"
  6892. v-if="w.score"
  6893. @click.stop="openScore(w)"
  6894. :class="{
  6895. rightW:
  6896. w.userid == userid ||
  6897. tType == 1 ||
  6898. tType == 4 ||
  6899. w.ateacher == userid,
  6900. }"
  6901. >
  6902. {{ JSON.parse(w.score).wScore }}分
  6903. </div>
  6904. <div
  6905. class="answerScore"
  6906. @click.stop="openScore(w)"
  6907. v-else-if="courseDetail.userid == userid"
  6908. :class="{
  6909. rightW:
  6910. w.userid == userid ||
  6911. tType == 1 ||
  6912. tType == 4 ||
  6913. w.ateacher == userid,
  6914. }"
  6915. >
  6916. 评分
  6917. </div>
  6918. <img
  6919. class="deleteImg"
  6920. src="../assets/deleteworks.png"
  6921. v-if="
  6922. w.userid == userid ||
  6923. tType == 1 ||
  6924. tType == 4
  6925. "
  6926. @click.stop="deleteWorks(w.wid)"
  6927. alt
  6928. />
  6929. </div>
  6930. <div class="workImg" v-if="w.type == 1">
  6931. <img
  6932. :src="word"
  6933. @click="openFile(w.works,w)"
  6934. alt
  6935. />
  6936. <!-- @click="openFile(w.works)" -->
  6937. <div
  6938. class="answerScore"
  6939. v-if="w.score"
  6940. @click.stop="openScore(w)"
  6941. :class="{
  6942. rightW:
  6943. w.userid == userid ||
  6944. tType == 1 ||
  6945. tType == 4 ||
  6946. w.ateacher == userid,
  6947. }"
  6948. >
  6949. {{ JSON.parse(w.score).wScore }}分
  6950. </div>
  6951. <div
  6952. class="answerScore"
  6953. @click.stop="openScore(w)"
  6954. v-else-if="courseDetail.userid == userid"
  6955. :class="{
  6956. rightW:
  6957. w.userid == userid ||
  6958. tType == 1 ||
  6959. tType == 4 ||
  6960. w.ateacher == userid,
  6961. }"
  6962. >
  6963. 评分
  6964. </div>
  6965. <img
  6966. class="deleteImg"
  6967. src="../assets/deleteworks.png"
  6968. v-if="
  6969. w.userid == userid ||
  6970. tType == 1 ||
  6971. tType == 4
  6972. "
  6973. @click.stop="deleteWorks(w.wid)"
  6974. alt
  6975. />
  6976. </div>
  6977. <div class="workImg" v-if="w.type == 3">
  6978. <img
  6979. style="cursor: pointer"
  6980. :src="video"
  6981. @click="openVideo(w)"
  6982. alt
  6983. />
  6984. <!-- @click="openVideo(w.works)" -->
  6985. <div
  6986. class="answerScore"
  6987. v-if="w.score"
  6988. @click.stop="openScore(w)"
  6989. :class="{
  6990. rightW:
  6991. w.userid == userid ||
  6992. tType == 1 ||
  6993. tType == 4 ||
  6994. w.ateacher == userid,
  6995. }"
  6996. >
  6997. {{ JSON.parse(w.score).wScore }}分
  6998. </div>
  6999. <div
  7000. class="answerScore"
  7001. @click.stop="openScore(w)"
  7002. v-else-if="courseDetail.userid == userid"
  7003. :class="{
  7004. rightW:
  7005. w.userid == userid ||
  7006. tType == 1 ||
  7007. tType == 4 ||
  7008. w.ateacher == userid,
  7009. }"
  7010. >
  7011. 评分
  7012. </div>
  7013. <img
  7014. class="deleteImg"
  7015. src="../assets/deleteworks.png"
  7016. v-if="
  7017. w.userid == userid ||
  7018. tType == 1 ||
  7019. tType == 4
  7020. "
  7021. @click.stop="deleteWorks(w.wid)"
  7022. alt
  7023. />
  7024. </div>
  7025. <div class="workImg" v-if="w.type == 12">
  7026. <img
  7027. style="cursor: pointer"
  7028. :src="word2"
  7029. @click="downloadFile(w.works)"
  7030. alt
  7031. />
  7032. <!-- @click="openVideo(w.works)" -->
  7033. <div
  7034. class="answerScore"
  7035. v-if="w.score"
  7036. @click.stop="openScore(w)"
  7037. :class="{
  7038. rightW:
  7039. w.userid == userid ||
  7040. tType == 1 ||
  7041. tType == 4 ||
  7042. w.ateacher == userid,
  7043. }"
  7044. >
  7045. {{ JSON.parse(w.score).wScore }}分
  7046. </div>
  7047. <div
  7048. class="answerScore"
  7049. @click.stop="openScore(w)"
  7050. v-else-if="courseDetail.userid == userid"
  7051. :class="{
  7052. rightW:
  7053. w.userid == userid ||
  7054. tType == 1 ||
  7055. tType == 4 ||
  7056. w.ateacher == userid,
  7057. }"
  7058. >
  7059. 评分
  7060. </div>
  7061. <img
  7062. class="deleteImg"
  7063. src="../assets/deleteworks.png"
  7064. v-if="
  7065. w.userid == userid ||
  7066. tType == 1 ||
  7067. tType == 4
  7068. "
  7069. @click.stop="deleteWorks(w.wid)"
  7070. alt
  7071. />
  7072. </div>
  7073. <div class="comment" style="min-width: 200px">
  7074. <div class="worksName">
  7075. <div>{{ w.sName }}</div>
  7076. </div>
  7077. <div class="commentList">
  7078. <div class="commentList">
  7079. <div
  7080. class="commentImg"
  7081. @click="
  7082. isLikes(
  7083. w.wid,
  7084. userid,
  7085. 1,
  7086. null,
  7087. w.isLikes,
  7088. w.sName
  7089. )
  7090. "
  7091. >
  7092. <img
  7093. :src="
  7094. w.isLikes == true ? likes : noLikes
  7095. "
  7096. alt=""
  7097. />
  7098. </div>
  7099. <div>{{ w.likesCount }}</div>
  7100. </div>
  7101. <div
  7102. class="commentList"
  7103. style="margin-right: 15px"
  7104. >
  7105. <div
  7106. class="commentImg"
  7107. @click="
  7108. commentOther(
  7109. w,
  7110. toolIndex,
  7111. wIndex,
  7112. gindex
  7113. )
  7114. "
  7115. >
  7116. <img
  7117. src="../assets/icon/comment/comment.png"
  7118. alt=""
  7119. />
  7120. </div>
  7121. <div>{{ w.commentCount }}</div>
  7122. </div>
  7123. </div>
  7124. </div>
  7125. </div>
  7126. </div>
  7127. </div>
  7128. </div>
  7129. </div>
  7130. </div>
  7131. </div>
  7132. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7133. 上传文件
  7134. <input
  7135. type="file"
  7136. accept="image/png, image/gif, image/jpeg"
  7137. style="display: none"
  7138. @change="beforeUpload1($event, 2, index)"
  7139. />
  7140. </div>-->
  7141. </div>
  7142. </div>
  7143. <!-- <div
  7144. class="vedioBox"
  7145. style="margin-top: 10px"
  7146. v-if="
  7147. courseDetail.userid == userid ||
  7148. (courseDetail.course_teacher &&
  7149. courseDetail.course_teacher.indexOf(userid) != -1)
  7150. "
  7151. :style="{
  7152. borderRadius:
  7153. !(
  7154. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7155. .toolChoose[0].tool &&
  7156. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7157. .toolChoose[0].tool.length > 0
  7158. ) &&
  7159. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7160. .taskDetail == '' &&
  7161. vChapterData[taskCount].length == 0 &&
  7162. fileC[taskCount].length == 0
  7163. ? '0 0 20px 20px'
  7164. : '20px',
  7165. }"
  7166. >
  7167. <div
  7168. class="queTop"
  7169. @click="isClose = !isClose"
  7170. style="
  7171. padding: 15px 0 15px 37px;
  7172. justify-content: space-between;
  7173. "
  7174. >
  7175. <div class="queTopTitle">新增工具</div>
  7176. <div class="queTopRight">
  7177. <div class="queTopClose" v-if="isClose == 0">
  7178. 展开
  7179. <div class="closeImg">
  7180. <img src="../assets/icon/newIcon/close.png" alt="" />
  7181. </div>
  7182. </div>
  7183. <div class="queTopClose" v-if="isClose == 1">
  7184. 折叠
  7185. <div class="openImg">
  7186. <img src="../assets/icon/newIcon/open.png" alt="" />
  7187. </div>
  7188. </div>
  7189. <el-button
  7190. style="margin: 0 30px 0 auto"
  7191. type="primary"
  7192. size="small"
  7193. v-if="isClose == 1 && checktoolArray.length > 0"
  7194. @click.stop="addToolChoose"
  7195. >确定</el-button
  7196. >
  7197. </div>
  7198. </div>
  7199. <div
  7200. class="tool_work_box"
  7201. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7202. >
  7203. <div class="tool_box">
  7204. <div class="tool_type_box">
  7205. <div class="chooseWho">
  7206. <div
  7207. :class="toolType == 0 ? 'isChooseActive' : ''"
  7208. @click="(toolType = 0), $forceUpdate()"
  7209. >
  7210. 互动类
  7211. </div>
  7212. <div
  7213. :class="toolType == 1 ? 'isChooseActive' : ''"
  7214. @click="(toolType = 1), $forceUpdate()"
  7215. >
  7216. 思维类
  7217. </div>
  7218. <div
  7219. :class="toolType == 2 ? 'isChooseActive' : ''"
  7220. @click="(toolType = 2), $forceUpdate()"
  7221. >
  7222. 测评类
  7223. </div>
  7224. <div
  7225. :class="toolType == 3 ? 'isChooseActive' : ''"
  7226. @click="(toolType = 3), $forceUpdate()"
  7227. >
  7228. 编程类
  7229. </div>
  7230. <div
  7231. :class="toolType == 5 ? 'isChooseActive' : ''"
  7232. @click="(toolType = 5), $forceUpdate()"
  7233. >
  7234. 学科类
  7235. </div>
  7236. </div>
  7237. </div>
  7238. <div>
  7239. <div class="toolSort" v-if="toolType == 0">
  7240. <div class="tool">
  7241. <div class="whiteBIcon" @click="addTools2(10)">
  7242. <img
  7243. src="../assets/icon/thirdToolList/time.png"
  7244. alt
  7245. />
  7246. <div style="margin: 5px 0">倒计时</div>
  7247. </div>
  7248. <div class="check" @click="addTools2(10)">
  7249. <img
  7250. src="../assets/icon/checkNo.png"
  7251. alt
  7252. v-if="checktoolArray.indexOf(10) == -1"
  7253. />
  7254. <div class="checkDiv" v-else>
  7255. <img src="../assets/icon/checkedIs.png" alt /><span
  7256. >已选择</span
  7257. >
  7258. </div>
  7259. </div>
  7260. </div>
  7261. <div class="tool">
  7262. <div class="whiteBIcon" @click="addTools2(65)">
  7263. <img
  7264. src="../assets/icon/firstToolList/pickPeople.png"
  7265. alt
  7266. />
  7267. <div style="margin: 5px 0">挑人</div>
  7268. </div>
  7269. <div class="check" @click="addTools2(65)">
  7270. <img
  7271. src="../assets/icon/checkNo.png"
  7272. alt
  7273. v-if="checktoolArray.indexOf(65) == -1"
  7274. />
  7275. <div class="checkDiv" v-else>
  7276. <img src="../assets/icon/checkedIs.png" alt /><span
  7277. >已选择</span
  7278. >
  7279. </div>
  7280. </div>
  7281. </div>
  7282. </div>
  7283. <div class="toolSort" v-if="toolType == 1">
  7284. <div class="tool">
  7285. <div class="whiteBIcon" @click="addTools2(7)">
  7286. <img
  7287. src="../assets/icon/secondToolList/mindNetwork.png"
  7288. alt
  7289. />
  7290. <div style="margin: 5px 0">思维网格</div>
  7291. </div>
  7292. <div class="check" @click="addTools2(7)">
  7293. <img
  7294. src="../assets/icon/checkNo.png"
  7295. alt
  7296. v-if="checktoolArray.indexOf(7) == -1"
  7297. />
  7298. <div class="checkDiv" v-else>
  7299. <img src="../assets/icon/checkedIs.png" alt /><span
  7300. >已选择</span
  7301. >
  7302. </div>
  7303. </div>
  7304. </div>
  7305. <div class="tool">
  7306. <div class="whiteBIcon" @click="addTools2(1)">
  7307. <img
  7308. src="../assets/icon/secondToolList/whiteBoard.png"
  7309. alt
  7310. />
  7311. <div style="margin: 5px 0">电子白板</div>
  7312. </div>
  7313. <div class="check" @click="addTools2(1)">
  7314. <img
  7315. src="../assets/icon/checkNo.png"
  7316. alt
  7317. v-if="checktoolArray.indexOf(1) == -1"
  7318. />
  7319. <div class="checkDiv" v-else>
  7320. <img src="../assets/icon/checkedIs.png" alt /><span
  7321. >已选择</span
  7322. >
  7323. </div>
  7324. </div>
  7325. </div>
  7326. <div class="tool">
  7327. <div class="whiteBIcon" @click="addTools2(52)">
  7328. <img
  7329. src="../assets/icon/fourthToolList/text.png"
  7330. alt
  7331. />
  7332. <div style="margin: 5px 0">文档</div>
  7333. </div>
  7334. <div class="check" @click="addTools2(52)">
  7335. <img
  7336. src="../assets/icon/checkNo.png"
  7337. alt
  7338. v-if="checktoolArray.indexOf(52) == -1"
  7339. />
  7340. <div class="checkDiv" v-else>
  7341. <img src="../assets/icon/checkedIs.png" alt /><span
  7342. >已选择</span
  7343. >
  7344. </div>
  7345. </div>
  7346. </div>
  7347. <div class="tool">
  7348. <div class="whiteBIcon" @click="addTools2(3)">
  7349. <img
  7350. src="../assets/icon/secondToolList/mindMapping.png"
  7351. alt
  7352. />
  7353. <div style="margin: 5px 0">思维导图</div>
  7354. </div>
  7355. <div class="check" @click="addTools2(3)">
  7356. <img
  7357. src="../assets/icon/checkNo.png"
  7358. alt
  7359. v-if="checktoolArray.indexOf(3) == -1"
  7360. />
  7361. <div class="checkDiv" v-else>
  7362. <img src="../assets/icon/checkedIs.png" alt /><span
  7363. >已选择</span
  7364. >
  7365. </div>
  7366. </div>
  7367. </div>
  7368. <div class="tool">
  7369. <div class="whiteBIcon" @click="addTools2(48)">
  7370. <img
  7371. src="../assets/icon/fourthToolList/table.png"
  7372. alt
  7373. />
  7374. <div style="margin: 5px 0">表格</div>
  7375. </div>
  7376. <div class="check" @click="addTools2(48)">
  7377. <img
  7378. src="../assets/icon/checkNo.png"
  7379. alt
  7380. v-if="checktoolArray.indexOf(48) == -1"
  7381. />
  7382. <div class="checkDiv" v-else>
  7383. <img src="../assets/icon/checkedIs.png" alt /><span
  7384. >已选择</span
  7385. >
  7386. </div>
  7387. </div>
  7388. </div>
  7389. </div>
  7390. <div class="toolSort" v-if="toolType == 6">
  7391. <div v-show="tooC == 49">
  7392. <img
  7393. @click="addTools(tooC, toolIndex, taskCount)"
  7394. src="../assets/icon/fourthToolList/group.png"
  7395. alt
  7396. />
  7397. <div style="margin: 5px 0">学生分组</div>
  7398. </div>
  7399. </div>
  7400. <div class="toolSort" v-if="toolType == 2">
  7401. <div class="tool">
  7402. <div class="whiteBIcon" @click="addTools2(16)">
  7403. <img
  7404. src="../assets/icon/thirdToolList/work.png"
  7405. alt
  7406. />
  7407. <div style="margin: 5px 0">作业提交</div>
  7408. </div>
  7409. <div class="check" @click="addTools2(16)">
  7410. <img
  7411. src="../assets/icon/checkNo.png"
  7412. alt
  7413. v-if="checktoolArray.indexOf(16) == -1"
  7414. />
  7415. <div class="checkDiv" v-else>
  7416. <img src="../assets/icon/checkedIs.png" alt /><span
  7417. >已选择</span
  7418. >
  7419. </div>
  7420. </div>
  7421. </div>
  7422. <div class="tool">
  7423. <div class="whiteBIcon" @click="addTools2(50)">
  7424. <img
  7425. src="../assets/icon/thirdToolList/plwork.png"
  7426. alt
  7427. />
  7428. <div style="margin: 5px 0">批量上传</div>
  7429. </div>
  7430. <div class="check" @click="addTools2(50)">
  7431. <img
  7432. src="../assets/icon/checkNo.png"
  7433. alt
  7434. v-if="checktoolArray.indexOf(50) == -1"
  7435. />
  7436. <div class="checkDiv" v-else>
  7437. <img src="../assets/icon/checkedIs.png" alt /><span
  7438. >已选择</span
  7439. >
  7440. </div>
  7441. </div>
  7442. </div>
  7443. </div>
  7444. <div class="toolSort" v-if="toolType == 3">
  7445. <div class="tool">
  7446. <div class="whiteBIcon" @click="addTools2(18)">
  7447. <img
  7448. src="../assets/icon/thirdToolList/trainPlatform.png"
  7449. alt
  7450. />
  7451. <div style="margin: 5px 0">训练平台</div>
  7452. </div>
  7453. <div class="check" @click="addTools2(18)">
  7454. <img
  7455. src="../assets/icon/checkNo.png"
  7456. alt
  7457. v-if="checktoolArray.indexOf(18) == -1"
  7458. />
  7459. <div class="checkDiv" v-else>
  7460. <img src="../assets/icon/checkedIs.png" alt /><span
  7461. >已选择</span
  7462. >
  7463. </div>
  7464. </div>
  7465. </div>
  7466. <div class="tool">
  7467. <div class="whiteBIcon" @click="addTools2(21)">
  7468. <img
  7469. src="../assets/icon/fourthToolList/program.png"
  7470. alt
  7471. />
  7472. <div style="margin: 5px 0">AIoT Blockly</div>
  7473. </div>
  7474. <div class="check" @click="addTools2(21)">
  7475. <img
  7476. src="../assets/icon/checkNo.png"
  7477. alt
  7478. v-if="checktoolArray.indexOf(21) == -1"
  7479. />
  7480. <div class="checkDiv" v-else>
  7481. <img src="../assets/icon/checkedIs.png" alt /><span
  7482. >已选择</span
  7483. >
  7484. </div>
  7485. </div>
  7486. </div>
  7487. <div class="tool">
  7488. <div class="whiteBIcon" @click="addTools2(23)">
  7489. <img
  7490. src="../assets/icon/fourthToolList/Pythonprogram.png"
  7491. alt
  7492. />
  7493. <div style="margin: 5px 0">AI Python</div>
  7494. </div>
  7495. <div class="check" @click="addTools2(23)">
  7496. <img
  7497. src="../assets/icon/checkNo.png"
  7498. alt
  7499. v-if="checktoolArray.indexOf(23) == -1"
  7500. />
  7501. <div class="checkDiv" v-else>
  7502. <img src="../assets/icon/checkedIs.png" alt /><span
  7503. >已选择</span
  7504. >
  7505. </div>
  7506. </div>
  7507. </div>
  7508. <div class="tool">
  7509. <div class="whiteBIcon" @click="addTools2(24)">
  7510. <img
  7511. src="../assets/icon/fourthToolList/AIprogram.png"
  7512. alt
  7513. />
  7514. <div style="margin: 5px 0">AI Blockly</div>
  7515. </div>
  7516. <div class="check" @click="addTools2(24)">
  7517. <img
  7518. src="../assets/icon/checkNo.png"
  7519. alt
  7520. v-if="checktoolArray.indexOf(24) == -1"
  7521. />
  7522. <div class="checkDiv" v-else>
  7523. <img src="../assets/icon/checkedIs.png" alt /><span
  7524. >已选择</span
  7525. >
  7526. </div>
  7527. </div>
  7528. </div>
  7529. <div class="tool">
  7530. <div class="whiteBIcon" @click="addTools2(32)">
  7531. <img
  7532. src="../assets/icon/thirdToolList/code.png"
  7533. alt
  7534. />
  7535. <div style="margin: 5px 0">源码编辑</div>
  7536. </div>
  7537. <div class="check" @click="addTools2(32)">
  7538. <img
  7539. src="../assets/icon/checkNo.png"
  7540. alt
  7541. v-if="checktoolArray.indexOf(32) == -1"
  7542. />
  7543. <div class="checkDiv" v-else>
  7544. <img src="../assets/icon/checkedIs.png" alt /><span
  7545. >已选择</span
  7546. >
  7547. </div>
  7548. </div>
  7549. </div>
  7550. <div class="tool">
  7551. <div class="whiteBIcon" @click="addTools2(57)">
  7552. <img
  7553. src="../assets/icon/fourthToolList/cocopi.png"
  7554. alt
  7555. />
  7556. <div style="margin: 5px 0">CocoPi</div>
  7557. </div>
  7558. <div class="check" @click="addTools2(57)">
  7559. <img
  7560. src="../assets/icon/checkNo.png"
  7561. alt
  7562. v-if="checktoolArray.indexOf(57) == -1"
  7563. />
  7564. <div class="checkDiv" v-else>
  7565. <img src="../assets/icon/checkedIs.png" alt /><span
  7566. >已选择</span
  7567. >
  7568. </div>
  7569. </div>
  7570. </div>
  7571. <div class="tool">
  7572. <div class="whiteBIcon" @click="addTools2(63)">
  7573. <img
  7574. src="../assets/icon/fourthToolList/Wood.png"
  7575. alt
  7576. />
  7577. <div style="margin: 5px 0">海龟编程</div>
  7578. </div>
  7579. <div class="check" @click="addTools2(63)">
  7580. <img
  7581. src="../assets/icon/checkNo.png"
  7582. alt
  7583. v-if="checktoolArray.indexOf(63) == -1"
  7584. />
  7585. <div class="checkDiv" v-else>
  7586. <img src="../assets/icon/checkedIs.png" alt /><span
  7587. >已选择</span
  7588. >
  7589. </div>
  7590. </div>
  7591. </div>
  7592. </div>
  7593. <div class="toolSort" v-if="toolType == 5">
  7594. <div class="tool">
  7595. <div class="whiteBIcon" @click="addTools2(28)">
  7596. <img
  7597. src="../assets/icon/secondToolList/translation.png"
  7598. alt
  7599. />
  7600. <div style="margin: 5px 0">翻译</div>
  7601. </div>
  7602. <div class="check" @click="addTools2(28)">
  7603. <img
  7604. src="../assets/icon/checkNo.png"
  7605. alt
  7606. v-if="checktoolArray.indexOf(28) == -1"
  7607. />
  7608. <div class="checkDiv" v-else>
  7609. <img src="../assets/icon/checkedIs.png" alt /><span
  7610. >已选择</span
  7611. >
  7612. </div>
  7613. </div>
  7614. </div>
  7615. <div class="tool">
  7616. <div class="whiteBIcon" @click="addTools2(31)">
  7617. <img
  7618. src="../assets/icon/secondToolList/networkPanel.png"
  7619. alt
  7620. />
  7621. <div style="margin: 5px 0">数字画板</div>
  7622. </div>
  7623. <div class="check" @click="addTools2(31)">
  7624. <img
  7625. src="../assets/icon/checkNo.png"
  7626. alt
  7627. v-if="checktoolArray.indexOf(31) == -1"
  7628. />
  7629. <div class="checkDiv" v-else>
  7630. <img src="../assets/icon/checkedIs.png" alt /><span
  7631. >已选择</span
  7632. >
  7633. </div>
  7634. </div>
  7635. </div>
  7636. <div class="tool">
  7637. <div class="whiteBIcon" @click="addTools2(39)">
  7638. <img
  7639. src="../assets/icon/secondToolList/GeoGebra.png"
  7640. alt
  7641. />
  7642. <div style="margin: 5px 0">GeoGebra</div>
  7643. </div>
  7644. <div class="check" @click="addTools2(39)">
  7645. <img
  7646. src="../assets/icon/checkNo.png"
  7647. alt
  7648. v-if="checktoolArray.indexOf(39) == -1"
  7649. />
  7650. <div class="checkDiv" v-else>
  7651. <img src="../assets/icon/checkedIs.png" alt /><span
  7652. >已选择</span
  7653. >
  7654. </div>
  7655. </div>
  7656. </div>
  7657. <div class="tool">
  7658. <div class="whiteBIcon" @click="addTools2(66)">
  7659. <img
  7660. src="../assets/icon/secondToolList/formulaEdi.png"
  7661. alt
  7662. />
  7663. <div style="margin: 5px 0">公式编辑</div>
  7664. </div>
  7665. <div class="check" @click="addTools2(66)">
  7666. <img
  7667. src="../assets/icon/checkNo.png"
  7668. alt
  7669. v-if="checktoolArray.indexOf(66) == -1"
  7670. />
  7671. <div class="checkDiv" v-else>
  7672. <img src="../assets/icon/checkedIs.png" alt /><span
  7673. >已选择</span
  7674. >
  7675. </div>
  7676. </div>
  7677. </div>
  7678. <div class="tool">
  7679. <div class="whiteBIcon" @click="addTools2(67)">
  7680. <img
  7681. src="../assets/icon/secondToolList/molStr.png"
  7682. alt
  7683. />
  7684. <div style="margin: 5px 0">分子结构</div>
  7685. </div>
  7686. <div class="check" @click="addTools2(67)">
  7687. <img
  7688. src="../assets/icon/checkNo.png"
  7689. alt
  7690. v-if="checktoolArray.indexOf(67) == -1"
  7691. />
  7692. <div class="checkDiv" v-else>
  7693. <img src="../assets/icon/checkedIs.png" alt /><span
  7694. >已选择</span
  7695. >
  7696. </div>
  7697. </div>
  7698. </div>
  7699. <div class="tool">
  7700. <div class="whiteBIcon" @click="addTools2(68)">
  7701. <img
  7702. src="../assets/icon/secondToolList/timeAxis.png"
  7703. alt
  7704. />
  7705. <div style="margin: 5px 0">时间轴</div>
  7706. </div>
  7707. <div class="check" @click="addTools2(68)">
  7708. <img
  7709. src="../assets/icon/checkNo.png"
  7710. alt
  7711. v-if="checktoolArray.indexOf(68) == -1"
  7712. />
  7713. <div class="checkDiv" v-else>
  7714. <img src="../assets/icon/checkedIs.png" alt /><span
  7715. >已选择</span
  7716. >
  7717. </div>
  7718. </div>
  7719. </div>
  7720. </div>
  7721. <div class="toolSort" v-if="toolType == 7">
  7722. <div class="tool">
  7723. <div class="whiteBIcon" @click="addTools2(40)">
  7724. <img
  7725. src="../assets/icon/secondToolList/eval.png"
  7726. alt
  7727. />
  7728. <div style="margin: 5px 0">个人评价</div>
  7729. </div>
  7730. <div class="check" @click="addTools2(40)">
  7731. <img
  7732. src="../assets/icon/checkNo.png"
  7733. alt
  7734. v-if="checktoolArray.indexOf(40) == -1"
  7735. />
  7736. <div class="checkDiv" v-else>
  7737. <img src="../assets/icon/checkedIs.png" alt /><span
  7738. >已选择</span
  7739. >
  7740. </div>
  7741. </div>
  7742. </div>
  7743. </div>
  7744. <div class="toolSort" v-if="toolType == 4">
  7745. <div class="tool">
  7746. <div class="whiteBIcon" @click="addTools2(26)">
  7747. <img
  7748. src="../assets/icon/thirdToolList/courseDesign.png"
  7749. alt
  7750. />
  7751. <div style="margin: 5px 0">课程设计</div>
  7752. </div>
  7753. <div class="check" @click="addTools2(26)">
  7754. <img
  7755. src="../assets/icon/checkNo.png"
  7756. alt
  7757. v-if="checktoolArray.indexOf(26) == -1"
  7758. />
  7759. <div class="checkDiv" v-else>
  7760. <img src="../assets/icon/checkedIs.png" alt /><span
  7761. >已选择</span
  7762. >
  7763. </div>
  7764. </div>
  7765. </div>
  7766. <div class="tool">
  7767. <div class="whiteBIcon" @click="addTools2(25)">
  7768. <img
  7769. src="../assets/icon/thirdToolList/evalua.png"
  7770. alt
  7771. />
  7772. <div style="margin: 5px 0">目标管理</div>
  7773. </div>
  7774. <div class="check" @click="addTools2(25)">
  7775. <img
  7776. src="../assets/icon/checkNo.png"
  7777. alt
  7778. v-if="checktoolArray.indexOf(25) == -1"
  7779. />
  7780. <div class="checkDiv" v-else>
  7781. <img src="../assets/icon/checkedIs.png" alt /><span
  7782. >已选择</span
  7783. >
  7784. </div>
  7785. </div>
  7786. </div>
  7787. </div>
  7788. </div>
  7789. </div>
  7790. </div>
  7791. </div> -->
  7792. <div
  7793. class="vedioBox"
  7794. style="margin-top: 10px; border-radius: 20px"
  7795. v-if="
  7796. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7797. .eList &&
  7798. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7799. .eList.length &&
  7800. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7801. .eList.length > 0 &&
  7802. tType != 2
  7803. "
  7804. >
  7805. <div
  7806. class="queTop"
  7807. style="
  7808. font-size: 20px;
  7809. padding: 15px 0 15px 37px;
  7810. font-weight: bold;
  7811. "
  7812. >
  7813. <!-- <div class="question" style="width: 30px">
  7814. <img src="../assets/icon/toolIcon.png" alt />
  7815. </div>
  7816. <div class="queTitle">
  7817. <div>工具</div>
  7818. </div>-->
  7819. 评一评
  7820. </div>
  7821. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7822. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7823. <el-table
  7824. :data="
  7825. chapInfoList[courseType].chapterInfo[0].taskJson[
  7826. taskCount
  7827. ].eList
  7828. "
  7829. :header-cell-style="{ background: '#F0F4FA' }"
  7830. :row-class-name="tableRowClassName"
  7831. border
  7832. stripe
  7833. style="width: 100%"
  7834. >
  7835. <el-table-column
  7836. label="评价名称"
  7837. align="center"
  7838. >
  7839. <template slot-scope="scope"
  7840. ><div>{{ scope.row.value }}</div></template
  7841. >
  7842. </el-table-column>
  7843. <el-table-column
  7844. label="评价描述"
  7845. align="center"
  7846. >
  7847. <template slot-scope="scope"
  7848. ><div>
  7849. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7850. </div></template
  7851. >
  7852. </el-table-column>
  7853. <el-table-column label="目标" align="center">
  7854. <template slot-scope="scope"
  7855. ><div>
  7856. {{
  7857. scope.row.target
  7858. ? scope.row.target[scope.row.target.length - 1]
  7859. : "-"
  7860. }}
  7861. </div></template
  7862. ></el-table-column
  7863. >
  7864. </el-table>
  7865. <!-- <div
  7866. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7867. .chapterInfo[0].taskJson[taskCount].eList"
  7868. :key="eIndex"
  7869. class="elist_input_box"
  7870. >
  7871. <div style="width: 95%">
  7872. <div
  7873. style="
  7874. display: flex;
  7875. flex-direction: row;
  7876. flex-wrap: nowrap;
  7877. align-items: center;
  7878. "
  7879. >
  7880. <div style="max-width: calc(100% - 285px)">
  7881. <span>{{ eItem.value }}</span>
  7882. </div>
  7883. <div
  7884. style="
  7885. padding-left: 25px;
  7886. display: flex;
  7887. flex-direction: row;
  7888. align-items: center;
  7889. "
  7890. >
  7891. <el-rate
  7892. v-model="eItem.score"
  7893. :colors="colors"
  7894. disabled
  7895. ></el-rate>
  7896. </div>
  7897. </div>
  7898. <div class="elist_inptu_text" style="padding-left: 10px">
  7899. <span v-if="eItem.detail != ''">{{
  7900. eItem.detail
  7901. }}</span>
  7902. <span v-else style="color: #b2b1b3; font-size: 14px"
  7903. >暂无描述...</span
  7904. >
  7905. </div>
  7906. </div>
  7907. </div> -->
  7908. </div>
  7909. <div
  7910. v-if="evalua"
  7911. style="
  7912. border: 1px solid #e5e5e5;
  7913. max-width: 650px;
  7914. width: 100%;
  7915. margin-top: 20px;
  7916. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7917. "
  7918. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7919. >
  7920. <div class="e_add_top">
  7921. <div class="e_add_title" style="width: 100%">
  7922. <!-- <span>目标管理名称</span> -->
  7923. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7924. <img
  7925. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7926. src="../assets/line.png"
  7927. class="cru_line"
  7928. style="
  7929. width: 125px;
  7930. height: 20px;
  7931. bottom: -10px;
  7932. left: 5px;
  7933. "
  7934. />
  7935. <!-- <el-input
  7936. v-model="eTitle"
  7937. placeholder="请输入名称"
  7938. @change="setMindData"
  7939. ></el-input>-->
  7940. <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>
  7941. <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>
  7942. </div>
  7943. </div>
  7944. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7945. <div class="e_add_list_pbox">
  7946. <div class="e_add_list_pbox_title">
  7947. <!-- <span class="type_title">切换模式</span> -->
  7948. <div class="type_content">
  7949. <span
  7950. :class="{ active: typeMode == 1 }"
  7951. @click="typeMode = 1"
  7952. >目标树</span
  7953. >
  7954. <span
  7955. :class="{ active: typeMode == 2 }"
  7956. @click="typeMode = 2"
  7957. >目标罗盘</span
  7958. >
  7959. <!-- <span
  7960. :class="{ active: typeMode == 3 }"
  7961. @click="typeMode = 3"
  7962. >目标看板</span
  7963. > -->
  7964. </div>
  7965. </div>
  7966. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7967. <Mind
  7968. :showBar="false"
  7969. :mindData="data"
  7970. style="width: 100%"
  7971. v-show="typeMode == 1"
  7972. ></Mind>
  7973. <Sunburst
  7974. :Josn="eJson"
  7975. :num="eJSONNum"
  7976. style="width: 100%"
  7977. v-if="typeMode == 2"
  7978. ></Sunburst>
  7979. <SeeBoard
  7980. :Josn="eJson"
  7981. :num="eJSONNum"
  7982. :ename="eTitle"
  7983. style="width: 100%"
  7984. v-if="typeMode == 3"
  7985. >
  7986. </SeeBoard>
  7987. </div>
  7988. </div>
  7989. </div>
  7990. </div>
  7991. </div>
  7992. </div>
  7993. <!-- <div
  7994. class="project_box"
  7995. style="margin-top: 15px; padding-bottom: 30px"
  7996. >
  7997. <div
  7998. style="
  7999. display: flex;
  8000. flex-wrap: nowrap;
  8001. flex-direction: column;
  8002. position: relative;
  8003. "
  8004. >
  8005. <div class="queTop">
  8006. <div class="question">
  8007. <img src="../assets/icon/homeWork.png" alt="" />
  8008. </div>
  8009. <div class="queTitle">
  8010. <div>作业提交<span>(提交图文视频等)</span></div>
  8011. <div>:任务:{{ task.task }}</div>
  8012. </div>
  8013. </div>
  8014. <div class="ediBottom">
  8015. <div
  8016. class="addEditor"
  8017. style="margin-top: 23px"
  8018. @click="openAddWork"
  8019. v-if="!isNoHomeWork"
  8020. >
  8021. 选择文件
  8022. </div>
  8023. <div
  8024. class="addEditor"
  8025. style="margin-top: 23px"
  8026. @click="openAddWork"
  8027. v-else
  8028. >
  8029. 已提交
  8030. </div>
  8031. </div>
  8032. </div>
  8033. </div>-->
  8034. </div>
  8035. </div>
  8036. <el-dialog
  8037. title="作业提交"
  8038. :visible.sync="dialogVisible"
  8039. :append-to-body="true"
  8040. width="500px"
  8041. :before-close="handleClose"
  8042. class="dialog_change"
  8043. >
  8044. <div class="marginT">
  8045. <div>上传文件</div>
  8046. <div
  8047. class="chapter_add"
  8048. @click="addImg($event)"
  8049. v-if="studyJuri[0].cover.length == 0"
  8050. >
  8051. <div class="up_photo">
  8052. <img src="../assets/icon/uploadImg.png" alt />
  8053. </div>
  8054. <!-- <input
  8055. type="file"
  8056. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8057. style="display: none"
  8058. @change="beforeUpload1($event, 1)"
  8059. /> -->
  8060. <input
  8061. type="file"
  8062. accept="*"
  8063. style="display: none"
  8064. @change="beforeUpload1($event, 1)"
  8065. />
  8066. <!-- <input
  8067. type="file"
  8068. accept="image/*"
  8069. capture="camera"
  8070. style="display: none"
  8071. @change="beforeUpload1($event, 1)"
  8072. /> -->
  8073. </div>
  8074. <div
  8075. class="chapter_add"
  8076. style="
  8077. display: flex;
  8078. width: 100%;
  8079. flex-direction: row;
  8080. flex-wrap: wrap;
  8081. justify-content: flex-start;
  8082. padding: 15px 0;
  8083. "
  8084. v-if="studyJuri[0].cover.length > 0"
  8085. >
  8086. <div class="upCover">
  8087. <img
  8088. :src="studyJuri[0].cover[0].url"
  8089. alt
  8090. v-if="fileType == 0"
  8091. />
  8092. <img :src="word" alt v-else-if="fileType == 1" />
  8093. <img :src="video" alt v-else-if="fileType == 2" />
  8094. <img :src="word2" alt v-else-if="fileType == 3" />
  8095. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8096. <div class="deleteWord" @click="clean(1)">
  8097. <img src="../assets/icon/deleteWorks.png" alt />
  8098. </div>
  8099. </div>
  8100. </div>
  8101. </div>
  8102. <div
  8103. class="upload_send"
  8104. @click="addCourseWorks(taskCount)"
  8105. v-if="!proVisible"
  8106. >
  8107. 提交
  8108. </div>
  8109. </el-dialog>
  8110. </div>
  8111. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8112. <classRoomHelper v-if="!['2'].includes(tType)" @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(
  8113. '/courseDetail?userid=' +
  8114. userid +
  8115. '&oid=' +
  8116. oid +
  8117. '&org=' +
  8118. org +
  8119. '&cid=' +
  8120. classId +
  8121. '&courseId=' +
  8122. id +
  8123. '&tType=' +
  8124. tType +
  8125. '&screenType=' +
  8126. screenType
  8127. )"></classRoomHelper>
  8128. </div>
  8129. <div
  8130. class="pButton"
  8131. @click="(pzDialog = true), selectPz()"
  8132. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8133. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8134. >
  8135. <!-- 批 -->
  8136. <img src="../assets/mlBtn.png" style="width: 25px" alt="" />
  8137. </div>
  8138. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8139. <div class="pzTop2">
  8140. <!-- <div>评论</div>
  8141. <div @click="pzDialog = false">
  8142. <img src="../assets/close1.png" alt="" />
  8143. </div> -->
  8144. <div class="checkbox">
  8145. <!-- <div class="check" style="font-size: 25px; position: unset">
  8146. 评论
  8147. </div> -->
  8148. <div class="cb-tabList">
  8149. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8150. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8151. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8152. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8153. </div>
  8154. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8155. <el-option label="时间降序" :value="1"></el-option>
  8156. <el-option label="时间升序" :value="2"></el-option>
  8157. <el-option label="我的评课" :value="3"></el-option>
  8158. </el-select>
  8159. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8160. </div>
  8161. </div>
  8162. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8163. <div class="pzListBox" v-if="pzList && pzList.length">
  8164. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8165. <div class="pzNavTop">
  8166. <div>评</div>
  8167. <div>
  8168. {{
  8169. pz.username && pz.username.length > 5
  8170. ? pz.username.substring(0, 5) + "..."
  8171. : pz.username
  8172. }}的评论
  8173. </div>
  8174. <div
  8175. class="pzDelete"
  8176. v-if="pz.userid == userid"
  8177. @click="deletePz(pz.id)"
  8178. >
  8179. 删除
  8180. </div>
  8181. </div>
  8182. <div
  8183. @click="checkImg(getImgList(pz.content))"
  8184. class="pzContent cont"
  8185. v-html="pz.content"
  8186. v-if="pz.type == '1'"
  8187. ></div>
  8188. <div class="pzContent" v-if="pz.type == '2'">
  8189. <audio :src="pz.content" controls="controls" ref="audio">
  8190. Your browser does not support the audio element.
  8191. </audio>
  8192. </div>
  8193. <div class="pzContent" v-if="pz.type == '3'">
  8194. <img
  8195. :src="pz.content"
  8196. style="width: 90%; margin: 0 auto; display: block"
  8197. @click="previewImg(pz.content)"
  8198. />
  8199. </div>
  8200. <div class="timeAndReply">
  8201. <div class="time">
  8202. {{ pz.time }}
  8203. </div>
  8204. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8205. </div>
  8206. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8207. <div
  8208. v-for="(h, hIndex) in pz.hfList"
  8209. :key="hIndex"
  8210. class="hfItem"
  8211. >
  8212. <div class="whoReplyWho">
  8213. <div class="hfName">{{ h.username }}</div>
  8214. <div class="hfImg">
  8215. <img src="../assets/icon/newIcons/right.png" alt="" />
  8216. </div>
  8217. <div class="hfName">{{ pz.username }}</div>
  8218. </div>
  8219. <div class="hfContent" v-html="h.content"></div>
  8220. <div class="hfBottom">
  8221. <div class="hfTime">{{ h.time }}</div>
  8222. <div
  8223. class="deleteHfItem"
  8224. @click="deleteReply(h.id)"
  8225. v-if="userid == h.userid"
  8226. >
  8227. <img src="../assets/icon/newIcons/delete.png" alt="" />
  8228. </div>
  8229. </div>
  8230. </div>
  8231. </div>
  8232. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8233. <div class="replyInput">
  8234. <el-input v-model="reply[pzIndex]"></el-input>
  8235. </div>
  8236. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8237. </div> -->
  8238. </div>
  8239. </div>
  8240. <div class="noPz" v-else>
  8241. <img src="../assets/icon/noPz.png" alt="" />
  8242. </div>
  8243. <div class="addPzButton">
  8244. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8245. 添加评论
  8246. </div>
  8247. <!-- <div class="img1">
  8248. <div @click="(addPzDialog = true), (pzType = 2)">
  8249. <img src="../assets/audio.png" /><span>音频</span>
  8250. </div>
  8251. </div> -->
  8252. </div>
  8253. </div>
  8254. <div class="scoreList" v-if="commentTagShow==1">
  8255. <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"/>
  8256. </div>
  8257. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8258. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8259. </div>
  8260. </div>
  8261. <div
  8262. v-if="toolDialogVisible == true"
  8263. class="toolMask"
  8264. @click="toolDialogVisible = false"
  8265. ></div>
  8266. <div v-if="toolDialogVisible == true" class="addToolCss">
  8267. <div class="toolTop">
  8268. <div style="font-weight: bold">新增工具</div>
  8269. <div @click="toolDialogVisible = false">
  8270. <img src="../assets/icon/close.png" class="toolClose" alt="" />
  8271. </div>
  8272. </div>
  8273. <div class="tool_box">
  8274. <div class="tool_type_box">
  8275. <div class="chooseWho">
  8276. <div
  8277. :class="toolType == 0 ? 'isChooseActive' : ''"
  8278. @click="(toolType = 0), $forceUpdate()"
  8279. >
  8280. 互动类
  8281. </div>
  8282. <div
  8283. :class="toolType == 1 ? 'isChooseActive' : ''"
  8284. @click="(toolType = 1), $forceUpdate()"
  8285. >
  8286. 思维类
  8287. </div>
  8288. <div
  8289. :class="toolType == 2 ? 'isChooseActive' : ''"
  8290. @click="(toolType = 2), $forceUpdate()"
  8291. >
  8292. 测评类
  8293. </div>
  8294. <div
  8295. :class="toolType == 3 ? 'isChooseActive' : ''"
  8296. @click="(toolType = 3), $forceUpdate()"
  8297. >
  8298. 编程类
  8299. </div>
  8300. <div
  8301. :class="toolType == 5 ? 'isChooseActive' : ''"
  8302. @click="(toolType = 5), $forceUpdate()"
  8303. >
  8304. 学科类
  8305. </div>
  8306. </div>
  8307. </div>
  8308. <div>
  8309. <div class="toolSort" v-if="toolType == 0">
  8310. <div
  8311. class="tool"
  8312. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8313. @click="addTools2(10)"
  8314. >
  8315. <div class="whiteBIcon">
  8316. <img src="../assets/icon/thirdToolList/time.png" alt />
  8317. <div style="margin: 5px 0">倒计时</div>
  8318. </div>
  8319. <div class="check">
  8320. <div
  8321. v-if="checktoolArray.indexOf(10) == -1"
  8322. class="noChoose"
  8323. ></div>
  8324. <div v-else class="isChoose"></div>
  8325. </div>
  8326. </div>
  8327. <div
  8328. class="tool"
  8329. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8330. @click="addTools2(65)"
  8331. >
  8332. <div class="whiteBIcon">
  8333. <img src="../assets/icon/firstToolList/pickPeople.png" alt />
  8334. <div style="margin: 5px 0">挑人</div>
  8335. </div>
  8336. <div class="check">
  8337. <div
  8338. v-if="checktoolArray.indexOf(65) == -1"
  8339. class="noChoose"
  8340. ></div>
  8341. <div v-else class="isChoose"></div>
  8342. </div>
  8343. </div>
  8344. </div>
  8345. <div class="toolSort" v-if="toolType == 1">
  8346. <div
  8347. class="tool"
  8348. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8349. @click="addTools2(7)"
  8350. >
  8351. <div class="whiteBIcon">
  8352. <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
  8353. <div style="margin: 5px 0">思维网格</div>
  8354. </div>
  8355. <div class="check">
  8356. <div
  8357. v-if="checktoolArray.indexOf(7) == -1"
  8358. class="noChoose"
  8359. ></div>
  8360. <div v-else class="isChoose"></div>
  8361. </div>
  8362. </div>
  8363. <div
  8364. class="tool"
  8365. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8366. @click="addTools2(1)"
  8367. >
  8368. <div class="whiteBIcon">
  8369. <img src="../assets/icon/secondToolList/whiteBoard.png" alt />
  8370. <div style="margin: 5px 0">电子白板</div>
  8371. </div>
  8372. <div class="check">
  8373. <div
  8374. v-if="checktoolArray.indexOf(1) == -1"
  8375. class="noChoose"
  8376. ></div>
  8377. <div v-else class="isChoose"></div>
  8378. </div>
  8379. </div>
  8380. <div
  8381. class="tool"
  8382. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8383. @click="addTools2(52)"
  8384. >
  8385. <div class="whiteBIcon">
  8386. <img src="../assets/icon/fourthToolList/text.png" alt />
  8387. <div style="margin: 5px 0">文档</div>
  8388. </div>
  8389. <div class="check">
  8390. <div
  8391. v-if="checktoolArray.indexOf(52) == -1"
  8392. class="noChoose"
  8393. ></div>
  8394. <div v-else class="isChoose"></div>
  8395. </div>
  8396. </div>
  8397. <div
  8398. class="tool"
  8399. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8400. @click="addTools2(3)"
  8401. >
  8402. <div class="whiteBIcon">
  8403. <img src="../assets/icon/secondToolList/mindMapping.png" alt />
  8404. <div style="margin: 5px 0">思维导图</div>
  8405. </div>
  8406. <div class="check">
  8407. <div
  8408. v-if="checktoolArray.indexOf(3) == -1"
  8409. class="noChoose"
  8410. ></div>
  8411. <div v-else class="isChoose"></div>
  8412. </div>
  8413. </div>
  8414. <div
  8415. class="tool"
  8416. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8417. @click="addTools2(48)"
  8418. >
  8419. <div class="whiteBIcon">
  8420. <img src="../assets/icon/fourthToolList/table.png" alt />
  8421. <div style="margin: 5px 0">表格</div>
  8422. </div>
  8423. <div class="check">
  8424. <div
  8425. v-if="checktoolArray.indexOf(48) == -1"
  8426. class="noChoose"
  8427. ></div>
  8428. <div v-else class="isChoose"></div>
  8429. </div>
  8430. </div>
  8431. </div>
  8432. <div class="toolSort" v-if="toolType == 6">
  8433. <div v-show="tooC == 49">
  8434. <img
  8435. @click="addTools(tooC, toolIndex, taskCount)"
  8436. src="../assets/icon/fourthToolList/group.png"
  8437. alt
  8438. />
  8439. <div style="margin: 5px 0">学生分组</div>
  8440. </div>
  8441. </div>
  8442. <div class="toolSort" v-if="toolType == 2">
  8443. <div
  8444. class="tool"
  8445. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8446. @click="addTools2(16)"
  8447. >
  8448. <div class="whiteBIcon">
  8449. <img src="../assets/icon/thirdToolList/work.png" alt />
  8450. <div style="margin: 5px 0">作业提交</div>
  8451. </div>
  8452. <div class="check">
  8453. <div
  8454. v-if="checktoolArray.indexOf(16) == -1"
  8455. class="noChoose"
  8456. ></div>
  8457. <div v-else class="isChoose"></div>
  8458. </div>
  8459. </div>
  8460. <div
  8461. class="tool"
  8462. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8463. @click="addTools2(50)"
  8464. >
  8465. <div class="whiteBIcon">
  8466. <img src="../assets/icon/thirdToolList/plwork.png" alt />
  8467. <div style="margin: 5px 0">批量上传</div>
  8468. </div>
  8469. <div class="check">
  8470. <div
  8471. v-if="checktoolArray.indexOf(50) == -1"
  8472. class="noChoose"
  8473. ></div>
  8474. <div v-else class="isChoose"></div>
  8475. </div>
  8476. </div>
  8477. </div>
  8478. <div class="toolSort" v-if="toolType == 3">
  8479. <div
  8480. class="tool"
  8481. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8482. @click="addTools2(18)"
  8483. >
  8484. <div class="whiteBIcon">
  8485. <img src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  8486. <div style="margin: 5px 0">训练平台</div>
  8487. </div>
  8488. <div class="check">
  8489. <div
  8490. v-if="checktoolArray.indexOf(18) == -1"
  8491. class="noChoose"
  8492. ></div>
  8493. <div v-else class="isChoose"></div>
  8494. </div>
  8495. </div>
  8496. <div
  8497. class="tool"
  8498. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8499. @click="addTools2(21)"
  8500. >
  8501. <div class="whiteBIcon">
  8502. <img src="../assets/icon/fourthToolList/program.png" alt />
  8503. <div style="margin: 5px 0">AIoT Blockly</div>
  8504. </div>
  8505. <div class="check">
  8506. <div
  8507. v-if="checktoolArray.indexOf(21) == -1"
  8508. class="noChoose"
  8509. ></div>
  8510. <div v-else class="isChoose"></div>
  8511. </div>
  8512. </div>
  8513. <div
  8514. class="tool"
  8515. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8516. @click="addTools2(23)"
  8517. >
  8518. <div class="whiteBIcon">
  8519. <img
  8520. src="../assets/icon/fourthToolList/Pythonprogram.png"
  8521. alt
  8522. />
  8523. <div style="margin: 5px 0">AI Python</div>
  8524. </div>
  8525. <div class="check">
  8526. <div
  8527. v-if="checktoolArray.indexOf(23) == -1"
  8528. class="noChoose"
  8529. ></div>
  8530. <div v-else class="isChoose"></div>
  8531. </div>
  8532. </div>
  8533. <div
  8534. class="tool"
  8535. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8536. @click="addTools2(24)"
  8537. >
  8538. <div class="whiteBIcon">
  8539. <img src="../assets/icon/fourthToolList/AIprogram.png" alt />
  8540. <div style="margin: 5px 0">AI Blockly</div>
  8541. </div>
  8542. <div class="check">
  8543. <div
  8544. v-if="checktoolArray.indexOf(24) == -1"
  8545. class="noChoose"
  8546. ></div>
  8547. <div v-else class="isChoose"></div>
  8548. </div>
  8549. </div>
  8550. <div
  8551. class="tool"
  8552. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8553. @click="addTools2(32)"
  8554. >
  8555. <div class="whiteBIcon">
  8556. <img src="../assets/icon/thirdToolList/code.png" alt />
  8557. <div style="margin: 5px 0">源码编辑</div>
  8558. </div>
  8559. <div class="check">
  8560. <div
  8561. v-if="checktoolArray.indexOf(32) == -1"
  8562. class="noChoose"
  8563. ></div>
  8564. <div v-else class="isChoose"></div>
  8565. </div>
  8566. </div>
  8567. <div
  8568. class="tool"
  8569. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8570. @click="addTools2(57)"
  8571. >
  8572. <div class="whiteBIcon">
  8573. <img src="../assets/icon/fourthToolList/cocopi.png" alt />
  8574. <div style="margin: 5px 0">CocoPi</div>
  8575. </div>
  8576. <div class="check">
  8577. <div
  8578. v-if="checktoolArray.indexOf(57) == -1"
  8579. class="noChoose"
  8580. ></div>
  8581. <div v-else class="isChoose"></div>
  8582. </div>
  8583. </div>
  8584. <div
  8585. class="tool"
  8586. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8587. @click="addTools2(63)"
  8588. >
  8589. <div class="whiteBIcon">
  8590. <img src="../assets/icon/fourthToolList/Wood.png" alt />
  8591. <div style="margin: 5px 0">海龟编程</div>
  8592. </div>
  8593. <div class="check">
  8594. <div
  8595. v-if="checktoolArray.indexOf(63) == -1"
  8596. class="noChoose"
  8597. ></div>
  8598. <div v-else class="isChoose"></div>
  8599. </div>
  8600. </div>
  8601. <div
  8602. class="tool"
  8603. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8604. @click="addTools2(71)"
  8605. >
  8606. <div class="whiteBIcon">
  8607. <img src="../assets/icon/fourthToolList/chatgpt.png" alt />
  8608. <div style="margin: 5px 0">AI智能体</div>
  8609. </div>
  8610. <div class="check">
  8611. <div
  8612. v-if="checktoolArray.indexOf(71) == -1"
  8613. class="noChoose"
  8614. ></div>
  8615. <div v-else class="isChoose"></div>
  8616. </div>
  8617. </div>
  8618. </div>
  8619. <div class="toolSort" v-if="toolType == 7">
  8620. <div
  8621. class="tool"
  8622. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8623. @click="addTools2(40)"
  8624. >
  8625. <div class="whiteBIcon">
  8626. <img src="../assets/icon/secondToolList/eval.png" alt />
  8627. <div style="margin: 5px 0">个人评价</div>
  8628. </div>
  8629. <div class="check">
  8630. <div
  8631. v-if="checktoolArray.indexOf(40) == -1"
  8632. class="noChoose"
  8633. ></div>
  8634. <div v-else class="isChoose"></div>
  8635. </div>
  8636. </div>
  8637. </div>
  8638. <div class="toolSort" v-if="toolType == 5">
  8639. <div
  8640. class="tool"
  8641. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8642. @click="addTools2(28)"
  8643. >
  8644. <div class="whiteBIcon">
  8645. <img src="../assets/icon/secondToolList/translation.png" alt />
  8646. <div style="margin: 5px 0">翻译</div>
  8647. </div>
  8648. <div class="check">
  8649. <div
  8650. v-if="checktoolArray.indexOf(28) == -1"
  8651. class="noChoose"
  8652. ></div>
  8653. <div v-else class="isChoose"></div>
  8654. </div>
  8655. </div>
  8656. <div
  8657. class="tool"
  8658. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8659. @click="addTools2(31)"
  8660. >
  8661. <div class="whiteBIcon">
  8662. <img src="../assets/icon/secondToolList/networkPanel.png" alt />
  8663. <div style="margin: 5px 0">数字画板</div>
  8664. </div>
  8665. <div class="check">
  8666. <div
  8667. v-if="checktoolArray.indexOf(31) == -1"
  8668. class="noChoose"
  8669. ></div>
  8670. <div v-else class="isChoose"></div>
  8671. </div>
  8672. </div>
  8673. <div
  8674. class="tool"
  8675. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8676. @click="addTools2(39)"
  8677. >
  8678. <div class="whiteBIcon">
  8679. <img src="../assets/icon/secondToolList/GeoGebra.png" alt />
  8680. <div style="margin: 5px 0">GeoGebra</div>
  8681. </div>
  8682. <div class="check">
  8683. <div
  8684. v-if="checktoolArray.indexOf(39) == -1"
  8685. class="noChoose"
  8686. ></div>
  8687. <div v-else class="isChoose"></div>
  8688. </div>
  8689. </div>
  8690. <div
  8691. class="tool"
  8692. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8693. @click="addTools2(66)"
  8694. >
  8695. <div class="whiteBIcon">
  8696. <img src="../assets/icon/secondToolList/formulaEdi.png" alt />
  8697. <div style="margin: 5px 0">公式编辑</div>
  8698. </div>
  8699. <div class="check">
  8700. <div
  8701. v-if="checktoolArray.indexOf(66) == -1"
  8702. class="noChoose"
  8703. ></div>
  8704. <div v-else class="isChoose"></div>
  8705. </div>
  8706. </div>
  8707. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8708. <div class="whiteBIcon" @click="addTools2(67)">
  8709. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  8710. <div style="margin: 5px 0">分子结构</div>
  8711. </div>
  8712. <div class="check" @click="addTools2(67)">
  8713. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8714. <div v-else class="isChoose"></div>
  8715. </div>
  8716. </div> -->
  8717. <div
  8718. class="tool"
  8719. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8720. @click="addTools2(68)"
  8721. >
  8722. <div class="whiteBIcon">
  8723. <img src="../assets/icon/secondToolList/timeAxis.png" alt />
  8724. <div style="margin: 5px 0">时间轴</div>
  8725. </div>
  8726. <div class="check">
  8727. <div
  8728. v-if="checktoolArray.indexOf(68) == -1"
  8729. class="noChoose"
  8730. ></div>
  8731. <div v-else class="isChoose"></div>
  8732. </div>
  8733. </div>
  8734. <!-- <div
  8735. class="tool"
  8736. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8737. @click="addTools2(69)"
  8738. >
  8739. <div class="whiteBIcon">
  8740. <img src="../assets/icon/secondToolList/english.png" alt />
  8741. <div style="margin: 5px 0">英语写作</div>
  8742. </div>
  8743. <div class="check">
  8744. <div
  8745. v-if="checktoolArray.indexOf(69) == -1"
  8746. class="noChoose"
  8747. ></div>
  8748. <div v-else class="isChoose"></div>
  8749. </div>
  8750. </div> -->
  8751. </div>
  8752. <div class="toolSort" v-if="toolType == 4">
  8753. <div
  8754. class="tool"
  8755. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8756. @click="addTools2(26)"
  8757. >
  8758. <div class="whiteBIcon">
  8759. <img src="../assets/icon/thirdToolList/courseDesign.png" alt />
  8760. <div style="margin: 5px 0">课程设计</div>
  8761. </div>
  8762. <div class="check">
  8763. <div
  8764. v-if="checktoolArray.indexOf(26) == -1"
  8765. class="noChoose"
  8766. ></div>
  8767. <div v-else class="isChoose"></div>
  8768. </div>
  8769. </div>
  8770. <div
  8771. class="tool"
  8772. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8773. @click="addTools2(25)"
  8774. >
  8775. <div class="whiteBIcon">
  8776. <img src="../assets/icon/thirdToolList/evalua.png" alt />
  8777. <div style="margin: 5px 0">目标管理</div>
  8778. </div>
  8779. <div class="check">
  8780. <div
  8781. v-if="checktoolArray.indexOf(25) == -1"
  8782. class="noChoose"
  8783. ></div>
  8784. <div v-else class="isChoose"></div>
  8785. </div>
  8786. </div>
  8787. </div>
  8788. </div>
  8789. </div>
  8790. <span
  8791. slot="footer"
  8792. class="dialog-footer"
  8793. style="display: block; text-align: center; padding: 0 0 10px 0"
  8794. >
  8795. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8796. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8797. </span>
  8798. </div>
  8799. <div
  8800. v-if="replyDialogVisible == true"
  8801. class="addDialogCss"
  8802. v-el-drag-dialog
  8803. >
  8804. <div class="pzTop">
  8805. <div class="teacherPz">
  8806. <div class="teacherPzImg">
  8807. <img src="../assets/icon/teacherPz.png" alt="" />
  8808. </div>
  8809. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8810. </div>
  8811. <div @click="replyDialogVisible = false">
  8812. <img src="../assets/close1.png" class="pzClose" alt="" />
  8813. </div>
  8814. </div>
  8815. <div class="addPzBox">
  8816. <!-- <div class="addPzCheck">
  8817. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8818. >文本</span
  8819. >
  8820. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8821. >音频</span
  8822. >
  8823. </div> -->
  8824. <div style="height: calc(100% - 50px)">
  8825. <editor-bar
  8826. class="binfo_input pzConText"
  8827. style="width: 100% !important; margin: 0 auto"
  8828. placeholder="请输入回复描述"
  8829. v-model="reply"
  8830. @change="change"
  8831. ></editor-bar>
  8832. </div>
  8833. <div class="addTextCss" @click="addHf">确定</div>
  8834. </div>
  8835. </div>
  8836. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8837. <div class="pzTop">
  8838. <div class="teacherPz">
  8839. <div class="teacherPzImg">
  8840. <img src="../assets/icon/teacherPz.png" alt="" />
  8841. </div>
  8842. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8843. </div>
  8844. <div @click="addPzDialog = false">
  8845. <img src="../assets/close1.png" class="pzClose" alt="" />
  8846. </div>
  8847. </div>
  8848. <div class="addPzBox">
  8849. <div class="addPzCheck">
  8850. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8851. >文本</span
  8852. >
  8853. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8854. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8855. >音频</span
  8856. >
  8857. </div>
  8858. <div style="height: calc(100% - 95px)">
  8859. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8860. v-if="pzType == 1"></textarea> -->
  8861. <editor-bar
  8862. class="binfo_input pzConText"
  8863. style="width: 100% !important"
  8864. placeholder="请输入任务描述"
  8865. v-model="pzConText"
  8866. @change="change"
  8867. v-if="pzType == 1"
  8868. ></editor-bar>
  8869. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8870. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8871. <div @click="addImg($event)">
  8872. <el-button type="primary">上传图片</el-button>
  8873. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8874. @change="beforeUpload1($event, 4)" />
  8875. </div>
  8876. </div> -->
  8877. </div>
  8878. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8879. 确定
  8880. </div>
  8881. </div>
  8882. </div>
  8883. <div v-if="proVisible" class="mask">
  8884. <div class="progressBox">
  8885. <!-- <div id="closePro" class="closeCss">
  8886. <img src="../assets/icon/close.png" alt />
  8887. </div> -->
  8888. <div class="lbox">
  8889. <img src="../assets/loading.gif" />上传中,请稍后
  8890. </div>
  8891. <div style="margin-bottom: 10px">
  8892. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8893. </div>
  8894. <el-progress
  8895. :text-inside="true"
  8896. :stroke-width="20"
  8897. :percentage="progress"
  8898. style="width: 80%"
  8899. ></el-progress>
  8900. </div>
  8901. </div>
  8902. <div v-if="proVisible2" class="mask">
  8903. <div class="progressBox">
  8904. <div class="lbox">
  8905. <img src="../assets/loading.gif" />上传中,请稍后
  8906. </div>
  8907. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8908. </div>
  8909. </div>
  8910. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8911. <img width="100%" :src="dialogImageUrl" alt />
  8912. </el-dialog>
  8913. <el-dialog
  8914. :title="noteName != '' ? noteName : '查看问卷'"
  8915. :visible.sync="dialogVisible5"
  8916. :append-to-body="true"
  8917. width="1000px"
  8918. :before-close="handleClose"
  8919. class="dialog_diy dialog_diy3"
  8920. >
  8921. <div>
  8922. <div
  8923. class="a_add_title"
  8924. style="
  8925. display: flex;
  8926. flex-direction: row;
  8927. align-items: center;
  8928. justify-content: center;
  8929. "
  8930. >
  8931. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8932. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8933. </div>
  8934. <div class="a_addBox">
  8935. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8936. 题目内容
  8937. </div>
  8938. <div
  8939. class="a_add_box"
  8940. v-for="(item1, index1) in askJson.askCount"
  8941. :key="index1"
  8942. >
  8943. <div class="a_add_head">
  8944. <div style="display: flex">
  8945. <span class="askIndex"> {{ index1 + 1 }}</span>
  8946. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8947. </div>
  8948. <img
  8949. v-if="askJson.askJson[index1].img"
  8950. :src="askJson.askJson[index1].img"
  8951. style="height: 300px; margin-top: 10px; max-width: 100%"
  8952. />
  8953. </div>
  8954. <div class="a_add_body">
  8955. <div class="a_add_input">
  8956. <el-radio-group
  8957. v-model="radio[index1]"
  8958. v-if="
  8959. askJson.askJson[index1].type == '1' ||
  8960. !askJson.askJson[index1].type
  8961. "
  8962. >
  8963. <el-radio
  8964. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8965. .checkList"
  8966. :key="checkIndex"
  8967. :label="checkIndex"
  8968. :disabled="isAnswer"
  8969. class="redioStyle"
  8970. ><span v-html="item2"></span
  8971. ></el-radio>
  8972. </el-radio-group>
  8973. <el-checkbox-group
  8974. v-model="radio[index1]"
  8975. v-if="askJson.askJson[index1].type == '2'"
  8976. >
  8977. <el-checkbox
  8978. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8979. .checkList"
  8980. :key="checkIndex1"
  8981. :label="checkIndex1"
  8982. :disabled="isAnswer"
  8983. class="redioStyle"
  8984. ><span v-html="item2"></span>
  8985. </el-checkbox>
  8986. </el-checkbox-group>
  8987. </div>
  8988. </div>
  8989. </div>
  8990. </div>
  8991. </div>
  8992. <span slot="footer" class="dialog-footer">
  8993. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8994. >取 消</el-button
  8995. >
  8996. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8997. >确 定</el-button
  8998. >
  8999. </span>
  9000. </el-dialog>
  9001. <el-dialog
  9002. :title="noteName != '' ? noteName : '查看问卷'"
  9003. :visible.sync="dialogVisible5Teacher"
  9004. :append-to-body="true"
  9005. width="1000px"
  9006. :before-close="handleClose"
  9007. class="dialog_diy dialog_diy3"
  9008. >
  9009. <div>
  9010. <div class="w_name">
  9011. 学生姓名:<span>{{ sStudent.student }}</span>
  9012. </div>
  9013. <div
  9014. class="a_add_title"
  9015. style="
  9016. display: flex;
  9017. flex-direction: row;
  9018. align-items: center;
  9019. justify-content: center;
  9020. "
  9021. >
  9022. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9023. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9024. </div>
  9025. <div class="a_addBox">
  9026. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9027. 题目内容
  9028. </div>
  9029. <div
  9030. class="a_add_box"
  9031. v-for="(item1, index1) in askJson.askCount"
  9032. :key="index1"
  9033. >
  9034. <div class="a_add_head">
  9035. <div style="display: flex">
  9036. <span class="askIndex">{{ index1 + 1 }}</span>
  9037. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9038. </div>
  9039. <img
  9040. v-if="askJson.askJson[index1].img"
  9041. :src="askJson.askJson[index1].img"
  9042. style="height: 300px; margin-top: 10px; max-width: 100%"
  9043. />
  9044. </div>
  9045. <div class="a_add_body">
  9046. <div class="a_add_input">
  9047. <el-radio-group
  9048. v-model="radio[index1]"
  9049. v-if="
  9050. askJson.askJson[index1].type == '1' ||
  9051. !askJson.askJson[index1].type
  9052. "
  9053. >
  9054. <el-radio
  9055. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9056. .checkList"
  9057. :key="checkIndex"
  9058. :label="checkIndex"
  9059. :disabled="isAnswer"
  9060. class="redioStyle"
  9061. ><span v-html="item2"></span
  9062. ></el-radio>
  9063. </el-radio-group>
  9064. <el-checkbox-group
  9065. v-model="radio[index1]"
  9066. v-if="askJson.askJson[index1].type == '2'"
  9067. >
  9068. <el-checkbox
  9069. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9070. .checkList"
  9071. :key="checkIndex1"
  9072. :label="checkIndex1"
  9073. :disabled="isAnswer"
  9074. class="redioStyle"
  9075. ><span v-html="item2"></span>
  9076. </el-checkbox>
  9077. </el-checkbox-group>
  9078. </div>
  9079. </div>
  9080. </div>
  9081. </div>
  9082. </div>
  9083. <span slot="footer" class="dialog-footer">
  9084. <el-button
  9085. @click="dialogVisible5Teacher = false"
  9086. v-show="noteName == ''"
  9087. >取 消</el-button
  9088. >
  9089. <el-button
  9090. type="primary"
  9091. @click="addStudentAskTeacher"
  9092. v-show="noteName == ''"
  9093. >确 定</el-button
  9094. >
  9095. </span>
  9096. </el-dialog>
  9097. <el-dialog
  9098. :title="noteName != '' ? noteName : '查看选择题'"
  9099. :visible.sync="dialogVisibleChoice"
  9100. :append-to-body="true"
  9101. width="1000px"
  9102. :before-close="handleClose"
  9103. class="dialog_diy dialog_diy3"
  9104. >
  9105. <div>
  9106. <!-- <div class="a_add_title" style="
  9107. display: flex;
  9108. flex-direction: row;
  9109. align-items: center;
  9110. justify-content: center;
  9111. ">
  9112. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9113. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9114. </div> -->
  9115. <div class="a_addBox">
  9116. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9117. 题目内容
  9118. </div>
  9119. <div
  9120. class="a_add_box"
  9121. v-for="(item1, index1) in testJson.testCount"
  9122. :key="index1"
  9123. >
  9124. <div class="a_add_head">
  9125. <div style="display: flex">
  9126. <span class="askIndex">{{ index1 + 1 }}</span>
  9127. <div
  9128. v-if="testJson.testJson[index1].type == '1'"
  9129. style="margin-right: 5px; min-width: 70px"
  9130. >
  9131. (单选题)
  9132. </div>
  9133. <div
  9134. v-if="testJson.testJson[index1].type == '2'"
  9135. style="margin-right: 5px; min-width: 70px"
  9136. >
  9137. (多选题)
  9138. </div>
  9139. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9140. </div>
  9141. <img
  9142. v-if="testJson.testJson[index1].img"
  9143. :src="testJson.testJson[index1].img"
  9144. style="height: 300px; margin-top: 10px; max-width: 100%"
  9145. />
  9146. </div>
  9147. <div
  9148. class="timuImgBox"
  9149. v-if="
  9150. testJson.testJson[index1].timuList &&
  9151. testJson.testJson[index1].timuList.length
  9152. "
  9153. >
  9154. <div
  9155. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9156. :key="tIndex"
  9157. class="timuImg"
  9158. @click.stop="previewImg(timg.src)"
  9159. >
  9160. <img :src="timg.src" alt="" />
  9161. </div>
  9162. </div>
  9163. <div class="a_add_body">
  9164. <div class="a_add_input">
  9165. <el-radio-group
  9166. v-model="radio[index1]"
  9167. v-if="testJson.testJson[index1].type == '1'"
  9168. >
  9169. <div class="radioBox">
  9170. <el-radio
  9171. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9172. .checkList"
  9173. :key="checkIndex"
  9174. :label="checkIndex"
  9175. :disabled="isAnswer"
  9176. class="redioStyle"
  9177. >
  9178. <div
  9179. style="margin-right: 10px"
  9180. v-if="item2 && item2.imgType && item2.imgType == 1"
  9181. >
  9182. <div class="inImg" @click.stop="previewImg(item2.src)">
  9183. <img :src="item2.src" alt="" />
  9184. </div>
  9185. </div>
  9186. <span v-else v-html="item2"></span>
  9187. </el-radio>
  9188. </div>
  9189. </el-radio-group>
  9190. <el-checkbox-group
  9191. v-model="radio[index1]"
  9192. v-if="testJson.testJson[index1].type == '2'"
  9193. >
  9194. <div class="radioBox">
  9195. <el-checkbox
  9196. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9197. .checkList"
  9198. :key="checkIndex"
  9199. :label="checkIndex"
  9200. :disabled="isAnswer"
  9201. class="redioStyle"
  9202. >
  9203. <div
  9204. style="margin-right: 10px"
  9205. v-if="item2 && item2.imgType && item2.imgType == 1"
  9206. >
  9207. <div class="inImg" @click.stop="previewImg(item2.src)">
  9208. <img :src="item2.src" alt="" />
  9209. </div>
  9210. </div>
  9211. <span v-else v-html="item2"></span>
  9212. </el-checkbox>
  9213. </div>
  9214. </el-checkbox-group>
  9215. </div>
  9216. </div>
  9217. </div>
  9218. </div>
  9219. </div>
  9220. <span slot="footer" class="dialog-footer">
  9221. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9222. >取 消</el-button
  9223. >
  9224. <el-button
  9225. type="primary"
  9226. @click="addStudentTest"
  9227. v-show="noteName == ''"
  9228. >确 定</el-button
  9229. >
  9230. </span>
  9231. </el-dialog>
  9232. <el-dialog
  9233. :title="noteName != '' ? noteName : '查看选择题'"
  9234. :visible.sync="dialogVisibleChoiceTeacher"
  9235. :append-to-body="true"
  9236. width="1000px"
  9237. :before-close="handleClose"
  9238. class="dialog_diy dialog_diy3"
  9239. >
  9240. <div>
  9241. <div class="w_name">
  9242. 学生姓名:<span>{{ sStudent.student }}</span>
  9243. </div>
  9244. <div class="a_addBox">
  9245. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9246. 题目内容
  9247. </div>
  9248. <div
  9249. class="a_add_box"
  9250. v-for="(item1, index1) in testJson.testCount"
  9251. :key="index1"
  9252. >
  9253. <div class="a_add_head">
  9254. <div style="display: flex">
  9255. <span class="askIndex">{{ index1 + 1 }}</span>
  9256. <div
  9257. v-if="testJson.testJson[index1].type == '1'"
  9258. style="margin-right: 5px; min-width: 70px"
  9259. >
  9260. (单选题)
  9261. </div>
  9262. <div
  9263. v-if="testJson.testJson[index1].type == '2'"
  9264. style="margin-right: 5px; min-width: 70px"
  9265. >
  9266. (多选题)
  9267. </div>
  9268. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9269. </div>
  9270. <img
  9271. v-if="testJson.testJson[index1].img"
  9272. :src="testJson.testJson[index1].img"
  9273. style="height: 300px; margin-top: 10px; max-width: 100%"
  9274. />
  9275. </div>
  9276. <div
  9277. class="timuImgBox"
  9278. v-if="
  9279. testJson.testJson[index1].timuList &&
  9280. testJson.testJson[index1].timuList.length
  9281. "
  9282. >
  9283. <div
  9284. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9285. :key="tIndex"
  9286. class="timuImg"
  9287. @click.stop="previewImg(timg.src)"
  9288. >
  9289. <img :src="timg.src" alt="" />
  9290. </div>
  9291. </div>
  9292. <div class="a_add_body">
  9293. <div class="a_add_input">
  9294. <el-radio-group
  9295. v-model="radio[index1]"
  9296. v-if="testJson.testJson[index1].type == '1'"
  9297. >
  9298. <div class="radioBox">
  9299. <el-radio
  9300. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9301. .checkList"
  9302. :key="checkIndex"
  9303. :label="checkIndex"
  9304. :disabled="isAnswer"
  9305. class="redioStyle"
  9306. >
  9307. <div
  9308. style="margin-right: 10px"
  9309. v-if="item2 && item2.imgType && item2.imgType == 1"
  9310. >
  9311. <div class="inImg" @click.stop="previewImg(item2.src)">
  9312. <img :src="item2.src" alt="" />
  9313. </div>
  9314. </div>
  9315. <span v-else v-html="item2"></span>
  9316. </el-radio>
  9317. </div>
  9318. </el-radio-group>
  9319. <el-checkbox-group
  9320. v-model="radio[index1]"
  9321. v-if="testJson.testJson[index1].type == '2'"
  9322. >
  9323. <div class="radioBox">
  9324. <el-checkbox
  9325. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9326. .checkList"
  9327. :key="checkIndex"
  9328. :label="checkIndex"
  9329. :disabled="isAnswer"
  9330. class="redioStyle"
  9331. >
  9332. <div
  9333. style="margin-right: 10px"
  9334. v-if="item2 && item2.imgType && item2.imgType == 1"
  9335. >
  9336. <div class="inImg" @click.stop="previewImg(item2.src)">
  9337. <img :src="item2.src" alt="" />
  9338. </div>
  9339. </div>
  9340. <span v-else v-html="item2"></span>
  9341. </el-checkbox>
  9342. </div>
  9343. </el-checkbox-group>
  9344. </div>
  9345. </div>
  9346. </div>
  9347. </div>
  9348. </div>
  9349. <span slot="footer" class="dialog-footer">
  9350. <el-button
  9351. @click="dialogVisibleChoiceTeacher = false"
  9352. v-show="noteName == ''"
  9353. >取 消</el-button
  9354. >
  9355. <el-button
  9356. type="primary"
  9357. @click="addStudentTestTeacher"
  9358. v-show="noteName == ''"
  9359. >确 定</el-button
  9360. >
  9361. </span>
  9362. </el-dialog>
  9363. <el-dialog
  9364. title="查看富文本"
  9365. :visible.sync="dialogVisible1"
  9366. :append-to-body="true"
  9367. width="500px"
  9368. :before-close="handleClose"
  9369. class="dialog_diy textCss"
  9370. >
  9371. <el-form style="font-size: 20px">
  9372. <el-form-item label="文本标题" class="textTitle">
  9373. <div style="font-size: 20px">{{ text.name }}</div>
  9374. </el-form-item>
  9375. <div>富文本内容</div>
  9376. <div
  9377. v-html="text.url"
  9378. style="font-size: 18px; padding: 40px 0 0 0"
  9379. ></div>
  9380. </el-form>
  9381. <span slot="footer" class="dialog-footer">
  9382. <el-button type="primary" @click="dialogVisible1 = false"
  9383. >确定</el-button
  9384. >
  9385. </span>
  9386. </el-dialog>
  9387. <el-dialog
  9388. title="文件预览"
  9389. :visible.sync="dialogVisible3"
  9390. width="50%"
  9391. :before-close="handleClose"
  9392. class="dialog_diy"
  9393. :class="{ fullStyle: full }"
  9394. >
  9395. <div slot="title" class="header-title">
  9396. <div style="color: #fff">文件预览</div>
  9397. <div style="position: absolute; top: 19px; right: 50px">
  9398. <img
  9399. src="../assets/full.png"
  9400. style="height: 16px; cursor: pointer"
  9401. alt=""
  9402. @click="fullTools"
  9403. />
  9404. </div>
  9405. </div>
  9406. <pdf
  9407. v-if="showPDF"
  9408. :pdfUrl="pptImgUrl"
  9409. style="width: 100%; height: 520px; overflow: auto"
  9410. :class="{ fullStyle: full }"
  9411. ></pdf>
  9412. <iframe
  9413. v-else
  9414. :src="pptImgUrl"
  9415. frameborder="0"
  9416. width="100%"
  9417. height="600"
  9418. :class="{ fullStyle: full }"
  9419. ></iframe>
  9420. </el-dialog>
  9421. <el-dialog
  9422. title="文件预览"
  9423. :visible.sync="dialogVisible6"
  9424. width="50%"
  9425. :before-close="handleClose"
  9426. class="dialog_diy"
  9427. >
  9428. <iframe
  9429. :src="pptImgUrl1"
  9430. frameborder="0"
  9431. width="100%"
  9432. height="600"
  9433. ></iframe>
  9434. </el-dialog>
  9435. <el-dialog
  9436. title="提示"
  9437. :visible.sync="dialogVisible4"
  9438. :append-to-body="true"
  9439. width="800px"
  9440. :before-close="handleClose"
  9441. class="dialog_diy notice"
  9442. >
  9443. <div>此功能暂未开放!</div>
  9444. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9445. </el-dialog>
  9446. <el-dialog
  9447. title="问答"
  9448. :visible.sync="answerDialogVisible"
  9449. :append-to-body="true"
  9450. width="800px"
  9451. :before-close="handleClose"
  9452. class="dialog_diy"
  9453. >
  9454. <div>
  9455. <div
  9456. style="
  9457. display: flex;
  9458. flex-wrap: nowrap;
  9459. flex-direction: column;
  9460. position: relative;
  9461. "
  9462. >
  9463. <div class="queTop" style="padding: 20px 0 20px 0">
  9464. <div class="question">
  9465. <img src="../assets/icon/question.png" alt />
  9466. </div>
  9467. <div class="queTitle">
  9468. <div style="width: 90px; min-width: 90px">提问:</div>
  9469. <div>{{ answerQ }}</div>
  9470. </div>
  9471. </div>
  9472. <div class="ediBottom">
  9473. <textarea
  9474. rows="6"
  9475. class="binfo_input"
  9476. cols
  9477. style="width: 95%; height: 120px"
  9478. v-model="questionAnswer"
  9479. ></textarea>
  9480. </div>
  9481. </div>
  9482. </div>
  9483. <div slot="footer">
  9484. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9485. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9486. </div>
  9487. </el-dialog>
  9488. <el-dialog
  9489. title="问答"
  9490. :visible.sync="answerDialogVisibleTeacher"
  9491. :append-to-body="true"
  9492. width="800px"
  9493. :before-close="handleClose"
  9494. class="dialog_diy"
  9495. >
  9496. <div>
  9497. <div class="w_name">
  9498. 学生姓名:<span>{{ sStudent.student }}</span>
  9499. </div>
  9500. <div
  9501. style="
  9502. display: flex;
  9503. flex-wrap: nowrap;
  9504. flex-direction: column;
  9505. position: relative;
  9506. "
  9507. >
  9508. <div class="queTop" style="padding: 20px 0 20px 0">
  9509. <div class="question">
  9510. <img src="../assets/icon/question.png" alt />
  9511. </div>
  9512. <div class="queTitle">
  9513. <div style="width: 90px; min-width: 90px">提问:</div>
  9514. <div>{{ answerQ }}</div>
  9515. </div>
  9516. </div>
  9517. <div class="ediBottom">
  9518. <textarea
  9519. rows="6"
  9520. class="binfo_input"
  9521. cols
  9522. style="width: 95%; height: 120px"
  9523. v-model="questionAnswer"
  9524. ></textarea>
  9525. </div>
  9526. </div>
  9527. </div>
  9528. <div slot="footer">
  9529. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9530. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9531. </div>
  9532. </el-dialog>
  9533. <el-dialog
  9534. title="倒计时"
  9535. :visible.sync="timeDialogVisible"
  9536. :append-to-body="true"
  9537. width="800px"
  9538. :before-close="handleClose"
  9539. class="dialog_diy"
  9540. >
  9541. <div>
  9542. <div style="margin-bottom: 20px; color: #999">
  9543. 提示:点击“+”或“-”修改倒计时时长。
  9544. </div>
  9545. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9546. </div>
  9547. <div slot="footer">
  9548. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9549. </div>
  9550. </el-dialog>
  9551. <el-dialog
  9552. title="权限设置"
  9553. :visible.sync="juriVisible"
  9554. :append-to-body="true"
  9555. width="400px"
  9556. :before-close="handleClose"
  9557. class="dialog_diy"
  9558. >
  9559. <div>
  9560. <div class="open_box">
  9561. <div class="switch_box">
  9562. <span>允许学生查看所有作业</span>
  9563. <el-switch
  9564. v-model="sIsOpen"
  9565. active-text=""
  9566. class="switchCss"
  9567. @change="updateSLook"
  9568. ></el-switch>
  9569. </div>
  9570. <div
  9571. class="switch_box"
  9572. v-if="
  9573. courseDetail.userid == userid ||
  9574. (courseDetail.course_teacher &&
  9575. courseDetail.course_teacher.indexOf(userid) != -1)
  9576. "
  9577. >
  9578. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9579. <span>禁止学生查看所有阶段</span>
  9580. <el-switch
  9581. v-model="IsLookOpen"
  9582. active-text=""
  9583. class="switchCss"
  9584. @change="updateLookOpen"
  9585. ></el-switch>
  9586. </div>
  9587. <div class="switch_box" v-if="courseDetail.userid == userid">
  9588. <span>开启跟随模式</span>
  9589. <el-switch
  9590. v-model="IsFollow"
  9591. active-text=""
  9592. class="switchCss"
  9593. @change="updateFollow"
  9594. ></el-switch>
  9595. </div>
  9596. </div>
  9597. </div>
  9598. <div slot="footer">
  9599. <el-button
  9600. style="background: #409efe; color: #fff"
  9601. @click="juriVisible = false"
  9602. >关 闭</el-button
  9603. >
  9604. </div>
  9605. </el-dialog>
  9606. <el-dialog
  9607. title="查看视频"
  9608. :visible.sync="videoVisible"
  9609. :append-to-body="true"
  9610. width="1000px"
  9611. :before-close="handleClose"
  9612. class="dialog_diy1"
  9613. >
  9614. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9615. <video-player
  9616. class="video-player vjs-custom-skin"
  9617. :playsinline="true"
  9618. :options="videoDetail"
  9619. @play="onPlayerPlay($event)"
  9620. style="width: 100%; height: 100%"
  9621. ></video-player>
  9622. </div>
  9623. <div slot="footer">
  9624. <el-button
  9625. style="background: #409efe; color: #fff"
  9626. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9627. >
  9628. 关 闭</el-button
  9629. >
  9630. </div>
  9631. </el-dialog>
  9632. <el-dialog
  9633. title="查看详情"
  9634. :visible.sync="commentDialogVisible"
  9635. :append-to-body="true"
  9636. width="800px"
  9637. :before-close="handleClose"
  9638. class="dialog_diy"
  9639. >
  9640. <div class="commentTop">
  9641. <div class="studentDetail">
  9642. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  9643. <div class="nameAndTime">
  9644. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9645. <div>{{ commentDetail.time }}</div>
  9646. </div>
  9647. <div
  9648. class="returnBtn"
  9649. style="margin-left: auto; width: 80px"
  9650. v-if="
  9651. commentDetail.works &&
  9652. commentDetail.type == 0 &&
  9653. (tType == 1 || tType == 4)
  9654. "
  9655. @click="
  9656. showPicturePaint(
  9657. commentDetail.img ? commentDetail.img : commentDetail.works
  9658. )
  9659. "
  9660. >
  9661. 教师批注
  9662. </div>
  9663. </div>
  9664. <div
  9665. class="worksAnswer"
  9666. v-if="commentDetail.works && commentDetail.type == 2"
  9667. >
  9668. {{ JSON.parse(commentDetail.works)[0].answer }}
  9669. </div>
  9670. <div
  9671. class="worksAnswer"
  9672. v-if="commentDetail.works && commentDetail.type == 1"
  9673. >
  9674. <img
  9675. src="../assets/teacherWork.png"
  9676. v-if="commentDetail.ateacher"
  9677. class="w_teachert"
  9678. />
  9679. <pdf
  9680. v-if="showPDF"
  9681. :pdfUrl="pptImgUrl"
  9682. style="width: 100%; height: 520px; overflow: auto"
  9683. :class="{ fullStyle: full }"
  9684. ></pdf>
  9685. <iframe
  9686. v-else
  9687. :src="pptImgUrl"
  9688. frameborder="0"
  9689. width="100%"
  9690. height="600"
  9691. :class="{ fullStyle: full }"
  9692. ></iframe>
  9693. </div>
  9694. <div
  9695. class="worksAnswer"
  9696. v-if="commentDetail.works && commentDetail.type == 0"
  9697. >
  9698. <img
  9699. src="../assets/teacherWork.png"
  9700. v-if="commentDetail.ateacher"
  9701. class="w_teachert"
  9702. style="right: 105px"
  9703. />
  9704. <img
  9705. :src="commentDetail.works"
  9706. alt=""
  9707. @click="previewImg(commentDetail.works)"
  9708. />
  9709. </div>
  9710. <div
  9711. class="worksAnswer"
  9712. v-if="commentDetail.works && commentDetail.type == 3"
  9713. >
  9714. <img
  9715. src="../assets/teacherWork.png"
  9716. v-if="commentDetail.ateacher"
  9717. class="w_teachert"
  9718. />
  9719. <video-player
  9720. class="video-player vjs-custom-skin"
  9721. :playsinline="true"
  9722. :options="videoDetail"
  9723. @play="onPlayerPlay($event)"
  9724. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9725. ></video-player>
  9726. </div>
  9727. <div
  9728. class="worksAnswer"
  9729. v-if="commentDetail.works && commentDetail.type == 10"
  9730. >
  9731. <div class="cont" v-html="commentDetail.works.text"></div>
  9732. </div>
  9733. <div
  9734. class="worksAnswer codeFileBox"
  9735. v-if="commentDetail.works && commentDetail.type == 12"
  9736. @click="downloadFile(commentDetail.works)"
  9737. >
  9738. <img src="../assets/icon/codeFile.png" />
  9739. <div>点击下载文件</div>
  9740. </div>
  9741. <div
  9742. class="worksAnswer codeFileBox"
  9743. v-if="commentDetail.works && commentDetail.type == 15"
  9744. @click="
  9745. openCocoPi(
  9746. 57,
  9747. commentIndexJson.toolIndex,
  9748. commentDetail.userid,
  9749. commentDetail.sName
  9750. )
  9751. "
  9752. >
  9753. <img src="../assets/icon/codeFile.png" />
  9754. <div>点击打开CocoPi</div>
  9755. </div>
  9756. <div
  9757. class="worksAnswer"
  9758. v-if="commentDetail.works && commentDetail.type == 13"
  9759. >
  9760. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9761. </div>
  9762. <div
  9763. class="worksAnswer"
  9764. v-if="commentDetail.works && commentDetail.type == 4"
  9765. >
  9766. <div class="evalCss">
  9767. <div class="nav">请选择星星进行评分</div>
  9768. <div class="middleBox" v-if="eScore.eStar">
  9769. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9770. <div class="nameAndrate">
  9771. <div>{{ e.value }}</div>
  9772. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9773. </div>
  9774. <div v-if="e.detail">{{ e.detail }}</div>
  9775. </div>
  9776. <div class="bz">
  9777. <textarea
  9778. disabled
  9779. rows="4"
  9780. class="pj"
  9781. style="
  9782. padding: 10px 5px;
  9783. width: 70%;
  9784. background: #f7f6f9;
  9785. font-size: 14px;
  9786. text-indent: 10px;
  9787. color: #000;
  9788. "
  9789. cols
  9790. v-model="eScore.eBzText"
  9791. placeholder="请输入评价内容..."
  9792. ></textarea>
  9793. </div>
  9794. </div>
  9795. </div>
  9796. </div>
  9797. <div class="comment">
  9798. <div class="commentList">
  9799. <div class="commentImg">
  9800. <img
  9801. @click="
  9802. isLikes(
  9803. commentDetail.wid,
  9804. userid,
  9805. 1,
  9806. null,
  9807. commentDetail.isLikes,
  9808. commentDetail.sName
  9809. )
  9810. "
  9811. :src="commentDetail.isLikes == true ? likes : noLikes"
  9812. alt=""
  9813. />
  9814. </div>
  9815. <div>{{ commentDetail.likesCount }}</div>
  9816. </div>
  9817. <div class="commentList">
  9818. <div class="commentImg">
  9819. <img src="../assets/icon/comment/comment.png" alt="" />
  9820. </div>
  9821. <div>{{ commentDetail.commentCount }}</div>
  9822. </div>
  9823. </div>
  9824. <div class="drawPBox" v-if="commentDetail.img">
  9825. <span>教师批注</span>
  9826. <img
  9827. :src="commentDetail.img"
  9828. alt=""
  9829. @click="previewImg(commentDetail.img)"
  9830. />
  9831. <span
  9832. class="deleteImg"
  9833. v-if="tType == 1 || tType == 4"
  9834. @click.stop="deletePicturePaint(commentDetail.wid)"
  9835. style="
  9836. font-size: 14px;
  9837. width: auto !important;
  9838. color: #b4b4b4;
  9839. top: unset;
  9840. bottom: 0;
  9841. border: none;
  9842. padding: 0;
  9843. height: auto !important;
  9844. margin: 0;
  9845. "
  9846. >删除</span
  9847. >
  9848. </div>
  9849. </div>
  9850. <div class="commentBox">
  9851. <div class="pl">评论:</div>
  9852. <div style="max-height: 200px; overflow: auto">
  9853. <div
  9854. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9855. style="padding: 10px 0 0 0"
  9856. >
  9857. <div
  9858. class="studentDetail"
  9859. style="padding-top: 10px"
  9860. v-for="(co, coIndex) in commentDetail.commentJson"
  9861. :key="coIndex"
  9862. >
  9863. <div class="tx" style="min-width: 50px">
  9864. <img src="../assets/avatar.png" alt="" />
  9865. </div>
  9866. <div class="plPerson">
  9867. <div class="plName">
  9868. <div>{{ co.commentPeople }}</div>
  9869. <div style="margin-left: 5px">
  9870. {{ co.commentTime }}
  9871. </div>
  9872. <div
  9873. class="deleteComment"
  9874. v-if="userid == co.userid"
  9875. @click="deleteComment(co.wid)"
  9876. >
  9877. 删除
  9878. </div>
  9879. </div>
  9880. <div class="plContent">{{ co.commentText }}</div>
  9881. </div>
  9882. </div>
  9883. </div>
  9884. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9885. </div>
  9886. </div>
  9887. <div style="margin-top: 10px">
  9888. <div class="displayBox">
  9889. <div
  9890. style="
  9891. color: #556db4;
  9892. font-size: 14px;
  9893. font-weight: bold;
  9894. padding-bottom: 10px;
  9895. "
  9896. >
  9897. 评价
  9898. </div>
  9899. <div class="easy_comment" v-if="false">
  9900. <div
  9901. v-for="(p, pIndex) in PlTextList"
  9902. :key="pIndex"
  9903. @click="fastText(p, 1)"
  9904. >
  9905. {{ p }}
  9906. </div>
  9907. </div>
  9908. </div>
  9909. <div>
  9910. <textarea
  9911. rows="3"
  9912. class="pj"
  9913. style="padding: 10px 5px"
  9914. cols
  9915. v-model="commentText"
  9916. placeholder="请输入评论"
  9917. ></textarea>
  9918. </div>
  9919. </div>
  9920. <div slot="footer">
  9921. <el-button
  9922. @click="
  9923. (commentDialogVisible = false),
  9924. (commentIndexJson = {}),
  9925. videoDetail.sources && videoDetail.sources[0]
  9926. ? (videoDetail.sources[0].src = '')
  9927. : ''
  9928. "
  9929. >取 消</el-button
  9930. >
  9931. <el-button
  9932. type="primary"
  9933. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  9934. >确 定</el-button
  9935. >
  9936. </div>
  9937. </el-dialog>
  9938. <el-dialog
  9939. title="查看文档"
  9940. :visible.sync="fullDialogVisible"
  9941. :append-to-body="true"
  9942. width="100%"
  9943. :before-close="handleClose"
  9944. :show-close="false"
  9945. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  9946. >
  9947. <div slot="title" class="header-title">
  9948. <div style="color: #fff">查看文档</div>
  9949. <div
  9950. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  9951. style="
  9952. cursor: pointer;
  9953. position: absolute;
  9954. top: 20px;
  9955. right: 20px;
  9956. color: #fff;
  9957. "
  9958. >
  9959. 退出全屏
  9960. </div>
  9961. </div>
  9962. <div style="height: 100%;position: relative;">
  9963. <el-button
  9964. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  9965. size="medium"
  9966. type="primary"
  9967. @click="
  9968. () => {
  9969. (fullDialogVisible = false),
  9970. changeSplitScreenBehavior({ code: 99 });
  9971. }
  9972. "
  9973. style="
  9974. cursor: pointer;
  9975. position: absolute;
  9976. top: 10px;
  9977. right: 20px;
  9978. color: #fff;
  9979. "
  9980. >
  9981. 退出全屏
  9982. </el-button>
  9983. <div
  9984. class="wheel"
  9985. v-if="
  9986. fulltype == 2 &&
  9987. fullUrl.indexOf(
  9988. 'https://view.officeapps.live.com/op/view.aspx?src='
  9989. ) != -1
  9990. "
  9991. style="width: 100%;height:100%; margin: 0 auto"
  9992. >
  9993. <iframe
  9994. style="width: 100%; height: 100%; border: none"
  9995. :src="fullUrl"
  9996. ></iframe>
  9997. </div>
  9998. <iframe
  9999. v-else-if="fulltype == 2"
  10000. style="width: 100%; height: 100%; border: none"
  10001. :src="fullUrl"
  10002. security="restricted"
  10003. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10004. ></iframe>
  10005. <pdf
  10006. v-else-if="fulltype == 3"
  10007. :pdfUrl="fullUrl"
  10008. style="width: 100%; height: 100%; overflow: auto"
  10009. ></pdf>
  10010. <div
  10011. class="wheel"
  10012. v-if="fulltype == 1"
  10013. style="
  10014. box-shadow: 0 0 6px 1px #f2f2f2;
  10015. width: 100%;
  10016. height:100%;
  10017. background: #f1f1f1;
  10018. "
  10019. >
  10020. <div class="title" style="width: 100%; box-sizing: border-box">
  10021. 查看文档
  10022. </div>
  10023. <el-form class="textBox" style="height: 90%">
  10024. <el-form-item class="textTitle">
  10025. <div style="font-size: 22px">
  10026. {{ fullUrl.name }}
  10027. </div>
  10028. </el-form-item>
  10029. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10030. <div
  10031. v-html="fullUrl.url"
  10032. class="textContent"
  10033. style="height: auto"
  10034. ></div>
  10035. </el-form>
  10036. </div>
  10037. </div>
  10038. <!-- <div slot="footer">
  10039. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10040. </div> -->
  10041. </el-dialog>
  10042. <el-dialog
  10043. title="个人评价"
  10044. :visible.sync="studentEvalDialogVisible"
  10045. :append-to-body="true"
  10046. width="800px"
  10047. :before-close="handleClose"
  10048. class="dialog_diy"
  10049. >
  10050. <div class="evalCss">
  10051. <div class="nav">请选择星星进行评分</div>
  10052. <div class="middleBox" v-if="eScore.eStar">
  10053. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10054. <div class="nameAndrate">
  10055. <div>{{ e.value }}</div>
  10056. <el-rate
  10057. v-model="eScore.eStar[eIndex]"
  10058. :disabled="isStar"
  10059. ></el-rate>
  10060. </div>
  10061. <div v-if="e.detail">{{ e.detail }}</div>
  10062. </div>
  10063. <div class="easy_comment" v-if="false">
  10064. <div
  10065. v-for="(p, pIndex) in PlTextList"
  10066. :key="pIndex"
  10067. @click="fastText(p, 2)"
  10068. >
  10069. {{ p }}
  10070. </div>
  10071. </div>
  10072. <div class="bz">
  10073. <textarea
  10074. :disabled="isStar"
  10075. rows="4"
  10076. class="pj"
  10077. style="
  10078. padding: 10px 5px;
  10079. width: 70%;
  10080. background: #f7f6f9;
  10081. font-size: 14px;
  10082. text-indent: 10px;
  10083. "
  10084. cols
  10085. v-model="eScore.eBzText"
  10086. placeholder="请输入评价内容..."
  10087. ></textarea>
  10088. </div>
  10089. </div>
  10090. </div>
  10091. <div slot="footer">
  10092. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10093. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10094. >确 定</el-button
  10095. >
  10096. </div>
  10097. </el-dialog>
  10098. <el-dialog
  10099. title="个人评价"
  10100. :visible.sync="studentEvalDialogVisibleTeacher"
  10101. :append-to-body="true"
  10102. width="800px"
  10103. :before-close="handleClose"
  10104. class="dialog_diy"
  10105. >
  10106. <div class="w_name">
  10107. 学生姓名:<span>{{ sStudent.student }}</span>
  10108. </div>
  10109. <div class="evalCss">
  10110. <div class="nav">请选择星星进行评分</div>
  10111. <div class="middleBox" v-if="eScore.eStar">
  10112. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10113. <div class="nameAndrate">
  10114. <div>{{ e.value }}</div>
  10115. <el-rate
  10116. v-model="eScore.eStar[eIndex]"
  10117. :disabled="isStar"
  10118. ></el-rate>
  10119. </div>
  10120. <div v-if="e.detail">{{ e.detail }}</div>
  10121. </div>
  10122. <div class="easy_comment" v-if="false">
  10123. <div
  10124. v-for="(p, pIndex) in PlTextList"
  10125. :key="pIndex"
  10126. @click="fastText(p, 2)"
  10127. >
  10128. {{ p }}
  10129. </div>
  10130. </div>
  10131. <div class="bz">
  10132. <textarea
  10133. :disabled="isStar"
  10134. rows="4"
  10135. class="pj"
  10136. style="
  10137. padding: 10px 5px;
  10138. width: 70%;
  10139. background: #f7f6f9;
  10140. font-size: 14px;
  10141. text-indent: 10px;
  10142. "
  10143. cols
  10144. v-model="eScore.eBzText"
  10145. placeholder="请输入评价内容..."
  10146. ></textarea>
  10147. </div>
  10148. </div>
  10149. </div>
  10150. <div slot="footer">
  10151. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10152. >取 消</el-button
  10153. >
  10154. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10155. >确 定</el-button
  10156. >
  10157. </div>
  10158. </el-dialog>
  10159. <el-dialog
  10160. title="选择匹配"
  10161. :visible.sync="dialogVisibleSelect"
  10162. :append-to-body="true"
  10163. width="90%"
  10164. :before-close="handleClose"
  10165. class="dialog_diy dialog_diy3"
  10166. >
  10167. <div v-if="selectJson">
  10168. <div class="select_box2">
  10169. <div class="select_box2_title">
  10170. <div>选择匹配</div>
  10171. <div>请选择对应的答案进行答题!</div>
  10172. </div>
  10173. <div class="select_box2_box">
  10174. <div class="select_box2_img">
  10175. <img
  10176. :src="selectJson.url"
  10177. @click="previewImg(selectJson.url)"
  10178. alt=""
  10179. />
  10180. </div>
  10181. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10182. <div style="padding-top: 15px">
  10183. <div class="select_answer_title" v-if="isSelect">
  10184. {{ selectAnswer.stu }}
  10185. </div>
  10186. <div class="select_answer_title" v-else>
  10187. 根据题目选择对应答案
  10188. </div>
  10189. <div
  10190. class="select_box2_answer_box"
  10191. v-for="(item2, checkIndex) in selectJson.select"
  10192. :key="checkIndex"
  10193. >
  10194. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10195. <el-select
  10196. :disabled="isSelect"
  10197. v-model="selectAnswer.answer[checkIndex]"
  10198. placeholder="请选择正确答案"
  10199. >
  10200. <el-option
  10201. v-for="(e, eIndex) in selectJson.select"
  10202. :key="eIndex"
  10203. :label="e"
  10204. :value="eIndex"
  10205. >
  10206. </el-option>
  10207. </el-select>
  10208. </div>
  10209. </div>
  10210. <div
  10211. class="rightAnswerCss"
  10212. v-if="isSelect && (tType == 1 || tType == 4)"
  10213. >
  10214. <div
  10215. v-for="(a, aIndex) in selectJson.answer"
  10216. :key="aIndex"
  10217. class="rightAnswer"
  10218. >
  10219. <div
  10220. v-if="selectAnswer.answer[aIndex] === a"
  10221. style="color: #767de1"
  10222. >
  10223. 回答正确
  10224. </div>
  10225. <div v-else>回答错误</div>
  10226. <div
  10227. style="margin-left: 10px"
  10228. v-if="selectAnswer.answer[aIndex] !== a"
  10229. >
  10230. 正确答案:
  10231. </div>
  10232. <div
  10233. :class="
  10234. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10235. "
  10236. >
  10237. {{ selectJson.select[a] }}
  10238. </div>
  10239. </div>
  10240. </div>
  10241. </div>
  10242. <div class="upAnswerCss">
  10243. <el-button
  10244. type="primary"
  10245. @click="addSelectAnswer"
  10246. v-if="!isSelect"
  10247. >提交答案</el-button
  10248. >
  10249. </div>
  10250. </div>
  10251. </div>
  10252. </div>
  10253. </el-dialog>
  10254. <el-dialog
  10255. title="选择匹配"
  10256. :visible.sync="dialogVisibleSelectTeacher"
  10257. :append-to-body="true"
  10258. width="90%"
  10259. :before-close="handleClose"
  10260. class="dialog_diy dialog_diy3"
  10261. >
  10262. <div v-if="selectJson">
  10263. <div class="w_name">
  10264. 学生姓名:<span>{{ sStudent.student }}</span>
  10265. </div>
  10266. <div class="select_box2">
  10267. <div class="select_box2_title">
  10268. <div>选择匹配</div>
  10269. <div>请选择对应的答案进行答题!</div>
  10270. </div>
  10271. <div class="select_box2_box">
  10272. <div class="select_box2_img">
  10273. <img
  10274. :src="selectJson.url"
  10275. @click="previewImg(selectJson.url)"
  10276. alt=""
  10277. />
  10278. </div>
  10279. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10280. <div style="padding-top: 15px">
  10281. <div class="select_answer_title" v-if="isSelect">
  10282. {{ selectAnswer.stu }}
  10283. </div>
  10284. <div class="select_answer_title" v-else>
  10285. 根据题目选择对应答案
  10286. </div>
  10287. <div
  10288. class="select_box2_answer_box"
  10289. v-for="(item2, checkIndex) in selectJson.select"
  10290. :key="checkIndex"
  10291. >
  10292. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10293. <el-select
  10294. :disabled="isSelect"
  10295. v-model="selectAnswer.answer[checkIndex]"
  10296. placeholder="请选择正确答案"
  10297. >
  10298. <el-option
  10299. v-for="(e, eIndex) in selectJson.select"
  10300. :key="eIndex"
  10301. :label="e"
  10302. :value="eIndex"
  10303. >
  10304. </el-option>
  10305. </el-select>
  10306. </div>
  10307. </div>
  10308. <div
  10309. class="rightAnswerCss"
  10310. v-if="isSelect && (tType == 1 || tType == 4)"
  10311. >
  10312. <div
  10313. v-for="(a, aIndex) in selectJson.answer"
  10314. :key="aIndex"
  10315. class="rightAnswer"
  10316. >
  10317. <div
  10318. v-if="selectAnswer.answer[aIndex] === a"
  10319. style="color: #767de1"
  10320. >
  10321. 回答正确
  10322. </div>
  10323. <div v-else>回答错误</div>
  10324. <div
  10325. style="margin-left: 10px"
  10326. v-if="selectAnswer.answer[aIndex] !== a"
  10327. >
  10328. 正确答案:
  10329. </div>
  10330. <div
  10331. :class="
  10332. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10333. "
  10334. >
  10335. {{ selectJson.select[a] }}
  10336. </div>
  10337. </div>
  10338. </div>
  10339. </div>
  10340. <div class="upAnswerCss">
  10341. <el-button
  10342. type="primary"
  10343. @click="addSelectAnswerTeacher"
  10344. v-if="!isSelect"
  10345. >提交答案</el-button
  10346. >
  10347. </div>
  10348. </div>
  10349. </div>
  10350. </div>
  10351. </el-dialog>
  10352. <el-dialog
  10353. title="教师评分"
  10354. :visible.sync="dialogVisibleScore"
  10355. :append-to-body="true"
  10356. width="800px"
  10357. :before-close="handleClose"
  10358. class="dialog_diy"
  10359. >
  10360. <div>
  10361. <div class="studentDetail">
  10362. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  10363. <div class="nameAndTime">
  10364. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10365. <div>{{ commentDetail.time }}</div>
  10366. </div>
  10367. </div>
  10368. <div
  10369. class="worksAnswer"
  10370. v-if="commentDetail.works && commentDetail.type == 2"
  10371. >
  10372. {{ JSON.parse(commentDetail.works)[0].answer }}
  10373. </div>
  10374. <div
  10375. class="worksAnswer"
  10376. v-if="commentDetail.works && commentDetail.type == 1"
  10377. >
  10378. <pdf
  10379. v-if="showPDF"
  10380. :pdfUrl="pptImgUrl"
  10381. style="width: 100%; height: 520px; overflow: auto"
  10382. :class="{ fullStyle: full }"
  10383. ></pdf>
  10384. <iframe
  10385. v-else
  10386. :src="pptImgUrl"
  10387. frameborder="0"
  10388. width="100%"
  10389. height="600"
  10390. :class="{ fullStyle: full }"
  10391. ></iframe>
  10392. </div>
  10393. <div
  10394. class="worksAnswer"
  10395. v-if="commentDetail.works && commentDetail.type == 0"
  10396. >
  10397. <img
  10398. :src="commentDetail.works"
  10399. alt=""
  10400. @click="previewImg(commentDetail.works)"
  10401. />
  10402. </div>
  10403. <div
  10404. class="worksAnswer"
  10405. v-if="commentDetail.works && commentDetail.type == 3"
  10406. >
  10407. <video-player
  10408. class="video-player vjs-custom-skin"
  10409. :playsinline="true"
  10410. :options="videoDetail"
  10411. @play="onPlayerPlay($event)"
  10412. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10413. ></video-player>
  10414. </div>
  10415. <div
  10416. class="worksAnswer codeFileBox"
  10417. v-if="commentDetail.works && commentDetail.type == 12"
  10418. @click="downloadFile(commentDetail.works)"
  10419. >
  10420. <img src="../assets/icon/codeFile.png" />
  10421. <div>点击下载文件</div>
  10422. </div>
  10423. <div
  10424. class="worksAnswer codeFileBox"
  10425. v-if="commentDetail.works && commentDetail.type == 15"
  10426. @click="
  10427. openCocoPi(
  10428. 57,
  10429. commentIndexJson.toolIndex,
  10430. commentDetail.userid,
  10431. commentDetail.sName
  10432. )
  10433. "
  10434. >
  10435. <img src="../assets/icon/codeFile.png" />
  10436. <div>点击打开CocoPi</div>
  10437. </div>
  10438. <div
  10439. class="worksAnswer"
  10440. v-if="commentDetail.works && commentDetail.type == 13"
  10441. >
  10442. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10443. </div>
  10444. <div class="scoreBox">
  10445. <span class="t">请输入分数</span>
  10446. <el-input-number
  10447. :disabled="courseDetail.userid != userid"
  10448. v-model="wScore"
  10449. :controls="false"
  10450. :min="0"
  10451. :max="100"
  10452. ></el-input-number>
  10453. </div>
  10454. <div class="scoreDetailBox">
  10455. <span class="t">评分评论</span>
  10456. <el-input
  10457. type="textarea"
  10458. :rows="5"
  10459. :disabled="courseDetail.userid != userid"
  10460. resize="none"
  10461. v-model="scoreDetail"
  10462. placeholder="请输入对学生的评价"
  10463. >
  10464. </el-input>
  10465. </div>
  10466. </div>
  10467. <span slot="footer" class="dialog-footer">
  10468. <el-button
  10469. @click="
  10470. (dialogVisibleScore = false),
  10471. (commentIndexJson = {}),
  10472. videoDetail.sources && videoDetail.sources[0]
  10473. ? (videoDetail.sources[0].src = '')
  10474. : ''
  10475. "
  10476. >取 消</el-button
  10477. >
  10478. <el-button
  10479. type="primary"
  10480. v-if="courseDetail.userid == userid"
  10481. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10482. >确 定
  10483. </el-button>
  10484. </span>
  10485. </el-dialog>
  10486. <el-dialog
  10487. title="排序"
  10488. :visible.sync="dialogVisibleSentence"
  10489. :append-to-body="true"
  10490. width="1000px"
  10491. :before-close="handleClose"
  10492. class="dialog_diy dialog_diy3"
  10493. >
  10494. <div>
  10495. <div class="sentenBox">
  10496. <div
  10497. v-for="(st, stIndex) in sentenceList"
  10498. :key="stIndex"
  10499. style="padding-bottom: 20px"
  10500. >
  10501. <div
  10502. style="padding: 15px 0 10px 20px"
  10503. class="sentenceTitle"
  10504. :index="stIndex + 1"
  10505. >
  10506. 题目{{ stIndex + 1 }}:请选择正确顺序
  10507. </div>
  10508. <div class="cardList" v-if="st.chooseSenList">
  10509. <div class="cardBox">
  10510. <div
  10511. v-for="(r, rIndex) in st.chooseSenList"
  10512. :key="rIndex"
  10513. @click="returnCard(r, stIndex, rIndex)"
  10514. >
  10515. <el-tooltip
  10516. class="item"
  10517. effect="light"
  10518. :content="r"
  10519. placement="top"
  10520. v-if="r != '' && r != undefined"
  10521. >
  10522. <div
  10523. :class="{
  10524. isCard: r,
  10525. isChooseCard: r == '' || r == undefined,
  10526. }"
  10527. >
  10528. <div>{{ r }}</div>
  10529. </div>
  10530. </el-tooltip>
  10531. <div
  10532. :class="{
  10533. isCard: r,
  10534. isChooseCard: r == '' || r == undefined,
  10535. }"
  10536. v-else
  10537. >
  10538. <div>{{ r }}</div>
  10539. </div>
  10540. </div>
  10541. </div>
  10542. </div>
  10543. <div class="cardList" v-if="st.addChangeSen">
  10544. <div class="cardBox">
  10545. <div
  10546. v-for="(s, sIndex) in st.addChangeSen"
  10547. :key="sIndex"
  10548. @click="setRightAnswer(s, stIndex, sIndex)"
  10549. >
  10550. <el-tooltip
  10551. class="item"
  10552. effect="light"
  10553. :content="s"
  10554. placement="top"
  10555. v-if="s != '' && s != undefined"
  10556. >
  10557. <div
  10558. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10559. >
  10560. <div>{{ s }}</div>
  10561. </div>
  10562. </el-tooltip>
  10563. <div
  10564. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10565. v-else
  10566. >
  10567. <div>{{ s }}</div>
  10568. </div>
  10569. </div>
  10570. </div>
  10571. </div>
  10572. </div>
  10573. </div>
  10574. </div>
  10575. <span slot="footer" class="dialog-footer">
  10576. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10577. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10578. </span>
  10579. </el-dialog>
  10580. <el-dialog
  10581. title="排序"
  10582. :visible.sync="dialogVisibleSentenceTeacher"
  10583. :append-to-body="true"
  10584. width="1000px"
  10585. :before-close="handleClose"
  10586. class="dialog_diy dialog_diy3"
  10587. >
  10588. <div>
  10589. <div class="w_name">
  10590. 学生姓名:<span>{{ sStudent.student }}</span>
  10591. </div>
  10592. <div class="sentenBox">
  10593. <div
  10594. v-for="(st, stIndex) in sentenceList"
  10595. :key="stIndex"
  10596. style="padding-bottom: 20px"
  10597. >
  10598. <div
  10599. style="padding: 15px 0 10px 20px"
  10600. class="sentenceTitle"
  10601. :index="stIndex + 1"
  10602. >
  10603. 题目{{ stIndex + 1 }}:请选择正确顺序
  10604. </div>
  10605. <div class="cardList" v-if="st.chooseSenList">
  10606. <div class="cardBox">
  10607. <div
  10608. v-for="(r, rIndex) in st.chooseSenList"
  10609. :key="rIndex"
  10610. @click="returnCard(r, stIndex, rIndex)"
  10611. >
  10612. <el-tooltip
  10613. class="item"
  10614. effect="light"
  10615. :content="r"
  10616. placement="top"
  10617. v-if="r != '' && r != undefined"
  10618. >
  10619. <div
  10620. :class="{
  10621. isCard: r,
  10622. isChooseCard: r == '' || r == undefined,
  10623. }"
  10624. >
  10625. <div>{{ r }}</div>
  10626. </div>
  10627. </el-tooltip>
  10628. <div
  10629. :class="{
  10630. isCard: r,
  10631. isChooseCard: r == '' || r == undefined,
  10632. }"
  10633. v-else
  10634. >
  10635. <div>{{ r }}</div>
  10636. </div>
  10637. </div>
  10638. </div>
  10639. </div>
  10640. <div class="cardList" v-if="st.addChangeSen">
  10641. <div class="cardBox">
  10642. <div
  10643. v-for="(s, sIndex) in st.addChangeSen"
  10644. :key="sIndex"
  10645. @click="setRightAnswer(s, stIndex, sIndex)"
  10646. >
  10647. <el-tooltip
  10648. class="item"
  10649. effect="light"
  10650. :content="s"
  10651. placement="top"
  10652. v-if="s != '' && s != undefined"
  10653. >
  10654. <div
  10655. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10656. >
  10657. <div>{{ s }}</div>
  10658. </div>
  10659. </el-tooltip>
  10660. <div
  10661. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10662. v-else
  10663. >
  10664. <div>{{ s }}</div>
  10665. </div>
  10666. </div>
  10667. </div>
  10668. </div>
  10669. </div>
  10670. </div>
  10671. </div>
  10672. <span slot="footer" class="dialog-footer">
  10673. <el-button @click="dialogVisibleSentenceTeacher = false"
  10674. >取 消</el-button
  10675. >
  10676. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10677. </span>
  10678. </el-dialog>
  10679. <el-dialog
  10680. title="排序"
  10681. :visible.sync="dialogVisibleSentence1"
  10682. :append-to-body="true"
  10683. width="1000px"
  10684. :before-close="handleClose"
  10685. class="dialog_diy dialog_diy3"
  10686. >
  10687. <div>
  10688. <div class="sentenBox">
  10689. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10690. {{ sentenceList1.stuName }}的作业
  10691. </div>
  10692. <div
  10693. v-for="(st, stIndex) in sentenceList1"
  10694. :key="stIndex"
  10695. style="padding-bottom: 20px"
  10696. >
  10697. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10698. 第{{ stIndex + 1 }}题
  10699. </div>
  10700. <div class="isWrong">
  10701. <div class="cardList1" v-if="st.chooseSenList">
  10702. <div class="cardBox">
  10703. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10704. <el-tooltip
  10705. class="item"
  10706. effect="light"
  10707. :content="s"
  10708. placement="top"
  10709. >
  10710. <div class="isCard">
  10711. <div>{{ s }}</div>
  10712. </div>
  10713. </el-tooltip>
  10714. </div>
  10715. </div>
  10716. <div class="cardAnswerBox">
  10717. 组成句子:{{ st.chooseSenList.join(" ") }}
  10718. </div>
  10719. </div>
  10720. <div v-if="tType == 2" class="isTj">
  10721. <div class="isTjImg">
  10722. <img src="../assets/icon/conSentences/right.png" alt="" />
  10723. </div>
  10724. <div>已提交</div>
  10725. </div>
  10726. <div
  10727. class="answerRight isTj"
  10728. v-if="
  10729. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10730. (tType == 1 || tType == 4)
  10731. "
  10732. >
  10733. <div class="isTjImg">
  10734. <img src="../assets/icon/conSentences/right.png" alt="" />
  10735. </div>
  10736. <div>回答正确</div>
  10737. </div>
  10738. <div
  10739. class="answerRight isTj"
  10740. v-if="
  10741. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10742. (tType == 1 || tType == 4)
  10743. "
  10744. >
  10745. <div class="isTjImg">
  10746. <img src="../assets/icon/conSentences/wrong.png" alt="" />
  10747. </div>
  10748. <div>回答错误</div>
  10749. </div>
  10750. </div>
  10751. <div
  10752. v-if="
  10753. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10754. (tType == 1 || tType == 4)
  10755. "
  10756. >
  10757. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10758. <div
  10759. class="cardList"
  10760. v-if="st.rightAnswer"
  10761. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10762. >
  10763. <div class="cardBox">
  10764. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10765. <el-tooltip
  10766. class="item"
  10767. effect="light"
  10768. :content="r"
  10769. placement="top"
  10770. >
  10771. <div class="isCard1">
  10772. <div>{{ r }}</div>
  10773. </div>
  10774. </el-tooltip>
  10775. </div>
  10776. </div>
  10777. <div class="cardAnswerBox">
  10778. 组成句子:{{ st.rightAnswer.join(" ") }}
  10779. </div>
  10780. </div>
  10781. </div>
  10782. </div>
  10783. </div>
  10784. </div>
  10785. <span slot="footer" class="dialog-footer">
  10786. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10787. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10788. >确 定</el-button
  10789. >
  10790. </span>
  10791. </el-dialog>
  10792. <el-dialog
  10793. title="教师提交作业"
  10794. :visible.sync="dialogVisibleWorks"
  10795. :append-to-body="true"
  10796. width="500px"
  10797. :before-close="handleClose"
  10798. class="dialog_change"
  10799. >
  10800. <div class="marginT">
  10801. <div class="w_name">
  10802. 学生姓名:<span>{{ sStudent.student }}</span>
  10803. </div>
  10804. <div>上传文件</div>
  10805. <div
  10806. class="chapter_add"
  10807. @click="addImg($event)"
  10808. v-if="studyJuri[0].cover.length == 0"
  10809. >
  10810. <div class="up_photo">
  10811. <img src="../assets/uploadImg2.png" alt />
  10812. </div>
  10813. <!-- <input
  10814. type="file"
  10815. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10816. style="display: none"
  10817. @change="beforeUpload1($event, 1)"
  10818. /> -->
  10819. <input
  10820. type="file"
  10821. accept="*"
  10822. style="display: none"
  10823. @change="beforeUpload1($event, 1)"
  10824. />
  10825. </div>
  10826. <!-- capture="camera" -->
  10827. <div
  10828. class="chapter_add"
  10829. style="
  10830. display: flex;
  10831. width: 100%;
  10832. flex-direction: row;
  10833. flex-wrap: wrap;
  10834. justify-content: flex-start;
  10835. padding: 15px 0;
  10836. "
  10837. v-if="studyJuri[0].cover.length > 0"
  10838. >
  10839. <div class="upCover">
  10840. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10841. <img :src="word" alt v-else-if="fileType == 1" />
  10842. <img :src="video" alt v-else-if="fileType == 2" />
  10843. <img :src="word2" alt v-else-if="fileType == 3" />
  10844. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10845. <div class="deleteWord" @click="clean(1)">
  10846. <img src="../assets/icon/deleteWorks.png" alt />
  10847. </div>
  10848. </div>
  10849. </div>
  10850. </div>
  10851. <div
  10852. class="upload_send"
  10853. @click="addCourseWorksTeacher(taskCount)"
  10854. v-if="!proVisible"
  10855. >
  10856. 提交
  10857. </div>
  10858. </el-dialog>
  10859. <ImgDraw
  10860. :drawShow="drawShow"
  10861. @closeDraw="closeDraw"
  10862. @addImgDraw="addImgDraw"
  10863. :bg="bg"
  10864. ></ImgDraw>
  10865. <el-dialog
  10866. title="表格"
  10867. :visible.sync="dialogVisibleTable"
  10868. :append-to-body="true"
  10869. width="95%"
  10870. :before-close="handleClose"
  10871. class="dialog_diy"
  10872. >
  10873. <el-form>
  10874. <div
  10875. style="
  10876. display: flex;
  10877. align-items: center;
  10878. justify-content: space-between;
  10879. "
  10880. >
  10881. <span>表格内容</span>
  10882. <el-button type="primary" size="small" @click="returnTableText"
  10883. >还原模板</el-button
  10884. >
  10885. </div>
  10886. <Table
  10887. v-model="tableJson.text"
  10888. @change="change"
  10889. v-if="dialogVisibleTable"
  10890. ></Table>
  10891. </el-form>
  10892. <span slot="footer" class="dialog-footer">
  10893. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10894. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10895. </span>
  10896. </el-dialog>
  10897. <el-dialog
  10898. title="表格"
  10899. :visible.sync="dialogVisibleTableTeacher"
  10900. :append-to-body="true"
  10901. width="95%"
  10902. :before-close="handleClose"
  10903. class="dialog_diy"
  10904. >
  10905. <el-form>
  10906. <div class="w_name">
  10907. 学生姓名:<span>{{ sStudent.student }}</span>
  10908. </div>
  10909. <div>表格内容</div>
  10910. <Table
  10911. v-model="tableJson.text"
  10912. @change="change"
  10913. v-if="dialogVisibleTableTeacher"
  10914. ></Table>
  10915. </el-form>
  10916. <span slot="footer" class="dialog-footer">
  10917. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10918. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10919. </span>
  10920. </el-dialog>
  10921. <el-dialog
  10922. title="文档"
  10923. :visible.sync="dialogVisibleWord"
  10924. :append-to-body="true"
  10925. width="95%"
  10926. :before-close="handleClose"
  10927. class="dialog_diy"
  10928. >
  10929. <el-form>
  10930. <div
  10931. style="
  10932. display: flex;
  10933. align-items: center;
  10934. justify-content: space-between;
  10935. "
  10936. >
  10937. <span>文档内容</span>
  10938. <el-button type="primary" size="small" @click="returnWordText"
  10939. >还原模板</el-button
  10940. >
  10941. </div>
  10942. <editor-bar
  10943. v-model="wordJson.text"
  10944. v-if="dialogVisibleWord"
  10945. ></editor-bar>
  10946. </el-form>
  10947. <span slot="footer" class="dialog-footer">
  10948. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10949. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10950. </span>
  10951. </el-dialog>
  10952. <el-dialog
  10953. title="文档"
  10954. :visible.sync="dialogVisibleWordTeacher"
  10955. :append-to-body="true"
  10956. width="95%"
  10957. :before-close="handleClose"
  10958. class="dialog_diy"
  10959. >
  10960. <el-form>
  10961. <div class="w_name">
  10962. 学生姓名:<span>{{ sStudent.student }}</span>
  10963. </div>
  10964. <div>文档内容</div>
  10965. <editor-bar
  10966. v-model="wordJson.text"
  10967. v-if="dialogVisibleWordTeacher"
  10968. ></editor-bar>
  10969. </el-form>
  10970. <span slot="footer" class="dialog-footer">
  10971. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10972. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10973. </span>
  10974. </el-dialog>
  10975. <el-dialog
  10976. title="表格"
  10977. :visible.sync="dialogVisibleTable2"
  10978. :append-to-body="true"
  10979. width="95%"
  10980. :before-close="handleClose"
  10981. class="dialog_diy"
  10982. >
  10983. <el-form>
  10984. <div class="cont" v-html="tableJson.text"></div>
  10985. </el-form>
  10986. <span slot="footer" class="dialog-footer">
  10987. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10988. </span>
  10989. </el-dialog>
  10990. <el-dialog
  10991. title="文档"
  10992. :visible.sync="dialogVisibleTable3"
  10993. :append-to-body="true"
  10994. width="95%"
  10995. :before-close="handleClose"
  10996. class="dialog_diy"
  10997. >
  10998. <el-form>
  10999. <div class="cont" v-html="tableJson.text"></div>
  11000. </el-form>
  11001. <span slot="footer" class="dialog-footer">
  11002. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11003. </span>
  11004. </el-dialog>
  11005. <el-dialog
  11006. title="分组设置"
  11007. :visible.sync="dialogVisibleGroup"
  11008. :append-to-body="true"
  11009. width="95%"
  11010. :before-close="handleClose"
  11011. class="dialog_diy"
  11012. >
  11013. <div v-if="dialogVisibleGroup">
  11014. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11015. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11016. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11017. </div>
  11018. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11019. @click="lockChair">
  11020. 锁定位置
  11021. </div>
  11022. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11023. 解锁位置
  11024. </div> -->
  11025. <div class="group_switch">
  11026. <span>开放选座</span>
  11027. <el-switch
  11028. v-model="islock"
  11029. active-text=""
  11030. class="switchCss"
  11031. @change="lockChair"
  11032. ></el-switch>
  11033. </div>
  11034. <div
  11035. type="primary"
  11036. @click="updateGroup"
  11037. class="returnBtn"
  11038. style="background-color: #225bc7"
  11039. >
  11040. 分组设置
  11041. </div>
  11042. </div>
  11043. <div>
  11044. <div
  11045. class="g_d_box"
  11046. v-if="groupJson.group && groupStudent[toolindex]"
  11047. >
  11048. <div
  11049. class="g_d_group"
  11050. v-for="(g, gindex) in groupJson.group"
  11051. :key="gindex"
  11052. >
  11053. <div class="g_d_group_chair">
  11054. <div v-if="groupJson.number > 1">
  11055. <span
  11056. :class="{
  11057. isChair:
  11058. groupStudent[toolindex][gindex] &&
  11059. groupStudent[toolindex][gindex][0],
  11060. updateChair:
  11061. courseDetail.userid == userid &&
  11062. groupStudent[toolindex][gindex] &&
  11063. groupStudent[toolindex][gindex][0] &&
  11064. groupJson.islock == 2,
  11065. }"
  11066. ><span
  11067. class="updateChairBtn"
  11068. @click="
  11069. updateGroupChair(
  11070. groupStudent[toolindex][gindex] &&
  11071. groupStudent[toolindex][gindex][0]
  11072. )
  11073. "
  11074. >修改</span
  11075. ></span
  11076. ><span>{{
  11077. groupStudent[toolindex][gindex] &&
  11078. groupStudent[toolindex][gindex][0]
  11079. ? groupStudent[toolindex][gindex] &&
  11080. groupStudent[toolindex][gindex][0].name
  11081. : "空位置"
  11082. }}</span>
  11083. </div>
  11084. <div v-if="groupJson.number > 4">
  11085. <span
  11086. :class="{
  11087. isChair:
  11088. groupStudent[toolindex][gindex] &&
  11089. groupStudent[toolindex][gindex][4],
  11090. updateChair:
  11091. courseDetail.userid == userid &&
  11092. groupStudent[toolindex][gindex] &&
  11093. groupStudent[toolindex][gindex][4] &&
  11094. groupJson.islock == 2,
  11095. }"
  11096. ><span
  11097. class="updateChairBtn"
  11098. @click="
  11099. updateGroupChair(
  11100. groupStudent[toolindex][gindex] &&
  11101. groupStudent[toolindex][gindex][4]
  11102. )
  11103. "
  11104. >修改</span
  11105. ></span
  11106. ><span>{{
  11107. groupStudent[toolindex][gindex] &&
  11108. groupStudent[toolindex][gindex][4]
  11109. ? groupStudent[toolindex][gindex] &&
  11110. groupStudent[toolindex][gindex][4].name
  11111. : "空位置"
  11112. }}</span>
  11113. </div>
  11114. <div v-if="groupJson.number > 8">
  11115. <span
  11116. :class="{
  11117. isChair:
  11118. groupStudent[toolindex][gindex] &&
  11119. groupStudent[toolindex][gindex][8],
  11120. updateChair:
  11121. courseDetail.userid == userid &&
  11122. groupStudent[toolindex][gindex] &&
  11123. groupStudent[toolindex][gindex][8] &&
  11124. groupJson.islock == 2,
  11125. }"
  11126. ><span
  11127. class="updateChairBtn"
  11128. @click="
  11129. updateGroupChair(
  11130. groupStudent[toolindex][gindex] &&
  11131. groupStudent[toolindex][gindex][8]
  11132. )
  11133. "
  11134. >修改</span
  11135. ></span
  11136. ><span>{{
  11137. groupStudent[toolindex][gindex] &&
  11138. groupStudent[toolindex][gindex][8]
  11139. ? groupStudent[toolindex][gindex] &&
  11140. groupStudent[toolindex][gindex][8].name
  11141. : "空位置"
  11142. }}</span>
  11143. </div>
  11144. </div>
  11145. <div class="g_d_group_tableBox">
  11146. <div class="g_d_group_chair2">
  11147. <div v-if="groupJson.number > 2">
  11148. <span
  11149. :class="{
  11150. isChair:
  11151. groupStudent[toolindex][gindex] &&
  11152. groupStudent[toolindex][gindex][2],
  11153. updateChair:
  11154. courseDetail.userid == userid &&
  11155. groupStudent[toolindex][gindex] &&
  11156. groupStudent[toolindex][gindex][2] &&
  11157. groupJson.islock == 2,
  11158. }"
  11159. ><span
  11160. class="updateChairBtn"
  11161. @click="
  11162. updateGroupChair(
  11163. groupStudent[toolindex][gindex] &&
  11164. groupStudent[toolindex][gindex][2]
  11165. )
  11166. "
  11167. >修改</span
  11168. ></span
  11169. ><span>{{
  11170. groupStudent[toolindex][gindex] &&
  11171. groupStudent[toolindex][gindex][2]
  11172. ? groupStudent[toolindex][gindex] &&
  11173. groupStudent[toolindex][gindex][2].name
  11174. : "空位置"
  11175. }}</span>
  11176. </div>
  11177. <div v-if="groupJson.number > 6">
  11178. <span
  11179. :class="{
  11180. isChair:
  11181. groupStudent[toolindex][gindex] &&
  11182. groupStudent[toolindex][gindex][6],
  11183. updateChair:
  11184. courseDetail.userid == userid &&
  11185. groupStudent[toolindex][gindex] &&
  11186. groupStudent[toolindex][gindex][6] &&
  11187. groupJson.islock == 2,
  11188. }"
  11189. ><span
  11190. class="updateChairBtn"
  11191. @click="
  11192. updateGroupChair(
  11193. groupStudent[toolindex][gindex] &&
  11194. groupStudent[toolindex][gindex][6]
  11195. )
  11196. "
  11197. >修改</span
  11198. ></span
  11199. ><span>{{
  11200. groupStudent[toolindex][gindex] &&
  11201. groupStudent[toolindex][gindex][6]
  11202. ? groupStudent[toolindex][gindex] &&
  11203. groupStudent[toolindex][gindex][6].name
  11204. : "空位置"
  11205. }}</span>
  11206. </div>
  11207. </div>
  11208. <div class="g_d_group_table">
  11209. <div>
  11210. {{ g.name }}
  11211. </div>
  11212. <div>
  11213. <div
  11214. v-if="
  11215. courseDetail.userid == userid && groupJson.islock == 2
  11216. "
  11217. @click="deleteGroupChair(gindex)"
  11218. >
  11219. 移除组员
  11220. </div>
  11221. <div
  11222. @click="selectGroup(gindex)"
  11223. v-else-if="
  11224. groupStudentUid[toolindex] &&
  11225. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11226. "
  11227. >
  11228. 加入分组
  11229. </div>
  11230. <div
  11231. @click="
  11232. exitGroup(
  11233. groupStudent[toolindex][gindex] &&
  11234. groupStudent[toolindex][gindex][
  11235. groupStudentUid[toolindex][gindex].indexOf(userid)
  11236. ].id
  11237. )
  11238. "
  11239. v-else-if="
  11240. groupStudentUid[toolindex] &&
  11241. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11242. "
  11243. >
  11244. 退出分组
  11245. </div>
  11246. </div>
  11247. </div>
  11248. <div class="g_d_group_chair2">
  11249. <div v-if="groupJson.number > 3">
  11250. <span
  11251. :class="{
  11252. isChair:
  11253. groupStudent[toolindex][gindex] &&
  11254. groupStudent[toolindex][gindex][3],
  11255. updateChair:
  11256. courseDetail.userid == userid &&
  11257. groupStudent[toolindex][gindex] &&
  11258. groupStudent[toolindex][gindex][3] &&
  11259. groupJson.islock == 2,
  11260. }"
  11261. ><span
  11262. class="updateChairBtn"
  11263. @click="
  11264. updateGroupChair(
  11265. groupStudent[toolindex][gindex] &&
  11266. groupStudent[toolindex][gindex][3]
  11267. )
  11268. "
  11269. >修改</span
  11270. ></span
  11271. ><span>{{
  11272. groupStudent[toolindex][gindex] &&
  11273. groupStudent[toolindex][gindex][3]
  11274. ? groupStudent[toolindex][gindex] &&
  11275. groupStudent[toolindex][gindex][3].name
  11276. : "空位置"
  11277. }}</span>
  11278. </div>
  11279. <div v-if="groupJson.number > 7">
  11280. <span
  11281. :class="{
  11282. isChair:
  11283. groupStudent[toolindex][gindex] &&
  11284. groupStudent[toolindex][gindex][7],
  11285. updateChair:
  11286. courseDetail.userid == userid &&
  11287. groupStudent[toolindex][gindex] &&
  11288. groupStudent[toolindex][gindex][7] &&
  11289. groupJson.islock == 2,
  11290. }"
  11291. ><span
  11292. class="updateChairBtn"
  11293. @click="
  11294. updateGroupChair(
  11295. groupStudent[toolindex][gindex] &&
  11296. groupStudent[toolindex][gindex][7]
  11297. )
  11298. "
  11299. >修改</span
  11300. ></span
  11301. ><span>{{
  11302. groupStudent[toolindex][gindex] &&
  11303. groupStudent[toolindex][gindex][7]
  11304. ? groupStudent[toolindex][gindex] &&
  11305. groupStudent[toolindex][gindex][7].name
  11306. : "空位置"
  11307. }}</span>
  11308. </div>
  11309. </div>
  11310. </div>
  11311. <div class="g_d_group_chair">
  11312. <div v-if="groupJson.number > 1">
  11313. <span
  11314. :class="{
  11315. isChair:
  11316. groupStudent[toolindex][gindex] &&
  11317. groupStudent[toolindex][gindex][1],
  11318. updateChair:
  11319. courseDetail.userid == userid &&
  11320. groupStudent[toolindex][gindex] &&
  11321. groupStudent[toolindex][gindex][1] &&
  11322. groupJson.islock == 2,
  11323. }"
  11324. ><span
  11325. class="updateChairBtn"
  11326. @click="
  11327. updateGroupChair(
  11328. groupStudent[toolindex][gindex] &&
  11329. groupStudent[toolindex][gindex][1]
  11330. )
  11331. "
  11332. >修改</span
  11333. ></span
  11334. ><span>{{
  11335. groupStudent[toolindex][gindex] &&
  11336. groupStudent[toolindex][gindex][1]
  11337. ? groupStudent[toolindex][gindex] &&
  11338. groupStudent[toolindex][gindex][1].name
  11339. : "空位置"
  11340. }}</span>
  11341. </div>
  11342. <div v-if="groupJson.number > 5">
  11343. <span
  11344. :class="{
  11345. isChair:
  11346. groupStudent[toolindex][gindex] &&
  11347. groupStudent[toolindex][gindex][5],
  11348. updateChair:
  11349. courseDetail.userid == userid &&
  11350. groupStudent[toolindex][gindex] &&
  11351. groupStudent[toolindex][gindex][5] &&
  11352. groupJson.islock == 2,
  11353. }"
  11354. ><span
  11355. class="updateChairBtn"
  11356. @click="
  11357. updateGroupChair(
  11358. groupStudent[toolindex][gindex] &&
  11359. groupStudent[toolindex][gindex][5]
  11360. )
  11361. "
  11362. >修改</span
  11363. ></span
  11364. ><span>{{
  11365. groupStudent[toolindex][gindex] &&
  11366. groupStudent[toolindex][gindex][5]
  11367. ? groupStudent[toolindex][gindex] &&
  11368. groupStudent[toolindex][gindex][5].name
  11369. : "空位置"
  11370. }}</span>
  11371. </div>
  11372. <div v-if="groupJson.number > 9">
  11373. <span
  11374. :class="{
  11375. isChair:
  11376. groupStudent[toolindex][gindex] &&
  11377. groupStudent[toolindex][gindex][9],
  11378. updateChair:
  11379. courseDetail.userid == userid &&
  11380. groupStudent[toolindex][gindex] &&
  11381. groupStudent[toolindex][gindex][9] &&
  11382. groupJson.islock == 2,
  11383. }"
  11384. ><span
  11385. class="updateChairBtn"
  11386. @click="
  11387. updateGroupChair(
  11388. groupStudent[toolindex][gindex] &&
  11389. groupStudent[toolindex][gindex][9]
  11390. )
  11391. "
  11392. >修改</span
  11393. ></span
  11394. ><span>{{
  11395. groupStudent[toolindex][gindex] &&
  11396. groupStudent[toolindex][gindex][9]
  11397. ? groupStudent[toolindex][gindex] &&
  11398. groupStudent[toolindex][gindex][9].name
  11399. : "空位置"
  11400. }}</span>
  11401. </div>
  11402. </div>
  11403. </div>
  11404. </div>
  11405. </div>
  11406. </div>
  11407. <span slot="footer" class="dialog-footer">
  11408. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11409. </span>
  11410. </el-dialog>
  11411. <el-dialog
  11412. title="分组设置"
  11413. :visible.sync="dialogVisibleGroup2"
  11414. :append-to-body="true"
  11415. width="650px"
  11416. :before-close="handleClose"
  11417. class="dialog_diy"
  11418. >
  11419. <div class="groupBox">
  11420. <div v-if="groupJson2.group" class="groupContent">
  11421. <div class="groupTitle">请设置小组数量及名称</div>
  11422. <div
  11423. v-for="(item, index) in groupJson2.group"
  11424. :key="index"
  11425. class="groupName"
  11426. >
  11427. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11428. <el-input
  11429. v-model="item.name"
  11430. placeholder="请输入名称..."
  11431. style="width: 250px"
  11432. ></el-input>
  11433. <!-- <div class="groupBtn">
  11434. <el-button type="primary" size="small" @click="addGroup(index)">
  11435. 添加</el-button>
  11436. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11437. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11438. </div> -->
  11439. </div>
  11440. </div>
  11441. <div class="groupContent">
  11442. <div class="groupTitle">请设置每组人数</div>
  11443. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11444. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11445. <el-input
  11446. v-model="groupJson2.number"
  11447. style="width: 150px"
  11448. placeholder="请输入2-10的数字"
  11449. @change="numberPan"
  11450. ></el-input>
  11451. </div>
  11452. </div>
  11453. <span slot="footer" class="dialog-footer">
  11454. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11455. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11456. </span>
  11457. </el-dialog>
  11458. <el-dialog
  11459. title="作业提交"
  11460. :visible.sync="dialogVisibleGroupWork"
  11461. :append-to-body="true"
  11462. width="500px"
  11463. :before-close="handleClose"
  11464. class="dialog_change"
  11465. >
  11466. <div class="marginT">
  11467. <div>上传文件</div>
  11468. <div
  11469. class="chapter_add"
  11470. @click="addImg($event)"
  11471. v-if="studyJuri[0].cover.length == 0"
  11472. >
  11473. <div class="up_photo">
  11474. <img src="../assets/icon/uploadImg.png" alt />
  11475. </div>
  11476. <!-- <input
  11477. type="file"
  11478. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11479. style="display: none"
  11480. @change="beforeUpload1($event, 1)"
  11481. /> -->
  11482. <input
  11483. type="file"
  11484. accept="*"
  11485. style="display: none"
  11486. @change="beforeUpload1($event, 1)"
  11487. />
  11488. </div>
  11489. <!-- capture="camera" -->
  11490. <div
  11491. class="chapter_add"
  11492. style="
  11493. display: flex;
  11494. width: 100%;
  11495. flex-direction: row;
  11496. flex-wrap: wrap;
  11497. justify-content: flex-start;
  11498. padding: 15px 0;
  11499. "
  11500. v-if="studyJuri[0].cover.length > 0"
  11501. >
  11502. <div class="upCover">
  11503. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11504. <img :src="word" alt v-else-if="fileType == 1" />
  11505. <img :src="video" alt v-else-if="fileType == 2" />
  11506. <img :src="word2" alt v-else-if="fileType == 3" />
  11507. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11508. <div class="deleteWord" @click="clean(1)">
  11509. <img src="../assets/icon/deleteWorks.png" alt />
  11510. </div>
  11511. </div>
  11512. </div>
  11513. </div>
  11514. <div
  11515. class="upload_send"
  11516. @click="addCourseWorks2(taskCount)"
  11517. v-if="!proVisible"
  11518. >
  11519. 提交
  11520. </div>
  11521. </el-dialog>
  11522. <el-dialog
  11523. title="修改分组"
  11524. :visible.sync="dialogVisibleUpdateGroup"
  11525. :append-to-body="true"
  11526. width="350px"
  11527. :before-close="handleClose"
  11528. class="dialog_diy"
  11529. >
  11530. <div>
  11531. <h2>
  11532. {{ this.updateGroupUser.name }}
  11533. </h2>
  11534. <div style="color: rgb(171 171 171); margin-top: 10px">
  11535. 请选择要进入的分组
  11536. </div>
  11537. <el-radio-group v-model="checkChair">
  11538. <el-radio
  11539. style="display: block; margin-top: 20px"
  11540. v-for="(item, index) in updateGroupArray"
  11541. :label="item.label"
  11542. :key="index"
  11543. >{{ item.name }}</el-radio
  11544. >
  11545. </el-radio-group>
  11546. </div>
  11547. <span slot="footer" class="dialog-footer">
  11548. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11549. <el-button type="primary" @click="updateChair">确定</el-button>
  11550. </span>
  11551. </el-dialog>
  11552. <el-dialog
  11553. title="移除组员"
  11554. :visible.sync="dialogVisibleDeleteGroup"
  11555. :append-to-body="true"
  11556. width="350px"
  11557. :before-close="handleClose"
  11558. class="dialog_diy"
  11559. >
  11560. <div>
  11561. <h2>
  11562. {{ this.deleteGroupArray.name }}
  11563. </h2>
  11564. <div style="color: rgb(171 171 171); margin-top: 10px">
  11565. 请选择要删除的组员
  11566. </div>
  11567. <el-checkbox-group v-model="checkDeleteGroup">
  11568. <el-checkbox
  11569. style="display: flex; margin-top: 20px"
  11570. v-for="(item, index) in deleteGroupUser"
  11571. :label="item.userid"
  11572. :key="index"
  11573. >{{ item.name }}</el-checkbox
  11574. >
  11575. </el-checkbox-group>
  11576. </div>
  11577. <span slot="footer" class="dialog-footer">
  11578. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11579. <el-button type="primary" @click="deleteChair">确定</el-button>
  11580. </span>
  11581. </el-dialog>
  11582. <el-dialog
  11583. title="批量上传"
  11584. :visible.sync="dialogVisiblePl"
  11585. :append-to-body="true"
  11586. width="700px"
  11587. :before-close="handleClose"
  11588. class="dialog_change"
  11589. >
  11590. <div class="marginT">
  11591. <div class="plworkBox">
  11592. <div
  11593. class="chapter_add"
  11594. style="
  11595. display: flex;
  11596. width: 150px;
  11597. flex-direction: row;
  11598. flex-wrap: wrap;
  11599. justify-content: flex-start;
  11600. margin: 0 10px 10px 0;
  11601. "
  11602. v-for="(item, index) in plworkFile"
  11603. :key="index"
  11604. >
  11605. <div class="upCover2">
  11606. <img
  11607. :src="item.url"
  11608. alt
  11609. v-if="item.fileType == 1"
  11610. @click="previewImg(item.url)"
  11611. />
  11612. <img :src="word" alt v-else-if="item.fileType == 4" />
  11613. <img :src="video" alt v-else />
  11614. <!-- <span class="picName">{{ item.name }}</span> -->
  11615. <!-- <el-input
  11616. v-model="item.username"
  11617. placeholder="请输入学生名字"
  11618. style="margin-top: 10px"
  11619. ></el-input> -->
  11620. <div
  11621. class="pl_select_box"
  11622. @click="
  11623. getUpdateMore(true, checkUpload(), item.username, index)
  11624. "
  11625. >
  11626. {{ getSName(item.username) }}
  11627. </div>
  11628. <!-- <el-select
  11629. style="margin-top: 10px"
  11630. v-model="item.username"
  11631. filterable
  11632. allow-create
  11633. placeholder="请选择学生"
  11634. >
  11635. <el-option
  11636. v-for="item1 in checkUpload()"
  11637. :key="item1.userid"
  11638. :label="item1.name ? item1.name : item1.username"
  11639. :value="item1.userid"
  11640. >
  11641. </el-option>
  11642. </el-select> -->
  11643. <div class="deleteWord" @click="clean2(index)">
  11644. <img src="../assets/icon/deleteWorks.png" alt />
  11645. </div>
  11646. </div>
  11647. </div>
  11648. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11649. <div class="up_photo2">
  11650. <img src="../assets/icon/plwork.png" alt />
  11651. <span>点击上传文件</span>
  11652. </div>
  11653. <input
  11654. type="file"
  11655. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11656. multiple="multiple"
  11657. style="display: none"
  11658. @change="beforeUpload3($event, 6)"
  11659. />
  11660. </div>
  11661. </div>
  11662. </div>
  11663. <!-- capture="camera" -->
  11664. <div
  11665. class="upload_send"
  11666. @click="addCourseWorksPl(taskCount)"
  11667. v-if="!proVisible2"
  11668. >
  11669. 提交
  11670. </div>
  11671. </el-dialog>
  11672. <el-dialog
  11673. title="修改名称"
  11674. :visible.sync="dialogVisibleSname"
  11675. width="500px"
  11676. :before-close="handleClose"
  11677. class="dialog_diy"
  11678. center
  11679. >
  11680. <div
  11681. style="
  11682. text-align: center;
  11683. display: flex;
  11684. align-items: center;
  11685. justify-content: center;
  11686. "
  11687. >
  11688. <span class="tian1">名称</span>
  11689. <div
  11690. class="pl_select_box"
  11691. style="margin-left: 10px; width: 200px"
  11692. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11693. >
  11694. {{ getSName(worksSName) }}
  11695. </div>
  11696. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11697. placeholder="请选择学生">
  11698. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11699. :value="item.userid">
  11700. </el-option>
  11701. </el-select> -->
  11702. <!-- <el-input
  11703. v-model="worksSName"
  11704. style="width: 250px; margin: 15px 0px"
  11705. ></el-input> -->
  11706. </div>
  11707. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11708. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11709. <el-button type="primary" @click="updateName">确 定</el-button>
  11710. </span>
  11711. </el-dialog>
  11712. <el-dialog
  11713. title="英语写作"
  11714. :visible.sync="engDialogVisible"
  11715. :append-to-body="true"
  11716. width="800px"
  11717. :before-close="handleClose"
  11718. class="dialog_diy"
  11719. >
  11720. <onlineWrite
  11721. v-if="engDialogVisible"
  11722. :englishList="englishList"
  11723. :myAnswerList1="myAnswerList1"
  11724. :userid="userid"
  11725. ref="engJson"
  11726. ></onlineWrite>
  11727. <span slot="footer" class="dialog-footer">
  11728. <el-button @click="engDialogVisible = false">取 消</el-button>
  11729. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11730. </span>
  11731. </el-dialog>
  11732. <el-dialog
  11733. title="英语写作"
  11734. :visible.sync="engUpdateDialogVisible"
  11735. :append-to-body="true"
  11736. width="800px"
  11737. :before-close="handleClose"
  11738. class="dialog_diy fullStyle"
  11739. >
  11740. <div class="engUpBox">
  11741. <div class="engUpTop">
  11742. <div class="engTitle">
  11743. <div>作文题目:</div>
  11744. <div>{{ englishList1.engTitle }}</div>
  11745. </div>
  11746. <div class="engText">
  11747. <div>作文内容:</div>
  11748. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11749. </div>
  11750. </div>
  11751. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11752. <div class="oldBox">
  11753. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11754. <div class="oldText">
  11755. <div class="detailBox">
  11756. <div class="oldDetail">
  11757. <div>标题:</div>
  11758. <div>{{ oldEnglishJson.engTitle }} </div>
  11759. </div>
  11760. <div class="oldDetail1">
  11761. <div>正文:</div>
  11762. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11763. </div>
  11764. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11765. <div>图片:</div>
  11766. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11767. </div>
  11768. </div>
  11769. </div>
  11770. </div>
  11771. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11772. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11773. <div class="oldText">
  11774. <div class="detailBox" style="position: relative;">
  11775. <div class="oldDetail">
  11776. <div>标题:</div>
  11777. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11778. <div v-else v-html="newEnglishList.engTitle"></div>
  11779. </div>
  11780. <div class="oldDetail">
  11781. <div>正文:</div>
  11782. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11783. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11784. </div>
  11785. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11786. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11787. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11788. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11789. </div>
  11790. </div>
  11791. </div>
  11792. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11793. <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">
  11794. <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>
  11795. <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>
  11796. </div>
  11797. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11798. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11799. <div class="detailBox" style="position: relative;">
  11800. <div class="oldDetail">
  11801. <div>标题:</div>
  11802. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11803. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11804. </div>
  11805. <div class="oldDetail">
  11806. <div>正文:</div>
  11807. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11808. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11809. </div>
  11810. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11811. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11812. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11813. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11814. </div>
  11815. </div>
  11816. <div class="oldText" v-else-if="newEngIndex == -1">
  11817. <div class="detailBox" style="position: relative;">
  11818. <div class="oldDetail">
  11819. <div>标题:</div>
  11820. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11821. <div v-else v-html="newEnglishList.engTitle"></div>
  11822. </div>
  11823. <div class="oldDetail">
  11824. <div>正文:</div>
  11825. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11826. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11827. </div>
  11828. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11829. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11830. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11831. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11832. </div>
  11833. </div>
  11834. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11835. <div class="detailBox" style="position: relative;">
  11836. <div class="oldDetail">
  11837. <div>标题:</div>
  11838. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11839. <div v-else>
  11840. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle"/>
  11841. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11842. </div>
  11843. </div>
  11844. <div class="oldDetail">
  11845. <div>正文:</div>
  11846. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11847. <div v-else>
  11848. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11849. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11850. </div>
  11851. </div>
  11852. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11853. <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>
  11854. <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>
  11855. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11856. </div>
  11857. </div>
  11858. </div>
  11859. </div>
  11860. </div>
  11861. <span slot="footer" class="dialog-footer">
  11862. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11863. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11864. </span>
  11865. </el-dialog>
  11866. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11867. <interVideo
  11868. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11869. :videoJson="videoJson"
  11870. :userid="userid"
  11871. :id="id"
  11872. :courseType="courseType"
  11873. :taskCount="taskCount"
  11874. :toolindex="toolindex"
  11875. :videoType="videoType"
  11876. ></interVideo>
  11877. <UpdateMore
  11878. :dialogVisibleMember.sync="dialogVisibleMember"
  11879. :cList="uploadStudentJuri"
  11880. :userid="userid"
  11881. :searchTN="worksSName2"
  11882. @setPlname="setPlname"
  11883. ></UpdateMore>
  11884. <wordCloud
  11885. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11886. :data="wordCloudData"
  11887. ></wordCloud>
  11888. <el-dialog
  11889. title="挑人"
  11890. :visible.sync="dialogVisiblePickPeople"
  11891. width="650px"
  11892. :before-close="handleClose"
  11893. class="dialog_diy"
  11894. center
  11895. >
  11896. <div class="pick_box">
  11897. <div
  11898. class="noWorksName"
  11899. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11900. v-for="(item, index) in uploadStudentJuri"
  11901. :key="index"
  11902. @click="pickStudent(item)"
  11903. >
  11904. {{ item.name }}
  11905. </div>
  11906. </div>
  11907. </el-dialog>
  11908. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11909. :englishVoiceJson='englishVoiceJson'
  11910. :userid="userid"
  11911. :id="id"
  11912. :courseType="courseType"
  11913. :taskCount="taskCount"
  11914. :toolindex="toolindex"
  11915. @selectSWorks="selectSWorks"
  11916. @selectStudent="selectStudent"
  11917. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11918. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11919. :userid="userid"
  11920. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11921. :commentDetail="commentDetail"
  11922. :courseDetail="courseDetail"
  11923. :wScore="wScore"
  11924. :scoreDetail="scoreDetail"
  11925. @selectSWorks="selectSWorks"
  11926. @selectStudent="selectStudent"></checkEnglishVoice>
  11927. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  11928. <choseWorksDetailDialog
  11929. ref="choseWorksDetailDialogRef"
  11930. :worksStudentData="this.worksStudent"
  11931. :noWorksSData="noWorksS"
  11932. :chapInfoListData="chapInfoList"
  11933. :courseType="courseType"
  11934. :taskCount="taskCount"
  11935. @deleteWorks="deleteWorks"
  11936. @openTools="openTools"
  11937. @openWord="openWord"
  11938. @openScore="openScore"
  11939. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  11940. />
  11941. <el-dialog
  11942. :visible.sync="confirmOpenDig"
  11943. width="500px"
  11944. :modal="false"
  11945. class="confirmOpenDigCss dialog_diyCopy"
  11946. :before-close="handleClose">
  11947. <div style="display: flex;align-items: center;">
  11948. <img src="../assets/icon/course/confirmOpenDig.svg" alt="">
  11949. <span>“{{ courseDetail.title }}”开课啦</span>
  11950. </div>
  11951. <div style="margin: 20px 0 35px;">
  11952. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  11953. <div>要认真听讲哦~</div>
  11954. </div>
  11955. <div style="text-align: center;">
  11956. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  11957. </div>
  11958. </el-dialog>
  11959. </div>
  11960. </template>
  11961. <script>
  11962. import "../common/aws-sdk-2.235.1.min.js";
  11963. // import pdf from "./components/pdf3";
  11964. import pdf from "./components/vpdf";
  11965. import AskStatic from "./components/askStatic";
  11966. import AskStatic2 from "./components/askStatic2";
  11967. import AnswerData2 from "./components/answerData2";
  11968. import AnswerData from "./components/answerData";
  11969. import EditorBar from "./tools/wangEnduit.vue";
  11970. import Table from "./tools/table.vue";
  11971. import Time from "./tools/time.vue";
  11972. import Mind from "./tools/jsmind.vue";
  11973. import Sunburst from "./tools/sunburst";
  11974. import SeeBoard from "./tools/seeBoard";
  11975. import * as imageConversion from "image-conversion";
  11976. import Audio from "./components/audio.vue";
  11977. import ImgDraw from "./tools/imgDraw/imgDraw";
  11978. import { Empty } from "element-ui";
  11979. import RecordRTC from "recordrtc";
  11980. import interVideo from "./interVideo/index.vue";
  11981. import UpdateMore from "./updateMore/updateMore.vue";
  11982. import wordCloud from "./wordCloud/index.vue";
  11983. import axios from "axios";
  11984. import JSZip from "jszip";
  11985. import FileSaver from "file-saver";
  11986. import onlineWrite from "./components/onlineWrite";
  11987. import englishEva from "./components/englishEva";
  11988. import * as Diff from 'diff'
  11989. import EnglishVoice from './EnglishVoice2/index.vue'
  11990. import checkEnglishVoice from './checkEnglishVoice/index.vue'
  11991. import correctText from './components/correctText.vue'
  11992. import scoreItem from './scoreList/scoreItem.vue'
  11993. import scoreZong from './scoreZong/index.vue'
  11994. import classRoomHelper from './classRoomHelper/index.vue'
  11995. import statisticalAnalysis from "./components/statisticalAnalysis.vue";
  11996. import choseWorksDetailDialog from './components/choseWorksDetailDialog.vue';
  11997. import { v4 as uuidv4 } from "uuid";
  11998. var OpenCC = require("opencc-js");
  11999. let converter = OpenCC.Converter({
  12000. from: "hk",
  12001. to: "cn"
  12002. });
  12003. const getFile = (url) => {
  12004. return new Promise((resolve, reject) => {
  12005. var credentials = {
  12006. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12007. secretAccessKey: "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",
  12008. }; //秘钥形式的登录上传
  12009. window.AWS.config.update(credentials);
  12010. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12011. let url2 = url;
  12012. let _url2 = "";
  12013. if (
  12014. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12015. ) {
  12016. _url2 = url2.split(
  12017. "https://view.officeapps.live.com/op/view.aspx?src="
  12018. )[1];
  12019. } else {
  12020. _url2 = url2;
  12021. }
  12022. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12023. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12024. var params = {
  12025. Bucket: "ccrb",
  12026. Key: name
  12027. };
  12028. s3.getObject(params, function (err, data) {
  12029. if (err) {
  12030. console.log(err, err.stack)
  12031. resolve({ data: 1 });
  12032. }else {
  12033. resolve({ data: data.Body });
  12034. console.log(data);
  12035. } // sxuccessful response
  12036. });
  12037. // axios({
  12038. // method: "get",
  12039. // url,
  12040. // responseType: "blob",
  12041. // })
  12042. // .then((data) => {
  12043. // resolve({ data: data.data });
  12044. // })
  12045. // .catch((error) => {
  12046. // resolve({ data: 1 });
  12047. // // reject(error.toString());
  12048. // });
  12049. });
  12050. };
  12051. export default {
  12052. components: {
  12053. EditorBar,
  12054. Time,
  12055. pdf,
  12056. AskStatic,
  12057. AskStatic2,
  12058. Mind,
  12059. Sunburst,
  12060. SeeBoard,
  12061. AnswerData2,
  12062. AnswerData,
  12063. Audio,
  12064. ImgDraw,
  12065. Table,
  12066. interVideo,
  12067. UpdateMore,
  12068. wordCloud,
  12069. onlineWrite,
  12070. englishEva,
  12071. EnglishVoice,
  12072. checkEnglishVoice,
  12073. correctText,
  12074. scoreItem,
  12075. classRoomHelper,
  12076. scoreZong,
  12077. statisticalAnalysis,
  12078. choseWorksDetailDialog
  12079. },
  12080. data() {
  12081. return {
  12082. bg: null,
  12083. drawShow: false,
  12084. dialogVisible: false,
  12085. dialogVisiblePl: false,
  12086. commentDialogVisible: false,
  12087. dialogVisibleMember: false,
  12088. dialogVisibleWordCloud: false,
  12089. videoVisible: false,
  12090. isStar: false,
  12091. studentEvalDialogVisible: false,
  12092. studentEvalDialogVisibleTeacher: false,
  12093. dialogVisibleSelect: false,
  12094. dialogVisibleSelectTeacher: false,
  12095. dialogVisibleScore: false,
  12096. dialogVisibleENScore: false,
  12097. dialogVisibleSentence: false,
  12098. dialogVisibleSentenceTeacher: false,
  12099. dialogVisibleSentence1: false,
  12100. dialogVisibleWorks: false,
  12101. dialogVisibleTable: false,
  12102. dialogVisibleTableTeacher: false,
  12103. dialogVisibleWord: false,
  12104. dialogVisibleWordTeacher: false,
  12105. dialogVisibleTable2: false,
  12106. dialogVisibleTable3: false,
  12107. dialogVisibleGroupWork: false,
  12108. dialogVisibleUpdateGroup: false,
  12109. dialogVisibleDeleteGroup: false,
  12110. dialogVisibleSname: false,
  12111. dialogVisibleVideo: false,
  12112. dialogVisiblePickPeople: false,
  12113. engDialogVisible: false,
  12114. engUpdateDialogVisible: false,
  12115. engEvaDialogVisible: false,
  12116. evaEngJson: {
  12117. teacherJson: {},
  12118. studentJson: {},
  12119. message: {},
  12120. },
  12121. isNoUserid:false,
  12122. engListLength:0,
  12123. engWid:"",
  12124. newEnglishList:{
  12125. engTitle:"",
  12126. engText:"",
  12127. },
  12128. newEnglishList1:[],
  12129. oldEnglishJson:{},
  12130. oldEnglishJson1:{},
  12131. englishList1:{},
  12132. englishList:{},
  12133. myAnswerList1:{},
  12134. topHeight:0,
  12135. newEngIndex:-1,
  12136. englishToolIndex:0,
  12137. worksSName: "",
  12138. classJuri: [],
  12139. uploadStudentJuri: [],
  12140. uploadCid: "",
  12141. snameWid: "",
  12142. sStudent: {},
  12143. sTool: "",
  12144. bzText: "",
  12145. commentDetail: [],
  12146. selectAnswer: [],
  12147. videoDetail: {},
  12148. selectJson: {},
  12149. eScore: { eBzText: "", eStar: [] },
  12150. id: this.$route.query.courseId,
  12151. userid: this.$route.query.userid,
  12152. classId: this.$route.query.cid,
  12153. // courseTypeLine: this.$route.query.type,
  12154. oid: this.$route.query.oid,
  12155. org: this.$route.query.org,
  12156. tType: this.$route.query.tType,
  12157. courseType: this.$route.query.type,
  12158. screenType: this.$route.query.screenType,
  12159. tcid2: this.$route.query.tcid,
  12160. tcid: "",
  12161. pptImgUrl: "",
  12162. pptImgUrl1: "",
  12163. commentText: "",
  12164. full: false,
  12165. sIsOpen: false,
  12166. IsLookOpen: false,
  12167. IsFollow: false,
  12168. pzDialog: false,
  12169. contentDialog: false,
  12170. mlDialog: false,
  12171. type: 1,
  12172. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12173. sentenceList1: [],
  12174. tableJson: [],
  12175. tableJsonO: [],
  12176. wordJson: [],
  12177. wordJsonO: [],
  12178. vedio: [],
  12179. text: [],
  12180. textList: [],
  12181. line: [],
  12182. lineList: [],
  12183. chapTools: [],
  12184. chapToolList: [],
  12185. file: [],
  12186. fileC: [],
  12187. vedioTime: [],
  12188. upToolImg: "",
  12189. preTime: 0,
  12190. rateList: {
  12191. ca: 0,
  12192. },
  12193. rateParams: [],
  12194. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12195. studyJuri: [
  12196. {
  12197. content: "",
  12198. cover: [],
  12199. upVedio: [],
  12200. upFile: [],
  12201. },
  12202. ],
  12203. isClose: 0,
  12204. plworkFile: [],
  12205. mr: require("../assets/vedioPic.png"),
  12206. word: require("../assets/icon/isWord.png"),
  12207. word2: require("../assets/icon/word2.png"),
  12208. video: require("../assets/icon/isVideo.png"),
  12209. noLikes: require("../assets/icon/comment/noLikes.png"),
  12210. likes: require("../assets/icon/comment/likes.png"),
  12211. scoreImg: require("../assets/score.png"),
  12212. courseDetail: {},
  12213. reply: "",
  12214. isSelect: false,
  12215. chapInfo: [],
  12216. chapInfoList: [],
  12217. taskCount: 0,
  12218. imgList: [],
  12219. noImgList: [],
  12220. pzList: [],
  12221. timeWorkList: [],
  12222. PlTextList: [
  12223. "Excellent!",
  12224. "nice!",
  12225. "很有创意!",
  12226. "还不错哦~",
  12227. "继续努力哦~",
  12228. ],
  12229. isClickNav: "",
  12230. navId: "",
  12231. playerOptions: {
  12232. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12233. autoplay: false, //如果true,浏览器准备好时开始回放。
  12234. muted: false, // 默认情况下将会消除任何音频。
  12235. loop: false, // 导致视频一结束就重新开始。
  12236. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12237. language: "zh-CN",
  12238. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12239. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12240. sources: [
  12241. {
  12242. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12243. src: "", //url地址require("../../assets/media/aaa.mp4")
  12244. },
  12245. ],
  12246. // poster: require("../../assets/tu31.png"), //你的封面地址
  12247. // poster: dataRes.imgUrl, //你的封面地址
  12248. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12249. controlBar: {
  12250. timeDivider: true, //当前时间和持续时间的分隔符
  12251. durationDisplay: true, //显示持续时间
  12252. remainingTimeDisplay: false, //是否显示剩余时间功能
  12253. fullscreenToggle: true, //全屏按钮
  12254. },
  12255. },
  12256. playerOptions1: {
  12257. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12258. autoplay: false, //如果true,浏览器准备好时开始回放。
  12259. muted: false, // 默认情况下将会消除任何音频。
  12260. loop: false, // 导致视频一结束就重新开始。
  12261. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12262. language: "zh-CN",
  12263. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12264. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12265. sources: [
  12266. {
  12267. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12268. src: "", //url地址require("../../assets/media/aaa.mp4")
  12269. },
  12270. ],
  12271. // poster: require("../../assets/tu31.png"), //你的封面地址
  12272. // poster: dataRes.imgUrl, //你的封面地址
  12273. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12274. controlBar: {
  12275. timeDivider: true, //当前时间和持续时间的分隔符
  12276. durationDisplay: true, //显示持续时间
  12277. remainingTimeDisplay: false, //是否显示剩余时间功能
  12278. fullscreenToggle: true, //全屏按钮
  12279. },
  12280. },
  12281. playerO: {},
  12282. noneBtnImg: false,
  12283. proVisible: false,
  12284. proVisible2: false,
  12285. progress: 0,
  12286. isFinishSize: 0,
  12287. isAllSize: 0,
  12288. questionAnswer: "",
  12289. answerQ: "", //问答标题
  12290. rateJson: [],
  12291. wbCount: 0,
  12292. wordCount: 0,
  12293. mindCount: 0,
  12294. askCount: 0,
  12295. noteCount: 0,
  12296. mindNetWorkCount: 0,
  12297. libraryCount: 0,
  12298. workCount: 0,
  12299. timeCount: 0,
  12300. answerCount: 0,
  12301. trainCount: 0,
  12302. evalCount: 0,
  12303. dialogImageUrl: "",
  12304. pictureDialog: false,
  12305. toolTypeList: [],
  12306. dialogVisible1: false,
  12307. dialogVisible2: false,
  12308. dialogVisible3: false,
  12309. dialogVisible6: false,
  12310. dialogVisible4: false,
  12311. isNoHomeWork: false,
  12312. dialogVisible5: false,
  12313. dialogVisible5Teacher: false,
  12314. dialogVisibleChoice: false,
  12315. dialogVisibleChoiceTeacher: false,
  12316. answerDialogVisible: false,
  12317. answerDialogVisibleTeacher: false,
  12318. juriVisible: false,
  12319. timeDialogVisible: false,
  12320. replyDialogVisible: false,
  12321. toolDialogVisible: false,
  12322. replyIndex: 0,
  12323. replyPid: "",
  12324. radio: [],
  12325. isAsk: false,
  12326. askJson: {
  12327. askCount: 1,
  12328. askTitle: "",
  12329. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12330. },
  12331. testJson: {},
  12332. videoType:0,
  12333. checkJson: [],
  12334. askList: [],
  12335. answerList: [],
  12336. navList: [],
  12337. addPzDialog: false,
  12338. pzConText: "",
  12339. worksStudent: [],
  12340. isCloseList: [],
  12341. workStudent: [],
  12342. groupStudent: [],
  12343. groupStudentUid: [],
  12344. noWorksS: [],
  12345. isWorksS: [],
  12346. noWorksStudent: [],
  12347. toolindex: 0,
  12348. toolDetailIndex: null,
  12349. groupIndex: 0,
  12350. workTypeB: false,
  12351. workTypeC: false,
  12352. isAnswer: false,
  12353. isHovered: false,
  12354. isHovered1: false,
  12355. isHovered2: false,
  12356. commentTagShow:0,
  12357. timer: null,
  12358. timer2: null,
  12359. opertimer: null,
  12360. showType: 0,
  12361. fileType: 0,
  12362. showPDF: false,
  12363. noteName: "",
  12364. evaJuri: [],
  12365. evalua: "",
  12366. eTitle: "",
  12367. eName: "",
  12368. eJson: {},
  12369. fid: "", //一级
  12370. sid: "", //二级
  12371. tid: "", //二级
  12372. typeMode: 1,
  12373. eJSONNum: 0,
  12374. Etype: 1,
  12375. data: {
  12376. meta: {
  12377. name: "example",
  12378. author: "dd@163.com",
  12379. version: "0.2",
  12380. },
  12381. format: "node_array",
  12382. data: [{ id: "root", isroot: true, topic: "" }],
  12383. },
  12384. fullDialogVisible: false,
  12385. fulltype: "",
  12386. fullUrl: "",
  12387. commentIndexJson: {},
  12388. Stbodywidth: 0,
  12389. ispzType: 0,
  12390. pzType: 1,
  12391. wScore: 0,
  12392. scoreDetail: "",
  12393. videoStart: false,
  12394. recorder: null,
  12395. groupJson: {},
  12396. islock: false,
  12397. groupJson2: {},
  12398. dialogVisibleGroup: false,
  12399. dialogVisibleGroup2: false,
  12400. updateGroupArray: [],
  12401. updateGroupUser: {},
  12402. deleteGroupUser: [],
  12403. deleteGroupArray: {},
  12404. checkChair: "",
  12405. checkDeleteGroup: [],
  12406. inviteCode: "",
  12407. courseGroupStudent: [],
  12408. courseGroupStudentUid: [],
  12409. courseGroup: {},
  12410. isGroup: false,
  12411. // toolIndex: null,
  12412. tool: {},
  12413. isWorkTool: [
  12414. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12415. ], //, 40
  12416. videoJson: {},
  12417. toolType: 0,
  12418. checktoolArray: [],
  12419. vChapterData: [],
  12420. isUpdateToolDetail: false,
  12421. isUpdateToolDetail1: false,
  12422. updateToolDetailInner: "",
  12423. checkboxList: [],
  12424. plIndex: "",
  12425. worksSName2: "",
  12426. worksSid: "",
  12427. wordCloudData: [],
  12428. isPickStudent: [],
  12429. pzStype: 1,
  12430. myAnList: {},
  12431. userMes:{},
  12432. downLoading: false,
  12433. greyType: false,
  12434. correctWord: [],
  12435. isUpdateText: "",
  12436. EnglishVoiceDialog: false,
  12437. englishVoiceJson: {},
  12438. englishVoiceJsonWork:[],
  12439. scoreList:{
  12440. listdata:[],
  12441. isScoreList:[],
  12442. },
  12443. classRoomHelperWidth: '85px',
  12444. orgArray:[],
  12445. oidArray:[],
  12446. toolsList:{
  12447. 58: "模拟驾驶",
  12448. 59: "路径搜索",
  12449. 60: "深度学习",
  12450. 10: "倒计时",
  12451. 65: "挑人",
  12452. 7: "思维网格",
  12453. 1: "电子白板",
  12454. 52: "文档",
  12455. 3: "思维导图",
  12456. 48: "表格",
  12457. 49: "学生分组",
  12458. 4: "卷调查",
  12459. 45: "选择题",
  12460. 15: "问答",
  12461. 16: "作业提交",
  12462. 50: "批量上传",
  12463. 41: "选择匹配",
  12464. 47: "排序",
  12465. 40: "个人评价",
  12466. 18: "训练平台",
  12467. 21: "AIoT Blockly",
  12468. 23: "AI Python",
  12469. 24: "AI Blockly",
  12470. 32: "源码编辑",
  12471. 57: "CocoPi",
  12472. 63: "海龟编程",
  12473. 28: "翻译",
  12474. 31: "数字画板",
  12475. 39: "GeoGebra",
  12476. 66: "公式编辑",
  12477. 67: "分子结构",
  12478. 68: "时间轴",
  12479. 69: "英语写作",
  12480. 70: "英语口语",
  12481. 25: "目标管理",
  12482. 26: "课程设计",
  12483. 62: "交互视频",
  12484. 71: "AI智能体"
  12485. },
  12486. splitScreenData:{
  12487. isOpen:false,
  12488. userId:"",
  12489. uid:"",
  12490. myUid:"",
  12491. loading:false,
  12492. behavior:null,
  12493. },
  12494. confirmOpenDig:false,
  12495. confirmOpenDigData:''
  12496. };
  12497. },
  12498. methods: {
  12499. getAIJ(){
  12500. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12501. let oid = res.data[0];
  12502. let org = res.data[1];
  12503. let oidArray = [];
  12504. let orgArray = [];
  12505. oid.forEach(i=>oidArray.push(i.oid))
  12506. org.forEach(i=>orgArray.push(i.oid))
  12507. this.orgArray = orgArray;
  12508. this.oidArray = oidArray;
  12509. })
  12510. },
  12511. insertMemorandum(_html){//保存行为操作
  12512. //variable
  12513. //btn
  12514. let params = [{
  12515. uid:this.userid,
  12516. courseId:this.id+(this.tcid2?this.tcid2:''),
  12517. content:_html
  12518. }]
  12519. console.log("👇👇")
  12520. console.log(params)
  12521. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12522. if(res.data==1){
  12523. console.log('保存操作成功')
  12524. }else{
  12525. console.log('保存操作失败')
  12526. }
  12527. }).catch(e=>{
  12528. console.log('保存操作失败')
  12529. console.log(e)
  12530. })
  12531. },
  12532. gx(){
  12533. this.$forceUpdate();
  12534. },
  12535. isUpdateCorrect(t,p){
  12536. if(this.greyType == false){
  12537. this.isUpdateText = t;
  12538. this.greyType = true;
  12539. }else{
  12540. if(p == 1){
  12541. this.newEnglishList.engText = this.isUpdateText;
  12542. }else if(p == 2){
  12543. this.oldEnglishJson1.engText = this.isUpdateText;
  12544. }else if(p == 3){
  12545. this.newEnglishList.engText = this.isUpdateText;
  12546. }else{
  12547. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12548. }
  12549. this.greyType = false
  12550. }
  12551. },
  12552. aiCorrect(t,p){
  12553. let aiText = "";
  12554. const loading = this.$loading.service({
  12555. background: "rgba(255, 255, 255)",
  12556. target: document.querySelectorAll(".loadingText")[0],
  12557. });
  12558. let param = {
  12559. model: "gpt-3.5-turbo",
  12560. temperature: 0,
  12561. max_tokens: 2048,
  12562. top_p: 1,
  12563. frequency_penalty: 0,
  12564. presence_penalty: 0,
  12565. messages: [
  12566. {
  12567. role: "user",
  12568. content:
  12569.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12570. },
  12571. ],
  12572. uid: this.userid,
  12573. stream: false,
  12574. };
  12575. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12576. (res) => {
  12577. if (
  12578. res.data.FunctionResponse &&
  12579. res.data.FunctionResponse.result &&
  12580. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12581. ) {
  12582. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12583. return;
  12584. }
  12585. aiText =
  12586. res.data.FunctionResponse.choices[0].message.content;
  12587. aiText = aiText.replace(/%/g,"%25");
  12588. // let w = "";
  12589. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12590. // for(var k = 0;k<a.length;k++){
  12591. // //diffWordsWithSpace
  12592. // if(a.length > 1){
  12593. // if(a[k].added == true){
  12594. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12595. // }else if(a[k].removed == true){
  12596. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12597. // }else{
  12598. // w += '<span>' + a[k].value + '</span>';
  12599. // }
  12600. // }else{
  12601. // if(p == 1){
  12602. // w = this.newEnglishList.engText;
  12603. // }else if(p == 2){
  12604. // w = this.oldEnglishJson1.engText;
  12605. // }else if(p == 3){
  12606. // w = this.newEnglishList.engText;
  12607. // }else{
  12608. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12609. // }
  12610. // }
  12611. // }
  12612. if(p == 1){
  12613. this.newEnglishList.engText = aiText;
  12614. }else if(p == 2){
  12615. this.oldEnglishJson1.engText = aiText;
  12616. }else if(p == 3){
  12617. this.newEnglishList.engText = aiText;
  12618. }else{
  12619. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12620. }
  12621. loading.close();
  12622. },
  12623. (err) => {
  12624. console.log(err);
  12625. loading.close();
  12626. }
  12627. );
  12628. },
  12629. addToolChoose() {
  12630. if (!this.checktoolArray.length) {
  12631. this.$message.error("请选择要添加的任务");
  12632. return;
  12633. }
  12634. if (
  12635. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12636. this.taskCount
  12637. ].toolChoose[0].tool.length
  12638. ) {
  12639. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12640. this.taskCount
  12641. ].toolChoose[0].tool = this.checktoolArray;
  12642. } else {
  12643. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12644. this.taskCount
  12645. ].toolChoose.push({
  12646. tool: this.checktoolArray,
  12647. toolDetail: "",
  12648. toolType: 0,
  12649. askCount: 1,
  12650. askTitle: "",
  12651. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12652. });
  12653. }
  12654. let params = [
  12655. {
  12656. cid: this.id,
  12657. chapters: JSON.stringify(this.chapInfoList),
  12658. uid: this.userid,
  12659. unitIndex: this.courseType,
  12660. },
  12661. ];
  12662. this.ajax
  12663. .post(this.$store.state.api + "updateWorkNew4", params)
  12664. .then((res) => {
  12665. this.$message({
  12666. message: "添加成功",
  12667. type: "success",
  12668. });
  12669. this.checktoolArray = [];
  12670. this.getCourseDetail(2);
  12671. this.checkBz(
  12672. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12673. this.taskCount
  12674. ].toolChoose.length - 1
  12675. );
  12676. this.toolDialogVisible = false;
  12677. this.refreshCourse();
  12678. this.$forceUpdate();
  12679. })
  12680. .catch((err) => {
  12681. console.error(err);
  12682. });
  12683. },
  12684. checkBz(index) {
  12685. this.isUpdateToolDetail = false;
  12686. this.$forceUpdate();
  12687. setTimeout(() => {
  12688. document.scrollingElement.scrollTop =
  12689. document.querySelectorAll(".filebox")[index].offsetTop +
  12690. document.querySelector(".student_body").offsetTop;
  12691. }, 500);
  12692. },
  12693. updateToolDetail(i, type) {
  12694. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12695. this.toolDetailIndex = i
  12696. this.isUpdateToolDetail1 = true;
  12697. setTimeout(() => {
  12698. this.updateToolDetailInner = JSON.parse(
  12699. JSON.stringify(
  12700. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12701. this.taskCount
  12702. ].toolChoose[i].toolDetail
  12703. )
  12704. );
  12705. document.querySelector(".checkTextArea").focus();
  12706. }, 0);
  12707. } else if((this.isUpdateToolDetail1 && type != 2)){
  12708. // this.toolDetailIndex = i;
  12709. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12710. this.taskCount
  12711. ].toolChoose[i].toolDetail = JSON.parse(
  12712. JSON.stringify(this.updateToolDetailInner)
  12713. );
  12714. let params = [
  12715. {
  12716. cid: this.id,
  12717. chapters: JSON.stringify(this.chapInfoList),
  12718. uid: this.userid,
  12719. unitIndex: this.courseType,
  12720. },
  12721. ];
  12722. this.ajax
  12723. .post(this.$store.state.api + "updateWorkNew4", params)
  12724. .then((res) => {
  12725. this.isUpdateToolDetail1 = false;
  12726. this.$message({
  12727. message: "修改成功",
  12728. type: "success",
  12729. });
  12730. this.toolDetailIndex = null;
  12731. this.updateToolDetailInner = "";
  12732. this.getCourseDetail(2);
  12733. this.$forceUpdate();
  12734. })
  12735. .catch((err) => {
  12736. console.error(err);
  12737. });
  12738. } else if((this.isUpdateToolDetail1 && type == 2)){
  12739. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12740. this.taskCount
  12741. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12742. JSON.stringify(this.updateToolDetailInner)
  12743. );
  12744. let params = [
  12745. {
  12746. cid: this.id,
  12747. chapters: JSON.stringify(this.chapInfoList),
  12748. uid: this.userid,
  12749. unitIndex: this.courseType,
  12750. },
  12751. ];
  12752. this.ajax
  12753. .post(this.$store.state.api + "updateWorkNew4", params)
  12754. .then((res) => {
  12755. this.$message({
  12756. message: "修改成功",
  12757. type: "success",
  12758. });
  12759. this.toolDetailIndex = i;
  12760. this.isUpdateToolDetail1 = true;
  12761. setTimeout(() => {
  12762. this.updateToolDetailInner = JSON.parse(
  12763. JSON.stringify(
  12764. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12765. this.taskCount
  12766. ].toolChoose[i].toolDetail
  12767. )
  12768. );
  12769. document.querySelector(".checkTextArea").focus();
  12770. }, 0);
  12771. this.getCourseDetail(2);
  12772. this.$forceUpdate();
  12773. })
  12774. .catch((err) => {
  12775. console.error(err);
  12776. });
  12777. }
  12778. },
  12779. jumpGj(i, j, k, l) {
  12780. for (var z = 0; z < this.navList.length; z++) {
  12781. for (var q = 0; q < this.navList[z].task.length; q++) {
  12782. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12783. this.navList[z].task[q].tool[w].isTool = false;
  12784. }
  12785. }
  12786. }
  12787. this.navList[i].task[j].tool[k].isTool =
  12788. !this.navList[i].task[j].tool[k].isTool;
  12789. var a = document.scrollingElement;
  12790. this.navId = ""
  12791. let target = document.querySelector(`#gj${k}`);
  12792. if (target) {
  12793. target.scrollIntoView(true);
  12794. setTimeout(() => {
  12795. a.scrollTop = a.scrollTop - 150;
  12796. }, 0);
  12797. }
  12798. let flag = this.courseType == i;
  12799. let flag2 = this.taskCount == j
  12800. if (l) {
  12801. this.courseType = i;
  12802. // this.navId = l;
  12803. this.taskCount = j;
  12804. this.selectPz();
  12805. this.getHomeWork();
  12806. this.getCourseDetail(2);
  12807. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  12808. if(flag){
  12809. if(flag2){
  12810. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12811. }else{
  12812. 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>`)
  12813. }
  12814. }else{
  12815. 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>`)
  12816. }
  12817. }
  12818. // var b = this.$refs["bz" + k][0];
  12819. // a.scrollTop = b.offsetTop;
  12820. },
  12821. addTools2(i) {
  12822. if (i == 4) {
  12823. // this.openTools2(4);
  12824. this.$message.error("暂未开放");
  12825. return;
  12826. }
  12827. if (i == 45) {
  12828. // this.openTools2(45);
  12829. this.$message.error("暂未开放");
  12830. return;
  12831. }
  12832. if (i == 47) {
  12833. // this.openTools2(47);
  12834. this.$message.error("暂未开放");
  12835. return;
  12836. }
  12837. if (i == 49) {
  12838. // this.openTools2(49);
  12839. this.$message.error("暂未开放");
  12840. return;
  12841. }
  12842. if (i == 62) {
  12843. // this.openTools(itemTaskIndex, 62, toolIndex);
  12844. this.$message.error("暂未开放");
  12845. return;
  12846. }
  12847. if (i == 15) {
  12848. // this.openTools(itemTaskIndex, 15, toolIndex);
  12849. this.$message.error("暂未开放");
  12850. return;
  12851. }
  12852. if (i == 40) {
  12853. // this.openTools(itemTaskIndex, 40, toolIndex);
  12854. this.$message.error("暂未开放");
  12855. return;
  12856. }
  12857. if (i == 41) {
  12858. // this.openTools(itemTaskIndex, 41, toolIndex);
  12859. this.$message.error("暂未开放");
  12860. return;
  12861. }
  12862. if (i == 42) {
  12863. // this.openTools(itemTaskIndex, 42, toolIndex);
  12864. this.$message.error("暂未开放");
  12865. return;
  12866. }
  12867. if (this.checktoolArray.length > 0) {
  12868. if (this.checktoolArray.indexOf(i) != -1) {
  12869. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12870. } else {
  12871. this.checktoolArray = [];
  12872. this.checktoolArray.push(i);
  12873. }
  12874. } else {
  12875. this.checktoolArray.push(i);
  12876. }
  12877. this.$forceUpdate();
  12878. },
  12879. jump() {
  12880. window.parent.postMessage({ tools: "43" }, "*");
  12881. },
  12882. getUpdateMore(f, checkboxList, searchTN, index) {
  12883. this.dialogVisibleMember = f;
  12884. this.checkboxList = checkboxList;
  12885. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12886. this.plIndex = index;
  12887. },
  12888. setPlname(a) {
  12889. if (this.plworkFile.length) {
  12890. this.plworkFile[this.plIndex].username = a;
  12891. } else {
  12892. this.worksSName = a;
  12893. }
  12894. this.dialogVisibleMember = false;
  12895. },
  12896. previewImg(url,w=null) {
  12897. this.$hevueImgPreview(url);
  12898. if(w){
  12899. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  12900. }
  12901. },
  12902. checkImg(list) {
  12903. if (!list.length) {
  12904. return;
  12905. }
  12906. this.$hevueImgPreview({
  12907. multiple: true, // 开启多图预览模式
  12908. imgList: list, // 需要预览的多图数组
  12909. });
  12910. },
  12911. change(val) {
  12912. console.log(val);
  12913. },
  12914. goTo(path) {
  12915. this.$router.push(path);
  12916. },
  12917. handlePictureCardPreview(url) {
  12918. this.dialogImageUrl = url;
  12919. this.pictureDialog = true;
  12920. },
  12921. clean(type) {
  12922. if (type == 1) {
  12923. this.studyJuri[0].cover.splice(0, 1);
  12924. } else if (type == 2) {
  12925. this.studyJuri[0].upVedio.splice(0, 1);
  12926. } else {
  12927. this.studyJuri[0].upFile.splice(0, 1);
  12928. }
  12929. },
  12930. clean2(index) {
  12931. this.plworkFile.splice(index, 1);
  12932. },
  12933. handleClose(done) {
  12934. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12935. this.videoDetail.sources[0].src = "";
  12936. }
  12937. this.commentIndexJson = {};
  12938. done();
  12939. },
  12940. fullTools() {
  12941. this.full = !this.full;
  12942. },
  12943. imgChange(file, fileList, type) {
  12944. if (type == 1) {
  12945. var _tmp = this.studyJuri[0].cover;
  12946. } else if (type == 2) {
  12947. var _tmp = this.studyJuri[0].upVedio;
  12948. } else {
  12949. var _tmp = this.studyJuri[0].upFile;
  12950. }
  12951. this.noneBtnImg = _tmp.length >= 1;
  12952. },
  12953. setContent(bool) {
  12954. this.contentDialog = bool;
  12955. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12956. document.querySelector(".workd_media").style.height = "650px";
  12957. } else if (document.querySelector(".workd_media")) {
  12958. document.querySelector(".workd_media").style.height = "auto";
  12959. }
  12960. },
  12961. setContent2(bool) {
  12962. this.mlDialog = bool;
  12963. if (
  12964. bool &&
  12965. this.contentDialog &&
  12966. document.querySelector(".workd_media")
  12967. ) {
  12968. document.querySelector(".workd_media").style.height = "650px";
  12969. } else if (document.querySelector(".workd_media")) {
  12970. document.querySelector(".workd_media").style.height = "auto";
  12971. }
  12972. this.$forceUpdate();
  12973. },
  12974. openToolAll() {
  12975. this.toolDialogVisible = true;
  12976. },
  12977. addImg(e) {
  12978. var el = e.currentTarget;
  12979. // this.$message.success('触发上传')
  12980. el.getElementsByTagName("input")[0].click();
  12981. e.target.value = "";
  12982. },
  12983. addSelectAnswer() {
  12984. let params = [
  12985. {
  12986. uid: this.userid,
  12987. cid: this.id,
  12988. stage: this.courseType,
  12989. task: this.taskCount,
  12990. tool: this.toolindex,
  12991. content: this.selectAnswer.answer,
  12992. type: 7,
  12993. },
  12994. ];
  12995. this.ajax
  12996. .post(this.$store.state.api + "addCourseWorks", params)
  12997. .then((res) => {
  12998. this.$message({
  12999. message: "提交成功",
  13000. type: "success",
  13001. });
  13002. this.dialogVisibleSelect = false;
  13003. // this.selectAnswer = {};
  13004. this.selectSWorks();
  13005. this.selectStudent();
  13006. })
  13007. .catch((err) => {
  13008. this.$message.error("提交失败");
  13009. console.error(err);
  13010. });
  13011. },
  13012. addSelectAnswerTeacher() {
  13013. let params = [
  13014. {
  13015. uid: this.sStudent.userid,
  13016. cid: this.id,
  13017. stage: this.courseType,
  13018. task: this.taskCount,
  13019. tool: this.toolindex,
  13020. content: this.selectAnswer.answer,
  13021. type: 7,
  13022. },
  13023. ];
  13024. this.ajax
  13025. .post(this.$store.state.api + "addCourseWorks", params)
  13026. .then((res) => {
  13027. this.$message({
  13028. message: "提交成功",
  13029. type: "success",
  13030. });
  13031. this.dialogVisibleSelectTeacher = false;
  13032. // this.selectAnswer = {};
  13033. this.selectSWorks();
  13034. this.selectStudent();
  13035. })
  13036. .catch((err) => {
  13037. this.$message.error("提交失败");
  13038. console.error(err);
  13039. });
  13040. },
  13041. addSenWorks() {
  13042. for (var i = 0; i < this.sentenceList.length; i++) {
  13043. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13044. if (
  13045. this.sentenceList[i].chooseSenList[j] == undefined ||
  13046. this.sentenceList[i].chooseSenList[j] == ""
  13047. ) {
  13048. this.$message.error("请将答案填写完整!");
  13049. return;
  13050. }
  13051. }
  13052. }
  13053. let params = [
  13054. {
  13055. uid: this.userid,
  13056. cid: this.id,
  13057. stage: this.courseType,
  13058. task: this.taskCount,
  13059. tool: this.toolindex,
  13060. content: JSON.stringify(this.sentenceList),
  13061. type: 9,
  13062. },
  13063. ];
  13064. this.ajax
  13065. .post(this.$store.state.api + "addCourseWorks", params)
  13066. .then((res) => {
  13067. this.$message({
  13068. message: "提交成功",
  13069. type: "success",
  13070. });
  13071. this.dialogVisibleSentence = false;
  13072. // this.selectAnswer = {};
  13073. this.selectSWorks();
  13074. this.selectStudent();
  13075. })
  13076. .catch((err) => {
  13077. this.$message.error("提交失败");
  13078. console.error(err);
  13079. });
  13080. },
  13081. addSenWorksTeacher() {
  13082. for (var i = 0; i < this.sentenceList.length; i++) {
  13083. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13084. if (
  13085. this.sentenceList[i].chooseSenList[j] == undefined ||
  13086. this.sentenceList[i].chooseSenList[j] == ""
  13087. ) {
  13088. this.$message.error("请将答案填写完整!");
  13089. return;
  13090. }
  13091. }
  13092. }
  13093. let params = [
  13094. {
  13095. uid: this.sStudent.userid,
  13096. cid: this.id,
  13097. stage: this.courseType,
  13098. task: this.taskCount,
  13099. tool: this.toolindex,
  13100. content: JSON.stringify(this.sentenceList),
  13101. type: 9,
  13102. },
  13103. ];
  13104. this.ajax
  13105. .post(this.$store.state.api + "addCourseWorks", params)
  13106. .then((res) => {
  13107. this.$message({
  13108. message: "提交成功",
  13109. type: "success",
  13110. });
  13111. this.dialogVisibleSentenceTeacher = false;
  13112. // this.selectAnswer = {};
  13113. this.selectSWorks();
  13114. this.selectStudent();
  13115. })
  13116. .catch((err) => {
  13117. this.$message.error("提交失败");
  13118. console.error(err);
  13119. });
  13120. },
  13121. returnTableText() {
  13122. this.$confirm("确定还原此模板吗?", "提示", {
  13123. confirmButtonText: "确定",
  13124. cancelButtonText: "取消",
  13125. type: "warning",
  13126. })
  13127. .then(() => {
  13128. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13129. })
  13130. .catch(() => {});
  13131. },
  13132. addTableWorks() {
  13133. let params = [
  13134. {
  13135. uid: this.userid,
  13136. cid: this.id,
  13137. stage: this.courseType,
  13138. task: this.taskCount,
  13139. tool: this.toolindex,
  13140. content: JSON.stringify(this.tableJson),
  13141. type: 10,
  13142. },
  13143. ];
  13144. this.ajax
  13145. .post(this.$store.state.api + "addCourseWorks", params)
  13146. .then((res) => {
  13147. this.$message({
  13148. message: "提交成功",
  13149. type: "success",
  13150. });
  13151. this.dialogVisibleTable = false;
  13152. // this.selectAnswer = {};
  13153. this.selectSWorks();
  13154. this.selectStudent();
  13155. })
  13156. .catch((err) => {
  13157. this.$message.error("提交失败");
  13158. console.error(err);
  13159. });
  13160. },
  13161. tableRowClassName({ row, rowIndex }) {
  13162. if ((rowIndex + 1) % 2 === 0) {
  13163. return "even_row";
  13164. } else {
  13165. return "";
  13166. }
  13167. },
  13168. addTableWorksTeacher() {
  13169. let params = [
  13170. {
  13171. uid: this.sStudent.userid,
  13172. cid: this.id,
  13173. stage: this.courseType,
  13174. task: this.taskCount,
  13175. tool: this.toolindex,
  13176. content: JSON.stringify(this.tableJson),
  13177. type: 10,
  13178. },
  13179. ];
  13180. this.ajax
  13181. .post(this.$store.state.api + "addCourseWorks", params)
  13182. .then((res) => {
  13183. this.$message({
  13184. message: "提交成功",
  13185. type: "success",
  13186. });
  13187. this.dialogVisibleTableTeacher = false;
  13188. // this.selectAnswer = {};
  13189. this.selectSWorks();
  13190. this.selectStudent();
  13191. })
  13192. .catch((err) => {
  13193. this.$message.error("提交失败");
  13194. console.error(err);
  13195. });
  13196. },
  13197. returnWordText() {
  13198. this.$confirm("确定还原此模板吗?", "提示", {
  13199. confirmButtonText: "确定",
  13200. cancelButtonText: "取消",
  13201. type: "warning",
  13202. })
  13203. .then(() => {
  13204. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13205. })
  13206. .catch(() => {});
  13207. },
  13208. addWordWorks() {
  13209. let params = [
  13210. {
  13211. uid: this.userid,
  13212. cid: this.id,
  13213. stage: this.courseType,
  13214. task: this.taskCount,
  13215. tool: this.toolindex,
  13216. content: JSON.stringify(this.wordJson),
  13217. type: 13,
  13218. atool: 52,
  13219. },
  13220. ];
  13221. this.ajax
  13222. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13223. .then((res) => {
  13224. this.$message({
  13225. message: "提交成功",
  13226. type: "success",
  13227. });
  13228. this.dialogVisibleWord = false;
  13229. // this.selectAnswer = {};
  13230. this.selectSWorks();
  13231. this.selectStudent();
  13232. })
  13233. .catch((err) => {
  13234. this.$message.error("提交失败");
  13235. console.error(err);
  13236. });
  13237. },
  13238. addWordWorksTeacher() {
  13239. let params = [
  13240. {
  13241. uid: this.sStudent.userid,
  13242. cid: this.id,
  13243. stage: this.courseType,
  13244. task: this.taskCount,
  13245. tool: this.toolindex,
  13246. content: JSON.stringify(this.wordJson),
  13247. type: 13,
  13248. atool: 52,
  13249. },
  13250. ];
  13251. this.ajax
  13252. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13253. .then((res) => {
  13254. this.$message({
  13255. message: "提交成功",
  13256. type: "success",
  13257. });
  13258. this.dialogVisibleWordTeacher = false;
  13259. // this.selectAnswer = {};
  13260. this.selectSWorks();
  13261. this.selectStudent();
  13262. })
  13263. .catch((err) => {
  13264. this.$message.error("提交失败");
  13265. console.error(err);
  13266. });
  13267. },
  13268. addCourseWorks(i) {
  13269. var typesql;
  13270. if (this.fileType === 0) {
  13271. typesql = 1;
  13272. } else if (this.fileType === 1) {
  13273. typesql = 4;
  13274. } else if (this.fileType === 2) {
  13275. typesql = 5;
  13276. } else if (this.fileType === 3) {
  13277. typesql = 12;
  13278. }
  13279. if (!this.studyJuri[0].cover[0].url) {
  13280. this.$message.error("请上传文件");
  13281. return;
  13282. }
  13283. let params = [
  13284. {
  13285. uid: this.userid,
  13286. cid: this.id,
  13287. stage: this.courseType,
  13288. task: i,
  13289. tool: this.toolindex,
  13290. content: this.studyJuri[0].cover[0].url,
  13291. type: typesql,
  13292. },
  13293. ];
  13294. this.ajax
  13295. .post(this.$store.state.api + "addCourseWorksR", params)
  13296. .then((res) => {
  13297. this.$message({
  13298. message: "提交成功",
  13299. type: "success",
  13300. });
  13301. this.studyJuri[0].cover = [];
  13302. this.dialogVisible = false;
  13303. this.getCourseDetail(2);
  13304. })
  13305. .catch((err) => {
  13306. this.$message.error("提交失败");
  13307. console.error(err);
  13308. });
  13309. },
  13310. addCourseWorksPl(i) {
  13311. let _files = this.plworkFile;
  13312. var c = 1;
  13313. for (var k = 0; k < _files.length; k++) {
  13314. if (!_files[k].username) {
  13315. c = 2;
  13316. }
  13317. }
  13318. if (c == 2) {
  13319. this.$message.error("请填写学生姓名");
  13320. return;
  13321. }
  13322. let params = [
  13323. {
  13324. ateacher: this.userid,
  13325. cid: this.id,
  13326. stage: this.courseType,
  13327. task: i,
  13328. tool: this.toolindex,
  13329. content: JSON.stringify(_files),
  13330. },
  13331. ];
  13332. this.ajax
  13333. .post(this.$store.state.api + "addCourseWorksPl", params)
  13334. .then((res) => {
  13335. this.$message({
  13336. message: "提交成功",
  13337. type: "success",
  13338. });
  13339. this.plworkFile = [];
  13340. this.dialogVisiblePl = false;
  13341. this.getCourseDetail(2);
  13342. })
  13343. .catch((err) => {
  13344. this.$message.error("提交失败");
  13345. console.error(err);
  13346. });
  13347. },
  13348. addCourseWorks2(i) {
  13349. var typesql;
  13350. if (this.fileType === 0) {
  13351. typesql = 0;
  13352. } else if (this.fileType === 1) {
  13353. typesql = 1;
  13354. } else if (this.fileType === 2) {
  13355. typesql = 3;
  13356. } else if (this.fileType === 3) {
  13357. typesql = 12;
  13358. }
  13359. if (!this.studyJuri[0].cover[0].url) {
  13360. this.$message.error("请上传文件");
  13361. return;
  13362. }
  13363. let params = [
  13364. {
  13365. uid: this.userid,
  13366. cid: this.id,
  13367. stage: this.courseType,
  13368. task: i,
  13369. tool: this.toolindex,
  13370. content: JSON.stringify({
  13371. type: typesql,
  13372. groupIndex: this.groupIndex,
  13373. url: this.studyJuri[0].cover[0].url,
  13374. }),
  13375. type: 11,
  13376. atool: 49,
  13377. text: "",
  13378. },
  13379. ];
  13380. this.ajax
  13381. .post(this.$store.state.api + "addCourseWorks5", params)
  13382. .then((res) => {
  13383. this.$message({
  13384. message: "提交成功",
  13385. type: "success",
  13386. });
  13387. this.studyJuri[0].cover = [];
  13388. this.dialogVisibleGroupWork = false;
  13389. this.getCourseDetail(2);
  13390. })
  13391. .catch((err) => {
  13392. this.$message.error("提交失败");
  13393. console.error(err);
  13394. });
  13395. },
  13396. addEnglishWork() {
  13397. this.myAnList = this.$refs['engJson'].myAnswerList;
  13398. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13399. this.$message.error("请输入作文标题和正文!");
  13400. return;
  13401. }
  13402. let params = [
  13403. {
  13404. uid: this.userid,
  13405. cid: this.id,
  13406. stage: this.courseType,
  13407. task: this.taskCount,
  13408. tool: this.englishToolIndex,
  13409. content: JSON.stringify(this.myAnList),
  13410. type: 16,
  13411. atool: 69,
  13412. text: "",
  13413. },
  13414. ];
  13415. this.ajax
  13416. .post(this.$store.state.api + "addCourseWorks5", params)
  13417. .then((res) => {
  13418. this.$message({
  13419. message: "提交成功",
  13420. type: "success",
  13421. });
  13422. this.myAnList = {};
  13423. this.englishList = {};
  13424. this.englishToolIndex = 0;
  13425. this.engDialogVisible = false;
  13426. this.selectSWorks();
  13427. this.selectStudent();
  13428. })
  13429. .catch((err) => {
  13430. this.$message.error("提交失败");
  13431. console.error(err);
  13432. });
  13433. },
  13434. addCourseWorksGong(i, data, tool) {
  13435. let params = [
  13436. {
  13437. uid: this.userid,
  13438. cid: this.id,
  13439. stage: this.courseType,
  13440. task: this.taskCount,
  13441. tool: i,
  13442. content: data,
  13443. type: 12,
  13444. atool: tool,
  13445. text: "",
  13446. },
  13447. ];
  13448. this.ajax
  13449. .post(this.$store.state.api + "addCourseWorks5", params)
  13450. .then((res) => {
  13451. this.$message({
  13452. message: "提交成功",
  13453. type: "success",
  13454. });
  13455. this.studyJuri[0].cover = [];
  13456. this.selectSWorks();
  13457. this.selectStudent();
  13458. })
  13459. .catch((err) => {
  13460. this.$message.error("提交失败");
  13461. console.error(err);
  13462. });
  13463. },
  13464. addCourseWorksGongTeacher(i, data, tool) {
  13465. let params = [
  13466. {
  13467. uid: this.sStudent.userid,
  13468. cid: this.id,
  13469. stage: this.courseType,
  13470. task: this.taskCount,
  13471. tool: i,
  13472. content: data,
  13473. type: 12,
  13474. atool: tool,
  13475. text: "",
  13476. },
  13477. ];
  13478. this.ajax
  13479. .post(this.$store.state.api + "addCourseWorks5", params)
  13480. .then((res) => {
  13481. this.$message({
  13482. message: "提交成功",
  13483. type: "success",
  13484. });
  13485. this.studyJuri[0].cover = [];
  13486. this.dialogVisibleWorks = false;
  13487. this.selectSWorks();
  13488. this.selectStudent();
  13489. })
  13490. .catch((err) => {
  13491. this.$message.error("提交失败");
  13492. console.error(err);
  13493. });
  13494. },
  13495. addCourseWorksGongPl(i, data, tool, type) {
  13496. let params = [
  13497. {
  13498. uid: this.sStudent.userid,
  13499. cid: this.id,
  13500. stage: this.courseType,
  13501. task: this.taskCount,
  13502. tool: i,
  13503. content: data,
  13504. type: type,
  13505. atool: tool,
  13506. text: "",
  13507. },
  13508. ];
  13509. this.ajax
  13510. .post(this.$store.state.api + "addCourseWorks5", params)
  13511. .then((res) => {
  13512. this.$message({
  13513. message: "提交成功",
  13514. type: "success",
  13515. });
  13516. this.studyJuri[0].cover = [];
  13517. this.dialogVisibleWorks = false;
  13518. this.selectSWorks();
  13519. this.selectStudent();
  13520. })
  13521. .catch((err) => {
  13522. this.$message.error("提交失败");
  13523. console.error(err);
  13524. });
  13525. },
  13526. addCourseWorksTeacher(i) {
  13527. var typesql;
  13528. if (this.sTool == 32) {
  13529. this.addCourseWorksGongTeacher(
  13530. this.toolindex,
  13531. this.studyJuri[0].cover[0].url,
  13532. this.sTool
  13533. );
  13534. return;
  13535. }
  13536. if (this.fileType === 0) {
  13537. typesql = 1;
  13538. } else if (this.fileType === 1) {
  13539. typesql = 4;
  13540. } else if (this.fileType === 2) {
  13541. typesql = 5;
  13542. } else if (this.fileType === 3) {
  13543. typesql = 12;
  13544. }
  13545. if (this.sTool == 50) {
  13546. this.addCourseWorksGongPl(
  13547. this.toolindex,
  13548. this.studyJuri[0].cover[0].url,
  13549. this.sTool,
  13550. typesql
  13551. );
  13552. return;
  13553. }
  13554. if (!this.studyJuri[0].cover[0].url) {
  13555. this.$message.error("请上传文件");
  13556. return;
  13557. }
  13558. let params = [
  13559. {
  13560. uid: this.sStudent.userid,
  13561. cid: this.id,
  13562. stage: this.courseType,
  13563. task: i,
  13564. tool: this.toolindex,
  13565. content: this.studyJuri[0].cover[0].url,
  13566. type: typesql,
  13567. ateacher: this.userid,
  13568. },
  13569. ];
  13570. this.ajax
  13571. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13572. .then((res) => {
  13573. this.$message({
  13574. message: "提交成功",
  13575. type: "success",
  13576. });
  13577. this.studyJuri[0].cover = [];
  13578. this.dialogVisibleWorks = false;
  13579. this.getCourseDetail(2);
  13580. })
  13581. .catch((err) => {
  13582. this.$message.error("提交失败");
  13583. console.error(err);
  13584. });
  13585. },
  13586. selectUploadStudent(type) {
  13587. const loading = this.$loading.service({
  13588. background: "rgba(255, 255, 255, 0.7)",
  13589. target: document.body,
  13590. });
  13591. let params = {
  13592. cid: this.uploadCid,
  13593. oid: this.oid,
  13594. cn: "",
  13595. };
  13596. this.ajax
  13597. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13598. .then((res) => {
  13599. loading.close();
  13600. var studentK = [];
  13601. if (this.isWorksS[this.toolindex].length > 0) {
  13602. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13603. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13604. }
  13605. studentK = studentK.join(",");
  13606. }
  13607. this.uploadStudentJuri = res.data[0].filter((el) => {
  13608. return studentK.indexOf(el.userid) == -1;
  13609. });
  13610. if (this.worksSName && this.worksSid) {
  13611. this.uploadStudentJuri.push({
  13612. userid: this.worksSid,
  13613. name: this.worksSName,
  13614. });
  13615. }
  13616. if (type == 1) {
  13617. this.plworkFile = [];
  13618. this.dialogVisibleSname = true;
  13619. } else if (type == 2) {
  13620. this.dialogVisiblePl = true;
  13621. }
  13622. })
  13623. .catch((err) => {
  13624. loading.close();
  13625. console.error(err);
  13626. });
  13627. },
  13628. selectPickStudent() {
  13629. const loading = this.$loading.service({
  13630. background: "rgba(255, 255, 255, 0.7)",
  13631. target: document.body,
  13632. });
  13633. let params = {
  13634. cid: this.uploadCid,
  13635. oid: this.oid,
  13636. cn: "",
  13637. };
  13638. this.ajax
  13639. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13640. .then((res) => {
  13641. loading.close();
  13642. this.uploadStudentJuri = res.data[0];
  13643. this.dialogVisiblePickPeople = true;
  13644. })
  13645. .catch((err) => {
  13646. loading.close();
  13647. console.error(err);
  13648. });
  13649. },
  13650. arrayToArray(arrayo, arrayt) {
  13651. let array1 = arrayo;
  13652. let array2 = arrayt;
  13653. let commonElements = [];
  13654. for (let i = 0; i < array1.length; i++) {
  13655. for (let j = 0; j < array2.length; j++) {
  13656. if (array1[i] === array2[j]) {
  13657. commonElements.push(array1[i]);
  13658. }
  13659. }
  13660. }
  13661. return commonElements;
  13662. },
  13663. selectWorksStudent() {
  13664. let params = {
  13665. oid: this.oid,
  13666. cid: this.courseDetail.juri,
  13667. };
  13668. this.ajax
  13669. .get(this.$store.state.api + "selectWorksStudent", params)
  13670. .then((res) => {
  13671. var a = res.data[0];
  13672. for (var i = 0; i < this.isWorksS.length; i++) {
  13673. this.noWorksS[i] = [];
  13674. var studentK = [];
  13675. if (this.isWorksS[i].length > 0) {
  13676. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13677. studentK.push(this.isWorksS[i][z].uid);
  13678. }
  13679. studentK = studentK.join(",");
  13680. for (var j = 0; j < a.length; j++) {
  13681. if (studentK.indexOf(a[j].userid) == -1) {
  13682. if (this.tcid) {
  13683. // a[j].classid.indexOf(this.tcid) != -1
  13684. if (
  13685. this.arrayToArray(
  13686. a[j].classid.split(","),
  13687. this.tcid.split(",")
  13688. ).length
  13689. ) {
  13690. this.noWorksS[i].push({
  13691. student: a[j].name,
  13692. userid: a[j].userid,
  13693. });
  13694. }
  13695. } else {
  13696. this.noWorksS[i].push({
  13697. student: a[j].name,
  13698. userid: a[j].userid,
  13699. });
  13700. }
  13701. }
  13702. }
  13703. } else {
  13704. for (var k = 0; k < a.length; k++) {
  13705. if (this.tcid) {
  13706. if (
  13707. this.arrayToArray(
  13708. a[k].classid.split(","),
  13709. this.tcid.split(",")
  13710. ).length
  13711. ) {
  13712. this.noWorksS[i].push({
  13713. student: a[k].name,
  13714. userid: a[k].userid,
  13715. });
  13716. }
  13717. } else {
  13718. this.noWorksS[i].push({
  13719. student: a[k].name,
  13720. userid: a[k].userid,
  13721. });
  13722. }
  13723. }
  13724. }
  13725. }
  13726. this.$forceUpdate();
  13727. if (
  13728. Object.keys(this.commentDetail).length &&
  13729. Object.keys(this.commentIndexJson).length &&
  13730. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13731. ) {
  13732. let a = 1;
  13733. let c = this.commentIndexJson;
  13734. if (
  13735. this.commentIndexJson.gindex ||
  13736. this.commentIndexJson.gindex === 0
  13737. ) {
  13738. for (
  13739. var i = 0;
  13740. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13741. i++
  13742. ) {
  13743. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13744. groupA: for (var k = 0; k < _el.length; k++) {
  13745. let el = _el[k];
  13746. if (el.wid == this.commentDetail.wid) {
  13747. a = 2;
  13748. this.commentOther(
  13749. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13750. this.commentIndexJson.toolIndex,
  13751. k,
  13752. this.commentIndexJson.gindex
  13753. );
  13754. break groupA;
  13755. }
  13756. }
  13757. }
  13758. if (a === 1) {
  13759. this.commentDetail = [];
  13760. this.commentIndexJson = {};
  13761. this.commentDialogVisible = false;
  13762. this.$message("此作业已被删除");
  13763. }
  13764. } else {
  13765. if (this.isGroup && this.commentIndexJson.gid) {
  13766. groupA: for (
  13767. var i = 0;
  13768. i < this.courseGroup.group.length;
  13769. i++
  13770. ) {
  13771. let _group = this.courseGroup.group[i];
  13772. if (_group.id == this.commentIndexJson.gid) {
  13773. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13774. for (var k = 0; k < _el2.length; k++) {
  13775. let el2 = _el2[k];
  13776. if (el2.wid == this.commentDetail.wid) {
  13777. a = 2;
  13778. this.commentOther(
  13779. _el2[k],
  13780. this.commentIndexJson.toolIndex,
  13781. k,
  13782. null,
  13783. this.commentIndexJson.gid
  13784. );
  13785. break groupA;
  13786. }
  13787. }
  13788. }
  13789. }
  13790. }
  13791. if (a == 1) {
  13792. for (
  13793. var i = 0;
  13794. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13795. i++
  13796. ) {
  13797. let el =
  13798. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13799. if (el.wid == this.commentDetail.wid) {
  13800. a = 2;
  13801. this.commentOther(
  13802. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13803. this.commentIndexJson.toolIndex,
  13804. i
  13805. );
  13806. break;
  13807. }
  13808. }
  13809. }
  13810. if (a === 1) {
  13811. this.commentDetail = [];
  13812. this.commentIndexJson = {};
  13813. this.commentDialogVisible = false;
  13814. this.$message("此作业已被删除");
  13815. }
  13816. }
  13817. }
  13818. })
  13819. .catch((err) => {
  13820. console.error(err);
  13821. });
  13822. },
  13823. selectStudent() {
  13824. //学生查看自己作业
  13825. let params = {
  13826. uid: this.userid,
  13827. cid: this.id,
  13828. s: this.courseType,
  13829. t: this.taskCount,
  13830. };
  13831. this.ajax
  13832. .get(this.$store.state.api + "selectStudentWorks", params)
  13833. .then((res) => {
  13834. var a =
  13835. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13836. this.taskCount
  13837. ].toolChoose;
  13838. var b = res.data[0];
  13839. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13840. var y = [
  13841. "AVI",
  13842. "NAVI",
  13843. "MPEG",
  13844. "ASF",
  13845. "MOV",
  13846. "WMV",
  13847. "3GP",
  13848. "RM",
  13849. "RMVB",
  13850. "FLV",
  13851. "F4V",
  13852. "H.264",
  13853. "H.265",
  13854. "REAL VIDEO",
  13855. "MKV",
  13856. "WebM",
  13857. "HDDVD",
  13858. "MP4",
  13859. "MPG",
  13860. "M4V",
  13861. "MGV",
  13862. "OGV",
  13863. "QTM",
  13864. "STR",
  13865. "AMC",
  13866. "DVX",
  13867. "EVO",
  13868. "DAT",
  13869. "OGG",
  13870. "OGM",
  13871. ];
  13872. for (var i = 0; i < a.length; i++) {
  13873. this.workStudent[i] = [];
  13874. for (var j = 0; j < b.length; j++) {
  13875. if (i == b[j].tool) {
  13876. if (
  13877. (b[j].type == 1 ||
  13878. b[j].type == 4 ||
  13879. b[j].type == 5 ||
  13880. b[j].type == 6 ||
  13881. b[j].type == 12 ||
  13882. b[j].type == 7) &&
  13883. a[i].tool[0] != 15 &&
  13884. a[i].tool[0] != 4 &&
  13885. a[i].tool[0] != 45 &&
  13886. a[i].tool[0] != 50 &&
  13887. a[i].tool[0] != 32 &&
  13888. a[i].tool[0] != 57 &&
  13889. a[i].tool[0] != 52 &&
  13890. a[i].tool[0] != 69
  13891. ) {
  13892. if (
  13893. c.indexOf(
  13894. b[j].content
  13895. .split(".")
  13896. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13897. ) != -1 &&
  13898. a[i].tool[0] == 16 &&
  13899. b[j].atool != 50
  13900. ) {
  13901. this.workStudent[i].push({
  13902. works: b[j].content,
  13903. sName: b[j].name,
  13904. score: b[j].score,
  13905. img: b[j].img,
  13906. type: 1,
  13907. time: b[j].time,
  13908. userid: b[j].userid,
  13909. wid: b[j].id,
  13910. });
  13911. } else if (
  13912. y.indexOf(
  13913. b[j].content
  13914. .split(".")
  13915. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13916. ) != -1 &&
  13917. a[i].tool[0] == 16 &&
  13918. b[j].atool != 50
  13919. ) {
  13920. this.workStudent[i].push({
  13921. userid: b[j].userid,
  13922. wid: b[j].id,
  13923. works: b[j].content,
  13924. sName: b[j].name,
  13925. score: b[j].score,
  13926. img: b[j].img,
  13927. type: 3,
  13928. time: b[j].time,
  13929. });
  13930. } else if (b[j].type == 6 && b[j].atool != 50) {
  13931. this.workStudent[i].push({
  13932. userid: b[j].userid,
  13933. wid: b[j].id,
  13934. works: b[j].content,
  13935. sName: b[j].name,
  13936. score: b[j].score,
  13937. img: b[j].img,
  13938. type: 4,
  13939. time: b[j].time,
  13940. });
  13941. } else if (b[j].type == 7 && b[j].atool != 50) {
  13942. this.workStudent[i].push({
  13943. userid: b[j].userid,
  13944. wid: b[j].id,
  13945. works: b[j].content,
  13946. sName: b[j].name,
  13947. score: b[j].score,
  13948. img: b[j].img,
  13949. type: 5,
  13950. time: b[j].time,
  13951. });
  13952. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13953. this.workStudent[i].push({
  13954. works: b[j].content,
  13955. sName: b[j].name,
  13956. score: b[j].score,
  13957. img: b[j].img,
  13958. type: 12,
  13959. time: b[j].time,
  13960. userid: b[j].userid,
  13961. wid: b[j].id,
  13962. });
  13963. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13964. this.workStudent[i].push({
  13965. works: b[j].content,
  13966. sName: b[j].name,
  13967. score: b[j].score,
  13968. img: b[j].img,
  13969. type: 0,
  13970. time: b[j].time,
  13971. userid: b[j].userid,
  13972. wid: b[j].id,
  13973. });
  13974. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13975. this.workStudent[i].push({
  13976. works: b[j].content,
  13977. sName: b[j].name,
  13978. score: b[j].score,
  13979. img: b[j].img,
  13980. type: 0,
  13981. time: b[j].time,
  13982. userid: b[j].userid,
  13983. wid: b[j].id,
  13984. });
  13985. }
  13986. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13987. this.workStudent[i].push({
  13988. works: b[j].content,
  13989. sName: b[j].name,
  13990. score: b[j].score,
  13991. img: b[j].img,
  13992. type: 2,
  13993. time: b[j].time,
  13994. userid: b[j].userid,
  13995. wid: b[j].id,
  13996. });
  13997. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13998. //问卷
  13999. this.workStudent[i].push({
  14000. works: b[j].content,
  14001. sName: b[j].name,
  14002. score: b[j].score,
  14003. img: b[j].img,
  14004. type: 2,
  14005. time: b[j].time,
  14006. userid: b[j].userid,
  14007. wid: b[j].id,
  14008. });
  14009. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14010. //选择题
  14011. this.workStudent[i].push({
  14012. works: b[j].content,
  14013. sName: b[j].name,
  14014. score: b[j].score,
  14015. img: b[j].img,
  14016. type: 8,
  14017. time: b[j].time,
  14018. userid: b[j].userid,
  14019. wid: b[j].id,
  14020. });
  14021. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14022. //选择题
  14023. this.workStudent[i].push({
  14024. works: b[j].content,
  14025. sName: b[j].name,
  14026. score: b[j].score,
  14027. img: b[j].img,
  14028. type: 9,
  14029. time: b[j].time,
  14030. userid: b[j].userid,
  14031. wid: b[j].id,
  14032. });
  14033. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14034. //选择题
  14035. this.workStudent[i].push({
  14036. works: b[j].content,
  14037. sName: b[j].name,
  14038. score: b[j].score,
  14039. img: b[j].img,
  14040. type: 10,
  14041. time: b[j].time,
  14042. userid: b[j].userid,
  14043. wid: b[j].id,
  14044. });
  14045. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14046. //选择题
  14047. this.workStudent[i].push({
  14048. works: b[j].content,
  14049. sName: b[j].name,
  14050. score: b[j].score,
  14051. img: b[j].img,
  14052. type: 13,
  14053. time: b[j].time,
  14054. userid: b[j].userid,
  14055. wid: b[j].id,
  14056. });
  14057. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14058. //选择题
  14059. this.workStudent[i].push({
  14060. works: b[j].content,
  14061. sName: b[j].name,
  14062. score: b[j].score,
  14063. img: b[j].img,
  14064. type: 12,
  14065. time: b[j].time,
  14066. userid: b[j].userid,
  14067. wid: b[j].id,
  14068. });
  14069. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14070. //选择题
  14071. this.workStudent[i].push({
  14072. works: b[j].content,
  14073. sName: b[j].name,
  14074. score: b[j].score,
  14075. img: b[j].img,
  14076. type: 12,
  14077. time: b[j].time,
  14078. userid: b[j].userid,
  14079. wid: b[j].id,
  14080. });
  14081. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14082. //选择题
  14083. this.workStudent[i].push({
  14084. works: b[j].content,
  14085. sName: b[j].name,
  14086. score: b[j].score,
  14087. img: b[j].img,
  14088. type: 15,
  14089. time: b[j].time,
  14090. userid: b[j].userid,
  14091. wid: b[j].id,
  14092. });
  14093. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14094. //英语写作
  14095. this.workStudent[i].push({
  14096. works: b[j].content,
  14097. sName: b[j].name,
  14098. score: b[j].score,
  14099. img: b[j].img,
  14100. type: 16,
  14101. time: b[j].time,
  14102. userid: b[j].userid,
  14103. wid: b[j].id,
  14104. aiCode: b[j].aiCode,
  14105. teacherCode: b[j].teacherCode
  14106. });
  14107. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14108. //英语口语
  14109. this.workStudent[i].push({
  14110. works: b[j].content,
  14111. sName: b[j].name,
  14112. score: b[j].score,
  14113. img: b[j].img,
  14114. type: 17,
  14115. time: b[j].time,
  14116. userid: b[j].userid,
  14117. wid: b[j].id,
  14118. });
  14119. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14120. //英语口语
  14121. this.workStudent[i].push({
  14122. works: b[j].content,
  14123. sName: b[j].name,
  14124. score: b[j].score,
  14125. img: b[j].img,
  14126. type: 14,
  14127. time: b[j].time,
  14128. userid: b[j].userid,
  14129. wid: b[j].id,
  14130. });
  14131. }
  14132. }
  14133. }
  14134. }
  14135. })
  14136. .catch((err) => {
  14137. console.error(err);
  14138. });
  14139. },
  14140. openVideo(w) {
  14141. this.videoDetail = {};
  14142. this.playerOptions1.sources[0].src = w.works;
  14143. this.videoDetail = this.playerOptions1;
  14144. this.videoVisible = true;
  14145. },
  14146. isLikes(wid, uid, t, c, isLikes,sName) {
  14147. if (isLikes == false) {
  14148. let params = [
  14149. {
  14150. wid: wid,
  14151. lid: uid,
  14152. t: t,
  14153. c: c,
  14154. },
  14155. ];
  14156. this.ajax
  14157. .post(this.$store.state.api + "insertComment", params)
  14158. .then((res) => {
  14159. this.$message({
  14160. message: "点赞成功",
  14161. type: "success",
  14162. });
  14163. this.selectSWorks();
  14164. this.selectStudent();
  14165. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14166. })
  14167. .catch((err) => {
  14168. this.$message.error("点赞失败");
  14169. console.error(err);
  14170. });
  14171. } else {
  14172. let params = {
  14173. wid: wid,
  14174. lid: uid,
  14175. type: t,
  14176. };
  14177. this.ajax
  14178. .get(this.$store.state.api + "deleteComment", params)
  14179. .then((res) => {
  14180. this.$message({
  14181. message: "取消点赞成功",
  14182. type: "success",
  14183. });
  14184. this.selectSWorks();
  14185. this.selectStudent();
  14186. })
  14187. .catch((err) => {
  14188. console.error(err);
  14189. });
  14190. }
  14191. },
  14192. deleteComment(wid) {
  14193. this.$confirm("确定删除此评论吗?", "提示", {
  14194. confirmButtonText: "确定",
  14195. cancelButtonText: "取消",
  14196. type: "warning",
  14197. })
  14198. .then(() => {
  14199. let params = {
  14200. id: wid,
  14201. };
  14202. this.ajax
  14203. .get(this.$store.state.api + "deleteComment2", 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. .catch(() => {});
  14217. },
  14218. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14219. this.commentIndexJson = {
  14220. toolIndex: toolIndex,
  14221. wIndex: wIndex,
  14222. gindex: gindex,
  14223. gid: gid,
  14224. };
  14225. this.commentDetail = [];
  14226. this.commentDialogVisible = true;
  14227. this.commentDetail = w;
  14228. if (w.works && w.type == 1) {
  14229. // this.pptImgUrl = "";
  14230. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14231. if (
  14232. a.indexOf(
  14233. w.works
  14234. .split(".")
  14235. [w.works.split(".").length - 1].toLocaleUpperCase()
  14236. ) != -1
  14237. ) {
  14238. let _uuurl = await this.checkLink(w.works);
  14239. this.pptImgUrl =
  14240. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14241. this.showPDF = false;
  14242. } else if (
  14243. w.works
  14244. .split(".")
  14245. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14246. ) {
  14247. this.pptImgUrl = w.works;
  14248. this.showPDF = true;
  14249. }
  14250. } else if (w.works && w.type == 3) {
  14251. this.videoDetail = {};
  14252. this.playerOptions1.sources[0].src = w.works;
  14253. this.videoDetail = this.playerOptions1;
  14254. // this.videoVisible = true;
  14255. } else if (w.works && w.type == 4) {
  14256. this.eScore = JSON.parse(w.works);
  14257. this.rateJson =
  14258. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14259. this.taskCount
  14260. ].toolChoose[toolIndex].rateJson;
  14261. } else if (w.works && w.type == 10) {
  14262. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14263. } else if (w.works && w.type == 13) {
  14264. this.wordJson =
  14265. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14266. this.taskCount
  14267. ].toolChoose[toolIndex].wordJson;
  14268. }
  14269. },
  14270. async openScore(w, index) {
  14271. this.wScore = 0;
  14272. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14273. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14274. this.commentDetail = [];
  14275. if(w.type == 17){
  14276. this.dialogVisibleENScore = true;
  14277. }else{
  14278. this.dialogVisibleScore = true;
  14279. }
  14280. this.commentDetail = w;
  14281. if (w.works && w.type == 1) {
  14282. this.pptImgUrl = "";
  14283. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14284. if (
  14285. a.indexOf(
  14286. w.works
  14287. .split(".")
  14288. [w.works.split(".").length - 1].toLocaleUpperCase()
  14289. ) != -1
  14290. ) {
  14291. let _uuurl = await this.checkLink(w.works);
  14292. this.pptImgUrl =
  14293. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14294. this.showPDF = false;
  14295. } else if (
  14296. w.works
  14297. .split(".")
  14298. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14299. ) {
  14300. this.pptImgUrl = w.works;
  14301. this.showPDF = true;
  14302. }
  14303. } else if (w.works && w.type == 3) {
  14304. this.videoDetail = {};
  14305. this.playerOptions1.sources[0].src = w.works;
  14306. this.videoDetail = this.playerOptions1;
  14307. }else if(w.type == 17){
  14308. let englishVoiceJson = {}
  14309. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14310. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14311. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14312. .toolChoose[index].englishVoiceJson
  14313. : {};
  14314. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14315. }
  14316. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14317. },
  14318. addComment(wid, uid, t,detail) {
  14319. if (this.commentText == "") {
  14320. this.$message.error("请输入评论");
  14321. return;
  14322. }
  14323. let params2 = [
  14324. {
  14325. wid: wid,
  14326. lid: uid,
  14327. t: t,
  14328. },
  14329. ];
  14330. this.ajax
  14331. .post(this.$store.state.api + "getComment", params2)
  14332. .then((res) => {
  14333. if (res.data[0].length > 0) {
  14334. this.$message.error("一个作业只能评论一条");
  14335. } else {
  14336. let params = [
  14337. {
  14338. wid: wid,
  14339. lid: uid,
  14340. t: t,
  14341. c: this.commentText,
  14342. },
  14343. ];
  14344. this.ajax
  14345. .post(this.$store.state.api + "insertComment", params)
  14346. .then((res) => {
  14347. this.$message({
  14348. message: "评论成功",
  14349. type: "success",
  14350. });
  14351. this.commentText = "";
  14352. this.selectSWorks();
  14353. this.selectStudent();
  14354. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14355. })
  14356. .catch((err) => {
  14357. this.$message.error("评论失败");
  14358. console.error(err);
  14359. });
  14360. }
  14361. })
  14362. .catch((err) => {
  14363. // this.$message.error("评论失败");
  14364. console.error(err);
  14365. });
  14366. },
  14367. scoreWork(wid,sName) {
  14368. if (this.wScore == 0) {
  14369. this.$message.error("请评分");
  14370. return;
  14371. }
  14372. let params = [
  14373. {
  14374. wid: wid,
  14375. score: JSON.stringify({
  14376. wScore: this.wScore,
  14377. detail: this.scoreDetail,
  14378. }),
  14379. },
  14380. ];
  14381. this.ajax
  14382. .post(this.$store.state.api + "scoreWork", params)
  14383. .then((res) => {
  14384. this.$message({
  14385. message: "评分成功",
  14386. type: "success",
  14387. });
  14388. this.wScore = 0;
  14389. this.scoreDetail = "";
  14390. this.dialogVisibleScore = false;
  14391. this.selectSWorks();
  14392. this.selectStudent();
  14393. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14394. })
  14395. .catch((err) => {
  14396. this.$message.error("评分失败");
  14397. console.error(err);
  14398. });
  14399. },
  14400. openXz(w, i) {
  14401. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14402. .taskJson[this.taskCount].toolChoose[i].selectJson
  14403. ? JSON.parse(
  14404. JSON.stringify(
  14405. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14406. this.taskCount
  14407. ].toolChoose[i].selectJson
  14408. )
  14409. )
  14410. : { url: "", select: [], answer: [] };
  14411. var a = w.works.split(",");
  14412. for (var k = 0; k < a.length; k++) {
  14413. a[k] = parseInt(a[k]);
  14414. }
  14415. this.selectAnswer = { answer: a, stu: w.sName };
  14416. this.isSelect = true;
  14417. this.dialogVisibleSelect = true;
  14418. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14419. },
  14420. openSen(w, i) {
  14421. console.log("openSen")
  14422. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14423. this.sentenceList1 = JSON.parse(w.works);
  14424. this.sentenceList1.stuName = w.sName;
  14425. this.dialogVisibleSentence1 = true;
  14426. },
  14427. openPj(w, toolindex) {
  14428. console.log("openPJ")
  14429. // this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14430. this.isStar = true;
  14431. this.eScore = JSON.parse(w);
  14432. this.rateJson =
  14433. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14434. this.taskCount
  14435. ].toolChoose[toolindex].rateJson;
  14436. this.studentEvalDialogVisible = true;
  14437. },
  14438. openEnglishEva(id,i){
  14439. let params = {
  14440. wid: id
  14441. };
  14442. this.ajax
  14443. .get(this.$store.state.api + "selectEngWork", params)
  14444. .then((res) => {
  14445. this.evaEngJson.message = res.data[0][0];
  14446. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14447. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14448. .toolChoose[i].englishList;
  14449. this.engEvaDialogVisible = true;
  14450. })
  14451. .catch((err) => {
  14452. console.error(err);
  14453. });
  14454. },
  14455. deleteWorks(id) {
  14456. this.$confirm("确定删除此作业吗?", "提示", {
  14457. confirmButtonText: "确定",
  14458. cancelButtonText: "取消",
  14459. type: "warning",
  14460. })
  14461. .then(() => {
  14462. let params = [
  14463. {
  14464. id: id,
  14465. },
  14466. ];
  14467. this.ajax
  14468. .post(this.$store.state.api + "deleteCourseWork", params)
  14469. .then((res) => {
  14470. this.$message({
  14471. message: "删除成功",
  14472. type: "success",
  14473. });
  14474. this.selectStudent();
  14475. this.selectSWorks();
  14476. this.selectSLook();
  14477. })
  14478. .catch((err) => {
  14479. this.$message.error("网络异常");
  14480. console.error(err);
  14481. });
  14482. })
  14483. .catch(() => {});
  14484. },
  14485. selectSWorks(gindex) {
  14486. //教师查看全部作业
  14487. let params = {
  14488. cid: this.id,
  14489. s: this.courseType,
  14490. t: this.taskCount,
  14491. };
  14492. this.ajax
  14493. .get(this.$store.state.api + "selectSWorks", params)
  14494. .then((res) => {
  14495. var a =
  14496. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14497. this.taskCount
  14498. ].toolChoose;
  14499. var b = res.data[0];
  14500. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14501. var y = [
  14502. "AVI",
  14503. "NAVI",
  14504. "MPEG",
  14505. "ASF",
  14506. "MOV",
  14507. "WMV",
  14508. "3GP",
  14509. "RM",
  14510. "RMVB",
  14511. "FLV",
  14512. "F4V",
  14513. "H.264",
  14514. "H.265",
  14515. "REAL VIDEO",
  14516. "MKV",
  14517. "WebM",
  14518. "HDDVD",
  14519. "MP4",
  14520. "MPG",
  14521. "M4V",
  14522. "MGV",
  14523. "OGV",
  14524. "QTM",
  14525. "STR",
  14526. "AMC",
  14527. "DVX",
  14528. "EVO",
  14529. "DAT",
  14530. "OGG",
  14531. "OGM",
  14532. ];
  14533. var d = res.data[1];
  14534. var e = res.data[2];
  14535. var f = res.data[3];
  14536. let _worksStudent = [];
  14537. var _worksStudent2 = [];
  14538. for (var i = 0; i < a.length; i++) {
  14539. _worksStudent[i] = [];
  14540. _worksStudent2[i] = [];
  14541. if (
  14542. !this.isCloseList[i] ||
  14543. this.isCloseList[i].isClose == undefined
  14544. ) {
  14545. this.isCloseList[i] = { isClose: 0 };
  14546. }
  14547. this.groupStudent[i] = [];
  14548. this.groupStudentUid[i] = [];
  14549. if (this.isGroup) {
  14550. for (
  14551. var groupI = 0;
  14552. groupI < this.courseGroup.group.length;
  14553. groupI++
  14554. ) {
  14555. this.courseGroup.group[groupI].works[i] = [];
  14556. }
  14557. }
  14558. this.isWorksS[i] = [];
  14559. this.checkJson[i] = [];
  14560. if (a[i].tool[0] == 49) {
  14561. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14562. this.groupStudent[i][gA] = [];
  14563. this.groupStudentUid[i][gA] = [];
  14564. _worksStudent[i][gA] = [];
  14565. _worksStudent2[i][gA] = [];
  14566. this.isCloseList[i][gA] = [];
  14567. // debugger
  14568. for (var g = 0; g < f.length; g++) {
  14569. if (
  14570. f[g].ttype == 2 &&
  14571. this.tcid &&
  14572. this.arrayToArray(
  14573. (f[g].classid ? f[g].classid.split(",") : []),
  14574. this.tcid.split(",")
  14575. ).length == 0
  14576. ) {
  14577. continue;
  14578. }
  14579. let _classId = this.arrayToArray(
  14580. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14581. this.classId ? this.classId.split(",") : []
  14582. )
  14583. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14584. (f[g].classid ? f[g].classid.split(",") : []),
  14585. this.tcid.split(",")
  14586. ).length !== 0 || this.arrayToArray(
  14587. (f[g].classid ? f[g].classid.split(",") : []),
  14588. _classId
  14589. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14590. this.groupStudent[i][gA].push(f[g]);
  14591. this.groupStudentUid[i][gA].push(f[g].userid);
  14592. }
  14593. }
  14594. }
  14595. this.$forceUpdate();
  14596. }
  14597. for (var j = 0; j < b.length; j++) {
  14598. if (
  14599. b[j].ttype == 2 &&
  14600. this.tcid &&
  14601. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14602. .length == 0
  14603. ) {
  14604. continue;
  14605. }
  14606. var likesCount = 0;
  14607. var commentCount = 0;
  14608. var isLikes = false;
  14609. var commentJson = [];
  14610. var likeJson = [];
  14611. var data = b[j];
  14612. if (i == b[j].tool) {
  14613. if (data.type == 2 && a[i].tool[0] == 4) {
  14614. // if(JSON.parse(data.content)[0].anwer){
  14615. var checkL =
  14616. JSON.parse(data.content)[0].anwer instanceof Array
  14617. ? JSON.parse(data.content)[0].anwer
  14618. : JSON.parse(data.content)[0].anwer.split(",");
  14619. for (var z = 0; z < checkL.length; z++) {
  14620. if (!this.checkJson[i][z]) {
  14621. this.checkJson[i].push({
  14622. checkCount: [],
  14623. checkPerson: [],
  14624. rightPerson: [],
  14625. });
  14626. }
  14627. if (!this.checkJson[i][z].checkCount.length) {
  14628. this.checkJson[i][z].checkCount = [];
  14629. let _askItemCount = JSON.parse(data.content)[0].askJson
  14630. .askJson[z].askItem;
  14631. for (var aic = 0; aic < _askItemCount; aic++) {
  14632. this.checkJson[i][z].checkCount.push(0);
  14633. }
  14634. }
  14635. if (checkL[z] instanceof Array) {
  14636. if (
  14637. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14638. checkL[z].sort().join(",")
  14639. ) {
  14640. this.checkJson[i][z].rightPerson.push(data.name);
  14641. }
  14642. for (var q = 0; q < checkL[z].length; q++) {
  14643. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14644. ? this.checkJson[i][z].checkPerson[
  14645. parseInt(checkL[z][q])
  14646. ].push(data.name)
  14647. : (this.checkJson[i][z].checkPerson[
  14648. parseInt(checkL[z][q])
  14649. ] = [data.name]);
  14650. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14651. ? this.checkJson[i][z].checkCount[
  14652. parseInt(checkL[z][q])
  14653. ]++
  14654. : (this.checkJson[i][z].checkCount[
  14655. parseInt(checkL[z][q])
  14656. ] = 1);
  14657. }
  14658. } else {
  14659. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14660. this.checkJson[i][z].rightPerson.push(data.name);
  14661. }
  14662. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14663. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14664. ? this.checkJson[i][z].checkPerson[
  14665. parseInt(checkL[z])
  14666. ].push(data.name)
  14667. : (this.checkJson[i][z].checkPerson[
  14668. parseInt(checkL[z])
  14669. ] = [data.name]);
  14670. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14671. ? this.checkJson[i][z].checkCount[
  14672. parseInt(checkL[z])
  14673. ]++
  14674. : (this.checkJson[i][z].checkCount[
  14675. parseInt(checkL[z])
  14676. ] = 1);
  14677. }
  14678. }
  14679. }
  14680. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14681. var checkL = JSON.parse(data.content)[0].anwer;
  14682. for (var z = 0; z < checkL.length; z++) {
  14683. if (!this.checkJson[i][z]) {
  14684. this.checkJson[i].push({
  14685. checkCount: [],
  14686. checkPerson: [],
  14687. rightPerson: [],
  14688. });
  14689. }
  14690. if (!this.checkJson[i][z].checkCount.length) {
  14691. this.checkJson[i][z].checkCount = [];
  14692. let _askItemCount = JSON.parse(data.content)[0].testJson
  14693. .testJson[z].testItem;
  14694. for (var aic = 0; aic < _askItemCount; aic++) {
  14695. this.checkJson[i][z].checkCount.push(0);
  14696. }
  14697. }
  14698. if (checkL[z] instanceof Array) {
  14699. if (
  14700. JSON.parse(data.content)[0]
  14701. .testJson.testJson[z].answer.sort()
  14702. .join(",") == checkL[z].sort().join(",")
  14703. ) {
  14704. this.checkJson[i][z].rightPerson.push(data.name);
  14705. }
  14706. for (var q = 0; q < checkL[z].length; q++) {
  14707. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14708. ? this.checkJson[i][z].checkPerson[
  14709. parseInt(checkL[z][q])
  14710. ].push(data.name)
  14711. : (this.checkJson[i][z].checkPerson[
  14712. parseInt(checkL[z][q])
  14713. ] = [data.name]);
  14714. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14715. ? this.checkJson[i][z].checkCount[
  14716. parseInt(checkL[z][q])
  14717. ]++
  14718. : (this.checkJson[i][z].checkCount[
  14719. parseInt(checkL[z][q])
  14720. ] = 1);
  14721. }
  14722. } else {
  14723. if (
  14724. JSON.parse(data.content)[0].testJson.testJson[z]
  14725. .answer == checkL[z]
  14726. ) {
  14727. this.checkJson[i][z].rightPerson.push(data.name);
  14728. }
  14729. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14730. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14731. ? this.checkJson[i][z].checkPerson[
  14732. parseInt(checkL[z])
  14733. ].push(data.name)
  14734. : (this.checkJson[i][z].checkPerson[
  14735. parseInt(checkL[z])
  14736. ] = [data.name]);
  14737. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14738. ? this.checkJson[i][z].checkCount[
  14739. parseInt(checkL[z])
  14740. ]++
  14741. : (this.checkJson[i][z].checkCount[
  14742. parseInt(checkL[z])
  14743. ] = 1);
  14744. }
  14745. }
  14746. }
  14747. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14748. var checkL = JSON.parse(data.content);
  14749. for (var z = 0; z < checkL.length; z++) {
  14750. if (!this.checkJson[i][z]) {
  14751. this.checkJson[i].push({
  14752. checkCount: [],
  14753. checkPerson: [],
  14754. rightPerson: [],
  14755. });
  14756. }
  14757. this.checkJson[i][z].checkPerson.push(data.name);
  14758. if (
  14759. checkL[z].chooseSenList.toString() ==
  14760. checkL[z].rightAnswer.toString()
  14761. ) {
  14762. this.checkJson[i][z].rightPerson.push(data.name);
  14763. }
  14764. }
  14765. }
  14766. for (var k = 0; k < d.length; k++) {
  14767. //点赞
  14768. if (d[k].workId == b[j].id) {
  14769. likesCount++;
  14770. likeJson.push(d[k])
  14771. if (d[k].likesId == this.userid) {
  14772. isLikes = true;
  14773. }
  14774. }
  14775. }
  14776. for (var l = 0; l < e.length; l++) {
  14777. //评论
  14778. if (e[l].workId == b[j].id) {
  14779. if (e[l].comment != "") {
  14780. commentCount++;
  14781. commentJson.push({
  14782. commentText: e[l].comment,
  14783. commentTime: e[l].commentTime,
  14784. commentPeople: e[l].commentPeople,
  14785. userid: e[l].userid,
  14786. wid: e[l].id,
  14787. });
  14788. }
  14789. }
  14790. }
  14791. if (
  14792. (b[j].type == 1 ||
  14793. b[j].type == 4 ||
  14794. b[j].type == 5 ||
  14795. b[j].type == 6 ||
  14796. b[j].type == 12 ||
  14797. b[j].type == 7) &&
  14798. a[i].tool[0] != 15 &&
  14799. a[i].tool[0] != 4 &&
  14800. a[i].tool[0] != 45 &&
  14801. a[i].tool[0] != 50 &&
  14802. a[i].tool[0] != 32 &&
  14803. a[i].tool[0] != 57 &&
  14804. a[i].tool[0] != 52
  14805. ) {
  14806. if (
  14807. c.indexOf(
  14808. b[j].content
  14809. .split(".")
  14810. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14811. ) != -1 &&
  14812. a[i].tool[0] == 16 &&
  14813. b[j].atool != 50
  14814. ) {
  14815. let _works = {
  14816. userid: b[j].userid,
  14817. ateacher: b[j].ateacher,
  14818. wid: b[j].id,
  14819. works: b[j].content,
  14820. sName: b[j].name,
  14821. type: 1,
  14822. ttype:b[j].ttype,
  14823. time: b[j].time,
  14824. score: b[j].score,
  14825. img: b[j].img,
  14826. likesCount: likesCount,
  14827. commentCount: commentCount,
  14828. isLikes: isLikes,
  14829. commentJson: commentJson,
  14830. likeJson:likeJson
  14831. };
  14832. if (this.isGroup) {
  14833. let isGw = 1;
  14834. for (
  14835. var groupI = 0;
  14836. groupI < this.courseGroup.group.length;
  14837. groupI++
  14838. ) {
  14839. let gid = this.courseGroup.group[groupI].id;
  14840. if (
  14841. this.courseGroupStudentUid[gid].indexOf(
  14842. b[j].userid
  14843. ) != -1
  14844. ) {
  14845. isGw = 2;
  14846. this.courseGroup.group[groupI].works[i].push(_works);
  14847. break;
  14848. }
  14849. }
  14850. if (isGw == 1) {
  14851. _worksStudent[i].push(_works);
  14852. }
  14853. } else {
  14854. _worksStudent[i].push(_works);
  14855. }
  14856. _worksStudent2[i].push(_works);
  14857. this.isWorksS[i].push({
  14858. uid: b[j].userid,
  14859. sName: b[j].name,
  14860. });
  14861. } else if (
  14862. y.indexOf(
  14863. b[j].content
  14864. .split(".")
  14865. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14866. ) != -1 &&
  14867. a[i].tool[0] == 16 &&
  14868. b[j].atool != 50
  14869. ) {
  14870. let _works = {
  14871. userid: b[j].userid,
  14872. ateacher: b[j].ateacher,
  14873. wid: b[j].id,
  14874. works: b[j].content,
  14875. sName: b[j].name,
  14876. type: 3,
  14877. ttype:b[j].ttype,
  14878. time: b[j].time,
  14879. score: b[j].score,
  14880. img: b[j].img,
  14881. likesCount: likesCount,
  14882. commentCount: commentCount,
  14883. isLikes: isLikes,
  14884. commentJson: commentJson,
  14885. likeJson:likeJson
  14886. };
  14887. if (this.isGroup) {
  14888. let isGw = 1;
  14889. for (
  14890. var groupI = 0;
  14891. groupI < this.courseGroup.group.length;
  14892. groupI++
  14893. ) {
  14894. let gid = this.courseGroup.group[groupI].id;
  14895. if (
  14896. this.courseGroupStudentUid[gid].indexOf(
  14897. b[j].userid
  14898. ) != -1
  14899. ) {
  14900. isGw = 2;
  14901. this.courseGroup.group[groupI].works[i].push(_works);
  14902. break;
  14903. }
  14904. }
  14905. if (isGw == 1) {
  14906. _worksStudent[i].push(_works);
  14907. }
  14908. } else {
  14909. _worksStudent[i].push(_works);
  14910. }
  14911. _worksStudent2[i].push(_works);
  14912. this.isWorksS[i].push({
  14913. uid: b[j].userid,
  14914. sName: b[j].name,
  14915. });
  14916. } else if (b[j].type == 6 && b[j].atool != 50) {
  14917. let _works = {
  14918. userid: b[j].userid,
  14919. ateacher: b[j].ateacher,
  14920. wid: b[j].id,
  14921. works: b[j].content,
  14922. sName: b[j].name,
  14923. type: 4,
  14924. ttype:b[j].ttype,
  14925. time: b[j].time,
  14926. score: b[j].score,
  14927. img: b[j].img,
  14928. likesCount: likesCount,
  14929. commentCount: commentCount,
  14930. isLikes: isLikes,
  14931. commentJson: commentJson,
  14932. likeJson:likeJson
  14933. };
  14934. _worksStudent[i].push(_works);
  14935. _worksStudent2[i].push(_works);
  14936. this.isWorksS[i].push({
  14937. uid: b[j].userid,
  14938. sName: b[j].name,
  14939. });
  14940. } else if (b[j].type == 7 && b[j].atool != 50) {
  14941. let _work = {
  14942. userid: b[j].userid,
  14943. ateacher: b[j].ateacher,
  14944. wid: b[j].id,
  14945. works: b[j].content,
  14946. sName: b[j].name,
  14947. type: 5,
  14948. ttype:b[j].ttype,
  14949. time: b[j].time,
  14950. score: b[j].score,
  14951. img: b[j].img,
  14952. likesCount: likesCount,
  14953. commentCount: commentCount,
  14954. isLikes: isLikes,
  14955. commentJson: commentJson,
  14956. likeJson:likeJson
  14957. };
  14958. _worksStudent[i].push(_work);
  14959. _worksStudent2[i].push(_work);
  14960. this.isWorksS[i].push({
  14961. uid: b[j].userid,
  14962. sName: b[j].name,
  14963. });
  14964. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14965. let _works = {
  14966. userid: b[j].userid,
  14967. ateacher: b[j].ateacher,
  14968. wid: b[j].id,
  14969. works: b[j].content,
  14970. sName: b[j].name,
  14971. type: 12,
  14972. ttype:b[j].ttype,
  14973. time: b[j].time,
  14974. score: b[j].score,
  14975. img: b[j].img,
  14976. likesCount: likesCount,
  14977. commentCount: commentCount,
  14978. isLikes: isLikes,
  14979. commentJson: commentJson,
  14980. likeJson:likeJson
  14981. };
  14982. if (this.isGroup) {
  14983. let isGw = 1;
  14984. for (
  14985. var groupI = 0;
  14986. groupI < this.courseGroup.group.length;
  14987. groupI++
  14988. ) {
  14989. let gid = this.courseGroup.group[groupI].id;
  14990. if (
  14991. this.courseGroupStudentUid[gid].indexOf(
  14992. b[j].userid
  14993. ) != -1
  14994. ) {
  14995. isGw = 2;
  14996. this.courseGroup.group[groupI].works[i].push(_works);
  14997. break;
  14998. }
  14999. }
  15000. if (isGw == 1) {
  15001. _worksStudent[i].push(_works);
  15002. }
  15003. } else {
  15004. _worksStudent[i].push(_works);
  15005. }
  15006. _worksStudent2[i].push(_works);
  15007. this.isWorksS[i].push({
  15008. uid: b[j].userid,
  15009. sName: b[j].name,
  15010. });
  15011. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15012. let _works = {
  15013. userid: b[j].userid,
  15014. ateacher: b[j].ateacher,
  15015. wid: b[j].id,
  15016. works: b[j].content,
  15017. sName: b[j].name,
  15018. type: 0,
  15019. ttype:b[j].ttype,
  15020. time: b[j].time,
  15021. score: b[j].score,
  15022. img: b[j].img,
  15023. likesCount: likesCount,
  15024. commentCount: commentCount,
  15025. isLikes: isLikes,
  15026. commentJson: commentJson,
  15027. likeJson:likeJson
  15028. };
  15029. if (this.isGroup) {
  15030. let isGw = 1;
  15031. for (
  15032. var groupI = 0;
  15033. groupI < this.courseGroup.group.length;
  15034. groupI++
  15035. ) {
  15036. let gid = this.courseGroup.group[groupI].id;
  15037. if (
  15038. this.courseGroupStudentUid[gid].indexOf(
  15039. b[j].userid
  15040. ) != -1
  15041. ) {
  15042. isGw = 2;
  15043. this.courseGroup.group[groupI].works[i].push(_works);
  15044. break;
  15045. }
  15046. }
  15047. if (isGw == 1) {
  15048. _worksStudent[i].push(_works);
  15049. }
  15050. } else {
  15051. _worksStudent[i].push(_works);
  15052. }
  15053. _worksStudent2[i].push(_works);
  15054. this.isWorksS[i].push({
  15055. uid: b[j].userid,
  15056. sName: b[j].name,
  15057. });
  15058. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15059. let _works = {
  15060. userid: b[j].userid,
  15061. ateacher: b[j].ateacher,
  15062. wid: b[j].id,
  15063. works: b[j].content,
  15064. sName: b[j].name,
  15065. type: 0,
  15066. ttype:b[j].ttype,
  15067. time: b[j].time,
  15068. score: b[j].score,
  15069. img: b[j].img,
  15070. likesCount: likesCount,
  15071. commentCount: commentCount,
  15072. isLikes: isLikes,
  15073. commentJson: commentJson,
  15074. likeJson:likeJson
  15075. };
  15076. if (this.isGroup) {
  15077. let isGw = 1;
  15078. for (
  15079. var groupI = 0;
  15080. groupI < this.courseGroup.group.length;
  15081. groupI++
  15082. ) {
  15083. let gid = this.courseGroup.group[groupI].id;
  15084. if (
  15085. this.courseGroupStudentUid[gid].indexOf(
  15086. b[j].userid
  15087. ) != -1
  15088. ) {
  15089. isGw = 2;
  15090. this.courseGroup.group[groupI].works[i].push(_works);
  15091. break;
  15092. }
  15093. }
  15094. if (isGw == 1) {
  15095. _worksStudent[i].push(_works);
  15096. }
  15097. } else {
  15098. _worksStudent[i].push(_works);
  15099. }
  15100. _worksStudent2[i].push(_works);
  15101. this.isWorksS[i].push({
  15102. uid: b[j].userid,
  15103. sName: b[j].name,
  15104. });
  15105. }
  15106. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15107. let _works = {
  15108. userid: b[j].userid,
  15109. ateacher: b[j].ateacher,
  15110. wid: b[j].id,
  15111. works: b[j].content,
  15112. sName: b[j].name,
  15113. type: 2,
  15114. ttype:b[j].ttype,
  15115. time: b[j].time,
  15116. score: b[j].score,
  15117. img: b[j].img,
  15118. likesCount: likesCount,
  15119. commentCount: commentCount,
  15120. isLikes: isLikes,
  15121. commentJson: commentJson,
  15122. likeJson:likeJson
  15123. };
  15124. if (this.isGroup) {
  15125. let isGw = 1;
  15126. for (
  15127. var groupI = 0;
  15128. groupI < this.courseGroup.group.length;
  15129. groupI++
  15130. ) {
  15131. let gid = this.courseGroup.group[groupI].id;
  15132. if (
  15133. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15134. -1
  15135. ) {
  15136. isGw = 2;
  15137. this.courseGroup.group[groupI].works[i].push(_works);
  15138. break;
  15139. }
  15140. }
  15141. if (isGw == 1) {
  15142. _worksStudent[i].push(_works);
  15143. }
  15144. } else {
  15145. _worksStudent[i].push(_works);
  15146. }
  15147. _worksStudent2[i].push(_works);
  15148. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15149. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15150. //问卷
  15151. let _work = {
  15152. userid: b[j].userid,
  15153. ateacher: b[j].ateacher,
  15154. wid: b[j].id,
  15155. works: b[j].content,
  15156. sName: b[j].name,
  15157. type: 2,
  15158. ttype:b[j].ttype,
  15159. time: b[j].time,
  15160. score: b[j].score,
  15161. img: b[j].img,
  15162. likesCount: likesCount,
  15163. commentCount: commentCount,
  15164. isLikes: isLikes,
  15165. commentJson: commentJson,
  15166. likeJson:likeJson
  15167. };
  15168. _worksStudent[i].push(_work);
  15169. _worksStudent2[i].push(_work);
  15170. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15171. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15172. //选择题
  15173. let _work = {
  15174. userid: b[j].userid,
  15175. ateacher: b[j].ateacher,
  15176. wid: b[j].id,
  15177. works: b[j].content,
  15178. sName: b[j].name,
  15179. type: 8,
  15180. ttype:b[j].ttype,
  15181. time: b[j].time,
  15182. score: b[j].score,
  15183. img: b[j].img,
  15184. likesCount: likesCount,
  15185. commentCount: commentCount,
  15186. isLikes: isLikes,
  15187. commentJson: commentJson,
  15188. likeJson:likeJson
  15189. };
  15190. _worksStudent[i].push(_work);
  15191. _worksStudent2[i].push(_work);
  15192. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15193. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15194. //选择题
  15195. let _work = {
  15196. userid: b[j].userid,
  15197. ateacher: b[j].ateacher,
  15198. wid: b[j].id,
  15199. works: b[j].content,
  15200. sName: b[j].name,
  15201. type: 9,
  15202. ttype:b[j].ttype,
  15203. time: b[j].time,
  15204. score: b[j].score,
  15205. img: b[j].img,
  15206. likesCount: likesCount,
  15207. commentCount: commentCount,
  15208. isLikes: isLikes,
  15209. commentJson: commentJson,
  15210. likeJson:likeJson
  15211. };
  15212. _worksStudent[i].push(_work);
  15213. _worksStudent2[i].push(_work);
  15214. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15215. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15216. //选择题
  15217. let _work = {
  15218. userid: b[j].userid,
  15219. ateacher: b[j].ateacher,
  15220. wid: b[j].id,
  15221. works: b[j].content,
  15222. sName: b[j].name,
  15223. type: 10,
  15224. ttype:b[j].ttype,
  15225. time: b[j].time,
  15226. score: b[j].score,
  15227. img: b[j].img,
  15228. likesCount: likesCount,
  15229. commentCount: commentCount,
  15230. isLikes: isLikes,
  15231. commentJson: commentJson,
  15232. likeJson:likeJson
  15233. };
  15234. _worksStudent[i].push(_work);
  15235. _worksStudent2[i].push(_work);
  15236. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15237. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15238. //选择题
  15239. let _work = {
  15240. userid: b[j].userid,
  15241. ateacher: b[j].ateacher,
  15242. wid: b[j].id,
  15243. works: b[j].content,
  15244. sName: b[j].name,
  15245. type: 13,
  15246. ttype:b[j].ttype,
  15247. time: b[j].time,
  15248. score: b[j].score,
  15249. img: b[j].img,
  15250. likesCount: likesCount,
  15251. commentCount: commentCount,
  15252. isLikes: isLikes,
  15253. commentJson: commentJson,
  15254. likeJson:likeJson
  15255. };
  15256. _worksStudent[i].push(_work);
  15257. _worksStudent2[i].push(_work);
  15258. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15259. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15260. //选择题
  15261. let _work = {
  15262. userid: b[j].userid,
  15263. ateacher: b[j].ateacher,
  15264. wid: b[j].id,
  15265. works: b[j].content,
  15266. sName: b[j].name,
  15267. type: 16,
  15268. ttype:b[j].ttype,
  15269. time: b[j].time,
  15270. score: b[j].score,
  15271. img: b[j].img,
  15272. likesCount: likesCount,
  15273. commentCount: commentCount,
  15274. isLikes: isLikes,
  15275. commentJson: commentJson,
  15276. aiCode: b[j].aiCode,
  15277. teacherCode: b[j].teacherCode,
  15278. likeJson:likeJson
  15279. };
  15280. _worksStudent[i].push(_work);
  15281. _worksStudent2[i].push(_work);
  15282. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15283. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15284. //英语口语
  15285. let _work = {
  15286. userid: b[j].userid,
  15287. ateacher: b[j].ateacher,
  15288. wid: b[j].id,
  15289. works: b[j].content,
  15290. sName: b[j].name,
  15291. type: 17,
  15292. ttype:b[j].ttype,
  15293. time: b[j].time,
  15294. score: b[j].score,
  15295. img: b[j].img,
  15296. likesCount: likesCount,
  15297. commentCount: commentCount,
  15298. isLikes: isLikes,
  15299. commentJson: commentJson,
  15300. likeJson:likeJson
  15301. };
  15302. _worksStudent[i].push(_work);
  15303. _worksStudent2[i].push(_work);
  15304. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15305. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15306. //交互视频
  15307. let _work = {
  15308. userid: b[j].userid,
  15309. ateacher: b[j].ateacher,
  15310. wid: b[j].id,
  15311. works: b[j].content,
  15312. sName: b[j].name,
  15313. type: 14,
  15314. ttype:b[j].ttype,
  15315. time: b[j].time,
  15316. score: b[j].score,
  15317. img: b[j].img,
  15318. likesCount: likesCount,
  15319. commentCount: commentCount,
  15320. isLikes: isLikes,
  15321. commentJson: commentJson,
  15322. likeJson:likeJson
  15323. };
  15324. _worksStudent[i].push(_work);
  15325. _worksStudent2[i].push(_work);
  15326. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15327. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15328. let _gindex = JSON.parse(b[j].content);
  15329. if (
  15330. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15331. b[j].userid
  15332. ) != -1
  15333. ) {
  15334. let _work = {
  15335. userid: b[j].userid,
  15336. ateacher: b[j].ateacher,
  15337. wid: b[j].id,
  15338. works: _gindex.url,
  15339. sName: b[j].name,
  15340. type: _gindex.type,
  15341. ttype:b[j].ttype,
  15342. time: b[j].time,
  15343. score: b[j].score,
  15344. img: b[j].img,
  15345. likesCount: likesCount,
  15346. commentCount: commentCount,
  15347. isLikes: isLikes,
  15348. commentJson: commentJson,
  15349. likeJson:likeJson
  15350. };
  15351. _worksStudent[i][_gindex.groupIndex].push(_work);
  15352. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15353. }
  15354. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15355. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15356. let _work = {
  15357. userid: b[j].userid,
  15358. ateacher: b[j].ateacher,
  15359. wid: b[j].id,
  15360. works: b[j].content,
  15361. sName: b[j].name ? b[j].name : b[j].userid,
  15362. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15363. ttype:b[j].ttype,
  15364. time: b[j].time,
  15365. score: b[j].score,
  15366. img: b[j].img,
  15367. likesCount: likesCount,
  15368. commentCount: commentCount,
  15369. isLikes: isLikes,
  15370. commentJson: commentJson,
  15371. likeJson:likeJson
  15372. };
  15373. _worksStudent[i].push(_work);
  15374. _worksStudent2[i].push(_work);
  15375. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15376. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15377. let _work = {
  15378. userid: b[j].userid,
  15379. ateacher: b[j].ateacher,
  15380. wid: b[j].id,
  15381. works: b[j].content,
  15382. sName: b[j].name ? b[j].name : b[j].userid,
  15383. type: 12,
  15384. ttype:b[j].ttype,
  15385. time: b[j].time,
  15386. score: b[j].score,
  15387. img: b[j].img,
  15388. likesCount: likesCount,
  15389. commentCount: commentCount,
  15390. isLikes: isLikes,
  15391. commentJson: commentJson,
  15392. likeJson:likeJson
  15393. };
  15394. _worksStudent[i].push(_work);
  15395. _worksStudent2[i].push(_work);
  15396. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15397. } else if (
  15398. a[i].tool[0] == 57 &&
  15399. b[j].atool == 57 &&
  15400. b[j].type == 12
  15401. ) {
  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 == 15
  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: 15,
  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. }
  15448. }
  15449. }
  15450. if (_worksStudent[i] && _worksStudent[i].length) {
  15451. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15452. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15453. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15454. var scoreA = parseFloat(jscoreA);
  15455. var scoreB = parseFloat(jscoreB);
  15456. if (scoreA == scoreB) {
  15457. return b.likesCount - a.likesCount;
  15458. }
  15459. return scoreB - scoreA;
  15460. });
  15461. if (this.isGroup) {
  15462. for (
  15463. var groupI = 0;
  15464. groupI < this.courseGroup.group.length;
  15465. groupI++
  15466. ) {
  15467. this.courseGroup.group[groupI].works[i] =
  15468. this.courseGroup.group[groupI].works[i].sort(function (
  15469. a,
  15470. b
  15471. ) {
  15472. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15473. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15474. var scoreA = parseFloat(jscoreA);
  15475. var scoreB = parseFloat(jscoreB);
  15476. if (scoreA == scoreB) {
  15477. return b.likesCount - a.likesCount;
  15478. }
  15479. return scoreB - scoreA;
  15480. });
  15481. }
  15482. }
  15483. }
  15484. }
  15485. this.timeWorkList = _worksStudent2;
  15486. for (var i = 0; i < a.length; i++) {
  15487. for (var j = 0; j < b.length; j++) {
  15488. var data = b[j];
  15489. if (i == b[j].tool) {
  15490. if (data.type == 2 || data.type == 8) {
  15491. for (var z = 0; z < this.checkJson[i].length; z++) {
  15492. this.checkJson[i][z].checkPerent = [];
  15493. this.checkJson[i][z].right = Math.round(
  15494. (this.checkJson[i][z].rightPerson.length /
  15495. parseInt(_worksStudent[i].length)) *
  15496. 100
  15497. );
  15498. let aaaa = this.checkJson[i][z];
  15499. for (
  15500. var k = 0;
  15501. k < this.checkJson[i][z].checkCount.length;
  15502. k++
  15503. ) {
  15504. this.checkJson[i][z].checkPerent.push(
  15505. Math.round(
  15506. (this.checkJson[i][z].checkCount[k] /
  15507. parseInt(_worksStudent[i].length)) *
  15508. 100
  15509. )
  15510. );
  15511. }
  15512. }
  15513. } else if (data.type == 9) {
  15514. for (var z = 0; z < this.checkJson[i].length; z++) {
  15515. this.checkJson[i][z].checkPerent = [];
  15516. this.checkJson[i][z].right = Math.round(
  15517. (this.checkJson[i][z].rightPerson.length /
  15518. this.checkJson[i][z].checkPerson.length) *
  15519. 100
  15520. );
  15521. }
  15522. }
  15523. }
  15524. }
  15525. }
  15526. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15527. this.joinGroup(gindex);
  15528. }
  15529. this.worksStudent = _worksStudent;
  15530. this.selectWorksStudent();
  15531. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15532. this.$nextTick(()=>{
  15533. setTimeout(()=>{
  15534. setTimeout(()=>{
  15535. this.panToolHeight('tool-'+ci);
  15536. }, 500)
  15537. }, 0)
  15538. })
  15539. }
  15540. })
  15541. .catch((err) => {
  15542. console.error(err);
  15543. });
  15544. },
  15545. pngToWhiteBg(file) {
  15546. const _file = file;
  15547. let read = new FileReader();
  15548. read.readAsDataURL(file); // 文件转base64
  15549. return new Promise((resolve, reject) => {
  15550. read.onload = (e) => {
  15551. let img = new Image();
  15552. img.src = e.target.result;
  15553. img.onload = async () => {
  15554. // 生成canvas
  15555. let canvas = document.createElement("canvas");
  15556. let context = canvas.getContext("2d");
  15557. // 绘制图片到canvas上
  15558. canvas.width = img.width;
  15559. canvas.height = img.height;
  15560. // 在canvas绘制前填充白色背景
  15561. context.fillStyle = "#fff";
  15562. context.fillRect(0, 0, canvas.width, canvas.height);
  15563. context.drawImage(img, 0, 0);
  15564. let base64 = canvas.toDataURL(file["type"], 1);
  15565. let newFile = this.dataUrlToFile(base64, _file);
  15566. resolve(newFile);
  15567. };
  15568. };
  15569. });
  15570. },
  15571. dataUrlToFile(dataurl, file) {
  15572. let arr = dataurl.split(","),
  15573. mime = arr[0].match(/:(.*?);/)[1],
  15574. bstr = atob(arr[1]),
  15575. n = bstr.length,
  15576. u8arr = new Uint8Array(n);
  15577. while (n--) {
  15578. u8arr[n] = bstr.charCodeAt(n);
  15579. }
  15580. // return new Blob([u8arr], { type: mime });
  15581. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15582. type: mime,
  15583. });
  15584. },
  15585. async beforeUpload1(event, type, i) {
  15586. // this.$message.success('进入上传')
  15587. var file = "";
  15588. if (type == 5) {
  15589. file = event;
  15590. } else {
  15591. file = event.target.files[0];
  15592. }
  15593. var credentials = {
  15594. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15595. secretAccessKey: "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",
  15596. }; //秘钥形式的登录上传
  15597. window.AWS.config.update(credentials);
  15598. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15599. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15600. var _this = this;
  15601. _this.progress = 0;
  15602. _this.proVisible = true;
  15603. _this.isFinishSize = 0;
  15604. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15605. var b = [
  15606. "DOC",
  15607. "DOCX",
  15608. "DOCM",
  15609. "DOTM",
  15610. "DOTX",
  15611. "PPTX",
  15612. "PPSX",
  15613. "PPT",
  15614. "PPS",
  15615. "PPTM",
  15616. "POTM",
  15617. "PPAM",
  15618. "POTX",
  15619. "PPSM",
  15620. ];
  15621. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15622. var photoA = [
  15623. "BMP",
  15624. "GIF",
  15625. "PNG",
  15626. "JPEG",
  15627. "JPEG",
  15628. "JPG",
  15629. "TIF",
  15630. "PCX",
  15631. "TGA",
  15632. "EXIF",
  15633. "FPX",
  15634. "SVG",
  15635. "APNG",
  15636. ];
  15637. // if (
  15638. // b.indexOf(
  15639. // file.name
  15640. // .split(".")
  15641. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15642. // ) != -1
  15643. // ) {
  15644. // if (file.size / 1024 / 1024 > 10) {
  15645. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15646. // return;
  15647. // }
  15648. // } else if (
  15649. // excelA.indexOf(
  15650. // file.name
  15651. // .split(".")
  15652. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15653. // ) != "-1"
  15654. // ) {
  15655. // if (file.size / 1024 / 1024 > 5) {
  15656. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15657. // return;
  15658. // }
  15659. // }
  15660. if (
  15661. photoA.indexOf(
  15662. file.name
  15663. .split(".")
  15664. [file.name.split(".").length - 1].toLocaleUpperCase()
  15665. ) != -1 &&
  15666. type != 4
  15667. ) {
  15668. // const blob = await imageConversion.compress(file, 0.8)
  15669. file = await this.pngToWhiteBg(file);
  15670. const blob = await imageConversion.compressAccurately(file, 256);
  15671. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15672. file = new File([blob], file.name, { type: file.type });
  15673. }
  15674. if (file) {
  15675. var params = {
  15676. Key:
  15677. file.name.split(".")[0] +
  15678. new Date().getTime() +
  15679. "." +
  15680. file.name.split(".")[file.name.split(".").length - 1],
  15681. ContentType: file.type,
  15682. Body: file,
  15683. "Access-Control-Allow-Credentials": "*",
  15684. ACL: "public-read",
  15685. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15686. var options = {
  15687. // partSize: 2048 * 1024 * 1024,
  15688. partSize: 1024 * 1024 * 1024,
  15689. queueSize: 2,
  15690. leavePartsOnError: true,
  15691. };
  15692. bucket
  15693. .upload(params, options)
  15694. .on("httpUploadProgress", function (evt) {
  15695. //这里可以写进度条
  15696. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15697. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15698. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15699. })
  15700. .send(function (err, data) {
  15701. _this.progress = 100;
  15702. _this.isFinishSize = _this.isAllSize;
  15703. setTimeout(() => {
  15704. _this.proVisible = false;
  15705. }, 1000);
  15706. if (err) {
  15707. var a = _this.$refs.upload1.uploadFiles;
  15708. a.splice(a.length - 1, a.length);
  15709. _this.$message.error("上传失败");
  15710. } else {
  15711. // _this.$message.success('上传成功')
  15712. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15713. var c = [
  15714. "AVI",
  15715. "NAVI",
  15716. "MPEG",
  15717. "ASF",
  15718. "MOV",
  15719. "WMV",
  15720. "3GP",
  15721. "RM",
  15722. "RMVB",
  15723. "FLV",
  15724. "F4V",
  15725. "H.264",
  15726. "H.265",
  15727. "REAL VIDEO",
  15728. "MKV",
  15729. "WebM",
  15730. "HDDVD",
  15731. "MP4",
  15732. "MPG",
  15733. "M4V",
  15734. "MGV",
  15735. "OGV",
  15736. "QTM",
  15737. "STR",
  15738. "AMC",
  15739. "DVX",
  15740. "EVO",
  15741. "DAT",
  15742. "OGG",
  15743. "OGM",
  15744. ];
  15745. if (type == 1) {
  15746. _this.studyJuri[0].cover.push({
  15747. name: file.name,
  15748. url: data.Location,
  15749. uid: file.uid,
  15750. });
  15751. if (
  15752. c.indexOf(
  15753. _this.studyJuri[0].cover[0].url
  15754. .split(".")
  15755. [
  15756. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15757. ].toLocaleUpperCase()
  15758. ) != -1
  15759. ) {
  15760. _this.fileType = 2;
  15761. } else if (
  15762. b.indexOf(
  15763. _this.studyJuri[0].cover[0].url
  15764. .split(".")
  15765. [
  15766. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15767. ].toLocaleUpperCase()
  15768. ) != -1
  15769. ) {
  15770. _this.fileType = 1;
  15771. } else if (
  15772. photoA.indexOf(
  15773. _this.studyJuri[0].cover[0].url
  15774. .split(".")
  15775. [
  15776. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15777. ].toLocaleUpperCase()
  15778. ) != -1
  15779. ) {
  15780. _this.fileType = 0;
  15781. } else {
  15782. _this.fileType = 3;
  15783. }
  15784. _this.imgChange(null, null, type);
  15785. } else if (type == 2) {
  15786. _this.upToolImg = data.Location;
  15787. _this.imgChange(null, null, type);
  15788. _this.addCourseWorks(i);
  15789. } else if (type == 4) {
  15790. _this.addPz("3", data.Location);
  15791. } else if (type == 5) {
  15792. _this.addImgDrawImG(data.Location);
  15793. } else if (type == 6) {
  15794. var _ftype = 1;
  15795. if (
  15796. c.indexOf(
  15797. data.Location.split(".")[
  15798. data.Location.split(".").length - 1
  15799. ].toLocaleUpperCase()
  15800. ) != -1
  15801. ) {
  15802. _ftype = 5;
  15803. } else if (
  15804. b.indexOf(
  15805. data.Location.split(".")[
  15806. data.Location.split(".").length - 1
  15807. ].toLocaleUpperCase()
  15808. ) != -1
  15809. ) {
  15810. _ftype = 4;
  15811. } else {
  15812. _ftype = 1;
  15813. }
  15814. _this.plworkFile.push({
  15815. name: file.name,
  15816. url: data.Location,
  15817. uid: file.uid,
  15818. fileType: _ftype,
  15819. username:
  15820. _this.plworkFile.length > 10
  15821. ? _this.plworkFile.length + 1
  15822. : "0" + (_this.plworkFile.length + 1),
  15823. });
  15824. } else if (type == 7) {
  15825. _this.addCourseWorksGong(i, data.Location, 32);
  15826. } else if (type == 8) {
  15827. _this.addCourseWorksGong(i, data.Location, 57);
  15828. }
  15829. _this.imgChange(null, null, type);
  15830. console.log(data.Location);
  15831. // _this.$message.success('上传成功'+data.Location)
  15832. }
  15833. });
  15834. }
  15835. },
  15836. async beforeUpload3(event, type, i) {
  15837. // this.$message.success('进入上传')
  15838. let file = "";
  15839. let cfindex2 = 0;
  15840. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15841. file = event.target.files[cfindex];
  15842. var credentials = {
  15843. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15844. secretAccessKey: "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",
  15845. }; //秘钥形式的登录上传
  15846. window.AWS.config.update(credentials);
  15847. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15848. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15849. var _this = this;
  15850. // _this.progress = 0;
  15851. _this.proVisible2 = true;
  15852. var b = [
  15853. "DOC",
  15854. "DOCX",
  15855. "DOCM",
  15856. "DOTM",
  15857. "DOTX",
  15858. "PPTX",
  15859. "PPSX",
  15860. "PPT",
  15861. "PPS",
  15862. "PPTM",
  15863. "POTM",
  15864. "PPAM",
  15865. "POTX",
  15866. "PPSM",
  15867. ];
  15868. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15869. var photoA = [
  15870. "BMP",
  15871. "GIF",
  15872. "PNG",
  15873. "JPEG",
  15874. "JPG",
  15875. "TIF",
  15876. "PCX",
  15877. "TGA",
  15878. "EXIF",
  15879. "FPX",
  15880. "SVG",
  15881. "APNG",
  15882. ];
  15883. if (
  15884. photoA.indexOf(
  15885. file.name
  15886. .split(".")
  15887. [file.name.split(".").length - 1].toLocaleUpperCase()
  15888. ) != -1 &&
  15889. type != 4
  15890. ) {
  15891. // const blob = await imageConversion.compress(file, 0.8)
  15892. file = await this.pngToWhiteBg(file);
  15893. const blob = await imageConversion.compressAccurately(file, 256);
  15894. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15895. file = new File([blob], file.name, { type: file.type });
  15896. }
  15897. if (file) {
  15898. var params = {
  15899. Key:
  15900. file.name.split(".")[0] +
  15901. new Date().getTime() +
  15902. "." +
  15903. file.name.split(".")[file.name.split(".").length - 1],
  15904. ContentType: file.type,
  15905. Body: file,
  15906. "Access-Control-Allow-Credentials": "*",
  15907. ACL: "public-read",
  15908. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15909. var options = {
  15910. // partSize: 2048 * 1024 * 1024,
  15911. partSize: 1024 * 1024 * 1024,
  15912. queueSize: 2,
  15913. leavePartsOnError: true,
  15914. };
  15915. bucket
  15916. .upload(params, options)
  15917. .on("httpUploadProgress", function (evt) {
  15918. //这里可以写进度条
  15919. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15920. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15921. })
  15922. .send(function (err, data) {
  15923. // _this.progress = 100;
  15924. cfindex2++;
  15925. setTimeout(() => {
  15926. if (
  15927. cfindex2 == event.target.files.length - 1 ||
  15928. cfindex2 > event.target.files.length - 1
  15929. ) {
  15930. _this.proVisible2 = false;
  15931. }
  15932. }, 1000);
  15933. if (err) {
  15934. var a = _this.$refs.upload1.uploadFiles;
  15935. a.splice(a.length - 1, a.length);
  15936. _this.$message.error("上传失败");
  15937. } else {
  15938. // _this.$message.success('上传成功')
  15939. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15940. var c = [
  15941. "AVI",
  15942. "NAVI",
  15943. "MPEG",
  15944. "ASF",
  15945. "MOV",
  15946. "WMV",
  15947. "3GP",
  15948. "RM",
  15949. "RMVB",
  15950. "FLV",
  15951. "F4V",
  15952. "H.264",
  15953. "H.265",
  15954. "REAL VIDEO",
  15955. "MKV",
  15956. "WebM",
  15957. "HDDVD",
  15958. "MP4",
  15959. "MPG",
  15960. "M4V",
  15961. "MGV",
  15962. "OGV",
  15963. "QTM",
  15964. "STR",
  15965. "AMC",
  15966. "DVX",
  15967. "EVO",
  15968. "DAT",
  15969. "OGG",
  15970. "OGM",
  15971. ];
  15972. if (type == 1) {
  15973. _this.studyJuri[0].cover.push({
  15974. name: file.name,
  15975. url: data.Location,
  15976. uid: file.uid,
  15977. });
  15978. if (
  15979. c.indexOf(
  15980. _this.studyJuri[0].cover[0].url
  15981. .split(".")
  15982. [
  15983. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15984. ].toLocaleUpperCase()
  15985. ) != -1
  15986. ) {
  15987. _this.fileType = 2;
  15988. } else if (
  15989. b.indexOf(
  15990. _this.studyJuri[0].cover[0].url
  15991. .split(".")
  15992. [
  15993. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15994. ].toLocaleUpperCase()
  15995. ) != -1
  15996. ) {
  15997. _this.fileType = 1;
  15998. } else {
  15999. _this.fileType = 0;
  16000. }
  16001. _this.imgChange(null, null, type);
  16002. } else if (type == 2) {
  16003. _this.upToolImg = data.Location;
  16004. _this.imgChange(null, null, type);
  16005. _this.addCourseWorks(i);
  16006. } else if (type == 4) {
  16007. _this.addPz("3", data.Location);
  16008. } else if (type == 5) {
  16009. _this.addImgDrawImG(data.Location);
  16010. } else if (type == 6) {
  16011. var _ftype = 1;
  16012. if (
  16013. c.indexOf(
  16014. data.Location.split(".")[
  16015. data.Location.split(".").length - 1
  16016. ].toLocaleUpperCase()
  16017. ) != -1
  16018. ) {
  16019. _ftype = 5;
  16020. } else if (
  16021. b.indexOf(
  16022. data.Location.split(".")[
  16023. data.Location.split(".").length - 1
  16024. ].toLocaleUpperCase()
  16025. ) != -1
  16026. ) {
  16027. _ftype = 4;
  16028. } else {
  16029. _ftype = 1;
  16030. }
  16031. _this.plworkFile.push({
  16032. name: file.name,
  16033. url: data.Location,
  16034. uid: file.uid,
  16035. fileType: _ftype,
  16036. username:
  16037. _this.plworkFile.length + 1 > 9
  16038. ? _this.plworkFile.length + 1
  16039. : "0" + (_this.plworkFile.length + 1),
  16040. });
  16041. }
  16042. _this.imgChange(null, null, type);
  16043. console.log(data.Location);
  16044. // _this.$message.success('上传成功'+data.Location)
  16045. }
  16046. });
  16047. }
  16048. }
  16049. },
  16050. beforeUpload2(event, type) {
  16051. var file = event.target.files[0];
  16052. var credentials = {
  16053. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16054. secretAccessKey: "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",
  16055. }; //秘钥形式的登录上传
  16056. window.AWS.config.update(credentials);
  16057. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16058. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16059. var _this = this;
  16060. _this.progress = 0;
  16061. _this.proVisible = true;
  16062. if (file) {
  16063. var params = {
  16064. Key:
  16065. file.name.split(".")[0] +
  16066. new Date().getTime() +
  16067. "." +
  16068. file.name.split(".")[file.name.split(".").length - 1],
  16069. ContentType: file.type,
  16070. Body: file,
  16071. "Access-Control-Allow-Credentials": "*",
  16072. ACL: "public-read",
  16073. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16074. var options = {
  16075. partSize: 2048 * 1024 * 1024,
  16076. queueSize: 2,
  16077. leavePartsOnError: true,
  16078. };
  16079. bucket
  16080. .upload(params, options)
  16081. .on("httpUploadProgress", function (evt) {
  16082. //这里可以写进度条
  16083. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16084. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16085. })
  16086. .send(function (err, data) {
  16087. _this.progress = 100;
  16088. setTimeout(() => {
  16089. _this.proVisible = false;
  16090. }, 1000);
  16091. if (err) {
  16092. var a = _this.$refs.upload1.uploadFiles;
  16093. a.splice(a.length - 1, a.length);
  16094. _this.$message.error("上传失败");
  16095. } else {
  16096. if (type == 2) {
  16097. _this.studyJuri[0].upVedio.push({
  16098. name: file.name,
  16099. url: data.Location,
  16100. uid: file.uid,
  16101. });
  16102. _this.imgChange(null, null, type);
  16103. } else if (type == 3) {
  16104. _this.studyJuri[0].upFile.push({
  16105. name: file.name,
  16106. url: data.Location,
  16107. uid: file.uid,
  16108. });
  16109. _this.imgChange(null, null, type);
  16110. }
  16111. console.log(data.Location);
  16112. }
  16113. });
  16114. }
  16115. },
  16116. allScrell() {
  16117. window.parent.postMessage({ allScreen: this.screenType }, "*");
  16118. },
  16119. nextOrpreSteps(t) {
  16120. if (this.IsFollow && this.tType == 2) {
  16121. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16122. return;
  16123. }
  16124. var b = this.chapInfoList.length - 1;
  16125. if (t == 0) {
  16126. if (this.courseType == 0) {
  16127. if (this.taskCount == 0) {
  16128. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16129. if (this.IsLookOpen) {
  16130. if (
  16131. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16132. ) {
  16133. if (
  16134. this.courseDetail.userid != this.userid &&
  16135. (!this.courseDetail.course_teacher ||
  16136. (this.courseDetail.course_teacher &&
  16137. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16138. ) {
  16139. this.$message.error("任务未解锁");
  16140. } else {
  16141. this.$message.error("上一任务未解锁");
  16142. }
  16143. return;
  16144. }
  16145. }
  16146. this.navList[this.courseType].isOpen = false;
  16147. this.courseType = b;
  16148. this.taskCount =
  16149. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16150. .length - 1;
  16151. this.navList[this.courseType].isOpen = true;
  16152. } else {
  16153. this.taskCount--;
  16154. }
  16155. } else {
  16156. if (this.taskCount == 0) {
  16157. this.navList[this.courseType].isOpen = false;
  16158. this.courseType--;
  16159. this.taskCount =
  16160. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16161. .length - 1;
  16162. this.navList[this.courseType].isOpen = true;
  16163. } else {
  16164. this.taskCount--;
  16165. }
  16166. }
  16167. } else {
  16168. if (this.courseType == b) {
  16169. if (
  16170. this.taskCount ==
  16171. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16172. 1
  16173. ) {
  16174. this.navList[this.courseType].isOpen = false;
  16175. this.courseType = 0;
  16176. this.taskCount = 0;
  16177. this.navList[this.courseType].isOpen = true;
  16178. } else {
  16179. var bbb = parseInt(this.taskCount) + 1;
  16180. if (
  16181. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16182. .isLook &&
  16183. this.courseDetail.userid != this.userid && (!this.courseDetail.course_teacher ||
  16184. (this.courseDetail.course_teacher &&
  16185. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16186. this.IsLookOpen
  16187. ) {
  16188. this.$message.error("任务未解锁");
  16189. return;
  16190. }
  16191. this.taskCount++;
  16192. if (this.IsLookOpen) {
  16193. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16194. this.taskCount
  16195. ].isLook = true;
  16196. this.addCourseState(3);
  16197. }
  16198. }
  16199. } else {
  16200. if (
  16201. this.taskCount ==
  16202. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16203. 1
  16204. ) {
  16205. var bbb = parseInt(this.courseType) + 1;
  16206. if (
  16207. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16208. this.courseDetail.userid != this.userid &&
  16209. (!this.courseDetail.course_teacher ||
  16210. (this.courseDetail.course_teacher &&
  16211. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16212. this.IsLookOpen
  16213. ) {
  16214. this.$message.error("任务未解锁");
  16215. return;
  16216. }
  16217. this.navList[this.courseType].isOpen = false;
  16218. this.courseType++;
  16219. this.taskCount = 0;
  16220. this.navList[this.courseType].isOpen = true;
  16221. } else {
  16222. var bbb = parseInt(this.taskCount) + 1;
  16223. if (
  16224. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16225. .isLook &&
  16226. this.courseDetail.userid != this.userid &&
  16227. (!this.courseDetail.course_teacher ||
  16228. (this.courseDetail.course_teacher &&
  16229. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16230. this.IsLookOpen
  16231. ) {
  16232. this.$message.error("任务未解锁");
  16233. return;
  16234. }
  16235. this.taskCount++;
  16236. }
  16237. if (this.IsLookOpen) {
  16238. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16239. this.taskCount
  16240. ].isLook = true;
  16241. this.addCourseState(3);
  16242. }
  16243. }
  16244. // if (
  16245. // this.taskCount ==
  16246. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16247. // ) {
  16248. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16249. // } else {
  16250. // this.taskCount++;
  16251. // }
  16252. }
  16253. document.scrollingElement.scrollTop = 0;
  16254. this.showType = 7;
  16255. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16256. // if (this.vedio[this.taskCount].length > 0) {
  16257. // var a =
  16258. // document.getElementsByClassName("box_course")[this.taskCount]
  16259. // .offsetHeight;
  16260. // document.getElementsByClassName("vedioList")[
  16261. // this.taskCount
  16262. // ].style.height = a + "px";
  16263. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16264. // a - 40 + "px";
  16265. // }
  16266. this.isNoHomeWork = false;
  16267. (this.studyJuri = [
  16268. {
  16269. content: "",
  16270. cover: [],
  16271. upVedio: [],
  16272. upFile: [],
  16273. },
  16274. ]),
  16275. (this.radio = []);
  16276. this.isClickNav = "";
  16277. this.selectPz();
  16278. this.getHomeWork();
  16279. this.getCourseDetail(2);
  16280. this.$forceUpdate();
  16281. },
  16282. openTask(s, n, i,ctype) {
  16283. if (this.IsFollow && this.tType == 2) {
  16284. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16285. return;
  16286. }
  16287. if (this.IsLookOpen) {
  16288. if (
  16289. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16290. this.courseDetail.userid != this.userid &&
  16291. (!this.courseDetail.course_teacher ||
  16292. (this.courseDetail.course_teacher &&
  16293. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16294. ) {
  16295. this.$message.error("任务未解锁");
  16296. return;
  16297. }
  16298. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16299. if (
  16300. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16301. .isLook
  16302. ) {
  16303. this.$message.error("上一任务未解锁");
  16304. return;
  16305. }
  16306. } else if (s > this.courseType) {
  16307. if (n > 0) {
  16308. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16309. this.$message.error("上一任务未解锁");
  16310. return;
  16311. }
  16312. } else {
  16313. if (
  16314. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16315. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16316. ].isLook
  16317. ) {
  16318. this.$message.error("上一任务未解锁");
  16319. return;
  16320. }
  16321. }
  16322. }
  16323. }
  16324. if (this.navList[s].task[n].isOpen == true && ctype != 2) {
  16325. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16326. return;
  16327. }
  16328. let flag = this.courseType==s;
  16329. this.courseType = s;
  16330. this.navId = i;
  16331. this.taskCount = n;
  16332. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  16333. if(ctype == 2){
  16334. this.navList[s].task[n].isOpen = true
  16335. }else{
  16336. this.navList[this.courseType].task[this.taskCount].isOpen =
  16337. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16338. }
  16339. if (this.IsLookOpen) {
  16340. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16341. this.taskCount
  16342. ].isLook = true;
  16343. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  16344. this.addCourseState(3,yym);
  16345. }
  16346. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16347. this.isCloseList[ci].isClose = 0;
  16348. this.isCloseList[ci].isCloseBoolean = false;
  16349. this.$nextTick(()=>{
  16350. setTimeout(()=>{
  16351. setTimeout(()=>{
  16352. this.panToolHeight('tool-'+ci);
  16353. }, 0)
  16354. }, 0)
  16355. })
  16356. }
  16357. this.showType = 0;
  16358. this.isNoHomeWork = false;
  16359. (this.studyJuri = [
  16360. {
  16361. content: "",
  16362. cover: [],
  16363. upVedio: [],
  16364. upFile: [],
  16365. },
  16366. ]),
  16367. (this.radio = []);
  16368. document.scrollingElement.scrollTop = 0;
  16369. // setTimeout(() => {
  16370. // let a = document.getElementById(i);
  16371. // if (a.offsetTop - 110 == 0) {
  16372. // window.scrollTo(0, 0);
  16373. // } else {
  16374. // window.scrollTo(0, a.offsetTop);
  16375. // }
  16376. // }, 0);
  16377. for (var z = 0; z < this.navList.length; z++) {
  16378. for (var q = 0; q < this.navList[z].task.length; q++) {
  16379. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16380. this.navList[z].task[q].tool[w].isTool = false;
  16381. }
  16382. }
  16383. }
  16384. this.selectPz();
  16385. this.getHomeWork();
  16386. this.getCourseDetail(2);
  16387. if(flag){
  16388. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16389. }else{
  16390. 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>`)
  16391. }
  16392. },
  16393. get(i) {
  16394. if (this.IsFollow && this.tType == 2) {
  16395. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16396. return;
  16397. }
  16398. // for(var k=0;k<this.navList.length;k++){
  16399. // this.navList[k].isOpen = false;
  16400. // }
  16401. // this.navList[i].isOpen = true;
  16402. let a = this.navList[i].isOpen
  16403. this.navList[i].isOpen = !this.navList[i].isOpen;
  16404. this.$forceUpdate()
  16405. if (this.navList[i].isOpen) {
  16406. this.openTask(i, 0, (i + "-0"),2);
  16407. }
  16408. },
  16409. addQuestion() {
  16410. this.answerList.push({
  16411. answerTitle: this.answerQ,
  16412. answer: this.questionAnswer,
  16413. });
  16414. let params = [
  16415. {
  16416. uid: this.userid,
  16417. cid: this.id,
  16418. stage: this.courseType,
  16419. task: this.taskCount,
  16420. tool: this.toolindex,
  16421. content: JSON.stringify(this.answerList),
  16422. type: 3,
  16423. },
  16424. ];
  16425. this.ajax
  16426. .post(this.$store.state.api + "addCourseWorks", params)
  16427. .then((res) => {
  16428. this.$message({
  16429. message: "提交成功",
  16430. type: "success",
  16431. });
  16432. this.answerList = [];
  16433. this.answerDialogVisible = false;
  16434. this.selectStudent();
  16435. this.selectSWorks();
  16436. this.selectSLook();
  16437. })
  16438. .catch((err) => {
  16439. this.$message.error("提交失败");
  16440. console.error(err);
  16441. });
  16442. },
  16443. addQuestionTeacher() {
  16444. this.answerList.push({
  16445. answerTitle: this.answerQ,
  16446. answer: this.questionAnswer,
  16447. });
  16448. let params = [
  16449. {
  16450. uid: this.sStudent.userid,
  16451. cid: this.id,
  16452. stage: this.courseType,
  16453. task: this.taskCount,
  16454. tool: this.toolindex,
  16455. content: JSON.stringify(this.answerList),
  16456. type: 3,
  16457. ateacher: this.userid,
  16458. },
  16459. ];
  16460. this.ajax
  16461. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16462. .then((res) => {
  16463. this.$message({
  16464. message: "提交成功",
  16465. type: "success",
  16466. });
  16467. this.answerList = [];
  16468. this.questionAnswer = "";
  16469. this.answerDialogVisibleTeacher = false;
  16470. this.selectStudent();
  16471. this.selectSWorks();
  16472. this.selectSLook();
  16473. })
  16474. .catch((err) => {
  16475. this.$message.error("提交失败");
  16476. console.error(err);
  16477. });
  16478. },
  16479. refreshCourse() {
  16480. // window.location.reload();
  16481. this.navList = [];
  16482. this.getCourseDetail(1);
  16483. },
  16484. getCourseDetail(type, gindex) {
  16485. let loading;
  16486. if (type != 2) {
  16487. loading = this.$loading.service({
  16488. background: "rgba(255, 255, 255, 0.7)",
  16489. target: document.querySelector(".student_table"),
  16490. });
  16491. }
  16492. this.downLoading = false
  16493. // this.navList[0].isOpen = false;
  16494. // this.navList[this.courseType].isOpen = true;
  16495. // this.courseType = this.courseTypeLine;
  16496. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16497. let params = {
  16498. courseId: this.id,
  16499. };
  16500. this.ajax
  16501. .get(this.$store.state.api + "selectCourseDetail3", params)
  16502. .then((res) => {
  16503. if (type != 2) {
  16504. loading.close();
  16505. if (
  16506. this.courseType >
  16507. JSON.parse(res.data[0][0].chapters).length - 1
  16508. ) {
  16509. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16510. }
  16511. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16512. .chapterInfo[0].taskJson;
  16513. var b = [
  16514. "AVI",
  16515. "NAVI",
  16516. "MPEG",
  16517. "ASF",
  16518. "MOV",
  16519. "WMV",
  16520. "3GP",
  16521. "RM",
  16522. "RMVB",
  16523. "FLV",
  16524. "F4V",
  16525. "H.264",
  16526. "H.265",
  16527. "REAL VIDEO",
  16528. "MKV",
  16529. "WebM",
  16530. "HDDVD",
  16531. "MP4",
  16532. "MPG",
  16533. "M4V",
  16534. "MGV",
  16535. "OGV",
  16536. "QTM",
  16537. "STR",
  16538. "AMC",
  16539. "DVX",
  16540. "EVO",
  16541. "DAT",
  16542. "OGG",
  16543. "OGM",
  16544. "MP3",
  16545. ];
  16546. let _chapterData = [];
  16547. for (var i = 0; i < a.length; i++) {
  16548. var c = a[i].chapterData;
  16549. this.vedio[i] = [];
  16550. this.textList[i] = [];
  16551. this.lineList[i] = [];
  16552. this.chapToolList[i] = [];
  16553. this.file[i] = [];
  16554. this.fileC[i] = [];
  16555. _chapterData[i] = c.filter((el) => {
  16556. return el.type != 12;
  16557. });
  16558. this.fileC[i] = c.filter((el) => {
  16559. return el.type == 12;
  16560. });
  16561. if (this.tType == 2) {
  16562. if (this.fileC[i].length) {
  16563. let yym1 = this.fileC[i].filter(e=>{
  16564. if(!converter(e.name).includes(converter("教案"))){
  16565. return e
  16566. }
  16567. })
  16568. this.fileC[i] = yym1
  16569. }
  16570. }
  16571. // else if (c[j].type == 12) {
  16572. // this.fileC[i].push(c[j]);
  16573. // }
  16574. for (var j = 0; j < c.length; j++) {
  16575. if (c[j].type == 7) {
  16576. this.chapToolList[i].push(c[j]);
  16577. } else if (c[j].type == 8 || c[j].type == 14) {
  16578. this.lineList[i].push(c[j]);
  16579. } else if (c[j].type == 6) {
  16580. this.textList[i].push(c[j]);
  16581. } else {
  16582. if (
  16583. b.indexOf(
  16584. c[j].url
  16585. .split(".")
  16586. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16587. ) != -1
  16588. ) {
  16589. this.vedio[i].push(c[j]);
  16590. } else {
  16591. this.file[i].push(c[j]);
  16592. }
  16593. }
  16594. }
  16595. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16596. d.sources[0].src =
  16597. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16598. this.playerO[i] = d;
  16599. }
  16600. this.courseDetail = res.data[0][0];
  16601. this.tcid = this.arrayToArray(
  16602. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16603. this.tcid2 ? this.tcid2.split(",") : []
  16604. ).join(",");
  16605. this.evalua = res.data[0][0].evaId;
  16606. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16607. this.courseType
  16608. ];
  16609. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16610. if (this.tcid && res.data[1].length) {
  16611. let _inviteA = [];
  16612. for (var ik = 0; ik < res.data[1].length; ik++) {
  16613. _inviteA.push({
  16614. cid: res.data[1][ik].classid,
  16615. ic: res.data[1][ik].code,
  16616. });
  16617. }
  16618. for (var ik = 0; ik < _inviteA.length; ik++) {
  16619. if (
  16620. this.arrayToArray(
  16621. _inviteA[ik].cid.split(","),
  16622. this.tcid.split(",")
  16623. ).length
  16624. ) {
  16625. this.inviteCode = _inviteA[ik].ic;
  16626. break;
  16627. }
  16628. }
  16629. }
  16630. for (var l = 0; l < this.chapInfoList.length; l++) {
  16631. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16632. for (var m = 0; m < w.length; m++) {
  16633. w[m].id = l + "-" + m;
  16634. }
  16635. }
  16636. if (
  16637. _chapterData[this.taskCount].length &&
  16638. _chapterData[this.taskCount][0].type == 2
  16639. ) {
  16640. this.showType = 0;
  16641. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16642. } else {
  16643. if (_chapterData[this.taskCount].length > 0) {
  16644. let _url = _chapterData[this.taskCount][0].url;
  16645. if (
  16646. _chapterData[this.taskCount][0].type == 8 ||
  16647. _chapterData[this.taskCount][0].type == 14
  16648. ) {
  16649. this.showType = 2;
  16650. if (
  16651. _url.indexOf("https://") == -1 &&
  16652. _url.indexOf("http://") == -1
  16653. ) {
  16654. _url = "https://" + _url;
  16655. }
  16656. this.pptImgUrl1 = _url;
  16657. } else if (_chapterData[this.taskCount][0].type == 3) {
  16658. if (
  16659. _url
  16660. .split(".")
  16661. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16662. ) {
  16663. this.showType = 3;
  16664. this.pptImgUrl1 = _url;
  16665. } else if (
  16666. this.isAssetTypeAnImage(
  16667. _url
  16668. .split(".")
  16669. [_url.split(".").length - 1].toLocaleLowerCase()
  16670. )
  16671. ) {
  16672. this.showType = 4;
  16673. this.pptImgUrl1 = _url;
  16674. } else {
  16675. this.showType = 2;
  16676. this.pptImgUrl1 =
  16677. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16678. encodeURIComponent(_url);
  16679. }
  16680. } else if (_chapterData[this.taskCount][0].type == 13) {
  16681. this.showType = 4;
  16682. this.pptImgUrl1 = _url;
  16683. } else if (_chapterData[this.taskCount][0].type == 6) {
  16684. this.showType = 1;
  16685. this.text = this.textList[this.taskCount][0];
  16686. }
  16687. }
  16688. }
  16689. this.isClickNav = 0;
  16690. if (
  16691. !_chapterData[this.taskCount].length ||
  16692. _chapterData[this.taskCount][0].type == 12
  16693. ) {
  16694. this.isClickNav = "";
  16695. this.showType = "";
  16696. }
  16697. if (this.tType == 2) {
  16698. _chapterData.forEach((e,i)=>{
  16699. if (e.length) {
  16700. let yym = e.filter(k=>{
  16701. if(!converter(k.name).includes(converter("教案"))){
  16702. return k
  16703. }
  16704. })
  16705. _chapterData[i] = yym
  16706. }
  16707. })
  16708. }
  16709. this.vChapterData = _chapterData;
  16710. } else {
  16711. this.showType = 0;
  16712. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16713. .chapterInfo[0].taskJson;
  16714. var b = [
  16715. "AVI",
  16716. "NAVI",
  16717. "MPEG",
  16718. "ASF",
  16719. "MOV",
  16720. "WMV",
  16721. "3GP",
  16722. "RM",
  16723. "RMVB",
  16724. "FLV",
  16725. "F4V",
  16726. "H.264",
  16727. "H.265",
  16728. "REAL VIDEO",
  16729. "MKV",
  16730. "WebM",
  16731. "HDDVD",
  16732. "MP4",
  16733. "MPG",
  16734. "M4V",
  16735. "MGV",
  16736. "OGV",
  16737. "QTM",
  16738. "STR",
  16739. "AMC",
  16740. "DVX",
  16741. "EVO",
  16742. "DAT",
  16743. "OGG",
  16744. "OGM",
  16745. "MP3",
  16746. ];
  16747. let _chapterData = [];
  16748. for (var i = 0; i < a.length; i++) {
  16749. var c = a[i].chapterData;
  16750. this.vedio[i] = [];
  16751. this.textList[i] = [];
  16752. this.lineList[i] = [];
  16753. this.chapToolList[i] = [];
  16754. this.file[i] = [];
  16755. this.fileC[i] = [];
  16756. _chapterData[i] = c.filter((el) => {
  16757. return el.type != 12;
  16758. });
  16759. this.fileC[i] = c.filter((el) => {
  16760. return el.type == 12;
  16761. });
  16762. if (this.tType == 2) {
  16763. if (this.fileC[i].length) {
  16764. let yym1 = this.fileC[i].filter(e=>{
  16765. if(!converter(e.name).includes(converter("教案"))){
  16766. return e
  16767. }
  16768. })
  16769. this.fileC[i] = yym1
  16770. }
  16771. }
  16772. for (var j = 0; j < c.length; j++) {
  16773. if (c[j].type == 7) {
  16774. this.chapToolList[i].push(c[j]);
  16775. } else if (c[j].type == 8 || c[j].type == 14) {
  16776. this.lineList[i].push(c[j]);
  16777. } else if (c[j].type == 6) {
  16778. this.textList[i].push(c[j]);
  16779. } else {
  16780. if (
  16781. b.indexOf(
  16782. c[j].url
  16783. .split(".")
  16784. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16785. ) != -1
  16786. ) {
  16787. this.vedio[i].push(c[j]);
  16788. } else {
  16789. this.file[i].push(c[j]);
  16790. }
  16791. }
  16792. }
  16793. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16794. d.sources[0].src =
  16795. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16796. this.playerO[i] = d;
  16797. }
  16798. if (
  16799. _chapterData[this.taskCount].length &&
  16800. _chapterData[this.taskCount][0].type == 2
  16801. ) {
  16802. this.showType = 0;
  16803. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16804. } else {
  16805. if (_chapterData[this.taskCount].length > 0) {
  16806. let _url = _chapterData[this.taskCount][0].url;
  16807. if (
  16808. _chapterData[this.taskCount][0].type == 8 ||
  16809. _chapterData[this.taskCount][0].type == 14
  16810. ) {
  16811. this.showType = 2;
  16812. if (
  16813. _url.indexOf("https://") == -1 &&
  16814. _url.indexOf("http://") == -1
  16815. ) {
  16816. _url = "https://" + _url;
  16817. }
  16818. this.pptImgUrl1 = _url;
  16819. } else if (_chapterData[this.taskCount][0].type == 3) {
  16820. if (
  16821. _url
  16822. .split(".")
  16823. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16824. ) {
  16825. this.showType = 3;
  16826. this.pptImgUrl1 = _url;
  16827. } else if (
  16828. this.isAssetTypeAnImage(
  16829. _url
  16830. .split(".")
  16831. [_url.split(".").length - 1].toLocaleLowerCase()
  16832. )
  16833. ) {
  16834. this.showType = 4;
  16835. this.pptImgUrl1 = _url;
  16836. } else {
  16837. this.showType = 2;
  16838. this.pptImgUrl1 =
  16839. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16840. encodeURIComponent(_url);
  16841. }
  16842. } else if (_chapterData[this.taskCount][0].type == 13) {
  16843. this.showType = 4;
  16844. this.pptImgUrl1 = _url;
  16845. } else if (_chapterData[this.taskCount][0].type == 6) {
  16846. this.showType = 1;
  16847. this.text = this.textList[this.taskCount][0];
  16848. }
  16849. }
  16850. }
  16851. this.isClickNav = 0;
  16852. if (
  16853. !_chapterData[this.taskCount].length ||
  16854. _chapterData[this.taskCount][0].type == 12
  16855. ) {
  16856. this.isClickNav = "";
  16857. this.showType = "";
  16858. }
  16859. console.log('_chapterData66666',_chapterData);
  16860. if (this.tType == 2) {
  16861. _chapterData.forEach((e,i)=>{
  16862. if (e.length) {
  16863. let yym = e.filter(k=>{
  16864. if(!converter(k.name).includes(converter("教案"))){
  16865. return k
  16866. }
  16867. })
  16868. _chapterData[i] = yym
  16869. }
  16870. })
  16871. }
  16872. this.vChapterData = _chapterData;
  16873. this.$forceUpdate();
  16874. }
  16875. // else {
  16876. // this.courseDetail = res.data[0][0];
  16877. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16878. // }
  16879. let _this = this;
  16880. if (_this.timer) {
  16881. clearInterval(_this.timer);
  16882. _this.timer = null;
  16883. }
  16884. if (_this.tcid) {
  16885. _this.getCourseGroup(gindex);
  16886. } else {
  16887. _this.selectSWorks(gindex);
  16888. }
  16889. _this.selectStudent();
  16890. _this.selectSLook();
  16891. _this.getPick();
  16892. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16893. _this.setCTask();
  16894. }
  16895. if (_this.dialogVisibleGroup) {
  16896. _this.groupJson =
  16897. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16898. _this.taskCount
  16899. ].toolChoose[_this.toolindex].groupJson;
  16900. }
  16901. _this.$nextTick(() => {
  16902. setTimeout(() => {
  16903. _this.checkEva();
  16904. }, 1000);
  16905. });
  16906. _this.timer = setInterval(function () {
  16907. // _this.getCourseDetail(2);
  16908. if (_this.tcid) {
  16909. _this.getCourseGroup(gindex);
  16910. } else {
  16911. _this.selectSWorks(gindex);
  16912. }
  16913. _this.selectStudent();
  16914. _this.selectSLook();
  16915. _this.getPick();
  16916. // _this.getSplitScreenData();
  16917. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16918. _this.setCTask();
  16919. }
  16920. if (_this.dialogVisibleGroup) {
  16921. _this.groupJson =
  16922. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16923. _this.taskCount
  16924. ].toolChoose[_this.toolindex].groupJson;
  16925. }
  16926. if (_this.tType == 4 || _this.ispzType == 4) {
  16927. _this.selectPz();
  16928. }
  16929. }, 5000);
  16930. if (_this.timer2 == null) {
  16931. _this.timer2 = setInterval(()=> {
  16932. _this.getSplitScreenData();//获取分屏数据
  16933. }, 5000);
  16934. }
  16935. _this.$nextTick(function () {
  16936. setTimeout(() => {
  16937. // var a =
  16938. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16939. // document.getElementsByClassName("vedioList")[0].style.height =
  16940. // a + "px";
  16941. // document.getElementsByClassName("navBox")[0].style.height =
  16942. // a - 40 + "px";
  16943. // if (_this.vedio[_this.taskCount].length > 0) {
  16944. // _this.vedioTime = [];
  16945. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16946. // _this.vedioTime[i] = document.getElementsByClassName(
  16947. // "vjs-duration-display"
  16948. // )[i].textContent;
  16949. // }
  16950. // }
  16951. }, 1000);
  16952. });
  16953. })
  16954. .catch((err) => {
  16955. loading.close();
  16956. console.error(err);
  16957. });
  16958. },
  16959. getCourseGroup(gindex) {
  16960. let params = {
  16961. cid: this.id,
  16962. classid: this.tcid ? this.tcid : "1",
  16963. };
  16964. this.ajax
  16965. .get(this.$store.state.api + "getCourseGroup", params)
  16966. .then((res) => {
  16967. if (res.data && res.data[0].length) {
  16968. if (!this.isGroup) {
  16969. let courseGroup = JSON.parse(res.data[0][0].group);
  16970. courseGroup.group = courseGroup.group.filter((el) => {
  16971. el.works = [];
  16972. return el;
  16973. });
  16974. if (courseGroup.isopen == 2) {
  16975. this.isGroup = false;
  16976. this.selectSWorks(gindex);
  16977. return;
  16978. }
  16979. this.courseGroup = courseGroup;
  16980. let groupPerson = res.data[1];
  16981. let group = JSON.parse(res.data[0][0].group).group;
  16982. let courseGroupStudent = {};
  16983. let courseGroupStudentUid = {};
  16984. for (var i = 0; i < group.length; i++) {
  16985. courseGroupStudent[group[i].id] = [];
  16986. courseGroupStudentUid[group[i].id] = [];
  16987. for (var j = 0; j < groupPerson.length; j++) {
  16988. if (groupPerson[j].groupCid == group[i].id) {
  16989. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16990. courseGroupStudentUid[group[i].id].push(
  16991. groupPerson[j].userid
  16992. );
  16993. }
  16994. }
  16995. }
  16996. this.courseGroupStudent = courseGroupStudent;
  16997. this.courseGroupStudentUid = courseGroupStudentUid;
  16998. }
  16999. if (this.courseGroup.isopen == 2) {
  17000. this.isGroup = false;
  17001. } else {
  17002. this.isGroup = true;
  17003. }
  17004. this.selectSWorks(gindex);
  17005. } else {
  17006. this.selectSWorks(gindex);
  17007. this.isGroup = false;
  17008. }
  17009. })
  17010. .catch((err) => {
  17011. // this.$message.error("网络不佳");
  17012. console.error(err);
  17013. });
  17014. },
  17015. setOperationTime() {
  17016. let _this = this;
  17017. if (_this.opertimer) {
  17018. clearInterval(_this.opertimer);
  17019. _this.opertimer = null;
  17020. }
  17021. _this.opertimer = setInterval(() => {
  17022. _this.setoTime("600");
  17023. }, 600000);
  17024. },
  17025. setoTime(time) {
  17026. let params = [
  17027. {
  17028. uid: this.userid,
  17029. cid: this.id,
  17030. type: "2",
  17031. time: time,
  17032. },
  17033. ];
  17034. this.ajax
  17035. .post(this.$store.state.api + "addOperationTimeT2", params)
  17036. .then((res) => {})
  17037. .catch((err) => {
  17038. console.error(err);
  17039. });
  17040. },
  17041. addPz(type, content) {
  17042. if (type == "1" && this.pzConText == "") {
  17043. this.$message.error("评论不能为空!");
  17044. return;
  17045. }
  17046. let params = [
  17047. {
  17048. cid: this.id,
  17049. uid: this.userid,
  17050. s: this.courseType,
  17051. t: this.taskCount,
  17052. c: type == "1" ? this.pzConText : content,
  17053. type: type,
  17054. },
  17055. ];
  17056. this.ajax
  17057. .post(this.$store.state.api + "addPz2", params)
  17058. .then((res) => {
  17059. this.$message({
  17060. message: "添加成功",
  17061. type: "success",
  17062. });
  17063. this.pzConText = "";
  17064. this.addPzDialog = false;
  17065. this.selectPz();
  17066. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17067. })
  17068. .catch((err) => {
  17069. this.$message.error("添加失败");
  17070. console.error(err);
  17071. });
  17072. },
  17073. setReplyIndex(id, i) {
  17074. this.replyIndex = i;
  17075. this.replyPid = id;
  17076. this.replyDialogVisible = true;
  17077. },
  17078. addHf() {
  17079. if (this.reply == "") {
  17080. this.$message.error("回复不能为空!");
  17081. return;
  17082. }
  17083. let params = [
  17084. {
  17085. cid: this.id,
  17086. uid: this.userid,
  17087. s: this.courseType,
  17088. t: this.taskCount,
  17089. type: "1",
  17090. ct: 2,
  17091. pid: this.replyPid,
  17092. c: this.reply,
  17093. },
  17094. ];
  17095. this.ajax
  17096. .post(this.$store.state.api + "addHf", params)
  17097. .then((res) => {
  17098. this.reply = "";
  17099. this.$message({
  17100. message: "回复成功",
  17101. type: "success",
  17102. });
  17103. this.replyDialogVisible = false;
  17104. this.selectPz();
  17105. })
  17106. .catch((err) => {
  17107. this.$message.error("回复失败");
  17108. console.error(err);
  17109. });
  17110. },
  17111. deletePz(id) {
  17112. this.$confirm("确定删除此评论吗?", "提示", {
  17113. confirmButtonText: "确定",
  17114. cancelButtonText: "取消",
  17115. type: "warning",
  17116. })
  17117. .then(() => {
  17118. let params = [
  17119. {
  17120. id: id,
  17121. },
  17122. ];
  17123. this.ajax
  17124. .post(this.$store.state.api + "deletePz", params)
  17125. .then((res) => {
  17126. this.$message({
  17127. message: "删除成功",
  17128. type: "success",
  17129. });
  17130. this.selectPz();
  17131. })
  17132. .catch((err) => {
  17133. this.$message.error("网络异常");
  17134. console.error(err);
  17135. });
  17136. })
  17137. .catch(() => {});
  17138. },
  17139. deleteReply(id) {
  17140. this.$confirm("确定删除此回复吗?", "提示", {
  17141. confirmButtonText: "确定",
  17142. cancelButtonText: "取消",
  17143. type: "warning",
  17144. })
  17145. .then(() => {
  17146. let params = [
  17147. {
  17148. id: id,
  17149. },
  17150. ];
  17151. this.ajax
  17152. .post(this.$store.state.api + "deleteReply", params)
  17153. .then((res) => {
  17154. this.$message({
  17155. message: "删除成功",
  17156. type: "success",
  17157. });
  17158. this.selectPz();
  17159. })
  17160. .catch((err) => {
  17161. this.$message.error("网络异常");
  17162. console.error(err);
  17163. });
  17164. })
  17165. .catch(() => {});
  17166. },
  17167. setPz() {
  17168. if (this.ispzType == 4) {
  17169. this.ispzType = 0;
  17170. this.pzDialog = false;
  17171. return;
  17172. }
  17173. this.ispzType = 4;
  17174. this.pzDialog = true;
  17175. this.selectPz();
  17176. },
  17177. selectPz() {
  17178. let params = {
  17179. cid: this.id,
  17180. s: this.courseType,
  17181. t: this.taskCount,
  17182. type: this.pzStype,
  17183. uid: this.userid,
  17184. };
  17185. this.ajax
  17186. .get(this.$store.state.api + "selectPzListType", params)
  17187. .then((res) => {
  17188. this.pzList = res.data[0];
  17189. var a = res.data[1];
  17190. for (var i = 0; i < a.length; i++) {
  17191. for (var j = 0; j < this.pzList.length; j++) {
  17192. if (!this.pzList[j].hfList) {
  17193. this.pzList[j].hfList = [];
  17194. }
  17195. if (a[i].pid == this.pzList[j].id) {
  17196. this.pzList[j].hfList.push(a[i]);
  17197. }
  17198. }
  17199. }
  17200. })
  17201. .catch((err) => {
  17202. console.error(err);
  17203. });
  17204. },
  17205. // selectHf() {
  17206. // let params = {
  17207. // cid: this.id,
  17208. // s: this.courseType,
  17209. // t: this.taskCount,
  17210. // };
  17211. // this.ajax
  17212. // .get(this.$store.state.api + "selectHfList", params)
  17213. // .then((res) => {
  17214. // var a = res.data[0];
  17215. // for (var i = 0; i < a.length; i++) {
  17216. // for (var j = 0; j < this.pzList.length; j++) {
  17217. // if (!this.pzList[i].hfList) {
  17218. // this.pzList[i].hfList = [];
  17219. // }
  17220. // if (a[i].pid == this.pzList[j].id) {
  17221. // this.pzList[i].hfList.push(a[i]);
  17222. // }
  17223. // }
  17224. // }
  17225. // })
  17226. // .catch((err) => {
  17227. // console.error(err);
  17228. // });
  17229. // },
  17230. updateSLook() {
  17231. let params = {
  17232. sopen: this.sIsOpen == false ? 1 : 2,
  17233. cid: this.id,
  17234. };
  17235. this.ajax
  17236. .get(this.$store.state.api + "updateCourseSLook", params)
  17237. .then((res) => {
  17238. if (this.sIsOpen == true) {
  17239. this.$message({
  17240. message: "权限设置成功",
  17241. type: "success",
  17242. });
  17243. } else {
  17244. this.$message({
  17245. message: "权限关闭成功",
  17246. type: "success",
  17247. });
  17248. }
  17249. })
  17250. .catch((err) => {
  17251. console.error(err);
  17252. });
  17253. },
  17254. updateFollow() {
  17255. let params = [
  17256. {
  17257. sopen: this.IsFollow == false ? 1 : 2,
  17258. cid: this.id,
  17259. },
  17260. ];
  17261. this.ajax
  17262. .post(this.$store.state.api + "updateCourseFollow", params)
  17263. .then((res) => {
  17264. if (this.IsFollow == true) {
  17265. this.$message({
  17266. message: "开启成功",
  17267. type: "success",
  17268. });
  17269. } else {
  17270. this.$message({
  17271. message: "关闭成功",
  17272. type: "success",
  17273. });
  17274. }
  17275. this.setCTask();
  17276. })
  17277. .catch((err) => {
  17278. console.error(err);
  17279. });
  17280. },
  17281. setCTask() {
  17282. let params = [
  17283. {
  17284. sopen: this.courseType + "-" + this.taskCount,
  17285. cid: this.id,
  17286. },
  17287. ];
  17288. this.ajax
  17289. .post(this.$store.state.api + "updateCourseFollowC", params)
  17290. .then((res) => {})
  17291. .catch((err) => {
  17292. console.error(err);
  17293. });
  17294. },
  17295. updateLookOpen() {
  17296. let params = [
  17297. {
  17298. sopen: this.IsLookOpen == false ? 1 : 2,
  17299. cid: this.id,
  17300. },
  17301. ];
  17302. this.ajax
  17303. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17304. .then((res) => {
  17305. if (this.IsLookOpen == true) {
  17306. // if (this.courseType != 0 && this.taskCount != 0) {
  17307. // this.openTask(0, 0, "0-0");
  17308. // }
  17309. this.$message({
  17310. message: "权限设置成功",
  17311. type: "success",
  17312. });
  17313. } else {
  17314. this.$message({
  17315. message: "权限关闭成功",
  17316. type: "success",
  17317. });
  17318. }
  17319. this.getCourseState(2);
  17320. })
  17321. .catch((err) => {
  17322. console.error(err);
  17323. });
  17324. },
  17325. selectSLook() {
  17326. let params = {
  17327. cid: this.id,
  17328. };
  17329. this.ajax
  17330. .get(this.$store.state.api + "selectCourseSLook", params)
  17331. .then((res) => {
  17332. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17333. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17334. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17335. if (!this.IsLookOpen) {
  17336. this.setNavList();
  17337. } else {
  17338. this.getCourseState(1);
  17339. }
  17340. if ((this.IsFollow && this.tType == 2)) {
  17341. this.setContent2(false);
  17342. let _followC = res.data[0][0].followC.split("-");
  17343. if (
  17344. this.courseType != _followC[0] ||
  17345. this.taskCount != _followC[1]
  17346. ) {
  17347. this.navList[this.courseType].isOpen = false;
  17348. this.courseType = _followC[0];
  17349. this.navList[this.courseType].isOpen = true;
  17350. this.taskCount = parseInt(_followC[1]);
  17351. this.navId = res.data[0][0].followC;
  17352. document.scrollingElement.scrollTop = 0;
  17353. this.getCourseDetail(2);
  17354. }
  17355. }
  17356. })
  17357. .catch((err) => {
  17358. console.error(err);
  17359. });
  17360. },
  17361. setNavList() {
  17362. if (this.navList.length == 0) {
  17363. this.navList = [];
  17364. var copyList = [];
  17365. for (var l = 0; l < this.chapInfoList.length; l++) {
  17366. var q = this.chapInfoList[l].dyName;
  17367. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17368. var e;
  17369. copyList.push({
  17370. dyName: q,
  17371. isOpen: l === 0 ? true : false,
  17372. task: [],
  17373. });
  17374. for (var r = 0; r < w.length; r++) {
  17375. e = w[r].task;
  17376. if (this.chapInfoList[l].easy == 1) {
  17377. copyList[l].task.push({
  17378. taskName: q,
  17379. id: l + "-" + r,
  17380. isLook: w[r].isLook,
  17381. isOpen: r === 0 ? true : false,
  17382. tool: [],
  17383. });
  17384. } else {
  17385. copyList[l].task.push({
  17386. taskName: e,
  17387. id: l + "-" + r,
  17388. isLook: w[r].isLook,
  17389. isOpen: r === 0 ? true : false,
  17390. tool: [],
  17391. });
  17392. }
  17393. var t = w[r].toolChoose;
  17394. for (var k = 0; k < t.length; k++) {
  17395. var tool = t[k].tool[0];
  17396. copyList[l].task[r].tool.push({
  17397. tool: tool,
  17398. isTool: false,
  17399. });
  17400. }
  17401. // this.navId = this.navId ? this.navId : l + "-" + r;
  17402. // this.navId = l + "-" + r;
  17403. }
  17404. }
  17405. this.navList = copyList;
  17406. this.navList[0].isOpen = false;
  17407. this.navList[this.courseType].isOpen = true;
  17408. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17409. } else {
  17410. this.setNavList2();
  17411. }
  17412. },
  17413. setNavList2() {
  17414. for (var l = 0; l < this.chapInfoList.length; l++) {
  17415. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17416. for (var r = 0; r < w.length; r++) {
  17417. this.navList[l].task[r].isLook = w[r].isLook;
  17418. }
  17419. }
  17420. if (
  17421. this.IsLookOpen &&
  17422. !this.navList[this.courseType].task[this.taskCount].isLook
  17423. ) {
  17424. this.openTask(0, 0, "0-0");
  17425. }
  17426. this.$forceUpdate();
  17427. },
  17428. getCourseState(type) {
  17429. let params = {
  17430. cid: this.id,
  17431. };
  17432. this.ajax
  17433. .get(this.$store.state.api + "getCourseState", params)
  17434. .then((res) => {
  17435. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17436. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17437. this.setNavList();
  17438. this.$forceUpdate();
  17439. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17440. this.addCourseState(2);
  17441. } else {
  17442. this.addCourseState(1);
  17443. }
  17444. })
  17445. .catch((err) => {
  17446. console.error(err);
  17447. });
  17448. },
  17449. addCourseState(type,val = '') {
  17450. let _state = val ? val : this.chapInfoList;
  17451. // this.courseType this.taskCount
  17452. if (type == 1 || type == 2) {
  17453. for (var i = 0; i < _state.length; i++) {
  17454. let el = _state[i].chapterInfo[0].taskJson;
  17455. for (var j = 0; j < el.length; j++) {
  17456. // if (i == 0 && j == 0) {
  17457. // el[j].isLook = true;
  17458. // } else {
  17459. // el[j].isLook = false;
  17460. // }
  17461. if (
  17462. this.courseType > i ||
  17463. (this.courseType == i && this.taskCount + 1 > j)
  17464. ) {
  17465. el[j].isLook = true;
  17466. } else {
  17467. el[j].isLook = false;
  17468. }
  17469. }
  17470. }
  17471. }
  17472. let params = [
  17473. {
  17474. cid: this.id,
  17475. state: JSON.stringify(_state),
  17476. },
  17477. ];
  17478. this.ajax
  17479. .post(
  17480. this.$store.state.api +
  17481. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17482. params
  17483. )
  17484. .then((res) => {
  17485. if (this.IsLookOpen) {
  17486. this.setNavList();
  17487. }
  17488. if (type == 3 && type == 2) {
  17489. this.getCourseState(1);
  17490. }
  17491. })
  17492. .catch((err) => {
  17493. console.error(err);
  17494. });
  17495. },
  17496. getHomeWork() {
  17497. let params = {
  17498. cid: this.id,
  17499. stage: this.courseType,
  17500. task: this.taskCount,
  17501. uid: this.userid,
  17502. };
  17503. this.ajax
  17504. .get(this.$store.state.api + "selectWork", params)
  17505. .then((res) => {
  17506. if (res.data[0].length > 0) {
  17507. this.studyJuri = JSON.parse(res.data[0][0].content);
  17508. this.isNoHomeWork = true;
  17509. }
  17510. })
  17511. .catch((err) => {
  17512. console.error(err);
  17513. });
  17514. },
  17515. isAssetTypeAnImage(ext) {
  17516. return (
  17517. [
  17518. "png",
  17519. "jpg",
  17520. "jpeg",
  17521. "bmp",
  17522. "gif",
  17523. "webp",
  17524. "psd",
  17525. "svg",
  17526. "tiff",
  17527. ].indexOf(ext) !== -1
  17528. );
  17529. },
  17530. switchVideo(media) {
  17531. this.playerO = {};
  17532. this.playerOptions.poster = "";
  17533. this.playerOptions.sources[0].src = media;
  17534. this.playerO = this.playerOptions;
  17535. },
  17536. onPlayerPlay() {},
  17537. onPlayerTimeupdate(player) {
  17538. let gklog = player.cache_.currentTime; //当前播放的秒数
  17539. let a = player.cache_.duration; //视频的总时长
  17540. let gklog2 = parseInt(gklog);
  17541. // if(gklog2 == '3'){
  17542. // player.pause()
  17543. // setTimeout(()=>{
  17544. // player.currentTime(gklog2+1)
  17545. // player.play()
  17546. // },1000)
  17547. // }
  17548. console.log(" onPlayerTimeupdate!", gklog);
  17549. console.log(" onPlayerTimeupdate!", gklog2);
  17550. },
  17551. lookVedio(u, i) {
  17552. this.isClickNav = "";
  17553. // this.playerOptions.sources[0].src = u;
  17554. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17555. d.sources[0].src = u;
  17556. this.playerO[this.taskCount] = d;
  17557. this.showType = 0;
  17558. // this.isClickNav = "video" + i;
  17559. this.isClickNav = i;
  17560. this.$forceUpdate();
  17561. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17562. },
  17563. lookText(i, t) {
  17564. this.isClickNav = "";
  17565. // this.text = this.textList[i][t];
  17566. this.text = this.vChapterData[i][t];
  17567. // this.dialogVisible1 = true;
  17568. this.showType = 1;
  17569. // this.isClickNav = "text" + t;
  17570. this.isClickNav = t;
  17571. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17572. },
  17573. lookTools(i, t) {
  17574. this.chapTools = this.chapToolList[i][t];
  17575. this.dialogVisible2 = true;
  17576. },
  17577. async openFile(f,w) {
  17578. this.pptImgUrl = "";
  17579. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17580. if (
  17581. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17582. -1
  17583. ) {
  17584. let _uuurl = await this.checkLink(f);
  17585. this.pptImgUrl =
  17586. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17587. this.showPDF = false;
  17588. this.dialogVisible3 = true;
  17589. } else if (
  17590. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17591. ) {
  17592. this.pptImgUrl = f;
  17593. this.showPDF = true;
  17594. this.dialogVisible3 = true;
  17595. }
  17596. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17597. },
  17598. openTable(f) {
  17599. this.tableJson = JSON.parse(f.works);
  17600. this.dialogVisibleTable2 = true;
  17601. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17602. },
  17603. openWord(f) {
  17604. this.tableJson = JSON.parse(f.works);
  17605. this.dialogVisibleTable3 = true;
  17606. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17607. },
  17608. doUrl(url, i) {
  17609. this.isClickNav = "";
  17610. this.pptImgUrl1 = "";
  17611. this.showType = 2;
  17612. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17613. url = "https://" + url;
  17614. }
  17615. this.pptImgUrl1 = "";
  17616. setTimeout(() => {
  17617. this.pptImgUrl1 = url;
  17618. }, 500);
  17619. // this.isClickNav = "line" + i;
  17620. this.isClickNav = i;
  17621. this.$forceUpdate();
  17622. },
  17623. checkPhoto(f, i) {
  17624. this.showType = 4;
  17625. this.pptImgUrl1 = f.url;
  17626. this.isClickNav = i;
  17627. this.$forceUpdate();
  17628. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17629. },
  17630. async downFile(f, i) {
  17631. this.isClickNav = "";
  17632. this.pptImgUrl1 = "";
  17633. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17634. if (
  17635. a.indexOf(
  17636. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17637. ) != -1
  17638. ) {
  17639. let _uuurl = await this.checkLink(f.url);
  17640. this.pptImgUrl1 =
  17641. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17642. // this.dialogVisible3 = true;
  17643. this.showType = 2;
  17644. } else if (
  17645. this.isAssetTypeAnImage(
  17646. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17647. )
  17648. ) {
  17649. this.showType = 4;
  17650. this.pptImgUrl1 = f.url;
  17651. } else if (
  17652. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17653. "PDF"
  17654. ) {
  17655. this.pptImgUrl1 = f.url;
  17656. // this.dialogVisible3 = true;
  17657. this.showType = 3;
  17658. } else {
  17659. window.open(this.file[i].url);
  17660. }
  17661. // this.isClickNav = "word" + i;
  17662. this.isClickNav = i;
  17663. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17664. },
  17665. downFileList(i) {
  17666. window.open(this.noImgList[i].url);
  17667. },
  17668. openAddWork() {
  17669. this.dialogVisible = true;
  17670. },
  17671. addBzWorks() {
  17672. let params = [
  17673. {
  17674. uid: this.userid,
  17675. cid: this.id,
  17676. stage: this.courseType,
  17677. task: this.taskCount,
  17678. tool: this.toolindex,
  17679. content: JSON.stringify(this.eScore),
  17680. type: 6,
  17681. },
  17682. ];
  17683. this.ajax
  17684. .post(this.$store.state.api + "addCourseWorks", params)
  17685. .then((res) => {
  17686. this.$message({
  17687. message: "提交成功",
  17688. type: "success",
  17689. });
  17690. this.eScore = { eBzText: "", eStar: [] };
  17691. this.studentEvalDialogVisible = false;
  17692. this.selectSWorks();
  17693. })
  17694. .catch((err) => {
  17695. this.$message.error("提交失败");
  17696. console.error(err);
  17697. });
  17698. },
  17699. addBzWorksTeacher() {
  17700. let params = [
  17701. {
  17702. uid: this.sStudent.userid,
  17703. cid: this.id,
  17704. stage: this.courseType,
  17705. task: this.taskCount,
  17706. tool: this.toolindex,
  17707. content: JSON.stringify(this.eScore),
  17708. type: 6,
  17709. },
  17710. ];
  17711. this.ajax
  17712. .post(this.$store.state.api + "addCourseWorks", params)
  17713. .then((res) => {
  17714. this.$message({
  17715. message: "提交成功",
  17716. type: "success",
  17717. });
  17718. this.eScore = { eBzText: "", eStar: [] };
  17719. this.studentEvalDialogVisibleTeacher = false;
  17720. this.selectSWorks();
  17721. })
  17722. .catch((err) => {
  17723. this.$message.error("提交失败");
  17724. console.error(err);
  17725. });
  17726. },
  17727. addStudentAsk() {
  17728. if (!this.radio.length) {
  17729. this.$message.error("请选择选项");
  17730. return;
  17731. }
  17732. for (var i = 0; i < this.askJson.askCount; i++) {
  17733. if (
  17734. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17735. (this.radio[i] !== 0 && !this.radio[i])
  17736. ) {
  17737. this.$message.error("请选择选项");
  17738. return;
  17739. }
  17740. }
  17741. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17742. let params = [
  17743. {
  17744. uid: this.userid,
  17745. cid: this.id,
  17746. stage: this.courseType,
  17747. task: this.taskCount,
  17748. tool: this.toolindex,
  17749. content: JSON.stringify(this.askList),
  17750. type: 2,
  17751. },
  17752. ];
  17753. this.ajax
  17754. .post(this.$store.state.api + "addCourseWorks", params)
  17755. .then((res) => {
  17756. this.$message({
  17757. message: "提交成功",
  17758. type: "success",
  17759. });
  17760. this.askList = [];
  17761. this.dialogVisible5 = false;
  17762. this.selectStudent();
  17763. this.selectSWorks();
  17764. this.selectSLook();
  17765. })
  17766. .catch((err) => {
  17767. this.$message.error("提交失败");
  17768. console.error(err);
  17769. });
  17770. },
  17771. addStudentAskTeacher() {
  17772. if (!this.radio.length) {
  17773. this.$message.error("请选择选项");
  17774. return;
  17775. }
  17776. for (var i = 0; i < this.askJson.askCount; i++) {
  17777. if (
  17778. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17779. (this.radio[i] !== 0 && !this.radio[i])
  17780. ) {
  17781. this.$message.error("请选择选项");
  17782. return;
  17783. }
  17784. }
  17785. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17786. let params = [
  17787. {
  17788. uid: this.sStudent.userid,
  17789. cid: this.id,
  17790. stage: this.courseType,
  17791. task: this.taskCount,
  17792. tool: this.toolindex,
  17793. content: JSON.stringify(this.askList),
  17794. type: 2,
  17795. },
  17796. ];
  17797. this.ajax
  17798. .post(this.$store.state.api + "addCourseWorks", params)
  17799. .then((res) => {
  17800. this.$message({
  17801. message: "提交成功",
  17802. type: "success",
  17803. });
  17804. this.askList = [];
  17805. this.dialogVisible5Teacher = false;
  17806. this.selectStudent();
  17807. this.selectSWorks();
  17808. this.selectSLook();
  17809. })
  17810. .catch((err) => {
  17811. this.$message.error("提交失败");
  17812. console.error(err);
  17813. });
  17814. },
  17815. addStudentTest() {
  17816. if (!this.radio.length) {
  17817. this.$message.error("请选择选项");
  17818. return;
  17819. }
  17820. for (var i = 0; i < this.testJson.testCount; i++) {
  17821. if (
  17822. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17823. (this.radio[i] !== 0 && !this.radio[i])
  17824. ) {
  17825. this.$message.error("请选择选项");
  17826. return;
  17827. }
  17828. }
  17829. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17830. let params = [
  17831. {
  17832. uid: this.userid,
  17833. cid: this.id,
  17834. stage: this.courseType,
  17835. task: this.taskCount,
  17836. tool: this.toolindex,
  17837. content: JSON.stringify(this.askList),
  17838. type: 8,
  17839. },
  17840. ];
  17841. this.ajax
  17842. .post(this.$store.state.api + "addCourseWorks", params)
  17843. .then((res) => {
  17844. this.$message({
  17845. message: "提交成功",
  17846. type: "success",
  17847. });
  17848. this.askList = [];
  17849. this.dialogVisibleChoice = false;
  17850. this.selectStudent();
  17851. this.selectSWorks();
  17852. this.selectSLook();
  17853. })
  17854. .catch((err) => {
  17855. this.$message.error("提交失败");
  17856. console.error(err);
  17857. });
  17858. },
  17859. addStudentTestTeacher() {
  17860. if (!this.radio.length) {
  17861. this.$message.error("请选择选项");
  17862. return;
  17863. }
  17864. for (var i = 0; i < this.testJson.testCount; i++) {
  17865. if (
  17866. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17867. (this.radio[i] !== 0 && !this.radio[i])
  17868. ) {
  17869. this.$message.error("请选择选项");
  17870. return;
  17871. }
  17872. }
  17873. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17874. let params = [
  17875. {
  17876. uid: this.sStudent.userid,
  17877. cid: this.id,
  17878. stage: this.courseType,
  17879. task: this.taskCount,
  17880. tool: this.toolindex,
  17881. content: JSON.stringify(this.askList),
  17882. type: 8,
  17883. },
  17884. ];
  17885. this.ajax
  17886. .post(this.$store.state.api + "addCourseWorks", params)
  17887. .then((res) => {
  17888. this.$message({
  17889. message: "提交成功",
  17890. type: "success",
  17891. });
  17892. this.askList = [];
  17893. this.dialogVisibleChoiceTeacher = false;
  17894. this.selectStudent();
  17895. this.selectSWorks();
  17896. this.selectSLook();
  17897. })
  17898. .catch((err) => {
  17899. this.$message.error("提交失败");
  17900. console.error(err);
  17901. });
  17902. },
  17903. addWork() {
  17904. if (this.studyJuri[0].content == "") {
  17905. this.$message.error("请将信息填写完整");
  17906. return;
  17907. } else if (this.studyJuri[0].cover.length == 0) {
  17908. this.$message.error("请将信息填写完整");
  17909. return;
  17910. } else if (this.studyJuri[0].upVedio.length == 0) {
  17911. this.$message.error("请将信息填写完整");
  17912. return;
  17913. }
  17914. if (this.isNoHomeWork) {
  17915. this.$confirm(
  17916. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17917. "提示",
  17918. {
  17919. confirmButtonText: "确定",
  17920. cancelButtonText: "取消",
  17921. type: "warning",
  17922. }
  17923. )
  17924. .then(() => {
  17925. let params = [
  17926. {
  17927. uid: this.userid,
  17928. cid: this.id,
  17929. stage: this.courseType,
  17930. task: this.taskCount,
  17931. content: JSON.stringify(this.studyJuri),
  17932. },
  17933. ];
  17934. this.ajax
  17935. .post(this.$store.state.api + "addWorks", params)
  17936. .then((res) => {
  17937. this.$message({
  17938. message: "提交成功",
  17939. type: "success",
  17940. });
  17941. this.isNoHomeWork = true;
  17942. this.dialogVisible = false;
  17943. })
  17944. .catch((err) => {
  17945. this.$message.error("提交失败");
  17946. console.error(err);
  17947. });
  17948. })
  17949. .catch(() => {});
  17950. } else {
  17951. let params = [
  17952. {
  17953. uid: this.userid,
  17954. cid: this.id,
  17955. stage: this.courseType,
  17956. task: this.taskCount,
  17957. content: JSON.stringify(this.studyJuri),
  17958. },
  17959. ];
  17960. this.ajax
  17961. .post(this.$store.state.api + "addWorks", params)
  17962. .then((res) => {
  17963. this.$message({
  17964. message: "提交成功",
  17965. type: "success",
  17966. });
  17967. this.isNoHomeWork = true;
  17968. this.dialogVisible = false;
  17969. })
  17970. .catch((err) => {
  17971. this.$message.error("提交失败");
  17972. console.error(err);
  17973. });
  17974. }
  17975. },
  17976. selectCount() {
  17977. let params = {
  17978. cid: this.id,
  17979. chid: this.courseType,
  17980. uid: this.userid,
  17981. };
  17982. this.ajax
  17983. .get(this.$store.state.api + "selectToolsCount", params)
  17984. .then((res) => {
  17985. for (var i = 0; i < res.data[0].length; i++) {
  17986. if (res.data[0][i].tools == 1) {
  17987. this.wbCount = res.data[0][i].count;
  17988. } else if (res.data[0][i].tools == 2) {
  17989. this.wordCount = res.data[0][i].count;
  17990. } else if (res.data[0][i].tools == 3) {
  17991. this.mindCount = res.data[0][i].count;
  17992. } else if (res.data[0][i].tools == 4) {
  17993. this.askCount = res.data[0][i].count;
  17994. } else if (res.data[0][i].tools == 6) {
  17995. this.noteCount = res.data[0][i].count;
  17996. } else if (res.data[0][i].tools == 7) {
  17997. this.mindNetWorkCount = res.data[0][i].count;
  17998. } else if (res.data[0][i].tools == 8) {
  17999. this.libraryCount = res.data[0][i].count;
  18000. } else if (res.data[0][i].tools == 16) {
  18001. this.workCount = res.data[0][i].count;
  18002. } else if (res.data[0][i].tools == 10) {
  18003. this.timeCount = res.data[0][i].count;
  18004. } else if (res.data[0][i].tools == 15) {
  18005. this.answerCount = res.data[0][i].count;
  18006. } else if (res.data[0][i].tools == 18) {
  18007. this.trainCount = res.data[0][i].count;
  18008. }
  18009. }
  18010. })
  18011. .catch((err) => {
  18012. console.error(err);
  18013. });
  18014. },
  18015. openTools(t, i, index, c, sName,id) {
  18016. var z = JSON.parse(c);
  18017. this.noteName = sName;
  18018. if (t == 4) {
  18019. this.radio = [];
  18020. this.isAnswer = false;
  18021. let b = z[0].anwer;
  18022. this.radio = b;
  18023. this.askJson = z[0].askJson;
  18024. this.isAnswer = true;
  18025. this.dialogVisible5 = true;
  18026. } else if (t == 45) {
  18027. this.radio = [];
  18028. this.isAnswer = false;
  18029. let b = z[0].anwer;
  18030. this.radio = b;
  18031. this.testJson = z[0].testJson;
  18032. this.isAnswer = true;
  18033. this.dialogVisibleChoice = true;
  18034. }else if(t == 69){
  18035. this.oldEnglishJson1 = {}
  18036. this.oldEnglishJson = {}
  18037. this.englishList1 = {}
  18038. this.newEngIndex = -1;
  18039. this.isNoUserid = false;
  18040. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18041. .toolChoose[i].englishList;
  18042. this.oldEnglishJson = z;
  18043. this.engWid = id;
  18044. this.newEnglishList = { engTitle:"",engText:"" }
  18045. this.newEnglishList1 = []
  18046. this.selectEngC(id,z);
  18047. }else if(t == 62){
  18048. this.videoType = 1;
  18049. this.videoJson = {};
  18050. this.videoJson = JSON.parse(c);
  18051. // this.videoJson =
  18052. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18053. // index
  18054. // ].toolChoose[i].videoJson;
  18055. this.dialogVisibleVideo = true;
  18056. //this.dialog
  18057. }
  18058. // else if (t == 15) {
  18059. // this.answerQ = "";
  18060. // this.questionAnswer = "";
  18061. // this.answerQ = z[0].answerTitle;
  18062. // this.questionAnswer = z[0].answer;
  18063. // this.answerDialogVisible = true;
  18064. // }
  18065. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18066. },
  18067. fastText(p, t) {
  18068. if (t == 1) {
  18069. this.commentText += p;
  18070. } else {
  18071. this.eScore.eBzText += p;
  18072. }
  18073. },
  18074. addTools(t, i, index) {
  18075. var a = 0;
  18076. // this.taskCount = index;
  18077. this.toolindex = i;
  18078. if (t == 1) {
  18079. if (this.wbCount > 0) {
  18080. this.updateCount(this.wbCount, t);
  18081. } else {
  18082. this.wbCount++;
  18083. a = this.wbCount;
  18084. this.toolsCount(a, t);
  18085. }
  18086. window.parent.postMessage(
  18087. {
  18088. tools: "1",
  18089. cid: this.id,
  18090. stage: this.courseType,
  18091. task: this.taskCount,
  18092. tool: i,
  18093. },
  18094. "*"
  18095. );
  18096. } else if (t == 2) {
  18097. if (this.wordCount > 0) {
  18098. this.updateCount(this.wordCount, t);
  18099. } else {
  18100. this.wordCount++;
  18101. a = this.wordCount;
  18102. this.toolsCount(a, t);
  18103. }
  18104. window.parent.postMessage({ tools: "2" }, "*");
  18105. } else if (t == 3) {
  18106. if (this.mindCount > 0) {
  18107. this.updateCount(this.mindCount, t);
  18108. } else {
  18109. this.mindCount++;
  18110. a = this.mindCount;
  18111. this.toolsCount(a, t);
  18112. }
  18113. window.parent.postMessage(
  18114. {
  18115. tools: "3",
  18116. cid: this.id,
  18117. stage: this.courseType,
  18118. task: this.taskCount,
  18119. tool: i,
  18120. },
  18121. "*"
  18122. );
  18123. } else if (t == 4) {
  18124. this.radio = [];
  18125. this.noteName = "";
  18126. this.isAnswer = false;
  18127. if (this.askCount > 0) {
  18128. this.updateCount(this.askCount, t);
  18129. } else {
  18130. this.askCount++;
  18131. a = this.askCount;
  18132. this.toolsCount(a, t);
  18133. }
  18134. if (!this.dialogVisible2) {
  18135. this.askJson.askJson =
  18136. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18137. index
  18138. ].toolChoose[i].askJson;
  18139. this.askJson.askTitle =
  18140. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18141. index
  18142. ].toolChoose[i].askTitle;
  18143. this.askJson.askCount =
  18144. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18145. index
  18146. ].toolChoose[i].askCount;
  18147. } else {
  18148. this.askJson.askJson = this.chapTools.askJson.askJson;
  18149. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18150. this.askJson.askCount = this.chapTools.askJson.askCount;
  18151. }
  18152. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18153. if (this.askJson.askJson[k].type == "2") {
  18154. this.radio.push([]);
  18155. } else {
  18156. this.radio.push("");
  18157. }
  18158. }
  18159. this.dialogVisible5 = true;
  18160. // window.parent.postMessage({ tools: "4" }, "*");
  18161. } else if (t == 45) {
  18162. this.noteName = "";
  18163. this.radio = [];
  18164. this.isAnswer = false;
  18165. if (this.askCount > 0) {
  18166. this.updateCount(this.askCount, t);
  18167. } else {
  18168. this.askCount++;
  18169. a = this.askCount;
  18170. this.toolsCount(a, t);
  18171. }
  18172. this.testJson =
  18173. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18174. index
  18175. ].toolChoose[i].testJson;
  18176. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18177. if (this.testJson.testJson[k].type == "2") {
  18178. this.radio.push([]);
  18179. } else {
  18180. this.radio.push("");
  18181. }
  18182. }
  18183. this.dialogVisibleChoice = true;
  18184. // window.parent.postMessage({ tools: "4" }, "*");
  18185. } else if (t == 5) {
  18186. if (this.scoreCount > 0) {
  18187. this.updateCount(this.scoreCount, t);
  18188. } else {
  18189. this.scoreCount++;
  18190. a = this.scoreCount;
  18191. this.toolsCount(a, t);
  18192. }
  18193. this.dialogVisible4 = true;
  18194. // window.parent.postMessage({ tools: "5" }, "*");
  18195. } else if (t == 6) {
  18196. if (this.noteCount > 0) {
  18197. this.updateCount(this.noteCount, t);
  18198. } else {
  18199. this.noteCount++;
  18200. a = this.noteCount;
  18201. this.toolsCount(a, t);
  18202. }
  18203. window.parent.postMessage(
  18204. {
  18205. tools: "6",
  18206. cid: this.id,
  18207. stage: this.courseType,
  18208. task: this.taskCount,
  18209. tool: i,
  18210. },
  18211. "*"
  18212. );
  18213. } else if (t == 7) {
  18214. if (this.mindNetWorkCount > 0) {
  18215. this.updateCount(this.mindNetWorkCount, t);
  18216. } else {
  18217. this.mindNetWorkCount++;
  18218. a = this.mindNetWorkCount;
  18219. this.toolsCount(a, t);
  18220. }
  18221. window.parent.postMessage(
  18222. {
  18223. tools: "7",
  18224. cid: this.id,
  18225. stage: this.courseType,
  18226. task: this.taskCount,
  18227. tool: i,
  18228. },
  18229. "*"
  18230. );
  18231. } else if (t == 16) {
  18232. if (this.workCount > 0) {
  18233. this.updateCount(this.workCount, t);
  18234. } else {
  18235. this.workCount++;
  18236. a = this.workCount;
  18237. this.toolsCount(a, t);
  18238. }
  18239. this.dialogVisible = true;
  18240. } else if (t == 50) {
  18241. if (this.tType == 2) {
  18242. this.$message.error("不支持学生使用");
  18243. return;
  18244. }
  18245. this.plworkFile = [];
  18246. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18247. if (!this.uploadCid) {
  18248. this.$message.error(
  18249. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18250. );
  18251. return;
  18252. }
  18253. // this.uploadCid =
  18254. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18255. // index
  18256. // ].toolChoose[i].uploadJson[0];
  18257. this.selectUploadStudent(2);
  18258. } else if (t == 8) {
  18259. if (this.libraryCount > 0) {
  18260. this.updateCount(this.libraryCount, t);
  18261. } else {
  18262. this.libraryCount++;
  18263. a = this.libraryCount;
  18264. this.toolsCount(a, t);
  18265. }
  18266. window.parent.postMessage({ tools: "8" }, "*");
  18267. } else if (t == 17) {
  18268. if (this.libraryCount > 0) {
  18269. this.updateCount(this.libraryCount, t);
  18270. } else {
  18271. this.libraryCount++;
  18272. a = this.libraryCount;
  18273. this.toolsCount(a, t);
  18274. }
  18275. window.parent.postMessage({ tools: "17" }, "*");
  18276. } else if (t == 18) {
  18277. if (this.trainCount > 0) {
  18278. this.updateCount(this.trainCount, t);
  18279. } else {
  18280. this.trainCount++;
  18281. a = this.trainCount;
  18282. this.toolsCount(a, t);
  18283. }
  18284. window.parent.postMessage({ tools: "18" }, "*");
  18285. } else if (t == 10) {
  18286. if (this.timeCount > 0) {
  18287. this.updateCount(this.timeCount, t);
  18288. } else {
  18289. this.timeCount++;
  18290. a = this.timeCount;
  18291. this.toolsCount(a, t);
  18292. }
  18293. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18294. .taskJson[index].toolChoose[i].preTime
  18295. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18296. .toolChoose[i].preTime
  18297. : "";
  18298. this.timeDialogVisible = true;
  18299. } else if (t == 15) {
  18300. this.answerQ = "";
  18301. this.questionAnswer = "";
  18302. if (this.answerCount > 0) {
  18303. this.updateCount(this.answerCount, t);
  18304. } else {
  18305. this.answerCount++;
  18306. a = this.answerCount;
  18307. this.toolsCount(a, t);
  18308. }
  18309. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18310. .taskJson[index].toolChoose[i].answerQ
  18311. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18312. .toolChoose[i].answerQ
  18313. : "";
  18314. this.answerDialogVisible = true;
  18315. } else if (t == 21) {
  18316. window.parent.postMessage({ tools: "21" }, "*");
  18317. } else if (t == 22) {
  18318. window.parent.postMessage({ tools: "22" }, "*");
  18319. } else if (t == 23) {
  18320. window.parent.postMessage({ tools: "23" }, "*");
  18321. } else if (t == 24) {
  18322. window.parent.postMessage({ tools: "24" }, "*");
  18323. } else if (t == 25) {
  18324. window.parent.postMessage({ tools: "25" }, "*");
  18325. } else if (t == 31) {
  18326. window.parent.postMessage({ tools: "31" }, "*");
  18327. } else if (t == 28) {
  18328. window.parent.postMessage({ tools: "28" }, "*");
  18329. } else if (t == 37) {
  18330. window.parent.postMessage({ tools: "37" }, "*");
  18331. } else if (t == 38) {
  18332. window.parent.postMessage({ tools: "38" }, "*");
  18333. } else if (t == 39) {
  18334. window.parent.postMessage({ tools: "39" }, "*");
  18335. } else if (t == 32) {
  18336. window.parent.postMessage({ tools: "32" }, "*");
  18337. } else if (t == 66) {
  18338. window.parent.postMessage({ tools: "66" }, "*");
  18339. } else if (t == 67) {
  18340. window.parent.postMessage({ tools: "67" }, "*");
  18341. } else if (t == 68) {
  18342. window.parent.postMessage({ tools: "68" }, "*");
  18343. } else if (t == 57) {
  18344. // window.parent.postMessage({ tools: "57" }, "*");
  18345. window.parent.postMessage(
  18346. {
  18347. tools: "57u",
  18348. cid: this.id,
  18349. stage: this.courseType,
  18350. task: this.taskCount,
  18351. tool: i,
  18352. },
  18353. "*"
  18354. );
  18355. } else if (t == 58) {
  18356. window.parent.postMessage({ tools: "58" }, "*");
  18357. } else if (t == 59) {
  18358. window.parent.postMessage({ tools: "59" }, "*");
  18359. } else if (t == 60) {
  18360. window.parent.postMessage({ tools: "60" }, "*");
  18361. } else if (t == 61) {
  18362. window.parent.postMessage({ tools: "61" }, "*");
  18363. } else if (t == 63) {
  18364. window.parent.postMessage({ tools: "63" }, "*");
  18365. } else if (t == 71) {
  18366. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  18367. // this.$message.error("该工具不可使用");
  18368. // return
  18369. // }
  18370. window.parent.postMessage({ tools: "71" }, "*");
  18371. } else if (t == 69) {
  18372. if (this.worksStudent[i].length) {
  18373. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18374. if (this.userid == this.worksStudent[i][k].userid) {
  18375. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18376. break;
  18377. } else {
  18378. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18379. }
  18380. }
  18381. } else {
  18382. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18383. }
  18384. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18385. .taskJson[index].toolChoose[i].englishList
  18386. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18387. .toolChoose[i].englishList
  18388. : {};
  18389. this.englishToolIndex = i;
  18390. this.myAnList = this.myAnswerList1;
  18391. this.engDialogVisible = true;
  18392. } else if (t == 70) {
  18393. if (this.worksStudent[i].length) {
  18394. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18395. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18396. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18397. break;
  18398. } else {
  18399. this.englishVoiceJsonWork = [];
  18400. }
  18401. }
  18402. } else {
  18403. this.englishVoiceJsonWork = [];
  18404. }
  18405. let englishVoiceJson = {}
  18406. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18407. .taskJson[index].toolChoose[i].englishVoiceJson
  18408. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18409. .toolChoose[i].englishVoiceJson
  18410. : {};
  18411. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18412. this.EnglishVoiceDialog = true;
  18413. } else if (t == 65) {
  18414. if (this.tType == 2) {
  18415. this.$message.error("不支持学生使用");
  18416. return;
  18417. }
  18418. this.uploadCid = this.tcid;
  18419. if (!this.uploadCid) {
  18420. this.$message.error(
  18421. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18422. );
  18423. return;
  18424. }
  18425. this.selectPickStudent();
  18426. } else if (t == 26) {
  18427. window.parent.postMessage(
  18428. {
  18429. tools: "26",
  18430. cid: this.id,
  18431. stage: this.courseType,
  18432. task: this.taskCount,
  18433. tool: i,
  18434. },
  18435. "*"
  18436. );
  18437. } else if (t == 40) {
  18438. if (this.evalCount > 0) {
  18439. this.updateCount(this.evalCount, t);
  18440. } else {
  18441. this.evalCount++;
  18442. a = this.evalCount;
  18443. this.toolsCount(a, t);
  18444. }
  18445. this.eScore = { eBzText: "", eStar: [] };
  18446. if (this.worksStudent[i].length) {
  18447. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18448. if (this.userid == this.worksStudent[i][k].userid) {
  18449. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18450. this.rateJson =
  18451. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18452. index
  18453. ].toolChoose[i].rateJson;
  18454. break;
  18455. } else {
  18456. this.rateJson =
  18457. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18458. index
  18459. ].toolChoose[i].rateJson;
  18460. }
  18461. }
  18462. } else {
  18463. this.rateJson =
  18464. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18465. index
  18466. ].toolChoose[i].rateJson;
  18467. }
  18468. this.isStar = false;
  18469. this.studentEvalDialogVisible = true;
  18470. } else if (t == 41) {
  18471. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18472. .taskJson[index].toolChoose[i].selectJson
  18473. ? JSON.parse(
  18474. JSON.stringify(
  18475. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18476. index
  18477. ].toolChoose[i].selectJson
  18478. )
  18479. )
  18480. : { url: "", select: [], answer: [] };
  18481. if (this.worksStudent[i].length) {
  18482. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18483. if (this.userid == this.worksStudent[i][k].userid) {
  18484. var a = this.worksStudent[i][k].works.split(",");
  18485. for (var ki = 0; ki < a.length; ki++) {
  18486. a[ki] = parseInt(a[ki]);
  18487. }
  18488. this.selectAnswer = {
  18489. answer: a,
  18490. stu: this.worksStudent[i][k].sName,
  18491. };
  18492. break;
  18493. } else {
  18494. this.selectAnswer = { answer: [], stu: "" };
  18495. }
  18496. }
  18497. } else {
  18498. this.selectAnswer = { answer: [], stu: "" };
  18499. }
  18500. this.isSelect = false;
  18501. this.dialogVisibleSelect = true;
  18502. } else if (t == 44) {
  18503. window.parent.postMessage({ tools: "44" }, "*");
  18504. } else if (t == 47) {
  18505. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18506. .taskJson[index].toolChoose[i].sentenceList
  18507. ? JSON.parse(
  18508. JSON.stringify(
  18509. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18510. index
  18511. ].toolChoose[i].sentenceList
  18512. )
  18513. )
  18514. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18515. for (var q = 0; q < this.sentenceList.length; q++) {
  18516. this.sentenceList[q].chooseSenList = [];
  18517. this.sentenceList[q].addChangeSen = [];
  18518. this.sentenceList[q].addChangeSen = JSON.parse(
  18519. JSON.stringify(this.sentenceList[q].addSentence)
  18520. );
  18521. this.sentenceList[q].chooseSenList.length =
  18522. this.sentenceList[q].rightAnswer.length;
  18523. }
  18524. this.dialogVisibleSentence = true;
  18525. } else if (t == 48) {
  18526. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18527. .taskJson[index].toolChoose[i].tableJson
  18528. ? JSON.parse(
  18529. JSON.stringify(
  18530. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18531. index
  18532. ].toolChoose[i].tableJson
  18533. )
  18534. )
  18535. : { text: "" };
  18536. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18537. if (this.worksStudent[i].length) {
  18538. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18539. if (this.userid == this.worksStudent[i][k].userid) {
  18540. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18541. break;
  18542. }
  18543. }
  18544. }
  18545. this.dialogVisibleTable = true;
  18546. } else if (t == 52) {
  18547. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18548. .taskJson[index].toolChoose[i].wordJson
  18549. ? JSON.parse(
  18550. JSON.stringify(
  18551. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18552. index
  18553. ].toolChoose[i].wordJson
  18554. )
  18555. )
  18556. : { text: "" };
  18557. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18558. if (this.worksStudent[i].length) {
  18559. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18560. if (this.userid == this.worksStudent[i][k].userid) {
  18561. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18562. break;
  18563. }
  18564. }
  18565. }
  18566. this.dialogVisibleWord = true;
  18567. } else if (t == 49) {
  18568. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18569. return
  18570. }
  18571. this.groupJson =
  18572. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18573. index
  18574. ].toolChoose[i].groupJson;
  18575. this.islock = this.groupJson.islock == 1 ? true : false;
  18576. this.dialogVisibleGroup = true;
  18577. } else if (t == 62) {
  18578. this.videoType = 0;
  18579. this.videoJson = {};
  18580. this.videoJson =
  18581. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18582. index
  18583. ].toolChoose[i].videoJson;
  18584. this.dialogVisibleVideo = true;
  18585. }
  18586. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18587. },
  18588. teacherWorkSubmit(t, i, index, s) {
  18589. this.sStudent = s;
  18590. this.toolindex = i;
  18591. this.sTool = t;
  18592. if (this.tType !== "1" && this.tType !== "4") {
  18593. return;
  18594. }
  18595. if (t == 16 || t == 32 || t == 50) {
  18596. this.dialogVisibleWorks = true;
  18597. } else if (t == 15) {
  18598. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18599. .taskJson[index].toolChoose[i].answerQ
  18600. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18601. .toolChoose[i].answerQ
  18602. : "";
  18603. this.questionAnswer = "";
  18604. this.answerDialogVisibleTeacher = true; //问答
  18605. } else if (t == 52) {
  18606. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18607. .taskJson[index].toolChoose[i].wordJson
  18608. ? JSON.parse(
  18609. JSON.stringify(
  18610. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18611. index
  18612. ].toolChoose[i].wordJson
  18613. )
  18614. )
  18615. : { text: "" };
  18616. if (this.worksStudent[i].length) {
  18617. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18618. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18619. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18620. break;
  18621. }
  18622. }
  18623. }
  18624. this.dialogVisibleWordTeacher = true; //文档
  18625. } else if (t == 4) {
  18626. this.radio = [];
  18627. this.noteName = "";
  18628. this.isAnswer = false;
  18629. if (this.askCount > 0) {
  18630. this.updateCount(this.askCount, t);
  18631. } else {
  18632. this.askCount++;
  18633. a = this.askCount;
  18634. this.toolsCount(a, t);
  18635. }
  18636. if (!this.dialogVisible2) {
  18637. this.askJson.askJson =
  18638. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18639. index
  18640. ].toolChoose[i].askJson;
  18641. this.askJson.askTitle =
  18642. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18643. index
  18644. ].toolChoose[i].askTitle;
  18645. this.askJson.askCount =
  18646. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18647. index
  18648. ].toolChoose[i].askCount;
  18649. } else {
  18650. this.askJson.askJson = this.chapTools.askJson.askJson;
  18651. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18652. this.askJson.askCount = this.chapTools.askJson.askCount;
  18653. }
  18654. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18655. if (this.askJson.askJson[k].type == "2") {
  18656. this.radio.push([]);
  18657. } else {
  18658. this.radio.push("");
  18659. }
  18660. }
  18661. this.dialogVisible5Teacher = true;
  18662. } else if (t == 45) {
  18663. this.noteName = "";
  18664. this.radio = [];
  18665. this.isAnswer = false;
  18666. if (this.askCount > 0) {
  18667. this.updateCount(this.askCount, t);
  18668. } else {
  18669. this.askCount++;
  18670. a = this.askCount;
  18671. this.toolsCount(a, t);
  18672. }
  18673. this.testJson =
  18674. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18675. index
  18676. ].toolChoose[i].testJson;
  18677. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18678. if (this.testJson.testJson[k].type == "2") {
  18679. this.radio.push([]);
  18680. } else {
  18681. this.radio.push("");
  18682. }
  18683. }
  18684. this.dialogVisibleChoiceTeacher = true;
  18685. } else if (t == 41) {
  18686. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18687. .taskJson[index].toolChoose[i].selectJson
  18688. ? JSON.parse(
  18689. JSON.stringify(
  18690. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18691. index
  18692. ].toolChoose[i].selectJson
  18693. )
  18694. )
  18695. : { url: "", select: [], answer: [] };
  18696. if (this.worksStudent[i].length) {
  18697. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18698. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18699. var a = this.worksStudent[i][k].works.split(",");
  18700. for (var ki = 0; ki < a.length; ki++) {
  18701. a[ki] = parseInt(a[ki]);
  18702. }
  18703. this.selectAnswer = {
  18704. answer: a,
  18705. stu: this.worksStudent[i][k].sName,
  18706. };
  18707. break;
  18708. } else {
  18709. this.selectAnswer = { answer: [], stu: "" };
  18710. }
  18711. }
  18712. } else {
  18713. this.selectAnswer = { answer: [], stu: "" };
  18714. }
  18715. this.isSelect = false;
  18716. this.dialogVisibleSelectTeacher = true;
  18717. } else if (t == 47) {
  18718. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18719. .taskJson[index].toolChoose[i].sentenceList
  18720. ? JSON.parse(
  18721. JSON.stringify(
  18722. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18723. index
  18724. ].toolChoose[i].sentenceList
  18725. )
  18726. )
  18727. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18728. for (var q = 0; q < this.sentenceList.length; q++) {
  18729. this.sentenceList[q].chooseSenList = [];
  18730. this.sentenceList[q].addChangeSen = [];
  18731. this.sentenceList[q].addChangeSen = JSON.parse(
  18732. JSON.stringify(this.sentenceList[q].addSentence)
  18733. );
  18734. this.sentenceList[q].chooseSenList.length =
  18735. this.sentenceList[q].rightAnswer.length;
  18736. }
  18737. this.dialogVisibleSentenceTeacher = true;
  18738. } else if (t == 48) {
  18739. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18740. .taskJson[index].toolChoose[i].tableJson
  18741. ? JSON.parse(
  18742. JSON.stringify(
  18743. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18744. index
  18745. ].toolChoose[i].tableJson
  18746. )
  18747. )
  18748. : { text: "" };
  18749. if (this.worksStudent[i].length) {
  18750. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18751. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18752. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18753. break;
  18754. }
  18755. }
  18756. }
  18757. this.dialogVisibleTableTeacher = true;
  18758. } else if (t == 40) {
  18759. if (this.evalCount > 0) {
  18760. this.updateCount(this.evalCount, t);
  18761. } else {
  18762. this.evalCount++;
  18763. a = this.evalCount;
  18764. this.toolsCount(a, t);
  18765. }
  18766. this.eScore = { eBzText: "", eStar: [] };
  18767. if (this.worksStudent[i].length) {
  18768. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18769. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18770. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18771. this.rateJson =
  18772. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18773. index
  18774. ].toolChoose[i].rateJson;
  18775. break;
  18776. } else {
  18777. this.rateJson =
  18778. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18779. index
  18780. ].toolChoose[i].rateJson;
  18781. }
  18782. }
  18783. } else {
  18784. this.rateJson =
  18785. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18786. index
  18787. ].toolChoose[i].rateJson;
  18788. }
  18789. this.isStar = false;
  18790. this.studentEvalDialogVisibleTeacher = true;
  18791. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18792. window.parent.postMessage(
  18793. {
  18794. tools: t + "teacher",
  18795. cid: this.id,
  18796. stage: this.courseType,
  18797. task: this.taskCount,
  18798. tool: i,
  18799. student: this.sStudent,
  18800. },
  18801. "*"
  18802. );
  18803. }
  18804. },
  18805. openCocoPi(tool, i, uid, uname) {
  18806. let student = {
  18807. userid: uid,
  18808. student: uname,
  18809. };
  18810. if (tool == 57) {
  18811. window.parent.postMessage(
  18812. {
  18813. tools: tool + "teacher",
  18814. cid: this.id,
  18815. stage: this.courseType,
  18816. task: this.taskCount,
  18817. tool: i,
  18818. student: student,
  18819. },
  18820. "*"
  18821. );
  18822. }
  18823. },
  18824. setRightAnswer(s, i, j) {
  18825. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18826. if (
  18827. this.sentenceList[i].chooseSenList[q] == undefined ||
  18828. this.sentenceList[i].chooseSenList[q] == ""
  18829. ) {
  18830. this.sentenceList[i].chooseSenList[q] = s;
  18831. this.sentenceList[i].addChangeSen[j] = "";
  18832. break;
  18833. }
  18834. }
  18835. this.$forceUpdate();
  18836. },
  18837. returnCard(r, i, j) {
  18838. var a = this.sentenceList[i].addSentence.indexOf(r);
  18839. this.sentenceList[i].chooseSenList[j] = "";
  18840. this.sentenceList[i].addChangeSen[a] = r;
  18841. this.$forceUpdate();
  18842. },
  18843. // addSentenceTool() {
  18844. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18845. // this.taskCount
  18846. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18847. // this.sentenceList = [
  18848. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18849. // ];
  18850. // this.dialogVisibleSentence = false;
  18851. // },
  18852. toolsCount(a, t) {
  18853. let params = {
  18854. cid: this.id,
  18855. chid: this.courseType,
  18856. uid: this.userid,
  18857. tid: t,
  18858. count: a,
  18859. };
  18860. this.ajax
  18861. .get(this.$store.state.api + "insertToolsCount", params)
  18862. .then((res) => {
  18863. this.selectCount();
  18864. })
  18865. .catch((err) => {
  18866. console.error(err);
  18867. });
  18868. },
  18869. updateCount(c, t) {
  18870. c++;
  18871. let params = {
  18872. cid: this.id,
  18873. chid: this.courseType,
  18874. uid: this.userid,
  18875. tid: t,
  18876. count: c,
  18877. };
  18878. this.ajax
  18879. .get(this.$store.state.api + "updateToolsCount", params)
  18880. .then((res) => {
  18881. this.selectCount();
  18882. })
  18883. .catch((err) => {
  18884. console.error(err);
  18885. });
  18886. },
  18887. checkEva() {
  18888. if (this.evalua != "") {
  18889. for (var i = 0; i < this.evaJuri.length; i++) {
  18890. if (this.evalua == this.evaJuri[i].id) {
  18891. this.eTitle = this.evaJuri[i].title;
  18892. this.eJson = JSON.parse(this.evaJuri[i].content);
  18893. }
  18894. }
  18895. this.$forceUpdate();
  18896. setTimeout(() => {
  18897. this.setMindData();
  18898. }, 0);
  18899. }
  18900. },
  18901. selectEva() {
  18902. let params = {
  18903. oid: this.oid,
  18904. };
  18905. this.ajax
  18906. .get(this.$store.state.api + "selectAllEvaluation", params)
  18907. .then((res) => {
  18908. this.evaJuri = res.data[0];
  18909. })
  18910. .catch((err) => {
  18911. console.error(err);
  18912. });
  18913. },
  18914. setMindData() {
  18915. this.data.data = [];
  18916. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18917. let _eJson = Object.keys(this.eJson);
  18918. let _e = this.eJson;
  18919. for (let i = 0; i < _eJson.length; i++) {
  18920. let element = _e[_eJson[i]];
  18921. this.data.data.push({
  18922. id: element.id,
  18923. parentid: "root",
  18924. topic: element.name,
  18925. });
  18926. let _eJsonc = Object.keys(element.child);
  18927. let _e2 = element.child;
  18928. for (let j = 0; j < _eJsonc.length; j++) {
  18929. let _ec = _e2[_eJsonc[j]];
  18930. this.data.data.push({
  18931. id: _ec.id,
  18932. parentid: element.id,
  18933. topic: _ec.name,
  18934. });
  18935. let _eJsonz = Object.keys(_ec.child);
  18936. let _e3 = _ec.child;
  18937. for (let z = 0; z < _eJsonz.length; z++) {
  18938. let _ez = _e3[_eJsonz[z]];
  18939. this.data.data.push({
  18940. id: _ez.id,
  18941. parentid: _ec.id,
  18942. topic: _ez.name,
  18943. });
  18944. }
  18945. }
  18946. }
  18947. this.$forceUpdate();
  18948. },
  18949. checkFileFull(type, url) {
  18950. this.fullDialogVisible = true;
  18951. this.fulltype = type;
  18952. this.fullUrl = url;
  18953. },
  18954. async checkFileFull1(t, f) {
  18955. this.fullDialogVisible = true;
  18956. if (t == 6) {
  18957. this.fulltype = 1;
  18958. this.fullUrl = JSON.parse(JSON.stringify(f));
  18959. } else if (t == 8) {
  18960. this.fulltype = 2;
  18961. this.fullUrl = f.url;
  18962. } else if (
  18963. t == 3 &&
  18964. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18965. "PDF"
  18966. ) {
  18967. this.fulltype = 3;
  18968. this.fullUrl = f.url;
  18969. } else if (t == 3) {
  18970. this.fulltype = 2;
  18971. let _uuurl = await this.checkLink(f.url);
  18972. this.fullUrl =
  18973. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18974. }
  18975. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  18976. },
  18977. openSname(n, id, i, uid) {
  18978. this.snameWid = id;
  18979. this.worksSName = n;
  18980. this.worksSid = uid == n ? "" : uid;
  18981. this.toolindex = i;
  18982. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18983. if (!this.uploadCid) {
  18984. this.$message.error(
  18985. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18986. );
  18987. return;
  18988. }
  18989. this.selectUploadStudent(1);
  18990. },
  18991. updateName() {
  18992. let params = {
  18993. n: this.worksSName,
  18994. cid: this.snameWid,
  18995. };
  18996. this.ajax
  18997. .get(this.$store.state.api + "updateCourseWorksName", params)
  18998. .then((res) => {
  18999. this.$message({
  19000. message: "修改成功",
  19001. type: "success",
  19002. });
  19003. this.dialogVisibleSname = false;
  19004. this.getCourseDetail(2);
  19005. this.snameWid = "";
  19006. this.worksSName = "";
  19007. })
  19008. .catch((err) => {
  19009. console.error(err);
  19010. });
  19011. },
  19012. downloadFile2(f) {
  19013. // const loading = this.$loading.service({
  19014. // background: "rgba(255, 255, 255, 0.7)",
  19015. // target: document.body,
  19016. // text: "文件加载中...",
  19017. // });
  19018. // let url2 = f.url;
  19019. // let _url2 = "";
  19020. // if (
  19021. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19022. // ) {
  19023. // _url2 = url2.split(
  19024. // "https://view.officeapps.live.com/op/view.aspx?src="
  19025. // )[1];
  19026. // } else {
  19027. // _url2 = url2;
  19028. // }
  19029. // let params = {
  19030. // url: _url2,
  19031. // name: f.name,
  19032. // };
  19033. // this.ajax
  19034. // .get(this.$store.state.api + "download", params)
  19035. // .then((res) => {
  19036. // loading.close();
  19037. // let content = res.data.data.data;
  19038. // let ab = new ArrayBuffer(content.length);
  19039. // let view = new Uint8Array(ab);
  19040. // for (var i = 0; i < content.length; ++i) {
  19041. // view[i] = content[i];
  19042. // }
  19043. // let elink = document.createElement("a");
  19044. // elink.download = f.name;
  19045. // elink.style.display = "none";
  19046. // let blob = new Blob([ab], {
  19047. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19048. // });
  19049. // elink.href = URL.createObjectURL(blob);
  19050. // document.body.appendChild(elink);
  19051. // elink.click();
  19052. // document.body.removeChild(elink);
  19053. // })
  19054. // .catch((err) => {
  19055. // loading.close();
  19056. // console.error(err);
  19057. // });
  19058. var credentials = {
  19059. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19060. secretAccessKey: "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",
  19061. }; //秘钥形式的登录上传
  19062. window.AWS.config.update(credentials);
  19063. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19064. let url2 = f.url;
  19065. let _url2 = "";
  19066. if (
  19067. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19068. ) {
  19069. _url2 = url2.split(
  19070. "https://view.officeapps.live.com/op/view.aspx?src="
  19071. )[1];
  19072. } else {
  19073. _url2 = url2;
  19074. }
  19075. let _this = this;
  19076. _this.downLoading = true
  19077. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19078. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19079. var params = {
  19080. Bucket: "ccrb",
  19081. Key: name
  19082. };
  19083. s3.getObject(params, function (err, data) {
  19084. _this.downLoading = false
  19085. if (err) console.log(err, err.stack); // an error occurred
  19086. else {
  19087. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19088. let a = document.createElement("a");
  19089. a.name = f.name;
  19090. a.href = url;
  19091. a.download = f.name;
  19092. a.click();
  19093. console.log(data);
  19094. } // sxuccessful response
  19095. });
  19096. return;
  19097. let url = f.url;
  19098. let _url = "";
  19099. if (
  19100. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19101. ) {
  19102. _url = url.split(
  19103. "https://view.officeapps.live.com/op/view.aspx?src="
  19104. )[1];
  19105. } else {
  19106. _url = url;
  19107. }
  19108. _this.downLoading = true
  19109. let x = new XMLHttpRequest();
  19110. x.open("GET", _url, true);
  19111. x.responseType = "blob";
  19112. x.onload = function () {
  19113. _this.downLoading = false
  19114. let url = window.URL.createObjectURL(new Blob([x.response]));
  19115. let a = document.createElement("a");
  19116. a.name = f.name;
  19117. a.href = url;
  19118. a.download = f.name;
  19119. a.click();
  19120. };
  19121. x.send();
  19122. },
  19123. downloadFile(url) {
  19124. // this.$message.info("查看作业-下载文件")
  19125. var credentials = {
  19126. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19127. secretAccessKey: "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",
  19128. }; //秘钥形式的登录上传
  19129. window.AWS.config.update(credentials);
  19130. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19131. let url2 = url;
  19132. let _url2 = "";
  19133. if (
  19134. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19135. ) {
  19136. _url2 = url2.split(
  19137. "https://view.officeapps.live.com/op/view.aspx?src="
  19138. )[1];
  19139. } else {
  19140. _url2 = url2;
  19141. }
  19142. const loading2 = this.$loading.service({
  19143. background: "rgba(255, 255, 255, 0.7)",
  19144. target: document.body,
  19145. text: "文件加载中...",
  19146. });
  19147. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19148. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19149. var params = {
  19150. Bucket: "ccrb",
  19151. Key: name
  19152. };
  19153. s3.getObject(params, function (err, data) {
  19154. loading2.close();
  19155. if (err) console.log(err, err.stack); // an error occurred
  19156. else {
  19157. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19158. let a = document.createElement("a");
  19159. a.name = name;
  19160. a.href = url;
  19161. a.download = name;
  19162. a.click();
  19163. console.log(data);
  19164. } // sxuccessful response
  19165. });
  19166. return;
  19167. let _this = this;
  19168. let _url = "";
  19169. if (
  19170. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19171. ) {
  19172. _url = url.split(
  19173. "https://view.officeapps.live.com/op/view.aspx?src="
  19174. )[1];
  19175. } else {
  19176. _url = url;
  19177. }
  19178. const x = new XMLHttpRequest();
  19179. x.open("GET", _url, true);
  19180. x.responseType = "blob";
  19181. // this.downLoading = true
  19182. const loading = _this.$loading.service({
  19183. background: "rgba(255, 255, 255, 0.7)",
  19184. target: document.body,
  19185. text: "文件加载中...",
  19186. });
  19187. // _this.$message.success("文件下载中...");
  19188. x.onload = function (e) {
  19189. loading.close();
  19190. let content = x.response;
  19191. let elink = document.createElement("a");
  19192. elink.download = decodeURI(
  19193. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19194. );
  19195. elink.style.display = "none";
  19196. let blob = new Blob([content]);
  19197. elink.href = URL.createObjectURL(blob);
  19198. document.body.appendChild(elink);
  19199. elink.click();
  19200. document.body.removeChild(elink);
  19201. };
  19202. x.send();
  19203. },
  19204. openLine(url) {
  19205. window.open(url);
  19206. },
  19207. resize() {
  19208. if (document.getElementsByClassName("box_course").length) {
  19209. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19210. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19211. if (this.showType == 2 || this.showType == 3) {
  19212. document.getElementsByClassName("navBox")[0].style.height =
  19213. a - 40 + 0+ "px";
  19214. } else {
  19215. document.getElementsByClassName("navBox")[0].style.height =
  19216. a - 40 + "px";
  19217. }
  19218. }
  19219. this.Stbodywidth =
  19220. document.getElementsByClassName("student_body").length &&
  19221. document.getElementsByClassName("student_body")[0].offsetWidth;
  19222. },
  19223. closeDraw() {
  19224. this.bg = null;
  19225. this.drawShow = false;
  19226. },
  19227. showPicturePaint(url) {
  19228. let params = {
  19229. img: url,
  19230. };
  19231. this.ajax
  19232. .get(this.$store.state.api + "imgToBase64", params)
  19233. .then((res) => {
  19234. this.drawShow = true;
  19235. this.bg = res.data[0].img;
  19236. })
  19237. .catch((err) => {
  19238. console.error(err);
  19239. });
  19240. },
  19241. addImgDraw(base64) {
  19242. let file = { name: "批注图.png" };
  19243. let img = this.dataUrlToFile(base64, file);
  19244. this.beforeUpload1(img, 5);
  19245. },
  19246. addImgDrawImG(url) {
  19247. // console.log(url);
  19248. let params = [
  19249. {
  19250. wid: this.commentDetail.wid,
  19251. img: url,
  19252. },
  19253. ];
  19254. this.ajax
  19255. .post(this.$store.state.api + "updateCourseWorks", params)
  19256. .then((res) => {
  19257. this.$message({
  19258. message: "提交成功",
  19259. type: "success",
  19260. });
  19261. this.drawShow = false;
  19262. this.bg = "";
  19263. this.selectSWorks();
  19264. this.selectStudent();
  19265. })
  19266. .catch((err) => {
  19267. this.$message.error("提交失败");
  19268. console.error(err);
  19269. });
  19270. },
  19271. deletePicturePaint() {
  19272. this.$confirm("确定删除此批注吗?", "提示", {
  19273. confirmButtonText: "确定",
  19274. cancelButtonText: "取消",
  19275. type: "warning",
  19276. })
  19277. .then(() => {
  19278. let params = [
  19279. {
  19280. wid: this.commentDetail.wid,
  19281. img: "",
  19282. },
  19283. ];
  19284. this.ajax
  19285. .post(this.$store.state.api + "updateCourseWorks", params)
  19286. .then((res) => {
  19287. this.$message({
  19288. message: "删除成功",
  19289. type: "success",
  19290. });
  19291. this.selectSWorks();
  19292. this.selectStudent();
  19293. })
  19294. .catch((err) => {
  19295. this.$message.error("删除失败");
  19296. console.error(err);
  19297. });
  19298. })
  19299. .catch(() => {});
  19300. },
  19301. getAudioVideo(constraintsData) {
  19302. if (navigator.mediaDevices === undefined) {
  19303. navigator.mediaDevices = {};
  19304. }
  19305. if (navigator.mediaDevices.getUserMedia === undefined) {
  19306. navigator.mediaDevices.getUserMedia = function (constraints) {
  19307. // 首先,如果有getUserMedia的话,就获得它
  19308. var getUserMedia =
  19309. navigator.getUserMedia ||
  19310. navigator.webkitGetUserMedia ||
  19311. navigator.mozGetUserMedia ||
  19312. navigator.msGetUserMedia;
  19313. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19314. if (!getUserMedia) {
  19315. return Promise.reject({ code: 404 });
  19316. }
  19317. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19318. return new Promise(function (resolve, reject) {
  19319. getUserMedia.call(navigator, constraints, resolve, reject);
  19320. });
  19321. };
  19322. }
  19323. return navigator.mediaDevices.getUserMedia(constraintsData);
  19324. },
  19325. /**
  19326. * 开始录制
  19327. */
  19328. startRecording(callback) {
  19329. let _function = (screenStream) => {
  19330. this.addStreamStopListener(screenStream, () => {
  19331. console.log("流停止监听");
  19332. this.stopRecording();
  19333. this.$emit("streamStop", {});
  19334. // this.stopRecording();
  19335. });
  19336. var options = {
  19337. type: "video",
  19338. mimeType: "video/webm",
  19339. disableLogs: false,
  19340. getNativeBlob: false, // enable it for longer recordings
  19341. ignoreMutedMedia: false,
  19342. };
  19343. // this.video.srcObject = screenStream;
  19344. this.recorder = RecordRTC(screenStream, options);
  19345. this.recorder.startRecording();
  19346. this.recorder.screen = screenStream;
  19347. this.videoStart = true;
  19348. // callback(true);
  19349. };
  19350. this.getAudioVideo({ audio: true })
  19351. .then((res) => {
  19352. this.captureScreen(_function, true);
  19353. console.log("已点击允许,开启成功");
  19354. })
  19355. .catch((err) => {
  19356. // console.log('浏览器不支持,请更换浏览器')
  19357. // } else {
  19358. this.captureScreen(_function, false);
  19359. console.log("请检查是否存在麦克风");
  19360. });
  19361. },
  19362. /**
  19363. * 停止录制
  19364. */
  19365. stopRecording(callback) {
  19366. this.recorder.stopRecording(() => {
  19367. // this.video.src = this.video.srcObject = null;
  19368. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19369. const url = URL.createObjectURL(this.recorder.getBlob());
  19370. const a = document.createElement("a"); //this.fileName+
  19371. let videoFile = new File(
  19372. [this.recorder.getBlob()],
  19373. this.courseDetail.title + "录屏.mp4",
  19374. {
  19375. type: "video/mp4",
  19376. }
  19377. );
  19378. let downloadUrl = URL.createObjectURL(videoFile);
  19379. if(this.$refs.classRoomHelperRef){
  19380. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19381. }
  19382. document.body.appendChild(a);
  19383. a.style.display = "none";
  19384. a.href = url;
  19385. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19386. a.click();
  19387. this.recorder.screen.stop();
  19388. this.recorder.destroy();
  19389. this.recorder = null;
  19390. this.videoStart = false;
  19391. // callback(false);
  19392. });
  19393. },
  19394. //初始化
  19395. captureScreen(callback, type) {
  19396. if (navigator.getDisplayMedia) {
  19397. //录制结束,文件下载
  19398. navigator
  19399. .getDisplayMedia({
  19400. video: true,
  19401. })
  19402. .then((screenStream) => {
  19403. if (type) {
  19404. navigator.mediaDevices
  19405. .getUserMedia({ audio: true })
  19406. .then((mic) => {
  19407. screenStream.addTrack(mic.getTracks()[0]);
  19408. callback(screenStream);
  19409. });
  19410. } else {
  19411. callback(screenStream);
  19412. }
  19413. })
  19414. .catch(function (error) {
  19415. console.log("error", error);
  19416. });
  19417. } else if (navigator.mediaDevices.getDisplayMedia) {
  19418. navigator.mediaDevices
  19419. .getDisplayMedia({
  19420. video: true,
  19421. })
  19422. .then((screenStream) => {
  19423. if (type) {
  19424. navigator.mediaDevices
  19425. .getUserMedia({ audio: true })
  19426. .then((mic) => {
  19427. screenStream.addTrack(mic.getTracks()[0]);
  19428. callback(screenStream);
  19429. });
  19430. } else {
  19431. callback(screenStream);
  19432. }
  19433. })
  19434. .catch(function (error) {
  19435. console.log("error", error);
  19436. });
  19437. } else {
  19438. var error = "getDisplayMedia API are not supported in this browser.";
  19439. console.log("error", error);
  19440. alert(error);
  19441. }
  19442. },
  19443. //流监听
  19444. addStreamStopListener(stream, callback) {
  19445. stream.addEventListener(
  19446. "ended",
  19447. function () {
  19448. callback();
  19449. callback = function () {};
  19450. },
  19451. false
  19452. );
  19453. stream.addEventListener(
  19454. "inactive",
  19455. function () {
  19456. callback();
  19457. callback = function () {};
  19458. },
  19459. false
  19460. );
  19461. stream.getTracks().forEach(function (track) {
  19462. track.addEventListener(
  19463. "ended",
  19464. function () {
  19465. callback();
  19466. callback = function () {};
  19467. },
  19468. false
  19469. );
  19470. track.addEventListener(
  19471. "inactive",
  19472. function () {
  19473. callback();
  19474. callback = function () {};
  19475. },
  19476. false
  19477. );
  19478. });
  19479. },
  19480. updateGroup() {
  19481. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19482. this.dialogVisibleGroup2 = true;
  19483. },
  19484. numberPan() {
  19485. if (
  19486. /[^\d]/.test(this.groupJson.number) ||
  19487. this.groupJson.number < 2 ||
  19488. this.groupJson.number > 10
  19489. ) {
  19490. this.$message.error("请输入2-10的数字");
  19491. this.groupJson.number = "";
  19492. }
  19493. },
  19494. updateGroupJson() {
  19495. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19496. if (
  19497. this.groupStudentUid[this.toolindex][i].length >
  19498. this.groupJson2.number
  19499. ) {
  19500. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19501. return;
  19502. }
  19503. }
  19504. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19505. this.islock = this.groupJson.islock == 1 ? true : false;
  19506. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19507. this.taskCount
  19508. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19509. let params = [
  19510. {
  19511. cid: this.id,
  19512. chapters: JSON.stringify(this.chapInfoList),
  19513. uid: this.userid,
  19514. unitIndex: this.courseType,
  19515. },
  19516. ];
  19517. this.ajax
  19518. .post(this.$store.state.api + "updateWorkNew4", params)
  19519. .then((res) => {
  19520. this.$message.success("设置成功");
  19521. this.getCourseDetail(2);
  19522. this.dialogVisibleGroup2 = false;
  19523. this.groupJson2 = {};
  19524. this.$forceUpdate();
  19525. })
  19526. .catch((err) => {
  19527. this.$message.error("网络不佳");
  19528. console.error(err);
  19529. });
  19530. },
  19531. lockChair() {
  19532. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19533. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19534. this.updateGroupJson();
  19535. },
  19536. selectGroup(index) {
  19537. this.getCourseDetail(2, index);
  19538. },
  19539. joinGroup(index) {
  19540. if (this.groupJson.islock == 2) {
  19541. this.$message.error("位置已被锁定,无法加入");
  19542. return;
  19543. }
  19544. if (
  19545. this.groupStudent[this.toolindex][index].length >
  19546. this.groupJson.number ||
  19547. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19548. ) {
  19549. this.$message.error("位置已满,无法加入");
  19550. return;
  19551. }
  19552. let params = [
  19553. {
  19554. cid: this.id,
  19555. stage: this.courseType,
  19556. task: this.taskCount,
  19557. tool: this.toolindex,
  19558. g: index,
  19559. uid: this.userid,
  19560. },
  19561. ];
  19562. this.ajax
  19563. .post(this.$store.state.api + "joinGroup", params)
  19564. .then((res) => {
  19565. this.$message.success("加入成功");
  19566. this.getCourseDetail(2);
  19567. })
  19568. .catch((err) => {
  19569. this.$message.error("网络不佳");
  19570. console.error(err);
  19571. });
  19572. },
  19573. exitGroup(id) {
  19574. if (this.groupJson.islock == 2) {
  19575. this.$message.error("位置已被锁定,无法退出");
  19576. return;
  19577. }
  19578. let params = [
  19579. {
  19580. gid: id,
  19581. },
  19582. ];
  19583. this.ajax
  19584. .post(this.$store.state.api + "exitGroup", params)
  19585. .then((res) => {
  19586. this.$message.success("退出成功");
  19587. this.getCourseDetail(2);
  19588. })
  19589. .catch((err) => {
  19590. this.$message.error("网络不佳");
  19591. console.error(err);
  19592. });
  19593. },
  19594. groupUpload(index, task, gindex) {
  19595. this.taskCount = task;
  19596. this.toolindex = index;
  19597. this.groupIndex = gindex;
  19598. this.dialogVisibleGroupWork = true;
  19599. },
  19600. updateGroupChair(user) {
  19601. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19602. el.label = index;
  19603. return index != user.group;
  19604. });
  19605. this.updateGroupUser = user;
  19606. this.dialogVisibleUpdateGroup = true;
  19607. },
  19608. updateChair() {
  19609. if (
  19610. this.groupStudent[this.toolindex][this.checkChair].length >
  19611. this.groupJson.number ||
  19612. this.groupStudent[this.toolindex][this.checkChair].length ==
  19613. this.groupJson.number
  19614. ) {
  19615. this.$message.error("位置已满,无法加入");
  19616. return;
  19617. }
  19618. let params = [
  19619. {
  19620. cid: this.id,
  19621. stage: this.courseType,
  19622. task: this.taskCount,
  19623. tool: this.toolindex,
  19624. g: this.checkChair,
  19625. uid: this.updateGroupUser.userid,
  19626. },
  19627. ];
  19628. this.ajax
  19629. .post(this.$store.state.api + "joinGroup", params)
  19630. .then((res) => {
  19631. this.$message.success("修改成功");
  19632. this.updateGroupUser = {};
  19633. this.checkChair = "";
  19634. this.updateGroupArray = {};
  19635. this.dialogVisibleUpdateGroup = false;
  19636. this.getCourseDetail(2);
  19637. })
  19638. .catch((err) => {
  19639. this.$message.error("网络不佳");
  19640. console.error(err);
  19641. });
  19642. },
  19643. deleteGroupChair(gindex) {
  19644. this.checkDeleteGroup = [];
  19645. this.deleteGroupUser = JSON.parse(
  19646. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19647. );
  19648. this.deleteGroupArray = this.groupJson.group[gindex];
  19649. this.groupIndex = gindex;
  19650. this.dialogVisibleDeleteGroup = true;
  19651. },
  19652. async deleteChair() {
  19653. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19654. const gid =
  19655. this.groupStudent[this.toolindex][this.groupIndex][
  19656. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19657. this.checkDeleteGroup[i]
  19658. )
  19659. ];
  19660. let params = [
  19661. {
  19662. gid: gid.id,
  19663. },
  19664. ];
  19665. var a = await this.deleteChairA(params);
  19666. if (i == this.checkDeleteGroup.length - 1) {
  19667. this.$message.success("退出成功");
  19668. this.dialogVisibleDeleteGroup = false;
  19669. this.deleteGroupUser = [];
  19670. this.deleteGroupArray = {};
  19671. this.groupIndex = "";
  19672. this.checkDeleteGroup = [];
  19673. this.getCourseDetail(2);
  19674. }
  19675. }
  19676. },
  19677. deleteChairA(params) {
  19678. return new Promise((resolve, reject) => {
  19679. this.ajax
  19680. .post(this.$store.state.api + "exitGroup", params)
  19681. .then((res) => {
  19682. resolve(1);
  19683. })
  19684. .catch((err) => {
  19685. this.$message.error("网络不佳");
  19686. console.error(err);
  19687. });
  19688. });
  19689. },
  19690. contract(i) {
  19691. if (this.isCloseList[i].isClose == 0) {
  19692. this.isCloseList[i].isClose = 1;
  19693. } else {
  19694. this.isCloseList[i].isClose = 0;
  19695. }
  19696. this.$forceUpdate();
  19697. },
  19698. openWordCloud(toolindex) {
  19699. let array = [];
  19700. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19701. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19702. array.push({ name: works });
  19703. }
  19704. if (this.isGroup) {
  19705. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19706. let works = this.courseGroup.group[i].works[toolindex];
  19707. for (var j = 0; j < works.length; j++) {
  19708. let answer = JSON.parse(works[j].works)[0].answer;
  19709. array.push({ name: answer });
  19710. }
  19711. }
  19712. }
  19713. this.wordCloudData = array;
  19714. this.dialogVisibleWordCloud = true;
  19715. },
  19716. uploadWorks(i) {
  19717. this.$confirm("确定导出作业吗?", "提示", {
  19718. confirmButtonText: "确定",
  19719. cancelButtonText: "取消",
  19720. type: "warning",
  19721. })
  19722. .then(() => {
  19723. const loading = this.$loading.service({
  19724. background: "rgba(255, 255, 255, 0.7)",
  19725. target: document.body,
  19726. text: "文件加载中...",
  19727. });
  19728. const _worksStudent = this.worksStudent;
  19729. let url = [];
  19730. var counts = {};
  19731. for (var l = 0; l < _worksStudent[i].length; l++) {
  19732. var item = _worksStudent[i][l];
  19733. var name = item.sName;
  19734. if (!counts.hasOwnProperty(name)) {
  19735. counts[name] = 0;
  19736. } else {
  19737. counts[name]++;
  19738. }
  19739. if (counts[name] > 0) {
  19740. item.sName += " (" + counts[name] + ")";
  19741. }
  19742. }
  19743. for (var l = 0; l < _worksStudent[i].length; l++) {
  19744. var item = _worksStudent[i][l];
  19745. if (
  19746. item.works.indexOf(
  19747. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19748. ) !== -1 &&
  19749. item.works.indexOf("img") === -1
  19750. ) {
  19751. url.push({ name: item.sName, url: item.works });
  19752. }
  19753. }
  19754. // var toolList = [
  19755. // { name: "电子白板", tool: 1 },
  19756. // { name: "思维导图", tool: 3 },
  19757. // { name: "协同文档", tool: 6 },
  19758. // { name: "思维网格", tool: 7 },
  19759. // { name: "素材库", tool: 8 },
  19760. // { name: "学习资料", tool: 17 },
  19761. // { name: "便签", tool: 2 },
  19762. // { name: "问卷调查", tool: 4 },
  19763. // { name: "选择题", tool: 45 },
  19764. // { name: "倒计时", tool: 10 },
  19765. // { name: "问答", tool: 15 },
  19766. // { name: "课程设计", tool: 26 },
  19767. // { name: "训练服务器", tool: 18 },
  19768. // { name: "作业提交", tool: 16 },
  19769. // { name: "批量上传", tool: 50 },
  19770. // { name: "AIoT Blockly", tool: 21 },
  19771. // { name: "AI Python", tool: 23 },
  19772. // { name: "AI Blockly", tool: 24 },
  19773. // { name: "目标管理", tool: 25 },
  19774. // { name: "数学画板", tool: 31 },
  19775. // { name: "翻译", tool: 28 },
  19776. // { name: "魔盒识字", tool: 37 },
  19777. // { name: "数学画板", tool: 31 },
  19778. // { name: "24点", tool: 38 },
  19779. // { name: "GeoGebra", tool: 39 },
  19780. // { name: "源码编辑", tool: 32 },
  19781. // { name: "个人评价", tool: 40 },
  19782. // { name: "选择匹配", tool: 41 },
  19783. // { name: "汉字宫", tool: 44 },
  19784. // { name: "排序", tool: 47 },
  19785. // { name: "表格", tool: 48 },
  19786. // { name: "文档", tool: 52 },
  19787. // { name: "学生分组", tool: 49 },
  19788. // { name: "CocoPi", tool: 57 },
  19789. // { name: "模拟驾驶", tool: 58 },
  19790. // { name: "路径搜索", tool: 59 },
  19791. // { name: "深度学习", tool: 60 },
  19792. // { name: "全历史", tool: 61 },
  19793. // { name: "交互视频", tool: 62 },
  19794. // { name: "海龟编程", tool: 63 },
  19795. // { name: "挑人", tool: 65 },
  19796. // { name: "公式编辑", tool: 66 },
  19797. // { name: "分子结构", tool: 67 },
  19798. // { name: "时间轴", tool: 68 },
  19799. // ];
  19800. // var toolName = "";
  19801. // for(var w = 0;w<toolList.length;w++){
  19802. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19803. // toolName = toolList[w].name;
  19804. // }
  19805. // }
  19806. console.log(url);
  19807. this.downLoadAll(url, loading);
  19808. })
  19809. .catch(() => {});
  19810. },
  19811. downLoadAll(url, loading) {
  19812. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19813. const zip = new JSZip();
  19814. const cache = {};
  19815. const promises = [];
  19816. data.forEach((item) => {
  19817. const promise = getFile(item.url).then((data) => {
  19818. if (data.data != 1) {
  19819. // 下载文件, 并存成ArrayBuffer对象
  19820. const file_name =
  19821. item.name +
  19822. "." +
  19823. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19824. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19825. cache[file_name] = data.data;
  19826. }
  19827. });
  19828. promises.push(promise);
  19829. });
  19830. Promise.all(promises).then(() => {
  19831. zip.generateAsync({ type: "blob" }).then((content) => {
  19832. // 生成二进制流
  19833. FileSaver.saveAs(
  19834. content,
  19835. this.courseDetail.title + "-" + "作业提交工具.zip"
  19836. ); // 利用file-saver保存文件 自定义文件名
  19837. setTimeout(() => {
  19838. loading.close();
  19839. }, 2000);
  19840. });
  19841. });
  19842. },
  19843. pickStudent(stu) {
  19844. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19845. return;
  19846. }
  19847. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19848. confirmButtonText: "确定",
  19849. cancelButtonText: "取消",
  19850. type: "warning",
  19851. })
  19852. .then(() => {
  19853. let params = [
  19854. {
  19855. uid: stu.userid,
  19856. cid: this.id,
  19857. stage: this.courseType,
  19858. task: this.taskCount,
  19859. tool: this.toolindex,
  19860. },
  19861. ];
  19862. this.ajax
  19863. .post(this.$store.state.api + "updateCoursePick", params)
  19864. .then((res) => {
  19865. this.$message.success("操作成功");
  19866. this.getPick();
  19867. })
  19868. .catch((err) => {
  19869. this.$message.error("网络不佳");
  19870. console.error(err);
  19871. });
  19872. })
  19873. .catch(() => {});
  19874. },
  19875. selectUser(){
  19876. let params = {
  19877. userid: this.userid,
  19878. };
  19879. this.ajax
  19880. .get(this.$store.state.api + "selectUser", params)
  19881. .then((res) => {
  19882. this.userMes = res.data[0];
  19883. })
  19884. .catch((err) => {
  19885. console.error(err);
  19886. });
  19887. },
  19888. setEngText(i){
  19889. this.newEngIndex = i;
  19890. this.$forceUpdate();
  19891. },
  19892. addCorrect(){
  19893. this.$confirm("你确定提交批改嘛?", "提示", {
  19894. confirmButtonText: "确定",
  19895. showCancelButton: false,
  19896. closeOnClickModal: false,
  19897. type: "warning",
  19898. })
  19899. .then(() => {
  19900. let params = {
  19901. cid: this.id,
  19902. s: parseInt(this.courseType),
  19903. t: this.taskCount,
  19904. tool: this.toolindex,
  19905. wid: this.engWid,
  19906. c: this.userid,
  19907. 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) : "",
  19908. };
  19909. this.ajax
  19910. .get(this.$store.state.api + "addEngC", params)
  19911. .then((res) => {
  19912. this.$message.success("提交成功");
  19913. this.engUpdateDialogVisible = false;
  19914. })
  19915. .catch((err) => {
  19916. console.error(err);
  19917. });
  19918. })
  19919. .catch(() => {});
  19920. },
  19921. selectEngC(id,z){
  19922. let params = {
  19923. workid: id,
  19924. };
  19925. this.ajax
  19926. .get(this.$store.state.api + "selectEngC", params)
  19927. .then((res) => {
  19928. if(res.data[0].length == 0){
  19929. this.newEnglishList.engTitle = z.engTitle;
  19930. this.newEnglishList.engText = z.engText;
  19931. }else{
  19932. var a = res.data[0];
  19933. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19934. if(this.userMes[0].type == 2){
  19935. var snum = 0;
  19936. for(var i = 0;i<a.length;i++){
  19937. if(this.userMes[0].userid == a[i].correct){
  19938. this.newEnglishList = JSON.parse(a[i].cWork);
  19939. snum = 1;
  19940. }
  19941. }
  19942. if(snum == 0){
  19943. this.newEnglishList = { engTitle:"",engText:"" };
  19944. this.newEnglishList.engTitle = z.engTitle;
  19945. this.newEnglishList.engText = z.engText;
  19946. }
  19947. }else if(this.userMes[0].type == 1){
  19948. var num = 0;
  19949. for(var w= 0;w<a.length;w++){
  19950. if(this.userMes[0].userid == a[w].correct){
  19951. num = 1;
  19952. }
  19953. }
  19954. if(num == 0){
  19955. this.isNoUserid = true;
  19956. var c = JSON.parse(JSON.stringify(z));
  19957. this.oldEnglishJson1 = c;
  19958. }else{
  19959. this.isNoUserid = false;
  19960. }
  19961. var b = a.sort((item, index) => {
  19962. console.log(item)
  19963. if (item.correct === this.userMes[0].userid) {
  19964. return -1; // 将a移到前面
  19965. } else if (index.correct === this.userMes[0].userid) {
  19966. return 1; // 将b移到前面
  19967. } else {
  19968. return 0; // 保持默认顺序
  19969. }
  19970. });
  19971. for(var p = 0;p<b.length;p++){
  19972. for(var y = 0;y<ppp.length;y++){
  19973. if(b[p].id == ppp[y].id){
  19974. b[p].cWork = JSON.parse(ppp[y].cWork);
  19975. break
  19976. }
  19977. }
  19978. }
  19979. this.newEnglishList1 = b;
  19980. }
  19981. }
  19982. this.greyType = false;
  19983. setTimeout(() => {
  19984. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19985. if(this.newEnglishList1.length > 0){
  19986. if(this.isNoUserid == true){
  19987. this.engListLength = this.newEnglishList1.length + 1;
  19988. this.newEngIndex = -1;
  19989. }else{
  19990. this.engListLength = this.newEnglishList1.length;
  19991. this.newEngIndex = 0;
  19992. }
  19993. }
  19994. if(this.userMes[0].type == 2){
  19995. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19996. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19997. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19998. }else if(this.newEngIndex == -1){
  19999. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20000. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20001. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20002. }
  20003. }, 500);
  20004. this.engUpdateDialogVisible = true;
  20005. this.$forceUpdate();
  20006. })
  20007. .catch((err) => {
  20008. console.error(err);
  20009. });
  20010. },
  20011. getPick() {
  20012. let params = {
  20013. cid: this.id,
  20014. };
  20015. this.ajax
  20016. .get(this.$store.state.api + "getPick", params)
  20017. .then((res) => {
  20018. let array = [];
  20019. for (var i = 0; i < res.data[0].length; i++) {
  20020. array.push(res.data[0][i].userid);
  20021. }
  20022. this.isPickStudent = array;
  20023. if (array.indexOf(this.userid) !== -1) {
  20024. this.$confirm("你被老师选到啦!", "提示", {
  20025. confirmButtonText: "确定",
  20026. showCancelButton: false,
  20027. closeOnClickModal: false,
  20028. type: "warning",
  20029. })
  20030. .then(() => {
  20031. let pa = [
  20032. {
  20033. uid: this.userid,
  20034. cid: this.id,
  20035. },
  20036. ];
  20037. this.ajax
  20038. .post(this.$store.state.api + "deletePick", pa)
  20039. .then((res) => {
  20040. this.getPick();
  20041. })
  20042. .catch((err) => {
  20043. this.$message.error("网络不佳");
  20044. console.error(err);
  20045. });
  20046. })
  20047. .catch(() => {});
  20048. }
  20049. })
  20050. .catch((err) => {
  20051. this.$message.error("网络不佳");
  20052. console.error(err);
  20053. });
  20054. },
  20055. foldEva() {
  20056. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20057. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20058. } else {
  20059. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20060. setTimeout(() => {
  20061. this.checkEva();
  20062. setTimeout(() => {
  20063. this.checkEva();
  20064. }, 500);
  20065. }, 0);
  20066. }
  20067. this.$forceUpdate();
  20068. },
  20069. panToolHeight(tool) {
  20070. var _tool = document.querySelectorAll('#'+tool)[0]
  20071. var _toolA = _tool ? _tool.offsetHeight : 0
  20072. var _toolC = 0
  20073. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20074. let boolean2 = (_toolA > _toolC) ? true : false
  20075. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20076. this.$forceUpdate();
  20077. },
  20078. async checkLink(url) {
  20079. console.log(url)
  20080. let _url = url
  20081. try {
  20082. const response = await fetch(url);
  20083. if(!response.ok){
  20084. _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]))
  20085. }
  20086. console.log(response.ok)
  20087. } catch (error) {
  20088. console.error('Error checking link:', error);
  20089. // console.log(false)
  20090. _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]))
  20091. }
  20092. // console.log(_url)
  20093. return _url
  20094. },
  20095. getScoreList(){
  20096. let params = {
  20097. cid: this.id,
  20098. };
  20099. this.ajax
  20100. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20101. .then((res) => {
  20102. let result = res.data;
  20103. this.scoreList.datalist = result[0];
  20104. this.scoreList.isScoreList = result[1];
  20105. })
  20106. .catch((err) => {
  20107. console.error(err);
  20108. });
  20109. },
  20110. setClassRoomHelperWidth(width){
  20111. this.classRoomHelperWidth = width
  20112. },
  20113. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20114. this.$refs.choseWorksDetailDialogRef.open({
  20115. toolType:tooc,
  20116. tType: this.tType,
  20117. toolIndex: toolIndex
  20118. });
  20119. this.changeSplitScreenBehavior({
  20120. code: 1,
  20121. form: {
  20122. toolType:tooc,
  20123. toolIndex: toolIndex,
  20124. courseType: this.courseType,
  20125. taskCount: this.taskCount,
  20126. type: 0
  20127. }
  20128. });
  20129. },
  20130. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20131. this.$refs.statisticalAnalysisRef.open({
  20132. worksStudent: this.worksStudent[toolIndex],
  20133. tType: this.tType,
  20134. toolIndex: toolIndex
  20135. });
  20136. this.changeSplitScreenBehavior({
  20137. code: 2,
  20138. form: {
  20139. toolType:4,
  20140. courseType: this.courseType,
  20141. taskCount: this.taskCount,
  20142. toolIndex: toolIndex,
  20143. type: 0
  20144. }
  20145. });
  20146. },
  20147. statisticalAnalysisRefresh(toolIndex) {
  20148. this.$refs.statisticalAnalysisRef.refreshData({
  20149. worksStudent: this.worksStudent[toolIndex],
  20150. tType: this.tType,
  20151. toolIndex: toolIndex
  20152. });
  20153. },
  20154. async splitScreenBehavior(type = 0) {
  20155. // return;
  20156. if (this.splitScreenData.loading)
  20157. return this.$message.info("操作过快,请稍等");
  20158. if (type == 0) {
  20159. //关闭分屏
  20160. this.splitScreenData.isOpen = false;
  20161. // this.splitScreenData.userId = "";
  20162. // this.splitScreenData.uid = "";
  20163. this.splitScreenData.behavior = null;
  20164. await this.updateSplitScreenData(1);
  20165. this.$message.success("已关闭分屏模式");
  20166. this.studentFreePreview(false);
  20167. this.OpenJobPreview(false);
  20168. // this.followingMode(false);
  20169. } else if (type == 1) {
  20170. //开启分屏
  20171. this.splitScreenData.isOpen = true;
  20172. this.splitScreenData.userId = this.userid;
  20173. this.splitScreenData.uid = this.splitScreenData.myUid;
  20174. this.splitScreenData.behavior = null;
  20175. let status = await this.updateSplitScreenData(0);
  20176. this.changeSplitScreenBehavior({form:{}})
  20177. if (status == 1) {
  20178. this.$message.success("已开启分屏");
  20179. this.studentFreePreview(true);
  20180. this.OpenJobPreview(true);
  20181. // this.followingMode(true);
  20182. } else {
  20183. this.splitScreenData.isOpen = false;
  20184. this.splitScreenData.userId = "";
  20185. this.splitScreenData.uid = "";
  20186. this.splitScreenData.behavior = null;
  20187. this.$message.success("分屏开启失败");
  20188. }
  20189. }
  20190. },
  20191. enterFullScreen() {
  20192. let element = document.documentElement;
  20193. if (element.requestFullscreen) {
  20194. element.requestFullscreen();
  20195. } else if (element.mozRequestFullScreen) { /* Firefox */
  20196. element.mozRequestFullScreen();
  20197. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  20198. element.webkitRequestFullscreen();
  20199. } else if (element.msRequestFullscreen) { /* IE/Edge */
  20200. element.msRequestFullscreen();
  20201. }
  20202. },
  20203. exitFullScreen() {
  20204. if (document.exitFullscreen) {
  20205. document.exitFullscreen();
  20206. } else if (document.mozCancelFullScreen) { /* Firefox */
  20207. document.mozCancelFullScreen();
  20208. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  20209. document.webkitExitFullscreen();
  20210. } else if (document.msExitFullscreen) { /* IE/Edge */
  20211. document.msExitFullscreen();
  20212. }
  20213. },
  20214. confirmOpen(){
  20215. this.splitScreenData.isOpen = true;
  20216. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  20217. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  20218. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  20219. this.confirmOpenDig = false
  20220. if (!document.fullscreenElement) {
  20221. this.enterFullScreen();
  20222. }
  20223. if (this.timer2) {
  20224. clearInterval(this.timer2);
  20225. this.timer2 = null;
  20226. }
  20227. this.timer2 = setInterval(()=> {
  20228. this.getSplitScreenData();//获取分屏数据
  20229. }, 1000);
  20230. this.$message.success("分屏模式已开启");
  20231. },
  20232. getSplitScreenData() {
  20233. // return;
  20234. if (this.tType != 1) return;
  20235. let params = {
  20236. cid: this.id
  20237. };
  20238. this.ajax
  20239. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20240. .then(async res => {
  20241. let data = res.data[0][0]["splitScreenData"];
  20242. console.log("获取了分屏数:", data);
  20243. if (data) {
  20244. data = JSON.parse(data);
  20245. if (
  20246. !this.splitScreenData.isOpen &&
  20247. data.isOpen &&
  20248. this.splitScreenData.myUid == data.uid
  20249. ) {
  20250. this.splitScreenData.isOpen = false;
  20251. this.splitScreenData.userId = "";
  20252. this.splitScreenData.uid = "";
  20253. this.splitScreenData.behavior = null;
  20254. await this.updateSplitScreenData(1);
  20255. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20256. this.confirmOpenDig = true
  20257. this.confirmOpenDigData = data
  20258. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20259. this.splitScreenData.isOpen = false;
  20260. this.splitScreenData.userId = "";
  20261. this.splitScreenData.uid = "";
  20262. this.splitScreenData.behavior = null;
  20263. this.$message.error("已结束分屏模式");
  20264. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20265. this.splitScreenData.isOpen = true;
  20266. this.splitScreenData.uid = data.uid;
  20267. this.splitScreenData.userId = data.userId;
  20268. this.splitScreenData.behavior = data.behavior;
  20269. }
  20270. this.doSplitScreenBehavior();
  20271. } else {
  20272. if (this.splitScreenData.isOpen) {
  20273. this.splitScreenData.isOpen = false;
  20274. this.splitScreenData.userId = "";
  20275. this.splitScreenData.uid = "";
  20276. this.splitScreenData.behavior = null;
  20277. this.$message.error("已结束分屏模式");
  20278. if (this.timer2) {
  20279. clearInterval(this.timer2);
  20280. this.timer2 = null;
  20281. }
  20282. this.timer2 = setInterval(()=> {
  20283. this.getSplitScreenData();//获取分屏数据
  20284. }, 5000);
  20285. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  20286. confirmButtonText: '确定', //确认按钮的文字
  20287. showCancelButton: false, //是否显示取消按钮
  20288. showClose: false, //是否显示关闭按钮
  20289. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  20290. type: "warning",
  20291. })
  20292. .then(() => {
  20293. if (document.fullscreenElement) {
  20294. this.exitFullScreen();
  20295. }
  20296. })
  20297. .catch(() => {});
  20298. }
  20299. }
  20300. })
  20301. .catch(e => {
  20302. console.log("获取分屏数出错:", e);
  20303. });
  20304. },
  20305. doSplitScreenBehavior() {
  20306. if (
  20307. this.splitScreenData.isOpen &&
  20308. this.splitScreenData.uid != this.splitScreenData.myUid
  20309. ) {
  20310. let behavior = this.splitScreenData.behavior;
  20311. if (behavior) {
  20312. if (behavior.code === 99) {
  20313. //初始化
  20314. this.fullDialogVisible = false;
  20315. if(this.$refs.choseWorksDetailDialogRef.show){
  20316. this.$refs.choseWorksDetailDialogRef.close();
  20317. }
  20318. if(this.$refs.statisticalAnalysisRef.show){
  20319. this.$refs.statisticalAnalysisRef.close();
  20320. }
  20321. }
  20322. if (behavior.code === 0) {
  20323. //开启内容列表弹窗
  20324. this.checkFileFull1(behavior.form.t, behavior.form.f);
  20325. }else{
  20326. this.fullDialogVisible = false;
  20327. }
  20328. if (behavior.code === 1) {
  20329. //关于选择题的作业详细的操作
  20330. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20331. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20332. this.courseType = behavior.form.courseType;
  20333. this.taskCount = behavior.form.taskCount;
  20334. }
  20335. this.$nextTick(() => {
  20336. if (this.$refs.choseWorksDetailDialogRef.show) {
  20337. //已经打开了
  20338. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  20339. } else {
  20340. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  20341. }
  20342. });
  20343. }else{
  20344. this.$refs.choseWorksDetailDialogRef.close()
  20345. }
  20346. if(behavior.code === 2){
  20347. if(this.$refs.statisticalAnalysisRef.show){
  20348. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20349. }else{
  20350. this.$refs.statisticalAnalysisRef.open({
  20351. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20352. tType: this.tType,
  20353. toolIndex: behavior.form.toolIndex
  20354. });
  20355. }
  20356. }else{
  20357. this.$refs.statisticalAnalysisRef.close();
  20358. }
  20359. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  20360. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  20361. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  20362. if(this.courseType !=behavior.form.courseType){
  20363. this.courseType = behavior.form.courseType;
  20364. }
  20365. if(this.taskCount !=behavior.form.taskCount){
  20366. this.taskCount = behavior.form.taskCount;
  20367. }
  20368. var a = document.scrollingElement;
  20369. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  20370. if (target) {
  20371. target.scrollIntoView(true);
  20372. setTimeout(() => {
  20373. a.scrollTop = 0
  20374. }, 0);
  20375. }
  20376. // if(behavior.form.navId){
  20377. // this.navId = behavior.form.navId
  20378. // }
  20379. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  20380. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  20381. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  20382. this.getCourseDetail()
  20383. }
  20384. this.setContent2(false)
  20385. }
  20386. } else {
  20387. }
  20388. }
  20389. },
  20390. updateSplitScreenData(empty = 0) {
  20391. return new Promise(resolve => {
  20392. if(this.userid!==this.courseDetail.userid){
  20393. if(!this.courseDetail.userid){
  20394. return setTimeout(()=>{
  20395. this.updateSplitScreenData(empty)
  20396. },2000)
  20397. }
  20398. return;
  20399. };
  20400. if (
  20401. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20402. this.splitScreenData.userId == this.userid
  20403. ) {
  20404. this.splitScreenData.loading = true;
  20405. let params = [
  20406. {
  20407. cid: this.id,
  20408. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20409. }
  20410. ];
  20411. this.ajax
  20412. .post(
  20413. this.$store.state.api + "update_courseSplitScreenData",
  20414. params
  20415. )
  20416. .then(res => {
  20417. this.splitScreenData.loading = false;
  20418. if (res.data == 1) {
  20419. resolve(1);
  20420. console.log("修改分屏数据成功");
  20421. }
  20422. })
  20423. .catch(e => {
  20424. this.splitScreenData.loading = false;
  20425. console.log("修改分屏数据失败", e);
  20426. resoleve(0);
  20427. });
  20428. } else if (empty == 2 && this.tType == 1) {
  20429. console.log("清空清空清空清空")
  20430. let params = [
  20431. {
  20432. cid: this.id,
  20433. nData: ""
  20434. }
  20435. ];
  20436. return this.ajax
  20437. .post(
  20438. this.$store.state.api + "update_courseSplitScreenData",
  20439. params
  20440. )
  20441. .then(_ => resolve(1))
  20442. .catch(_ => resolve(0));
  20443. } else {
  20444. return resolve(0);
  20445. }
  20446. });
  20447. },
  20448. changeSplitScreenBehavior(newValue) {
  20449. if (
  20450. this.splitScreenData.isOpen &&
  20451. this.splitScreenData.uid == this.splitScreenData.myUid
  20452. ) {
  20453. let _behavior = null;
  20454. if(!newValue){
  20455. _behavior = {}
  20456. }else{
  20457. _behavior = newValue
  20458. }
  20459. if(_behavior.form){
  20460. _behavior.form.taskCount = this.taskCount;
  20461. _behavior.form.courseType = this.courseType
  20462. }else{
  20463. _behavior.form = {
  20464. taskCount:this.taskCount,
  20465. courseType:this.courseType
  20466. }
  20467. }
  20468. this.splitScreenData.behavior = _behavior;
  20469. this.updateSplitScreenData(0);
  20470. }
  20471. },
  20472. studentFreePreview(flag) {
  20473. this.IsLookOpen = flag;
  20474. this.updateLookOpen();
  20475. this.followingMode(flag)
  20476. },
  20477. OpenJobPreview(flag) {
  20478. this.sIsOpen = flag;
  20479. this.updateSLook();
  20480. },
  20481. followingMode(flag) {
  20482. this.IsFollow = flag;
  20483. this.updateFollow();
  20484. }
  20485. },
  20486. directives: {
  20487. // 使用局部注册指令的方式
  20488. resize: {
  20489. // 指令的名称
  20490. bind(el, binding) {
  20491. // el为绑定的元素,binding为绑定给指令的对象
  20492. let width = "",
  20493. height = "";
  20494. function isReize() {
  20495. const style = document.defaultView.getComputedStyle(el);
  20496. if (width !== style.width || height !== style.height) {
  20497. binding.value(); // 关键
  20498. }
  20499. width = style.width;
  20500. height = style.height;
  20501. }
  20502. el.__vueSetInterval__ = setInterval(isReize, 300);
  20503. },
  20504. unbind(el) {
  20505. clearInterval(el.__vueSetInterval__);
  20506. },
  20507. },
  20508. autoHeight: {
  20509. update(el, binding) {
  20510. const { value } = binding
  20511. if (value && typeof value === 'number') {
  20512. el.style.height = `${value}px`
  20513. } else {
  20514. el.style.height = 'auto'
  20515. }
  20516. },
  20517. componentUpdated(el) {
  20518. el.style.height = `${el.scrollHeight}px`
  20519. },
  20520. },
  20521. },
  20522. beforeDestroy() {
  20523. window.onresize = null;
  20524. clearInterval(this.timer);
  20525. this.timer = null;
  20526. clearInterval(this.timer2);
  20527. this.timer2 = null;
  20528. clearInterval(this.opertimer);
  20529. this.opertimer = null;
  20530. this.updateSplitScreenData(1);
  20531. },
  20532. computed: {
  20533. contentConvent() {
  20534. return function (c) {
  20535. return c
  20536. ? c
  20537. .replaceAll(/\r\n/g, "<br/>")
  20538. .replaceAll(/\n/g, "<br/>")
  20539. .replaceAll(/\s/g, " &nbsp")
  20540. : "";
  20541. };
  20542. },
  20543. commentRight(){
  20544. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  20545. return "35px";
  20546. }
  20547. return `calc(${this.classRoomHelperWidth} + 5px)`
  20548. // if(this.$refs["classRoomHelperRef"].type==0){
  20549. // return "100px";
  20550. // }else if(this.$refs["classRoomHelperRef"].type==1){
  20551. // return "502px"
  20552. // }else{
  20553. // return "0px"
  20554. // }
  20555. },
  20556. checkUpload() {
  20557. return function () {
  20558. var studentK = [];
  20559. if (this.plworkFile.length > 0) {
  20560. for (var z = 0; z < this.plworkFile.length; z++) {
  20561. studentK.push(this.plworkFile[z].username);
  20562. }
  20563. studentK = studentK.join(",");
  20564. }
  20565. var a = this.uploadStudentJuri.filter((el) => {
  20566. return studentK.indexOf(el.userid) == -1;
  20567. });
  20568. return a;
  20569. };
  20570. },
  20571. getSName() {
  20572. return function (name) {
  20573. var check = name;
  20574. this.uploadStudentJuri.forEach((el) => {
  20575. if (el.userid == check) {
  20576. check = el.name ? el.name : el.username;
  20577. }
  20578. });
  20579. return check;
  20580. };
  20581. },
  20582. getImgList() {
  20583. return function (val) {
  20584. let srcList = []; // 定义一个数组用来接收后面的img地址
  20585. val.replace(
  20586. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  20587. function (match, capture) {
  20588. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  20589. srcList.push(capture);
  20590. }
  20591. );
  20592. return srcList;
  20593. };
  20594. },
  20595. retrnToolHeight(){
  20596. return function (tool) {
  20597. var _tool = document.querySelectorAll('#'+tool)[0]
  20598. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  20599. };
  20600. },
  20601. Correct() {
  20602. return function (c) {
  20603. let w = "";
  20604. let a = this.correctWord;
  20605. for(var k = 0;k<a.length;k++){
  20606. //diffWordsWithSpace
  20607. if(a.length > 1){
  20608. if(a[k].added == true){
  20609. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20610. }else if(a[k].removed == true){
  20611. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20612. }else{
  20613. w += '<span>' + a[k].value + '</span>';
  20614. }
  20615. }else{
  20616. w = c
  20617. }
  20618. //diffChars方法
  20619. // if(a.length > 1){
  20620. // if(w == ""){
  20621. // if(a[k].added == true){
  20622. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20623. // }else if(a[k].removed == true){
  20624. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20625. // }
  20626. // }else{
  20627. // if(k == a.length - 1){
  20628. // if(a[k].added == true){
  20629. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20630. // }else if(a[k].removed == true){
  20631. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20632. // }
  20633. // }else{
  20634. // if(a[k].added == true){
  20635. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20636. // }else if(a[k].removed == true){
  20637. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20638. // }
  20639. // }
  20640. // }
  20641. // }else{
  20642. // w = c
  20643. // }
  20644. }
  20645. c = w;
  20646. return c;
  20647. };
  20648. },
  20649. },
  20650. mounted() {
  20651. document.body.addEventListener("click", (e) => {
  20652. if (this.isUpdateToolDetail1) {
  20653. this.updateToolDetail(this.toolDetailIndex);
  20654. }
  20655. });
  20656. if (this.screenType == 2) {
  20657. window.parent.postMessage({ allScreen: 4 }, "*");
  20658. } else if (this.screenType == 3) {
  20659. window.parent.postMessage({ allScreen: 5 }, "*");
  20660. } else if (this.screenType == 1) {
  20661. window.parent.postMessage({ allScreen: 6 }, "*");
  20662. }
  20663. this.setOperationTime();
  20664. this.selectEva();
  20665. this.getCourseDetail();
  20666. this.selectCount();
  20667. this.getHomeWork();
  20668. this.selectUser();
  20669. this.getAIJ();
  20670. this.updateSplitScreenData(2);
  20671. this.splitScreenData.myUid = uuidv4();
  20672. this.contentDialog = true;
  20673. this.setContent2(true);
  20674. if (this.tType == 4) {
  20675. this.pzDialog = true;
  20676. this.selectPz();
  20677. }
  20678. // 获取评分列表
  20679. this.getScoreList()
  20680. document.scrollingElement.scrollTop = 0;
  20681. window.addEventListener("resize", () => {
  20682. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20683. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20684. if (this.showType == 2 || this.showType == 3) {
  20685. document.getElementsByClassName("navBox")[0].style.height =
  20686. a - 40 + 0+ "px";
  20687. } else {
  20688. document.getElementsByClassName("navBox")[0].style.height =
  20689. a - 40 + "px";
  20690. }
  20691. });
  20692. let _this = this;
  20693. setTimeout(() => {
  20694. // _this.vedioTime = [];
  20695. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20696. // _this.vedioTime[i] = document.getElementsByClassName(
  20697. // "vjs-duration-display"
  20698. // )[i].textContent;
  20699. // }
  20700. }, 1000);
  20701. },
  20702. };
  20703. </script>
  20704. <style scoped>
  20705. @media screen and (max-width: 1280px) {
  20706. /* .courseIndex > div:first-child(2) {
  20707. width: 15% !important;
  20708. } */
  20709. /* .navText {
  20710. width: 120px !important;
  20711. } */
  20712. .evaCss {
  20713. flex-direction: column !important;
  20714. align-items: center !important;
  20715. }
  20716. .elist_input {
  20717. width: 90% !important;
  20718. }
  20719. .dialog_diy1 >>> .el-dialog {
  20720. width: 100% !important;
  20721. }
  20722. .rightWidthCss {
  20723. width: 100% !important;
  20724. }
  20725. .dialog_diy3 >>> .el-dialog {
  20726. width: 100% !important;
  20727. }
  20728. .addToolCss {
  20729. right: 0 !important;
  20730. width: 100% !important;
  20731. min-width: unset !important;
  20732. }
  20733. }
  20734. .evaCssMax {
  20735. flex-direction: column !important;
  20736. align-items: center !important;
  20737. }
  20738. .dialog_diy >>> .el-dialog {
  20739. margin-top: 10vh !important;
  20740. }
  20741. .body_student {
  20742. width: 77%;
  20743. height: 100%;
  20744. position: absolute;
  20745. left: 22%;
  20746. top: 0;
  20747. }
  20748. .student_head {
  20749. width: 100%;
  20750. margin: 20px auto 0;
  20751. padding-bottom: 20px;
  20752. display: flex;
  20753. flex-direction: column;
  20754. flex-wrap: nowrap;
  20755. align-items: flex-start;
  20756. justify-content: flex-start;
  20757. }
  20758. .pb_left {
  20759. width: 20%;
  20760. margin-right: 10px;
  20761. background: rgb(255, 255, 255);
  20762. position: fixed;
  20763. height: calc(100% - 40px);
  20764. border-radius: 20px;
  20765. padding-bottom: 15px;
  20766. box-sizing: border-box;
  20767. }
  20768. .wheel > img,
  20769. .project > img,
  20770. .star > img,
  20771. .evaluate > img,
  20772. .up_photo > img,
  20773. .chapter_add > img,
  20774. .deleteWord > img,
  20775. .question > img,
  20776. .homework > img {
  20777. width: 100%;
  20778. height: 100%;
  20779. }
  20780. .upCover > img {
  20781. width: 131px;
  20782. height: 69px;
  20783. object-fit: cover;
  20784. }
  20785. .upCover {
  20786. width: calc(100% / 3.5);
  20787. position: relative;
  20788. margin: 0 15px 10px 0;
  20789. display: flex;
  20790. flex-direction: column;
  20791. flex-wrap: nowrap;
  20792. justify-content: center;
  20793. align-content: center;
  20794. align-items: center;
  20795. height: fit-content;
  20796. }
  20797. .upCover2 {
  20798. width: 100%;
  20799. position: relative;
  20800. margin: 0 15px 10px 0;
  20801. display: flex;
  20802. flex-direction: column;
  20803. flex-wrap: nowrap;
  20804. justify-content: center;
  20805. align-content: center;
  20806. align-items: center;
  20807. }
  20808. .upCover2 > img {
  20809. width: 100%;
  20810. height: 90px;
  20811. object-fit: contain;
  20812. }
  20813. .chapter_add {
  20814. width: 120px;
  20815. position: relative;
  20816. text-align: center;
  20817. }
  20818. .isAddThings {
  20819. margin-top: 20px;
  20820. position: relative;
  20821. text-align: center;
  20822. background: #f7f8fa;
  20823. height: 90px;
  20824. width: 90px;
  20825. display: flex;
  20826. flex-direction: column;
  20827. justify-content: center;
  20828. }
  20829. .deleteWord {
  20830. width: 22px;
  20831. height: 22px;
  20832. position: absolute;
  20833. right: -5px;
  20834. top: -5px;
  20835. cursor: pointer;
  20836. }
  20837. .box_course {
  20838. /* width: 60%; */
  20839. width: calc(100% - 300px);
  20840. }
  20841. .wheel {
  20842. width: 100%;
  20843. /* height: 100%; */
  20844. height: 650px;
  20845. }
  20846. .right_box {
  20847. display: flex;
  20848. flex-direction: column;
  20849. margin-left: 30px;
  20850. justify-content: space-around;
  20851. }
  20852. .right_box_title {
  20853. font-size: 23px;
  20854. }
  20855. .people {
  20856. display: flex;
  20857. }
  20858. .student_body {
  20859. width: 100%;
  20860. margin: 0 auto;
  20861. margin-top: 10px;
  20862. padding: 0 0 20px;
  20863. }
  20864. .study_top {
  20865. margin-top: 100px;
  20866. width: 100%;
  20867. height: auto;
  20868. padding-bottom: 20px;
  20869. margin-left: 2px;
  20870. min-height: 90%;
  20871. }
  20872. .study_top .checkbox {
  20873. display: flex;
  20874. align-items: center;
  20875. padding: 15px 0 15px 30px;
  20876. flex: 0 0 auto;
  20877. font-weight: bold;
  20878. border-bottom: 1px solid #eee;
  20879. }
  20880. .study_top .check {
  20881. padding-bottom: 5px;
  20882. text-align: center;
  20883. cursor: pointer;
  20884. height: 30px;
  20885. box-sizing: border-box;
  20886. display: flex;
  20887. }
  20888. .study_top .checked {
  20889. border-bottom: 4px solid #3fc6a0;
  20890. padding-bottom: 5px;
  20891. color: #3fc6a0;
  20892. display: flex;
  20893. height: 35px;
  20894. }
  20895. .study_top .checked > div,
  20896. .study_top .check > div {
  20897. margin-right: 5px;
  20898. }
  20899. .videoTop {
  20900. display: flex;
  20901. flex-direction: row;
  20902. justify-content: space-between;
  20903. background: #fff;
  20904. align-items: center;
  20905. width: 95%;
  20906. padding: 20px;
  20907. }
  20908. .filebox {
  20909. display: flex;
  20910. flex-wrap: wrap;
  20911. flex-direction: column;
  20912. padding: 0 0 5px;
  20913. position: relative;
  20914. }
  20915. .filebox:before {
  20916. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20917. position: absolute;
  20918. top: 20px;
  20919. left: 13px;
  20920. border-left: 2px dotted #cad1dc;
  20921. height: calc(100% - 15px);
  20922. }
  20923. .toolHeng2 > div:last-child::before {
  20924. height: calc(100% - 43px);
  20925. }
  20926. .filebox .tooldetail {
  20927. width: calc(100%);
  20928. margin: 0px 12px;
  20929. padding: 12px;
  20930. line-height: 30px;
  20931. word-break: break-word;
  20932. background: #ffffff;
  20933. border-radius: 8px 8px 8px 8px;
  20934. opacity: 1;
  20935. border: 1px solid #cad1dc;
  20936. overflow:hidden;
  20937. box-sizing:border-box;
  20938. }
  20939. .file {
  20940. display: flex;
  20941. flex-direction: column;
  20942. align-items: center;
  20943. justify-content: center;
  20944. cursor: pointer;
  20945. width: 200px;
  20946. }
  20947. .file div {
  20948. margin-top: 10px;
  20949. width: 150px;
  20950. text-align: center;
  20951. overflow: hidden;
  20952. white-space: nowrap;
  20953. text-overflow: ellipsis;
  20954. }
  20955. .media {
  20956. display: flex;
  20957. flex-direction: column;
  20958. align-items: center;
  20959. justify-content: center;
  20960. margin: 0 20px 20px 0;
  20961. cursor: pointer;
  20962. margin: 12px 0 5px 15px;
  20963. overflow: hidden;
  20964. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  20965. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  20966. box-sizing: border-box;
  20967. }
  20968. .media img {
  20969. height: 90px;
  20970. width: 160px;
  20971. object-fit: cover;
  20972. }
  20973. .media .title {
  20974. padding: 5px;
  20975. text-align: left;
  20976. width: 100%;
  20977. box-sizing: border-box;
  20978. }
  20979. .media .btn {
  20980. width: 100%;
  20981. height: 35px;
  20982. line-height: 35px;
  20983. color: #fff;
  20984. background: #606060;
  20985. text-align: center;
  20986. overflow: hidden;
  20987. white-space: nowrap;
  20988. text-overflow: ellipsis;
  20989. }
  20990. .detail_content_top {
  20991. width: 100%;
  20992. padding: 25px 0 25px 0;
  20993. }
  20994. .detail_title {
  20995. text-align: center;
  20996. font-size: 24px;
  20997. }
  20998. .detail_time {
  20999. font-size: 13px;
  21000. padding: 15px 0 0 40px;
  21001. }
  21002. .detail_content {
  21003. line-height: 2pc;
  21004. width: 90%;
  21005. margin: 0 auto;
  21006. padding-top: 30px;
  21007. text-indent: 30px;
  21008. overflow: auto;
  21009. height: 200px;
  21010. }
  21011. .score_box >>> .el-rate {
  21012. margin-left: 10px;
  21013. }
  21014. .dialog_change >>> .el-dialog {
  21015. border-radius: 5px;
  21016. }
  21017. .dialog_change >>> .el-dialog__header {
  21018. background: #f2f2f2;
  21019. text-align: center;
  21020. }
  21021. .dialog_change >>> .el-dialog__title {
  21022. line-height: 5px;
  21023. }
  21024. .dialog_change >>> .el-dialog__body {
  21025. background: #fff;
  21026. padding: 10px 20px;
  21027. }
  21028. .score_box {
  21029. display: flex;
  21030. align-items: center;
  21031. margin-bottom: 18px;
  21032. margin-top: 20px;
  21033. }
  21034. .up_photo {
  21035. width: 120px;
  21036. cursor: pointer;
  21037. margin-top: 10px;
  21038. }
  21039. .up_photo2 {
  21040. width: 180px;
  21041. box-sizing: border-box;
  21042. min-width: 180px;
  21043. height: 180px;
  21044. max-height: 180px;
  21045. min-height: 180px;
  21046. cursor: pointer;
  21047. display: flex;
  21048. flex-direction: column;
  21049. align-items: center;
  21050. justify-content: center;
  21051. background: rgb(242, 246, 255);
  21052. /* padding: 25px; */
  21053. margin-bottom: 10px;
  21054. }
  21055. .up_photo2 img {
  21056. width: 50%;
  21057. height: auto;
  21058. }
  21059. .up_photo2 span {
  21060. color: #898989;
  21061. }
  21062. .plworkBox {
  21063. display: flex;
  21064. align-items: center;
  21065. margin-top: 10px;
  21066. flex-wrap: wrap;
  21067. }
  21068. .upload_send {
  21069. margin: 30px auto 30px;
  21070. width: 60%;
  21071. background: #3681fc;
  21072. text-align: center;
  21073. height: 35px;
  21074. line-height: 35px;
  21075. color: #fff;
  21076. border-radius: 5px;
  21077. cursor: pointer;
  21078. }
  21079. .marginT {
  21080. margin-top: 20px;
  21081. }
  21082. .cd_content_steps {
  21083. display: flex;
  21084. width: 90%;
  21085. justify-content: space-around;
  21086. border-top: 1px solid #eeeeee;
  21087. }
  21088. .cd_steps_box {
  21089. display: flex;
  21090. justify-content: center;
  21091. align-items: center;
  21092. flex-direction: column;
  21093. cursor: pointer;
  21094. }
  21095. .first {
  21096. display: flex;
  21097. align-items: center;
  21098. margin: 15px 0 20px 0;
  21099. font-size: 20px;
  21100. }
  21101. .first > div:nth-child(2) {
  21102. font-size: 16px !important;
  21103. padding-left: 10px;
  21104. line-height: 26px;
  21105. box-sizing: border-box;
  21106. }
  21107. .blue_box_one {
  21108. text-align: center;
  21109. color: #fff;
  21110. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  21111. border-radius: 7px;
  21112. margin: 10px;
  21113. cursor: pointer;
  21114. width: 95%;
  21115. height: 45px;
  21116. display: flex;
  21117. flex-direction: row;
  21118. justify-content: flex-start;
  21119. align-items: center;
  21120. }
  21121. .blue_box_one > div:nth-child(1) {
  21122. line-height: 30px;
  21123. margin: 0 5px 0 10px;
  21124. width: 30%;
  21125. min-width: 70px;
  21126. border-radius: 4px;
  21127. }
  21128. .blue_box_one > div:nth-child(2) {
  21129. white-space: nowrap;
  21130. text-overflow: ellipsis;
  21131. overflow: hidden;
  21132. word-break: break-all;
  21133. width: 70%;
  21134. text-align: left;
  21135. margin-right: 10px;
  21136. max-width: calc(100% - 85px);
  21137. }
  21138. .blue_box_one > div:nth-child(2):hover {
  21139. overflow: hidden;
  21140. text-overflow: ellipsis;
  21141. white-space: nowrap;
  21142. cursor: pointer;
  21143. }
  21144. .upFile {
  21145. margin: 0 auto;
  21146. width: 120px;
  21147. background: #3681fc;
  21148. color: #fff;
  21149. height: 30px;
  21150. text-align: center;
  21151. line-height: 30px;
  21152. border-radius: 5px;
  21153. font-size: 14px;
  21154. cursor: pointer;
  21155. }
  21156. .courseTitle {
  21157. width: 85%;
  21158. margin: 10px auto 26px auto;
  21159. display: flex;
  21160. flex-direction: row;
  21161. align-items: center;
  21162. justify-content: space-between;
  21163. text-align: center;
  21164. }
  21165. .courseTitle .ctitle {
  21166. font-size: 20px;
  21167. font-weight: bold;
  21168. color: #0e1e33;
  21169. white-space: nowrap;
  21170. overflow: hidden;
  21171. text-overflow: ellipsis;
  21172. }
  21173. .inviteBox {
  21174. font-size: 14px;
  21175. /* margin-top: 5px; */
  21176. color: #00000099;
  21177. text-align: center;
  21178. }
  21179. .courseTitle >>> .el-tooltip {
  21180. width: 100%;
  21181. white-space: nowrap;
  21182. overflow: hidden;
  21183. text-overflow: ellipsis;
  21184. word-break: break-word;
  21185. }
  21186. .ml {
  21187. margin-left: 20px;
  21188. color: #5b7dba;
  21189. border-left: 3px solid #5b7dba;
  21190. padding-left: 5px;
  21191. font-weight: bold;
  21192. }
  21193. .return {
  21194. width: 2rem;
  21195. height: 2rem;
  21196. cursor: pointer;
  21197. }
  21198. .return > img {
  21199. width: 100%;
  21200. height: 100%;
  21201. }
  21202. .returnBtn {
  21203. width: 86px;
  21204. height: 36px;
  21205. background: #3681fc;
  21206. border-radius: 4px;
  21207. color: #fff;
  21208. text-align: center;
  21209. line-height: 36px;
  21210. margin-right: 20px;
  21211. cursor: pointer;
  21212. font-size: 14px;
  21213. font-weight: 400;
  21214. display: flex;
  21215. flex-direction: row;
  21216. flex-wrap: nowrap;
  21217. align-items: center;
  21218. justify-content: center;
  21219. }
  21220. .reBtnIcon,
  21221. .commentIcon,
  21222. .vedioIcon,
  21223. .vedioIcon1 {
  21224. /* width: 36px; */
  21225. height: 36px;
  21226. border-radius: 4px;
  21227. position: relative;
  21228. /* background: #e0eafb; */
  21229. background: #0061ff;
  21230. cursor: pointer;
  21231. margin-right: 12px;
  21232. display: flex;
  21233. align-items: center;
  21234. padding: 0 10px;
  21235. box-sizing: border-box;
  21236. font-size: 14px;
  21237. color: #fff;
  21238. }
  21239. .reBtnIcon::before,
  21240. .commentIcon::before,
  21241. .vedioIcon::before,
  21242. .vedioIcon1::before {
  21243. content: "";
  21244. display: block;
  21245. background-size: 100% 100%;
  21246. background-repeat: no-repeat;
  21247. width: 20px;
  21248. height: 20px;
  21249. margin-right: 5px;
  21250. /* position: absolute; */
  21251. /* top: 8px;
  21252. left: 8px; */
  21253. }
  21254. .vedioIcon1 {
  21255. background: #f63564;
  21256. }
  21257. .reBtnIcon::before {
  21258. background-image: url("../assets/icon/newIcons/refresh.png");
  21259. }
  21260. .commentIcon::before {
  21261. background-image: url("../assets/icon/newIcons/comment.png");
  21262. }
  21263. .vedioIcon::before {
  21264. background-image: url("../assets/icon/newIcons/transcribe.png");
  21265. }
  21266. .vedioIcon1::before {
  21267. /* background-image: url("../assets/icon/newIcons/istranscribe.png"); */
  21268. background-image: url("../assets/icon/newIcons/transcribe.png");
  21269. }
  21270. .tool {
  21271. display: flex;
  21272. flex-direction: column;
  21273. flex-wrap: nowrap;
  21274. width: 13%;
  21275. margin: 0 30px;
  21276. align-items: center;
  21277. position: relative;
  21278. padding: 10px 25px;
  21279. cursor: pointer;
  21280. }
  21281. .whiteBIcon {
  21282. width: 150px;
  21283. }
  21284. .whiteBIcon > img {
  21285. width: 100%;
  21286. height: 100%;
  21287. }
  21288. .mask {
  21289. background-color: rgba(0, 0, 0, 0);
  21290. position: fixed;
  21291. top: 0;
  21292. left: 0;
  21293. width: 100%;
  21294. height: 100%;
  21295. z-index: 20000;
  21296. display: flex;
  21297. align-items: center;
  21298. justify-content: center;
  21299. }
  21300. .progressBox {
  21301. width: 500px;
  21302. height: 180px;
  21303. background: #fff;
  21304. border-radius: 10px;
  21305. box-shadow: 0 0 6px 1px #bfbfbf;
  21306. display: flex;
  21307. align-items: center;
  21308. justify-content: center;
  21309. flex-direction: column;
  21310. position: relative;
  21311. color: #6c6c6c;
  21312. }
  21313. .progressBox >>> .el-progress-bar__outer {
  21314. background-color: #d1dfff !important;
  21315. }
  21316. .progressBox .lbox {
  21317. height: 50px;
  21318. font-size: 19px;
  21319. display: flex;
  21320. align-items: center;
  21321. color: #747474;
  21322. }
  21323. .progressBox .lbox img {
  21324. width: 40px;
  21325. margin-right: 20px;
  21326. }
  21327. .closeCss {
  21328. position: absolute;
  21329. top: 8px;
  21330. right: 8px;
  21331. cursor: pointer;
  21332. width: 20px;
  21333. height: 20px;
  21334. }
  21335. .closeCss > img {
  21336. width: 100%;
  21337. height: 100%;
  21338. }
  21339. .uploadVedio {
  21340. display: flex;
  21341. flex-direction: column;
  21342. flex-wrap: nowrap;
  21343. justify-content: center;
  21344. align-items: center;
  21345. margin: 0 15px 10px 0;
  21346. }
  21347. .uploadVedio > img {
  21348. width: 30px;
  21349. height: 30px;
  21350. }
  21351. .uploadVedio > span {
  21352. white-space: nowrap;
  21353. overflow: hidden;
  21354. text-overflow: ellipsis;
  21355. width: 75px;
  21356. margin-top: 7px;
  21357. }
  21358. .picName {
  21359. white-space: nowrap;
  21360. overflow: hidden;
  21361. text-overflow: ellipsis;
  21362. width: 75px;
  21363. margin-top: 7px;
  21364. }
  21365. .new_top {
  21366. display: flex;
  21367. background: #fff;
  21368. flex-direction: row;
  21369. justify-content: flex-start;
  21370. align-items: center;
  21371. height: 60px;
  21372. position: fixed;
  21373. top: 20px;
  21374. left: 22%;
  21375. width: 77%;
  21376. z-index: 999;
  21377. border-radius: 12px 12px 0 0;
  21378. border-bottom: 1px solid #cad1dc;
  21379. padding: 10px 0;
  21380. }
  21381. .new_topFixed {
  21382. width: 100%;
  21383. height: 40px;
  21384. position: fixed;
  21385. top: 0px;
  21386. display: block;
  21387. background: #f2f2f2;
  21388. z-index: 998;
  21389. }
  21390. .before {
  21391. position: absolute;
  21392. background: #c3dad4;
  21393. width: 6px;
  21394. height: 100%;
  21395. }
  21396. .courseIndex {
  21397. display: flex;
  21398. flex-direction: row;
  21399. align-items: center;
  21400. width: calc(100% - 745px);
  21401. }
  21402. .courseIndex > div:nth-child(1) {
  21403. margin: 0 0 0 10px;
  21404. font-size: 20px;
  21405. min-width: 100px;
  21406. font-weight: bold;
  21407. border-left: 4px solid #3363b9;
  21408. height: 32px;
  21409. text-align: center;
  21410. line-height: 35px;
  21411. }
  21412. .courseIndex > div:nth-child(2) {
  21413. font-size: 20px;
  21414. /* width: 300px; */
  21415. max-width: calc(100% - 105px);
  21416. white-space: nowrap;
  21417. overflow: hidden;
  21418. text-overflow: ellipsis;
  21419. }
  21420. .courseIndex > div:nth-child(3) {
  21421. border-bottom: 1px solid #d7d7d7;
  21422. padding-bottom: 5px;
  21423. background: #3681fc;
  21424. width: 55px;
  21425. min-width: 55px;
  21426. border-radius: 5px;
  21427. color: #fff;
  21428. text-align: center;
  21429. height: 20px;
  21430. line-height: 26px;
  21431. font-size: 14px;
  21432. margin: 0 0 0 10px;
  21433. }
  21434. .course_text {
  21435. padding: 20px 0 0 15px;
  21436. text-indent: 30px;
  21437. width: 80%;
  21438. min-height: 20px;
  21439. }
  21440. .vedioList {
  21441. background: #f2f2f2;
  21442. border: 1px solid #ececec;
  21443. /* width: 38.8%; */
  21444. /* width: 300px; */
  21445. width: 100%;
  21446. height: 445px;
  21447. border-radius: 10px;
  21448. overflow: hidden;
  21449. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  21450. }
  21451. .vedioNav {
  21452. margin: 10px 0 0 15px;
  21453. border-bottom: 1px solid #d7d7d7;
  21454. padding-bottom: 5px;
  21455. background: #3681fc;
  21456. width: 55px;
  21457. min-width: 55px;
  21458. border-radius: 5px;
  21459. color: #fff;
  21460. text-align: center;
  21461. height: 20px;
  21462. line-height: 26px;
  21463. font-size: 14px;
  21464. }
  21465. .queTop {
  21466. display: flex;
  21467. padding: 20px 0 20px 30px;
  21468. width: 100%;
  21469. flex-direction: row;
  21470. justify-content: flex-start;
  21471. align-items: center;
  21472. box-sizing: border-box;
  21473. }
  21474. .queTopTitle {
  21475. display: flex;
  21476. flex-direction: row;
  21477. flex-wrap: nowrap;
  21478. align-items: center;
  21479. font-weight: bold;
  21480. font-size: 20px;
  21481. color: rgb(14, 30, 51);
  21482. }
  21483. .queTopTitle::before {
  21484. content: "";
  21485. width: 2px;
  21486. height: 22px;
  21487. background: #3681fc;
  21488. border-radius: 3px;
  21489. display: block;
  21490. margin: 2px 6px 0 0;
  21491. }
  21492. .queTopRight {
  21493. display: flex;
  21494. flex-direction: row;
  21495. flex-wrap: nowrap;
  21496. align-items: center;
  21497. }
  21498. .queTopClose {
  21499. margin-right: 20px;
  21500. cursor: pointer;
  21501. position: relative;
  21502. display: flex;
  21503. }
  21504. .closeImg,
  21505. .openImg {
  21506. width: 25px;
  21507. height: 25px;
  21508. position: absolute;
  21509. left: -20px;
  21510. top: -1px;
  21511. }
  21512. .closeImg > img,
  21513. .openImg > img {
  21514. width: 100%;
  21515. height: 100%;
  21516. }
  21517. .question {
  21518. width: 40px;
  21519. margin-right: 10px;
  21520. margin-top: 7px;
  21521. }
  21522. .queTitle {
  21523. margin-left: 5px;
  21524. font-size: 25px;
  21525. display: flex;
  21526. align-items: center;
  21527. }
  21528. .addEditor {
  21529. width: 100px;
  21530. height: 30px;
  21531. background: #42cda6;
  21532. color: #fff;
  21533. border-radius: 5px;
  21534. text-align: center;
  21535. line-height: 30px;
  21536. box-shadow: 1px 3px 6px 1px #bfbfbf;
  21537. cursor: pointer;
  21538. }
  21539. /* .vedioName {
  21540. cursor: pointer;
  21541. margin: 0px 0px 10px 5px;
  21542. white-space: nowrap;
  21543. overflow: hidden;
  21544. text-overflow: ellipsis;
  21545. width: 100%;
  21546. } */
  21547. .vedioTime {
  21548. width: 35px;
  21549. position: absolute;
  21550. color: #fff;
  21551. bottom: 0px;
  21552. right: 0px;
  21553. text-align: center;
  21554. background: #46411f;
  21555. height: 20px;
  21556. font-size: 14px;
  21557. line-height: 20px;
  21558. }
  21559. .homework {
  21560. width: 200px;
  21561. display: flex;
  21562. flex-direction: column;
  21563. flex-wrap: nowrap;
  21564. align-items: center;
  21565. cursor: pointer;
  21566. }
  21567. .homebox {
  21568. display: flex;
  21569. flex-wrap: wrap;
  21570. flex-direction: row;
  21571. justify-content: flex-start;
  21572. align-items: center;
  21573. padding: 15px 0;
  21574. }
  21575. .isChooseActive {
  21576. color: #3681fc !important;
  21577. font-weight: bold !important;
  21578. }
  21579. .chooseWho {
  21580. display: flex;
  21581. width: 100%;
  21582. flex-direction: row;
  21583. flex-wrap: nowrap;
  21584. justify-content: flex-start;
  21585. padding-bottom: 10px;
  21586. }
  21587. .chooseWho > div {
  21588. cursor: pointer;
  21589. padding-bottom: 10px;
  21590. margin: 0 30px 0 0;
  21591. font-weight: 400;
  21592. color: #0e1e33;
  21593. }
  21594. .addPoint > div > img {
  21595. cursor: pointer;
  21596. width: 85px;
  21597. border-radius: 15px;
  21598. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  21599. }
  21600. .addPoint > div {
  21601. display: flex;
  21602. flex-direction: column;
  21603. flex-wrap: nowrap;
  21604. align-items: center;
  21605. }
  21606. .isBorder > div {
  21607. margin: 0 0 10px 0;
  21608. align-items: flex-start !important;
  21609. }
  21610. .noiframeBox {
  21611. display: flex;
  21612. flex-wrap: wrap;
  21613. }
  21614. .iframeBox iframe {
  21615. width: 100%;
  21616. height: 800px;
  21617. border: none;
  21618. margin-bottom: 20px;
  21619. border: 1px solid #ccc;
  21620. }
  21621. .upload_toolBtn {
  21622. background: #3681fc;
  21623. color: #fff;
  21624. width: 110px;
  21625. text-align: center;
  21626. height: 35px;
  21627. line-height: 35px;
  21628. font-size: 14px;
  21629. border-radius: 5px;
  21630. cursor: pointer;
  21631. position: absolute;
  21632. right: 10px;
  21633. bottom: 0;
  21634. }
  21635. .binfo_input,
  21636. .pj {
  21637. font: inherit;
  21638. color: currentColor;
  21639. width: 100%;
  21640. margin: 0;
  21641. padding: 15px 14px;
  21642. display: block;
  21643. min-width: 0;
  21644. outline: none;
  21645. box-sizing: content-box;
  21646. background: none;
  21647. -webkit-tap-highlight-color: transparent;
  21648. border: 1px solid rgba(0, 0, 0, 0.23);
  21649. border-radius: 4px;
  21650. box-sizing: border-box;
  21651. resize: none;
  21652. }
  21653. .binfo_input:focus-visible {
  21654. border: 1px solid rgba(61, 103, 188);
  21655. }
  21656. .dialog_diy >>> .el-dialog__header,
  21657. .dialog_diy1 >>> .el-dialog__header {
  21658. background: #454545 !important;
  21659. padding: 15px 20px;
  21660. }
  21661. .dialog_diy >>> .el-dialog__title,
  21662. .dialog_diy1 >>> .el-dialog__title {
  21663. color: #fff;
  21664. }
  21665. .dialog_diy >>> .el-dialog__headerbtn,
  21666. .dialog_diy1 >>> .el-dialog__headerbtn {
  21667. top: 19px;
  21668. }
  21669. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21670. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21671. color: #fff;
  21672. }
  21673. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21674. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21675. color: #fff;
  21676. }
  21677. .dialog_diy1 >>> .el-dialog__body {
  21678. padding: 0;
  21679. }
  21680. .dialog_diy >>> .el-dialog__body,
  21681. .dialog_diy >>> .el-dialog__footer,
  21682. .dialog_diy1 >>> .el-dialog__footer {
  21683. background: #fafafa;
  21684. }
  21685. .a_addBox {
  21686. padding: 0 0 0 15px;
  21687. }
  21688. .a_add_box {
  21689. padding: 10px;
  21690. background: #fff;
  21691. margin-bottom: 10px;
  21692. border-radius: 5px;
  21693. box-shadow: 0 0 5px 0 #d5d5d5;
  21694. }
  21695. .a_add_head {
  21696. display: flex;
  21697. align-items: flex-start;
  21698. /* justify-content: space-between; */
  21699. flex-direction: column;
  21700. /* flex-direction: row; */
  21701. margin: 10px 0 20px 0;
  21702. font-size: 18px;
  21703. width: 100%;
  21704. }
  21705. .askIndex {
  21706. background: #3681fc;
  21707. border-radius: 50%;
  21708. color: #fff;
  21709. width: 25px;
  21710. height: 25px;
  21711. min-width: 25px;
  21712. min-height: 25px;
  21713. text-align: center;
  21714. line-height: 25px;
  21715. margin-right: 5px;
  21716. }
  21717. .a_add_head .a_add_head_input {
  21718. width: 300px;
  21719. }
  21720. .a_add_head .a_add_head_div {
  21721. display: flex;
  21722. align-items: center;
  21723. justify-content: space-between;
  21724. }
  21725. .a_add_body {
  21726. display: flex;
  21727. align-items: center;
  21728. }
  21729. .a_add_input {
  21730. display: flex;
  21731. align-items: center;
  21732. flex-wrap: wrap;
  21733. width: 100%;
  21734. }
  21735. .a_add_input >>> .el-radio-group,
  21736. .a_add_input >>> .el-checkbox-group {
  21737. width: 100%;
  21738. }
  21739. .a_add_input >>> .el-radio,
  21740. .a_add_input >>> .el-checkbox {
  21741. display: flex;
  21742. flex-direction: row;
  21743. flex-wrap: nowrap;
  21744. align-items: center;
  21745. padding: 15px 0;
  21746. }
  21747. .a_add_input >>> .el-radio:not(:last-child),
  21748. .a_add_input >>> .el-checkbox:not(:last-child) {
  21749. width: 100%;
  21750. border-bottom: 1px solid #efefef;
  21751. }
  21752. .redioStyle >>> .el-radio__label {
  21753. font-size: 18px;
  21754. }
  21755. .redioStyle >>> .el-radio__label > span,
  21756. .redioStyle >>> .el-checkbox__label > span {
  21757. word-break: break-all;
  21758. white-space: normal;
  21759. }
  21760. .redioStyle >>> .el-checkbox__label {
  21761. font-size: 18px;
  21762. }
  21763. .toolHeng2 {
  21764. width: 100%;
  21765. padding-left: 15px;
  21766. box-sizing: border-box;
  21767. }
  21768. .workNav {
  21769. font-size: 20px;
  21770. font-weight: bold;
  21771. color: #0e1e33;
  21772. display: flex;
  21773. flex-direction: row;
  21774. flex-wrap: nowrap;
  21775. align-items: center;
  21776. padding: 15px 0 15px 0;
  21777. }
  21778. .workNav::before {
  21779. content: "";
  21780. width: 2px;
  21781. height: 22px;
  21782. background: #3681fc;
  21783. border-radius: 3px;
  21784. display: block;
  21785. margin: 2px 6px 0 0;
  21786. }
  21787. .toolHeng {
  21788. display: flex;
  21789. flex-direction: row;
  21790. flex-wrap: wrap;
  21791. justify-content: flex-start;
  21792. align-items: center;
  21793. width: 100%;
  21794. }
  21795. .toolHeng > div {
  21796. padding-left: 20px;
  21797. }
  21798. .isWidth {
  21799. width: 20%;
  21800. }
  21801. .textTitle {
  21802. display: flex;
  21803. flex-direction: row;
  21804. flex-wrap: nowrap;
  21805. align-items: center;
  21806. width: 95%;
  21807. }
  21808. .textTitle >>> .el-form-item__label {
  21809. font-size: 22px;
  21810. color: #918f8f;
  21811. width: 100px;
  21812. }
  21813. .textTitle >>> .el-form-item__content {
  21814. width: calc(100% - 100px);
  21815. }
  21816. .textCss >>> .el-dialog {
  21817. width: 800px !important;
  21818. height: 400px;
  21819. background: #fafafa;
  21820. }
  21821. .textCss >>> .el-dialog__body {
  21822. margin: 55px 8% 0 8%;
  21823. padding: 0 !important;
  21824. }
  21825. .textCss >>> .el-dialog__footer {
  21826. padding-top: 38px;
  21827. }
  21828. .toolsCss >>> .el-dialog__body {
  21829. padding: 20px;
  21830. }
  21831. .lineCss >>> .el-dialog__body {
  21832. display: flex;
  21833. flex-direction: row;
  21834. align-items: center;
  21835. justify-content: center;
  21836. }
  21837. .newNav {
  21838. display: flex;
  21839. flex-direction: row;
  21840. align-items: baseline;
  21841. justify-content: flex-start;
  21842. }
  21843. .navListItem {
  21844. width: calc(100% - 20px);
  21845. height: 50px;
  21846. margin: 0px auto 10px;
  21847. display: flex;
  21848. flex-direction: row;
  21849. flex-wrap: nowrap;
  21850. align-items: center;
  21851. justify-content: space-between;
  21852. background: #f0f4fa;
  21853. border-radius: 6px 6px 6px 6px;
  21854. }
  21855. .navText {
  21856. cursor: pointer;
  21857. white-space: nowrap;
  21858. overflow: hidden;
  21859. text-overflow: ellipsis;
  21860. width: 220px;
  21861. padding: 0 10px;
  21862. font-weight: 400;
  21863. color: #0e1e33;
  21864. }
  21865. .downIcon {
  21866. width: 20px;
  21867. min-width: 20px;
  21868. height: 20px;
  21869. margin-right: 15px;
  21870. cursor: pointer;
  21871. }
  21872. .downIcon > img {
  21873. width: 100%;
  21874. height: 100%;
  21875. }
  21876. .noVedio {
  21877. display: flex;
  21878. flex-direction: row;
  21879. justify-content: center;
  21880. align-content: center;
  21881. }
  21882. .noNavText {
  21883. cursor: pointer;
  21884. margin: 0px 0px 10px 5px;
  21885. width: 112px;
  21886. }
  21887. .listNoVedio {
  21888. margin: 0 0 0 30px;
  21889. width: 97%;
  21890. }
  21891. .video-player >>> .video-js {
  21892. height: 100%;
  21893. }
  21894. .hangVedioList {
  21895. width: 90% !important;
  21896. height: 150px !important;
  21897. margin: 20px 0 0 30px;
  21898. }
  21899. .hangVedio {
  21900. width: 100%;
  21901. height: 170px !important;
  21902. align-items: flex-start !important;
  21903. }
  21904. .hangHand {
  21905. height: 150px !important;
  21906. }
  21907. .twoChild {
  21908. width: 95%;
  21909. margin: 10px;
  21910. border-radius: 5px;
  21911. background: #f2f2f2;
  21912. display: flex;
  21913. flex-direction: column;
  21914. flex-wrap: nowrap;
  21915. justify-content: flex-start;
  21916. align-items: flex-start;
  21917. transition: all 0.5s;
  21918. overflow: hidden;
  21919. height: 0;
  21920. background: #e7f3ff;
  21921. }
  21922. .twoChild > div:nth-child(1) {
  21923. margin-top: 5px;
  21924. }
  21925. .navChild {
  21926. width: 100%;
  21927. cursor: pointer;
  21928. margin-bottom: 10px;
  21929. position: relative;
  21930. }
  21931. .navChild img {
  21932. position: absolute;
  21933. right: 11px;
  21934. width: 15px;
  21935. top: 50%;
  21936. transform: translateY(-50%);
  21937. }
  21938. .navActive,
  21939. .toolActive {
  21940. height: auto !important;
  21941. overflow: auto !important;
  21942. /* padding-bottom: 16px; */
  21943. }
  21944. .toolActive {
  21945. padding: 0;
  21946. }
  21947. .navTask {
  21948. display: flex;
  21949. flex-direction: row;
  21950. flex-wrap: nowrap;
  21951. align-items: center;
  21952. align-content: flex-start;
  21953. height: 40px;
  21954. justify-content: flex-start;
  21955. padding: 0 10px;
  21956. width: 100%;
  21957. box-sizing: border-box;
  21958. }
  21959. .navTaskname {
  21960. white-space: nowrap;
  21961. text-overflow: ellipsis;
  21962. overflow: hidden;
  21963. word-break: break-all;
  21964. padding-left: 5px;
  21965. }
  21966. .openTaskActive {
  21967. /* background-color: #e0eafb !important;
  21968. color: #0061ff; */
  21969. color:#fff;
  21970. background: rgb(55, 129, 252) !important;
  21971. }
  21972. .iframeName {
  21973. margin: 5px 0;
  21974. border-left: 4px solid #41c4a4;
  21975. padding-left: 4px;
  21976. }
  21977. .toolTitle {
  21978. margin: 0px 0px 20px;
  21979. font-size: 20px;
  21980. font-weight: 500;
  21981. border-left: 4px solid #41c4a4;
  21982. padding-left: 4px;
  21983. }
  21984. .cru_selectBox {
  21985. overflow: auto;
  21986. width: 95%;
  21987. margin: 17px auto 0;
  21988. height: calc(100% - 40px - 21px - 20px - 17px);
  21989. background: #fff;
  21990. border-radius: 8px;
  21991. }
  21992. .cru_selectBox::-webkit-scrollbar,
  21993. .study_top::-webkit-scrollbar,
  21994. .textContent::-webkit-scrollbar {
  21995. /*滚动条整体样式*/
  21996. width: 6px;
  21997. /*高宽分别对应横竖滚动条的尺寸*/
  21998. height: 6px;
  21999. }
  22000. /*定义滚动条轨道 内阴影+圆角*/
  22001. .cru_selectBox::-webkit-scrollbar-track,
  22002. .study_top::-webkit-scrollbar-track,
  22003. .textContent::-webkit-scrollbar {
  22004. border-radius: 10px;
  22005. background-color: #b8bdc9;
  22006. }
  22007. /*定义滑块 内阴影+圆角*/
  22008. .cru_selectBox::-webkit-scrollbar-thumb,
  22009. .study_top::-webkit-scrollbar-thumb,
  22010. .textContent::-webkit-scrollbar-thumb {
  22011. border-radius: 10px;
  22012. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22013. background-color: #2c5ab3;
  22014. }
  22015. .vedioBox {
  22016. border-radius: 0 0 20px 20px;
  22017. background: #fff;
  22018. overflow: auto;
  22019. }
  22020. .taskBox {
  22021. width: 98%;
  22022. background: #f0f4fa;
  22023. margin: 10px auto;
  22024. padding: 0 10px;
  22025. border-radius: 4px;
  22026. box-sizing: border-box;
  22027. }
  22028. .vedioTaskBox {
  22029. width: 100%;
  22030. display: flex;
  22031. flex-direction: row;
  22032. flex-wrap: nowrap;
  22033. align-items: flex-start;
  22034. position: relative;
  22035. }
  22036. .toolBox {
  22037. margin: 15px 0 0 25px;
  22038. display: flex;
  22039. position: relative;
  22040. padding: 18px 20px;
  22041. border-top-left-radius: 5px;
  22042. border-top-right-radius: 5px;
  22043. width: 90%;
  22044. }
  22045. .btnAll {
  22046. position: absolute;
  22047. right: 0;
  22048. display: flex;
  22049. flex-direction: row;
  22050. flex-wrap: nowrap;
  22051. align-items: center;
  22052. }
  22053. .btnLeft,
  22054. .btnRight {
  22055. display: flex;
  22056. flex-direction: row;
  22057. flex-wrap: nowrap;
  22058. align-items: center;
  22059. padding: 5px 0;
  22060. }
  22061. .btnLeft {
  22062. border-right: 1px solid #cad1dc;
  22063. }
  22064. .btnLeft > .custom-tooltip {
  22065. background: #3681fc;
  22066. color: #fff;
  22067. }
  22068. .last:hover {
  22069. background: #3383fa !important;
  22070. color: #fff;
  22071. border: 1px solid #3383fa !important;
  22072. }
  22073. .last,
  22074. .returnBtn1 {
  22075. width: 90px;
  22076. height: 36px;
  22077. background: #ffffff;
  22078. border-radius: 4px;
  22079. border: 1px solid #0061ff;
  22080. color: #0061ff;
  22081. cursor: pointer;
  22082. display: flex;
  22083. flex-direction: row;
  22084. flex-wrap: nowrap;
  22085. align-items: center;
  22086. justify-content: center;
  22087. margin-left: 12px;
  22088. }
  22089. .returnBtn1 {
  22090. background: #f0f4fa;
  22091. border-radius: 4px;
  22092. border: 1px solid #cad1dc;
  22093. margin: 0 12px;
  22094. }
  22095. .lastImg {
  22096. min-width: 15px;
  22097. width: 15px;
  22098. height: 15px;
  22099. display: flex;
  22100. }
  22101. .lastText {
  22102. padding: 0 5px 0 5px;
  22103. box-sizing: border-box;
  22104. font-size: 14px;
  22105. }
  22106. .lastImg > img {
  22107. width: 100%;
  22108. height: 100%;
  22109. }
  22110. /* .vedioTimeBox {
  22111. display: flex;
  22112. flex-direction: row;
  22113. align-items: center;
  22114. flex-wrap: nowrap;
  22115. position: relative;
  22116. } */
  22117. .navBox {
  22118. background: #fff;
  22119. height: calc(100% - 40px);
  22120. overflow-y: auto;
  22121. overflow-x: hidden;
  22122. }
  22123. .worksBox {
  22124. margin: 0 0 10px 25px;
  22125. border-bottom: 1px solid #eeeeee;
  22126. padding: 18px 20px;
  22127. border-radius: 4px;
  22128. width: 90%;
  22129. }
  22130. .worksBTitle {
  22131. font-size: 20px;
  22132. padding-bottom: 15px;
  22133. border-bottom: 1px solid #eeeeee;
  22134. display: flex;
  22135. align-items: center;
  22136. }
  22137. .greenBox {
  22138. width: 5px;
  22139. height: 30px;
  22140. background: #63b6fa;
  22141. margin-right: 5px;
  22142. }
  22143. .worksDetailBox {
  22144. display: flex;
  22145. width: 100%;
  22146. flex-direction: row;
  22147. flex-wrap: wrap;
  22148. align-items: flex-end;
  22149. justify-content: flex-start;
  22150. padding: 15px 5px;
  22151. box-sizing: border-box;
  22152. }
  22153. .works {
  22154. display: flex;
  22155. flex-direction: column;
  22156. flex-wrap: nowrap;
  22157. align-items: flex-start;
  22158. justify-content: flex-start;
  22159. align-content: center;
  22160. max-width: 240px;
  22161. width: calc(100% / 3 - 10px);
  22162. height: auto;
  22163. margin-right: 10px;
  22164. margin-bottom: 10px;
  22165. overflow: hidden;
  22166. height: 140px;
  22167. box-shadow: 0 0 6px 1px #dfdada;
  22168. border-radius: 15px;
  22169. }
  22170. .workImg {
  22171. width: 100%;
  22172. /* height: calc(100% - 40px); */
  22173. height: 105px;
  22174. position: relative;
  22175. }
  22176. .workImg > img {
  22177. width: 100%;
  22178. height: 100%;
  22179. object-fit: contain;
  22180. cursor: pointer;
  22181. }
  22182. .worksName {
  22183. height: 40px;
  22184. line-height: 40px;
  22185. display: flex;
  22186. width: 100%;
  22187. flex-direction: row;
  22188. flex-wrap: nowrap;
  22189. justify-content: space-between;
  22190. align-items: center;
  22191. margin: 0 0 0 10px;
  22192. }
  22193. .worksName > div:nth-child(1) {
  22194. width: 110px;
  22195. white-space: nowrap;
  22196. overflow: hidden;
  22197. text-overflow: ellipsis;
  22198. }
  22199. .worksName > div:nth-child(2) {
  22200. color: #b7b4b5;
  22201. }
  22202. .noWorksS {
  22203. padding: 15px 0;
  22204. display: flex;
  22205. flex-direction: row;
  22206. flex-wrap: wrap;
  22207. align-items: center;
  22208. justify-content: flex-start;
  22209. }
  22210. .noWorksName,
  22211. .isWorksName,
  22212. .isWorksName2 {
  22213. background: #ddebf8;
  22214. color: #000;
  22215. width: 90px;
  22216. height: 25px;
  22217. text-align: center;
  22218. line-height: 25px;
  22219. border-radius: 4px;
  22220. margin: 10px 15px 10px 0;
  22221. white-space: nowrap;
  22222. overflow: hidden;
  22223. padding: 5px;
  22224. text-overflow: ellipsis;
  22225. cursor: pointer;
  22226. border: 1px solid #ddebf8;
  22227. }
  22228. .noWorksName {
  22229. background: #fff;
  22230. color: #0061ff;
  22231. border: 1px solid #0061ff;
  22232. }
  22233. .noWorksName > span{
  22234. max-width: 100%;
  22235. display: block;
  22236. overflow: hidden;
  22237. text-overflow: ellipsis;
  22238. white-space: nowrap;
  22239. }
  22240. .isWorksName2 {
  22241. width: 100px;
  22242. height: 40px;
  22243. line-height: 40px;
  22244. position: relative;
  22245. background: #dae6f9;
  22246. }
  22247. .isWorksName {
  22248. background: #e7ebf1 !important;
  22249. width: 100px;
  22250. height: 40px;
  22251. line-height: 40px;
  22252. position: relative;
  22253. color: #acb4bf;
  22254. border: 1px solid #cad1dc !important;
  22255. }
  22256. .isSelectName,
  22257. .noWorksName:hover {
  22258. background: #3383fa !important;
  22259. color: #fff !important;
  22260. border: 1px solid #3383fa !important;
  22261. }
  22262. .title {
  22263. background: #1e5cc9;
  22264. /* width: 98%; */
  22265. height: 45px;
  22266. color: #fff;
  22267. line-height: 45px;
  22268. padding-left: 20px;
  22269. box-sizing: border-box;
  22270. }
  22271. .textBox {
  22272. font-size: 20px;
  22273. width: 90%;
  22274. display: flex;
  22275. flex-direction: column;
  22276. align-items: center;
  22277. margin: 20px auto 0;
  22278. max-height: calc(100% - 75px);
  22279. overflow: auto;
  22280. }
  22281. .textContent {
  22282. font-size: 18px;
  22283. width: 95%;
  22284. max-width: 95%;
  22285. }
  22286. .answerBg {
  22287. background: url("../assets/icon/answerBgNew.png") no-repeat;
  22288. background-size: 100% 100%;
  22289. width: 100%;
  22290. height: 100%;
  22291. color: #fff;
  22292. text-align: center;
  22293. display: flex;
  22294. flex-direction: column;
  22295. flex-wrap: nowrap;
  22296. align-items: center;
  22297. position: relative;
  22298. justify-content: center;
  22299. }
  22300. .answerBg > div:nth-child(1) {
  22301. /* font-size: 22px;
  22302. padding: 25px 0 10px; */
  22303. }
  22304. .answerContent {
  22305. width: 215px;
  22306. max-height: 60px;
  22307. word-break: break-all;
  22308. text-align: center;
  22309. /* white-space: nowrap; */
  22310. overflow: hidden;
  22311. text-overflow: ellipsis;
  22312. /* padding: 23px 0 0; */
  22313. -webkit-line-clamp: 3;
  22314. -webkit-box-orient: vertical;
  22315. display: -webkit-box;
  22316. font-size: 15px;
  22317. cursor: pointer;
  22318. }
  22319. .elist_input_box {
  22320. display: flex;
  22321. align-items: flex-start;
  22322. flex-wrap: nowrap;
  22323. padding: 10px 0 15px 30px;
  22324. flex-direction: column;
  22325. }
  22326. .elist_input {
  22327. /* width: 40%; */
  22328. width: 45%;
  22329. margin: 20px;
  22330. }
  22331. .elist_input .elist_input_box input {
  22332. font: inherit;
  22333. color: currentColor;
  22334. width: 200px;
  22335. padding: 8px 14px;
  22336. display: block;
  22337. min-width: 0;
  22338. outline: none;
  22339. border: 1px solid rgba(0, 0, 0, 0.23);
  22340. border-radius: 4px;
  22341. box-sizing: border-box;
  22342. background: #fff;
  22343. margin: 0 20px 0 0;
  22344. }
  22345. .elist_input .elist_input_box span {
  22346. height: 36px;
  22347. line-height: 36px;
  22348. color: rgb(82, 82, 82);
  22349. }
  22350. .elist_input .elist_input_box .remove {
  22351. height: 20px;
  22352. width: 20px;
  22353. background-size: 100% 100%;
  22354. background-position: unset;
  22355. margin-left: 5px;
  22356. }
  22357. .elist_input_box >>> .el-rate {
  22358. display: flex;
  22359. height: 36px;
  22360. align-items: center;
  22361. }
  22362. .elist_input_box .elist_inptu_text {
  22363. min-height: 50px;
  22364. /* width: 500px;
  22365. max-height: 150px; */
  22366. width: 100%;
  22367. line-height: 50px;
  22368. color: rgb(82, 82, 82);
  22369. overflow: auto;
  22370. text-indent: 5px;
  22371. background: #f7f6f9;
  22372. border-radius: 10px;
  22373. }
  22374. .elist_input_box .elist_inptu_text input {
  22375. width: 500px;
  22376. }
  22377. .elist_input_box >>> .el-rate__icon {
  22378. font-size: 24px;
  22379. }
  22380. .isClick {
  22381. background: #4d9def;
  22382. }
  22383. .bzBox {
  22384. display: flex;
  22385. flex-direction: row;
  22386. align-items: center;
  22387. }
  22388. .bzBox .yCss {
  22389. width: 7px;
  22390. height: 7px;
  22391. background: #fff;
  22392. margin: 0 16px 0 6px;
  22393. border-radius: 50%;
  22394. border: 5px solid #3681fc;
  22395. z-index: 99;
  22396. }
  22397. .bzBox > div:nth-child(2) {
  22398. font-size: 18px;
  22399. font-weight: bold;
  22400. color: #0e1e33;
  22401. }
  22402. .navTitile {
  22403. padding: 0 0px 0 15px;
  22404. font-size: 16px;
  22405. font-weight: bold;
  22406. color: #0e1e33;
  22407. height: 40px;
  22408. line-height: 40px;
  22409. }
  22410. .isTypeOne {
  22411. width: 240px;
  22412. height: 170px;
  22413. /* border: 1px solid #f8f8f8; */
  22414. border-radius: 10px;
  22415. box-shadow: 0 0 6px 1px #dfdada;
  22416. }
  22417. .e_add_top {
  22418. display: flex;
  22419. justify-content: space-between;
  22420. padding: 10px 20px;
  22421. border-radius: 3px;
  22422. background: #fff;
  22423. }
  22424. .e_add_title2 {
  22425. display: flex;
  22426. align-items: center;
  22427. }
  22428. .e_add_title2 span {
  22429. width: 40px;
  22430. }
  22431. .e_add_title {
  22432. display: flex;
  22433. align-items: center;
  22434. color: #b8b8b8;
  22435. font-size: 18px;
  22436. position: relative;
  22437. height: 40px;
  22438. width: 100%;
  22439. }
  22440. .e_add_title span {
  22441. margin-right: 10px;
  22442. }
  22443. .e_add_title .el_input {
  22444. width: 300px;
  22445. }
  22446. .e_add_title >>> .el-input__inner {
  22447. width: 400px;
  22448. }
  22449. .e_add_btn {
  22450. }
  22451. .e_add_content {
  22452. display: flex;
  22453. width: 100%;
  22454. max-width: 650px;
  22455. height: 550px;
  22456. }
  22457. .e_add_list {
  22458. background: #fff;
  22459. height: 500px;
  22460. width: 210px;
  22461. position: relative;
  22462. margin: 15px 5px 0 0;
  22463. flex-shrink: 0;
  22464. display: flex;
  22465. flex-direction: column;
  22466. }
  22467. .e_add_list_title {
  22468. font-size: 20px;
  22469. width: 100%;
  22470. box-sizing: border-box;
  22471. padding: 15px 40px;
  22472. text-align: center;
  22473. border-bottom: 1px solid #eaeaea;
  22474. position: relative;
  22475. display: flex;
  22476. align-items: center;
  22477. justify-content: center;
  22478. height: 57px;
  22479. background: #f6f6f6;
  22480. }
  22481. .e_add_list_title span {
  22482. overflow: hidden;
  22483. white-space: nowrap;
  22484. text-overflow: ellipsis;
  22485. }
  22486. .e_add_list_title img {
  22487. position: absolute;
  22488. right: 15px;
  22489. width: 25px;
  22490. cursor: pointer;
  22491. top: 50%;
  22492. transform: translateY(-50%);
  22493. }
  22494. .e_add_list_body {
  22495. height: calc(100% - 187px);
  22496. overflow: auto;
  22497. }
  22498. .e_add_list_child {
  22499. width: 100%;
  22500. display: flex;
  22501. align-items: center;
  22502. justify-content: center;
  22503. position: relative;
  22504. box-sizing: border-box;
  22505. padding: 15px 40px;
  22506. text-align: center;
  22507. }
  22508. .e_add_list_child span {
  22509. overflow: hidden;
  22510. white-space: nowrap;
  22511. text-overflow: ellipsis;
  22512. cursor: pointer;
  22513. }
  22514. .e_add_list_child img {
  22515. position: absolute;
  22516. right: 10px;
  22517. width: 21px;
  22518. cursor: pointer;
  22519. top: 50%;
  22520. transform: translateY(-50%);
  22521. }
  22522. .e_add_list_child + .e_add_list_child {
  22523. border-top: 1px solid #eaeaea;
  22524. }
  22525. .e_add_list_child .active {
  22526. color: #409eff;
  22527. }
  22528. .e_add_list_btn {
  22529. position: absolute;
  22530. bottom: 0;
  22531. height: 50px;
  22532. background: rgb(120, 120, 254);
  22533. width: 100%;
  22534. color: #fff;
  22535. font-size: 16px;
  22536. text-align: center;
  22537. line-height: 50px;
  22538. cursor: pointer;
  22539. }
  22540. .e_add_list_detail {
  22541. position: absolute;
  22542. bottom: 0;
  22543. height: 130px;
  22544. background: rgb(120, 120, 254);
  22545. width: 100%;
  22546. color: #fff;
  22547. font-size: 16px;
  22548. display: flex;
  22549. align-items: center;
  22550. justify-content: center;
  22551. }
  22552. .e_add_list_detail textarea {
  22553. height: 90%;
  22554. width: 95%;
  22555. border: none;
  22556. resize: none;
  22557. outline: none;
  22558. padding: 5px;
  22559. box-sizing: border-box;
  22560. }
  22561. .e_add_list_pbox {
  22562. width: 100%;
  22563. max-width: 650px;
  22564. /* height: 600px; */
  22565. }
  22566. .e_add_list_pbox_title {
  22567. height: 50px;
  22568. background: #fff;
  22569. display: flex;
  22570. align-items: center;
  22571. width: 100%;
  22572. box-sizing: border-box;
  22573. padding: 0 20px;
  22574. }
  22575. .type_title {
  22576. font-size: 18px;
  22577. font-weight: 700;
  22578. }
  22579. .type_content {
  22580. font-size: 16px;
  22581. /* margin-left: 30px; */
  22582. }
  22583. .type_content span + span {
  22584. margin-left: 20px;
  22585. }
  22586. .type_content span {
  22587. cursor: pointer;
  22588. padding-bottom: 5px;
  22589. box-sizing: border-box;
  22590. }
  22591. .type_content .active {
  22592. color: #409eff;
  22593. border-bottom: 2px solid #409eff;
  22594. }
  22595. .e_add_list_pbox_content {
  22596. height: calc(100% - 50px);
  22597. display: flex;
  22598. align-items: center;
  22599. width: 100%;
  22600. background: #fff;
  22601. }
  22602. .evaCss {
  22603. display: flex;
  22604. flex-direction: row;
  22605. flex-wrap: nowrap;
  22606. align-items: flex-start;
  22607. padding: 0 0 20px;
  22608. }
  22609. .cru_line {
  22610. position: absolute;
  22611. bottom: 0px;
  22612. transition: all 0.5s;
  22613. left: 0px;
  22614. width: 125px;
  22615. margin-left: -25px;
  22616. }
  22617. .isNoMessage {
  22618. width: 20%;
  22619. margin: 25% auto 0;
  22620. }
  22621. .isNoMessage > img {
  22622. width: 100%;
  22623. height: 100%;
  22624. }
  22625. .fullStyle >>> .el-dialog__body {
  22626. height: 100% !important;
  22627. }
  22628. .fullStyle >>> .el-dialog,
  22629. .fullStyle {
  22630. width: 100% !important;
  22631. max-width: 100% !important;
  22632. height: 100% !important;
  22633. margin: 0 !important;
  22634. }
  22635. .full_diy >>> .el-dialog {
  22636. margin: 0 !important;
  22637. height: 100%;
  22638. padding: 4px;
  22639. }
  22640. .full_diy >>> .el-dialog__body {
  22641. height: calc(100% - 100px);
  22642. }
  22643. .full_diy2 >>> .el-dialog__body {
  22644. height: calc(100% - 50px);
  22645. padding: 0;
  22646. }
  22647. .switchCss {
  22648. /* width: 100%; */
  22649. display: flex;
  22650. flex-direction: row;
  22651. flex-wrap: nowrap;
  22652. align-items: center;
  22653. /* justify-content: center; */
  22654. }
  22655. .isClickNav {
  22656. /* color: #499eef; */
  22657. color: #000;
  22658. }
  22659. .commentImg {
  22660. width: 25px;
  22661. height: 25px;
  22662. cursor: pointer;
  22663. }
  22664. .commentImg > img {
  22665. width: 100%;
  22666. height: 100%;
  22667. }
  22668. .comment {
  22669. background: #f9f9f9;
  22670. border-radius: 0 0 4px 4px;
  22671. display: flex;
  22672. flex-direction: row;
  22673. flex-wrap: nowrap;
  22674. align-items: center;
  22675. justify-content: flex-end;
  22676. height: 35px;
  22677. }
  22678. .commentList {
  22679. display: flex;
  22680. flex-direction: row;
  22681. flex-wrap: nowrap;
  22682. align-items: center;
  22683. justify-content: center;
  22684. align-content: center;
  22685. /* margin-left: 15px; */
  22686. /* margin-left: 8px; */
  22687. }
  22688. .scoreImg {
  22689. width: 17px;
  22690. height: 17px;
  22691. }
  22692. .studentDetail {
  22693. display: flex;
  22694. flex-direction: row;
  22695. flex-wrap: nowrap;
  22696. /* align-items: center; */
  22697. align-items: flex-start;
  22698. }
  22699. .tx {
  22700. width: 50px;
  22701. }
  22702. .tx > img {
  22703. width: 100%;
  22704. height: 100%;
  22705. }
  22706. .nameAndTime {
  22707. display: flex;
  22708. flex-direction: column;
  22709. flex-wrap: nowrap;
  22710. align-items: flex-start;
  22711. margin-left: 10px;
  22712. }
  22713. .worksAnswer {
  22714. color: #4078dd;
  22715. margin: 10px 0;
  22716. font-size: 16px;
  22717. position: relative;
  22718. }
  22719. .worksAnswer > img {
  22720. width: 500px;
  22721. height: 300px;
  22722. object-fit: contain;
  22723. margin: 0 auto;
  22724. display: block;
  22725. }
  22726. .commentTop {
  22727. border-bottom: 1px solid #eaeaea;
  22728. padding-bottom: 10px;
  22729. }
  22730. .commentBox {
  22731. padding-top: 15px;
  22732. }
  22733. .pl {
  22734. font-size: 18px;
  22735. }
  22736. .plPerson {
  22737. width: 100%;
  22738. }
  22739. .plName {
  22740. display: flex;
  22741. flex-direction: row;
  22742. flex-wrap: nowrap;
  22743. align-items: baseline;
  22744. color: #78787a;
  22745. width: 100%;
  22746. }
  22747. .deleteComment {
  22748. cursor: pointer;
  22749. margin-left: auto;
  22750. color: #237ade;
  22751. }
  22752. .plContent {
  22753. margin-top: 5px;
  22754. }
  22755. .evalCss {
  22756. background: #fff;
  22757. font-size: 18px;
  22758. }
  22759. .nav {
  22760. color: #9d9d9d;
  22761. padding: 5px 0 15px 20px;
  22762. }
  22763. .middleBox {
  22764. padding: 5px 0 15px 20px;
  22765. }
  22766. .pfBox {
  22767. padding-bottom: 30px;
  22768. }
  22769. .nameAndrate {
  22770. display: flex;
  22771. flex-direction: row;
  22772. flex-wrap: nowrap;
  22773. align-items: center;
  22774. padding-bottom: 10px;
  22775. height: 30px;
  22776. line-height: 30px;
  22777. }
  22778. .nameAndrate > div {
  22779. margin-left: 10px;
  22780. color: #000;
  22781. height: 30px;
  22782. }
  22783. .nameAndrate >>> .el-rate__icon {
  22784. font-size: 28px !important;
  22785. }
  22786. .pfBox > div:nth-child(2) {
  22787. background: #f7f6f9;
  22788. width: 400px;
  22789. min-height: 45px;
  22790. border-radius: 10px;
  22791. font-size: 16px;
  22792. display: flex;
  22793. flex-wrap: wrap;
  22794. align-items: center;
  22795. padding: 10px 20px;
  22796. box-sizing: border-box;
  22797. color: #000;
  22798. }
  22799. .bz {
  22800. display: flex;
  22801. flex-direction: row;
  22802. flex-wrap: nowrap;
  22803. align-items: flex-start;
  22804. }
  22805. .bz > div {
  22806. padding: 0 10px;
  22807. }
  22808. .select_box2_title {
  22809. background: #fff;
  22810. border-radius: 5px;
  22811. padding: 15px 10px;
  22812. box-sizing: border-box;
  22813. margin-bottom: 10px;
  22814. display: flex;
  22815. flex-direction: row;
  22816. flex-wrap: nowrap;
  22817. align-items: center;
  22818. }
  22819. .select_box2_title > div:nth-child(2) {
  22820. margin-left: 10px;
  22821. color: #c4c4c4;
  22822. }
  22823. .select_box2_box {
  22824. display: flex;
  22825. height: 500px;
  22826. }
  22827. .select_box2_img {
  22828. width: calc(100% - 310px);
  22829. height: 100%;
  22830. overflow: auto;
  22831. background: #fff;
  22832. border-radius: 5px;
  22833. }
  22834. .select_box2_img img {
  22835. width: 100%;
  22836. }
  22837. .select_box2_answer {
  22838. background: #fff;
  22839. margin-left: 10px;
  22840. border-radius: 5px;
  22841. width: 300px;
  22842. overflow: auto;
  22843. height: 90%;
  22844. display: flex;
  22845. flex-direction: column;
  22846. align-items: flex-start;
  22847. padding-top: 10px;
  22848. box-sizing: border-box;
  22849. position: relative;
  22850. }
  22851. .select_answer_title {
  22852. padding: 0 0 15px 20px;
  22853. color: #c4c4c4;
  22854. }
  22855. .select_box2_answer_box {
  22856. margin: 0 0 10px 20px;
  22857. width: 85%;
  22858. display: flex;
  22859. flex-direction: row;
  22860. flex-wrap: nowrap;
  22861. align-items: center;
  22862. }
  22863. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22864. color: #000;
  22865. }
  22866. .upAnswerCss {
  22867. position: absolute;
  22868. bottom: 15px;
  22869. right: 15px;
  22870. }
  22871. .upAnswerCss >>> .el-button {
  22872. width: 95px;
  22873. height: 35px;
  22874. line-height: 35px;
  22875. padding: 0;
  22876. }
  22877. .rightWidthCss {
  22878. width: 60%;
  22879. display: flex;
  22880. flex-direction: row;
  22881. align-items: flex-start;
  22882. }
  22883. .rightAnswer {
  22884. display: flex;
  22885. flex-direction: row;
  22886. flex-wrap: nowrap;
  22887. align-items: center;
  22888. color: red;
  22889. margin-bottom: 31px;
  22890. }
  22891. .rightAnswerCss {
  22892. display: flex;
  22893. flex-direction: column;
  22894. flex-wrap: nowrap;
  22895. padding-top: 60px;
  22896. }
  22897. .blueCss {
  22898. color: #767de1;
  22899. margin-left: 10px;
  22900. }
  22901. .redCss {
  22902. color: red;
  22903. }
  22904. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22905. color: rgb(0 123 255) !important;
  22906. }
  22907. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22908. color: rgb(0 123 255) !important;
  22909. }
  22910. .zuoyeYulan {
  22911. padding-top: 0;
  22912. font-size: 18px;
  22913. display: flex;
  22914. align-items: flex-end;
  22915. }
  22916. .buttonA {
  22917. margin-left: 10px;
  22918. padding: 0;
  22919. }
  22920. .displayBox {
  22921. margin-bottom: 10px;
  22922. display: block;
  22923. border-bottom: 3px solid #eee;
  22924. display: flex;
  22925. align-items: center;
  22926. }
  22927. .easy_comment {
  22928. width: calc(100% - 90px);
  22929. margin-left: 10px;
  22930. display: flex;
  22931. flex-wrap: wrap;
  22932. }
  22933. .easy_comment > div {
  22934. border: 1px solid #4a4a4a;
  22935. color: #666;
  22936. border-radius: 15px;
  22937. padding: 5px 10px;
  22938. font-size: 16px;
  22939. margin-bottom: 10px;
  22940. margin-right: 5px;
  22941. cursor: pointer;
  22942. }
  22943. .easy_comment div:hover {
  22944. border: 1px solid #f7ba2a;
  22945. color: #c69217;
  22946. }
  22947. .xuan_right_box {
  22948. padding: 10px 0;
  22949. background: #f0f4fa;
  22950. margin: 0 15px 0 25px;
  22951. border-bottom-left-radius: 5px;
  22952. border-bottom-right-radius: 5px;
  22953. width: 91.5%;
  22954. }
  22955. .tool_right_box {
  22956. display: flex;
  22957. align-items: center;
  22958. }
  22959. .tool_right_box + .tool_right_box {
  22960. margin-top: 10px;
  22961. }
  22962. .right_box_xuan {
  22963. border-radius: 5px;
  22964. padding: 5px;
  22965. margin-left: 10px;
  22966. min-width: 85px;
  22967. background: #fff;
  22968. color: #0061ff;
  22969. border: 1px solid #0061ff;
  22970. font-size: 14px;
  22971. }
  22972. .pButton:hover {
  22973. opacity: 1 !important;
  22974. }
  22975. .pButton {
  22976. position: fixed;
  22977. text-align: center;
  22978. cursor: pointer;
  22979. z-index: 999;
  22980. right: 20px;
  22981. top: 110px;
  22982. width: 50px;
  22983. height: 50px;
  22984. display: flex;
  22985. align-items: center;
  22986. justify-content: center;
  22987. border-radius: 5px;
  22988. }
  22989. .pzClass {
  22990. width: calc(100% - 340px);
  22991. }
  22992. .newDialogCss {
  22993. /* position: fixed;
  22994. right: 5%;
  22995. top: 50%;
  22996. width: 340px;
  22997. transform: translateY(-50%);
  22998. height: 60%;
  22999. box-shadow: 0px 0 8px 0px #555555;
  23000. border-radius: 15px;
  23001. z-index: 999; */
  23002. position: fixed;
  23003. right: 20px;
  23004. top: 101px;
  23005. width: 330px;
  23006. height: calc(100% - 80px);
  23007. z-index: 999;
  23008. background: #fff;
  23009. border-top-right-radius: 0px;
  23010. border-bottom-right-radius: 0px;
  23011. overflow: hidden;
  23012. }
  23013. .newDialogCss>.scoreList{
  23014. width:100%;
  23015. height:100%;
  23016. box-sizing:border-box;
  23017. padding:10px 15px;
  23018. overflow:auto;
  23019. padding-bottom:80px;
  23020. }
  23021. .pzTop {
  23022. color: #fff;
  23023. background: #000;
  23024. display: flex;
  23025. flex-direction: row;
  23026. flex-wrap: nowrap;
  23027. align-items: center;
  23028. justify-content: space-between;
  23029. height: 40px;
  23030. border-radius: 15px 15px 0 0;
  23031. user-select: none;
  23032. }
  23033. .pzTop2 .checkbox {
  23034. display: flex;
  23035. align-items: center;
  23036. padding: 5px 10px;
  23037. flex: 0 0 auto;
  23038. font-weight: bold;
  23039. border-bottom: 1px solid #eee;
  23040. justify-content: space-between;
  23041. }
  23042. .checkbox>.cb-tabList{
  23043. display:flex;
  23044. align-items:center;
  23045. }
  23046. .cb-tabList>div{
  23047. margin-right:20px;
  23048. font-weight:400;
  23049. cursor:pointer;
  23050. }
  23051. .cb-tabList>.cb-tabItem{
  23052. color:#1684FC;
  23053. position:relative;
  23054. }
  23055. .cb-tabItem::after{
  23056. content:"";
  23057. width:100%;
  23058. height:2px;
  23059. background:#1684FC;
  23060. position:absolute;
  23061. bottom:-5px;
  23062. left:0
  23063. }
  23064. .pzTop2 .check {
  23065. text-align: center;
  23066. cursor: pointer;
  23067. box-sizing: border-box;
  23068. display: flex;
  23069. }
  23070. .pzTop2 img {
  23071. width: 25px;
  23072. cursor: pointer;
  23073. }
  23074. .pzTop > div:nth-child(1) {
  23075. padding-left: 10px;
  23076. }
  23077. .pzTop > div:nth-child(2) {
  23078. width: 15px;
  23079. height: 15px;
  23080. padding-right: 10px;
  23081. cursor: pointer;
  23082. }
  23083. .pzTop > div:nth-child(2) > img {
  23084. width: 100%;
  23085. height: 100%;
  23086. }
  23087. .pzBox,
  23088. .noPzBox {
  23089. height: calc(100% - 60px);
  23090. /* background: #ededed; */
  23091. background: #fff;
  23092. /* border-radius: 0 0 15px 15px; */
  23093. }
  23094. .noPzBox {
  23095. display: flex;
  23096. flex-direction: column;
  23097. flex-wrap: nowrap;
  23098. justify-content: center;
  23099. align-items: center;
  23100. }
  23101. .pzList {
  23102. background: #f7f7f7;
  23103. width: 90%;
  23104. margin: 0 auto 15px;
  23105. border-radius: 5px;
  23106. }
  23107. .pzNavTop {
  23108. display: flex;
  23109. flex-direction: row;
  23110. flex-wrap: nowrap;
  23111. padding: 10px 10px 0 10px;
  23112. align-items: center;
  23113. }
  23114. .pzDelete {
  23115. cursor: pointer;
  23116. margin-left: auto;
  23117. font-size: 14px;
  23118. color: #afafaf;
  23119. }
  23120. .pzNavTop > div:nth-child(1) {
  23121. background: #3760af;
  23122. width: 35px;
  23123. height: 35px;
  23124. color: #fff;
  23125. text-align: center;
  23126. line-height: 35px;
  23127. border-radius: 50%;
  23128. font-size: 14px;
  23129. }
  23130. .pzNavTop > div:nth-child(2) {
  23131. font-size: 18px;
  23132. color: #959595;
  23133. margin-left: 5px;
  23134. }
  23135. .pzContent {
  23136. padding: 10px;
  23137. word-break: break-word;
  23138. }
  23139. .pzContent audio {
  23140. width: 100%;
  23141. }
  23142. .pzContent audio::-webkit-media-controls-panel {
  23143. background: #fff;
  23144. }
  23145. .pzContent >>> img {
  23146. max-width: 100%;
  23147. }
  23148. .pzListBox {
  23149. padding-top: 15px;
  23150. height: calc(100% - 110px);
  23151. overflow: auto;
  23152. }
  23153. .addPzButton {
  23154. position: relative;
  23155. margin-top: 3px;
  23156. width: 100%;
  23157. }
  23158. .addPzButton .img1 {
  23159. position: absolute;
  23160. top: 50%;
  23161. right: 25px;
  23162. transform: translateY(-50%);
  23163. height: 100%;
  23164. display: flex;
  23165. align-items: center;
  23166. }
  23167. .addPzButton .img1 div {
  23168. display: flex;
  23169. }
  23170. .addPzButton .img1 div img {
  23171. width: 28px;
  23172. margin-left: 10px;
  23173. cursor: pointer;
  23174. }
  23175. .addPzButton .img1 div span {
  23176. font-size: 14px;
  23177. margin: 4px 0 0 3px;
  23178. color: #afafaf;
  23179. }
  23180. .addPz {
  23181. background: #4b79ce;
  23182. width: 100px;
  23183. color: #fff;
  23184. font-size: 12px;
  23185. height: 30px;
  23186. margin: 0 auto;
  23187. text-align: center;
  23188. line-height: 30px;
  23189. border-radius: 10px;
  23190. cursor: pointer;
  23191. }
  23192. .addDialogCss {
  23193. position: fixed;
  23194. width: 600px;
  23195. height: 70%;
  23196. min-height: 450px;
  23197. box-shadow: 0px 0 8px 0px #555555;
  23198. border-radius: 15px;
  23199. z-index: 999;
  23200. left: 50%;
  23201. top: 50%;
  23202. margin: -18% 0 0 -300px;
  23203. }
  23204. .teacherPz {
  23205. display: flex;
  23206. flex-direction: row;
  23207. align-items: center;
  23208. flex-wrap: nowrap;
  23209. }
  23210. .teacherPzImg {
  23211. width: 30px;
  23212. height: 30px;
  23213. }
  23214. .teacherPzImg > img {
  23215. width: 100%;
  23216. height: 100%;
  23217. }
  23218. .addPzBox {
  23219. height: calc(100% - 40px);
  23220. background: #ededed;
  23221. border-bottom-left-radius: 15px;
  23222. border-bottom-right-radius: 15px;
  23223. }
  23224. .pzAudioClass {
  23225. margin: 15px 14px;
  23226. background: #fff;
  23227. height: 100%;
  23228. display: flex;
  23229. justify-content: center;
  23230. align-items: center;
  23231. }
  23232. .pzConText {
  23233. width: 95%;
  23234. height: 100%;
  23235. margin: 10px auto 0;
  23236. border: none;
  23237. background: #fff;
  23238. border-radius: 0px;
  23239. }
  23240. .pzConText >>> .text {
  23241. height: calc(100% - 82px);
  23242. }
  23243. .addTextCss {
  23244. background: #4b79ce;
  23245. width: 80px;
  23246. height: 30px;
  23247. text-align: center;
  23248. color: #fff;
  23249. line-height: 30px;
  23250. border-radius: 10px;
  23251. margin: 10px auto 0;
  23252. cursor: pointer;
  23253. }
  23254. .pzConText:focus-visible {
  23255. border: none !important;
  23256. }
  23257. .maxWidth {
  23258. width: 1000px;
  23259. }
  23260. .noPz {
  23261. width: 150px;
  23262. margin: 0 auto 20%;
  23263. }
  23264. .noPz > img {
  23265. width: 100%;
  23266. height: 100%;
  23267. }
  23268. .timeAndReply {
  23269. display: flex;
  23270. flex-direction: row;
  23271. flex-wrap: nowrap;
  23272. justify-content: space-between;
  23273. align-items: center;
  23274. font-size: 14px;
  23275. box-sizing: border-box;
  23276. padding: 0 10px 10px 0px;
  23277. }
  23278. .timeAndReply .time {
  23279. color: #bfbfbf;
  23280. padding: 0 0 0 10px;
  23281. box-sizing: border-box;
  23282. }
  23283. .timeAndReply > div:last-child {
  23284. cursor: pointer;
  23285. color: #777;
  23286. }
  23287. /* table 样式 */
  23288. .cont >>> table {
  23289. border-top: 1px solid #ccc;
  23290. border-left: 1px solid #ccc;
  23291. }
  23292. .cont >>> table td,
  23293. .cont >>> table th {
  23294. border-bottom: 1px solid #ccc;
  23295. border-right: 1px solid #ccc;
  23296. /* padding: 20px 5px; */
  23297. padding: 5px 10px;
  23298. max-width: 0px;
  23299. height: 30px;
  23300. vertical-align: baseline;
  23301. box-sizing: border-box;
  23302. }
  23303. .cont >>> table th {
  23304. border-bottom: 2px solid #ccc;
  23305. text-align: center;
  23306. }
  23307. /* blockquote 样式 */
  23308. .cont >>> blockquote {
  23309. display: block;
  23310. border-left: 8px solid #d0e5f2;
  23311. padding: 5px 10px;
  23312. margin: 10px 0;
  23313. line-height: 1.4;
  23314. font-size: 100%;
  23315. background-color: #f1f1f1;
  23316. }
  23317. /* code 样式 */
  23318. .cont >>> code {
  23319. display: inline-block;
  23320. /* *display: inline; */
  23321. zoom: 1;
  23322. background-color: #f1f1f1;
  23323. border-radius: 3px;
  23324. padding: 3px 5px;
  23325. margin: 0 3px;
  23326. }
  23327. .cont >>> pre code {
  23328. display: block;
  23329. }
  23330. /* ul ol 样式 */
  23331. .cont >>> ul,
  23332. ol {
  23333. margin: 10px 0 10px 20px;
  23334. }
  23335. .addPzCheck {
  23336. display: flex;
  23337. flex-direction: row;
  23338. flex-wrap: nowrap;
  23339. padding: 10px 15px 0;
  23340. }
  23341. .addPzCheck span {
  23342. cursor: pointer;
  23343. padding-bottom: 5px;
  23344. font-weight: bold;
  23345. }
  23346. .addPzCheck span + span {
  23347. margin-left: 10px;
  23348. }
  23349. .addPzCheck .isChooseActive {
  23350. color: #3e88f4;
  23351. border-bottom: 2px solid #2f80f3;
  23352. }
  23353. /* code 样式 */
  23354. .cont {
  23355. /* -webkit-user-modify: read-write; */
  23356. overflow-wrap: break-word;
  23357. -webkit-line-break: after-white-space;
  23358. word-break: break-word;
  23359. white-space: pre-line;
  23360. }
  23361. .scoreBox,
  23362. .scoreDetailBox {
  23363. display: flex;
  23364. align-items: center;
  23365. justify-content: flex-start;
  23366. margin-top: 20px;
  23367. font-size: 18px;
  23368. width: 100%;
  23369. }
  23370. .scoreBox .t,
  23371. .scoreDetailBox .t {
  23372. margin-right: 10px;
  23373. width: 100px;
  23374. text-align: right;
  23375. }
  23376. .scoreDetailBox {
  23377. align-items: flex-start;
  23378. }
  23379. .scoreDetailBox >>> .el-textarea {
  23380. width: calc(100% - 200px);
  23381. }
  23382. .scoreBox >>> .el-input {
  23383. width: 130px;
  23384. font-size: 38px;
  23385. }
  23386. .scoreBox >>> .el-input__inner {
  23387. height: 60px;
  23388. }
  23389. .answerScore {
  23390. position: absolute;
  23391. top: 10px;
  23392. right: 10px;
  23393. background: #0000008f;
  23394. border-radius: 5px;
  23395. padding: 3px 5px;
  23396. font-size: 14px;
  23397. color: #fff;
  23398. cursor: pointer;
  23399. }
  23400. .open_box .switch_box {
  23401. width: 100%;
  23402. margin: 0 auto;
  23403. display: flex;
  23404. justify-content: space-between;
  23405. }
  23406. .open_box .switch_box + .switch_box {
  23407. margin-top: 10px;
  23408. }
  23409. .deleteImg,.deleteImg1 {
  23410. width: 25px !important;
  23411. height: 25px !important;
  23412. cursor: pointer;
  23413. position: absolute;
  23414. top: 10px;
  23415. right: 10px;
  23416. }
  23417. .deleteImg2 {
  23418. width: 23px !important;
  23419. height: 23px !important;
  23420. top: 5px;
  23421. right: 5px;
  23422. }
  23423. .deleteImg1{
  23424. width: 23px !important;
  23425. height: 23px !important;
  23426. top: 5px !important;
  23427. right: 30px !important;
  23428. }
  23429. .rightW {
  23430. right: 40px;
  23431. }
  23432. .drawPBox {
  23433. display: flex;
  23434. flex-direction: column;
  23435. position: relative;
  23436. }
  23437. .drawPBox span {
  23438. font-size: 18px;
  23439. color: #606266;
  23440. padding-bottom: 10px;
  23441. margin: 10px 0;
  23442. border-bottom: 1px solid #eaeaea;
  23443. }
  23444. .drawPBox img {
  23445. width: 500px;
  23446. height: 300px;
  23447. object-fit: contain;
  23448. cursor: pointer;
  23449. margin: 0 auto;
  23450. }
  23451. .sentenBox {
  23452. background: #fff;
  23453. height: 450px;
  23454. overflow: auto;
  23455. background-image: url("../assets/icon/conSentences/stuBg.png");
  23456. background-position: 102%;
  23457. background-repeat: no-repeat;
  23458. background-size: 60%;
  23459. }
  23460. .addSen {
  23461. background: #409efe;
  23462. width: 90px;
  23463. color: #fff;
  23464. height: 35px;
  23465. text-align: center;
  23466. line-height: 35px;
  23467. border-radius: 5px;
  23468. float: right;
  23469. margin: 10px 20px 0 0;
  23470. cursor: pointer;
  23471. }
  23472. .sentenTop {
  23473. display: flex;
  23474. flex-direction: row;
  23475. flex-wrap: nowrap;
  23476. align-items: center;
  23477. padding: 55px 0 0 20px;
  23478. box-sizing: border-box;
  23479. }
  23480. .sentenTop > div:nth-child(2) {
  23481. width: 300px;
  23482. margin: 0 15px;
  23483. }
  23484. .sentenTop > div:nth-child(3) {
  23485. background: #409efe;
  23486. color: #fff;
  23487. width: 65px;
  23488. height: 35px;
  23489. text-align: center;
  23490. line-height: 35px;
  23491. border-radius: 5px;
  23492. cursor: pointer;
  23493. }
  23494. .cardList,
  23495. .cardList1 {
  23496. padding: 10px 0 10px 0;
  23497. display: flex;
  23498. flex-direction: row;
  23499. flex-wrap: wrap;
  23500. align-items: center;
  23501. box-sizing: border-box;
  23502. border-bottom: 1px solid #f4f4f4;
  23503. width: 98%;
  23504. margin: 0 auto;
  23505. min-width: 60%;
  23506. max-width: 85%;
  23507. }
  23508. .cardList1 {
  23509. padding: 10px 0 10px 10px !important;
  23510. margin: 0 !important;
  23511. }
  23512. .cardBox {
  23513. display: flex;
  23514. flex-direction: row;
  23515. flex-wrap: wrap;
  23516. align-items: center;
  23517. align-content: center;
  23518. }
  23519. .cardBox > div {
  23520. margin-bottom: 10px;
  23521. }
  23522. .isCard,
  23523. .isChooseCard,
  23524. .noCard,
  23525. .isCard1 {
  23526. min-width: 130px;
  23527. width: auto;
  23528. height: 60px;
  23529. text-align: center;
  23530. line-height: 60px;
  23531. font-size: 20px;
  23532. cursor: pointer;
  23533. background-image: url("../assets/icon/conSentences/titleBorder.png");
  23534. background-size: cover;
  23535. transition: all 2s;
  23536. margin-right: 20px;
  23537. background-size: 100% 100%;
  23538. padding: 0 20px;
  23539. box-sizing: border-box;
  23540. }
  23541. .isCard > div,
  23542. .noCard > div,
  23543. .isCard1 > div {
  23544. white-space: nowrap;
  23545. overflow: hidden;
  23546. text-overflow: ellipsis;
  23547. width: 100%;
  23548. margin: 0 auto;
  23549. }
  23550. .noCard {
  23551. background-image: none;
  23552. }
  23553. .isCard1 {
  23554. background-image: url("../assets/icon/conSentences/answerBorder.png");
  23555. }
  23556. .isChooseCard {
  23557. background-image: none;
  23558. border: 1px dashed #b9b9b9;
  23559. border-radius: 10px;
  23560. }
  23561. .card {
  23562. width: 130px;
  23563. height: 60px;
  23564. }
  23565. .card > img {
  23566. width: 100%;
  23567. height: 100%;
  23568. }
  23569. .rightCardBox {
  23570. margin: 10px 0 0 10px;
  23571. }
  23572. .rightCardBox > div:nth-child(1) {
  23573. margin-bottom: 10px;
  23574. }
  23575. .cardCss {
  23576. display: flex;
  23577. flex-direction: column;
  23578. flex-wrap: nowrap;
  23579. align-items: center;
  23580. border-bottom: 3px solid #b4c3d3;
  23581. padding: 0 0 5px 0;
  23582. margin-right: 10px;
  23583. }
  23584. .cardCss > div:nth-child(2) {
  23585. background: #5b7b9d;
  23586. color: #fff;
  23587. width: 20px;
  23588. height: 20px;
  23589. border-radius: 50%;
  23590. text-align: center;
  23591. line-height: 20px;
  23592. }
  23593. .isWrong {
  23594. display: flex;
  23595. flex-direction: row;
  23596. flex-wrap: nowrap;
  23597. align-content: center;
  23598. align-items: center;
  23599. }
  23600. .answerRight {
  23601. width: 25%;
  23602. }
  23603. .isTj {
  23604. display: flex;
  23605. flex-direction: row;
  23606. flex-wrap: nowrap;
  23607. align-items: center;
  23608. }
  23609. .isTj > div:nth-child(2) {
  23610. color: #727070;
  23611. margin-left: 10px;
  23612. }
  23613. .isTjImg {
  23614. width: 30px;
  23615. height: 30px;
  23616. }
  23617. .isTjImg > img {
  23618. width: 100%;
  23619. height: 100%;
  23620. }
  23621. .cardAnswerBox {
  23622. font-size: 18px;
  23623. width: 97%;
  23624. border: 5px;
  23625. padding: 0;
  23626. border-radius: 5px;
  23627. margin: 10px auto;
  23628. word-break: break-word;
  23629. }
  23630. .w_name {
  23631. margin-bottom: 10px;
  23632. }
  23633. .w_name span {
  23634. font-size: 16px;
  23635. }
  23636. .w_teachert {
  23637. width: 50px !important;
  23638. position: absolute;
  23639. height: auto !important;
  23640. z-index: 10;
  23641. right: 25px;
  23642. top: -25px;
  23643. }
  23644. .group_workBox {
  23645. }
  23646. .group_workBox + .group_workBox {
  23647. margin-top: 20px;
  23648. }
  23649. .group_box {
  23650. padding-bottom: 20px;
  23651. border-bottom: 2px solid #f0f0f0;
  23652. margin-top: 10px;
  23653. }
  23654. .group_title {
  23655. display: flex;
  23656. align-items: center;
  23657. justify-content: space-between;
  23658. width: 95%;
  23659. }
  23660. .group_name {
  23661. background-image: url(../assets/icon/groupN.png);
  23662. width: 220px;
  23663. background-size: 100% 100%;
  23664. height: 67px;
  23665. padding: 0 20px 0 43px;
  23666. box-sizing: border-box;
  23667. line-height: 63px;
  23668. color: #fff;
  23669. overflow: hidden;
  23670. white-space: nowrap;
  23671. text-overflow: ellipsis;
  23672. }
  23673. .group_work {
  23674. width: 100%;
  23675. padding: 0 10px;
  23676. box-sizing: border-box;
  23677. display: flex;
  23678. flex-wrap: wrap;
  23679. }
  23680. .g_d_box {
  23681. display: flex;
  23682. flex-flow: wrap;
  23683. justify-content: space-around;
  23684. }
  23685. .g_d_box .isChair {
  23686. background-image: url(../assets/avatar.png) !important;
  23687. }
  23688. .g_d_group {
  23689. width: 500px;
  23690. margin-bottom: 80px;
  23691. }
  23692. .g_d_group_chair {
  23693. display: flex;
  23694. align-items: center;
  23695. justify-content: center;
  23696. }
  23697. .g_d_group_chair > div + div {
  23698. margin-left: 30px;
  23699. }
  23700. .g_d_group_chair > div,
  23701. .g_d_group_chair2 > div {
  23702. display: flex;
  23703. flex-direction: column;
  23704. align-items: center;
  23705. }
  23706. .g_d_group_chair > div > span:nth-child(1),
  23707. .g_d_group_chair2 > div > span:nth-child(1) {
  23708. background-image: url(../assets/icon/chair.png);
  23709. width: 50px;
  23710. height: 50px;
  23711. display: block;
  23712. background-size: 100% 100%;
  23713. }
  23714. .g_d_group_tableBox {
  23715. display: flex;
  23716. align-items: center;
  23717. justify-content: center;
  23718. }
  23719. .g_d_group_chair2 {
  23720. display: flex;
  23721. flex-direction: column;
  23722. align-items: center;
  23723. justify-content: center;
  23724. }
  23725. .g_d_group_chair2 > div + div {
  23726. margin-top: 10px;
  23727. }
  23728. .g_d_group_table {
  23729. background-image: url(../assets/icon/groupBg.png);
  23730. width: 354px;
  23731. height: 196px;
  23732. background-size: 100% 100%;
  23733. display: flex;
  23734. align-items: center;
  23735. justify-content: center;
  23736. flex-direction: column;
  23737. color: #fff;
  23738. }
  23739. .g_d_group_table > div:nth-child(1) {
  23740. font-size: 24px;
  23741. margin-bottom: 5px;
  23742. }
  23743. .g_d_group_table > div:nth-child(2) div {
  23744. cursor: pointer;
  23745. background: #2e77bf;
  23746. padding: 4px 10px;
  23747. border-radius: 5px;
  23748. }
  23749. .groupBox {
  23750. }
  23751. .groupContent + .groupContent {
  23752. margin-top: 30px;
  23753. }
  23754. .groupTitle {
  23755. font-size: 24px;
  23756. color: rgb(80, 80, 80);
  23757. margin-bottom: 20px;
  23758. }
  23759. .groupName {
  23760. display: flex;
  23761. align-items: center;
  23762. }
  23763. .groupn {
  23764. font-size: 15px;
  23765. margin-right: 10px;
  23766. }
  23767. .groupName + .groupName {
  23768. margin-top: 15px;
  23769. }
  23770. .groupBtn {
  23771. margin-left: 10px;
  23772. }
  23773. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23774. text-align: left;
  23775. }
  23776. .g_d_btnBox {
  23777. display: flex;
  23778. justify-content: flex-end;
  23779. align-items: center;
  23780. margin-bottom: 20px;
  23781. }
  23782. .updateChair {
  23783. position: relative;
  23784. }
  23785. .updateChairBtn {
  23786. position: absolute;
  23787. width: 50px;
  23788. height: 50px;
  23789. overflow: hidden;
  23790. /* display: flex; */
  23791. align-items: center;
  23792. justify-content: center;
  23793. background: #00000087;
  23794. color: #fff;
  23795. border-radius: 50px;
  23796. display: none;
  23797. cursor: pointer;
  23798. }
  23799. .updateChair:hover .updateChairBtn {
  23800. display: flex;
  23801. }
  23802. .group_staic_box {
  23803. display: flex;
  23804. padding: 30px 40px 10px;
  23805. flex-wrap: wrap;
  23806. }
  23807. .group_staic {
  23808. /* width: 50%; */
  23809. margin-bottom: 20px;
  23810. display: flex;
  23811. align-items: center;
  23812. }
  23813. .group_staic span:nth-child(1) {
  23814. width: 150px;
  23815. text-align: right;
  23816. margin-right: 15px;
  23817. }
  23818. .group_staic span:nth-child(2) {
  23819. background: rgb(0 123 255);
  23820. color: #fff;
  23821. border-radius: 5px;
  23822. padding: 5px;
  23823. }
  23824. .codeFileBox {
  23825. height: 300px;
  23826. background: #fff;
  23827. display: flex;
  23828. align-items: center;
  23829. justify-content: center;
  23830. }
  23831. .codeFileBox img {
  23832. width: 200px;
  23833. margin: 0;
  23834. height: auto;
  23835. }
  23836. .codeFileBox div {
  23837. background: rgb(80, 142, 226);
  23838. color: #fff;
  23839. padding: 10px 20px;
  23840. border-radius: 25px;
  23841. cursor: pointer;
  23842. margin-left: 15px;
  23843. }
  23844. .radioBox {
  23845. display: flex;
  23846. flex-direction: column;
  23847. flex-wrap: nowrap;
  23848. align-items: flex-start;
  23849. }
  23850. .radioBox > div {
  23851. margin: 10px 0 0 10px;
  23852. }
  23853. /* .radioBox >>> .el-radio__input,
  23854. .radioBox >>> .el-checkbox__inner {
  23855. margin-left: 10px;
  23856. } */
  23857. .radioBox >>> .el-radio__label,
  23858. .radioBox >>> .el-checkbox__label {
  23859. display: flex;
  23860. align-items: center;
  23861. width: 100%;
  23862. }
  23863. .radioBox >>> .el-radio__label > span {
  23864. width: 100%;
  23865. display: -webkit-box;
  23866. overflow: hidden;
  23867. white-space: normal !important;
  23868. text-overflow: ellipsis;
  23869. word-wrap: break-word;
  23870. }
  23871. .inImg {
  23872. width: 100px;
  23873. cursor: pointer;
  23874. }
  23875. .inImg > img {
  23876. width: 100%;
  23877. height: 100%;
  23878. object-fit: cover;
  23879. }
  23880. .timuImgBox {
  23881. margin: 10px 0;
  23882. display: flex;
  23883. flex-direction: column;
  23884. flex-wrap: wrap;
  23885. align-items: flex-start;
  23886. }
  23887. .timuImg {
  23888. width: 150px;
  23889. margin: 5px 0;
  23890. cursor: pointer;
  23891. }
  23892. .timuImg > img {
  23893. width: 100%;
  23894. height: 100%;
  23895. object-fit: cover;
  23896. }
  23897. .worksTop {
  23898. display: flex;
  23899. flex-direction: row;
  23900. align-items: flex-end;
  23901. }
  23902. .worksTitle{
  23903. display: flex;
  23904. flex-direction: row;
  23905. flex-wrap: nowrap;
  23906. align-items: center;
  23907. }
  23908. .worksTitle::before,.worksTop::before{
  23909. content: '';
  23910. display: block;
  23911. width: 3px;
  23912. height: 20px;
  23913. background: #0061FF;
  23914. border-radius: 3px;
  23915. margin: 0 5px 0 0;
  23916. }
  23917. .corOpen {
  23918. margin: 0 0 0 10px;
  23919. font-size: 14px;
  23920. cursor: pointer;
  23921. color: #505050;
  23922. }
  23923. .corOpen:hover {
  23924. color: #499eef;
  23925. }
  23926. .navCorOpenBox {
  23927. display: flex;
  23928. flex-direction: row;
  23929. align-items: center;
  23930. justify-content: space-between;
  23931. height: 55px;
  23932. background: #ffffff;
  23933. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23934. border-radius: 8px 8px 0px 0px;
  23935. z-index: 9;
  23936. position: relative;
  23937. }
  23938. .navCorOpen {
  23939. padding-right: 15px;
  23940. cursor: pointer;
  23941. width: 45px;
  23942. display: flex;
  23943. }
  23944. .navCorOpen > img {
  23945. width: 100%;
  23946. height: 100%;
  23947. }
  23948. .mlImg {
  23949. width: 40px !important;
  23950. min-width: 40px;
  23951. cursor: pointer;
  23952. transform: rotate(180deg);
  23953. }
  23954. .mlImg > img {
  23955. width: 100%;
  23956. height: 100%;
  23957. }
  23958. .navLeftCss {
  23959. width: 100% !important;
  23960. left: 0 !important;
  23961. }
  23962. .isContentCss {
  23963. width: 100% !important;
  23964. }
  23965. .isAllWidth {
  23966. width: 100% !important;
  23967. }
  23968. .group_switch {
  23969. margin-right: 10px;
  23970. height: 30px;
  23971. display: flex;
  23972. align-items: center;
  23973. }
  23974. .group_switch > span {
  23975. margin-right: 5px;
  23976. }
  23977. .fileC_box {
  23978. padding-top: 15px;
  23979. }
  23980. .fileC_box > .fileC_title {
  23981. padding: 10px 5px 14px 10px;
  23982. border-top: 1px solid #cad1dc;
  23983. font-size: 14px;
  23984. font-weight: 400;
  23985. color: #cad1dc;
  23986. width: calc(100% - 20px);
  23987. margin: 0 auto;
  23988. box-sizing: border-box;
  23989. }
  23990. .pl_select_box {
  23991. height: 40px;
  23992. line-height: 40px;
  23993. width: 100%;
  23994. cursor: pointer;
  23995. padding: 0 20px;
  23996. box-sizing: border-box;
  23997. border-radius: 5px;
  23998. border: 1px solid #d6d6d6;
  23999. white-space: nowrap;
  24000. overflow: hidden;
  24001. text-overflow: ellipsis;
  24002. background: #fff;
  24003. text-align: left;
  24004. }
  24005. .newButton {
  24006. width: 102px;
  24007. height: 36px;
  24008. background: #e7ebf1;
  24009. border-radius: 4px;
  24010. color: #0e1e33;
  24011. font-weight: 400;
  24012. font-size: 14px;
  24013. border: none;
  24014. float: right;
  24015. margin-left: 10px;
  24016. }
  24017. .el-table >>> .even_row {
  24018. background-color: #f0f4fa;
  24019. }
  24020. .stageBoxCss,
  24021. .stageBoxIsCss {
  24022. display: flex;
  24023. flex-direction: row;
  24024. flex-wrap: nowrap;
  24025. align-items: center;
  24026. height: 50px;
  24027. border-bottom: 1px solid #e2f5fc;
  24028. cursor: pointer;
  24029. width: 100%;
  24030. }
  24031. .stageBoxIsCss {
  24032. background: #0061ff;
  24033. color: #fff;
  24034. border-radius: 8px;
  24035. }
  24036. .stageItemTitle {
  24037. display: flex;
  24038. flex-direction: row;
  24039. flex-wrap: nowrap;
  24040. align-items: center;
  24041. margin-left: 15px;
  24042. width: calc(100% - 50px);
  24043. }
  24044. .stageNav{
  24045. /* font-weight: bold; */
  24046. }
  24047. .stageItemTitle > div:first-child {
  24048. min-width: 55px;
  24049. }
  24050. .stageItemTitle > div:last-child {
  24051. max-width: 242px;
  24052. white-space: nowrap;
  24053. overflow: hidden;
  24054. text-overflow: ellipsis;
  24055. word-break: break-word;
  24056. width: calc(100% - 55px);
  24057. }
  24058. .closeTri,
  24059. .closeTri1 {
  24060. min-width: 15px;
  24061. width: 15px;
  24062. height: 15px;
  24063. transition: all .5s;
  24064. }
  24065. .closeTri1 {
  24066. padding-left: 10px;
  24067. cursor: pointer;
  24068. }
  24069. .closeTri > img,
  24070. .closeTri1 > img {
  24071. width: 100%;
  24072. height: 100%;
  24073. /* transition: all .5s; */
  24074. }
  24075. .noToolBlue {
  24076. min-width: 10px;
  24077. width: 10px;
  24078. height: 10px;
  24079. background: #0061ff;
  24080. border-radius: 50%;
  24081. margin-left: 13px;
  24082. }
  24083. .stageChild,
  24084. .toolChild {
  24085. height: 0;
  24086. overflow: hidden;
  24087. transition: all 0.5s;
  24088. }
  24089. .toolChild {
  24090. /* margin: 0 0 0 17px;
  24091. padding: 0 0 0 20px;
  24092. border-left: 1px solid #d7d7d7; */
  24093. }
  24094. .toolChild > div + div{
  24095. margin-top:5px;
  24096. }
  24097. .gjCss {
  24098. display: flex;
  24099. flex-direction: row;
  24100. flex-wrap: nowrap;
  24101. align-items: center;
  24102. padding: 10px 0 10px 40px;
  24103. box-sizing: border-box;
  24104. font-size: 14px;
  24105. cursor: pointer;
  24106. border-radius:5px;
  24107. }
  24108. .toolChild > div {
  24109. position: relative;
  24110. width:100%;
  24111. }
  24112. .toolChild > div::before {
  24113. /* content: "";
  24114. width: 15px;
  24115. height: 1px;
  24116. background: #cad1dc;
  24117. position: absolute;
  24118. top: 24px;
  24119. left: -20px;
  24120. display: block; */
  24121. }
  24122. .isGjCss {
  24123. /* color: #0061ff; */
  24124. color:#fff;
  24125. background: rgb(55, 129, 252);
  24126. /* background-color: #e0eafb !important;
  24127. color: #0061ff !important; */
  24128. }
  24129. .navItem {
  24130. background: #ffffff;
  24131. border-radius: 4px;
  24132. width: 100%;
  24133. margin: 10px auto;
  24134. position: relative;
  24135. height: 40px;
  24136. display: flex;
  24137. flex-direction: row;
  24138. flex-wrap: nowrap;
  24139. align-items: center;
  24140. }
  24141. .navItemList {
  24142. display: flex;
  24143. flex-direction: row;
  24144. flex-wrap: nowrap;
  24145. align-items: center;
  24146. padding: 0 13px;
  24147. cursor: pointer;
  24148. width: calc(100% - 60px);
  24149. height: 100%;
  24150. }
  24151. .navItemList > div:first-child {
  24152. /* min-width: 60px; */
  24153. min-width:fit-content;
  24154. }
  24155. .navItemList > div:last-child {
  24156. width: calc(100% - 80px);
  24157. white-space: nowrap;
  24158. overflow: hidden;
  24159. text-overflow: ellipsis;
  24160. word-break: break-word;
  24161. }
  24162. /* .isItemList > div {
  24163. color: #fff !important;
  24164. } */
  24165. .tool_work_box {
  24166. width: 100%;
  24167. padding: 0 37px 0;
  24168. box-sizing: border-box;
  24169. }
  24170. .tool_box {
  24171. width: 100%;
  24172. padding: 0 0 0 20px;
  24173. }
  24174. .tool_type_box {
  24175. display: flex;
  24176. flex-direction: row;
  24177. align-items: baseline;
  24178. flex-wrap: nowrap;
  24179. justify-content: flex-start;
  24180. position: relative;
  24181. }
  24182. .toolSort {
  24183. display: flex;
  24184. flex-direction: row;
  24185. flex-wrap: wrap;
  24186. justify-content: flex-start;
  24187. align-items: flex-start;
  24188. padding: 0 0 15px 0;
  24189. }
  24190. .toolSort > div {
  24191. margin: 0 10px 0 0;
  24192. width: 135px;
  24193. box-sizing: border-box;
  24194. border: 2px solid transparent;
  24195. }
  24196. .tools {
  24197. width: 100%;
  24198. display: flex;
  24199. flex-direction: column;
  24200. flex-wrap: nowrap;
  24201. align-items: flex-start;
  24202. }
  24203. .whiteBIcon {
  24204. width: fit-content;
  24205. cursor: pointer;
  24206. display: flex;
  24207. flex-direction: column;
  24208. flex-wrap: nowrap;
  24209. align-items: center;
  24210. font-size: 14px;
  24211. }
  24212. .tool:hover {
  24213. border: 2px solid #a5c7ff;
  24214. border-radius: 5px;
  24215. }
  24216. .whiteBIcon > img {
  24217. width: 65px;
  24218. height: 100%;
  24219. }
  24220. .whiteBIcon > img {
  24221. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  24222. border-radius: 15px;
  24223. }
  24224. .check {
  24225. /* width: 20px;
  24226. height: 20px; */
  24227. cursor: pointer;
  24228. margin: 10px 0;
  24229. position: absolute;
  24230. right: 2px;
  24231. top: -5px;
  24232. }
  24233. .noChoose,
  24234. .isChoose {
  24235. width: 15px;
  24236. height: 15px;
  24237. border-radius: 50%;
  24238. border: 1px solid #adadad;
  24239. }
  24240. .isChoose {
  24241. border: 4px solid #0363ff !important;
  24242. width: 10px;
  24243. height: 10px;
  24244. }
  24245. .isToolChoose {
  24246. border: 2px solid #5394ff !important;
  24247. border-radius: 5px;
  24248. box-shadow: 0 0 6px 0px #5394ff;
  24249. }
  24250. .checkDiv {
  24251. display: flex;
  24252. align-items: center;
  24253. }
  24254. .checkDiv span {
  24255. margin-left: 5px;
  24256. color: #858585;
  24257. }
  24258. .check img {
  24259. width: 20px;
  24260. height: 20px;
  24261. }
  24262. .lockTaskIcon {
  24263. width: 20px;
  24264. height: 20px;
  24265. position: absolute;
  24266. right: 10px;
  24267. top: 5px;
  24268. }
  24269. .lockTaskIcon > img {
  24270. width: 100%;
  24271. height: 100%;
  24272. }
  24273. .pick_box {
  24274. display: flex;
  24275. align-items: flex-start;
  24276. flex-wrap: wrap;
  24277. }
  24278. .selectBox {
  24279. width: 110px;
  24280. margin-left: 10px;
  24281. margin: 0 10px 0 auto;
  24282. }
  24283. .selectBox >>> .el-input__inner {
  24284. height: 30px;
  24285. line-height: 30px;
  24286. }
  24287. .selectBox >>> .el-input__icon {
  24288. line-height: 30px;
  24289. }
  24290. .sentenceTitle {
  24291. display: flex;
  24292. flex-direction: row;
  24293. flex-wrap: nowrap;
  24294. align-items: center;
  24295. }
  24296. .sentenceTitle::before {
  24297. content: attr(index);
  24298. background: #3681fc;
  24299. border-radius: 50%;
  24300. color: #fff;
  24301. width: 25px;
  24302. height: 25px;
  24303. min-width: 25px;
  24304. min-height: 25px;
  24305. text-align: center;
  24306. line-height: 25px;
  24307. margin-right: 5px;
  24308. }
  24309. .hfBox {
  24310. padding: 10px;
  24311. box-sizing: border-box;
  24312. }
  24313. .whoReplyWho {
  24314. display: flex;
  24315. flex-direction: row;
  24316. flex-wrap: nowrap;
  24317. align-items: baseline;
  24318. justify-content: flex-start;
  24319. }
  24320. .hfBottom {
  24321. display: flex;
  24322. flex-direction: row;
  24323. flex-wrap: nowrap;
  24324. align-items: center;
  24325. justify-content: space-between;
  24326. font-size: 14px;
  24327. }
  24328. .deleteHfItem {
  24329. cursor: pointer;
  24330. width: 20px;
  24331. height: 20px;
  24332. }
  24333. .deleteHfItem > img {
  24334. width: 100%;
  24335. height: 100%;
  24336. }
  24337. .whoReplyWho > .hfImg {
  24338. width: 12px;
  24339. height: 12px;
  24340. margin: 0 5px;
  24341. }
  24342. .whoReplyWho > .hfImg > img {
  24343. width: 100%;
  24344. height: 100%;
  24345. }
  24346. .hfContent {
  24347. padding-top: 10px;
  24348. box-sizing: border-box;
  24349. display: -webkit-box;
  24350. overflow: hidden;
  24351. white-space: normal !important;
  24352. text-overflow: ellipsis;
  24353. word-wrap: break-word;
  24354. -webkit-box-orient: vertical;
  24355. }
  24356. .hfTime {
  24357. text-align: left;
  24358. box-sizing: border-box;
  24359. padding: 10px 0 10px 0px;
  24360. color: #bfbfbf;
  24361. font-size: 14px;
  24362. }
  24363. .btnAllNT {
  24364. position: fixed;
  24365. bottom: 100px;
  24366. right: 40px;
  24367. z-index: 999;
  24368. display: flex;
  24369. flex-direction: row;
  24370. }
  24371. .btnAllNT > img {
  24372. cursor: pointer;
  24373. width: 80px;
  24374. }
  24375. .toolMask {
  24376. position: fixed;
  24377. width: 100%;
  24378. height: 100%;
  24379. background: #3f3c3c;
  24380. opacity: 0.5;
  24381. top: 0;
  24382. left: 0;
  24383. z-index: 999;
  24384. }
  24385. .addToolCss {
  24386. position: fixed;
  24387. z-index: 999;
  24388. background: #fff;
  24389. right: 5%;
  24390. bottom: 18%;
  24391. min-width: 1035px;
  24392. min-height: 300px;
  24393. border-radius: 10px;
  24394. box-shadow: 0 0 8px 1px #b2b2b2;
  24395. }
  24396. .toolTop {
  24397. display: flex;
  24398. flex-direction: row;
  24399. flex-wrap: nowrap;
  24400. justify-content: space-between;
  24401. align-items: center;
  24402. padding: 20px;
  24403. }
  24404. .toolTop > div:nth-child(2) {
  24405. width: 15px;
  24406. height: 15px;
  24407. padding-right: 10px;
  24408. cursor: pointer;
  24409. }
  24410. .toolTop > div:nth-child(2) > img {
  24411. width: 100%;
  24412. height: 100%;
  24413. }
  24414. .fullStyle>>>.el-dialog__body {
  24415. height: calc(100% - 125px) !important;
  24416. box-sizing: border-box;
  24417. padding: 30px 0 !important;
  24418. background: #fff !important;
  24419. }
  24420. .fullStyle>>>.el-dialog {
  24421. width: 100% !important;
  24422. max-width: 100% !important;
  24423. height: 100% !important;
  24424. margin: 0 !important;
  24425. }
  24426. .fullStyle {
  24427. width: 100% !important;
  24428. max-width: 100% !important;
  24429. height: 100% !important;
  24430. margin: 0 auto !important;
  24431. }
  24432. .fullStyle>>>.el-dialog__footer{
  24433. background: #fff !important;
  24434. }
  24435. .engUpBox {
  24436. width: 100%;
  24437. height: 100%;
  24438. }
  24439. .engTitle,
  24440. .engText {
  24441. display: flex;
  24442. flex-direction: row;
  24443. flex-wrap: nowrap;
  24444. align-items: flex-start;
  24445. padding: 0 20px 20px 20px;
  24446. box-sizing: border-box;
  24447. }
  24448. .engTitle > .div:first-child,
  24449. .engText > div:first-child {
  24450. min-width: 75px;
  24451. }
  24452. .correctBox{
  24453. width: 100%;
  24454. display: flex;
  24455. flex-direction: row;
  24456. flex-wrap: nowrap;
  24457. align-items: flex-start;
  24458. }
  24459. .oldBox{
  24460. width: 50%;
  24461. height: 100%;
  24462. display: flex;
  24463. flex-direction: column;
  24464. flex-wrap: nowrap;
  24465. align-items: center;
  24466. border-top: 1px solid #d9d9d9;
  24467. border-left: 1px solid #d9d9d9;
  24468. border-right: 1px solid #d9d9d9;
  24469. }
  24470. .oldBox>div:first-child{
  24471. width: 100%;
  24472. text-align: center;
  24473. background: #d9d9d9;
  24474. height: 35px;
  24475. line-height: 35px;
  24476. font-weight: bold;
  24477. }
  24478. .oldText{
  24479. width: 100%;
  24480. height: calc(100% - 35px);
  24481. overflow: auto;
  24482. margin: 10px 0;
  24483. display: flex;
  24484. flex-direction: column;
  24485. flex-wrap: nowrap;
  24486. align-content: center;
  24487. align-items: center;
  24488. }
  24489. .detailBox{
  24490. width: 50%;
  24491. padding: 10px;
  24492. background: #f6f6f6;
  24493. border-radius: 5px;
  24494. }
  24495. .oldDetail,.oldDetail1{
  24496. padding-bottom: 30px;
  24497. }
  24498. .oldImg{
  24499. width:30px;
  24500. height: 30px;
  24501. }
  24502. .oldImg>img{
  24503. width: 100%;
  24504. height: 100%;
  24505. }
  24506. .allName{
  24507. min-width: 200px;
  24508. white-space: nowrap;
  24509. overflow: hidden;
  24510. text-overflow: ellipsis;
  24511. word-break: break-word;
  24512. cursor: pointer;
  24513. text-align: center;
  24514. border: 1px solid #bcc2cc;
  24515. box-sizing: border-box;
  24516. }
  24517. .engUpTop{
  24518. max-height: 300px;
  24519. overflow: auto;
  24520. }
  24521. .isUpdateToolDetailClass{
  24522. padding: 0 !important;
  24523. }
  24524. .isUpdateToolDetailClass textarea{
  24525. padding:12px;
  24526. font-size: 16px;
  24527. min-height:100%;
  24528. width: 100%;
  24529. box-sizing:border-box;
  24530. outline: none;
  24531. border:none;
  24532. line-height: 30px;
  24533. resize: none;
  24534. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  24535. color: #838383;
  24536. }
  24537. .show_taskD {
  24538. min-width: fit-content;
  24539. margin-left: 10px;
  24540. display: flex;
  24541. align-items: center;
  24542. font-size: 14px;
  24543. cursor: pointer;
  24544. color: #717c8d;
  24545. }
  24546. .show_taskD > img {
  24547. width: 15px;
  24548. margin-right: 5px;
  24549. transition: 0.2s all;
  24550. transform: rotate(-90deg);
  24551. }
  24552. .show_taskD.show > img {
  24553. transform: rotate(0deg);
  24554. }
  24555. .correctCss{
  24556. position: absolute;
  24557. bottom: -70px;
  24558. background: #409eff;
  24559. color: #fff;
  24560. }
  24561. .dialog_diyCopy >>> .el-dialog__header {
  24562. display: none !important;
  24563. }
  24564. .dialog_diyCopy >>> .el-dialog__body {
  24565. padding: 0 !important;
  24566. height: 100% !important;
  24567. }
  24568. .confirmOpenDigCss > div{
  24569. font-size: 14px;
  24570. color: rgba(0, 0, 0, 0.6);
  24571. }
  24572. .confirmOpenDigCss >>> .el-dialog{
  24573. border-radius: 6px;
  24574. }
  24575. .confirmOpenDigCss >>> .el-dialog__body{
  24576. padding: 25px !important;
  24577. }
  24578. .confirmOpenDigCss > span{
  24579. font-size: 16px;
  24580. font-weight: 600;
  24581. color: rgba(0, 0, 0, 0.8);
  24582. }
  24583. div::-webkit-scrollbar {
  24584. width: 10px;
  24585. height: 6px;
  24586. }
  24587. </style>