studyStudent.vue 851 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453
  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">
  15. <img
  16. v-if="
  17. courseDetail.userid == userid ||
  18. (courseDetail.course_teacher &&
  19. courseDetail.course_teacher.indexOf(userid) != -1)
  20. "
  21. src="../../assets/icon/learn/addTool.png"
  22. @click="openToolAll"
  23. style="position: relative"
  24. />
  25. <img
  26. src="../../assets/icon/learn/last.png"
  27. @click="nextOrpreSteps(0)"
  28. />
  29. <img
  30. src="../../assets/icon/learn/next.png"
  31. @click="nextOrpreSteps(1)"
  32. />
  33. <img
  34. src="../../assets/icon/learn/return.png"
  35. @click.stop="
  36. goTo(
  37. '/courseDetail?userid=' +
  38. userid +
  39. '&oid=' +
  40. oid +
  41. '&org=' +
  42. org +
  43. '&cid=' +
  44. classId +
  45. '&courseId=' +
  46. id +
  47. '&tType=' +
  48. tType +
  49. '&screenType=' +
  50. screenType
  51. )
  52. "
  53. />
  54. </div> -->
  55. <div
  56. class="pButton"
  57. style="left: 0; top: 140px"
  58. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  59. @click="setContent2(true)"
  60. >
  61. <!-- 批 , getCourseDetail()-->
  62. <img
  63. src="../../assets/icon/newIcons/isRight.png"
  64. style="width: 45px"
  65. alt=""
  66. />
  67. </div>
  68. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  69. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  70. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  71. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  72. <div
  73. style="
  74. max-width: calc(100% - 40px);
  75. width: auto;
  76. white-space: nowrap;
  77. overflow: hidden;
  78. text-overflow: ellipsis;
  79. word-break: break-word;
  80. display: block;
  81. "
  82. >
  83. <el-tooltip
  84. effect="light"
  85. :content="courseDetail.title"
  86. placement="top"
  87. >
  88. <div class="ctitle">
  89. {{ courseDetail.title }}
  90. </div>
  91. </el-tooltip>
  92. </div>
  93. <el-tooltip effect="light" content="收缩" placement="top">
  94. <div class="mlImg" @click="setContent2(false)">
  95. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  96. </div>
  97. </el-tooltip>
  98. </div>
  99. <div
  100. class="inviteBox"
  101. v-if="tcid && inviteCode"
  102. style="padding: 0 0 8px 0"
  103. >
  104. <div>
  105. <span>随机码:{{ inviteCode }}</span>
  106. </div>
  107. </div>
  108. </div>
  109. <div class="cru_selectBox">
  110. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  111. <div class="stageChild" :class="{ navActive: item.isOpen }">
  112. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  113. <div
  114. class="navItem"
  115. :class="{
  116. openTaskActive:
  117. navIndex == taskCount &&
  118. nav.id == navId &&
  119. stageIndex == courseType,
  120. }"
  121. >
  122. <div v-if="nav.tool[0].tool != undefined">
  123. <div
  124. class="closeTri1"
  125. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  126. @click="openTask(stageIndex, navIndex, nav.id)"
  127. >
  128. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  129. </div>
  130. <div
  131. class="closeTri1"
  132. v-else
  133. @click="openTask(stageIndex, navIndex, nav.id)"
  134. >
  135. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  136. </div>
  137. </div>
  138. <div v-else class="noToolBlue"></div>
  139. <div
  140. @click="openTask(stageIndex, navIndex, nav.id)"
  141. class="navItemList"
  142. :class="{
  143. isItemList:
  144. navIndex == taskCount &&
  145. nav.id == navId &&
  146. stageIndex == courseType,
  147. }"
  148. >
  149. <div>任务{{ navIndex + 1 }}:</div>
  150. <el-tooltip
  151. effect="light"
  152. :content="nav.taskName"
  153. placement="top"
  154. >
  155. <div
  156. :style="{
  157. width:
  158. IsLookOpen && !nav.isLook
  159. ? 'calc(100% - 75px)'
  160. : 'auto',
  161. }"
  162. >
  163. {{ nav.taskName }}
  164. </div>
  165. </el-tooltip>
  166. </div>
  167. <div class="lockTaskIcon">
  168. <img
  169. src="../../assets/lock.png"
  170. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  171. courseDetail.course_teacher.indexOf(userid) ==-1"
  172. alt=""
  173. />
  174. </div>
  175. </div>
  176. <div
  177. v-if="nav.tool[0].tool != undefined"
  178. class="toolChild"
  179. :class="{ toolActive: nav.isOpen }"
  180. >
  181. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  182. <div
  183. class="gjCss"
  184. :class="{
  185. isGjCss: t.isTool,
  186. }"
  187. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  188. >
  189. <div>工具{{ toolIndex2 + 1 }}:</div>
  190. <div v-if="t.tool == 58">模拟驾驶</div>
  191. <div v-if="t.tool == 59">路径搜索</div>
  192. <div v-if="t.tool == 60">深度学习</div>
  193. <div v-if="t.tool == 10">倒计时</div>
  194. <div v-if="t.tool == 65">挑人</div>
  195. <div v-if="t.tool == 7">思维网格</div>
  196. <div v-if="t.tool == 1">电子白板</div>
  197. <div v-if="t.tool == 52">文档</div>
  198. <div v-if="t.tool == 3">思维导图</div>
  199. <div v-if="t.tool == 48">表格</div>
  200. <div v-if="t.tool == 49">学生分组</div>
  201. <div v-if="t.tool == 4">问卷调查</div>
  202. <div v-if="t.tool == 45">选择题</div>
  203. <div v-if="t.tool == 15">问答</div>
  204. <div v-if="t.tool == 16">作业提交</div>
  205. <div v-if="t.tool == 50">批量上传</div>
  206. <div v-if="t.tool == 41">选择匹配</div>
  207. <div v-if="t.tool == 47">排序</div>
  208. <div v-if="t.tool == 40">个人评价</div>
  209. <div v-if="t.tool == 18">训练平台</div>
  210. <div v-if="t.tool == 21">AIoT Blockly</div>
  211. <div v-if="t.tool == 23">AI Python</div>
  212. <div v-if="t.tool == 24">AI Blockly</div>
  213. <div v-if="t.tool == 32">源码编辑</div>
  214. <div v-if="t.tool == 57">CocoPi</div>
  215. <div v-if="t.tool == 63">海龟编程</div>
  216. <div v-if="t.tool == 28">翻译</div>
  217. <div v-if="t.tool == 31">数字画板</div>
  218. <div v-if="t.tool == 39">GeoGebra</div>
  219. <div v-if="t.tool == 66">公式编辑</div>
  220. <div v-if="t.tool == 67">分子结构</div>
  221. <div v-if="t.tool == 68">时间轴</div>
  222. <div v-if="t.tool == 69">英语写作</div>
  223. <div v-if="t.tool == 70">英语口语</div>
  224. <div v-if="t.tool == 25">目标管理</div>
  225. <div v-if="t.tool == 26">课程设计</div>
  226. <div v-if="t.tool == 62">交互视频</div>
  227. <div v-if="t.tool == 71">AI智能体</div>
  228. <div v-if="t.tool == 72">应用中心</div>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. <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' }">
  238. <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>
  239. <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' }">
  240. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) && !['2'].includes(tType) ? '100%' : 'calc(100% - 745px)'}">
  241. <div>任务{{ taskCount + 1 }}</div>
  242. <el-tooltip
  243. effect="light"
  244. :content="
  245. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  246. "
  247. placement="top"
  248. >
  249. <div>
  250. {{
  251. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  252. .task
  253. }}
  254. </div>
  255. </el-tooltip>
  256. </div>
  257. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  258. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid) || ['2'].includes(tType)">
  259. <div class="btnLeft">
  260. <el-tooltip effect="light" content="刷新" placement="top">
  261. <div class="reBtnIcon" @click="refreshCourse">
  262. <span>刷新</span>
  263. </div>
  264. </el-tooltip>
  265. <el-tooltip effect="light" content="评论" placement="top">
  266. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  267. <span>评论</span>
  268. </div>
  269. </el-tooltip>
  270. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  271. <el-tooltip effect="light" content="录制" placement="top">
  272. <div class="vedioIcon" @click="startRecording">
  273. <span>录制</span>
  274. </div>
  275. </el-tooltip>
  276. </div>
  277. <div v-else-if="tType == 1 || tType == 4">
  278. <el-tooltip effect="light" content="下载" placement="top">
  279. <div class="vedioIcon1" @click="stopRecording">
  280. <span>下载</span>
  281. </div>
  282. </el-tooltip>
  283. </div>
  284. </div>
  285. <div class="btnRight">
  286. <div
  287. class="last"
  288. @click="nextOrpreSteps(0)"
  289. v-if="!(IsFollow && tType == 2)"
  290. @mouseover="isHovered = true"
  291. @mouseout="isHovered = false"
  292. >
  293. <div class="lastImg">
  294. <img
  295. :src="
  296. isHovered
  297. ? require('../../assets/icon/newIcons/whiteLast.png')
  298. : require('../../assets/icon/newIcons/last.png')
  299. "
  300. alt=""
  301. />
  302. </div>
  303. <div class="lastText">上一步</div>
  304. </div>
  305. <div
  306. class="last"
  307. @click="nextOrpreSteps(1)"
  308. v-if="!(IsFollow && tType == 2)"
  309. @mouseover="isHovered1 = true"
  310. @mouseout="isHovered1 = false"
  311. >
  312. <div class="lastText">下一步</div>
  313. <div class="lastImg">
  314. <img
  315. :src="
  316. isHovered1
  317. ? require('../../assets/icon/newIcons/whiteNext.png')
  318. : require('../../assets/icon/newIcons/next.png')
  319. "
  320. alt=""
  321. />
  322. </div>
  323. </div>
  324. <div
  325. class="last"
  326. @click="juriVisible = true"
  327. v-if="tType == 1"
  328. @mouseover="isHovered2 = true"
  329. @mouseout="isHovered2 = false"
  330. >
  331. <div class="lastImg">
  332. <img
  333. :src="
  334. isHovered2
  335. ? require('../../assets/icon/newIcons/whiteLock.png')
  336. : require('../../assets/icon/newIcons/lock.png')
  337. "
  338. alt=""
  339. />
  340. </div>
  341. <div class="lastText">权限</div>
  342. </div>
  343. <div
  344. class="returnBtn1 returnIcon"
  345. @click.stop="
  346. goTo(
  347. '/courseDetail?userid=' +
  348. userid +
  349. '&oid=' +
  350. oid +
  351. '&org=' +
  352. org +
  353. '&cid=' +
  354. classId +
  355. '&courseId=' +
  356. id +
  357. '&tType=' +
  358. tType +
  359. '&screenType=' +
  360. screenType
  361. )
  362. "
  363. >
  364. <div class="lastImg">
  365. <img src="../../assets/icon/newIcon/return.png" alt="" />
  366. </div>
  367. <div class="lastText" style="color: #000">返回</div>
  368. </div>
  369. </div>
  370. <!-- <div
  371. class="returnBtn lockIcon"
  372. @click="juriVisible = true"
  373. v-if="tType == 1"
  374. >
  375. 权限
  376. </div>
  377. <div
  378. class="returnBtn vedioIcon"
  379. @click="startRecording"
  380. v-if="!videoStart && (tType == 1 || tType == 4)"
  381. >
  382. 录制
  383. </div>
  384. <div
  385. class="returnBtn"
  386. @click="stopRecording"
  387. v-else-if="tType == 1 || tType == 4"
  388. style="background: #ee5255"
  389. >
  390. 下载
  391. </div>
  392. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  393. 评论
  394. </div>
  395. <div
  396. class="returnBtn"
  397. @click="nextOrpreSteps(0)"
  398. v-if="!(IsFollow && tType == 2)"
  399. >
  400. 上一步
  401. </div>
  402. <div
  403. class="returnBtn"
  404. @click="nextOrpreSteps(1)"
  405. v-if="!(IsFollow && tType == 2)"
  406. >
  407. 下一步
  408. </div>
  409. <div class="returnBtn" @click="refreshCourse">刷新</div>
  410. <div
  411. class="returnBtn returnIcon"
  412. @click.stop="
  413. goTo(
  414. '/courseDetail?userid=' +
  415. userid +
  416. '&oid=' +
  417. oid +
  418. '&org=' +
  419. org +
  420. '&cid=' +
  421. classId +
  422. '&courseId=' +
  423. id +
  424. '&tType=' +
  425. tType +
  426. '&screenType=' +
  427. screenType
  428. )
  429. "
  430. >
  431. 返回
  432. </div> -->
  433. </div>
  434. </div>
  435. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  436. .taskDetail3 && -->
  437. <div
  438. class="isNoMessage"
  439. v-if="
  440. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  441. .chapterData.length == 0 &&
  442. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  443. .toolChoose[0].tool.length == 0 &&
  444. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .taskDetail == '' &&
  446. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  447. .eList &&
  448. !(
  449. courseDetail.userid == userid ||
  450. (courseDetail.course_teacher &&
  451. courseDetail.course_teacher.indexOf(userid) != -1)
  452. )
  453. "
  454. >
  455. <img src="../../assets/icon/isNoMessage.png" alt />
  456. </div>
  457. <div class="study_top" :class="{ pzClass: pzDialog }">
  458. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  459. .taskDetail3 || -->
  460. <div
  461. class="vedioBox"
  462. v-if="
  463. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  464. .taskDetail != '' ||
  465. vChapterData[0].length > 0 ||
  466. fileC[0].length > 0
  467. "
  468. style="border-radius: 0 0 20px 20px"
  469. >
  470. <!-- <div
  471. class="taskBox"
  472. v-if="
  473. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  474. .taskDetail3
  475. "
  476. >
  477. <div
  478. style="
  479. display: flex;
  480. flex-wrap: nowrap;
  481. flex-direction: column;
  482. position: relative;
  483. "
  484. >
  485. <div
  486. style="
  487. padding: 15px 0;
  488. line-height: 29px;
  489. font-size: 18px;
  490. color: #0e1e33;
  491. "
  492. class="cont"
  493. v-if="
  494. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  495. .taskDetail3 != ''
  496. "
  497. v-html="
  498. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  499. .taskDetail3
  500. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  501. taskCount
  502. ].taskDetail3)
  503. : '暂无描述'
  504. "
  505. ></div>
  506. </div>
  507. </div> -->
  508. <div
  509. class="taskBox"
  510. v-if="
  511. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  512. .taskDetail != ''
  513. "
  514. >
  515. <div
  516. style="
  517. display: flex;
  518. flex-wrap: nowrap;
  519. flex-direction: column;
  520. position: relative;
  521. "
  522. >
  523. <div
  524. style="
  525. padding: 15px 0;
  526. line-height: 29px;
  527. font-size: 18px;
  528. color: #0e1e33;
  529. "
  530. class="cont"
  531. v-if="
  532. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  533. .taskDetail != ''
  534. "
  535. v-html="
  536. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  537. .taskDetail
  538. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  539. taskCount
  540. ].taskDetail
  541. : '暂无描述'
  542. "
  543. ></div>
  544. </div>
  545. </div>
  546. <div
  547. class="student_head"
  548. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  549. >
  550. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  551. <div
  552. :class="
  553. contentDialog == false
  554. ? 'box_course isContentCss'
  555. : 'box_course'
  556. "
  557. v-if="
  558. vChapterData.length > 0 &&
  559. vChapterData[0] &&
  560. showType !== ''
  561. "
  562. >
  563. <div class="wheel" style="height: auto" v-if="showType === 0">
  564. <div
  565. class="workd_media"
  566. style="height: 650px; width: calc(100% - 50px)"
  567. >
  568. <video-player
  569. class="video-player vjs-custom-skin"
  570. :class="contentDialog == false ? 'isAllWidth' : ''"
  571. :playsinline="true"
  572. :options="playerO[0]"
  573. @play="onPlayerPlay($event)"
  574. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  575. ></video-player>
  576. </div>
  577. </div>
  578. <div
  579. class="wheel"
  580. v-if="showType == 1"
  581. style="
  582. box-shadow: 0 0 6px 1px #f2f2f2;
  583. width: 95%;
  584. margin: 0 auto;
  585. background: #f1f1f1;
  586. "
  587. >
  588. <div class="title">查看文档</div>
  589. <el-form class="textBox">
  590. <el-form-item class="textTitle">
  591. <div style="font-size: 22px">
  592. {{ text.name }}
  593. </div>
  594. </el-form-item>
  595. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  596. <div v-html="text.url" class="textContent cont"></div>
  597. </el-form>
  598. </div>
  599. <div
  600. class="wheel"
  601. v-if="
  602. pptImgUrl1.indexOf(
  603. 'https://view.officeapps.live.com/op/view.aspx?src='
  604. ) != -1 && showType == 2
  605. "
  606. style="width: 95%; margin: 0 auto"
  607. >
  608. <iframe
  609. style="width: 100%; height: 100%; border: none"
  610. :src="pptImgUrl1"
  611. ></iframe>
  612. </div>
  613. <div
  614. class="wheel"
  615. v-else-if="showType == 2"
  616. style="width: 95%; margin: 0 auto"
  617. >
  618. <iframe
  619. style="width: 100%; height: 100%; border: none"
  620. security="restricted"
  621. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  622. :src="pptImgUrl1"
  623. ></iframe>
  624. </div>
  625. <div
  626. class="wheel"
  627. v-if="showType == 3"
  628. style="width: 95%; margin: 0 auto"
  629. >
  630. <pdf
  631. :pdfUrl="pptImgUrl1"
  632. style="width: 100%; height: 100%; overflow: auto"
  633. ></pdf>
  634. </div>
  635. <div
  636. class="wheel"
  637. v-if="showType == 4"
  638. style="width: 95%; margin: 0 auto"
  639. >
  640. <el-image
  641. :src="pptImgUrl1"
  642. fit="contain"
  643. style="width: 100%; height: 100%; cursor: pointer"
  644. @click="previewImg(pptImgUrl1)"
  645. ></el-image>
  646. </div>
  647. </div>
  648. <div
  649. class="pButton"
  650. style="position: absolute; right: 20px; top: 0; z-index: 998"
  651. v-if="!contentDialog"
  652. @click="setContent(true)"
  653. >
  654. <!-- 批 -->
  655. <img
  656. src="../../assets/icon/newIcons/isLeft.png"
  657. style="width: 45px"
  658. alt=""
  659. />
  660. </div>
  661. <div
  662. v-if="contentDialog == true"
  663. :style="{
  664. width:
  665. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  666. showType === ''
  667. ? 'calc(100%)'
  668. : '300px',
  669. margin:
  670. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  671. showType === ''
  672. ? '0 15px'
  673. : '0 15px 0 0',
  674. }"
  675. >
  676. <div
  677. class="vedioList"
  678. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  679. style="height: 650px"
  680. >
  681. <div class="navCorOpenBox">
  682. <div class="navTitile">内容列表:</div>
  683. <div class="navCorOpen" @click="setContent(false)">
  684. <img
  685. src="../../assets/icon/newIcons/isRight.png"
  686. alt=""
  687. />
  688. </div>
  689. </div>
  690. <div class="navBox">
  691. <div
  692. v-show="
  693. vChapterData[0].length > 0 || fileC[0].length > 0
  694. "
  695. style="padding: 10px 0 25px 0"
  696. >
  697. <div
  698. class="vedioTimeBox"
  699. v-for="(vitem, vindex) in vChapterData[0]"
  700. :key="vindex + '1'"
  701. >
  702. <div class="navListItem" v-if="vitem.type == 2">
  703. <div
  704. @click="lookVedio(vitem.url, vindex)"
  705. class="navText"
  706. :class="isClickNav == vindex ? 'isClickNav' : ''"
  707. >
  708. <span v-if="vitem.text">{{ vitem.text }}-</span
  709. >{{ vitem.name }}
  710. </div>
  711. <div class="downIcon" @click="downloadFile2(vitem)">
  712. <img
  713. src="../../assets/icon/newIcon/down.png"
  714. alt
  715. />
  716. </div>
  717. </div>
  718. <div class="navListItem" v-if="vitem.type == 6">
  719. <div
  720. @click="lookText(0, vindex)"
  721. class="navText"
  722. :class="isClickNav == vindex ? 'isClickNav' : ''"
  723. >
  724. {{ vitem.name }}.doc
  725. </div>
  726. <div
  727. class="downIcon"
  728. @click="checkFileFull1(vitem.type, vitem)"
  729. >
  730. <img
  731. src="../../assets/icon/newIcon/allScreen.png"
  732. alt
  733. />
  734. </div>
  735. </div>
  736. <div
  737. class="navListItem"
  738. v-if="vitem.type == 8 || vitem.type == 14"
  739. >
  740. <div
  741. @click="doUrl(vitem.url, vindex)"
  742. class="navText"
  743. :class="isClickNav == vindex ? 'isClickNav' : ''"
  744. >
  745. {{ vitem.title ? vitem.title : vitem.url }}
  746. </div>
  747. <div
  748. class="downIcon"
  749. @click="checkFileFull1(vitem.type, vitem)"
  750. >
  751. <img
  752. src="../../assets/icon/newIcon/allScreen.png"
  753. alt
  754. />
  755. </div>
  756. </div>
  757. <div class="navListItem" v-if="vitem.type == 3">
  758. <div
  759. @click="downFile(vitem, vindex)"
  760. class="navText"
  761. :class="isClickNav == vindex ? 'isClickNav' : ''"
  762. >
  763. <span v-if="vitem.text">{{ vitem.text }}-</span
  764. >{{ vitem.name }}
  765. </div>
  766. <div
  767. class="downIcon"
  768. @click="checkFileFull1(vitem.type, vitem)"
  769. >
  770. <img
  771. src="../../assets/icon/newIcon/allScreen.png"
  772. alt
  773. />
  774. </div>
  775. <div class="downIcon" @click="downloadFile2(vitem)">
  776. <img
  777. src="../../assets/icon/newIcon/down.png"
  778. alt
  779. />
  780. </div>
  781. </div>
  782. <div class="navListItem" v-if="vitem.type == 12">
  783. <div class="navText" @click="downloadFile2(vitem)">
  784. <span v-if="vitem.text">{{ vitem.text }}-</span
  785. >{{ vitem.name }}
  786. </div>
  787. <div
  788. class="downIcon"
  789. @click="checkFileFull1(vitem.type, vitem)"
  790. >
  791. <img
  792. src="../../assets/icon/newIcon/allScreen.png"
  793. alt
  794. />
  795. </div>
  796. <div class="downIcon" @click="downloadFile2(vitem)">
  797. <img
  798. src="../../assets/icon/newIcon/down.png"
  799. alt
  800. />
  801. </div>
  802. </div>
  803. <div class="navListItem" v-if="vitem.type == 13">
  804. <div
  805. class="navText"
  806. @click="checkPhoto(vitem, vindex)"
  807. :class="isClickNav == vindex ? 'isClickNav' : ''"
  808. >
  809. {{ vitem.name }}
  810. </div>
  811. <div class="downIcon" @click="downloadFile2(vitem)">
  812. <img
  813. src="../../assets/icon/newIcon/down.png"
  814. alt
  815. />
  816. </div>
  817. </div>
  818. </div>
  819. <div class="fileC_box" v-if="fileC[0].length > 0">
  820. <div class="fileC_title">以下文件不支持预览</div>
  821. <div
  822. class="vedioTimeBox"
  823. v-for="(vitem, vindex) in fileC[0]"
  824. :key="vindex + '1'"
  825. >
  826. <div class="navListItem" v-if="vitem.type == 12">
  827. <div class="navText" style="color: #acb4bf">
  828. <span v-if="vitem.text">{{ vitem.text }}-</span
  829. >{{ vitem.name }}
  830. </div>
  831. <div
  832. class="downIcon"
  833. @click="downloadFile2(vitem)"
  834. >
  835. <img
  836. src="../../assets/icon/newIcon/down.png"
  837. alt
  838. />
  839. </div>
  840. </div>
  841. </div>
  842. </div>
  843. </div>
  844. </div>
  845. </div>
  846. </div>
  847. </div>
  848. <div style="width: calc(100% - 315px)">
  849. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  850. <!-- <el-button
  851. type="primary"
  852. class="newButton"
  853. @click="checkFileFull(showType, pptImgUrl1)"
  854. >全屏查看</el-button
  855. >
  856. <el-button
  857. type="primary"
  858. class="newButton"
  859. @click="downloadFile(pptImgUrl1)"
  860. v-if="showType != 2"
  861. >文件下载</el-button
  862. > -->
  863. <el-button
  864. v-if="
  865. showType == 2 &&
  866. pptImgUrl1.indexOf(
  867. 'https://view.officeapps.live.com/op/view.aspx?src='
  868. ) == -1
  869. "
  870. type="primary"
  871. class="newButton"
  872. @click="openLine(pptImgUrl1)"
  873. >打开链接
  874. </el-button>
  875. </div>
  876. <!-- <div
  877. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  878. v-if="showType == 1"
  879. >
  880. <el-button
  881. type="primary"
  882. class="newButton"
  883. @click="checkFileFull(showType, text)"
  884. >全屏查看</el-button
  885. >
  886. </div> -->
  887. </div>
  888. </div>
  889. </div>
  890. <div class="student_body" v-resize="resize">
  891. <div
  892. class="vedioBox"
  893. :style="{
  894. borderRadius:
  895. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  896. .taskDetail == '' &&
  897. vChapterData[taskCount].length == 0 &&
  898. fileC[taskCount].length == 0
  899. ? '0 0 20px 20px'
  900. : '20px',
  901. }"
  902. v-if="
  903. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  904. .toolChoose[0].tool &&
  905. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  906. .toolChoose[0].tool.length > 0
  907. "
  908. >
  909. <div
  910. class="toolHeng2"
  911. style="position: relative"
  912. v-if="
  913. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  914. .toolChoose[0].tool &&
  915. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  916. .toolChoose[0].tool.length &&
  917. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  918. .toolChoose[0].tool.length > 0
  919. "
  920. >
  921. <div class="workNav">工作区</div>
  922. <div
  923. class="filebox"
  924. style="flex-wrap: nowrap"
  925. v-for="(tool, toolIndex) in chapInfoList[courseType]
  926. .chapterInfo[0].taskJson[taskCount].toolChoose"
  927. :key="toolIndex"
  928. >
  929. <div class="bzBox">
  930. <div class="yCss"></div>
  931. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  932. 工具{{ toolIndex + 1 }}
  933. </div>
  934. <div
  935. v-if="timeWorkList[toolIndex].length > 0"
  936. style="margin: 0 0 0 10px"
  937. >
  938. {{
  939. timeWorkList[toolIndex][0].time
  940. ? "时间:" + timeWorkList[toolIndex][0].time
  941. : ""
  942. }}
  943. </div>
  944. </div>
  945. <div class="toolBox">
  946. <div>
  947. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  948. :key="indexTool"-->
  949. <!-- <div class="iframeBox">
  950. <div
  951. class="addPoint isBorder"
  952. v-for="(tooC, toolCIndex) in tool.tool"
  953. :key="toolCIndex"
  954. >
  955. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  956. <div
  957. class="iframeName"
  958. >
  959. 电子白板
  960. </div>
  961. <iframe
  962. src="https://iwb.cocorobo.cn/"
  963. ref="whiteBoard"
  964. ></iframe>
  965. </div>
  966. </div>
  967. </div>-->
  968. <div class="noiframeBox">
  969. <div
  970. class="addPoint"
  971. v-for="(tooC, toolCIndex) in tool.tool"
  972. :key="toolCIndex"
  973. >
  974. <div v-if="tooC == 1">
  975. <img
  976. src="../../assets/icon/secondToolList/whiteBoard.png"
  977. alt
  978. @click="addTools(tooC, toolIndex, taskCount)"
  979. />
  980. <div style="margin: 5px 0">电子白板</div>
  981. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  982. style="position: absolute;right: 33px;top: -30px;">
  983. 投影
  984. </div>
  985. </div>
  986. <div v-if="tooC == 3">
  987. <img
  988. src="../../assets/icon/secondToolList/mindMapping.png"
  989. alt
  990. @click="addTools(tooC, toolIndex, taskCount)"
  991. />
  992. <div style="margin: 5px 0">思维导图</div>
  993. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  994. style="position: absolute;right: 33px;top: -30px;">
  995. 投影
  996. </div>
  997. </div>
  998. <div v-if="tooC == 6">
  999. <img
  1000. src="../../assets/icon/secondToolList/doc.png"
  1001. alt
  1002. @click="addTools(tooC, toolIndex, taskCount)"
  1003. />
  1004. <div style="margin: 5px 0">协同文档</div>
  1005. </div>
  1006. <div v-if="tooC == 7">
  1007. <img
  1008. src="../../assets/icon/secondToolList/mindNetwork.png"
  1009. alt
  1010. @click="addTools(tooC, toolIndex, taskCount)"
  1011. />
  1012. <div style="margin: 5px 0">思维网格</div>
  1013. <!-- && worksStudent[toolIndex].length>0 -->
  1014. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1015. style="position: absolute;right: 33px;top: -30px;">
  1016. 投影
  1017. </div>
  1018. </div>
  1019. <div v-if="tooC == 8">
  1020. <img
  1021. src="../../assets/icon/secondToolList/library.png"
  1022. alt
  1023. @click="addTools(tooC, toolIndex, taskCount)"
  1024. />
  1025. <div style="margin: 5px 0">素材库</div>
  1026. </div>
  1027. <div v-if="tooC == 17">
  1028. <img
  1029. src="../../assets/icon/secondToolList/library.png"
  1030. alt
  1031. @click="addTools(tooC, toolIndex, taskCount)"
  1032. />
  1033. <div style="margin: 5px 0">学习资料</div>
  1034. </div>
  1035. <div v-if="tooC == 2">
  1036. <img
  1037. @click="addTools(tooC, toolIndex, taskCount)"
  1038. src="../../assets/icon/secondToolList/note.png"
  1039. alt
  1040. />
  1041. <div style="margin: 5px 0">便签</div>
  1042. </div>
  1043. <div v-if="tooC == 4">
  1044. <img
  1045. @click="addTools(tooC, toolIndex, taskCount)"
  1046. src="../../assets/icon/thirdToolList/ask.png"
  1047. alt
  1048. />
  1049. <div style="margin: 5px 0">问卷调查</div>
  1050. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1051. style="position: absolute;right: 153px;top: -30px;">
  1052. 投影
  1053. </div>
  1054. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1055. style="position: absolute;right: 33px;top: -30px;">
  1056. 统计分析
  1057. </div>
  1058. </div>
  1059. <div v-if="tooC == 45">
  1060. <img
  1061. @click="addTools(tooC, toolIndex, taskCount)"
  1062. src="../../assets/icon/thirdToolList/choose.png"
  1063. alt
  1064. />
  1065. <div style="margin: 5px 0">选择题</div>
  1066. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1067. style="position: absolute;right: 33px;top: -30px;">
  1068. 投影
  1069. </div>
  1070. </div>
  1071. <!-- <div v-if="tooC == 5">
  1072. <img
  1073. @click="addTools(tooC, toolIndex, taskCount)"
  1074. src="../../assets/icon/thirdToolList/score.png"
  1075. alt
  1076. />
  1077. <div style="margin: 5px 0">量规评分</div>
  1078. </div> -->
  1079. <div v-if="tooC == 10">
  1080. <img
  1081. @click="addTools(tooC, toolIndex, taskCount)"
  1082. src="../../assets/icon/thirdToolList/time.png"
  1083. alt
  1084. />
  1085. <div style="margin: 5px 0">倒计时</div>
  1086. </div>
  1087. <div v-if="tooC == 15">
  1088. <img
  1089. @click="addTools(tooC, toolIndex, taskCount)"
  1090. src="../../assets/icon/thirdToolList/answer.png"
  1091. alt
  1092. />
  1093. <div style="margin: 5px 0">问答</div>
  1094. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1095. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1096. 投影
  1097. </div>
  1098. </div>
  1099. <div v-if="tooC == 26">
  1100. <img
  1101. @click="addTools(tooC, toolIndex, taskCount)"
  1102. src="../../assets/icon/thirdToolList/courseDesign.png"
  1103. alt
  1104. />
  1105. <div style="margin: 5px 0">课程设计</div>
  1106. </div>
  1107. <div v-if="tooC == 18">
  1108. <img
  1109. @click="addTools(tooC, toolIndex, taskCount)"
  1110. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1111. alt
  1112. />
  1113. <div style="margin: 5px 0">训练服务器</div>
  1114. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1115. style="position: absolute;right: 33px;top: -30px;">
  1116. 投影
  1117. </div>
  1118. </div>
  1119. <div v-if="tooC == 16">
  1120. <img
  1121. @click="addTools(tooC, toolIndex, taskCount)"
  1122. src="../../assets/icon/thirdToolList/work.png"
  1123. alt
  1124. />
  1125. <div style="margin: 5px 0">作业提交</div>
  1126. </div>
  1127. <div v-if="tooC == 50">
  1128. <img
  1129. @click="addTools(tooC, toolIndex, taskCount)"
  1130. src="../../assets/icon/thirdToolList/plwork.png"
  1131. alt
  1132. />
  1133. <div style="margin: 5px 0">批量上传</div>
  1134. </div>
  1135. <div v-if="tooC == 21">
  1136. <img
  1137. @click="addTools(tooC, toolIndex, taskCount)"
  1138. src="../../assets/icon/fourthToolList/program.png"
  1139. alt
  1140. />
  1141. <div style="margin: 5px 0">AIoT Blockly</div>
  1142. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1143. style="position: absolute;right: 33px;top: -30px;">
  1144. 投影
  1145. </div>
  1146. </div>
  1147. <!-- <div v-if="tooC == 22">
  1148. <img
  1149. @click="addTools(tooC, toolIndex, taskCount)"
  1150. src="../../assets/icon/fourthToolList/program.png"
  1151. alt
  1152. />
  1153. <div style="margin: 5px 0">AI体验</div>
  1154. </div> -->
  1155. <div v-if="tooC == 23">
  1156. <img
  1157. @click="addTools(tooC, toolIndex, taskCount)"
  1158. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1159. alt
  1160. />
  1161. <div style="margin: 5px 0">AI Python</div>
  1162. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1163. style="position: absolute;right: 33px;top: -30px;">
  1164. 投影
  1165. </div>
  1166. </div>
  1167. <div v-if="tooC == 24">
  1168. <img
  1169. @click="addTools(tooC, toolIndex, taskCount)"
  1170. src="../../assets/icon/fourthToolList/AIprogram.png"
  1171. alt
  1172. />
  1173. <div style="margin: 5px 0">AI Blockly</div>
  1174. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1175. style="position: absolute;right: 33px;top: -30px;">
  1176. 投影
  1177. </div>
  1178. </div>
  1179. <div v-if="tooC == 25">
  1180. <img
  1181. @click="addTools(tooC, toolIndex, taskCount)"
  1182. src="../../assets/icon/thirdToolList/evalua.png"
  1183. alt
  1184. />
  1185. <div style="margin: 5px 0">目标管理</div>
  1186. </div>
  1187. <div v-if="tooC == 31">
  1188. <img
  1189. @click="addTools(tooC, toolIndex, taskCount)"
  1190. src="../../assets/icon/secondToolList/networkPanel.png"
  1191. alt
  1192. />
  1193. <div style="margin: 5px 0">数学画板</div>
  1194. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1195. style="position: absolute;right: 33px;top: -30px;">
  1196. 投影
  1197. </div>
  1198. </div>
  1199. <div v-if="tooC == 28">
  1200. <img
  1201. @click="addTools(tooC, toolIndex, taskCount)"
  1202. src="../../assets/icon/secondToolList/translation.png"
  1203. alt
  1204. />
  1205. <div style="margin: 5px 0">翻译</div>
  1206. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1207. style="position: absolute;right: 33px;top: -30px;">
  1208. 投影
  1209. </div>
  1210. </div>
  1211. <div v-if="tooC == 37">
  1212. <img
  1213. @click="addTools(tooC, toolIndex, taskCount)"
  1214. src="../../assets/icon/secondToolList/mohe.png"
  1215. alt
  1216. />
  1217. <div style="margin: 5px 0">魔盒识字</div>
  1218. </div>
  1219. <div v-if="tooC == 38">
  1220. <img
  1221. @click="addTools(tooC, toolIndex, taskCount)"
  1222. src="../../assets/icon/secondToolList/24game.png"
  1223. alt
  1224. />
  1225. <div style="margin: 5px 0">24点</div>
  1226. </div>
  1227. <div v-if="tooC == 39">
  1228. <img
  1229. @click="addTools(tooC, toolIndex, taskCount)"
  1230. src="../../assets/icon/secondToolList/GeoGebra.png"
  1231. alt
  1232. />
  1233. <div style="margin: 5px 0">GeoGebra</div>
  1234. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1235. style="position: absolute;right: 33px;top: -30px;">
  1236. 投影
  1237. </div>
  1238. </div>
  1239. <div v-if="tooC == 32">
  1240. <img
  1241. @click="addTools(tooC, toolIndex, taskCount)"
  1242. src="../../assets/icon/thirdToolList/code.png"
  1243. alt
  1244. />
  1245. <div style="margin: 5px 0">源码编辑</div>
  1246. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1247. style="position: absolute;right: 153px;top: -42px;">
  1248. 投影
  1249. </div>
  1250. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1251. style="position: absolute;left: 110px;bottom: 30px;">
  1252. 上传文件
  1253. <input type="file" accept="*" style="display: none"
  1254. @change="beforeUpload1($event, 7, toolIndex)" />
  1255. </div> -->
  1256. </div>
  1257. <div v-if="tooC == 40">
  1258. <img
  1259. @click="addTools(tooC, toolIndex, taskCount)"
  1260. src="../../assets/icon/secondToolList/eval.png"
  1261. alt
  1262. />
  1263. <div style="margin: 5px 0">个人评价</div>
  1264. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1265. style="position: absolute;right: 33px;top: -30px;">
  1266. 投影
  1267. </div>
  1268. </div>
  1269. <div v-if="tooC == 41">
  1270. <img
  1271. @click="addTools(tooC, toolIndex, taskCount)"
  1272. src="../../assets/icon/thirdToolList/select.png"
  1273. alt
  1274. />
  1275. <div style="margin: 5px 0">选择匹配</div>
  1276. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1277. style="position: absolute;right: 33px;top: -30px;">
  1278. 投影
  1279. </div>
  1280. </div>
  1281. <div v-if="tooC == 44">
  1282. <img
  1283. @click="addTools(tooC, toolIndex, taskCount)"
  1284. src="../../assets/icon/thirdToolList/hanClass.png"
  1285. alt
  1286. />
  1287. <div style="margin: 5px 0">汉字宫</div>
  1288. </div>
  1289. <div v-if="tooC == 47">
  1290. <img
  1291. @click="addTools(tooC, toolIndex, taskCount)"
  1292. src="../../assets/icon/fourthToolList/conSentences.png"
  1293. alt
  1294. />
  1295. <div style="margin: 5px 0">排序</div>
  1296. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1297. style="position: absolute;right: 33px;top: -30px;">
  1298. 投影
  1299. </div>
  1300. </div>
  1301. <div v-if="tooC == 48">
  1302. <img
  1303. @click="addTools(tooC, toolIndex, taskCount)"
  1304. src="../../assets/icon/fourthToolList/table.png"
  1305. alt
  1306. />
  1307. <div style="margin: 5px 0">表格</div>
  1308. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1309. style="position: absolute;right: 33px;top: -30px;">
  1310. 投影
  1311. </div>
  1312. </div>
  1313. <div v-if="tooC == 52">
  1314. <img
  1315. @click="addTools(tooC, toolIndex, taskCount)"
  1316. src="../../assets/icon/fourthToolList/text.png"
  1317. alt
  1318. />
  1319. <div style="margin: 5px 0">文档</div>
  1320. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1321. style="position: absolute;right: 33px;top: -30px;">
  1322. 投影
  1323. </div>
  1324. </div>
  1325. <div v-if="tooC == 49">
  1326. <img
  1327. @click="addTools(tooC, toolIndex, taskCount)"
  1328. src="../../assets/icon/fourthToolList/group.png"
  1329. alt
  1330. />
  1331. <div style="margin: 5px 0">学生分组</div>
  1332. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1333. style="position: absolute;right: 33px;top: -30px;">
  1334. 投影
  1335. </div>
  1336. </div>
  1337. <div v-if="tooC == 57">
  1338. <img
  1339. @click="addTools(tooC, toolIndex, taskCount)"
  1340. src="../../assets/icon/fourthToolList/cocopi.png"
  1341. alt
  1342. />
  1343. <div style="margin: 5px 0">CocoPi</div>
  1344. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1345. style="position: absolute;right: 33px;top: -30px;">
  1346. 投影
  1347. </div>
  1348. </div>
  1349. <div v-if="tooC == 58">
  1350. <img
  1351. @click="addTools(tooC, toolIndex, taskCount)"
  1352. src="../../assets/icon/fourthToolList/car.png"
  1353. alt
  1354. />
  1355. <div style="margin: 5px 0">模拟驾驶</div>
  1356. </div>
  1357. <div v-if="tooC == 59">
  1358. <img
  1359. @click="addTools(tooC, toolIndex, taskCount)"
  1360. src="../../assets/icon/fourthToolList/lineSearch.png"
  1361. alt
  1362. />
  1363. <div style="margin: 5px 0">路径搜索</div>
  1364. </div>
  1365. <div v-if="tooC == 60">
  1366. <img
  1367. @click="addTools(tooC, toolIndex, taskCount)"
  1368. src="../../assets/icon/fourthToolList/deepLearning.png"
  1369. alt
  1370. />
  1371. <div style="margin: 5px 0">深度学习</div>
  1372. </div>
  1373. <div v-if="tooC == 61">
  1374. <img
  1375. @click="addTools(tooC, toolIndex, taskCount)"
  1376. src="../../assets/icon/fourthToolList/allHistory.png"
  1377. alt
  1378. />
  1379. <div style="margin: 5px 0">全历史</div>
  1380. </div>
  1381. <div v-if="tooC == 62">
  1382. <img
  1383. @click="addTools(tooC, toolIndex, taskCount)"
  1384. src="../../assets/icon/fourthToolList/interVideo.png"
  1385. alt
  1386. />
  1387. <div style="margin: 5px 0">交互视频</div>
  1388. </div>
  1389. <div v-if="tooC == 63">
  1390. <img
  1391. @click="addTools(tooC, toolIndex, taskCount)"
  1392. src="../../assets/icon/fourthToolList/Wood.png"
  1393. alt
  1394. />
  1395. <div style="margin: 5px 0">海龟编程</div>
  1396. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1397. style="position: absolute;right: 33px;top: -30px;">
  1398. 投影
  1399. </div>
  1400. </div>
  1401. <div v-if="tooC == 71">
  1402. <img
  1403. @click="addTools(tooC, toolIndex, taskCount)"
  1404. src="../../assets/icon/fourthToolList/chatgpt.png"
  1405. alt
  1406. />
  1407. <div style="margin: 5px 0">AI智能体</div>
  1408. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1409. style="position: absolute;right: 33px;top: -30px;">
  1410. 投影
  1411. </div>
  1412. </div>
  1413. <div v-if="tooC == 72">
  1414. <img
  1415. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1416. @click="addTools(tooC, toolIndex, taskCount)"
  1417. :src="tool.appJson.json.icon"
  1418. alt
  1419. />
  1420. <img
  1421. v-else
  1422. @click="addTools(tooC, toolIndex, taskCount)"
  1423. src="../../assets/icon/firstToolList/appStore.png"
  1424. alt
  1425. />
  1426. <div style="margin: 5px 0">{{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}</div>
  1427. </div>
  1428. <div v-if="tooC == 65">
  1429. <img
  1430. @click="addTools(tooC, toolIndex, taskCount)"
  1431. src="../../assets/icon/firstToolList/pickPeople.png"
  1432. alt
  1433. />
  1434. <div style="margin: 5px 0">挑人</div>
  1435. </div>
  1436. <div v-if="tooC == 66">
  1437. <img
  1438. @click="addTools(tooC, toolIndex, taskCount)"
  1439. src="../../assets/icon/secondToolList/formulaEdi.png"
  1440. alt
  1441. />
  1442. <div style="margin: 5px 0">公式编辑</div>
  1443. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1444. style="position: absolute;right: 33px;top: -30px;">
  1445. 投影
  1446. </div>
  1447. </div>
  1448. <div v-if="tooC == 67">
  1449. <img
  1450. @click="addTools(tooC, toolIndex, taskCount)"
  1451. src="../../assets/icon/secondToolList/molStr.png"
  1452. alt
  1453. />
  1454. <div style="margin: 5px 0">分子结构</div>
  1455. </div>
  1456. <div v-if="tooC == 68">
  1457. <img
  1458. @click="addTools(tooC, toolIndex, taskCount)"
  1459. src="../../assets/icon/secondToolList/timeAxis.png"
  1460. alt
  1461. />
  1462. <div style="margin: 5px 0">时间轴</div>
  1463. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1464. style="position: absolute;right: 33px;top: -30px;">
  1465. 投影
  1466. </div> -->
  1467. </div>
  1468. <div v-if="tooC == 69">
  1469. <img
  1470. @click="addTools(tooC, toolIndex, taskCount)"
  1471. src="../../assets/icon/secondToolList/english.png"
  1472. alt
  1473. />
  1474. <div style="margin: 5px 0">英语写作</div>
  1475. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1476. style="position: absolute;right: 33px;top: -30px;">
  1477. 投影
  1478. </div>
  1479. </div>
  1480. <div v-if="tooC == 70">
  1481. <img
  1482. @click="addTools(tooC, toolIndex, taskCount)"
  1483. src="../../assets/icon/thirdToolList/englishVoice.png"
  1484. alt
  1485. />
  1486. <div style="margin: 5px 0">英语口语</div>
  1487. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1488. style="position: absolute;right: 33px;top: -30px;">
  1489. 投影
  1490. </div>
  1491. </div>
  1492. </div>
  1493. </div>
  1494. </div>
  1495. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1496. <!-- <div class="toolTitle">工具描述</div> -->
  1497. <!-- @click.stop="updateToolDetail(toolIndex, 2)" 点击开启修改-->
  1498. <div style="height:100%;"
  1499. v-html="contentConvent(tool.toolDetail)"
  1500. v-if="toolDetailIndex != toolIndex"
  1501. ></div>
  1502. <div v-else @click.stop="" style="height:100%;">
  1503. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1504. </div>
  1505. </div>
  1506. <el-button
  1507. type="primary"
  1508. v-if="tool.tool[0] == 32"
  1509. style="position: absolute; right: 30px; top: -45px"
  1510. @click="addImg($event)"
  1511. >上传作业<input
  1512. type="file"
  1513. accept="*"
  1514. style="display: none"
  1515. @change="beforeUpload1($event, 7, toolIndex)"
  1516. /></el-button>
  1517. <el-button
  1518. type="primary"
  1519. v-if="tool.tool[0] == 15"
  1520. style="position: absolute; right: 30px; top: -45px"
  1521. @click="openWordCloud(toolIndex)"
  1522. >生成词云</el-button
  1523. >
  1524. <el-button
  1525. type="primary"
  1526. v-if="
  1527. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1528. "
  1529. style="position: absolute; right: 30px; top: -45px"
  1530. @click="uploadWorks(toolIndex)"
  1531. >导出作业</el-button
  1532. >
  1533. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1534. position: absolute;
  1535. right: 30px;
  1536. transform: translateY(-130%);
  1537. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1538. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1539. </div>
  1540. <div
  1541. v-if="
  1542. tType &&
  1543. tType == 2 &&
  1544. !sIsOpen &&
  1545. tool.tool.indexOf(16) != -1
  1546. "
  1547. class="worksBox"
  1548. >
  1549. <div
  1550. class="zuoyeYulan"
  1551. v-if="workStudent[toolIndex].length > 0"
  1552. >
  1553. <span class="worksTitle">作业预览</span>
  1554. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1555. </div>
  1556. <div
  1557. class="worksDetailBox"
  1558. v-if="workStudent[toolIndex].length > 0"
  1559. >
  1560. <div
  1561. class="works"
  1562. style="
  1563. width: 200px;
  1564. height: 140px;
  1565. margin: 10px 10px 10px 0;
  1566. box-shadow: 0 0 6px 1px #dfdada;
  1567. "
  1568. v-for="(w, wIndex) in workStudent[toolIndex]"
  1569. :key="wIndex"
  1570. >
  1571. <div class="workImg" v-if="w.type == 0">
  1572. <img
  1573. :src="w.works"
  1574. @click="previewImg(w.works,w)"
  1575. alt
  1576. />
  1577. <div
  1578. class="answerScore"
  1579. v-if="w.score"
  1580. @click.stop="openScore(w)"
  1581. :class="{
  1582. rightW:
  1583. w.userid == userid || tType == 1 || tType == 4,
  1584. }"
  1585. >
  1586. {{ JSON.parse(w.score).wScore }}分
  1587. </div>
  1588. <div
  1589. class="answerScore"
  1590. @click.stop="openScore(w)"
  1591. v-else-if="courseDetail.userid == userid"
  1592. :class="{
  1593. rightW:
  1594. w.userid == userid || tType == 1 || tType == 4,
  1595. }"
  1596. >
  1597. 评分
  1598. </div>
  1599. <img
  1600. class="deleteImg"
  1601. src="../../assets/deleteworks.png"
  1602. v-if="
  1603. w.userid == userid || tType == 1 || tType == 4
  1604. "
  1605. @click.stop="deleteWorks(w.wid)"
  1606. alt
  1607. />
  1608. </div>
  1609. <div class="workImg" v-if="w.type == 1">
  1610. <img :src="word" @click="openFile(w.works)" alt />
  1611. <div
  1612. class="answerScore"
  1613. v-if="w.score"
  1614. @click.stop="openScore(w)"
  1615. :class="{
  1616. rightW:
  1617. w.userid == userid || tType == 1 || tType == 4,
  1618. }"
  1619. >
  1620. {{ JSON.parse(w.score).wScore }}分
  1621. </div>
  1622. <div
  1623. class="answerScore"
  1624. @click.stop="openScore(w)"
  1625. v-else-if="courseDetail.userid == userid"
  1626. :class="{
  1627. rightW:
  1628. w.userid == userid || tType == 1 || tType == 4,
  1629. }"
  1630. >
  1631. 评分
  1632. </div>
  1633. <img
  1634. class="deleteImg"
  1635. src="../../assets/deleteworks.png"
  1636. v-if="
  1637. w.userid == userid || tType == 1 || tType == 4
  1638. "
  1639. @click.stop="deleteWorks(w.wid)"
  1640. alt
  1641. />
  1642. </div>
  1643. <div class="workImg" v-if="w.type == 3">
  1644. <img
  1645. style="cursor: pointer"
  1646. :src="video"
  1647. @click="openVideo(w)"
  1648. alt
  1649. />
  1650. <div
  1651. class="answerScore"
  1652. v-if="w.score"
  1653. @click.stop="openScore(w)"
  1654. :class="{
  1655. rightW:
  1656. w.userid == userid || tType == 1 || tType == 4,
  1657. }"
  1658. >
  1659. {{ JSON.parse(w.score).wScore }}分
  1660. </div>
  1661. <div
  1662. class="answerScore"
  1663. @click.stop="openScore(w)"
  1664. v-else-if="courseDetail.userid == userid"
  1665. :class="{
  1666. rightW:
  1667. w.userid == userid || tType == 1 || tType == 4,
  1668. }"
  1669. >
  1670. 评分
  1671. </div>
  1672. <img
  1673. class="deleteImg"
  1674. src="../../assets/deleteworks.png"
  1675. v-if="
  1676. w.userid == userid || tType == 1 || tType == 4
  1677. "
  1678. @click.stop="deleteWorks(w.wid)"
  1679. alt
  1680. />
  1681. </div>
  1682. <div class="workImg" v-if="w.type == 12">
  1683. <img
  1684. style="cursor: pointer"
  1685. :src="word2"
  1686. @click="downloadFile(w.works)"
  1687. alt
  1688. />
  1689. <div
  1690. class="answerScore"
  1691. v-if="w.score"
  1692. @click.stop="openScore(w)"
  1693. :class="{
  1694. rightW:
  1695. w.userid == userid || tType == 1 || tType == 4,
  1696. }"
  1697. >
  1698. {{ JSON.parse(w.score).wScore }}分
  1699. </div>
  1700. <div
  1701. class="answerScore"
  1702. @click.stop="openScore(w)"
  1703. v-else-if="courseDetail.userid == userid"
  1704. :class="{
  1705. rightW:
  1706. w.userid == userid || tType == 1 || tType == 4,
  1707. }"
  1708. >
  1709. 评分
  1710. </div>
  1711. <img
  1712. class="deleteImg"
  1713. src="../../assets/deleteworks.png"
  1714. v-if="
  1715. w.userid == userid || tType == 1 || tType == 4
  1716. "
  1717. @click.stop="deleteWorks(w.wid)"
  1718. alt
  1719. />
  1720. </div>
  1721. <div class="worksName">
  1722. <div>{{ w.sName }}</div>
  1723. </div>
  1724. </div>
  1725. </div>
  1726. </div>
  1727. <div
  1728. v-if="
  1729. tType &&
  1730. tType == 2 &&
  1731. !sIsOpen &&
  1732. tool.tool.indexOf(32) != -1
  1733. "
  1734. class="worksBox"
  1735. >
  1736. <div
  1737. class="zuoyeYulan"
  1738. v-if="workStudent[toolIndex].length > 0"
  1739. >
  1740. <span class="worksTitle">作业预览</span>
  1741. </div>
  1742. <div
  1743. class="worksDetailBox"
  1744. v-if="workStudent[toolIndex].length > 0"
  1745. >
  1746. <div
  1747. class="works"
  1748. style="
  1749. width: 200px;
  1750. height: 140px;
  1751. margin: 10px 10px 10px 0;
  1752. box-shadow: 0 0 6px 1px #dfdada;
  1753. "
  1754. v-for="(w, wIndex) in workStudent[toolIndex]"
  1755. :key="wIndex"
  1756. >
  1757. <div class="workImg">
  1758. <img
  1759. :src="word2"
  1760. @click="downloadFile(w.works)"
  1761. alt
  1762. />
  1763. <div
  1764. class="answerScore"
  1765. v-if="w.score"
  1766. @click.stop="openScore(w)"
  1767. :class="{
  1768. rightW:
  1769. w.userid == userid || tType == 1 || tType == 4,
  1770. }"
  1771. >
  1772. {{ JSON.parse(w.score).wScore }}分
  1773. </div>
  1774. <div
  1775. class="answerScore"
  1776. @click.stop="openScore(w)"
  1777. v-else-if="courseDetail.userid == userid"
  1778. :class="{
  1779. rightW:
  1780. w.userid == userid || tType == 1 || tType == 4,
  1781. }"
  1782. >
  1783. 评分
  1784. </div>
  1785. <img
  1786. class="deleteImg"
  1787. src="../../assets/deleteworks.png"
  1788. v-if="
  1789. w.userid == userid || tType == 1 || tType == 4
  1790. "
  1791. @click.stop="deleteWorks(w.wid)"
  1792. alt
  1793. />
  1794. </div>
  1795. <div class="worksName">
  1796. <div>{{ w.sName }}</div>
  1797. </div>
  1798. </div>
  1799. </div>
  1800. </div>
  1801. <div
  1802. v-if="
  1803. tType &&
  1804. tType == 2 &&
  1805. !sIsOpen &&
  1806. tool.tool.indexOf(57) != -1
  1807. "
  1808. class="worksBox"
  1809. >
  1810. <div
  1811. class="zuoyeYulan"
  1812. v-if="workStudent[toolIndex].length > 0"
  1813. >
  1814. <span class="worksTitle">作业预览</span>
  1815. </div>
  1816. <div
  1817. class="worksDetailBox"
  1818. v-if="workStudent[toolIndex].length > 0"
  1819. >
  1820. <div
  1821. class="works"
  1822. style="
  1823. width: 200px;
  1824. height: 140px;
  1825. margin: 10px 10px 10px 0;
  1826. box-shadow: 0 0 6px 1px #dfdada;
  1827. "
  1828. v-for="(w, wIndex) in workStudent[toolIndex]"
  1829. :key="wIndex"
  1830. >
  1831. <div class="workImg">
  1832. <img
  1833. :src="word2"
  1834. @click="downloadFile(w.works)"
  1835. v-if="w.type == 12"
  1836. alt
  1837. />
  1838. <img
  1839. :src="word2"
  1840. @click="
  1841. openCocoPi(57, toolIndex, w.userid, w.sName)
  1842. "
  1843. v-else-if="w.type == 15"
  1844. alt
  1845. />
  1846. <div
  1847. class="answerScore"
  1848. v-if="w.score"
  1849. @click.stop="openScore(w)"
  1850. :class="{
  1851. rightW:
  1852. w.userid == userid || tType == 1 || tType == 4,
  1853. }"
  1854. >
  1855. {{ JSON.parse(w.score).wScore }}分
  1856. </div>
  1857. <div
  1858. class="answerScore"
  1859. @click.stop="openScore(w)"
  1860. v-else-if="courseDetail.userid == userid"
  1861. :class="{
  1862. rightW:
  1863. w.userid == userid || tType == 1 || tType == 4,
  1864. }"
  1865. >
  1866. 评分
  1867. </div>
  1868. <img
  1869. class="deleteImg"
  1870. src="../../assets/deleteworks.png"
  1871. v-if="
  1872. w.userid == userid || tType == 1 || tType == 4
  1873. "
  1874. @click.stop="deleteWorks(w.wid)"
  1875. alt
  1876. />
  1877. </div>
  1878. <div class="worksName">
  1879. <div>{{ w.sName }}</div>
  1880. </div>
  1881. </div>
  1882. </div>
  1883. </div>
  1884. <div
  1885. v-if="
  1886. tType &&
  1887. tType == 2 &&
  1888. !sIsOpen &&
  1889. tool.tool.indexOf(4) != -1
  1890. "
  1891. class="worksBox"
  1892. >
  1893. <div
  1894. class="zuoyeYulan"
  1895. v-if="workStudent[toolIndex].length > 0"
  1896. >
  1897. <span class="worksTitle">作业预览</span>
  1898. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1899. </div>
  1900. <div
  1901. class="worksDetailBox"
  1902. v-if="workStudent[toolIndex].length > 0"
  1903. >
  1904. <div
  1905. class="isWorksName2"
  1906. v-for="(w, wIndex) in workStudent[toolIndex]"
  1907. :key="wIndex"
  1908. @click="
  1909. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1910. "
  1911. >
  1912. {{ w.sName }}
  1913. <img
  1914. class="deleteImg deleteImg2"
  1915. src="../../assets/deleteworks.png"
  1916. v-if="w.userid == userid || tType == 1 || tType == 4"
  1917. @click.stop="deleteWorks(w.wid)"
  1918. alt
  1919. />
  1920. </div>
  1921. <!-- <div
  1922. class="works"
  1923. style="
  1924. width: 200px;
  1925. height: 140px;
  1926. border-radius: 10px;
  1927. box-shadow: 0 0 6px 1px #dfdada;
  1928. overflow: hidden;
  1929. "
  1930. v-for="(w, wIndex) in workStudent[toolIndex]"
  1931. :key="wIndex"
  1932. >
  1933. <div class="workImg">
  1934. <img
  1935. src="../../assets/icon/works/noImg.png"
  1936. @click="
  1937. openTools(
  1938. 4,
  1939. toolIndex,
  1940. taskCount,
  1941. w.works,
  1942. w.sName
  1943. )
  1944. "
  1945. alt
  1946. />
  1947. </div>
  1948. <div class="worksName">
  1949. <div>{{ w.sName }}</div>
  1950. <div>{{ w.time }}</div>
  1951. </div>
  1952. </div> -->
  1953. </div>
  1954. </div>
  1955. <div
  1956. v-if="
  1957. tType &&
  1958. ((tType == 2 && sIsOpen == true) ||
  1959. tType == 1 ||
  1960. tType == 4) &&
  1961. tool.tool.indexOf(62) != -1
  1962. "
  1963. class="worksBox"
  1964. >
  1965. <div
  1966. class="zuoyeYulan"
  1967. v-if="
  1968. worksStudent.length &&
  1969. worksStudent[toolIndex].length > 0
  1970. "
  1971. >
  1972. <div class="worksTop">
  1973. <div>作业预览</div>
  1974. <div
  1975. class="corOpen"
  1976. @click="contract(toolIndex)"
  1977. v-if="
  1978. (isCloseList[toolIndex].isCloseBoolean) &&
  1979. isCloseList[toolIndex].isClose == 0
  1980. "
  1981. >
  1982. 折叠
  1983. </div>
  1984. <div
  1985. class="corOpen"
  1986. @click="contract(toolIndex)"
  1987. v-if="isCloseList[toolIndex].isClose == 1"
  1988. >
  1989. 展开
  1990. </div>
  1991. </div>
  1992. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1993. </div>
  1994. <div>
  1995. <div
  1996. :id="'tool-' + toolIndex"
  1997. :style="{
  1998. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1999. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2000. }"
  2001. class="worksDetailBox"
  2002. v-if="
  2003. worksStudent.length &&
  2004. worksStudent[toolIndex].length > 0
  2005. "
  2006. >
  2007. <div
  2008. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2009. :key="wIndex"
  2010. class="isWorksName2"
  2011. @click="
  2012. openTools(
  2013. 62,
  2014. toolIndex,
  2015. taskCount,
  2016. w.works,
  2017. w.sName
  2018. )
  2019. "
  2020. >
  2021. {{ w.sName }}
  2022. <img
  2023. class="deleteImg deleteImg2"
  2024. src="../../assets/deleteworks.png"
  2025. v-if="
  2026. w.userid == userid || tType == 1 || tType == 4
  2027. "
  2028. @click.stop="deleteWorks(w.wid)"
  2029. alt
  2030. />
  2031. </div>
  2032. </div>
  2033. </div>
  2034. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2035. 未提交
  2036. </div>
  2037. <div
  2038. class="noWorksS"
  2039. v-if="noWorksS && noWorksS[toolIndex].length"
  2040. >
  2041. <div
  2042. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2043. :key="sIndex"
  2044. class="noWorksName"
  2045. >
  2046. <el-tooltip effect="dark" :content="s.student" placement="top">
  2047. <span>{{ s.student }}</span>
  2048. </el-tooltip>
  2049. </div>
  2050. </div>
  2051. </div>
  2052. <div
  2053. v-if="
  2054. tType &&
  2055. tType == 2 &&
  2056. !sIsOpen &&
  2057. tool.tool.indexOf(62) != -1
  2058. "
  2059. class="worksBox"
  2060. >
  2061. <div
  2062. class="zuoyeYulan"
  2063. v-if="workStudent[toolIndex].length > 0"
  2064. >
  2065. <span class="worksTitle">作业预览</span>
  2066. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2067. </div>
  2068. <div
  2069. class="worksDetailBox"
  2070. v-if="workStudent[toolIndex].length > 0"
  2071. >
  2072. <div
  2073. class="isWorksName2"
  2074. v-for="(w, wIndex) in workStudent[toolIndex]"
  2075. :key="wIndex"
  2076. @click="
  2077. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2078. "
  2079. >
  2080. {{ w.sName }}
  2081. <img
  2082. class="deleteImg deleteImg2"
  2083. src="../../assets/deleteworks.png"
  2084. v-if="w.userid == userid || tType == 1 || tType == 4"
  2085. @click.stop="deleteWorks(w.wid)"
  2086. alt
  2087. />
  2088. </div>
  2089. </div>
  2090. </div>
  2091. <div
  2092. v-if="
  2093. tType &&
  2094. tType == 2 &&
  2095. !sIsOpen &&
  2096. tool.tool.indexOf(45) != -1
  2097. "
  2098. class="worksBox"
  2099. >
  2100. <div
  2101. class="zuoyeYulan"
  2102. v-if="workStudent[toolIndex].length > 0"
  2103. >
  2104. <span class="worksTitle">作业预览</span>
  2105. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2106. </div>
  2107. <div
  2108. class="worksDetailBox"
  2109. v-if="workStudent[toolIndex].length > 0"
  2110. >
  2111. <div
  2112. class="isWorksName2"
  2113. v-for="(w, wIndex) in workStudent[toolIndex]"
  2114. :key="wIndex"
  2115. @click="
  2116. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2117. "
  2118. >
  2119. {{ w.sName }}
  2120. <img
  2121. class="deleteImg deleteImg2"
  2122. src="../../assets/deleteworks.png"
  2123. v-if="w.userid == userid || tType == 1 || tType == 4"
  2124. @click.stop="deleteWorks(w.wid)"
  2125. alt
  2126. />
  2127. </div>
  2128. </div>
  2129. </div>
  2130. <div
  2131. v-if="
  2132. tType &&
  2133. tType == 2 &&
  2134. !sIsOpen &&
  2135. tool.tool.indexOf(69) != -1
  2136. "
  2137. class="worksBox"
  2138. >
  2139. <div
  2140. class="zuoyeYulan"
  2141. v-if="workStudent[toolIndex].length > 0"
  2142. >
  2143. <span class="worksTitle">作业预览</span>
  2144. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2145. </div>
  2146. <div
  2147. class="worksDetailBox"
  2148. v-if="workStudent[toolIndex].length > 0"
  2149. >
  2150. <div
  2151. class="isWorksName2"
  2152. v-for="(w, wIndex) in workStudent[toolIndex]"
  2153. :key="wIndex"
  2154. @click="
  2155. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2156. "
  2157. >
  2158. {{ w.sName }}
  2159. <img
  2160. class="deleteImg deleteImg2"
  2161. src="../../assets/deleteworks.png"
  2162. v-if="w.userid == userid || tType == 1 || tType == 4"
  2163. @click.stop="deleteWorks(w.wid)"
  2164. alt
  2165. />
  2166. </div>
  2167. </div>
  2168. </div>
  2169. <div
  2170. v-if="
  2171. tType &&
  2172. tType == 2 &&
  2173. !sIsOpen &&
  2174. tool.tool.indexOf(15) != -1
  2175. "
  2176. class="worksBox"
  2177. >
  2178. <div
  2179. class="zuoyeYulan"
  2180. v-if="workStudent[toolIndex].length > 0"
  2181. >
  2182. <span class="worksTitle">作业预览</span>
  2183. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2184. </div>
  2185. <div
  2186. class="worksDetailBox"
  2187. v-if="workStudent[toolIndex].length > 0"
  2188. >
  2189. <div
  2190. class="works"
  2191. v-for="(w, wIndex) in workStudent[toolIndex]"
  2192. :key="wIndex"
  2193. >
  2194. <div class="workImg">
  2195. <!-- <img
  2196. src="../../assets/icon/works/noImg.png"
  2197. @click="openTools(15, toolIndex, taskCount, w.works)"
  2198. alt=""
  2199. />-->
  2200. <div class="answerBg">
  2201. <!-- <div>{{ w.sName }}</div> -->
  2202. <el-tooltip
  2203. class="item"
  2204. effect="light"
  2205. :content="JSON.parse(w.works)[0].answer"
  2206. placement="top"
  2207. >
  2208. <div class="answerContent">
  2209. {{ JSON.parse(w.works)[0].answer }}
  2210. </div>
  2211. </el-tooltip>
  2212. <div
  2213. class="answerScore"
  2214. v-if="w.score"
  2215. @click.stop="openScore(w)"
  2216. :class="{
  2217. rightW:
  2218. w.userid == userid ||
  2219. tType == 1 ||
  2220. tType == 4,
  2221. }"
  2222. >
  2223. {{ JSON.parse(w.score).wScore }}分
  2224. </div>
  2225. <div
  2226. class="answerScore"
  2227. @click.stop="openScore(w)"
  2228. v-else-if="courseDetail.userid == userid"
  2229. :class="{
  2230. rightW:
  2231. w.userid == userid ||
  2232. tType == 1 ||
  2233. tType == 4,
  2234. }"
  2235. >
  2236. 评分
  2237. </div>
  2238. <img
  2239. class="deleteImg"
  2240. src="../../assets/deleteworks.png"
  2241. v-if="
  2242. w.userid == userid || tType == 1 || tType == 4
  2243. "
  2244. @click.stop="deleteWorks(w.wid)"
  2245. alt
  2246. />
  2247. </div>
  2248. <div class="comment">
  2249. <div class="worksName">
  2250. <div>{{ w.sName }}</div>
  2251. </div>
  2252. </div>
  2253. </div>
  2254. </div>
  2255. </div>
  2256. </div>
  2257. <div
  2258. v-if="
  2259. tType &&
  2260. tType == 2 &&
  2261. !sIsOpen &&
  2262. tool.tool.indexOf(1) != -1
  2263. "
  2264. class="worksBox"
  2265. >
  2266. <div
  2267. class="zuoyeYulan"
  2268. v-if="workStudent[toolIndex].length > 0"
  2269. >
  2270. <span class="worksTitle">作业预览</span>
  2271. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2272. </div>
  2273. <div
  2274. class="worksDetailBox"
  2275. v-if="workStudent[toolIndex].length > 0"
  2276. >
  2277. <div
  2278. class="works"
  2279. style="
  2280. width: 200px;
  2281. height: 140px;
  2282. margin: 10px 10px 10px 0;
  2283. box-shadow: 0 0 6px 1px #dfdada;
  2284. "
  2285. v-for="(w, wIndex) in workStudent[toolIndex]"
  2286. :key="wIndex"
  2287. >
  2288. <div class="workImg">
  2289. <img
  2290. :src="w.works"
  2291. @click="previewImg(w.works,w)"
  2292. alt
  2293. />
  2294. <div
  2295. class="answerScore"
  2296. v-if="w.score"
  2297. @click.stop="openScore(w)"
  2298. :class="{
  2299. rightW:
  2300. w.userid == userid || tType == 1 || tType == 4,
  2301. }"
  2302. >
  2303. {{ JSON.parse(w.score).wScore }}分
  2304. </div>
  2305. <div
  2306. class="answerScore"
  2307. @click.stop="openScore(w)"
  2308. v-else-if="courseDetail.userid == userid"
  2309. :class="{
  2310. rightW:
  2311. w.userid == userid || tType == 1 || tType == 4,
  2312. }"
  2313. >
  2314. 评分
  2315. </div>
  2316. <img
  2317. class="deleteImg"
  2318. src="../../assets/deleteworks.png"
  2319. v-if="
  2320. w.userid == userid || tType == 1 || tType == 4
  2321. "
  2322. @click.stop="deleteWorks(w.wid)"
  2323. alt
  2324. />
  2325. </div>
  2326. <div class="worksName">
  2327. <div>{{ w.sName }}</div>
  2328. </div>
  2329. </div>
  2330. </div>
  2331. </div>
  2332. <div
  2333. v-if="
  2334. tType &&
  2335. tType == 2 &&
  2336. !sIsOpen &&
  2337. tool.tool.indexOf(3) != -1
  2338. "
  2339. class="worksBox"
  2340. >
  2341. <div
  2342. class="zuoyeYulan"
  2343. v-if="workStudent[toolIndex].length > 0"
  2344. >
  2345. <span class="worksTitle">作业预览</span>
  2346. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2347. </div>
  2348. <div
  2349. class="worksDetailBox"
  2350. v-if="workStudent[toolIndex].length > 0"
  2351. >
  2352. <div
  2353. class="works"
  2354. style="
  2355. width: 200px;
  2356. height: 140px;
  2357. margin: 10px 10px 10px 0;
  2358. box-shadow: 0 0 6px 1px #dfdada;
  2359. "
  2360. v-for="(w, wIndex) in workStudent[toolIndex]"
  2361. :key="wIndex"
  2362. >
  2363. <div class="workImg">
  2364. <img
  2365. :src="w.works"
  2366. @click="previewImg(w.works,w)"
  2367. alt
  2368. />
  2369. <div
  2370. class="answerScore"
  2371. v-if="w.score"
  2372. @click.stop="openScore(w)"
  2373. :class="{
  2374. rightW:
  2375. w.userid == userid || tType == 1 || tType == 4,
  2376. }"
  2377. >
  2378. {{ JSON.parse(w.score).wScore }}分
  2379. </div>
  2380. <div
  2381. class="answerScore"
  2382. @click.stop="openScore(w)"
  2383. v-else-if="courseDetail.userid == userid"
  2384. :class="{
  2385. rightW:
  2386. w.userid == userid || tType == 1 || tType == 4,
  2387. }"
  2388. >
  2389. 评分
  2390. </div>
  2391. <img
  2392. class="deleteImg"
  2393. src="../../assets/deleteworks.png"
  2394. v-if="
  2395. w.userid == userid || tType == 1 || tType == 4
  2396. "
  2397. @click.stop="deleteWorks(w.wid)"
  2398. alt
  2399. />
  2400. </div>
  2401. <div class="worksName">
  2402. <div>{{ w.sName }}</div>
  2403. </div>
  2404. </div>
  2405. </div>
  2406. </div>
  2407. <div
  2408. v-if="
  2409. tType &&
  2410. tType == 2 &&
  2411. !sIsOpen &&
  2412. tool.tool.indexOf(6) != -1
  2413. "
  2414. class="worksBox"
  2415. >
  2416. <div
  2417. class="zuoyeYulan"
  2418. v-if="workStudent[toolIndex].length > 0"
  2419. >
  2420. <span class="worksTitle">作业预览</span>
  2421. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2422. </div>
  2423. <div
  2424. class="worksDetailBox"
  2425. v-if="workStudent[toolIndex].length > 0"
  2426. >
  2427. <div
  2428. class="works"
  2429. style="
  2430. width: 200px;
  2431. height: 140px;
  2432. margin: 10px 10px 10px 0;
  2433. box-shadow: 0 0 6px 1px #dfdada;
  2434. "
  2435. v-for="(w, wIndex) in workStudent[toolIndex]"
  2436. :key="wIndex"
  2437. >
  2438. <div class="workImg">
  2439. <img
  2440. :src="w.works"
  2441. @click="previewImg(w.works,w)"
  2442. alt
  2443. />
  2444. <div
  2445. class="answerScore"
  2446. v-if="w.score"
  2447. @click.stop="openScore(w)"
  2448. :class="{
  2449. rightW:
  2450. w.userid == userid || tType == 1 || tType == 4,
  2451. }"
  2452. >
  2453. {{ JSON.parse(w.score).wScore }}分
  2454. </div>
  2455. <div
  2456. class="answerScore"
  2457. @click.stop="openScore(w)"
  2458. v-else-if="courseDetail.userid == userid"
  2459. :class="{
  2460. rightW:
  2461. w.userid == userid || tType == 1 || tType == 4,
  2462. }"
  2463. >
  2464. 评分
  2465. </div>
  2466. <img
  2467. class="deleteImg"
  2468. src="../../assets/deleteworks.png"
  2469. v-if="
  2470. w.userid == userid || tType == 1 || tType == 4
  2471. "
  2472. @click.stop="deleteWorks(w.wid)"
  2473. alt
  2474. />
  2475. </div>
  2476. <div class="worksName">
  2477. <div>{{ w.sName }}</div>
  2478. </div>
  2479. </div>
  2480. </div>
  2481. </div>
  2482. <div
  2483. v-if="
  2484. tType &&
  2485. tType == 2 &&
  2486. !sIsOpen &&
  2487. tool.tool.indexOf(7) != -1
  2488. "
  2489. class="worksBox"
  2490. >
  2491. <div
  2492. class="zuoyeYulan"
  2493. v-if="workStudent[toolIndex].length > 0"
  2494. >
  2495. <span class="worksTitle">作业预览</span>
  2496. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2497. </div>
  2498. <div
  2499. class="worksDetailBox"
  2500. v-if="workStudent[toolIndex].length > 0"
  2501. >
  2502. <div
  2503. class="works"
  2504. style="
  2505. width: 200px;
  2506. height: 140px;
  2507. margin: 10px 10px 10px 0;
  2508. box-shadow: 0 0 6px 1px #dfdada;
  2509. "
  2510. v-for="(w, wIndex) in workStudent[toolIndex]"
  2511. :key="wIndex"
  2512. >
  2513. <div class="workImg">
  2514. <img
  2515. :src="w.works"
  2516. @click="previewImg(w.works,w)"
  2517. alt
  2518. />
  2519. <div
  2520. class="answerScore"
  2521. v-if="w.score"
  2522. @click.stop="openScore(w)"
  2523. :class="{
  2524. rightW:
  2525. w.userid == userid || tType == 1 || tType == 4,
  2526. }"
  2527. >
  2528. {{ JSON.parse(w.score).wScore }}分
  2529. </div>
  2530. <div
  2531. class="answerScore"
  2532. @click.stop="openScore(w)"
  2533. v-else-if="courseDetail.userid == userid"
  2534. :class="{
  2535. rightW:
  2536. w.userid == userid || tType == 1 || tType == 4,
  2537. }"
  2538. >
  2539. 评分
  2540. </div>
  2541. <img
  2542. class="deleteImg"
  2543. src="../../assets/deleteworks.png"
  2544. v-if="
  2545. w.userid == userid || tType == 1 || tType == 4
  2546. "
  2547. @click.stop="deleteWorks(w.wid)"
  2548. alt
  2549. />
  2550. </div>
  2551. <div class="worksName">
  2552. <div>{{ w.sName }}</div>
  2553. </div>
  2554. </div>
  2555. </div>
  2556. </div>
  2557. <div
  2558. v-if="
  2559. tType &&
  2560. tType == 2 &&
  2561. !sIsOpen &&
  2562. tool.tool.indexOf(26) != -1
  2563. "
  2564. class="worksBox"
  2565. >
  2566. <div
  2567. class="zuoyeYulan"
  2568. v-if="workStudent[toolIndex].length > 0"
  2569. >
  2570. <span class="worksTitle">作业预览</span>
  2571. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2572. </div>
  2573. <div
  2574. class="worksDetailBox"
  2575. v-if="workStudent[toolIndex].length > 0"
  2576. >
  2577. <div
  2578. class="works"
  2579. style="
  2580. width: 200px;
  2581. height: 140px;
  2582. margin: 10px 10px 10px 0;
  2583. box-shadow: 0 0 6px 1px #dfdada;
  2584. "
  2585. v-for="(w, wIndex) in workStudent[toolIndex]"
  2586. :key="wIndex"
  2587. >
  2588. <div class="workImg">
  2589. <img
  2590. :src="w.works"
  2591. @click="previewImg(w.works,w)"
  2592. alt
  2593. />
  2594. <img
  2595. class="deleteImg"
  2596. src="../../assets/deleteworks.png"
  2597. v-if="
  2598. w.userid == userid || tType == 1 || tType == 4
  2599. "
  2600. @click.stop="deleteWorks(w.wid)"
  2601. alt
  2602. />
  2603. </div>
  2604. <div class="worksName">
  2605. <div>{{ w.sName }}</div>
  2606. </div>
  2607. </div>
  2608. </div>
  2609. </div>
  2610. <div
  2611. v-if="
  2612. tType &&
  2613. ((tType == 2 && sIsOpen == true) ||
  2614. tType == 1 ||
  2615. tType == 4) &&
  2616. tool.tool.indexOf(16) != -1
  2617. "
  2618. class="worksBox"
  2619. >
  2620. <div
  2621. class="zuoyeYulan"
  2622. v-if="
  2623. (worksStudent.length &&
  2624. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2625. "
  2626. >
  2627. <div class="worksTop">
  2628. <div>作业预览</div>
  2629. <div
  2630. class="corOpen"
  2631. @click="contract(toolIndex)"
  2632. v-if="
  2633. (isCloseList[toolIndex].isCloseBoolean) &&
  2634. isCloseList[toolIndex].isClose == 0
  2635. "
  2636. >
  2637. 折叠
  2638. </div>
  2639. <div
  2640. class="corOpen"
  2641. @click="contract(toolIndex)"
  2642. v-if="isCloseList[toolIndex].isClose == 1"
  2643. >
  2644. 展开
  2645. </div>
  2646. </div>
  2647. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2648. </div>
  2649. <div
  2650. class="group_workBox"
  2651. v-for="(g, gindex) in courseGroup.group"
  2652. :key="gindex"
  2653. >
  2654. <div class="group_box">
  2655. <div class="group_title">
  2656. <el-tooltip
  2657. class="item"
  2658. effect="light"
  2659. :content="g.name"
  2660. placement="top"
  2661. >
  2662. <div class="group_name">{{ g.name }}</div>
  2663. </el-tooltip>
  2664. </div>
  2665. <div
  2666. class="group_work"
  2667. v-if="
  2668. g.works &&
  2669. g.works.length &&
  2670. g.works[toolIndex].length
  2671. "
  2672. >
  2673. <div
  2674. class="works"
  2675. style="
  2676. width: 200px;
  2677. height: 140px;
  2678. margin: 10px 10px 10px 0;
  2679. border-radius: 15px;
  2680. box-shadow: 0 0 6px 1px #dfdada;
  2681. "
  2682. v-for="(w, wIndex) in g.works[toolIndex]"
  2683. :key="wIndex"
  2684. :class="w.type == 1 ? 'isTypeOne' : ''"
  2685. >
  2686. <div class="workImg" v-if="w.type == 0">
  2687. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2688. <img
  2689. :src="w.works"
  2690. @click="previewImg(w.works,w)"
  2691. alt
  2692. />
  2693. <div
  2694. class="answerScore"
  2695. v-if="w.score"
  2696. @click.stop="openScore(w)"
  2697. :class="{
  2698. rightW:
  2699. w.userid == userid ||
  2700. tType == 1 ||
  2701. tType == 4 ||
  2702. w.ateacher == userid,
  2703. }"
  2704. >
  2705. {{ JSON.parse(w.score).wScore }}分
  2706. </div>
  2707. <div
  2708. class="answerScore"
  2709. @click.stop="openScore(w)"
  2710. v-else-if="courseDetail.userid == userid"
  2711. :class="{
  2712. rightW:
  2713. w.userid == userid ||
  2714. tType == 1 ||
  2715. tType == 4 ||
  2716. w.ateacher == userid,
  2717. }"
  2718. >
  2719. 评分
  2720. </div>
  2721. <img
  2722. class="deleteImg"
  2723. src="../../assets/deleteworks.png"
  2724. v-if="
  2725. w.userid == userid || tType == 1 || tType == 4
  2726. "
  2727. @click.stop="deleteWorks(w.wid)"
  2728. alt
  2729. />
  2730. </div>
  2731. <div class="workImg" v-if="w.type == 1">
  2732. <img :src="word" @click="openFile(w.works)" alt />
  2733. <!-- @click="openFile(w.works)" -->
  2734. <div
  2735. class="answerScore"
  2736. v-if="w.score"
  2737. @click.stop="openScore(w)"
  2738. :class="{
  2739. rightW:
  2740. w.userid == userid ||
  2741. tType == 1 ||
  2742. tType == 4 ||
  2743. w.ateacher == userid,
  2744. }"
  2745. >
  2746. {{ JSON.parse(w.score).wScore }}分
  2747. </div>
  2748. <div
  2749. class="answerScore"
  2750. @click.stop="openScore(w)"
  2751. v-else-if="courseDetail.userid == userid"
  2752. :class="{
  2753. rightW:
  2754. w.userid == userid ||
  2755. tType == 1 ||
  2756. tType == 4 ||
  2757. w.ateacher == userid,
  2758. }"
  2759. >
  2760. 评分
  2761. </div>
  2762. <img
  2763. class="deleteImg"
  2764. src="../../assets/deleteworks.png"
  2765. v-if="
  2766. w.userid == userid || tType == 1 || tType == 4
  2767. "
  2768. @click.stop="deleteWorks(w.wid)"
  2769. alt
  2770. />
  2771. </div>
  2772. <div class="workImg" v-if="w.type == 3">
  2773. <img
  2774. style="cursor: pointer"
  2775. :src="video"
  2776. @click="openVideo(w)"
  2777. alt
  2778. />
  2779. <!-- @click="openVideo(w.works)" -->
  2780. <div
  2781. class="answerScore"
  2782. v-if="w.score"
  2783. @click.stop="openScore(w)"
  2784. :class="{
  2785. rightW:
  2786. w.userid == userid ||
  2787. tType == 1 ||
  2788. tType == 4 ||
  2789. w.ateacher == userid,
  2790. }"
  2791. >
  2792. {{ JSON.parse(w.score).wScore }}分
  2793. </div>
  2794. <div
  2795. class="answerScore"
  2796. @click.stop="openScore(w)"
  2797. v-else-if="courseDetail.userid == userid"
  2798. :class="{
  2799. rightW:
  2800. w.userid == userid ||
  2801. tType == 1 ||
  2802. tType == 4 ||
  2803. w.ateacher == userid,
  2804. }"
  2805. >
  2806. 评分
  2807. </div>
  2808. <img
  2809. class="deleteImg"
  2810. src="../../assets/deleteworks.png"
  2811. v-if="
  2812. w.userid == userid || tType == 1 || tType == 4
  2813. "
  2814. @click.stop="deleteWorks(w.wid)"
  2815. alt
  2816. />
  2817. </div>
  2818. <div class="workImg" v-if="w.type == 12">
  2819. <img
  2820. style="cursor: pointer"
  2821. :src="word2"
  2822. @click="downloadFile(w.works)"
  2823. alt
  2824. />
  2825. <!-- @click="openVideo(w.works)" -->
  2826. <div
  2827. class="answerScore"
  2828. v-if="w.score"
  2829. @click.stop="openScore(w)"
  2830. :class="{
  2831. rightW:
  2832. w.userid == userid ||
  2833. tType == 1 ||
  2834. tType == 4 ||
  2835. w.ateacher == userid,
  2836. }"
  2837. >
  2838. {{ JSON.parse(w.score).wScore }}分
  2839. </div>
  2840. <div
  2841. class="answerScore"
  2842. @click.stop="openScore(w)"
  2843. v-else-if="courseDetail.userid == userid"
  2844. :class="{
  2845. rightW:
  2846. w.userid == userid ||
  2847. tType == 1 ||
  2848. tType == 4 ||
  2849. w.ateacher == userid,
  2850. }"
  2851. >
  2852. 评分
  2853. </div>
  2854. <img
  2855. class="deleteImg"
  2856. src="../../assets/deleteworks.png"
  2857. v-if="
  2858. w.userid == userid || tType == 1 || tType == 4
  2859. "
  2860. @click.stop="deleteWorks(w.wid)"
  2861. alt
  2862. />
  2863. </div>
  2864. <div class="comment" style="min-width: 200px">
  2865. <div class="worksName">
  2866. <div>{{ w.sName }}</div>
  2867. </div>
  2868. <div class="commentList">
  2869. <div class="commentList">
  2870. <div
  2871. class="commentImg"
  2872. @click="
  2873. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2874. "
  2875. >
  2876. <img
  2877. :src="w.isLikes == true ? likes : noLikes"
  2878. alt=""
  2879. />
  2880. </div>
  2881. <div>{{ w.likesCount }}</div>
  2882. </div>
  2883. <div
  2884. class="commentList"
  2885. style="margin-right: 15px"
  2886. >
  2887. <div
  2888. class="commentImg"
  2889. @click="
  2890. commentOther(
  2891. w,
  2892. toolIndex,
  2893. wIndex,
  2894. null,
  2895. g.id
  2896. )
  2897. "
  2898. >
  2899. <img
  2900. src="../../assets/icon/comment/comment.png"
  2901. alt=""
  2902. />
  2903. </div>
  2904. <div>{{ w.commentCount }}</div>
  2905. </div>
  2906. </div>
  2907. </div>
  2908. </div>
  2909. </div>
  2910. <div class="group_work" v-else>暂无提交作业</div>
  2911. </div>
  2912. </div>
  2913. <div
  2914. :id="'tool-' + toolIndex"
  2915. :style="{
  2916. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2917. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2918. }"
  2919. class="worksDetailBox"
  2920. v-if="
  2921. worksStudent.length &&
  2922. worksStudent[toolIndex].length > 0
  2923. "
  2924. >
  2925. <div
  2926. class="works"
  2927. style="
  2928. width: 200px;
  2929. height: 140px;
  2930. margin: 10px 10px 10px 0;
  2931. border-radius: 15px;
  2932. box-shadow: 0 0 6px 1px #dfdada;
  2933. "
  2934. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2935. :key="wIndex"
  2936. :class="w.type == 1 ? 'isTypeOne' : ''"
  2937. >
  2938. <div class="workImg" v-if="w.type == 0">
  2939. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2940. <img
  2941. :src="w.works"
  2942. @click="previewImg(w.works,w)"
  2943. alt
  2944. />
  2945. <div
  2946. class="answerScore"
  2947. v-if="w.score"
  2948. @click.stop="openScore(w)"
  2949. :class="{
  2950. rightW:
  2951. w.userid == userid ||
  2952. tType == 1 ||
  2953. tType == 4 ||
  2954. w.ateacher == userid,
  2955. }"
  2956. >
  2957. {{ JSON.parse(w.score).wScore }}分
  2958. </div>
  2959. <div
  2960. class="answerScore"
  2961. @click.stop="openScore(w)"
  2962. v-else-if="courseDetail.userid == userid"
  2963. :class="{
  2964. rightW:
  2965. w.userid == userid ||
  2966. tType == 1 ||
  2967. tType == 4 ||
  2968. w.ateacher == userid,
  2969. }"
  2970. >
  2971. 评分
  2972. </div>
  2973. <img
  2974. class="deleteImg"
  2975. src="../../assets/deleteworks.png"
  2976. v-if="
  2977. w.userid == userid || tType == 1 || tType == 4
  2978. "
  2979. @click.stop="deleteWorks(w.wid)"
  2980. alt
  2981. />
  2982. </div>
  2983. <div class="workImg" v-if="w.type == 1">
  2984. <img :src="word" @click="openFile(w.works)" alt />
  2985. <!-- @click="openFile(w.works)" -->
  2986. <div
  2987. class="answerScore"
  2988. v-if="w.score"
  2989. @click.stop="openScore(w)"
  2990. :class="{
  2991. rightW:
  2992. w.userid == userid ||
  2993. tType == 1 ||
  2994. tType == 4 ||
  2995. w.ateacher == userid,
  2996. }"
  2997. >
  2998. {{ JSON.parse(w.score).wScore }}分
  2999. </div>
  3000. <div
  3001. class="answerScore"
  3002. @click.stop="openScore(w)"
  3003. v-else-if="courseDetail.userid == userid"
  3004. :class="{
  3005. rightW:
  3006. w.userid == userid ||
  3007. tType == 1 ||
  3008. tType == 4 ||
  3009. w.ateacher == userid,
  3010. }"
  3011. >
  3012. 评分
  3013. </div>
  3014. <img
  3015. class="deleteImg"
  3016. src="../../assets/deleteworks.png"
  3017. v-if="
  3018. w.userid == userid || tType == 1 || tType == 4
  3019. "
  3020. @click.stop="deleteWorks(w.wid)"
  3021. alt
  3022. />
  3023. </div>
  3024. <div class="workImg" v-if="w.type == 3">
  3025. <img
  3026. style="cursor: pointer"
  3027. :src="video"
  3028. @click="openVideo(w)"
  3029. alt
  3030. />
  3031. <!-- @click="openVideo(w.works)" -->
  3032. <div
  3033. class="answerScore"
  3034. v-if="w.score"
  3035. @click.stop="openScore(w)"
  3036. :class="{
  3037. rightW:
  3038. w.userid == userid ||
  3039. tType == 1 ||
  3040. tType == 4 ||
  3041. w.ateacher == userid,
  3042. }"
  3043. >
  3044. {{ JSON.parse(w.score).wScore }}分
  3045. </div>
  3046. <div
  3047. class="answerScore"
  3048. @click.stop="openScore(w)"
  3049. v-else-if="courseDetail.userid == userid"
  3050. :class="{
  3051. rightW:
  3052. w.userid == userid ||
  3053. tType == 1 ||
  3054. tType == 4 ||
  3055. w.ateacher == userid,
  3056. }"
  3057. >
  3058. 评分
  3059. </div>
  3060. <img
  3061. class="deleteImg"
  3062. src="../../assets/deleteworks.png"
  3063. v-if="
  3064. w.userid == userid || tType == 1 || tType == 4
  3065. "
  3066. @click.stop="deleteWorks(w.wid)"
  3067. alt
  3068. />
  3069. </div>
  3070. <div class="workImg" v-if="w.type == 12">
  3071. <img
  3072. style="cursor: pointer"
  3073. :src="word2"
  3074. @click="downloadFile(w.works)"
  3075. alt
  3076. />
  3077. <!-- @click="openVideo(w.works)" -->
  3078. <div
  3079. class="answerScore"
  3080. v-if="w.score"
  3081. @click.stop="openScore(w)"
  3082. :class="{
  3083. rightW:
  3084. w.userid == userid ||
  3085. tType == 1 ||
  3086. tType == 4 ||
  3087. w.ateacher == userid,
  3088. }"
  3089. >
  3090. {{ JSON.parse(w.score).wScore }}分
  3091. </div>
  3092. <div
  3093. class="answerScore"
  3094. @click.stop="openScore(w)"
  3095. v-else-if="courseDetail.userid == userid"
  3096. :class="{
  3097. rightW:
  3098. w.userid == userid ||
  3099. tType == 1 ||
  3100. tType == 4 ||
  3101. w.ateacher == userid,
  3102. }"
  3103. >
  3104. 评分
  3105. </div>
  3106. <img
  3107. class="deleteImg"
  3108. src="../../assets/deleteworks.png"
  3109. v-if="
  3110. w.userid == userid || tType == 1 || tType == 4
  3111. "
  3112. @click.stop="deleteWorks(w.wid)"
  3113. alt
  3114. />
  3115. </div>
  3116. <div class="comment" style="min-width: 200px">
  3117. <div class="worksName">
  3118. <div>{{ w.sName }}</div>
  3119. </div>
  3120. <div class="commentList">
  3121. <div class="commentList">
  3122. <div
  3123. class="commentImg"
  3124. @click="
  3125. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3126. "
  3127. >
  3128. <img
  3129. :src="w.isLikes == true ? likes : noLikes"
  3130. alt=""
  3131. />
  3132. </div>
  3133. <div>{{ w.likesCount }}</div>
  3134. </div>
  3135. <div class="commentList" style="margin-right: 15px">
  3136. <div
  3137. class="commentImg"
  3138. @click="commentOther(w, toolIndex, wIndex)"
  3139. >
  3140. <img
  3141. src="../../assets/icon/comment/comment.png"
  3142. alt=""
  3143. />
  3144. </div>
  3145. <div>{{ w.commentCount }}</div>
  3146. </div>
  3147. </div>
  3148. </div>
  3149. </div>
  3150. </div>
  3151. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3152. 未提交
  3153. </div>
  3154. <div
  3155. class="noWorksS"
  3156. v-if="noWorksS && noWorksS[toolIndex].length"
  3157. >
  3158. <div
  3159. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3160. :key="sIndex"
  3161. class="noWorksName"
  3162. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3163. >
  3164. <el-tooltip effect="dark" :content="s.student" placement="top">
  3165. <span>{{ s.student }}</span>
  3166. </el-tooltip>
  3167. </div>
  3168. </div>
  3169. </div>
  3170. <div
  3171. v-if="
  3172. tType &&
  3173. ((tType == 2 && sIsOpen == true) ||
  3174. tType == 1 ||
  3175. tType == 4) &&
  3176. tool.tool.indexOf(70) != -1
  3177. "
  3178. class="worksBox"
  3179. >
  3180. <div
  3181. class="zuoyeYulan"
  3182. v-if="
  3183. (worksStudent.length &&
  3184. worksStudent[toolIndex].length > 0)
  3185. "
  3186. >
  3187. <div class="worksTop">
  3188. <div>作业预览</div>
  3189. <div
  3190. class="corOpen"
  3191. @click="contract(toolIndex)"
  3192. v-if="
  3193. (isCloseList[toolIndex].isCloseBoolean) &&
  3194. isCloseList[toolIndex].isClose == 0
  3195. "
  3196. >
  3197. 折叠
  3198. </div>
  3199. <div
  3200. class="corOpen"
  3201. @click="contract(toolIndex)"
  3202. v-if="isCloseList[toolIndex].isClose == 1"
  3203. >
  3204. 展开
  3205. </div>
  3206. </div>
  3207. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3208. </div>
  3209. <div
  3210. :id="'tool-' + toolIndex"
  3211. :style="{
  3212. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3213. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3214. }"
  3215. class="worksDetailBox"
  3216. v-if="
  3217. worksStudent.length &&
  3218. worksStudent[toolIndex].length > 0
  3219. "
  3220. >
  3221. <div
  3222. class="works"
  3223. style="
  3224. width: 200px;
  3225. height: 140px;
  3226. margin: 10px 10px 10px 0;
  3227. border-radius: 15px;
  3228. box-shadow: 0 0 6px 1px #dfdada;
  3229. "
  3230. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3231. :key="wIndex"
  3232. :class="w.type == 1 ? 'isTypeOne' : ''"
  3233. >
  3234. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3235. <img :src="word" alt />
  3236. <img
  3237. class="deleteImg"
  3238. src="../../assets/deleteworks.png"
  3239. v-if="
  3240. w.userid == userid || tType == 1 || tType == 4
  3241. "
  3242. @click.stop="deleteWorks(w.wid)"
  3243. alt
  3244. />
  3245. </div>
  3246. <div class="comment" style="min-width: 200px">
  3247. <div class="worksName">
  3248. <div>{{ w.sName }}</div>
  3249. </div>
  3250. </div>
  3251. </div>
  3252. </div>
  3253. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3254. 未提交
  3255. </div>
  3256. <div
  3257. class="noWorksS"
  3258. v-if="noWorksS && noWorksS[toolIndex].length"
  3259. >
  3260. <div
  3261. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3262. :key="sIndex"
  3263. class="noWorksName"
  3264. >
  3265. <el-tooltip effect="dark" :content="s.student" placement="top">
  3266. <span>{{ s.student }}</span>
  3267. </el-tooltip>
  3268. </div>
  3269. </div>
  3270. </div>
  3271. <div
  3272. v-if="
  3273. tType &&
  3274. tType == 2 &&
  3275. !sIsOpen &&
  3276. tool.tool.indexOf(70) != -1
  3277. "
  3278. class="worksBox"
  3279. >
  3280. <div
  3281. class="zuoyeYulan"
  3282. v-if="workStudent[toolIndex].length > 0"
  3283. >
  3284. <span class="worksTitle">作业预览</span>
  3285. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3286. </div>
  3287. <div
  3288. class="worksDetailBox"
  3289. v-if="workStudent[toolIndex].length > 0"
  3290. >
  3291. <div
  3292. class="works"
  3293. style="
  3294. width: 200px;
  3295. height: 140px;
  3296. margin: 10px 10px 10px 0;
  3297. box-shadow: 0 0 6px 1px #dfdada;
  3298. "
  3299. v-for="(w, wIndex) in workStudent[toolIndex]"
  3300. :key="wIndex"
  3301. >
  3302. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3303. <img :src="word" alt />
  3304. <img
  3305. class="deleteImg"
  3306. src="../../assets/deleteworks.png"
  3307. v-if="
  3308. w.userid == userid || tType == 1 || tType == 4
  3309. "
  3310. @click.stop="deleteWorks(w.wid)"
  3311. alt
  3312. />
  3313. </div>
  3314. <div class="worksName">
  3315. <div>{{ w.sName }}</div>
  3316. </div>
  3317. </div>
  3318. </div>
  3319. </div>
  3320. <div
  3321. v-if="
  3322. tType &&
  3323. ((tType == 2 && sIsOpen == true) ||
  3324. tType == 1 ||
  3325. tType == 4) &&
  3326. tool.tool.indexOf(32) != -1
  3327. "
  3328. class="worksBox"
  3329. >
  3330. <div
  3331. class="zuoyeYulan"
  3332. v-if="
  3333. worksStudent.length &&
  3334. worksStudent[toolIndex].length > 0
  3335. "
  3336. >
  3337. <div class="worksTop">
  3338. <div>作业预览</div>
  3339. <div
  3340. class="corOpen"
  3341. @click="contract(toolIndex)"
  3342. v-if="
  3343. (isCloseList[toolIndex].isCloseBoolean) &&
  3344. isCloseList[toolIndex].isClose == 0
  3345. "
  3346. >
  3347. 折叠
  3348. </div>
  3349. <div
  3350. class="corOpen"
  3351. @click="contract(toolIndex)"
  3352. v-if="isCloseList[toolIndex].isClose == 1"
  3353. >
  3354. 展开
  3355. </div>
  3356. </div>
  3357. </div>
  3358. <div
  3359. :id="'tool-' + toolIndex"
  3360. :style="{
  3361. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3362. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3363. }"
  3364. class="worksDetailBox"
  3365. v-if="
  3366. worksStudent.length &&
  3367. worksStudent[toolIndex].length > 0
  3368. "
  3369. >
  3370. <div
  3371. class="works"
  3372. style="
  3373. width: 200px;
  3374. height: 140px;
  3375. margin: 10px 10px 10px 0;
  3376. border-radius: 15px;
  3377. box-shadow: 0 0 6px 1px #dfdada;
  3378. "
  3379. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3380. :key="wIndex"
  3381. :class="w.type == 1 ? 'isTypeOne' : ''"
  3382. >
  3383. <div class="workImg">
  3384. <img
  3385. :src="word2"
  3386. @click="downloadFile(w.works)"
  3387. alt
  3388. />
  3389. <div
  3390. class="answerScore"
  3391. v-if="w.score"
  3392. @click.stop="openScore(w)"
  3393. :class="{
  3394. rightW:
  3395. w.userid == userid ||
  3396. tType == 1 ||
  3397. tType == 4 ||
  3398. w.ateacher == userid,
  3399. }"
  3400. >
  3401. {{ JSON.parse(w.score).wScore }}分
  3402. </div>
  3403. <div
  3404. class="answerScore"
  3405. @click.stop="openScore(w)"
  3406. v-else-if="courseDetail.userid == userid"
  3407. :class="{
  3408. rightW:
  3409. w.userid == userid ||
  3410. tType == 1 ||
  3411. tType == 4 ||
  3412. w.ateacher == userid,
  3413. }"
  3414. >
  3415. 评分
  3416. </div>
  3417. <img
  3418. class="deleteImg"
  3419. src="../../assets/deleteworks.png"
  3420. v-if="
  3421. w.userid == userid || tType == 1 || tType == 4
  3422. "
  3423. @click.stop="deleteWorks(w.wid)"
  3424. alt
  3425. />
  3426. </div>
  3427. <div class="comment" style="min-width: 200px">
  3428. <div class="worksName">
  3429. <div>{{ w.sName }}</div>
  3430. </div>
  3431. <div class="commentList">
  3432. <div class="commentList">
  3433. <div
  3434. class="commentImg"
  3435. @click="
  3436. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3437. "
  3438. >
  3439. <img
  3440. :src="w.isLikes == true ? likes : noLikes"
  3441. alt=""
  3442. />
  3443. </div>
  3444. <div>{{ w.likesCount }}</div>
  3445. </div>
  3446. <div class="commentList" style="margin-right: 15px">
  3447. <div
  3448. class="commentImg"
  3449. @click="commentOther(w, toolIndex, wIndex)"
  3450. >
  3451. <img
  3452. src="../../assets/icon/comment/comment.png"
  3453. alt=""
  3454. />
  3455. </div>
  3456. <div>{{ w.commentCount }}</div>
  3457. </div>
  3458. </div>
  3459. </div>
  3460. </div>
  3461. </div>
  3462. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3463. 未提交
  3464. </div>
  3465. <div
  3466. class="noWorksS"
  3467. v-if="noWorksS && noWorksS[toolIndex].length"
  3468. >
  3469. <div
  3470. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3471. :key="sIndex"
  3472. class="noWorksName"
  3473. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3474. >
  3475. <el-tooltip effect="dark" :content="s.student" placement="top">
  3476. <span>{{ s.student }}</span>
  3477. </el-tooltip>
  3478. </div>
  3479. </div>
  3480. </div>
  3481. <div
  3482. v-if="
  3483. tType &&
  3484. ((tType == 2 && sIsOpen == true) ||
  3485. tType == 1 ||
  3486. tType == 4) &&
  3487. tool.tool.indexOf(57) != -1
  3488. "
  3489. class="worksBox"
  3490. >
  3491. <div
  3492. class="zuoyeYulan"
  3493. v-if="
  3494. worksStudent.length &&
  3495. worksStudent[toolIndex].length > 0
  3496. "
  3497. >
  3498. <div class="worksTop">
  3499. <div>作业预览</div>
  3500. <div
  3501. class="corOpen"
  3502. @click="contract(toolIndex)"
  3503. v-if="
  3504. (isCloseList[toolIndex].isCloseBoolean) &&
  3505. isCloseList[toolIndex].isClose == 0
  3506. "
  3507. >
  3508. 折叠
  3509. </div>
  3510. <div
  3511. class="corOpen"
  3512. @click="contract(toolIndex)"
  3513. v-if="isCloseList[toolIndex].isClose == 1"
  3514. >
  3515. 展开
  3516. </div>
  3517. </div>
  3518. </div>
  3519. <div
  3520. :id="'tool-' + toolIndex"
  3521. :style="{
  3522. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3523. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3524. }"
  3525. class="worksDetailBox"
  3526. v-if="
  3527. worksStudent.length &&
  3528. worksStudent[toolIndex].length > 0
  3529. "
  3530. >
  3531. <div
  3532. class="works"
  3533. style="
  3534. width: 200px;
  3535. height: 140px;
  3536. margin: 10px 10px 10px 0;
  3537. border-radius: 15px;
  3538. box-shadow: 0 0 6px 1px #dfdada;
  3539. "
  3540. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3541. :key="wIndex"
  3542. :class="w.type == 1 ? 'isTypeOne' : ''"
  3543. >
  3544. <div class="workImg">
  3545. <img
  3546. :src="word2"
  3547. @click="downloadFile(w.works)"
  3548. v-if="w.type == 12"
  3549. alt
  3550. />
  3551. <img
  3552. :src="word2"
  3553. @click="
  3554. openCocoPi(57, toolIndex, w.userid, w.sName)
  3555. "
  3556. v-else-if="w.type == 15"
  3557. alt
  3558. />
  3559. <div
  3560. class="answerScore"
  3561. v-if="w.score"
  3562. @click.stop="openScore(w)"
  3563. :class="{
  3564. rightW:
  3565. w.userid == userid ||
  3566. tType == 1 ||
  3567. tType == 4 ||
  3568. w.ateacher == userid,
  3569. }"
  3570. >
  3571. {{ JSON.parse(w.score).wScore }}分
  3572. </div>
  3573. <div
  3574. class="answerScore"
  3575. @click.stop="openScore(w)"
  3576. v-else-if="courseDetail.userid == userid"
  3577. :class="{
  3578. rightW:
  3579. w.userid == userid ||
  3580. tType == 1 ||
  3581. tType == 4 ||
  3582. w.ateacher == userid,
  3583. }"
  3584. >
  3585. 评分
  3586. </div>
  3587. <img
  3588. class="deleteImg"
  3589. src="../../assets/deleteworks.png"
  3590. v-if="
  3591. w.userid == userid || tType == 1 || tType == 4
  3592. "
  3593. @click.stop="deleteWorks(w.wid)"
  3594. alt
  3595. />
  3596. </div>
  3597. <div class="comment" style="min-width: 200px">
  3598. <div class="worksName">
  3599. <div>{{ w.sName }}</div>
  3600. </div>
  3601. <div class="commentList">
  3602. <div class="commentList">
  3603. <div
  3604. class="commentImg"
  3605. @click="
  3606. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3607. "
  3608. >
  3609. <img
  3610. :src="w.isLikes == true ? likes : noLikes"
  3611. alt=""
  3612. />
  3613. </div>
  3614. <div>{{ w.likesCount }}</div>
  3615. </div>
  3616. <div class="commentList" style="margin-right: 15px">
  3617. <div
  3618. class="commentImg"
  3619. @click="commentOther(w, toolIndex, wIndex)"
  3620. >
  3621. <img
  3622. src="../../assets/icon/comment/comment.png"
  3623. alt=""
  3624. />
  3625. </div>
  3626. <div>{{ w.commentCount }}</div>
  3627. </div>
  3628. </div>
  3629. </div>
  3630. </div>
  3631. </div>
  3632. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3633. 未提交
  3634. </div>
  3635. <div
  3636. class="noWorksS"
  3637. v-if="noWorksS && noWorksS[toolIndex].length"
  3638. >
  3639. <div
  3640. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3641. :key="sIndex"
  3642. class="noWorksName"
  3643. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3644. >
  3645. <el-tooltip effect="dark" :content="s.student" placement="top">
  3646. <span>{{ s.student }}</span>
  3647. </el-tooltip>
  3648. </div>
  3649. </div>
  3650. </div>
  3651. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3652. <div
  3653. class="zuoyeYulan"
  3654. v-if="
  3655. worksStudent.length &&
  3656. worksStudent[toolIndex].length > 0
  3657. "
  3658. >
  3659. <span class="worksTitle">作业预览</span>
  3660. <div
  3661. class="corOpen"
  3662. @click="contract(toolIndex)"
  3663. v-if="
  3664. (isCloseList[toolIndex].isCloseBoolean) &&
  3665. isCloseList[toolIndex].isClose == 0
  3666. "
  3667. >
  3668. 折叠
  3669. </div>
  3670. <div
  3671. class="corOpen"
  3672. @click="contract(toolIndex)"
  3673. v-if="isCloseList[toolIndex].isClose == 1"
  3674. >
  3675. 展开
  3676. </div>
  3677. </div>
  3678. <div
  3679. :id="'tool-' + toolIndex"
  3680. :style="{
  3681. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3682. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3683. }"
  3684. class="worksDetailBox"
  3685. v-if="
  3686. worksStudent.length &&
  3687. worksStudent[toolIndex].length > 0
  3688. "
  3689. >
  3690. <div
  3691. class="works"
  3692. style="
  3693. width: 200px;
  3694. height: 140px;
  3695. margin: 10px 10px 10px 0;
  3696. border-radius: 15px;
  3697. box-shadow: 0 0 6px 1px #dfdada;
  3698. "
  3699. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3700. :key="wIndex"
  3701. :class="w.type == 1 ? 'isTypeOne' : ''"
  3702. >
  3703. <div class="workImg" v-if="w.type == 0">
  3704. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3705. <img
  3706. :src="w.works"
  3707. @click="previewImg(w.works,w)"
  3708. alt
  3709. />
  3710. <div
  3711. class="answerScore"
  3712. v-if="w.score"
  3713. @click.stop="openScore(w)"
  3714. :class="{
  3715. rightW:
  3716. w.userid == userid ||
  3717. tType == 1 ||
  3718. tType == 4 ||
  3719. w.ateacher == userid,
  3720. }"
  3721. >
  3722. {{ JSON.parse(w.score).wScore }}分
  3723. </div>
  3724. <div
  3725. class="answerScore"
  3726. @click.stop="openScore(w)"
  3727. v-else-if="courseDetail.userid == userid"
  3728. :class="{
  3729. rightW:
  3730. w.userid == userid ||
  3731. tType == 1 ||
  3732. tType == 4 ||
  3733. w.ateacher == userid,
  3734. }"
  3735. >
  3736. 评分
  3737. </div>
  3738. <img
  3739. class="deleteImg"
  3740. src="../../assets/deleteworks.png"
  3741. v-if="
  3742. w.userid == userid || tType == 1 || tType == 4
  3743. "
  3744. @click.stop="deleteWorks(w.wid)"
  3745. alt
  3746. />
  3747. </div>
  3748. <div
  3749. class="workImg"
  3750. style="cursor: pointer"
  3751. v-if="w.type == 1"
  3752. >
  3753. <img :src="word" @click="openFile(w.works)" alt />
  3754. <!-- @click="openFile(w.works)" -->
  3755. <div
  3756. class="answerScore"
  3757. v-if="w.score"
  3758. @click.stop="openScore(w)"
  3759. :class="{
  3760. rightW:
  3761. w.userid == userid ||
  3762. tType == 1 ||
  3763. tType == 4 ||
  3764. w.ateacher == userid,
  3765. }"
  3766. >
  3767. {{ JSON.parse(w.score).wScore }}分
  3768. </div>
  3769. <div
  3770. class="answerScore"
  3771. @click.stop="openScore(w)"
  3772. v-else-if="courseDetail.userid == userid"
  3773. :class="{
  3774. rightW:
  3775. w.userid == userid ||
  3776. tType == 1 ||
  3777. tType == 4 ||
  3778. w.ateacher == userid,
  3779. }"
  3780. >
  3781. 评分
  3782. </div>
  3783. <img
  3784. class="deleteImg"
  3785. src="../../assets/deleteworks.png"
  3786. v-if="
  3787. w.userid == userid || tType == 1 || tType == 4
  3788. "
  3789. @click.stop="deleteWorks(w.wid)"
  3790. alt
  3791. />
  3792. </div>
  3793. <div class="workImg" v-if="w.type == 3">
  3794. <img
  3795. style="cursor: pointer"
  3796. :src="video"
  3797. @click="openVideo(w)"
  3798. alt
  3799. />
  3800. <!-- @click="openVideo(w.works)" -->
  3801. <div
  3802. class="answerScore"
  3803. v-if="w.score"
  3804. @click.stop="openScore(w)"
  3805. :class="{
  3806. rightW:
  3807. w.userid == userid ||
  3808. tType == 1 ||
  3809. tType == 4 ||
  3810. w.ateacher == userid,
  3811. }"
  3812. >
  3813. {{ JSON.parse(w.score).wScore }}分
  3814. </div>
  3815. <div
  3816. class="answerScore"
  3817. @click.stop="openScore(w)"
  3818. v-else-if="courseDetail.userid == userid"
  3819. :class="{
  3820. rightW:
  3821. w.userid == userid ||
  3822. tType == 1 ||
  3823. tType == 4 ||
  3824. w.ateacher == userid,
  3825. }"
  3826. >
  3827. 评分
  3828. </div>
  3829. <img
  3830. class="deleteImg"
  3831. src="../../assets/deleteworks.png"
  3832. v-if="
  3833. w.userid == userid || tType == 1 || tType == 4
  3834. "
  3835. @click.stop="deleteWorks(w.wid)"
  3836. alt
  3837. />
  3838. </div>
  3839. <div class="comment" style="min-width: 200px">
  3840. <div class="worksName">
  3841. <div
  3842. style="cursor: pointer"
  3843. @click="
  3844. openSname(w.sName, w.wid, toolIndex, w.userid)
  3845. "
  3846. >
  3847. {{ w.sName }}
  3848. </div>
  3849. </div>
  3850. <div class="commentList">
  3851. <div class="commentList">
  3852. <div
  3853. class="commentImg"
  3854. @click="
  3855. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3856. "
  3857. >
  3858. <img
  3859. :src="w.isLikes == true ? likes : noLikes"
  3860. alt=""
  3861. />
  3862. </div>
  3863. <div>{{ w.likesCount }}</div>
  3864. </div>
  3865. <div class="commentList" style="margin-right: 15px">
  3866. <div
  3867. class="commentImg"
  3868. @click="commentOther(w, toolIndex, wIndex)"
  3869. >
  3870. <img
  3871. src="../../assets/icon/comment/comment.png"
  3872. alt=""
  3873. />
  3874. </div>
  3875. <div>{{ w.commentCount }}</div>
  3876. </div>
  3877. </div>
  3878. </div>
  3879. </div>
  3880. </div>
  3881. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3882. 未提交
  3883. </div>
  3884. <div
  3885. class="noWorksS"
  3886. v-if="noWorksS && noWorksS[toolIndex].length"
  3887. >
  3888. <div
  3889. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3890. :key="sIndex"
  3891. class="noWorksName"
  3892. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3893. >
  3894. <el-tooltip effect="dark" :content="s.student" placement="top">
  3895. <span>{{ s.student }}</span>
  3896. </el-tooltip>
  3897. </div>
  3898. </div>
  3899. </div>
  3900. <div
  3901. v-if="
  3902. tType &&
  3903. ((tType == 2 && sIsOpen == true) ||
  3904. tType == 1 ||
  3905. tType == 4) &&
  3906. tool.tool.indexOf(4) != -1 &&
  3907. (tool.askJson[0].answer ||
  3908. tool.askJson[0].answer === 0) &&
  3909. checkJson[toolIndex].length
  3910. "
  3911. class="xuan_right_box"
  3912. >
  3913. <div
  3914. class="tool_right_box"
  3915. v-for="(item, index) in tool.askJson"
  3916. :key="index"
  3917. >
  3918. <div style="width: calc(100% - 30px);">
  3919. <el-tooltip
  3920. effect="light"
  3921. :content="index + 1 + '、' + item.askstitle"
  3922. placement="top"
  3923. popper-class="text_tooltip"
  3924. >
  3925. <div
  3926. style="
  3927. width: calc(100% - 130px);
  3928. display: block;
  3929. white-space: nowrap;
  3930. overflow: hidden;
  3931. text-overflow: ellipsis;
  3932. word-break: break-word;
  3933. cursor: pointer;
  3934. "
  3935. >
  3936. {{ index + 1 + "、" + item.askstitle }}
  3937. </div>
  3938. </el-tooltip>
  3939. </div>
  3940. <div class="right_box_xuan">
  3941. <span>正确率</span>
  3942. <span>{{
  3943. (checkJson[toolIndex][index].right
  3944. ? checkJson[toolIndex][index].right
  3945. : 0) + "%"
  3946. }}</span>
  3947. </div>
  3948. </div>
  3949. </div>
  3950. <div
  3951. class="xuan_right_box"
  3952. style="background: unset; padding: 0 10px"
  3953. v-if="
  3954. tType &&
  3955. ((tType == 2 && sIsOpen == true) ||
  3956. tType == 1 ||
  3957. tType == 4) &&
  3958. tool.tool.indexOf(4) != -1
  3959. "
  3960. >
  3961. <AskStatic
  3962. v-if="
  3963. worksStudent.length &&
  3964. worksStudent[toolIndex].length > 0
  3965. "
  3966. :askJSON="tool"
  3967. :checkJson="checkJson[toolIndex]"
  3968. ></AskStatic>
  3969. </div>
  3970. <div
  3971. v-if="
  3972. tType &&
  3973. ((tType == 2 && sIsOpen == true) ||
  3974. tType == 1 ||
  3975. tType == 4) &&
  3976. tool.tool.indexOf(4) != -1
  3977. "
  3978. class="worksBox"
  3979. >
  3980. <div
  3981. class="zuoyeYulan"
  3982. v-if="
  3983. worksStudent.length &&
  3984. worksStudent[toolIndex].length > 0
  3985. "
  3986. >
  3987. <div class="worksTop">
  3988. <div>作业预览</div>
  3989. <div
  3990. class="corOpen"
  3991. @click="contract(toolIndex)"
  3992. v-if="
  3993. (isCloseList[toolIndex].isCloseBoolean) &&
  3994. isCloseList[toolIndex].isClose == 0
  3995. "
  3996. >
  3997. 折叠
  3998. </div>
  3999. <div
  4000. class="corOpen"
  4001. @click="contract(toolIndex)"
  4002. v-if="isCloseList[toolIndex].isClose == 1"
  4003. >
  4004. 展开
  4005. </div>
  4006. </div>
  4007. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4008. </div>
  4009. <div>
  4010. <div
  4011. :id="'tool-' + toolIndex"
  4012. :style="{
  4013. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4014. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4015. }"
  4016. class="worksDetailBox"
  4017. v-if="
  4018. worksStudent.length &&
  4019. worksStudent[toolIndex].length > 0
  4020. "
  4021. >
  4022. <div
  4023. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4024. :key="wIndex"
  4025. class="isWorksName2"
  4026. @click="
  4027. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4028. "
  4029. >
  4030. {{ w.sName }}
  4031. <img
  4032. class="deleteImg deleteImg2"
  4033. src="../../assets/deleteworks.png"
  4034. v-if="
  4035. w.userid == userid || tType == 1 || tType == 4
  4036. "
  4037. @click.stop="deleteWorks(w.wid)"
  4038. alt
  4039. />
  4040. </div>
  4041. <!-- <div class="works" style="
  4042. width: 200px;
  4043. height: 140px;
  4044. border-radius: 10px;
  4045. box-shadow: 0 0 6px 1px #dfdada;
  4046. overflow: hidden;
  4047. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4048. <div class="workImg">
  4049. <img src="../../assets/icon/works/noImg.png" @click="
  4050. openTools(
  4051. 4,
  4052. toolIndex,
  4053. taskCount,
  4054. w.works,
  4055. w.sName
  4056. )
  4057. " alt />
  4058. </div>
  4059. <div class="worksName">
  4060. <div>{{ w.sName }}</div>
  4061. <div>{{ w.time }}</div>
  4062. </div>
  4063. </div> -->
  4064. </div>
  4065. </div>
  4066. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4067. 未提交
  4068. </div>
  4069. <div
  4070. class="noWorksS"
  4071. v-if="noWorksS && noWorksS[toolIndex].length"
  4072. >
  4073. <div
  4074. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4075. :key="sIndex"
  4076. class="noWorksName"
  4077. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4078. >
  4079. <el-tooltip effect="dark" :content="s.student" placement="top">
  4080. <span>{{ s.student }}</span>
  4081. </el-tooltip>
  4082. </div>
  4083. </div>
  4084. </div>
  4085. <div
  4086. v-if="
  4087. tType &&
  4088. ((tType == 2 && sIsOpen == true) ||
  4089. tType == 1 ||
  4090. tType == 4) &&
  4091. tool.tool.indexOf(45) != -1 &&
  4092. (tool.testJson.testJson[0].answer ||
  4093. tool.testJson.testJson[0].answer === 0) &&
  4094. checkJson[toolIndex].length
  4095. "
  4096. class="xuan_right_box"
  4097. >
  4098. <div
  4099. class="tool_right_box"
  4100. v-for="(item, index) in tool.testJson.testJson"
  4101. :key="index"
  4102. >
  4103. <div class="right_box_xuan" style="margin-right: 10px">
  4104. <span>正确率</span>
  4105. <span>{{
  4106. (checkJson[toolIndex][index].right
  4107. ? checkJson[toolIndex][index].right
  4108. : 0) + "%"
  4109. }}</span>
  4110. </div>
  4111. <div style="width: calc(100% - 30px);">
  4112. <el-tooltip
  4113. effect="light"
  4114. :content="index + 1 + '、' + item.teststitle"
  4115. placement="top"
  4116. popper-class="text_tooltip"
  4117. >
  4118. <div
  4119. style="
  4120. width: calc(100% - 130px);
  4121. display: block;
  4122. white-space: nowrap;
  4123. overflow: hidden;
  4124. text-overflow: ellipsis;
  4125. word-break: break-word;
  4126. cursor: pointer;
  4127. "
  4128. >
  4129. {{ index + 1 + "、" + item.teststitle }}
  4130. </div>
  4131. </el-tooltip>
  4132. </div>
  4133. </div>
  4134. </div>
  4135. <div
  4136. class="xuan_right_box"
  4137. style="background: unset; padding: 0 10px; width: 91.5%"
  4138. v-if="
  4139. tType &&
  4140. ((tType == 2 && sIsOpen == true) ||
  4141. tType == 1 ||
  4142. tType == 4) &&
  4143. tool.tool.indexOf(45) != -1
  4144. "
  4145. >
  4146. <AskStatic2
  4147. v-if="
  4148. worksStudent.length &&
  4149. worksStudent[toolIndex].length > 0
  4150. "
  4151. :askJSON="tool"
  4152. :checkJson="checkJson[toolIndex]"
  4153. ></AskStatic2>
  4154. </div>
  4155. <div
  4156. v-if="
  4157. tType &&
  4158. ((tType == 2 && sIsOpen == true) ||
  4159. tType == 1 ||
  4160. tType == 4) &&
  4161. tool.tool.indexOf(45) != -1
  4162. "
  4163. class="worksBox"
  4164. >
  4165. <div
  4166. class="zuoyeYulan"
  4167. v-if="
  4168. worksStudent.length &&
  4169. worksStudent[toolIndex].length > 0
  4170. "
  4171. >
  4172. <div class="worksTop">
  4173. <div>作业预览</div>
  4174. <div
  4175. class="corOpen"
  4176. @click="contract(toolIndex)"
  4177. v-if="
  4178. (isCloseList[toolIndex].isCloseBoolean) &&
  4179. isCloseList[toolIndex].isClose == 0
  4180. "
  4181. >
  4182. 折叠
  4183. </div>
  4184. <div
  4185. class="corOpen"
  4186. @click="contract(toolIndex)"
  4187. v-if="isCloseList[toolIndex].isClose == 1"
  4188. >
  4189. 展开
  4190. </div>
  4191. </div>
  4192. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4193. </div>
  4194. <div>
  4195. <div
  4196. :id="'tool-' + toolIndex"
  4197. :style="{
  4198. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4199. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4200. }"
  4201. class="worksDetailBox"
  4202. v-if="
  4203. worksStudent.length &&
  4204. worksStudent[toolIndex].length > 0
  4205. "
  4206. >
  4207. <div
  4208. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4209. :key="wIndex"
  4210. class="isWorksName2"
  4211. @click="
  4212. openTools(
  4213. 45,
  4214. toolIndex,
  4215. taskCount,
  4216. w.works,
  4217. w.sName
  4218. )
  4219. "
  4220. >
  4221. {{ w.sName }}
  4222. <img
  4223. class="deleteImg deleteImg2"
  4224. src="../../assets/deleteworks.png"
  4225. v-if="
  4226. w.userid == userid || tType == 1 || tType == 4
  4227. "
  4228. @click.stop="deleteWorks(w.wid)"
  4229. alt
  4230. />
  4231. </div>
  4232. </div>
  4233. </div>
  4234. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4235. 未提交
  4236. </div>
  4237. <div
  4238. class="noWorksS"
  4239. v-if="noWorksS && noWorksS[toolIndex].length"
  4240. >
  4241. <div
  4242. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4243. :key="sIndex"
  4244. class="noWorksName"
  4245. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4246. >
  4247. <el-tooltip effect="dark" :content="s.student" placement="top">
  4248. <span>{{ s.student }}</span>
  4249. </el-tooltip>
  4250. </div>
  4251. </div>
  4252. </div>
  4253. <div
  4254. v-if="
  4255. tType &&
  4256. ((tType == 2 && sIsOpen == true) ||
  4257. tType == 1 ||
  4258. tType == 4) &&
  4259. tool.tool.indexOf(69) != -1
  4260. "
  4261. class="worksBox"
  4262. >
  4263. <div
  4264. class="zuoyeYulan"
  4265. v-if="
  4266. worksStudent.length &&
  4267. worksStudent[toolIndex].length > 0
  4268. "
  4269. >
  4270. <div class="worksTop">
  4271. <div>作业预览</div>
  4272. <div
  4273. class="corOpen"
  4274. @click="contract(toolIndex)"
  4275. v-if="
  4276. (isCloseList[toolIndex].isCloseBoolean) &&
  4277. isCloseList[toolIndex].isClose == 0
  4278. "
  4279. >
  4280. 折叠
  4281. </div>
  4282. <div
  4283. class="corOpen"
  4284. @click="contract(toolIndex)"
  4285. v-if="isCloseList[toolIndex].isClose == 1"
  4286. >
  4287. 展开
  4288. </div>
  4289. </div>
  4290. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4291. </div>
  4292. <div>
  4293. <div
  4294. :id="'tool-' + toolIndex"
  4295. :style="{
  4296. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4297. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4298. }"
  4299. class="worksDetailBox"
  4300. v-if="
  4301. worksStudent.length &&
  4302. worksStudent[toolIndex].length > 0
  4303. "
  4304. >
  4305. <div
  4306. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4307. :key="wIndex"
  4308. class="isWorksName2"
  4309. style="width: 160px;height: 65px;line-height: 65px;"
  4310. @click="
  4311. openTools(
  4312. 69,
  4313. toolIndex,
  4314. taskCount,
  4315. w.works,
  4316. w.sName,
  4317. w.wid
  4318. )
  4319. "
  4320. >
  4321. {{ w.sName }}
  4322. <img
  4323. class="deleteImg1"
  4324. src="../../assets/evaEnglish.png"
  4325. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4326. alt
  4327. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4328. />
  4329. <img
  4330. class="deleteImg deleteImg2"
  4331. src="../../assets/deleteworks.png"
  4332. v-if="
  4333. w.userid == userid || tType == 1 || tType == 4
  4334. "
  4335. @click.stop="deleteWorks(w.wid)"
  4336. alt
  4337. />
  4338. </div>
  4339. </div>
  4340. </div>
  4341. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4342. 未提交
  4343. </div>
  4344. <div
  4345. class="noWorksS"
  4346. v-if="noWorksS && noWorksS[toolIndex].length"
  4347. >
  4348. <div
  4349. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4350. :key="sIndex"
  4351. class="noWorksName"
  4352. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4353. >
  4354. <el-tooltip effect="dark" :content="s.student" placement="top">
  4355. <span>{{ s.student }}</span>
  4356. </el-tooltip>
  4357. </div>
  4358. </div>
  4359. </div>
  4360. <div
  4361. v-if="
  4362. tType &&
  4363. ((tType == 2 && sIsOpen == true) ||
  4364. tType == 1 ||
  4365. tType == 4) &&
  4366. tool.tool.indexOf(15) != -1
  4367. "
  4368. class="worksBox"
  4369. >
  4370. <div
  4371. class="zuoyeYulan"
  4372. v-if="
  4373. (worksStudent.length &&
  4374. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4375. "
  4376. >
  4377. <div class="worksTop">
  4378. <div>作业预览</div>
  4379. <div
  4380. class="corOpen"
  4381. @click="contract(toolIndex)"
  4382. v-if="
  4383. (isCloseList[toolIndex].isCloseBoolean) &&
  4384. isCloseList[toolIndex].isClose == 0
  4385. "
  4386. >
  4387. 折叠
  4388. </div>
  4389. <div
  4390. class="corOpen"
  4391. @click="contract(toolIndex)"
  4392. v-if="isCloseList[toolIndex].isClose == 1"
  4393. >
  4394. 展开
  4395. </div>
  4396. </div>
  4397. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4398. </div>
  4399. <div
  4400. class="group_workBox"
  4401. v-for="(g, gindex) in courseGroup.group"
  4402. :key="gindex"
  4403. >
  4404. <div class="group_box">
  4405. <div class="group_title">
  4406. <el-tooltip
  4407. class="item"
  4408. effect="light"
  4409. :content="g.name"
  4410. placement="top"
  4411. >
  4412. <div class="group_name">{{ g.name }}</div>
  4413. </el-tooltip>
  4414. </div>
  4415. <div
  4416. class="group_work"
  4417. v-if="
  4418. g.works &&
  4419. g.works.length &&
  4420. g.works[toolIndex].length
  4421. "
  4422. >
  4423. <div
  4424. class="works"
  4425. v-for="(w, wIndex) in g.works[toolIndex]"
  4426. :key="wIndex"
  4427. >
  4428. <div
  4429. class="workImg"
  4430. style="
  4431. border-radius: 15px;
  4432. box-shadow: 0px 0px 5px 5px #eee;
  4433. "
  4434. >
  4435. <div
  4436. class="answerBg"
  4437. style="border-radius: 15px 15px 0 0"
  4438. @click="
  4439. commentOther(w, toolIndex, wIndex, null, g.id)
  4440. "
  4441. >
  4442. <div class="answerContent">
  4443. {{ JSON.parse(w.works)[0].answer }}
  4444. </div>
  4445. <div
  4446. class="answerScore"
  4447. v-if="w.score"
  4448. @click.stop="openScore(w)"
  4449. :class="{
  4450. rightW:
  4451. w.userid == userid ||
  4452. tType == 1 ||
  4453. tType == 4,
  4454. }"
  4455. >
  4456. {{ JSON.parse(w.score).wScore }}分
  4457. </div>
  4458. <div
  4459. class="answerScore"
  4460. @click.stop="openScore(w)"
  4461. v-else-if="courseDetail.userid == userid"
  4462. :class="{
  4463. rightW:
  4464. w.userid == userid ||
  4465. tType == 1 ||
  4466. tType == 4,
  4467. }"
  4468. >
  4469. 评分
  4470. </div>
  4471. <img
  4472. class="deleteImg"
  4473. src="../../assets/deleteworks.png"
  4474. v-if="
  4475. w.userid == userid ||
  4476. tType == 1 ||
  4477. tType == 4
  4478. "
  4479. @click.stop="deleteWorks(w.wid)"
  4480. alt
  4481. />
  4482. </div>
  4483. <div class="comment">
  4484. <div class="worksName">
  4485. <div>{{ w.sName }}</div>
  4486. </div>
  4487. <div class="commentList">
  4488. <div
  4489. class="commentImg"
  4490. @click="
  4491. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4492. "
  4493. >
  4494. <img
  4495. :src="w.isLikes == true ? likes : noLikes"
  4496. alt=""
  4497. />
  4498. </div>
  4499. <div>{{ w.likesCount }}</div>
  4500. </div>
  4501. <div
  4502. class="commentList"
  4503. style="margin-right: 15px"
  4504. >
  4505. <div
  4506. class="commentImg"
  4507. @click="
  4508. commentOther(
  4509. w,
  4510. toolIndex,
  4511. wIndex,
  4512. null,
  4513. g.id
  4514. )
  4515. "
  4516. >
  4517. <img
  4518. src="../../assets/icon/comment/comment.png"
  4519. alt=""
  4520. />
  4521. </div>
  4522. <div>{{ w.commentCount }}</div>
  4523. </div>
  4524. </div>
  4525. </div>
  4526. </div>
  4527. </div>
  4528. <div class="group_work" v-else>暂无提交作业</div>
  4529. </div>
  4530. </div>
  4531. <div
  4532. :id="'tool-' + toolIndex"
  4533. :style="{
  4534. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4535. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4536. }"
  4537. class="worksDetailBox"
  4538. v-if="
  4539. worksStudent.length &&
  4540. worksStudent[toolIndex].length > 0
  4541. "
  4542. >
  4543. <div
  4544. class="works"
  4545. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4546. :key="wIndex"
  4547. >
  4548. <div
  4549. class="workImg"
  4550. style="
  4551. border-radius: 15px;
  4552. box-shadow: 0px 0px 5px 5px #eee;
  4553. "
  4554. >
  4555. <!-- <img
  4556. src="../../assets/icon/works/noImg.png"
  4557. @click="openTools(15, toolIndex, taskCount, w.works)"
  4558. alt=""
  4559. />-->
  4560. <div
  4561. class="answerBg"
  4562. style="border-radius: 15px 15px 0 0"
  4563. @click="commentOther(w, toolIndex, wIndex)"
  4564. >
  4565. <!-- <div>{{ w.sName }}</div> -->
  4566. <div class="answerContent">
  4567. {{ JSON.parse(w.works)[0].answer }}
  4568. </div>
  4569. <div
  4570. class="answerScore"
  4571. v-if="w.score"
  4572. @click.stop="openScore(w)"
  4573. :class="{
  4574. rightW:
  4575. w.userid == userid ||
  4576. tType == 1 ||
  4577. tType == 4,
  4578. }"
  4579. >
  4580. {{ JSON.parse(w.score).wScore }}分
  4581. </div>
  4582. <div
  4583. class="answerScore"
  4584. @click.stop="openScore(w)"
  4585. v-else-if="courseDetail.userid == userid"
  4586. :class="{
  4587. rightW:
  4588. w.userid == userid ||
  4589. tType == 1 ||
  4590. tType == 4,
  4591. }"
  4592. >
  4593. 评分
  4594. </div>
  4595. <img
  4596. class="deleteImg"
  4597. src="../../assets/deleteworks.png"
  4598. v-if="
  4599. w.userid == userid || tType == 1 || tType == 4
  4600. "
  4601. @click.stop="deleteWorks(w.wid)"
  4602. alt
  4603. />
  4604. </div>
  4605. <div class="comment">
  4606. <div class="worksName">
  4607. <div>{{ w.sName }}</div>
  4608. </div>
  4609. <div class="commentList">
  4610. <div
  4611. class="commentImg"
  4612. @click="
  4613. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4614. "
  4615. >
  4616. <img
  4617. :src="w.isLikes == true ? likes : noLikes"
  4618. alt=""
  4619. />
  4620. </div>
  4621. <div>{{ w.likesCount }}</div>
  4622. </div>
  4623. <div class="commentList" style="margin-right: 15px">
  4624. <div
  4625. class="commentImg"
  4626. @click="commentOther(w, toolIndex, wIndex)"
  4627. >
  4628. <img
  4629. src="../../assets/icon/comment/comment.png"
  4630. alt=""
  4631. />
  4632. </div>
  4633. <div>{{ w.commentCount }}</div>
  4634. </div>
  4635. </div>
  4636. </div>
  4637. </div>
  4638. </div>
  4639. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4640. 未提交
  4641. </div>
  4642. <div
  4643. class="noWorksS"
  4644. v-if="noWorksS && noWorksS[toolIndex].length"
  4645. >
  4646. <div
  4647. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4648. :key="sIndex"
  4649. class="noWorksName"
  4650. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4651. >
  4652. <el-tooltip effect="dark" :content="s.student" placement="top">
  4653. <span>{{ s.student }}</span>
  4654. </el-tooltip>
  4655. </div>
  4656. </div>
  4657. </div>
  4658. <div
  4659. v-if="
  4660. tType &&
  4661. ((tType == 2 && sIsOpen == true) ||
  4662. tType == 1 ||
  4663. tType == 4) &&
  4664. tool.tool.indexOf(1) != -1
  4665. "
  4666. class="worksBox"
  4667. >
  4668. <div
  4669. class="zuoyeYulan"
  4670. v-if="
  4671. (worksStudent.length &&
  4672. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4673. "
  4674. >
  4675. <div class="worksTop">
  4676. <div>作业预览</div>
  4677. <div
  4678. class="corOpen"
  4679. @click="contract(toolIndex)"
  4680. v-if="
  4681. (isCloseList[toolIndex].isCloseBoolean) &&
  4682. isCloseList[toolIndex].isClose == 0
  4683. "
  4684. >
  4685. 折叠
  4686. </div>
  4687. <div
  4688. class="corOpen"
  4689. @click="contract(toolIndex)"
  4690. v-if="isCloseList[toolIndex].isClose == 1"
  4691. >
  4692. 展开
  4693. </div>
  4694. </div>
  4695. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4696. </div>
  4697. <div
  4698. class="group_workBox"
  4699. v-for="(g, gindex) in courseGroup.group"
  4700. :key="gindex"
  4701. >
  4702. <div class="group_box">
  4703. <div class="group_title">
  4704. <el-tooltip
  4705. class="item"
  4706. effect="light"
  4707. :content="g.name"
  4708. placement="top"
  4709. >
  4710. <div class="group_name">{{ g.name }}</div>
  4711. </el-tooltip>
  4712. </div>
  4713. <div
  4714. class="group_work"
  4715. v-if="
  4716. g.works &&
  4717. g.works.length &&
  4718. g.works[toolIndex].length
  4719. "
  4720. >
  4721. <div
  4722. class="works"
  4723. style="
  4724. width: 200px;
  4725. height: 140px;
  4726. margin: 10px 10px 10px 0;
  4727. border-radius: 15px;
  4728. box-shadow: 0 0 6px 1px #dfdada;
  4729. "
  4730. v-for="(w, wIndex) in g.works[toolIndex]"
  4731. :key="wIndex"
  4732. :class="w.type == 1 ? 'isTypeOne' : ''"
  4733. >
  4734. <div class="workImg">
  4735. <img
  4736. :src="w.works"
  4737. @click="previewImg(w.works,w)"
  4738. alt
  4739. />
  4740. <div
  4741. class="answerScore"
  4742. v-if="w.score"
  4743. @click.stop="openScore(w)"
  4744. :class="{
  4745. rightW:
  4746. w.userid == userid ||
  4747. tType == 1 ||
  4748. tType == 4,
  4749. }"
  4750. >
  4751. {{ JSON.parse(w.score).wScore }}分
  4752. </div>
  4753. <div
  4754. class="answerScore"
  4755. @click.stop="openScore(w)"
  4756. v-else-if="courseDetail.userid == userid"
  4757. :class="{
  4758. rightW:
  4759. w.userid == userid ||
  4760. tType == 1 ||
  4761. tType == 4,
  4762. }"
  4763. >
  4764. 评分
  4765. </div>
  4766. <img
  4767. class="deleteImg"
  4768. src="../../assets/deleteworks.png"
  4769. v-if="
  4770. w.userid == userid || tType == 1 || tType == 4
  4771. "
  4772. @click.stop="deleteWorks(w.wid)"
  4773. alt
  4774. />
  4775. </div>
  4776. <div class="comment" style="min-width: 200px">
  4777. <div class="worksName">
  4778. <div>{{ w.sName }}</div>
  4779. </div>
  4780. <div class="commentList">
  4781. <div class="commentList">
  4782. <div
  4783. class="commentImg"
  4784. @click="
  4785. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4786. "
  4787. >
  4788. <img
  4789. :src="w.isLikes == true ? likes : noLikes"
  4790. alt=""
  4791. />
  4792. </div>
  4793. <div>{{ w.likesCount }}</div>
  4794. </div>
  4795. <div
  4796. class="commentList"
  4797. style="margin-right: 15px"
  4798. >
  4799. <div
  4800. class="commentImg"
  4801. @click="
  4802. commentOther(
  4803. w,
  4804. toolIndex,
  4805. wIndex,
  4806. null,
  4807. g.id
  4808. )
  4809. "
  4810. >
  4811. <img
  4812. src="../../assets/icon/comment/comment.png"
  4813. alt=""
  4814. />
  4815. </div>
  4816. <div>{{ w.commentCount }}</div>
  4817. </div>
  4818. </div>
  4819. </div>
  4820. </div>
  4821. </div>
  4822. <div class="group_work" v-else>暂无提交作业</div>
  4823. </div>
  4824. </div>
  4825. <div
  4826. :id="'tool-' + toolIndex"
  4827. :style="{
  4828. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4829. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4830. }"
  4831. class="worksDetailBox"
  4832. v-if="
  4833. worksStudent.length &&
  4834. worksStudent[toolIndex].length > 0
  4835. "
  4836. >
  4837. <div
  4838. class="works"
  4839. style="
  4840. width: 200px;
  4841. height: 140px;
  4842. margin: 10px 10px 10px 0;
  4843. border-radius: 15px;
  4844. box-shadow: 0 0 6px 1px #dfdada;
  4845. "
  4846. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4847. :key="wIndex"
  4848. >
  4849. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4850. <div class="workImg">
  4851. <img
  4852. :src="w.works"
  4853. @click="previewImg(w.works,w)"
  4854. alt
  4855. />
  4856. <div
  4857. class="answerScore"
  4858. v-if="w.score"
  4859. @click.stop="openScore(w)"
  4860. :class="{
  4861. rightW:
  4862. w.userid == userid || tType == 1 || tType == 4,
  4863. }"
  4864. >
  4865. {{ JSON.parse(w.score).wScore }}分
  4866. </div>
  4867. <div
  4868. class="answerScore"
  4869. @click.stop="openScore(w)"
  4870. v-else-if="courseDetail.userid == userid"
  4871. :class="{
  4872. rightW:
  4873. w.userid == userid || tType == 1 || tType == 4,
  4874. }"
  4875. >
  4876. 评分
  4877. </div>
  4878. <img
  4879. class="deleteImg"
  4880. src="../../assets/deleteworks.png"
  4881. v-if="
  4882. w.userid == userid || tType == 1 || tType == 4
  4883. "
  4884. @click.stop="deleteWorks(w.wid)"
  4885. alt
  4886. />
  4887. </div>
  4888. <div class="comment" style="min-width: 200px">
  4889. <div class="worksName">
  4890. <div>{{ w.sName }}</div>
  4891. </div>
  4892. <div class="commentList">
  4893. <div class="commentList">
  4894. <div
  4895. class="commentImg"
  4896. @click="
  4897. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4898. "
  4899. >
  4900. <img
  4901. :src="w.isLikes == true ? likes : noLikes"
  4902. alt=""
  4903. />
  4904. </div>
  4905. <div>{{ w.likesCount }}</div>
  4906. </div>
  4907. <div class="commentList" style="margin-right: 15px">
  4908. <div
  4909. class="commentImg"
  4910. @click="commentOther(w, toolIndex, wIndex)"
  4911. >
  4912. <img
  4913. src="../../assets/icon/comment/comment.png"
  4914. alt=""
  4915. />
  4916. </div>
  4917. <div>{{ w.commentCount }}</div>
  4918. </div>
  4919. </div>
  4920. </div>
  4921. </div>
  4922. </div>
  4923. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4924. 未提交
  4925. </div>
  4926. <div
  4927. class="noWorksS"
  4928. v-if="noWorksS && noWorksS[toolIndex].length"
  4929. >
  4930. <div
  4931. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4932. :key="sIndex"
  4933. class="noWorksName"
  4934. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4935. >
  4936. <el-tooltip effect="dark" :content="s.student" placement="top">
  4937. <span>{{ s.student }}</span>
  4938. </el-tooltip>
  4939. </div>
  4940. </div>
  4941. </div>
  4942. <div
  4943. v-if="
  4944. tType &&
  4945. ((tType == 2 && sIsOpen == true) ||
  4946. tType == 1 ||
  4947. tType == 4) &&
  4948. tool.tool.indexOf(3) != -1
  4949. "
  4950. class="worksBox"
  4951. >
  4952. <div
  4953. class="zuoyeYulan"
  4954. v-if="
  4955. (worksStudent.length &&
  4956. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4957. "
  4958. >
  4959. <div class="worksTop">
  4960. <div>作业预览</div>
  4961. <div
  4962. class="corOpen"
  4963. @click="contract(toolIndex)"
  4964. v-if="
  4965. (isCloseList[toolIndex].isCloseBoolean) &&
  4966. isCloseList[toolIndex].isClose == 0
  4967. "
  4968. >
  4969. 折叠
  4970. </div>
  4971. <div
  4972. class="corOpen"
  4973. @click="contract(toolIndex)"
  4974. v-if="isCloseList[toolIndex].isClose == 1"
  4975. >
  4976. 展开
  4977. </div>
  4978. </div>
  4979. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4980. </div>
  4981. <div
  4982. class="group_workBox"
  4983. v-for="(g, gindex) in courseGroup.group"
  4984. :key="gindex"
  4985. >
  4986. <div class="group_box">
  4987. <div class="group_title">
  4988. <el-tooltip
  4989. class="item"
  4990. effect="light"
  4991. :content="g.name"
  4992. placement="top"
  4993. >
  4994. <div class="group_name">{{ g.name }}</div>
  4995. </el-tooltip>
  4996. </div>
  4997. <div
  4998. class="group_work"
  4999. v-if="
  5000. g.works &&
  5001. g.works.length &&
  5002. g.works[toolIndex].length
  5003. "
  5004. >
  5005. <div
  5006. class="works"
  5007. style="
  5008. width: 200px;
  5009. height: 140px;
  5010. margin: 10px 10px 10px 0;
  5011. border-radius: 15px;
  5012. box-shadow: 0 0 6px 1px #dfdada;
  5013. "
  5014. v-for="(w, wIndex) in g.works[toolIndex]"
  5015. :key="wIndex"
  5016. :class="w.type == 1 ? 'isTypeOne' : ''"
  5017. >
  5018. <div class="workImg">
  5019. <img
  5020. :src="w.works"
  5021. @click="previewImg(w.works,w)"
  5022. alt
  5023. />
  5024. <div
  5025. class="answerScore"
  5026. v-if="w.score"
  5027. @click.stop="openScore(w)"
  5028. :class="{
  5029. rightW:
  5030. w.userid == userid ||
  5031. tType == 1 ||
  5032. tType == 4,
  5033. }"
  5034. >
  5035. {{ JSON.parse(w.score).wScore }}分
  5036. </div>
  5037. <div
  5038. class="answerScore"
  5039. @click.stop="openScore(w)"
  5040. v-else-if="courseDetail.userid == userid"
  5041. :class="{
  5042. rightW:
  5043. w.userid == userid ||
  5044. tType == 1 ||
  5045. tType == 4,
  5046. }"
  5047. >
  5048. 评分
  5049. </div>
  5050. <img
  5051. class="deleteImg"
  5052. src="../../assets/deleteworks.png"
  5053. v-if="
  5054. w.userid == userid || tType == 1 || tType == 4
  5055. "
  5056. @click.stop="deleteWorks(w.wid)"
  5057. alt
  5058. />
  5059. </div>
  5060. <div class="comment" style="min-width: 200px">
  5061. <div class="worksName">
  5062. <div>{{ w.sName }}</div>
  5063. </div>
  5064. <div class="commentList">
  5065. <div class="commentList">
  5066. <div
  5067. class="commentImg"
  5068. @click="
  5069. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5070. "
  5071. >
  5072. <img
  5073. :src="w.isLikes == true ? likes : noLikes"
  5074. alt=""
  5075. />
  5076. </div>
  5077. <div>{{ w.likesCount }}</div>
  5078. </div>
  5079. <div
  5080. class="commentList"
  5081. style="margin-right: 15px"
  5082. >
  5083. <div
  5084. class="commentImg"
  5085. @click="
  5086. commentOther(
  5087. w,
  5088. toolIndex,
  5089. wIndex,
  5090. null,
  5091. g.id
  5092. )
  5093. "
  5094. >
  5095. <img
  5096. src="../../assets/icon/comment/comment.png"
  5097. alt=""
  5098. />
  5099. </div>
  5100. <div>{{ w.commentCount }}</div>
  5101. </div>
  5102. </div>
  5103. </div>
  5104. </div>
  5105. </div>
  5106. <div class="group_work" v-else>暂无提交作业</div>
  5107. </div>
  5108. </div>
  5109. <div
  5110. :id="'tool-' + toolIndex"
  5111. :style="{
  5112. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5113. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5114. }"
  5115. class="worksDetailBox"
  5116. v-if="
  5117. worksStudent.length &&
  5118. worksStudent[toolIndex].length > 0
  5119. "
  5120. >
  5121. <div
  5122. class="works"
  5123. style="
  5124. width: 200px;
  5125. height: 140px;
  5126. margin: 10px 10px 10px 0;
  5127. border-radius: 15px;
  5128. box-shadow: 0 0 6px 1px #dfdada;
  5129. "
  5130. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5131. :key="wIndex"
  5132. >
  5133. <!-- @click="previewImg(w.works)" -->
  5134. <div class="workImg">
  5135. <img
  5136. :src="w.works"
  5137. @click="previewImg(w.works,w)"
  5138. alt
  5139. />
  5140. <div
  5141. class="answerScore"
  5142. v-if="w.score"
  5143. @click.stop="openScore(w)"
  5144. :class="{
  5145. rightW:
  5146. w.userid == userid || tType == 1 || tType == 4,
  5147. }"
  5148. >
  5149. {{ JSON.parse(w.score).wScore }}分
  5150. </div>
  5151. <div
  5152. class="answerScore"
  5153. @click.stop="openScore(w)"
  5154. v-else-if="courseDetail.userid == userid"
  5155. :class="{
  5156. rightW:
  5157. w.userid == userid || tType == 1 || tType == 4,
  5158. }"
  5159. >
  5160. 评分
  5161. </div>
  5162. <img
  5163. class="deleteImg"
  5164. src="../../assets/deleteworks.png"
  5165. v-if="
  5166. w.userid == userid || tType == 1 || tType == 4
  5167. "
  5168. @click.stop="deleteWorks(w.wid)"
  5169. alt
  5170. />
  5171. </div>
  5172. <div class="comment" style="min-width: 200px">
  5173. <div class="worksName">
  5174. <div>{{ w.sName }}</div>
  5175. </div>
  5176. <div class="commentList">
  5177. <div class="commentList">
  5178. <div
  5179. class="commentImg"
  5180. @click="
  5181. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5182. "
  5183. >
  5184. <img
  5185. :src="w.isLikes == true ? likes : noLikes"
  5186. alt=""
  5187. />
  5188. </div>
  5189. <div>{{ w.likesCount }}</div>
  5190. </div>
  5191. <div class="commentList" style="margin-right: 15px">
  5192. <div
  5193. class="commentImg"
  5194. @click="commentOther(w, toolIndex, wIndex)"
  5195. >
  5196. <img
  5197. src="../../assets/icon/comment/comment.png"
  5198. alt=""
  5199. />
  5200. </div>
  5201. <div>{{ w.commentCount }}</div>
  5202. </div>
  5203. </div>
  5204. </div>
  5205. </div>
  5206. </div>
  5207. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5208. 未提交
  5209. </div>
  5210. <div
  5211. class="noWorksS"
  5212. v-if="noWorksS && noWorksS[toolIndex].length"
  5213. >
  5214. <div
  5215. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5216. :key="sIndex"
  5217. class="noWorksName"
  5218. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5219. >
  5220. <el-tooltip effect="dark" :content="s.student" placement="top">
  5221. <span>{{ s.student }}</span>
  5222. </el-tooltip>
  5223. </div>
  5224. </div>
  5225. </div>
  5226. <div
  5227. v-if="
  5228. tType &&
  5229. ((tType == 2 && sIsOpen == true) ||
  5230. tType == 1 ||
  5231. tType == 4) &&
  5232. tool.tool.indexOf(6) != -1
  5233. "
  5234. class="worksBox"
  5235. >
  5236. <div
  5237. class="zuoyeYulan"
  5238. v-if="
  5239. (worksStudent.length &&
  5240. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5241. "
  5242. >
  5243. <div class="worksTop">
  5244. <div>作业预览</div>
  5245. <div
  5246. class="corOpen"
  5247. @click="contract(toolIndex)"
  5248. v-if="
  5249. (isCloseList[toolIndex].isCloseBoolean) &&
  5250. isCloseList[toolIndex].isClose == 0
  5251. "
  5252. >
  5253. 折叠
  5254. </div>
  5255. <div
  5256. class="corOpen"
  5257. @click="contract(toolIndex)"
  5258. v-if="isCloseList[toolIndex].isClose == 1"
  5259. >
  5260. 展开
  5261. </div>
  5262. </div>
  5263. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5264. </div>
  5265. <div
  5266. class="group_workBox"
  5267. v-for="(g, gindex) in courseGroup.group"
  5268. :key="gindex"
  5269. >
  5270. <div class="group_box">
  5271. <div class="group_title">
  5272. <el-tooltip
  5273. class="item"
  5274. effect="light"
  5275. :content="g.name"
  5276. placement="top"
  5277. >
  5278. <div class="group_name">{{ g.name }}</div>
  5279. </el-tooltip>
  5280. </div>
  5281. <div
  5282. class="group_work"
  5283. v-if="
  5284. g.works &&
  5285. g.works.length &&
  5286. g.works[toolIndex].length
  5287. "
  5288. >
  5289. <div
  5290. class="works"
  5291. style="
  5292. width: 200px;
  5293. height: 140px;
  5294. margin: 10px 10px 10px 0;
  5295. border-radius: 15px;
  5296. box-shadow: 0 0 6px 1px #dfdada;
  5297. "
  5298. v-for="(w, wIndex) in g.works[toolIndex]"
  5299. :key="wIndex"
  5300. :class="w.type == 1 ? 'isTypeOne' : ''"
  5301. >
  5302. <div class="workImg">
  5303. <img
  5304. :src="w.works"
  5305. @click="previewImg(w.works,w)"
  5306. alt
  5307. />
  5308. <div
  5309. class="answerScore"
  5310. v-if="w.score"
  5311. @click.stop="openScore(w)"
  5312. :class="{
  5313. rightW:
  5314. w.userid == userid ||
  5315. tType == 1 ||
  5316. tType == 4,
  5317. }"
  5318. >
  5319. {{ JSON.parse(w.score).wScore }}分
  5320. </div>
  5321. <div
  5322. class="answerScore"
  5323. @click.stop="openScore(w)"
  5324. v-else-if="courseDetail.userid == userid"
  5325. :class="{
  5326. rightW:
  5327. w.userid == userid ||
  5328. tType == 1 ||
  5329. tType == 4,
  5330. }"
  5331. >
  5332. 评分
  5333. </div>
  5334. <img
  5335. class="deleteImg"
  5336. src="../../assets/deleteworks.png"
  5337. v-if="
  5338. w.userid == userid || tType == 1 || tType == 4
  5339. "
  5340. @click.stop="deleteWorks(w.wid)"
  5341. alt
  5342. />
  5343. </div>
  5344. <div class="comment" style="min-width: 200px">
  5345. <div class="worksName">
  5346. <div>{{ w.sName }}</div>
  5347. </div>
  5348. <div class="commentList">
  5349. <div class="commentList">
  5350. <div
  5351. class="commentImg"
  5352. @click="
  5353. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5354. "
  5355. >
  5356. <img
  5357. :src="w.isLikes == true ? likes : noLikes"
  5358. alt=""
  5359. />
  5360. </div>
  5361. <div>{{ w.likesCount }}</div>
  5362. </div>
  5363. <div
  5364. class="commentList"
  5365. style="margin-right: 15px"
  5366. >
  5367. <div
  5368. class="commentImg"
  5369. @click="
  5370. commentOther(
  5371. w,
  5372. toolIndex,
  5373. wIndex,
  5374. null,
  5375. g.id
  5376. )
  5377. "
  5378. >
  5379. <img
  5380. src="../../assets/icon/comment/comment.png"
  5381. alt=""
  5382. />
  5383. </div>
  5384. <div>{{ w.commentCount }}</div>
  5385. </div>
  5386. </div>
  5387. </div>
  5388. </div>
  5389. </div>
  5390. <div class="group_work" v-else>暂无提交作业</div>
  5391. </div>
  5392. </div>
  5393. <div
  5394. :id="'tool-' + toolIndex"
  5395. :style="{
  5396. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5397. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5398. }"
  5399. class="worksDetailBox"
  5400. v-if="
  5401. worksStudent.length &&
  5402. worksStudent[toolIndex].length > 0
  5403. "
  5404. >
  5405. <div
  5406. class="works"
  5407. style="
  5408. width: 200px;
  5409. height: 140px;
  5410. margin: 10px 10px 10px 0;
  5411. border-radius: 15px;
  5412. box-shadow: 0 0 6px 1px #dfdada;
  5413. "
  5414. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5415. :key="wIndex"
  5416. >
  5417. <!-- @click="previewImg(w.works)" -->
  5418. <div class="workImg">
  5419. <img
  5420. :src="w.works"
  5421. @click="previewImg(w.works,w)"
  5422. alt
  5423. />
  5424. <div
  5425. class="answerScore"
  5426. v-if="w.score"
  5427. @click.stop="openScore(w)"
  5428. :class="{
  5429. rightW:
  5430. w.userid == userid || tType == 1 || tType == 4,
  5431. }"
  5432. >
  5433. {{ JSON.parse(w.score).wScore }}分
  5434. </div>
  5435. <div
  5436. class="answerScore"
  5437. @click.stop="openScore(w)"
  5438. v-else-if="courseDetail.userid == userid"
  5439. :class="{
  5440. rightW:
  5441. w.userid == userid || tType == 1 || tType == 4,
  5442. }"
  5443. >
  5444. 评分
  5445. </div>
  5446. <img
  5447. class="deleteImg"
  5448. src="../../assets/deleteworks.png"
  5449. v-if="
  5450. w.userid == userid || tType == 1 || tType == 4
  5451. "
  5452. @click.stop="deleteWorks(w.wid)"
  5453. alt
  5454. />
  5455. </div>
  5456. <div class="comment" style="min-width: 200px">
  5457. <div class="worksName">
  5458. <div>{{ w.sName }}</div>
  5459. </div>
  5460. <div class="commentList">
  5461. <div class="commentList">
  5462. <div
  5463. class="commentImg"
  5464. @click="
  5465. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5466. "
  5467. >
  5468. <img
  5469. :src="w.isLikes == true ? likes : noLikes"
  5470. alt=""
  5471. />
  5472. </div>
  5473. <div>{{ w.likesCount }}</div>
  5474. </div>
  5475. <div class="commentList" style="margin-right: 15px">
  5476. <div
  5477. class="commentImg"
  5478. @click="commentOther(w, toolIndex, wIndex)"
  5479. >
  5480. <img
  5481. src="../../assets/icon/comment/comment.png"
  5482. alt=""
  5483. />
  5484. </div>
  5485. <div>{{ w.commentCount }}</div>
  5486. </div>
  5487. </div>
  5488. </div>
  5489. </div>
  5490. </div>
  5491. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5492. 未提交
  5493. </div>
  5494. <div
  5495. class="noWorksS"
  5496. v-if="noWorksS && noWorksS[toolIndex].length"
  5497. >
  5498. <div
  5499. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5500. :key="sIndex"
  5501. class="noWorksName"
  5502. >
  5503. <el-tooltip effect="dark" :content="s.student" placement="top">
  5504. <span>{{ s.student }}</span>
  5505. </el-tooltip>
  5506. </div>
  5507. </div>
  5508. </div>
  5509. <div
  5510. v-if="
  5511. tType &&
  5512. ((tType == 2 && sIsOpen == true) ||
  5513. tType == 1 ||
  5514. tType == 4) &&
  5515. tool.tool.indexOf(7) != -1
  5516. "
  5517. class="worksBox"
  5518. >
  5519. <div
  5520. class="zuoyeYulan"
  5521. v-if="
  5522. (worksStudent.length &&
  5523. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5524. "
  5525. >
  5526. <div class="worksTop">
  5527. <div>作业预览</div>
  5528. <div
  5529. class="corOpen"
  5530. @click="contract(toolIndex)"
  5531. v-if="
  5532. (isCloseList[toolIndex].isCloseBoolean) &&
  5533. isCloseList[toolIndex].isClose == 0
  5534. "
  5535. >
  5536. 折叠
  5537. </div>
  5538. <div
  5539. class="corOpen"
  5540. @click="contract(toolIndex)"
  5541. v-if="isCloseList[toolIndex].isClose == 1"
  5542. >
  5543. 展开
  5544. </div>
  5545. </div>
  5546. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5547. </div>
  5548. <div
  5549. class="group_workBox"
  5550. v-for="(g, gindex) in courseGroup.group"
  5551. :key="gindex"
  5552. >
  5553. <div class="group_box">
  5554. <div class="group_title">
  5555. <el-tooltip
  5556. class="item"
  5557. effect="light"
  5558. :content="g.name"
  5559. placement="top"
  5560. >
  5561. <div class="group_name">{{ g.name }}</div>
  5562. </el-tooltip>
  5563. </div>
  5564. <div
  5565. class="group_work"
  5566. v-if="
  5567. g.works &&
  5568. g.works.length &&
  5569. g.works[toolIndex].length
  5570. "
  5571. >
  5572. <div
  5573. class="works"
  5574. style="
  5575. width: 200px;
  5576. height: 140px;
  5577. margin: 10px 10px 10px 0;
  5578. border-radius: 15px;
  5579. box-shadow: 0 0 6px 1px #dfdada;
  5580. "
  5581. v-for="(w, wIndex) in g.works[toolIndex]"
  5582. :key="wIndex"
  5583. :class="w.type == 1 ? 'isTypeOne' : ''"
  5584. >
  5585. <div class="workImg">
  5586. <img
  5587. :src="w.works"
  5588. @click="previewImg(w.works,w)"
  5589. alt
  5590. />
  5591. <div
  5592. class="answerScore"
  5593. v-if="w.score"
  5594. @click.stop="openScore(w)"
  5595. :class="{
  5596. rightW:
  5597. w.userid == userid ||
  5598. tType == 1 ||
  5599. tType == 4,
  5600. }"
  5601. >
  5602. {{ JSON.parse(w.score).wScore }}分
  5603. </div>
  5604. <div
  5605. class="answerScore"
  5606. @click.stop="openScore(w)"
  5607. v-else-if="courseDetail.userid == userid"
  5608. :class="{
  5609. rightW:
  5610. w.userid == userid ||
  5611. tType == 1 ||
  5612. tType == 4,
  5613. }"
  5614. >
  5615. 评分
  5616. </div>
  5617. <img
  5618. class="deleteImg"
  5619. src="../../assets/deleteworks.png"
  5620. v-if="
  5621. w.userid == userid || tType == 1 || tType == 4
  5622. "
  5623. @click.stop="deleteWorks(w.wid)"
  5624. alt
  5625. />
  5626. </div>
  5627. <div class="comment" style="min-width: 200px">
  5628. <div class="worksName">
  5629. <div>{{ w.sName }}</div>
  5630. </div>
  5631. <div class="commentList">
  5632. <div class="commentList">
  5633. <div
  5634. class="commentImg"
  5635. @click="
  5636. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5637. "
  5638. >
  5639. <img
  5640. :src="w.isLikes == true ? likes : noLikes"
  5641. alt=""
  5642. />
  5643. </div>
  5644. <div>{{ w.likesCount }}</div>
  5645. </div>
  5646. <div
  5647. class="commentList"
  5648. style="margin-right: 15px"
  5649. >
  5650. <div
  5651. class="commentImg"
  5652. @click="
  5653. commentOther(
  5654. w,
  5655. toolIndex,
  5656. wIndex,
  5657. null,
  5658. g.id
  5659. )
  5660. "
  5661. >
  5662. <img
  5663. src="../../assets/icon/comment/comment.png"
  5664. alt=""
  5665. />
  5666. </div>
  5667. <div>{{ w.commentCount }}</div>
  5668. </div>
  5669. </div>
  5670. </div>
  5671. </div>
  5672. </div>
  5673. <div class="group_work" v-else>暂无提交作业</div>
  5674. </div>
  5675. </div>
  5676. <div
  5677. :id="'tool-' + toolIndex"
  5678. :style="{
  5679. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5680. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5681. }"
  5682. class="worksDetailBox"
  5683. v-if="
  5684. worksStudent.length &&
  5685. worksStudent[toolIndex].length > 0
  5686. "
  5687. >
  5688. <div
  5689. class="works"
  5690. style="
  5691. width: 200px;
  5692. height: 140px;
  5693. margin: 10px 10px 10px 0;
  5694. border-radius: 15px;
  5695. box-shadow: 0 0 6px 1px #dfdada;
  5696. "
  5697. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5698. :key="wIndex"
  5699. >
  5700. <!-- @click="previewImg(w.works)" -->
  5701. <div class="workImg">
  5702. <img
  5703. :src="w.works"
  5704. @click="previewImg(w.works,w)"
  5705. alt
  5706. />
  5707. <div
  5708. class="answerScore"
  5709. v-if="w.score"
  5710. @click.stop="openScore(w)"
  5711. :class="{
  5712. rightW:
  5713. w.userid == userid || tType == 1 || tType == 4,
  5714. }"
  5715. >
  5716. {{ JSON.parse(w.score).wScore }}分
  5717. </div>
  5718. <div
  5719. class="answerScore"
  5720. @click.stop="openScore(w)"
  5721. v-else-if="courseDetail.userid == userid"
  5722. :class="{
  5723. rightW:
  5724. w.userid == userid || tType == 1 || tType == 4,
  5725. }"
  5726. >
  5727. 评分
  5728. </div>
  5729. <img
  5730. class="deleteImg"
  5731. src="../../assets/deleteworks.png"
  5732. v-if="
  5733. w.userid == userid || tType == 1 || tType == 4
  5734. "
  5735. @click.stop="deleteWorks(w.wid)"
  5736. alt
  5737. />
  5738. </div>
  5739. <div class="comment" style="min-width: 200px">
  5740. <div class="worksName">
  5741. <div>{{ w.sName }}</div>
  5742. </div>
  5743. <div class="commentList">
  5744. <div class="commentList">
  5745. <div
  5746. class="commentImg"
  5747. @click="
  5748. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5749. "
  5750. >
  5751. <img
  5752. :src="w.isLikes == true ? likes : noLikes"
  5753. alt=""
  5754. />
  5755. </div>
  5756. <div>{{ w.likesCount }}</div>
  5757. </div>
  5758. <div class="commentList" style="margin-right: 15px">
  5759. <div
  5760. class="commentImg"
  5761. @click="commentOther(w, toolIndex, wIndex)"
  5762. >
  5763. <img
  5764. src="../../assets/icon/comment/comment.png"
  5765. alt=""
  5766. />
  5767. </div>
  5768. <div>{{ w.commentCount }}</div>
  5769. </div>
  5770. </div>
  5771. </div>
  5772. </div>
  5773. </div>
  5774. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5775. 未提交
  5776. </div>
  5777. <div
  5778. class="noWorksS"
  5779. v-if="noWorksS && noWorksS[toolIndex].length"
  5780. >
  5781. <div
  5782. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5783. :key="sIndex"
  5784. class="noWorksName"
  5785. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5786. >
  5787. <el-tooltip effect="dark" :content="s.student" placement="top">
  5788. <span>{{ s.student }}</span>
  5789. </el-tooltip>
  5790. </div>
  5791. </div>
  5792. </div>
  5793. <div
  5794. v-if="
  5795. tType &&
  5796. ((tType == 2 && sIsOpen == true) ||
  5797. tType == 1 ||
  5798. tType == 4) &&
  5799. tool.tool.indexOf(26) != -1
  5800. "
  5801. class="worksBox"
  5802. >
  5803. <div
  5804. class="zuoyeYulan"
  5805. v-if="
  5806. worksStudent.length &&
  5807. worksStudent[toolIndex].length > 0
  5808. "
  5809. >
  5810. <div class="worksTop">
  5811. <div>作业预览</div>
  5812. <div
  5813. class="corOpen"
  5814. @click="contract(toolIndex)"
  5815. v-if="
  5816. (isCloseList[toolIndex].isCloseBoolean) &&
  5817. isCloseList[toolIndex].isClose == 0
  5818. "
  5819. >
  5820. 折叠
  5821. </div>
  5822. <div
  5823. class="corOpen"
  5824. @click="contract(toolIndex)"
  5825. v-if="isCloseList[toolIndex].isClose == 1"
  5826. >
  5827. 展开
  5828. </div>
  5829. </div>
  5830. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5831. </div>
  5832. <div
  5833. :id="'tool-' + toolIndex"
  5834. :style="{
  5835. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5836. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5837. }"
  5838. class="worksDetailBox"
  5839. v-if="
  5840. worksStudent.length &&
  5841. worksStudent[toolIndex].length > 0
  5842. "
  5843. >
  5844. <div
  5845. class="works"
  5846. style="width: 240px; height: 140px; overflow: hidden"
  5847. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5848. :key="wIndex"
  5849. :class="w.type == 1 ? 'isTypeOne' : ''"
  5850. >
  5851. <div class="workImg" v-if="w.type == 0">
  5852. <img
  5853. :src="w.works"
  5854. @click="previewImg(w.works,w)"
  5855. alt
  5856. />
  5857. <img
  5858. class="deleteImg"
  5859. src="../../assets/deleteworks.png"
  5860. v-if="
  5861. w.userid == userid || tType == 1 || tType == 4
  5862. "
  5863. @click.stop="deleteWorks(w.wid)"
  5864. alt
  5865. />
  5866. </div>
  5867. <div class="workImg" v-if="w.type == 1">
  5868. <img :src="word" @click="openFile(w.works)" alt />
  5869. <img
  5870. class="deleteImg"
  5871. src="../../assets/deleteworks.png"
  5872. v-if="
  5873. w.userid == userid || tType == 1 || tType == 4
  5874. "
  5875. @click.stop="deleteWorks(w.wid)"
  5876. alt
  5877. />
  5878. </div>
  5879. <div class="worksName">
  5880. <div>{{ w.sName }}</div>
  5881. </div>
  5882. </div>
  5883. </div>
  5884. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5885. 未提交
  5886. </div>
  5887. <div
  5888. class="noWorksS"
  5889. v-if="noWorksS && noWorksS[toolIndex].length"
  5890. >
  5891. <div
  5892. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5893. :key="sIndex"
  5894. class="noWorksName"
  5895. >
  5896. <el-tooltip effect="dark" :content="s.student" placement="top">
  5897. <span>{{ s.student }}</span>
  5898. </el-tooltip>
  5899. </div>
  5900. </div>
  5901. </div>
  5902. <div
  5903. v-if="
  5904. tType &&
  5905. ((tType == 2 && sIsOpen == true) ||
  5906. tType == 1 ||
  5907. tType == 4) &&
  5908. tool.tool.indexOf(40) != -1
  5909. "
  5910. class="worksBox"
  5911. >
  5912. <div
  5913. class="zuoyeYulan"
  5914. v-if="
  5915. worksStudent.length &&
  5916. worksStudent[toolIndex].length > 0
  5917. "
  5918. >
  5919. <div class="worksTop">
  5920. <div>作业预览</div>
  5921. <div
  5922. class="corOpen"
  5923. @click="contract(toolIndex)"
  5924. v-if="
  5925. (isCloseList[toolIndex].isCloseBoolean) &&
  5926. isCloseList[toolIndex].isClose == 0
  5927. "
  5928. >
  5929. 折叠
  5930. </div>
  5931. <div
  5932. class="corOpen"
  5933. @click="contract(toolIndex)"
  5934. v-if="isCloseList[toolIndex].isClose == 1"
  5935. >
  5936. 展开
  5937. </div>
  5938. </div>
  5939. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5940. </div>
  5941. <div
  5942. :id="'tool-' + toolIndex"
  5943. :style="{
  5944. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5945. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5946. }"
  5947. class="worksDetailBox"
  5948. v-if="
  5949. worksStudent.length &&
  5950. worksStudent[toolIndex].length > 0
  5951. "
  5952. >
  5953. <div
  5954. class="works"
  5955. style="
  5956. width: 200px;
  5957. height: 140px;
  5958. margin: 10px 10px 10px 0;
  5959. border-radius: 15px;
  5960. box-shadow: 0 0 6px 1px #dfdada;
  5961. "
  5962. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5963. :key="wIndex"
  5964. :class="w.type == 1 ? 'isTypeOne' : ''"
  5965. >
  5966. <div class="workImg">
  5967. <img
  5968. src="../../assets/icon/works/noImg.png"
  5969. @click="openPj(w.works, toolIndex)"
  5970. alt
  5971. />
  5972. <img
  5973. class="deleteImg"
  5974. src="../../assets/deleteworks.png"
  5975. v-if="
  5976. w.userid == userid || tType == 1 || tType == 4
  5977. "
  5978. @click.stop="deleteWorks(w.wid)"
  5979. alt
  5980. />
  5981. </div>
  5982. <div class="comment" style="min-width: 200px">
  5983. <div class="worksName">
  5984. <div>{{ w.sName }}</div>
  5985. </div>
  5986. <div class="commentList">
  5987. <div class="commentList">
  5988. <div
  5989. class="commentImg"
  5990. @click="
  5991. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5992. "
  5993. >
  5994. <img
  5995. :src="w.isLikes == true ? likes : noLikes"
  5996. alt=""
  5997. />
  5998. </div>
  5999. <div>{{ w.likesCount }}</div>
  6000. </div>
  6001. <div class="commentList" style="margin-right: 15px">
  6002. <div
  6003. class="commentImg"
  6004. @click="commentOther(w, toolIndex, wIndex)"
  6005. >
  6006. <img
  6007. src="../../assets/icon/comment/comment.png"
  6008. alt=""
  6009. />
  6010. </div>
  6011. <div>{{ w.commentCount }}</div>
  6012. </div>
  6013. </div>
  6014. </div>
  6015. </div>
  6016. </div>
  6017. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6018. 未提交
  6019. </div>
  6020. <div
  6021. class="noWorksS"
  6022. v-if="noWorksS && noWorksS[toolIndex].length"
  6023. >
  6024. <div
  6025. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6026. :key="sIndex"
  6027. class="noWorksName"
  6028. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6029. >
  6030. <el-tooltip effect="dark" :content="s.student" placement="top">
  6031. <span>{{ s.student }}</span>
  6032. </el-tooltip>
  6033. </div>
  6034. </div>
  6035. </div>
  6036. <div
  6037. v-if="
  6038. tType &&
  6039. tType == 2 &&
  6040. !sIsOpen &&
  6041. tool.tool.indexOf(40) != -1
  6042. "
  6043. class="worksBox"
  6044. >
  6045. <div
  6046. class="zuoyeYulan"
  6047. v-if="workStudent[toolIndex].length > 0"
  6048. >
  6049. <span class="worksTitle">作业预览</span>
  6050. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6051. </div>
  6052. <div
  6053. class="worksDetailBox"
  6054. v-if="workStudent[toolIndex].length > 0"
  6055. >
  6056. <div
  6057. class="works"
  6058. style="
  6059. width: 200px;
  6060. height: 140px;
  6061. margin: 10px 10px 10px 0;
  6062. "
  6063. v-for="(w, wIndex) in workStudent[toolIndex]"
  6064. :key="wIndex"
  6065. >
  6066. <div class="workImg">
  6067. <img
  6068. src="../../assets/icon/works/noImg.png"
  6069. @click="openPj(w.works, toolIndex)"
  6070. alt
  6071. />
  6072. <img
  6073. class="deleteImg"
  6074. src="../../assets/deleteworks.png"
  6075. v-if="
  6076. w.userid == userid || tType == 1 || tType == 4
  6077. "
  6078. @click.stop="deleteWorks(w.wid)"
  6079. alt
  6080. />
  6081. </div>
  6082. <div class="worksName">
  6083. <div>{{ w.sName }}</div>
  6084. </div>
  6085. </div>
  6086. </div>
  6087. </div>
  6088. <div
  6089. v-if="
  6090. tType &&
  6091. ((tType == 2 && sIsOpen == true) ||
  6092. tType == 1 ||
  6093. tType == 4) &&
  6094. tool.tool.indexOf(41) != -1
  6095. "
  6096. >
  6097. <AnswerData2
  6098. v-if="
  6099. worksStudent.length &&
  6100. worksStudent[toolIndex].length > 0
  6101. "
  6102. :problemJson="tool.selectJson.answer"
  6103. :people="worksStudent[toolIndex]"
  6104. ></AnswerData2>
  6105. </div>
  6106. <div
  6107. v-if="
  6108. tType &&
  6109. ((tType == 2 && sIsOpen == true) ||
  6110. tType == 1 ||
  6111. tType == 4) &&
  6112. tool.tool.indexOf(41) != -1
  6113. "
  6114. class="worksBox"
  6115. >
  6116. <div
  6117. class="zuoyeYulan"
  6118. v-if="
  6119. worksStudent.length &&
  6120. worksStudent[toolIndex].length > 0
  6121. "
  6122. >
  6123. <div class="worksTop">
  6124. <div>作业预览</div>
  6125. <div
  6126. class="corOpen"
  6127. @click="contract(toolIndex)"
  6128. v-if="
  6129. (isCloseList[toolIndex].isCloseBoolean) &&
  6130. isCloseList[toolIndex].isClose == 0
  6131. "
  6132. >
  6133. 折叠
  6134. </div>
  6135. <div
  6136. class="corOpen"
  6137. @click="contract(toolIndex)"
  6138. v-if="isCloseList[toolIndex].isClose == 1"
  6139. >
  6140. 展开
  6141. </div>
  6142. </div>
  6143. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6144. </div>
  6145. <div
  6146. :id="'tool-' + toolIndex"
  6147. :style="{
  6148. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6149. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6150. }"
  6151. class="worksDetailBox"
  6152. v-if="
  6153. worksStudent.length &&
  6154. worksStudent[toolIndex].length > 0
  6155. "
  6156. >
  6157. <div
  6158. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6159. :key="wIndex"
  6160. class="isWorksName2"
  6161. @click="openXz(w, toolIndex)"
  6162. >
  6163. {{ w.sName }}
  6164. <img
  6165. class="deleteImg deleteImg2"
  6166. src="../../assets/deleteworks.png"
  6167. v-if="w.userid == userid || tType == 1 || tType == 4"
  6168. @click.stop="deleteWorks(w.wid)"
  6169. alt
  6170. />
  6171. </div>
  6172. <!-- <div
  6173. class="works"
  6174. style="
  6175. width: 200px;
  6176. height: 140px;
  6177. margin: 10px 10px 10px 0;
  6178. border-radius: 15px;
  6179. box-shadow: 0 0 6px 1px #dfdada;
  6180. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6181. :class="w.type == 5 ? 'isTypeOne' : ''">
  6182. <div class="workImg">
  6183. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6184. </div>
  6185. <div class="worksName">
  6186. <div>{{ w.sName }}</div>
  6187. </div>
  6188. </div> -->
  6189. </div>
  6190. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6191. 未提交
  6192. </div>
  6193. <div
  6194. class="noWorksS"
  6195. v-if="noWorksS && noWorksS[toolIndex].length"
  6196. >
  6197. <div
  6198. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6199. :key="sIndex"
  6200. class="noWorksName"
  6201. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6202. >
  6203. <el-tooltip effect="dark" :content="s.student" placement="top">
  6204. <span>{{ s.student }}</span>
  6205. </el-tooltip>
  6206. </div>
  6207. </div>
  6208. </div>
  6209. <div
  6210. v-if="
  6211. tType &&
  6212. tType == 2 &&
  6213. !sIsOpen &&
  6214. tool.tool.indexOf(41) != -1
  6215. "
  6216. class="worksBox"
  6217. >
  6218. <div
  6219. class="zuoyeYulan"
  6220. v-if="workStudent[toolIndex].length > 0"
  6221. >
  6222. <span class="worksTitle">作业预览</span>
  6223. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6224. </div>
  6225. <div
  6226. class="worksDetailBox"
  6227. v-if="workStudent[toolIndex].length > 0"
  6228. >
  6229. <div
  6230. class="works"
  6231. style="
  6232. width: 200px;
  6233. height: 140px;
  6234. margin: 10px 10px 10px 0;
  6235. "
  6236. v-for="(w, wIndex) in workStudent[toolIndex]"
  6237. :key="wIndex"
  6238. >
  6239. <div class="workImg">
  6240. <img
  6241. src="../../assets/icon/works/noImg.png"
  6242. @click="openXz(w, toolIndex)"
  6243. alt
  6244. />
  6245. <img
  6246. class="deleteImg"
  6247. src="../../assets/deleteworks.png"
  6248. v-if="
  6249. w.userid == userid || tType == 1 || tType == 4
  6250. "
  6251. @click.stop="deleteWorks(w.wid)"
  6252. alt
  6253. />
  6254. </div>
  6255. <div class="worksName">
  6256. <div>{{ w.sName }}</div>
  6257. </div>
  6258. </div>
  6259. </div>
  6260. </div>
  6261. <div v-if="false" class="xuan_right_box">
  6262. <div
  6263. class="tool_right_box"
  6264. v-for="(item, index) in tool.sentenceList"
  6265. :key="index"
  6266. >
  6267. <div>
  6268. <span
  6269. style="word-break: break-all; white-space: normal"
  6270. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6271. >
  6272. </div>
  6273. <div class="right_box_xuan">
  6274. <span>正确率</span>
  6275. <span>{{
  6276. (checkJson[toolIndex][index].right
  6277. ? checkJson[toolIndex][index].right
  6278. : 0) + "%"
  6279. }}</span>
  6280. </div>
  6281. <div class="right_box_xuan">
  6282. <span>答对人数</span>
  6283. <span>{{
  6284. checkJson[toolIndex][index].rightPerson.length
  6285. }}</span>
  6286. </div>
  6287. </div>
  6288. </div>
  6289. <div
  6290. v-if="
  6291. tType &&
  6292. ((tType == 2 && sIsOpen == true) ||
  6293. tType == 1 ||
  6294. tType == 4) &&
  6295. tool.tool.indexOf(47) != -1
  6296. "
  6297. >
  6298. <AnswerData
  6299. v-if="
  6300. checkJson[toolIndex].length &&
  6301. (tool.sentenceList || tool.sentenceList.length > 0)
  6302. "
  6303. :people="checkJson[toolIndex]"
  6304. ></AnswerData>
  6305. </div>
  6306. <div
  6307. v-if="
  6308. tType &&
  6309. tType == 2 &&
  6310. !sIsOpen &&
  6311. tool.tool.indexOf(47) != -1
  6312. "
  6313. class="worksBox"
  6314. >
  6315. <div
  6316. class="zuoyeYulan"
  6317. v-if="workStudent[toolIndex].length > 0"
  6318. >
  6319. <span class="worksTitle">作业预览</span>
  6320. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6321. </div>
  6322. <div
  6323. class="worksDetailBox"
  6324. v-if="workStudent[toolIndex].length > 0"
  6325. >
  6326. <div
  6327. class="works"
  6328. style="
  6329. width: 200px;
  6330. height: 140px;
  6331. margin: 10px 10px 10px 0;
  6332. "
  6333. v-for="(w, wIndex) in workStudent[toolIndex]"
  6334. :key="wIndex"
  6335. >
  6336. <!-- @click="openXz(w, toolIndex)" -->
  6337. <div class="workImg" @click="openSen(w, toolIndex)">
  6338. <img src="../../assets/icon/works/noImg.png" alt />
  6339. <img
  6340. class="deleteImg"
  6341. src="../../assets/deleteworks.png"
  6342. v-if="
  6343. w.userid == userid || tType == 1 || tType == 4
  6344. "
  6345. @click.stop="deleteWorks(w.wid)"
  6346. alt
  6347. />
  6348. </div>
  6349. <div class="worksName">
  6350. <div>
  6351. {{ w.sName }}
  6352. </div>
  6353. </div>
  6354. </div>
  6355. </div>
  6356. </div>
  6357. <div
  6358. v-if="
  6359. tType &&
  6360. ((tType == 2 && sIsOpen == true) ||
  6361. tType == 1 ||
  6362. tType == 4) &&
  6363. tool.tool.indexOf(47) != -1
  6364. "
  6365. class="worksBox"
  6366. >
  6367. <div
  6368. class="zuoyeYulan"
  6369. v-if="
  6370. worksStudent.length &&
  6371. worksStudent[toolIndex].length > 0
  6372. "
  6373. >
  6374. <div class="worksTop">
  6375. <div>作业预览</div>
  6376. <div
  6377. class="corOpen"
  6378. @click="contract(toolIndex)"
  6379. v-if="
  6380. (isCloseList[toolIndex].isCloseBoolean) &&
  6381. isCloseList[toolIndex].isClose == 0
  6382. "
  6383. >
  6384. 折叠
  6385. </div>
  6386. <div
  6387. class="corOpen"
  6388. @click="contract(toolIndex)"
  6389. v-if="isCloseList[toolIndex].isClose == 1"
  6390. >
  6391. 展开
  6392. </div>
  6393. </div>
  6394. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6395. </div>
  6396. <div
  6397. :id="'tool-' + toolIndex"
  6398. :style="{
  6399. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6400. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6401. }"
  6402. class="worksDetailBox"
  6403. v-if="
  6404. worksStudent.length &&
  6405. worksStudent[toolIndex].length > 0
  6406. "
  6407. >
  6408. <!-- @click="openXz(w, toolIndex)" -->
  6409. <div
  6410. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6411. :key="wIndex"
  6412. class="isWorksName2"
  6413. @click="openSen(w, toolIndex)"
  6414. >
  6415. {{ w.sName }}
  6416. <img
  6417. class="deleteImg deleteImg2"
  6418. src="../../assets/deleteworks.png"
  6419. v-if="w.userid == userid || tType == 1 || tType == 4"
  6420. @click.stop="deleteWorks(w.wid)"
  6421. alt
  6422. />
  6423. </div>
  6424. </div>
  6425. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6426. 未提交
  6427. </div>
  6428. <div
  6429. class="noWorksS"
  6430. v-if="noWorksS && noWorksS[toolIndex].length"
  6431. >
  6432. <div
  6433. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6434. :key="sIndex"
  6435. class="noWorksName"
  6436. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6437. >
  6438. <el-tooltip effect="dark" :content="s.student" placement="top">
  6439. <span>{{ s.student }}</span>
  6440. </el-tooltip>
  6441. </div>
  6442. </div>
  6443. </div>
  6444. <div
  6445. v-if="
  6446. tType &&
  6447. ((tType == 2 && sIsOpen == true) ||
  6448. tType == 1 ||
  6449. tType == 4) &&
  6450. tool.tool.indexOf(48) != -1
  6451. "
  6452. class="worksBox"
  6453. >
  6454. <div
  6455. class="zuoyeYulan"
  6456. v-if="
  6457. worksStudent.length &&
  6458. worksStudent[toolIndex].length > 0
  6459. "
  6460. >
  6461. <div class="worksTop">
  6462. <div>作业预览</div>
  6463. <div
  6464. class="corOpen"
  6465. @click="contract(toolIndex)"
  6466. v-if="
  6467. (isCloseList[toolIndex].isCloseBoolean) &&
  6468. isCloseList[toolIndex].isClose == 0
  6469. "
  6470. >
  6471. 折叠
  6472. </div>
  6473. <div
  6474. class="corOpen"
  6475. @click="contract(toolIndex)"
  6476. v-if="isCloseList[toolIndex].isClose == 1"
  6477. >
  6478. 展开
  6479. </div>
  6480. </div>
  6481. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6482. </div>
  6483. <div
  6484. :id="'tool-' + toolIndex"
  6485. :style="{
  6486. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6487. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6488. }"
  6489. class="worksDetailBox"
  6490. v-if="
  6491. worksStudent.length &&
  6492. worksStudent[toolIndex].length > 0
  6493. "
  6494. >
  6495. <div
  6496. class="works"
  6497. style="
  6498. width: 200px;
  6499. height: 140px;
  6500. margin: 10px 10px 10px 0;
  6501. border-radius: 15px;
  6502. box-shadow: 0 0 6px 1px #dfdada;
  6503. "
  6504. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6505. :key="wIndex"
  6506. :class="w.type == 1 ? 'isTypeOne' : ''"
  6507. >
  6508. <div class="workImg">
  6509. <img :src="word" @click="openTable(w)" alt />
  6510. <!-- @click="openFile(w.works)" -->
  6511. <div
  6512. class="answerScore"
  6513. v-if="w.score"
  6514. @click.stop="openScore(w)"
  6515. :class="{
  6516. rightW:
  6517. w.userid == userid ||
  6518. tType == 1 ||
  6519. tType == 4 ||
  6520. w.ateacher == userid,
  6521. }"
  6522. >
  6523. {{ JSON.parse(w.score).wScore }}分
  6524. </div>
  6525. <div
  6526. class="answerScore"
  6527. @click.stop="openScore(w)"
  6528. v-else-if="courseDetail.userid == userid"
  6529. :class="{
  6530. rightW:
  6531. w.userid == userid ||
  6532. tType == 1 ||
  6533. tType == 4 ||
  6534. w.ateacher == userid,
  6535. }"
  6536. >
  6537. 评分
  6538. </div>
  6539. <img
  6540. class="deleteImg"
  6541. src="../../assets/deleteworks.png"
  6542. v-if="
  6543. w.userid == userid || tType == 1 || tType == 4
  6544. "
  6545. @click.stop="deleteWorks(w.wid)"
  6546. alt
  6547. />
  6548. </div>
  6549. <div class="comment" style="min-width: 200px">
  6550. <div class="worksName">
  6551. <div>{{ w.sName }}</div>
  6552. </div>
  6553. <div class="commentList">
  6554. <div class="commentList">
  6555. <div
  6556. class="commentImg"
  6557. @click="
  6558. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6559. "
  6560. >
  6561. <img
  6562. :src="w.isLikes == true ? likes : noLikes"
  6563. alt=""
  6564. />
  6565. </div>
  6566. <div>{{ w.likesCount }}</div>
  6567. </div>
  6568. <div class="commentList" style="margin-right: 15px">
  6569. <div
  6570. class="commentImg"
  6571. @click="commentOther(w, toolIndex, wIndex)"
  6572. >
  6573. <img
  6574. src="../../assets/icon/comment/comment.png"
  6575. alt=""
  6576. />
  6577. </div>
  6578. <div>{{ w.commentCount }}</div>
  6579. </div>
  6580. </div>
  6581. </div>
  6582. </div>
  6583. </div>
  6584. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6585. 未提交
  6586. </div>
  6587. <div
  6588. class="noWorksS"
  6589. v-if="noWorksS && noWorksS[toolIndex].length"
  6590. >
  6591. <div
  6592. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6593. :key="sIndex"
  6594. class="noWorksName"
  6595. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6596. >
  6597. <el-tooltip effect="dark" :content="s.student" placement="top">
  6598. <span>{{ s.student }}</span>
  6599. </el-tooltip>
  6600. </div>
  6601. </div>
  6602. </div>
  6603. <div
  6604. v-if="
  6605. tType &&
  6606. tType == 2 &&
  6607. !sIsOpen &&
  6608. tool.tool.indexOf(48) != -1
  6609. "
  6610. class="worksBox"
  6611. >
  6612. <div
  6613. class="zuoyeYulan"
  6614. v-if="workStudent[toolIndex].length > 0"
  6615. >
  6616. <span class="worksTitle">作业预览</span>
  6617. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6618. </div>
  6619. <div
  6620. class="worksDetailBox"
  6621. v-if="workStudent[toolIndex].length > 0"
  6622. >
  6623. <div
  6624. class="works"
  6625. style="
  6626. width: 200px;
  6627. height: 140px;
  6628. margin: 10px 10px 10px 0;
  6629. box-shadow: 0 0 6px 1px #dfdada;
  6630. "
  6631. v-for="(w, wIndex) in workStudent[toolIndex]"
  6632. :key="wIndex"
  6633. >
  6634. <div class="workImg">
  6635. <img :src="word" @click="openTable(w)" alt />
  6636. <div
  6637. class="answerScore"
  6638. v-if="w.score"
  6639. @click.stop="openScore(w)"
  6640. :class="{
  6641. rightW:
  6642. w.userid == userid || tType == 1 || tType == 4,
  6643. }"
  6644. >
  6645. {{ JSON.parse(w.score).wScore }}分
  6646. </div>
  6647. <div
  6648. class="answerScore"
  6649. @click.stop="openScore(w)"
  6650. v-else-if="courseDetail.userid == userid"
  6651. :class="{
  6652. rightW:
  6653. w.userid == userid || tType == 1 || tType == 4,
  6654. }"
  6655. >
  6656. 评分
  6657. </div>
  6658. <img
  6659. class="deleteImg"
  6660. src="../../assets/deleteworks.png"
  6661. v-if="
  6662. w.userid == userid || tType == 1 || tType == 4
  6663. "
  6664. @click.stop="deleteWorks(w.wid)"
  6665. alt
  6666. />
  6667. </div>
  6668. <div class="worksName">
  6669. <div>{{ w.sName }}</div>
  6670. </div>
  6671. </div>
  6672. </div>
  6673. </div>
  6674. <div
  6675. v-if="
  6676. tType &&
  6677. ((tType == 2 && sIsOpen == true) ||
  6678. tType == 1 ||
  6679. tType == 4) &&
  6680. tool.tool.indexOf(52) != -1
  6681. "
  6682. class="worksBox"
  6683. >
  6684. <div
  6685. class="zuoyeYulan"
  6686. v-if="
  6687. worksStudent.length &&
  6688. worksStudent[toolIndex].length > 0
  6689. "
  6690. >
  6691. <div class="worksTop">
  6692. <div>作业预览</div>
  6693. <div
  6694. class="corOpen"
  6695. @click="contract(toolIndex)"
  6696. v-if="
  6697. (isCloseList[toolIndex].isCloseBoolean) &&
  6698. isCloseList[toolIndex].isClose == 0
  6699. "
  6700. >
  6701. 折叠
  6702. </div>
  6703. <div
  6704. class="corOpen"
  6705. @click="contract(toolIndex)"
  6706. v-if="isCloseList[toolIndex].isClose == 1"
  6707. >
  6708. 展开
  6709. </div>
  6710. </div>
  6711. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6712. </div>
  6713. <div
  6714. :id="'tool-' + toolIndex"
  6715. :style="{
  6716. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6717. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6718. }"
  6719. class="worksDetailBox"
  6720. v-if="
  6721. worksStudent.length &&
  6722. worksStudent[toolIndex].length > 0
  6723. "
  6724. >
  6725. <div
  6726. class="works"
  6727. style="
  6728. width: 200px;
  6729. height: 140px;
  6730. margin: 10px 10px 10px 0;
  6731. border-radius: 15px;
  6732. box-shadow: 0 0 6px 1px #dfdada;
  6733. "
  6734. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6735. :key="wIndex"
  6736. :class="w.type == 1 ? 'isTypeOne' : ''"
  6737. >
  6738. <div class="workImg">
  6739. <img :src="word" @click="openWord(w)" alt />
  6740. <!-- @click="openFile(w.works)" -->
  6741. <div
  6742. class="answerScore"
  6743. v-if="w.score"
  6744. @click.stop="openScore(w)"
  6745. :class="{
  6746. rightW:
  6747. w.userid == userid ||
  6748. tType == 1 ||
  6749. tType == 4 ||
  6750. w.ateacher == userid,
  6751. }"
  6752. >
  6753. {{ JSON.parse(w.score).wScore }}分
  6754. </div>
  6755. <div
  6756. class="answerScore"
  6757. @click.stop="openScore(w)"
  6758. v-else-if="courseDetail.userid == userid"
  6759. :class="{
  6760. rightW:
  6761. w.userid == userid ||
  6762. tType == 1 ||
  6763. tType == 4 ||
  6764. w.ateacher == userid,
  6765. }"
  6766. >
  6767. 评分
  6768. </div>
  6769. <img
  6770. class="deleteImg"
  6771. src="../../assets/deleteworks.png"
  6772. v-if="
  6773. w.userid == userid || tType == 1 || tType == 4
  6774. "
  6775. @click.stop="deleteWorks(w.wid)"
  6776. alt
  6777. />
  6778. </div>
  6779. <div class="comment" style="min-width: 200px">
  6780. <div class="worksName">
  6781. <div>{{ w.sName }}</div>
  6782. </div>
  6783. <div class="commentList">
  6784. <div class="commentList">
  6785. <div
  6786. class="commentImg"
  6787. @click="
  6788. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6789. "
  6790. >
  6791. <img
  6792. :src="w.isLikes == true ? likes : noLikes"
  6793. alt=""
  6794. />
  6795. </div>
  6796. <div>{{ w.likesCount }}</div>
  6797. </div>
  6798. <div class="commentList" style="margin-right: 15px">
  6799. <div
  6800. class="commentImg"
  6801. @click="commentOther(w, toolIndex, wIndex)"
  6802. >
  6803. <img
  6804. src="../../assets/icon/comment/comment.png"
  6805. alt=""
  6806. />
  6807. </div>
  6808. <div>{{ w.commentCount }}</div>
  6809. </div>
  6810. </div>
  6811. </div>
  6812. </div>
  6813. </div>
  6814. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6815. 未提交
  6816. </div>
  6817. <div
  6818. class="noWorksS"
  6819. v-if="noWorksS && noWorksS[toolIndex].length"
  6820. >
  6821. <div
  6822. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6823. :key="sIndex"
  6824. class="noWorksName"
  6825. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6826. >
  6827. <el-tooltip effect="dark" :content="s.student" placement="top">
  6828. <span>{{ s.student }}</span>
  6829. </el-tooltip>
  6830. </div>
  6831. </div>
  6832. </div>
  6833. <div
  6834. v-if="
  6835. tType &&
  6836. tType == 2 &&
  6837. !sIsOpen &&
  6838. tool.tool.indexOf(52) != -1
  6839. "
  6840. class="worksBox"
  6841. >
  6842. <div
  6843. class="zuoyeYulan"
  6844. v-if="workStudent[toolIndex].length > 0"
  6845. >
  6846. <span class="worksTitle">作业预览</span>
  6847. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6848. </div>
  6849. <div
  6850. class="worksDetailBox"
  6851. v-if="workStudent[toolIndex].length > 0"
  6852. >
  6853. <div
  6854. class="works"
  6855. style="
  6856. width: 200px;
  6857. height: 140px;
  6858. margin: 10px 10px 10px 0;
  6859. box-shadow: 0 0 6px 1px #dfdada;
  6860. "
  6861. v-for="(w, wIndex) in workStudent[toolIndex]"
  6862. :key="wIndex"
  6863. >
  6864. <div class="workImg">
  6865. <img :src="word" @click="openWord(w)" alt />
  6866. <div
  6867. class="answerScore"
  6868. v-if="w.score"
  6869. @click.stop="openScore(w)"
  6870. :class="{
  6871. rightW:
  6872. w.userid == userid || tType == 1 || tType == 4,
  6873. }"
  6874. >
  6875. {{ JSON.parse(w.score).wScore }}分
  6876. </div>
  6877. <div
  6878. class="answerScore"
  6879. @click.stop="openScore(w)"
  6880. v-else-if="courseDetail.userid == userid"
  6881. :class="{
  6882. rightW:
  6883. w.userid == userid || tType == 1 || tType == 4,
  6884. }"
  6885. >
  6886. 评分
  6887. </div>
  6888. <img
  6889. class="deleteImg"
  6890. src="../../assets/deleteworks.png"
  6891. v-if="
  6892. w.userid == userid || tType == 1 || tType == 4
  6893. "
  6894. @click.stop="deleteWorks(w.wid)"
  6895. alt
  6896. />
  6897. </div>
  6898. <div class="worksName">
  6899. <div>{{ w.sName }}</div>
  6900. </div>
  6901. </div>
  6902. </div>
  6903. </div>
  6904. <div
  6905. v-if="tool.tool.indexOf(49) != -1"
  6906. class="xuan_right_box"
  6907. style="margin: 0 15px 0 25px; width: 93%"
  6908. >
  6909. <div
  6910. v-if="courseDetail.userid == userid"
  6911. style="
  6912. display: flex;
  6913. justify-content: flex-end;
  6914. margin-right: 10px;
  6915. "
  6916. >
  6917. <el-button
  6918. type="primary"
  6919. size="small"
  6920. @click="addTools(49, toolIndex, taskCount)"
  6921. >分组设置</el-button
  6922. >
  6923. </div>
  6924. <div
  6925. v-if="groupStudentUid[toolIndex]"
  6926. class="group_staic_box"
  6927. >
  6928. <div
  6929. v-for="(gp, gd) in tool.groupJson.group"
  6930. :key="gd"
  6931. class="group_staic"
  6932. >
  6933. <span> {{ gp.name }}</span>
  6934. <span>
  6935. 目前人数{{
  6936. groupStudentUid[toolIndex][gd].length
  6937. }}人</span
  6938. >
  6939. </div>
  6940. </div>
  6941. </div>
  6942. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6943. <div
  6944. class="zuoyeYulan"
  6945. v-if="
  6946. worksStudent.length &&
  6947. worksStudent[toolIndex].length > 0
  6948. "
  6949. >
  6950. <span class="worksTitle">作业预览</span>
  6951. </div>
  6952. <div>
  6953. <div
  6954. class="group_workBox"
  6955. v-for="(g, gindex) in tool.groupJson.group"
  6956. :key="gindex"
  6957. >
  6958. <div
  6959. class="group_box"
  6960. v-if="
  6961. groupStudentUid[toolIndex] &&
  6962. worksStudent[toolIndex] &&
  6963. (worksStudent[toolIndex][gindex].length ||
  6964. groupStudentUid[toolIndex][gindex].indexOf(
  6965. userid
  6966. ) != -1)
  6967. "
  6968. >
  6969. <div class="group_title">
  6970. <el-tooltip
  6971. class="item"
  6972. effect="light"
  6973. :content="g.name"
  6974. placement="top"
  6975. >
  6976. <div class="group_name">{{ g.name }}</div>
  6977. </el-tooltip>
  6978. <el-button
  6979. type="primary"
  6980. v-if="
  6981. groupStudentUid[toolIndex][gindex].indexOf(
  6982. userid
  6983. ) != -1
  6984. "
  6985. @click="groupUpload(toolIndex, taskCount, gindex)"
  6986. >上传作业</el-button
  6987. >
  6988. </div>
  6989. <div class="group_work">
  6990. <div
  6991. class="works"
  6992. style="
  6993. width: 200px;
  6994. height: 140px;
  6995. margin: 10px 10px 10px 0;
  6996. border-radius: 15px;
  6997. box-shadow: 0 0 6px 1px #dfdada;
  6998. "
  6999. v-for="(w, wIndex) in worksStudent[toolIndex][
  7000. gindex
  7001. ]"
  7002. :key="wIndex"
  7003. :class="w.type == 1 ? 'isTypeOne' : ''"
  7004. >
  7005. <div class="workImg" v-if="w.type == 0">
  7006. <img
  7007. :src="w.works"
  7008. @click="previewImg(w.works,w)"
  7009. alt
  7010. />
  7011. <div
  7012. class="answerScore"
  7013. v-if="w.score"
  7014. @click.stop="openScore(w)"
  7015. :class="{
  7016. rightW:
  7017. w.userid == userid ||
  7018. tType == 1 ||
  7019. tType == 4 ||
  7020. w.ateacher == userid,
  7021. }"
  7022. >
  7023. {{ JSON.parse(w.score).wScore }}分
  7024. </div>
  7025. <div
  7026. class="answerScore"
  7027. @click.stop="openScore(w)"
  7028. v-else-if="courseDetail.userid == userid"
  7029. :class="{
  7030. rightW:
  7031. w.userid == userid ||
  7032. tType == 1 ||
  7033. tType == 4 ||
  7034. w.ateacher == userid,
  7035. }"
  7036. >
  7037. 评分
  7038. </div>
  7039. <img
  7040. class="deleteImg"
  7041. src="../../assets/deleteworks.png"
  7042. v-if="
  7043. w.userid == userid ||
  7044. tType == 1 ||
  7045. tType == 4
  7046. "
  7047. @click.stop="deleteWorks(w.wid)"
  7048. alt
  7049. />
  7050. </div>
  7051. <div class="workImg" v-if="w.type == 1">
  7052. <img
  7053. :src="word"
  7054. @click="openFile(w.works)"
  7055. alt
  7056. />
  7057. <!-- @click="openFile(w.works)" -->
  7058. <div
  7059. class="answerScore"
  7060. v-if="w.score"
  7061. @click.stop="openScore(w)"
  7062. :class="{
  7063. rightW:
  7064. w.userid == userid ||
  7065. tType == 1 ||
  7066. tType == 4 ||
  7067. w.ateacher == userid,
  7068. }"
  7069. >
  7070. {{ JSON.parse(w.score).wScore }}分
  7071. </div>
  7072. <div
  7073. class="answerScore"
  7074. @click.stop="openScore(w)"
  7075. v-else-if="courseDetail.userid == userid"
  7076. :class="{
  7077. rightW:
  7078. w.userid == userid ||
  7079. tType == 1 ||
  7080. tType == 4 ||
  7081. w.ateacher == userid,
  7082. }"
  7083. >
  7084. 评分
  7085. </div>
  7086. <img
  7087. class="deleteImg"
  7088. src="../../assets/deleteworks.png"
  7089. v-if="
  7090. w.userid == userid ||
  7091. tType == 1 ||
  7092. tType == 4
  7093. "
  7094. @click.stop="deleteWorks(w.wid)"
  7095. alt
  7096. />
  7097. </div>
  7098. <div class="workImg" v-if="w.type == 3">
  7099. <img
  7100. style="cursor: pointer"
  7101. :src="video"
  7102. @click="openVideo(w)"
  7103. alt
  7104. />
  7105. <!-- @click="openVideo(w.works)" -->
  7106. <div
  7107. class="answerScore"
  7108. v-if="w.score"
  7109. @click.stop="openScore(w)"
  7110. :class="{
  7111. rightW:
  7112. w.userid == userid ||
  7113. tType == 1 ||
  7114. tType == 4 ||
  7115. w.ateacher == userid,
  7116. }"
  7117. >
  7118. {{ JSON.parse(w.score).wScore }}分
  7119. </div>
  7120. <div
  7121. class="answerScore"
  7122. @click.stop="openScore(w)"
  7123. v-else-if="courseDetail.userid == userid"
  7124. :class="{
  7125. rightW:
  7126. w.userid == userid ||
  7127. tType == 1 ||
  7128. tType == 4 ||
  7129. w.ateacher == userid,
  7130. }"
  7131. >
  7132. 评分
  7133. </div>
  7134. <img
  7135. class="deleteImg"
  7136. src="../../assets/deleteworks.png"
  7137. v-if="
  7138. w.userid == userid ||
  7139. tType == 1 ||
  7140. tType == 4
  7141. "
  7142. @click.stop="deleteWorks(w.wid)"
  7143. alt
  7144. />
  7145. </div>
  7146. <div class="workImg" v-if="w.type == 12">
  7147. <img
  7148. style="cursor: pointer"
  7149. :src="word2"
  7150. @click="downloadFile(w.works)"
  7151. alt
  7152. />
  7153. <!-- @click="openVideo(w.works)" -->
  7154. <div
  7155. class="answerScore"
  7156. v-if="w.score"
  7157. @click.stop="openScore(w)"
  7158. :class="{
  7159. rightW:
  7160. w.userid == userid ||
  7161. tType == 1 ||
  7162. tType == 4 ||
  7163. w.ateacher == userid,
  7164. }"
  7165. >
  7166. {{ JSON.parse(w.score).wScore }}分
  7167. </div>
  7168. <div
  7169. class="answerScore"
  7170. @click.stop="openScore(w)"
  7171. v-else-if="courseDetail.userid == userid"
  7172. :class="{
  7173. rightW:
  7174. w.userid == userid ||
  7175. tType == 1 ||
  7176. tType == 4 ||
  7177. w.ateacher == userid,
  7178. }"
  7179. >
  7180. 评分
  7181. </div>
  7182. <img
  7183. class="deleteImg"
  7184. src="../../assets/deleteworks.png"
  7185. v-if="
  7186. w.userid == userid ||
  7187. tType == 1 ||
  7188. tType == 4
  7189. "
  7190. @click.stop="deleteWorks(w.wid)"
  7191. alt
  7192. />
  7193. </div>
  7194. <div class="comment" style="min-width: 200px">
  7195. <div class="worksName">
  7196. <div>{{ w.sName }}</div>
  7197. </div>
  7198. <div class="commentList">
  7199. <div class="commentList">
  7200. <div
  7201. class="commentImg"
  7202. @click="
  7203. isLikes(
  7204. w.wid,
  7205. userid,
  7206. 1,
  7207. null,
  7208. w.isLikes,
  7209. w.sName
  7210. )
  7211. "
  7212. >
  7213. <img
  7214. :src="
  7215. w.isLikes == true ? likes : noLikes
  7216. "
  7217. alt=""
  7218. />
  7219. </div>
  7220. <div>{{ w.likesCount }}</div>
  7221. </div>
  7222. <div
  7223. class="commentList"
  7224. style="margin-right: 15px"
  7225. >
  7226. <div
  7227. class="commentImg"
  7228. @click="
  7229. commentOther(
  7230. w,
  7231. toolIndex,
  7232. wIndex,
  7233. gindex
  7234. )
  7235. "
  7236. >
  7237. <img
  7238. src="../../assets/icon/comment/comment.png"
  7239. alt=""
  7240. />
  7241. </div>
  7242. <div>{{ w.commentCount }}</div>
  7243. </div>
  7244. </div>
  7245. </div>
  7246. </div>
  7247. </div>
  7248. </div>
  7249. </div>
  7250. </div>
  7251. </div>
  7252. </div>
  7253. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7254. 上传文件
  7255. <input
  7256. type="file"
  7257. accept="image/png, image/gif, image/jpeg"
  7258. style="display: none"
  7259. @change="beforeUpload1($event, 2, index)"
  7260. />
  7261. </div>-->
  7262. </div>
  7263. </div>
  7264. <!-- <div
  7265. class="vedioBox"
  7266. style="margin-top: 10px"
  7267. v-if="
  7268. courseDetail.userid == userid ||
  7269. (courseDetail.course_teacher &&
  7270. courseDetail.course_teacher.indexOf(userid) != -1)
  7271. "
  7272. :style="{
  7273. borderRadius:
  7274. !(
  7275. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7276. .toolChoose[0].tool &&
  7277. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7278. .toolChoose[0].tool.length > 0
  7279. ) &&
  7280. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7281. .taskDetail == '' &&
  7282. vChapterData[taskCount].length == 0 &&
  7283. fileC[taskCount].length == 0
  7284. ? '0 0 20px 20px'
  7285. : '20px',
  7286. }"
  7287. >
  7288. <div
  7289. class="queTop"
  7290. @click="isClose = !isClose"
  7291. style="
  7292. padding: 15px 0 15px 37px;
  7293. justify-content: space-between;
  7294. "
  7295. >
  7296. <div class="queTopTitle">新增工具</div>
  7297. <div class="queTopRight">
  7298. <div class="queTopClose" v-if="isClose == 0">
  7299. 展开
  7300. <div class="closeImg">
  7301. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7302. </div>
  7303. </div>
  7304. <div class="queTopClose" v-if="isClose == 1">
  7305. 折叠
  7306. <div class="openImg">
  7307. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7308. </div>
  7309. </div>
  7310. <el-button
  7311. style="margin: 0 30px 0 auto"
  7312. type="primary"
  7313. size="small"
  7314. v-if="isClose == 1 && checktoolArray.length > 0"
  7315. @click.stop="addToolChoose"
  7316. >确定</el-button
  7317. >
  7318. </div>
  7319. </div>
  7320. <div
  7321. class="tool_work_box"
  7322. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7323. >
  7324. <div class="tool_box">
  7325. <div class="tool_type_box">
  7326. <div class="chooseWho">
  7327. <div
  7328. :class="toolType == 0 ? 'isChooseActive' : ''"
  7329. @click="(toolType = 0), $forceUpdate()"
  7330. >
  7331. 互动类
  7332. </div>
  7333. <div
  7334. :class="toolType == 1 ? 'isChooseActive' : ''"
  7335. @click="(toolType = 1), $forceUpdate()"
  7336. >
  7337. 思维类
  7338. </div>
  7339. <div
  7340. :class="toolType == 2 ? 'isChooseActive' : ''"
  7341. @click="(toolType = 2), $forceUpdate()"
  7342. >
  7343. 测评类
  7344. </div>
  7345. <div
  7346. :class="toolType == 3 ? 'isChooseActive' : ''"
  7347. @click="(toolType = 3), $forceUpdate()"
  7348. >
  7349. 编程类
  7350. </div>
  7351. <div
  7352. :class="toolType == 5 ? 'isChooseActive' : ''"
  7353. @click="(toolType = 5), $forceUpdate()"
  7354. >
  7355. 学科类
  7356. </div>
  7357. </div>
  7358. </div>
  7359. <div>
  7360. <div class="toolSort" v-if="toolType == 0">
  7361. <div class="tool">
  7362. <div class="whiteBIcon" @click="addTools2(10)">
  7363. <img
  7364. src="../../assets/icon/thirdToolList/time.png"
  7365. alt
  7366. />
  7367. <div style="margin: 5px 0">倒计时</div>
  7368. </div>
  7369. <div class="check" @click="addTools2(10)">
  7370. <img
  7371. src="../../assets/icon/checkNo.png"
  7372. alt
  7373. v-if="checktoolArray.indexOf(10) == -1"
  7374. />
  7375. <div class="checkDiv" v-else>
  7376. <img src="../../assets/icon/checkedIs.png" alt /><span
  7377. >已选择</span
  7378. >
  7379. </div>
  7380. </div>
  7381. </div>
  7382. <div class="tool">
  7383. <div class="whiteBIcon" @click="addTools2(65)">
  7384. <img
  7385. src="../../assets/icon/firstToolList/pickPeople.png"
  7386. alt
  7387. />
  7388. <div style="margin: 5px 0">挑人</div>
  7389. </div>
  7390. <div class="check" @click="addTools2(65)">
  7391. <img
  7392. src="../../assets/icon/checkNo.png"
  7393. alt
  7394. v-if="checktoolArray.indexOf(65) == -1"
  7395. />
  7396. <div class="checkDiv" v-else>
  7397. <img src="../../assets/icon/checkedIs.png" alt /><span
  7398. >已选择</span
  7399. >
  7400. </div>
  7401. </div>
  7402. </div>
  7403. </div>
  7404. <div class="toolSort" v-if="toolType == 1">
  7405. <div class="tool">
  7406. <div class="whiteBIcon" @click="addTools2(7)">
  7407. <img
  7408. src="../../assets/icon/secondToolList/mindNetwork.png"
  7409. alt
  7410. />
  7411. <div style="margin: 5px 0">思维网格</div>
  7412. </div>
  7413. <div class="check" @click="addTools2(7)">
  7414. <img
  7415. src="../../assets/icon/checkNo.png"
  7416. alt
  7417. v-if="checktoolArray.indexOf(7) == -1"
  7418. />
  7419. <div class="checkDiv" v-else>
  7420. <img src="../../assets/icon/checkedIs.png" alt /><span
  7421. >已选择</span
  7422. >
  7423. </div>
  7424. </div>
  7425. </div>
  7426. <div class="tool">
  7427. <div class="whiteBIcon" @click="addTools2(1)">
  7428. <img
  7429. src="../../assets/icon/secondToolList/whiteBoard.png"
  7430. alt
  7431. />
  7432. <div style="margin: 5px 0">电子白板</div>
  7433. </div>
  7434. <div class="check" @click="addTools2(1)">
  7435. <img
  7436. src="../../assets/icon/checkNo.png"
  7437. alt
  7438. v-if="checktoolArray.indexOf(1) == -1"
  7439. />
  7440. <div class="checkDiv" v-else>
  7441. <img src="../../assets/icon/checkedIs.png" alt /><span
  7442. >已选择</span
  7443. >
  7444. </div>
  7445. </div>
  7446. </div>
  7447. <div class="tool">
  7448. <div class="whiteBIcon" @click="addTools2(52)">
  7449. <img
  7450. src="../../assets/icon/fourthToolList/text.png"
  7451. alt
  7452. />
  7453. <div style="margin: 5px 0">文档</div>
  7454. </div>
  7455. <div class="check" @click="addTools2(52)">
  7456. <img
  7457. src="../../assets/icon/checkNo.png"
  7458. alt
  7459. v-if="checktoolArray.indexOf(52) == -1"
  7460. />
  7461. <div class="checkDiv" v-else>
  7462. <img src="../../assets/icon/checkedIs.png" alt /><span
  7463. >已选择</span
  7464. >
  7465. </div>
  7466. </div>
  7467. </div>
  7468. <div class="tool">
  7469. <div class="whiteBIcon" @click="addTools2(3)">
  7470. <img
  7471. src="../../assets/icon/secondToolList/mindMapping.png"
  7472. alt
  7473. />
  7474. <div style="margin: 5px 0">思维导图</div>
  7475. </div>
  7476. <div class="check" @click="addTools2(3)">
  7477. <img
  7478. src="../../assets/icon/checkNo.png"
  7479. alt
  7480. v-if="checktoolArray.indexOf(3) == -1"
  7481. />
  7482. <div class="checkDiv" v-else>
  7483. <img src="../../assets/icon/checkedIs.png" alt /><span
  7484. >已选择</span
  7485. >
  7486. </div>
  7487. </div>
  7488. </div>
  7489. <div class="tool">
  7490. <div class="whiteBIcon" @click="addTools2(48)">
  7491. <img
  7492. src="../../assets/icon/fourthToolList/table.png"
  7493. alt
  7494. />
  7495. <div style="margin: 5px 0">表格</div>
  7496. </div>
  7497. <div class="check" @click="addTools2(48)">
  7498. <img
  7499. src="../../assets/icon/checkNo.png"
  7500. alt
  7501. v-if="checktoolArray.indexOf(48) == -1"
  7502. />
  7503. <div class="checkDiv" v-else>
  7504. <img src="../../assets/icon/checkedIs.png" alt /><span
  7505. >已选择</span
  7506. >
  7507. </div>
  7508. </div>
  7509. </div>
  7510. </div>
  7511. <div class="toolSort" v-if="toolType == 6">
  7512. <div v-show="tooC == 49">
  7513. <img
  7514. @click="addTools(tooC, toolIndex, taskCount)"
  7515. src="../../assets/icon/fourthToolList/group.png"
  7516. alt
  7517. />
  7518. <div style="margin: 5px 0">学生分组</div>
  7519. </div>
  7520. </div>
  7521. <div class="toolSort" v-if="toolType == 2">
  7522. <div class="tool">
  7523. <div class="whiteBIcon" @click="addTools2(16)">
  7524. <img
  7525. src="../../assets/icon/thirdToolList/work.png"
  7526. alt
  7527. />
  7528. <div style="margin: 5px 0">作业提交</div>
  7529. </div>
  7530. <div class="check" @click="addTools2(16)">
  7531. <img
  7532. src="../../assets/icon/checkNo.png"
  7533. alt
  7534. v-if="checktoolArray.indexOf(16) == -1"
  7535. />
  7536. <div class="checkDiv" v-else>
  7537. <img src="../../assets/icon/checkedIs.png" alt /><span
  7538. >已选择</span
  7539. >
  7540. </div>
  7541. </div>
  7542. </div>
  7543. <div class="tool">
  7544. <div class="whiteBIcon" @click="addTools2(50)">
  7545. <img
  7546. src="../../assets/icon/thirdToolList/plwork.png"
  7547. alt
  7548. />
  7549. <div style="margin: 5px 0">批量上传</div>
  7550. </div>
  7551. <div class="check" @click="addTools2(50)">
  7552. <img
  7553. src="../../assets/icon/checkNo.png"
  7554. alt
  7555. v-if="checktoolArray.indexOf(50) == -1"
  7556. />
  7557. <div class="checkDiv" v-else>
  7558. <img src="../../assets/icon/checkedIs.png" alt /><span
  7559. >已选择</span
  7560. >
  7561. </div>
  7562. </div>
  7563. </div>
  7564. </div>
  7565. <div class="toolSort" v-if="toolType == 3">
  7566. <div class="tool">
  7567. <div class="whiteBIcon" @click="addTools2(18)">
  7568. <img
  7569. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7570. alt
  7571. />
  7572. <div style="margin: 5px 0">训练平台</div>
  7573. </div>
  7574. <div class="check" @click="addTools2(18)">
  7575. <img
  7576. src="../../assets/icon/checkNo.png"
  7577. alt
  7578. v-if="checktoolArray.indexOf(18) == -1"
  7579. />
  7580. <div class="checkDiv" v-else>
  7581. <img src="../../assets/icon/checkedIs.png" alt /><span
  7582. >已选择</span
  7583. >
  7584. </div>
  7585. </div>
  7586. </div>
  7587. <div class="tool">
  7588. <div class="whiteBIcon" @click="addTools2(21)">
  7589. <img
  7590. src="../../assets/icon/fourthToolList/program.png"
  7591. alt
  7592. />
  7593. <div style="margin: 5px 0">AIoT Blockly</div>
  7594. </div>
  7595. <div class="check" @click="addTools2(21)">
  7596. <img
  7597. src="../../assets/icon/checkNo.png"
  7598. alt
  7599. v-if="checktoolArray.indexOf(21) == -1"
  7600. />
  7601. <div class="checkDiv" v-else>
  7602. <img src="../../assets/icon/checkedIs.png" alt /><span
  7603. >已选择</span
  7604. >
  7605. </div>
  7606. </div>
  7607. </div>
  7608. <div class="tool">
  7609. <div class="whiteBIcon" @click="addTools2(23)">
  7610. <img
  7611. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7612. alt
  7613. />
  7614. <div style="margin: 5px 0">AI Python</div>
  7615. </div>
  7616. <div class="check" @click="addTools2(23)">
  7617. <img
  7618. src="../../assets/icon/checkNo.png"
  7619. alt
  7620. v-if="checktoolArray.indexOf(23) == -1"
  7621. />
  7622. <div class="checkDiv" v-else>
  7623. <img src="../../assets/icon/checkedIs.png" alt /><span
  7624. >已选择</span
  7625. >
  7626. </div>
  7627. </div>
  7628. </div>
  7629. <div class="tool">
  7630. <div class="whiteBIcon" @click="addTools2(24)">
  7631. <img
  7632. src="../../assets/icon/fourthToolList/AIprogram.png"
  7633. alt
  7634. />
  7635. <div style="margin: 5px 0">AI Blockly</div>
  7636. </div>
  7637. <div class="check" @click="addTools2(24)">
  7638. <img
  7639. src="../../assets/icon/checkNo.png"
  7640. alt
  7641. v-if="checktoolArray.indexOf(24) == -1"
  7642. />
  7643. <div class="checkDiv" v-else>
  7644. <img src="../../assets/icon/checkedIs.png" alt /><span
  7645. >已选择</span
  7646. >
  7647. </div>
  7648. </div>
  7649. </div>
  7650. <div class="tool">
  7651. <div class="whiteBIcon" @click="addTools2(32)">
  7652. <img
  7653. src="../../assets/icon/thirdToolList/code.png"
  7654. alt
  7655. />
  7656. <div style="margin: 5px 0">源码编辑</div>
  7657. </div>
  7658. <div class="check" @click="addTools2(32)">
  7659. <img
  7660. src="../../assets/icon/checkNo.png"
  7661. alt
  7662. v-if="checktoolArray.indexOf(32) == -1"
  7663. />
  7664. <div class="checkDiv" v-else>
  7665. <img src="../../assets/icon/checkedIs.png" alt /><span
  7666. >已选择</span
  7667. >
  7668. </div>
  7669. </div>
  7670. </div>
  7671. <div class="tool">
  7672. <div class="whiteBIcon" @click="addTools2(57)">
  7673. <img
  7674. src="../../assets/icon/fourthToolList/cocopi.png"
  7675. alt
  7676. />
  7677. <div style="margin: 5px 0">CocoPi</div>
  7678. </div>
  7679. <div class="check" @click="addTools2(57)">
  7680. <img
  7681. src="../../assets/icon/checkNo.png"
  7682. alt
  7683. v-if="checktoolArray.indexOf(57) == -1"
  7684. />
  7685. <div class="checkDiv" v-else>
  7686. <img src="../../assets/icon/checkedIs.png" alt /><span
  7687. >已选择</span
  7688. >
  7689. </div>
  7690. </div>
  7691. </div>
  7692. <div class="tool">
  7693. <div class="whiteBIcon" @click="addTools2(63)">
  7694. <img
  7695. src="../../assets/icon/fourthToolList/Wood.png"
  7696. alt
  7697. />
  7698. <div style="margin: 5px 0">海龟编程</div>
  7699. </div>
  7700. <div class="check" @click="addTools2(63)">
  7701. <img
  7702. src="../../assets/icon/checkNo.png"
  7703. alt
  7704. v-if="checktoolArray.indexOf(63) == -1"
  7705. />
  7706. <div class="checkDiv" v-else>
  7707. <img src="../../assets/icon/checkedIs.png" alt /><span
  7708. >已选择</span
  7709. >
  7710. </div>
  7711. </div>
  7712. </div>
  7713. </div>
  7714. <div class="toolSort" v-if="toolType == 5">
  7715. <div class="tool">
  7716. <div class="whiteBIcon" @click="addTools2(28)">
  7717. <img
  7718. src="../../assets/icon/secondToolList/translation.png"
  7719. alt
  7720. />
  7721. <div style="margin: 5px 0">翻译</div>
  7722. </div>
  7723. <div class="check" @click="addTools2(28)">
  7724. <img
  7725. src="../../assets/icon/checkNo.png"
  7726. alt
  7727. v-if="checktoolArray.indexOf(28) == -1"
  7728. />
  7729. <div class="checkDiv" v-else>
  7730. <img src="../../assets/icon/checkedIs.png" alt /><span
  7731. >已选择</span
  7732. >
  7733. </div>
  7734. </div>
  7735. </div>
  7736. <div class="tool">
  7737. <div class="whiteBIcon" @click="addTools2(31)">
  7738. <img
  7739. src="../../assets/icon/secondToolList/networkPanel.png"
  7740. alt
  7741. />
  7742. <div style="margin: 5px 0">数字画板</div>
  7743. </div>
  7744. <div class="check" @click="addTools2(31)">
  7745. <img
  7746. src="../../assets/icon/checkNo.png"
  7747. alt
  7748. v-if="checktoolArray.indexOf(31) == -1"
  7749. />
  7750. <div class="checkDiv" v-else>
  7751. <img src="../../assets/icon/checkedIs.png" alt /><span
  7752. >已选择</span
  7753. >
  7754. </div>
  7755. </div>
  7756. </div>
  7757. <div class="tool">
  7758. <div class="whiteBIcon" @click="addTools2(39)">
  7759. <img
  7760. src="../../assets/icon/secondToolList/GeoGebra.png"
  7761. alt
  7762. />
  7763. <div style="margin: 5px 0">GeoGebra</div>
  7764. </div>
  7765. <div class="check" @click="addTools2(39)">
  7766. <img
  7767. src="../../assets/icon/checkNo.png"
  7768. alt
  7769. v-if="checktoolArray.indexOf(39) == -1"
  7770. />
  7771. <div class="checkDiv" v-else>
  7772. <img src="../../assets/icon/checkedIs.png" alt /><span
  7773. >已选择</span
  7774. >
  7775. </div>
  7776. </div>
  7777. </div>
  7778. <div class="tool">
  7779. <div class="whiteBIcon" @click="addTools2(66)">
  7780. <img
  7781. src="../../assets/icon/secondToolList/formulaEdi.png"
  7782. alt
  7783. />
  7784. <div style="margin: 5px 0">公式编辑</div>
  7785. </div>
  7786. <div class="check" @click="addTools2(66)">
  7787. <img
  7788. src="../../assets/icon/checkNo.png"
  7789. alt
  7790. v-if="checktoolArray.indexOf(66) == -1"
  7791. />
  7792. <div class="checkDiv" v-else>
  7793. <img src="../../assets/icon/checkedIs.png" alt /><span
  7794. >已选择</span
  7795. >
  7796. </div>
  7797. </div>
  7798. </div>
  7799. <div class="tool">
  7800. <div class="whiteBIcon" @click="addTools2(67)">
  7801. <img
  7802. src="../../assets/icon/secondToolList/molStr.png"
  7803. alt
  7804. />
  7805. <div style="margin: 5px 0">分子结构</div>
  7806. </div>
  7807. <div class="check" @click="addTools2(67)">
  7808. <img
  7809. src="../../assets/icon/checkNo.png"
  7810. alt
  7811. v-if="checktoolArray.indexOf(67) == -1"
  7812. />
  7813. <div class="checkDiv" v-else>
  7814. <img src="../../assets/icon/checkedIs.png" alt /><span
  7815. >已选择</span
  7816. >
  7817. </div>
  7818. </div>
  7819. </div>
  7820. <div class="tool">
  7821. <div class="whiteBIcon" @click="addTools2(68)">
  7822. <img
  7823. src="../../assets/icon/secondToolList/timeAxis.png"
  7824. alt
  7825. />
  7826. <div style="margin: 5px 0">时间轴</div>
  7827. </div>
  7828. <div class="check" @click="addTools2(68)">
  7829. <img
  7830. src="../../assets/icon/checkNo.png"
  7831. alt
  7832. v-if="checktoolArray.indexOf(68) == -1"
  7833. />
  7834. <div class="checkDiv" v-else>
  7835. <img src="../../assets/icon/checkedIs.png" alt /><span
  7836. >已选择</span
  7837. >
  7838. </div>
  7839. </div>
  7840. </div>
  7841. </div>
  7842. <div class="toolSort" v-if="toolType == 7">
  7843. <div class="tool">
  7844. <div class="whiteBIcon" @click="addTools2(40)">
  7845. <img
  7846. src="../../assets/icon/secondToolList/eval.png"
  7847. alt
  7848. />
  7849. <div style="margin: 5px 0">个人评价</div>
  7850. </div>
  7851. <div class="check" @click="addTools2(40)">
  7852. <img
  7853. src="../../assets/icon/checkNo.png"
  7854. alt
  7855. v-if="checktoolArray.indexOf(40) == -1"
  7856. />
  7857. <div class="checkDiv" v-else>
  7858. <img src="../../assets/icon/checkedIs.png" alt /><span
  7859. >已选择</span
  7860. >
  7861. </div>
  7862. </div>
  7863. </div>
  7864. </div>
  7865. <div class="toolSort" v-if="toolType == 4">
  7866. <div class="tool">
  7867. <div class="whiteBIcon" @click="addTools2(26)">
  7868. <img
  7869. src="../../assets/icon/thirdToolList/courseDesign.png"
  7870. alt
  7871. />
  7872. <div style="margin: 5px 0">课程设计</div>
  7873. </div>
  7874. <div class="check" @click="addTools2(26)">
  7875. <img
  7876. src="../../assets/icon/checkNo.png"
  7877. alt
  7878. v-if="checktoolArray.indexOf(26) == -1"
  7879. />
  7880. <div class="checkDiv" v-else>
  7881. <img src="../../assets/icon/checkedIs.png" alt /><span
  7882. >已选择</span
  7883. >
  7884. </div>
  7885. </div>
  7886. </div>
  7887. <div class="tool">
  7888. <div class="whiteBIcon" @click="addTools2(25)">
  7889. <img
  7890. src="../../assets/icon/thirdToolList/evalua.png"
  7891. alt
  7892. />
  7893. <div style="margin: 5px 0">目标管理</div>
  7894. </div>
  7895. <div class="check" @click="addTools2(25)">
  7896. <img
  7897. src="../../assets/icon/checkNo.png"
  7898. alt
  7899. v-if="checktoolArray.indexOf(25) == -1"
  7900. />
  7901. <div class="checkDiv" v-else>
  7902. <img src="../../assets/icon/checkedIs.png" alt /><span
  7903. >已选择</span
  7904. >
  7905. </div>
  7906. </div>
  7907. </div>
  7908. </div>
  7909. </div>
  7910. </div>
  7911. </div>
  7912. </div> -->
  7913. <div
  7914. class="vedioBox"
  7915. style="margin-top: 10px; border-radius: 20px"
  7916. v-if="
  7917. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7918. .eList &&
  7919. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7920. .eList.length &&
  7921. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7922. .eList.length > 0 &&
  7923. tType != 2
  7924. "
  7925. >
  7926. <div
  7927. class="queTop"
  7928. style="
  7929. font-size: 20px;
  7930. padding: 15px 0 15px 37px;
  7931. font-weight: bold;
  7932. "
  7933. >
  7934. <!-- <div class="question" style="width: 30px">
  7935. <img src="../assets/icon/toolIcon.png" alt />
  7936. </div>
  7937. <div class="queTitle">
  7938. <div>工具</div>
  7939. </div>-->
  7940. 评一评
  7941. </div>
  7942. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7943. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7944. <el-table
  7945. :data="
  7946. chapInfoList[courseType].chapterInfo[0].taskJson[
  7947. taskCount
  7948. ].eList
  7949. "
  7950. :header-cell-style="{ background: '#F0F4FA' }"
  7951. :row-class-name="tableRowClassName"
  7952. border
  7953. stripe
  7954. style="width: 100%"
  7955. >
  7956. <el-table-column
  7957. label="评价名称"
  7958. align="center"
  7959. >
  7960. <template slot-scope="scope"
  7961. ><div>{{ scope.row.value }}</div></template
  7962. >
  7963. </el-table-column>
  7964. <el-table-column
  7965. label="评价描述"
  7966. align="center"
  7967. >
  7968. <template slot-scope="scope"
  7969. ><div>
  7970. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7971. </div></template
  7972. >
  7973. </el-table-column>
  7974. <el-table-column label="目标" align="center">
  7975. <template slot-scope="scope"
  7976. ><div>
  7977. {{
  7978. scope.row.target
  7979. ? scope.row.target[scope.row.target.length - 1]
  7980. : "-"
  7981. }}
  7982. </div></template
  7983. ></el-table-column
  7984. >
  7985. </el-table>
  7986. <!-- <div
  7987. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7988. .chapterInfo[0].taskJson[taskCount].eList"
  7989. :key="eIndex"
  7990. class="elist_input_box"
  7991. >
  7992. <div style="width: 95%">
  7993. <div
  7994. style="
  7995. display: flex;
  7996. flex-direction: row;
  7997. flex-wrap: nowrap;
  7998. align-items: center;
  7999. "
  8000. >
  8001. <div style="max-width: calc(100% - 285px)">
  8002. <span>{{ eItem.value }}</span>
  8003. </div>
  8004. <div
  8005. style="
  8006. padding-left: 25px;
  8007. display: flex;
  8008. flex-direction: row;
  8009. align-items: center;
  8010. "
  8011. >
  8012. <el-rate
  8013. v-model="eItem.score"
  8014. :colors="colors"
  8015. disabled
  8016. ></el-rate>
  8017. </div>
  8018. </div>
  8019. <div class="elist_inptu_text" style="padding-left: 10px">
  8020. <span v-if="eItem.detail != ''">{{
  8021. eItem.detail
  8022. }}</span>
  8023. <span v-else style="color: #b2b1b3; font-size: 14px"
  8024. >暂无描述...</span
  8025. >
  8026. </div>
  8027. </div>
  8028. </div> -->
  8029. </div>
  8030. <div
  8031. v-if="evalua"
  8032. style="
  8033. border: 1px solid #e5e5e5;
  8034. max-width: 650px;
  8035. width: 100%;
  8036. margin-top: 20px;
  8037. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8038. "
  8039. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8040. >
  8041. <div class="e_add_top">
  8042. <div class="e_add_title" style="width: 100%">
  8043. <!-- <span>目标管理名称</span> -->
  8044. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8045. <img
  8046. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8047. src="../../assets/line.png"
  8048. class="cru_line"
  8049. style="
  8050. width: 125px;
  8051. height: 20px;
  8052. bottom: -10px;
  8053. left: 5px;
  8054. "
  8055. />
  8056. <!-- <el-input
  8057. v-model="eTitle"
  8058. placeholder="请输入名称"
  8059. @change="setMindData"
  8060. ></el-input>-->
  8061. <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>
  8062. <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>
  8063. </div>
  8064. </div>
  8065. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8066. <div class="e_add_list_pbox">
  8067. <div class="e_add_list_pbox_title">
  8068. <!-- <span class="type_title">切换模式</span> -->
  8069. <div class="type_content">
  8070. <span
  8071. :class="{ active: typeMode == 1 }"
  8072. @click="typeMode = 1"
  8073. >目标树</span
  8074. >
  8075. <span
  8076. :class="{ active: typeMode == 2 }"
  8077. @click="typeMode = 2"
  8078. >目标罗盘</span
  8079. >
  8080. <!-- <span
  8081. :class="{ active: typeMode == 3 }"
  8082. @click="typeMode = 3"
  8083. >目标看板</span
  8084. > -->
  8085. </div>
  8086. </div>
  8087. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8088. <Mind
  8089. :showBar="false"
  8090. :mindData="data"
  8091. style="width: 100%"
  8092. v-show="typeMode == 1"
  8093. ></Mind>
  8094. <Sunburst
  8095. :Josn="eJson"
  8096. :num="eJSONNum"
  8097. style="width: 100%"
  8098. v-if="typeMode == 2"
  8099. ></Sunburst>
  8100. <SeeBoard
  8101. :Josn="eJson"
  8102. :num="eJSONNum"
  8103. :ename="eTitle"
  8104. style="width: 100%"
  8105. v-if="typeMode == 3"
  8106. >
  8107. </SeeBoard>
  8108. </div>
  8109. </div>
  8110. </div>
  8111. </div>
  8112. </div>
  8113. </div>
  8114. <!-- <div
  8115. class="project_box"
  8116. style="margin-top: 15px; padding-bottom: 30px"
  8117. >
  8118. <div
  8119. style="
  8120. display: flex;
  8121. flex-wrap: nowrap;
  8122. flex-direction: column;
  8123. position: relative;
  8124. "
  8125. >
  8126. <div class="queTop">
  8127. <div class="question">
  8128. <img src="../../assets/icon/homeWork.png" alt="" />
  8129. </div>
  8130. <div class="queTitle">
  8131. <div>作业提交<span>(提交图文视频等)</span></div>
  8132. <div>:任务:{{ task.task }}</div>
  8133. </div>
  8134. </div>
  8135. <div class="ediBottom">
  8136. <div
  8137. class="addEditor"
  8138. style="margin-top: 23px"
  8139. @click="openAddWork"
  8140. v-if="!isNoHomeWork"
  8141. >
  8142. 选择文件
  8143. </div>
  8144. <div
  8145. class="addEditor"
  8146. style="margin-top: 23px"
  8147. @click="openAddWork"
  8148. v-else
  8149. >
  8150. 已提交
  8151. </div>
  8152. </div>
  8153. </div>
  8154. </div>-->
  8155. </div>
  8156. </div>
  8157. <el-dialog
  8158. title="作业提交"
  8159. :visible.sync="dialogVisible"
  8160. :append-to-body="true"
  8161. width="500px"
  8162. :before-close="handleClose"
  8163. class="dialog_change"
  8164. >
  8165. <div class="marginT">
  8166. <div>上传文件</div>
  8167. <div
  8168. class="chapter_add"
  8169. @click="addImg($event)"
  8170. v-if="studyJuri[0].cover.length == 0"
  8171. >
  8172. <div class="up_photo">
  8173. <img src="../../assets/icon/uploadImg.png" alt />
  8174. </div>
  8175. <!-- <input
  8176. type="file"
  8177. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8178. style="display: none"
  8179. @change="beforeUpload1($event, 1)"
  8180. /> -->
  8181. <input
  8182. type="file"
  8183. accept="*"
  8184. style="display: none"
  8185. @change="beforeUpload1($event, 1)"
  8186. />
  8187. <!-- <input
  8188. type="file"
  8189. accept="image/*"
  8190. capture="camera"
  8191. style="display: none"
  8192. @change="beforeUpload1($event, 1)"
  8193. /> -->
  8194. </div>
  8195. <div
  8196. class="chapter_add"
  8197. style="
  8198. display: flex;
  8199. width: 100%;
  8200. flex-direction: row;
  8201. flex-wrap: wrap;
  8202. justify-content: flex-start;
  8203. padding: 15px 0;
  8204. "
  8205. v-if="studyJuri[0].cover.length > 0"
  8206. >
  8207. <div class="upCover">
  8208. <img
  8209. :src="studyJuri[0].cover[0].url"
  8210. alt
  8211. v-if="fileType == 0"
  8212. />
  8213. <img :src="word" alt v-else-if="fileType == 1" />
  8214. <img :src="video" alt v-else-if="fileType == 2" />
  8215. <img :src="word2" alt v-else-if="fileType == 3" />
  8216. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8217. <div class="deleteWord" @click="clean(1)">
  8218. <img src="../../assets/icon/deleteWorks.png" alt />
  8219. </div>
  8220. </div>
  8221. </div>
  8222. </div>
  8223. <div
  8224. class="upload_send"
  8225. @click="addCourseWorks(taskCount)"
  8226. v-if="!proVisible"
  8227. >
  8228. 提交
  8229. </div>
  8230. </el-dialog>
  8231. </div>
  8232. </div>
  8233. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8234. <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(
  8235. '/courseDetail?userid=' +
  8236. userid +
  8237. '&oid=' +
  8238. oid +
  8239. '&org=' +
  8240. org +
  8241. '&cid=' +
  8242. classId +
  8243. '&courseId=' +
  8244. id +
  8245. '&tType=' +
  8246. tType +
  8247. '&screenType=' +
  8248. screenType
  8249. )"></classRoomHelper>
  8250. <div
  8251. class="pButton"
  8252. @click="(pzDialog = true), selectPz()"
  8253. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8254. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8255. >
  8256. <!-- 批 -->
  8257. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8258. </div>
  8259. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8260. <div class="pzTop2">
  8261. <!-- <div>评论</div>
  8262. <div @click="pzDialog = false">
  8263. <img src="../../assets/close1.png" alt="" />
  8264. </div> -->
  8265. <div class="checkbox">
  8266. <!-- <div class="check" style="font-size: 25px; position: unset">
  8267. 评论
  8268. </div> -->
  8269. <div class="cb-tabList">
  8270. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8271. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8272. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8273. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8274. </div>
  8275. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8276. <el-option label="时间降序" :value="1"></el-option>
  8277. <el-option label="时间升序" :value="2"></el-option>
  8278. <el-option label="我的评课" :value="3"></el-option>
  8279. </el-select>
  8280. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8281. </div>
  8282. </div>
  8283. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8284. <div class="pzListBox" v-if="pzList && pzList.length">
  8285. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8286. <div class="pzNavTop">
  8287. <div>评</div>
  8288. <div>
  8289. {{
  8290. pz.username && pz.username.length > 5
  8291. ? pz.username.substring(0, 5) + "..."
  8292. : pz.username
  8293. }}的评论
  8294. </div>
  8295. <div
  8296. class="pzDelete"
  8297. v-if="pz.userid == userid"
  8298. @click="deletePz(pz.id)"
  8299. >
  8300. 删除
  8301. </div>
  8302. </div>
  8303. <div
  8304. @click="checkImg(getImgList(pz.content))"
  8305. class="pzContent cont"
  8306. v-html="pz.content"
  8307. v-if="pz.type == '1'"
  8308. ></div>
  8309. <div class="pzContent" v-if="pz.type == '2'">
  8310. <audio :src="pz.content" controls="controls" ref="audio">
  8311. Your browser does not support the audio element.
  8312. </audio>
  8313. </div>
  8314. <div class="pzContent" v-if="pz.type == '3'">
  8315. <img
  8316. :src="pz.content"
  8317. style="width: 90%; margin: 0 auto; display: block"
  8318. @click="previewImg(pz.content)"
  8319. />
  8320. </div>
  8321. <div class="timeAndReply">
  8322. <div class="time">
  8323. {{ pz.time }}
  8324. </div>
  8325. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8326. </div>
  8327. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8328. <div
  8329. v-for="(h, hIndex) in pz.hfList"
  8330. :key="hIndex"
  8331. class="hfItem"
  8332. >
  8333. <div class="whoReplyWho">
  8334. <div class="hfName">{{ h.username }}</div>
  8335. <div class="hfImg">
  8336. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8337. </div>
  8338. <div class="hfName">{{ pz.username }}</div>
  8339. </div>
  8340. <div class="hfContent" v-html="h.content"></div>
  8341. <div class="hfBottom">
  8342. <div class="hfTime">{{ h.time }}</div>
  8343. <div
  8344. class="deleteHfItem"
  8345. @click="deleteReply(h.id)"
  8346. v-if="userid == h.userid"
  8347. >
  8348. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8349. </div>
  8350. </div>
  8351. </div>
  8352. </div>
  8353. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8354. <div class="replyInput">
  8355. <el-input v-model="reply[pzIndex]"></el-input>
  8356. </div>
  8357. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8358. </div> -->
  8359. </div>
  8360. </div>
  8361. <div class="noPz" v-else>
  8362. <img src="../../assets/icon/noPz.png" alt="" />
  8363. </div>
  8364. <div class="addPzButton">
  8365. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8366. 添加评论
  8367. </div>
  8368. <!-- <div class="img1">
  8369. <div @click="(addPzDialog = true), (pzType = 2)">
  8370. <img src="../../assets/audio.png" /><span>音频</span>
  8371. </div>
  8372. </div> -->
  8373. </div>
  8374. </div>
  8375. <div class="scoreList" v-if="commentTagShow==1">
  8376. <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"/>
  8377. </div>
  8378. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8379. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8380. </div>
  8381. </div>
  8382. <div
  8383. v-if="toolDialogVisible == true"
  8384. class="toolMask"
  8385. @click="toolDialogVisible = false"
  8386. ></div>
  8387. <div v-if="toolDialogVisible == true" class="addToolCss">
  8388. <div class="toolTop">
  8389. <div style="font-weight: bold">新增工具</div>
  8390. <div @click="toolDialogVisible = false">
  8391. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8392. </div>
  8393. </div>
  8394. <div class="tool_box">
  8395. <div class="tool_type_box">
  8396. <div class="chooseWho">
  8397. <div
  8398. :class="toolType == 0 ? 'isChooseActive' : ''"
  8399. @click="(toolType = 0), $forceUpdate()"
  8400. >
  8401. 互动类
  8402. </div>
  8403. <div
  8404. :class="toolType == 1 ? 'isChooseActive' : ''"
  8405. @click="(toolType = 1), $forceUpdate()"
  8406. >
  8407. 思维类
  8408. </div>
  8409. <div
  8410. :class="toolType == 2 ? 'isChooseActive' : ''"
  8411. @click="(toolType = 2), $forceUpdate()"
  8412. >
  8413. 测评类
  8414. </div>
  8415. <div
  8416. :class="toolType == 3 ? 'isChooseActive' : ''"
  8417. @click="(toolType = 3), $forceUpdate()"
  8418. >
  8419. 编程类
  8420. </div>
  8421. <div
  8422. :class="toolType == 5 ? 'isChooseActive' : ''"
  8423. @click="(toolType = 5), $forceUpdate()"
  8424. >
  8425. 学科类
  8426. </div>
  8427. </div>
  8428. </div>
  8429. <div>
  8430. <div class="toolSort" v-if="toolType == 0">
  8431. <div
  8432. class="tool"
  8433. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8434. @click="addTools2(10)"
  8435. >
  8436. <div class="whiteBIcon">
  8437. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8438. <div style="margin: 5px 0">倒计时</div>
  8439. </div>
  8440. <div class="check">
  8441. <div
  8442. v-if="checktoolArray.indexOf(10) == -1"
  8443. class="noChoose"
  8444. ></div>
  8445. <div v-else class="isChoose"></div>
  8446. </div>
  8447. </div>
  8448. <div
  8449. class="tool"
  8450. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8451. @click="addTools2(65)"
  8452. >
  8453. <div class="whiteBIcon">
  8454. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8455. <div style="margin: 5px 0">挑人</div>
  8456. </div>
  8457. <div class="check">
  8458. <div
  8459. v-if="checktoolArray.indexOf(65) == -1"
  8460. class="noChoose"
  8461. ></div>
  8462. <div v-else class="isChoose"></div>
  8463. </div>
  8464. </div>
  8465. </div>
  8466. <div class="toolSort" v-if="toolType == 1">
  8467. <div
  8468. class="tool"
  8469. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8470. @click="addTools2(7)"
  8471. >
  8472. <div class="whiteBIcon">
  8473. <img
  8474. src="../../assets/icon/secondToolList/mindNetwork.png"
  8475. alt
  8476. />
  8477. <div style="margin: 5px 0">思维网格</div>
  8478. </div>
  8479. <div class="check">
  8480. <div
  8481. v-if="checktoolArray.indexOf(7) == -1"
  8482. class="noChoose"
  8483. ></div>
  8484. <div v-else class="isChoose"></div>
  8485. </div>
  8486. </div>
  8487. <div
  8488. class="tool"
  8489. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8490. @click="addTools2(1)"
  8491. >
  8492. <div class="whiteBIcon">
  8493. <img
  8494. src="../../assets/icon/secondToolList/whiteBoard.png"
  8495. alt
  8496. />
  8497. <div style="margin: 5px 0">电子白板</div>
  8498. </div>
  8499. <div class="check">
  8500. <div
  8501. v-if="checktoolArray.indexOf(1) == -1"
  8502. class="noChoose"
  8503. ></div>
  8504. <div v-else class="isChoose"></div>
  8505. </div>
  8506. </div>
  8507. <div
  8508. class="tool"
  8509. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8510. @click="addTools2(52)"
  8511. >
  8512. <div class="whiteBIcon">
  8513. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8514. <div style="margin: 5px 0">文档</div>
  8515. </div>
  8516. <div class="check">
  8517. <div
  8518. v-if="checktoolArray.indexOf(52) == -1"
  8519. class="noChoose"
  8520. ></div>
  8521. <div v-else class="isChoose"></div>
  8522. </div>
  8523. </div>
  8524. <div
  8525. class="tool"
  8526. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8527. @click="addTools2(3)"
  8528. >
  8529. <div class="whiteBIcon">
  8530. <img
  8531. src="../../assets/icon/secondToolList/mindMapping.png"
  8532. alt
  8533. />
  8534. <div style="margin: 5px 0">思维导图</div>
  8535. </div>
  8536. <div class="check">
  8537. <div
  8538. v-if="checktoolArray.indexOf(3) == -1"
  8539. class="noChoose"
  8540. ></div>
  8541. <div v-else class="isChoose"></div>
  8542. </div>
  8543. </div>
  8544. <div
  8545. class="tool"
  8546. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8547. @click="addTools2(48)"
  8548. >
  8549. <div class="whiteBIcon">
  8550. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8551. <div style="margin: 5px 0">表格</div>
  8552. </div>
  8553. <div class="check">
  8554. <div
  8555. v-if="checktoolArray.indexOf(48) == -1"
  8556. class="noChoose"
  8557. ></div>
  8558. <div v-else class="isChoose"></div>
  8559. </div>
  8560. </div>
  8561. </div>
  8562. <div class="toolSort" v-if="toolType == 6">
  8563. <div v-show="tooC == 49">
  8564. <img
  8565. @click="addTools(tooC, toolIndex, taskCount)"
  8566. src="../../assets/icon/fourthToolList/group.png"
  8567. alt
  8568. />
  8569. <div style="margin: 5px 0">学生分组</div>
  8570. </div>
  8571. </div>
  8572. <div class="toolSort" v-if="toolType == 2">
  8573. <div
  8574. class="tool"
  8575. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8576. @click="addTools2(16)"
  8577. >
  8578. <div class="whiteBIcon">
  8579. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8580. <div style="margin: 5px 0">作业提交</div>
  8581. </div>
  8582. <div class="check">
  8583. <div
  8584. v-if="checktoolArray.indexOf(16) == -1"
  8585. class="noChoose"
  8586. ></div>
  8587. <div v-else class="isChoose"></div>
  8588. </div>
  8589. </div>
  8590. <div
  8591. class="tool"
  8592. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8593. @click="addTools2(50)"
  8594. >
  8595. <div class="whiteBIcon">
  8596. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8597. <div style="margin: 5px 0">批量上传</div>
  8598. </div>
  8599. <div class="check">
  8600. <div
  8601. v-if="checktoolArray.indexOf(50) == -1"
  8602. class="noChoose"
  8603. ></div>
  8604. <div v-else class="isChoose"></div>
  8605. </div>
  8606. </div>
  8607. </div>
  8608. <div class="toolSort" v-if="toolType == 3">
  8609. <div
  8610. class="tool"
  8611. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8612. @click="addTools2(18)"
  8613. >
  8614. <div class="whiteBIcon">
  8615. <img
  8616. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8617. alt
  8618. />
  8619. <div style="margin: 5px 0">训练平台</div>
  8620. </div>
  8621. <div class="check">
  8622. <div
  8623. v-if="checktoolArray.indexOf(18) == -1"
  8624. class="noChoose"
  8625. ></div>
  8626. <div v-else class="isChoose"></div>
  8627. </div>
  8628. </div>
  8629. <div
  8630. class="tool"
  8631. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8632. @click="addTools2(21)"
  8633. >
  8634. <div class="whiteBIcon">
  8635. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8636. <div style="margin: 5px 0">AIoT Blockly</div>
  8637. </div>
  8638. <div class="check">
  8639. <div
  8640. v-if="checktoolArray.indexOf(21) == -1"
  8641. class="noChoose"
  8642. ></div>
  8643. <div v-else class="isChoose"></div>
  8644. </div>
  8645. </div>
  8646. <div
  8647. class="tool"
  8648. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8649. @click="addTools2(23)"
  8650. >
  8651. <div class="whiteBIcon">
  8652. <img
  8653. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8654. alt
  8655. />
  8656. <div style="margin: 5px 0">AI Python</div>
  8657. </div>
  8658. <div class="check">
  8659. <div
  8660. v-if="checktoolArray.indexOf(23) == -1"
  8661. class="noChoose"
  8662. ></div>
  8663. <div v-else class="isChoose"></div>
  8664. </div>
  8665. </div>
  8666. <div
  8667. class="tool"
  8668. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8669. @click="addTools2(24)"
  8670. >
  8671. <div class="whiteBIcon">
  8672. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8673. <div style="margin: 5px 0">AI Blockly</div>
  8674. </div>
  8675. <div class="check">
  8676. <div
  8677. v-if="checktoolArray.indexOf(24) == -1"
  8678. class="noChoose"
  8679. ></div>
  8680. <div v-else class="isChoose"></div>
  8681. </div>
  8682. </div>
  8683. <div
  8684. class="tool"
  8685. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8686. @click="addTools2(32)"
  8687. >
  8688. <div class="whiteBIcon">
  8689. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8690. <div style="margin: 5px 0">源码编辑</div>
  8691. </div>
  8692. <div class="check">
  8693. <div
  8694. v-if="checktoolArray.indexOf(32) == -1"
  8695. class="noChoose"
  8696. ></div>
  8697. <div v-else class="isChoose"></div>
  8698. </div>
  8699. </div>
  8700. <div
  8701. class="tool"
  8702. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8703. @click="addTools2(57)"
  8704. >
  8705. <div class="whiteBIcon">
  8706. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8707. <div style="margin: 5px 0">CocoPi</div>
  8708. </div>
  8709. <div class="check">
  8710. <div
  8711. v-if="checktoolArray.indexOf(57) == -1"
  8712. class="noChoose"
  8713. ></div>
  8714. <div v-else class="isChoose"></div>
  8715. </div>
  8716. </div>
  8717. <div
  8718. class="tool"
  8719. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8720. @click="addTools2(63)"
  8721. >
  8722. <div class="whiteBIcon">
  8723. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8724. <div style="margin: 5px 0">海龟编程</div>
  8725. </div>
  8726. <div class="check">
  8727. <div
  8728. v-if="checktoolArray.indexOf(63) == -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(71) != -1 }"
  8737. @click="addTools2(71)"
  8738. >
  8739. <div class="whiteBIcon">
  8740. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  8741. <div style="margin: 5px 0">AI智能体</div>
  8742. </div>
  8743. <div class="check">
  8744. <div
  8745. v-if="checktoolArray.indexOf(71) == -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 == 7">
  8753. <div
  8754. class="tool"
  8755. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8756. @click="addTools2(40)"
  8757. >
  8758. <div class="whiteBIcon">
  8759. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8760. <div style="margin: 5px 0">个人评价</div>
  8761. </div>
  8762. <div class="check">
  8763. <div
  8764. v-if="checktoolArray.indexOf(40) == -1"
  8765. class="noChoose"
  8766. ></div>
  8767. <div v-else class="isChoose"></div>
  8768. </div>
  8769. </div>
  8770. </div>
  8771. <div class="toolSort" v-if="toolType == 5">
  8772. <div
  8773. class="tool"
  8774. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8775. @click="addTools2(28)"
  8776. >
  8777. <div class="whiteBIcon">
  8778. <img
  8779. src="../../assets/icon/secondToolList/translation.png"
  8780. alt
  8781. />
  8782. <div style="margin: 5px 0">翻译</div>
  8783. </div>
  8784. <div class="check">
  8785. <div
  8786. v-if="checktoolArray.indexOf(28) == -1"
  8787. class="noChoose"
  8788. ></div>
  8789. <div v-else class="isChoose"></div>
  8790. </div>
  8791. </div>
  8792. <div
  8793. class="tool"
  8794. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8795. @click="addTools2(31)"
  8796. >
  8797. <div class="whiteBIcon">
  8798. <img
  8799. src="../../assets/icon/secondToolList/networkPanel.png"
  8800. alt
  8801. />
  8802. <div style="margin: 5px 0">数字画板</div>
  8803. </div>
  8804. <div class="check">
  8805. <div
  8806. v-if="checktoolArray.indexOf(31) == -1"
  8807. class="noChoose"
  8808. ></div>
  8809. <div v-else class="isChoose"></div>
  8810. </div>
  8811. </div>
  8812. <div
  8813. class="tool"
  8814. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8815. @click="addTools2(39)"
  8816. >
  8817. <div class="whiteBIcon">
  8818. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8819. <div style="margin: 5px 0">GeoGebra</div>
  8820. </div>
  8821. <div class="check">
  8822. <div
  8823. v-if="checktoolArray.indexOf(39) == -1"
  8824. class="noChoose"
  8825. ></div>
  8826. <div v-else class="isChoose"></div>
  8827. </div>
  8828. </div>
  8829. <div
  8830. class="tool"
  8831. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8832. @click="addTools2(66)"
  8833. >
  8834. <div class="whiteBIcon">
  8835. <img
  8836. src="../../assets/icon/secondToolList/formulaEdi.png"
  8837. alt
  8838. />
  8839. <div style="margin: 5px 0">公式编辑</div>
  8840. </div>
  8841. <div class="check">
  8842. <div
  8843. v-if="checktoolArray.indexOf(66) == -1"
  8844. class="noChoose"
  8845. ></div>
  8846. <div v-else class="isChoose"></div>
  8847. </div>
  8848. </div>
  8849. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8850. <div class="whiteBIcon" @click="addTools2(67)">
  8851. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8852. <div style="margin: 5px 0">分子结构</div>
  8853. </div>
  8854. <div class="check" @click="addTools2(67)">
  8855. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8856. <div v-else class="isChoose"></div>
  8857. </div>
  8858. </div> -->
  8859. <div
  8860. class="tool"
  8861. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8862. @click="addTools2(68)"
  8863. >
  8864. <div class="whiteBIcon">
  8865. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8866. <div style="margin: 5px 0">时间轴</div>
  8867. </div>
  8868. <div class="check">
  8869. <div
  8870. v-if="checktoolArray.indexOf(68) == -1"
  8871. class="noChoose"
  8872. ></div>
  8873. <div v-else class="isChoose"></div>
  8874. </div>
  8875. </div>
  8876. <!-- <div
  8877. class="tool"
  8878. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8879. @click="addTools2(69)"
  8880. >
  8881. <div class="whiteBIcon">
  8882. <img src="../../assets/icon/secondToolList/english.png" alt />
  8883. <div style="margin: 5px 0">英语写作</div>
  8884. </div>
  8885. <div class="check">
  8886. <div
  8887. v-if="checktoolArray.indexOf(69) == -1"
  8888. class="noChoose"
  8889. ></div>
  8890. <div v-else class="isChoose"></div>
  8891. </div>
  8892. </div> -->
  8893. </div>
  8894. <div class="toolSort" v-if="toolType == 4">
  8895. <div
  8896. class="tool"
  8897. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8898. @click="addTools2(26)"
  8899. >
  8900. <div class="whiteBIcon">
  8901. <img
  8902. src="../../assets/icon/thirdToolList/courseDesign.png"
  8903. alt
  8904. />
  8905. <div style="margin: 5px 0">课程设计</div>
  8906. </div>
  8907. <div class="check">
  8908. <div
  8909. v-if="checktoolArray.indexOf(26) == -1"
  8910. class="noChoose"
  8911. ></div>
  8912. <div v-else class="isChoose"></div>
  8913. </div>
  8914. </div>
  8915. <div
  8916. class="tool"
  8917. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8918. @click="addTools2(25)"
  8919. >
  8920. <div class="whiteBIcon">
  8921. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8922. <div style="margin: 5px 0">目标管理</div>
  8923. </div>
  8924. <div class="check">
  8925. <div
  8926. v-if="checktoolArray.indexOf(25) == -1"
  8927. class="noChoose"
  8928. ></div>
  8929. <div v-else class="isChoose"></div>
  8930. </div>
  8931. </div>
  8932. </div>
  8933. </div>
  8934. </div>
  8935. <span
  8936. slot="footer"
  8937. class="dialog-footer"
  8938. style="display: block; text-align: center; padding: 0 0 10px 0"
  8939. >
  8940. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8941. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8942. </span>
  8943. </div>
  8944. <div
  8945. v-if="replyDialogVisible == true"
  8946. class="addDialogCss"
  8947. v-el-drag-dialog
  8948. >
  8949. <div class="pzTop">
  8950. <div class="teacherPz">
  8951. <div class="teacherPzImg">
  8952. <img src="../../assets/icon/teacherPz.png" alt="" />
  8953. </div>
  8954. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8955. </div>
  8956. <div @click="replyDialogVisible = false">
  8957. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8958. </div>
  8959. </div>
  8960. <div class="addPzBox">
  8961. <!-- <div class="addPzCheck">
  8962. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8963. >文本</span
  8964. >
  8965. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8966. >音频</span
  8967. >
  8968. </div> -->
  8969. <div style="height: calc(100% - 50px)">
  8970. <editor-bar
  8971. class="binfo_input pzConText"
  8972. style="width: 100% !important; margin: 0 auto"
  8973. placeholder="请输入回复描述"
  8974. v-model="reply"
  8975. @change="change"
  8976. ></editor-bar>
  8977. </div>
  8978. <div class="addTextCss" @click="addHf">确定</div>
  8979. </div>
  8980. </div>
  8981. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8982. <div class="pzTop">
  8983. <div class="teacherPz">
  8984. <div class="teacherPzImg">
  8985. <img src="../../assets/icon/teacherPz.png" alt="" />
  8986. </div>
  8987. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8988. </div>
  8989. <div @click="addPzDialog = false">
  8990. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8991. </div>
  8992. </div>
  8993. <div class="addPzBox">
  8994. <div class="addPzCheck">
  8995. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8996. >文本</span
  8997. >
  8998. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8999. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9000. >音频</span
  9001. >
  9002. </div>
  9003. <div style="height: calc(100% - 95px)">
  9004. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9005. v-if="pzType == 1"></textarea> -->
  9006. <editor-bar
  9007. class="binfo_input pzConText"
  9008. style="width: 100% !important"
  9009. placeholder="请输入任务描述"
  9010. v-model="pzConText"
  9011. @change="change"
  9012. v-if="pzType == 1"
  9013. ></editor-bar>
  9014. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9015. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9016. <div @click="addImg($event)">
  9017. <el-button type="primary">上传图片</el-button>
  9018. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9019. @change="beforeUpload1($event, 4)" />
  9020. </div>
  9021. </div> -->
  9022. </div>
  9023. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9024. 确定
  9025. </div>
  9026. </div>
  9027. </div>
  9028. <div v-if="proVisible" class="mask">
  9029. <div class="progressBox">
  9030. <!-- <div id="closePro" class="closeCss">
  9031. <img src="../../assets/icon/close.png" alt />
  9032. </div> -->
  9033. <div class="lbox">
  9034. <img src="../../assets/loading.gif" />上传中,请稍后
  9035. </div>
  9036. <div style="margin-bottom: 10px">
  9037. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9038. </div>
  9039. <el-progress
  9040. :text-inside="true"
  9041. :stroke-width="20"
  9042. :percentage="progress"
  9043. style="width: 80%"
  9044. ></el-progress>
  9045. </div>
  9046. </div>
  9047. <div v-if="proVisible2" class="mask">
  9048. <div class="progressBox">
  9049. <div class="lbox">
  9050. <img src="../../assets/loading.gif" />上传中,请稍后
  9051. </div>
  9052. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9053. </div>
  9054. </div>
  9055. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9056. <img width="100%" :src="dialogImageUrl" alt />
  9057. </el-dialog>
  9058. <el-dialog
  9059. :title="noteName != '' ? noteName : '查看问卷'"
  9060. :visible.sync="dialogVisible5"
  9061. :append-to-body="true"
  9062. width="1000px"
  9063. :before-close="handleClose"
  9064. class="dialog_diy dialog_diy3"
  9065. >
  9066. <div>
  9067. <div
  9068. class="a_add_title"
  9069. style="
  9070. display: flex;
  9071. flex-direction: row;
  9072. align-items: center;
  9073. justify-content: center;
  9074. "
  9075. >
  9076. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9077. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9078. </div>
  9079. <div class="a_addBox">
  9080. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9081. 题目内容
  9082. </div>
  9083. <div
  9084. class="a_add_box"
  9085. v-for="(item1, index1) in askJson.askCount"
  9086. :key="index1"
  9087. >
  9088. <div class="a_add_head">
  9089. <div style="display: flex">
  9090. <span class="askIndex"> {{ index1 + 1 }}</span>
  9091. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9092. </div>
  9093. <img
  9094. v-if="askJson.askJson[index1].img"
  9095. :src="askJson.askJson[index1].img"
  9096. style="height: 300px; margin-top: 10px; max-width: 100%"
  9097. />
  9098. </div>
  9099. <div class="a_add_body">
  9100. <div class="a_add_input">
  9101. <el-radio-group
  9102. v-model="radio[index1]"
  9103. v-if="
  9104. askJson.askJson[index1].type == '1' ||
  9105. !askJson.askJson[index1].type
  9106. "
  9107. >
  9108. <el-radio
  9109. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9110. .checkList"
  9111. :key="checkIndex"
  9112. :label="checkIndex"
  9113. :disabled="isAnswer"
  9114. class="redioStyle"
  9115. ><span v-html="item2"></span
  9116. ></el-radio>
  9117. </el-radio-group>
  9118. <el-checkbox-group
  9119. v-model="radio[index1]"
  9120. v-if="askJson.askJson[index1].type == '2'"
  9121. >
  9122. <el-checkbox
  9123. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9124. .checkList"
  9125. :key="checkIndex1"
  9126. :label="checkIndex1"
  9127. :disabled="isAnswer"
  9128. class="redioStyle"
  9129. ><span v-html="item2"></span>
  9130. </el-checkbox>
  9131. </el-checkbox-group>
  9132. </div>
  9133. </div>
  9134. </div>
  9135. </div>
  9136. </div>
  9137. <span slot="footer" class="dialog-footer">
  9138. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9139. >取 消</el-button
  9140. >
  9141. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9142. >确 定</el-button
  9143. >
  9144. </span>
  9145. </el-dialog>
  9146. <el-dialog
  9147. :title="noteName != '' ? noteName : '查看问卷'"
  9148. :visible.sync="dialogVisible5Teacher"
  9149. :append-to-body="true"
  9150. width="1000px"
  9151. :before-close="handleClose"
  9152. class="dialog_diy dialog_diy3"
  9153. >
  9154. <div>
  9155. <div class="w_name">
  9156. 学生姓名:<span>{{ sStudent.student }}</span>
  9157. </div>
  9158. <div
  9159. class="a_add_title"
  9160. style="
  9161. display: flex;
  9162. flex-direction: row;
  9163. align-items: center;
  9164. justify-content: center;
  9165. "
  9166. >
  9167. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9168. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9169. </div>
  9170. <div class="a_addBox">
  9171. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9172. 题目内容
  9173. </div>
  9174. <div
  9175. class="a_add_box"
  9176. v-for="(item1, index1) in askJson.askCount"
  9177. :key="index1"
  9178. >
  9179. <div class="a_add_head">
  9180. <div style="display: flex">
  9181. <span class="askIndex">{{ index1 + 1 }}</span>
  9182. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9183. </div>
  9184. <img
  9185. v-if="askJson.askJson[index1].img"
  9186. :src="askJson.askJson[index1].img"
  9187. style="height: 300px; margin-top: 10px; max-width: 100%"
  9188. />
  9189. </div>
  9190. <div class="a_add_body">
  9191. <div class="a_add_input">
  9192. <el-radio-group
  9193. v-model="radio[index1]"
  9194. v-if="
  9195. askJson.askJson[index1].type == '1' ||
  9196. !askJson.askJson[index1].type
  9197. "
  9198. >
  9199. <el-radio
  9200. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9201. .checkList"
  9202. :key="checkIndex"
  9203. :label="checkIndex"
  9204. :disabled="isAnswer"
  9205. class="redioStyle"
  9206. ><span v-html="item2"></span
  9207. ></el-radio>
  9208. </el-radio-group>
  9209. <el-checkbox-group
  9210. v-model="radio[index1]"
  9211. v-if="askJson.askJson[index1].type == '2'"
  9212. >
  9213. <el-checkbox
  9214. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9215. .checkList"
  9216. :key="checkIndex1"
  9217. :label="checkIndex1"
  9218. :disabled="isAnswer"
  9219. class="redioStyle"
  9220. ><span v-html="item2"></span>
  9221. </el-checkbox>
  9222. </el-checkbox-group>
  9223. </div>
  9224. </div>
  9225. </div>
  9226. </div>
  9227. </div>
  9228. <span slot="footer" class="dialog-footer">
  9229. <el-button
  9230. @click="dialogVisible5Teacher = false"
  9231. v-show="noteName == ''"
  9232. >取 消</el-button
  9233. >
  9234. <el-button
  9235. type="primary"
  9236. @click="addStudentAskTeacher"
  9237. v-show="noteName == ''"
  9238. >确 定</el-button
  9239. >
  9240. </span>
  9241. </el-dialog>
  9242. <el-dialog
  9243. :title="noteName != '' ? noteName : '查看选择题'"
  9244. :visible.sync="dialogVisibleChoice"
  9245. :append-to-body="true"
  9246. width="1000px"
  9247. :before-close="handleClose"
  9248. class="dialog_diy dialog_diy3"
  9249. >
  9250. <div>
  9251. <!-- <div class="a_add_title" style="
  9252. display: flex;
  9253. flex-direction: row;
  9254. align-items: center;
  9255. justify-content: center;
  9256. ">
  9257. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9258. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9259. </div> -->
  9260. <div class="a_addBox">
  9261. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9262. 题目内容
  9263. </div>
  9264. <div
  9265. class="a_add_box"
  9266. v-for="(item1, index1) in testJson.testCount"
  9267. :key="index1"
  9268. >
  9269. <div class="a_add_head">
  9270. <div style="display: flex">
  9271. <span class="askIndex">{{ index1 + 1 }}</span>
  9272. <div
  9273. v-if="testJson.testJson[index1].type == '1'"
  9274. style="margin-right: 5px; min-width: 70px"
  9275. >
  9276. (单选题)
  9277. </div>
  9278. <div
  9279. v-if="testJson.testJson[index1].type == '2'"
  9280. style="margin-right: 5px; min-width: 70px"
  9281. >
  9282. (多选题)
  9283. </div>
  9284. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9285. </div>
  9286. <img
  9287. v-if="testJson.testJson[index1].img"
  9288. :src="testJson.testJson[index1].img"
  9289. style="height: 300px; margin-top: 10px; max-width: 100%"
  9290. />
  9291. </div>
  9292. <div
  9293. class="timuImgBox"
  9294. v-if="
  9295. testJson.testJson[index1].timuList &&
  9296. testJson.testJson[index1].timuList.length
  9297. "
  9298. >
  9299. <div
  9300. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9301. :key="tIndex"
  9302. class="timuImg"
  9303. @click.stop="previewImg(timg.src)"
  9304. >
  9305. <img :src="timg.src" alt="" />
  9306. </div>
  9307. </div>
  9308. <div class="a_add_body">
  9309. <div class="a_add_input">
  9310. <el-radio-group
  9311. v-model="radio[index1]"
  9312. v-if="testJson.testJson[index1].type == '1'"
  9313. >
  9314. <div class="radioBox">
  9315. <el-radio
  9316. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9317. .checkList"
  9318. :key="checkIndex"
  9319. :label="checkIndex"
  9320. :disabled="isAnswer"
  9321. class="redioStyle"
  9322. >
  9323. <div
  9324. style="margin-right: 10px"
  9325. v-if="item2 && item2.imgType && item2.imgType == 1"
  9326. >
  9327. <div class="inImg" @click.stop="previewImg(item2.src)">
  9328. <img :src="item2.src" alt="" />
  9329. </div>
  9330. </div>
  9331. <span v-else v-html="item2"></span>
  9332. </el-radio>
  9333. </div>
  9334. </el-radio-group>
  9335. <el-checkbox-group
  9336. v-model="radio[index1]"
  9337. v-if="testJson.testJson[index1].type == '2'"
  9338. >
  9339. <div class="radioBox">
  9340. <el-checkbox
  9341. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9342. .checkList"
  9343. :key="checkIndex"
  9344. :label="checkIndex"
  9345. :disabled="isAnswer"
  9346. class="redioStyle"
  9347. >
  9348. <div
  9349. style="margin-right: 10px"
  9350. v-if="item2 && item2.imgType && item2.imgType == 1"
  9351. >
  9352. <div class="inImg" @click.stop="previewImg(item2.src)">
  9353. <img :src="item2.src" alt="" />
  9354. </div>
  9355. </div>
  9356. <span v-else v-html="item2"></span>
  9357. </el-checkbox>
  9358. </div>
  9359. </el-checkbox-group>
  9360. </div>
  9361. </div>
  9362. </div>
  9363. </div>
  9364. </div>
  9365. <span slot="footer" class="dialog-footer">
  9366. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9367. >取 消</el-button
  9368. >
  9369. <el-button
  9370. type="primary"
  9371. @click="addStudentTest"
  9372. v-show="noteName == ''"
  9373. >确 定</el-button
  9374. >
  9375. </span>
  9376. </el-dialog>
  9377. <el-dialog
  9378. :title="noteName != '' ? noteName : '查看选择题'"
  9379. :visible.sync="dialogVisibleChoiceTeacher"
  9380. :append-to-body="true"
  9381. width="1000px"
  9382. :before-close="handleClose"
  9383. class="dialog_diy dialog_diy3"
  9384. >
  9385. <div>
  9386. <div class="w_name">
  9387. 学生姓名:<span>{{ sStudent.student }}</span>
  9388. </div>
  9389. <div class="a_addBox">
  9390. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9391. 题目内容
  9392. </div>
  9393. <div
  9394. class="a_add_box"
  9395. v-for="(item1, index1) in testJson.testCount"
  9396. :key="index1"
  9397. >
  9398. <div class="a_add_head">
  9399. <div style="display: flex">
  9400. <span class="askIndex">{{ index1 + 1 }}</span>
  9401. <div
  9402. v-if="testJson.testJson[index1].type == '1'"
  9403. style="margin-right: 5px; min-width: 70px"
  9404. >
  9405. (单选题)
  9406. </div>
  9407. <div
  9408. v-if="testJson.testJson[index1].type == '2'"
  9409. style="margin-right: 5px; min-width: 70px"
  9410. >
  9411. (多选题)
  9412. </div>
  9413. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9414. </div>
  9415. <img
  9416. v-if="testJson.testJson[index1].img"
  9417. :src="testJson.testJson[index1].img"
  9418. style="height: 300px; margin-top: 10px; max-width: 100%"
  9419. />
  9420. </div>
  9421. <div
  9422. class="timuImgBox"
  9423. v-if="
  9424. testJson.testJson[index1].timuList &&
  9425. testJson.testJson[index1].timuList.length
  9426. "
  9427. >
  9428. <div
  9429. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9430. :key="tIndex"
  9431. class="timuImg"
  9432. @click.stop="previewImg(timg.src)"
  9433. >
  9434. <img :src="timg.src" alt="" />
  9435. </div>
  9436. </div>
  9437. <div class="a_add_body">
  9438. <div class="a_add_input">
  9439. <el-radio-group
  9440. v-model="radio[index1]"
  9441. v-if="testJson.testJson[index1].type == '1'"
  9442. >
  9443. <div class="radioBox">
  9444. <el-radio
  9445. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9446. .checkList"
  9447. :key="checkIndex"
  9448. :label="checkIndex"
  9449. :disabled="isAnswer"
  9450. class="redioStyle"
  9451. >
  9452. <div
  9453. style="margin-right: 10px"
  9454. v-if="item2 && item2.imgType && item2.imgType == 1"
  9455. >
  9456. <div class="inImg" @click.stop="previewImg(item2.src)">
  9457. <img :src="item2.src" alt="" />
  9458. </div>
  9459. </div>
  9460. <span v-else v-html="item2"></span>
  9461. </el-radio>
  9462. </div>
  9463. </el-radio-group>
  9464. <el-checkbox-group
  9465. v-model="radio[index1]"
  9466. v-if="testJson.testJson[index1].type == '2'"
  9467. >
  9468. <div class="radioBox">
  9469. <el-checkbox
  9470. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9471. .checkList"
  9472. :key="checkIndex"
  9473. :label="checkIndex"
  9474. :disabled="isAnswer"
  9475. class="redioStyle"
  9476. >
  9477. <div
  9478. style="margin-right: 10px"
  9479. v-if="item2 && item2.imgType && item2.imgType == 1"
  9480. >
  9481. <div class="inImg" @click.stop="previewImg(item2.src)">
  9482. <img :src="item2.src" alt="" />
  9483. </div>
  9484. </div>
  9485. <span v-else v-html="item2"></span>
  9486. </el-checkbox>
  9487. </div>
  9488. </el-checkbox-group>
  9489. </div>
  9490. </div>
  9491. </div>
  9492. </div>
  9493. </div>
  9494. <span slot="footer" class="dialog-footer">
  9495. <el-button
  9496. @click="dialogVisibleChoiceTeacher = false"
  9497. v-show="noteName == ''"
  9498. >取 消</el-button
  9499. >
  9500. <el-button
  9501. type="primary"
  9502. @click="addStudentTestTeacher"
  9503. v-show="noteName == ''"
  9504. >确 定</el-button
  9505. >
  9506. </span>
  9507. </el-dialog>
  9508. <el-dialog
  9509. title="查看富文本"
  9510. :visible.sync="dialogVisible1"
  9511. :append-to-body="true"
  9512. width="500px"
  9513. :before-close="handleClose"
  9514. class="dialog_diy textCss"
  9515. >
  9516. <el-form style="font-size: 20px">
  9517. <el-form-item label="文本标题" class="textTitle">
  9518. <div style="font-size: 20px">{{ text.name }}</div>
  9519. </el-form-item>
  9520. <div>富文本内容</div>
  9521. <div
  9522. v-html="text.url"
  9523. style="font-size: 18px; padding: 40px 0 0 0"
  9524. ></div>
  9525. </el-form>
  9526. <span slot="footer" class="dialog-footer">
  9527. <el-button type="primary" @click="dialogVisible1 = false"
  9528. >确定</el-button
  9529. >
  9530. </span>
  9531. </el-dialog>
  9532. <el-dialog
  9533. title="文件预览"
  9534. :visible.sync="dialogVisible3"
  9535. width="50%"
  9536. :before-close="handleClose"
  9537. class="dialog_diy"
  9538. :class="{ fullStyle: full }"
  9539. >
  9540. <div slot="title" class="header-title">
  9541. <div style="color: #fff">文件预览</div>
  9542. <div style="position: absolute; top: 19px; right: 50px">
  9543. <img
  9544. src="../../assets/full.png"
  9545. style="height: 16px; cursor: pointer"
  9546. alt=""
  9547. @click="fullTools"
  9548. />
  9549. </div>
  9550. </div>
  9551. <pdf
  9552. v-if="showPDF"
  9553. :pdfUrl="pptImgUrl"
  9554. style="width: 100%; height: 520px; overflow: auto"
  9555. :class="{ fullStyle: full }"
  9556. ></pdf>
  9557. <iframe
  9558. v-else
  9559. :src="pptImgUrl"
  9560. frameborder="0"
  9561. width="100%"
  9562. height="600"
  9563. :class="{ fullStyle: full }"
  9564. ></iframe>
  9565. </el-dialog>
  9566. <el-dialog
  9567. title="文件预览"
  9568. :visible.sync="dialogVisible6"
  9569. width="50%"
  9570. :before-close="handleClose"
  9571. class="dialog_diy"
  9572. >
  9573. <iframe
  9574. :src="pptImgUrl1"
  9575. frameborder="0"
  9576. width="100%"
  9577. height="600"
  9578. ></iframe>
  9579. </el-dialog>
  9580. <el-dialog
  9581. title="提示"
  9582. :visible.sync="dialogVisible4"
  9583. :append-to-body="true"
  9584. width="800px"
  9585. :before-close="handleClose"
  9586. class="dialog_diy notice"
  9587. >
  9588. <div>此功能暂未开放!</div>
  9589. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9590. </el-dialog>
  9591. <el-dialog
  9592. title="问答"
  9593. :visible.sync="answerDialogVisible"
  9594. :append-to-body="true"
  9595. width="800px"
  9596. :before-close="handleClose"
  9597. class="dialog_diy"
  9598. >
  9599. <div>
  9600. <div
  9601. style="
  9602. display: flex;
  9603. flex-wrap: nowrap;
  9604. flex-direction: column;
  9605. position: relative;
  9606. "
  9607. >
  9608. <div class="queTop" style="padding: 20px 0 20px 0">
  9609. <div class="question">
  9610. <img src="../../assets/icon/question.png" alt />
  9611. </div>
  9612. <div class="queTitle">
  9613. <div style="width: 90px; min-width: 90px">提问:</div>
  9614. <div>{{ answerQ }}</div>
  9615. </div>
  9616. </div>
  9617. <div class="ediBottom">
  9618. <textarea
  9619. rows="6"
  9620. class="binfo_input"
  9621. cols
  9622. style="width: 95%; height: 120px"
  9623. v-model="questionAnswer"
  9624. ></textarea>
  9625. </div>
  9626. </div>
  9627. </div>
  9628. <div slot="footer">
  9629. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9630. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9631. </div>
  9632. </el-dialog>
  9633. <el-dialog
  9634. title="问答"
  9635. :visible.sync="answerDialogVisibleTeacher"
  9636. :append-to-body="true"
  9637. width="800px"
  9638. :before-close="handleClose"
  9639. class="dialog_diy"
  9640. >
  9641. <div>
  9642. <div class="w_name">
  9643. 学生姓名:<span>{{ sStudent.student }}</span>
  9644. </div>
  9645. <div
  9646. style="
  9647. display: flex;
  9648. flex-wrap: nowrap;
  9649. flex-direction: column;
  9650. position: relative;
  9651. "
  9652. >
  9653. <div class="queTop" style="padding: 20px 0 20px 0">
  9654. <div class="question">
  9655. <img src="../../assets/icon/question.png" alt />
  9656. </div>
  9657. <div class="queTitle">
  9658. <div style="width: 90px; min-width: 90px">提问:</div>
  9659. <div>{{ answerQ }}</div>
  9660. </div>
  9661. </div>
  9662. <div class="ediBottom">
  9663. <textarea
  9664. rows="6"
  9665. class="binfo_input"
  9666. cols
  9667. style="width: 95%; height: 120px"
  9668. v-model="questionAnswer"
  9669. ></textarea>
  9670. </div>
  9671. </div>
  9672. </div>
  9673. <div slot="footer">
  9674. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9675. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9676. </div>
  9677. </el-dialog>
  9678. <el-dialog
  9679. title="倒计时"
  9680. :visible.sync="timeDialogVisible"
  9681. :append-to-body="true"
  9682. width="800px"
  9683. :before-close="handleClose"
  9684. class="dialog_diy"
  9685. >
  9686. <div>
  9687. <div style="margin-bottom: 20px; color: #999">
  9688. 提示:点击“+”或“-”修改倒计时时长。
  9689. </div>
  9690. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9691. </div>
  9692. <div slot="footer">
  9693. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9694. </div>
  9695. </el-dialog>
  9696. <el-dialog
  9697. title="权限设置"
  9698. :visible.sync="juriVisible"
  9699. :append-to-body="true"
  9700. width="400px"
  9701. :before-close="handleClose"
  9702. class="dialog_diy"
  9703. >
  9704. <div>
  9705. <div class="open_box">
  9706. <div class="switch_box">
  9707. <span>允许学生查看所有作业</span>
  9708. <el-switch
  9709. v-model="sIsOpen"
  9710. active-text=""
  9711. class="switchCss"
  9712. @change="updateSLook"
  9713. ></el-switch>
  9714. </div>
  9715. <div
  9716. class="switch_box"
  9717. v-if="
  9718. courseDetail.userid == userid ||
  9719. (courseDetail.course_teacher &&
  9720. courseDetail.course_teacher.indexOf(userid) != -1)
  9721. "
  9722. >
  9723. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9724. <span>禁止学生查看阶段</span>
  9725. <el-switch
  9726. v-model="IsLookOpen"
  9727. active-text=""
  9728. class="switchCss"
  9729. @change="updateLookOpen"
  9730. ></el-switch>
  9731. </div>
  9732. <div class="switch_box" v-if="courseDetail.userid == userid">
  9733. <span>开启跟随模式</span>
  9734. <el-switch
  9735. v-model="IsFollow"
  9736. active-text=""
  9737. class="switchCss"
  9738. @change="updateFollow"
  9739. ></el-switch>
  9740. </div>
  9741. </div>
  9742. </div>
  9743. <div slot="footer">
  9744. <el-button
  9745. style="background: #409efe; color: #fff"
  9746. @click="juriVisible = false"
  9747. >关 闭</el-button
  9748. >
  9749. </div>
  9750. </el-dialog>
  9751. <el-dialog
  9752. title="查看视频"
  9753. :visible.sync="videoVisible"
  9754. :append-to-body="true"
  9755. width="1000px"
  9756. :before-close="handleClose"
  9757. class="dialog_diy1"
  9758. >
  9759. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9760. <video-player
  9761. class="video-player vjs-custom-skin"
  9762. :playsinline="true"
  9763. :options="videoDetail"
  9764. @play="onPlayerPlay($event)"
  9765. style="width: 100%; height: 100%"
  9766. ></video-player>
  9767. </div>
  9768. <div slot="footer">
  9769. <el-button
  9770. style="background: #409efe; color: #fff"
  9771. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9772. >
  9773. 关 闭</el-button
  9774. >
  9775. </div>
  9776. </el-dialog>
  9777. <el-dialog
  9778. title="查看详情"
  9779. :visible.sync="commentDialogVisible"
  9780. :append-to-body="true"
  9781. width="800px"
  9782. :before-close="handleClose"
  9783. class="dialog_diy"
  9784. >
  9785. <div class="commentTop">
  9786. <div class="studentDetail">
  9787. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9788. <div class="nameAndTime">
  9789. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9790. <div>{{ commentDetail.time }}</div>
  9791. </div>
  9792. <div
  9793. class="returnBtn"
  9794. style="margin-left: auto; width: 80px"
  9795. v-if="
  9796. commentDetail.works &&
  9797. commentDetail.type == 0 &&
  9798. (tType == 1 || tType == 4)
  9799. "
  9800. @click="
  9801. showPicturePaint(
  9802. commentDetail.img ? commentDetail.img : commentDetail.works
  9803. )
  9804. "
  9805. >
  9806. 教师批注
  9807. </div>
  9808. </div>
  9809. <div
  9810. class="worksAnswer"
  9811. v-if="commentDetail.works && commentDetail.type == 2"
  9812. >
  9813. {{ JSON.parse(commentDetail.works)[0].answer }}
  9814. </div>
  9815. <div
  9816. class="worksAnswer"
  9817. v-if="commentDetail.works && commentDetail.type == 1"
  9818. >
  9819. <img
  9820. src="../../assets/teacherWork.png"
  9821. v-if="commentDetail.ateacher"
  9822. class="w_teachert"
  9823. />
  9824. <pdf
  9825. v-if="showPDF"
  9826. :pdfUrl="pptImgUrl"
  9827. style="width: 100%; height: 520px; overflow: auto"
  9828. :class="{ fullStyle: full }"
  9829. ></pdf>
  9830. <iframe
  9831. v-else
  9832. :src="pptImgUrl"
  9833. frameborder="0"
  9834. width="100%"
  9835. height="600"
  9836. :class="{ fullStyle: full }"
  9837. ></iframe>
  9838. </div>
  9839. <div
  9840. class="worksAnswer"
  9841. v-if="commentDetail.works && commentDetail.type == 0"
  9842. >
  9843. <img
  9844. src="../../assets/teacherWork.png"
  9845. v-if="commentDetail.ateacher"
  9846. class="w_teachert"
  9847. style="right: 105px"
  9848. />
  9849. <img
  9850. :src="commentDetail.works"
  9851. alt=""
  9852. @click="previewImg(commentDetail.works)"
  9853. />
  9854. </div>
  9855. <div
  9856. class="worksAnswer"
  9857. v-if="commentDetail.works && commentDetail.type == 3"
  9858. >
  9859. <img
  9860. src="../../assets/teacherWork.png"
  9861. v-if="commentDetail.ateacher"
  9862. class="w_teachert"
  9863. />
  9864. <video-player
  9865. class="video-player vjs-custom-skin"
  9866. :playsinline="true"
  9867. :options="videoDetail"
  9868. @play="onPlayerPlay($event)"
  9869. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9870. ></video-player>
  9871. </div>
  9872. <div
  9873. class="worksAnswer"
  9874. v-if="commentDetail.works && commentDetail.type == 10"
  9875. >
  9876. <div class="cont" v-html="commentDetail.works.text"></div>
  9877. </div>
  9878. <div
  9879. class="worksAnswer codeFileBox"
  9880. v-if="commentDetail.works && commentDetail.type == 12"
  9881. @click="downloadFile(commentDetail.works)"
  9882. >
  9883. <img src="../../assets/icon/codeFile.png" />
  9884. <div>点击下载文件</div>
  9885. </div>
  9886. <div
  9887. class="worksAnswer codeFileBox"
  9888. v-if="commentDetail.works && commentDetail.type == 15"
  9889. @click="
  9890. openCocoPi(
  9891. 57,
  9892. commentIndexJson.toolIndex,
  9893. commentDetail.userid,
  9894. commentDetail.sName
  9895. )
  9896. "
  9897. >
  9898. <img src="../../assets/icon/codeFile.png" />
  9899. <div>点击打开CocoPi</div>
  9900. </div>
  9901. <div
  9902. class="worksAnswer"
  9903. v-if="commentDetail.works && commentDetail.type == 13"
  9904. >
  9905. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9906. </div>
  9907. <div
  9908. class="worksAnswer"
  9909. v-if="commentDetail.works && commentDetail.type == 4"
  9910. >
  9911. <div class="evalCss">
  9912. <div class="nav">请选择星星进行评分</div>
  9913. <div class="middleBox" v-if="eScore.eStar">
  9914. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9915. <div class="nameAndrate">
  9916. <div>{{ e.value }}</div>
  9917. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9918. </div>
  9919. <div v-if="e.detail">{{ e.detail }}</div>
  9920. </div>
  9921. <div class="bz">
  9922. <textarea
  9923. disabled
  9924. rows="4"
  9925. class="pj"
  9926. style="
  9927. padding: 10px 5px;
  9928. width: 70%;
  9929. background: #f7f6f9;
  9930. font-size: 14px;
  9931. text-indent: 10px;
  9932. color: #000;
  9933. "
  9934. cols
  9935. v-model="eScore.eBzText"
  9936. placeholder="请输入评价内容..."
  9937. ></textarea>
  9938. </div>
  9939. </div>
  9940. </div>
  9941. </div>
  9942. <div class="comment">
  9943. <div class="commentList">
  9944. <div class="commentImg">
  9945. <img
  9946. @click="
  9947. isLikes(
  9948. commentDetail.wid,
  9949. userid,
  9950. 1,
  9951. null,
  9952. commentDetail.isLikes,
  9953. commentDetail.sName
  9954. )
  9955. "
  9956. :src="commentDetail.isLikes == true ? likes : noLikes"
  9957. alt=""
  9958. />
  9959. </div>
  9960. <div>{{ commentDetail.likesCount }}</div>
  9961. </div>
  9962. <div class="commentList">
  9963. <div class="commentImg">
  9964. <img src="../../assets/icon/comment/comment.png" alt="" />
  9965. </div>
  9966. <div>{{ commentDetail.commentCount }}</div>
  9967. </div>
  9968. </div>
  9969. <div class="drawPBox" v-if="commentDetail.img">
  9970. <span>教师批注</span>
  9971. <img
  9972. :src="commentDetail.img"
  9973. alt=""
  9974. @click="previewImg(commentDetail.img)"
  9975. />
  9976. <span
  9977. class="deleteImg"
  9978. v-if="tType == 1 || tType == 4"
  9979. @click.stop="deletePicturePaint(commentDetail.wid)"
  9980. style="
  9981. font-size: 14px;
  9982. width: auto !important;
  9983. color: #b4b4b4;
  9984. top: unset;
  9985. bottom: 0;
  9986. border: none;
  9987. padding: 0;
  9988. height: auto !important;
  9989. margin: 0;
  9990. "
  9991. >删除</span
  9992. >
  9993. </div>
  9994. </div>
  9995. <div class="commentBox">
  9996. <div class="pl">评论:</div>
  9997. <div style="max-height: 200px; overflow: auto">
  9998. <div
  9999. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10000. style="padding: 10px 0 0 0"
  10001. >
  10002. <div
  10003. class="studentDetail"
  10004. style="padding-top: 10px"
  10005. v-for="(co, coIndex) in commentDetail.commentJson"
  10006. :key="coIndex"
  10007. >
  10008. <div class="tx" style="min-width: 50px">
  10009. <img src="../../assets/avatar.png" alt="" />
  10010. </div>
  10011. <div class="plPerson">
  10012. <div class="plName">
  10013. <div>{{ co.commentPeople }}</div>
  10014. <div style="margin-left: 5px">
  10015. {{ co.commentTime }}
  10016. </div>
  10017. <div
  10018. class="deleteComment"
  10019. v-if="userid == co.userid"
  10020. @click="deleteComment(co.wid)"
  10021. >
  10022. 删除
  10023. </div>
  10024. </div>
  10025. <div class="plContent">{{ co.commentText }}</div>
  10026. </div>
  10027. </div>
  10028. </div>
  10029. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10030. </div>
  10031. </div>
  10032. <div style="margin-top: 10px">
  10033. <div class="displayBox">
  10034. <div
  10035. style="
  10036. color: #556db4;
  10037. font-size: 14px;
  10038. font-weight: bold;
  10039. padding-bottom: 10px;
  10040. "
  10041. >
  10042. 评价
  10043. </div>
  10044. <div class="easy_comment" v-if="false">
  10045. <div
  10046. v-for="(p, pIndex) in PlTextList"
  10047. :key="pIndex"
  10048. @click="fastText(p, 1)"
  10049. >
  10050. {{ p }}
  10051. </div>
  10052. </div>
  10053. </div>
  10054. <div>
  10055. <textarea
  10056. rows="3"
  10057. class="pj"
  10058. style="padding: 10px 5px"
  10059. cols
  10060. v-model="commentText"
  10061. placeholder="请输入评论"
  10062. ></textarea>
  10063. </div>
  10064. </div>
  10065. <div slot="footer">
  10066. <el-button
  10067. @click="
  10068. (commentDialogVisible = false),
  10069. (commentIndexJson = {}),
  10070. videoDetail.sources && videoDetail.sources[0]
  10071. ? (videoDetail.sources[0].src = '')
  10072. : ''
  10073. "
  10074. >取 消</el-button
  10075. >
  10076. <el-button
  10077. type="primary"
  10078. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10079. >确 定</el-button
  10080. >
  10081. </div>
  10082. </el-dialog>
  10083. <el-dialog
  10084. title="查看文档"
  10085. :visible.sync="fullDialogVisible"
  10086. :append-to-body="true"
  10087. width="100%"
  10088. :before-close="handleClose"
  10089. :show-close="false"
  10090. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10091. >
  10092. <div slot="title" class="header-title">
  10093. <div style="color: #fff">查看文档</div>
  10094. <div
  10095. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10096. style="
  10097. cursor: pointer;
  10098. position: absolute;
  10099. top: 20px;
  10100. right: 20px;
  10101. color: #fff;
  10102. "
  10103. >
  10104. 退出全屏
  10105. </div>
  10106. </div>
  10107. <div style="height: 100%;position: relative;">
  10108. <el-button
  10109. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10110. size="medium"
  10111. type="primary"
  10112. @click="
  10113. () => {
  10114. (fullDialogVisible = false),
  10115. changeSplitScreenBehavior({ code: 99 });
  10116. }
  10117. "
  10118. style="
  10119. cursor: pointer;
  10120. position: absolute;
  10121. top: 10px;
  10122. right: 20px;
  10123. color: #fff;
  10124. "
  10125. >
  10126. 退出全屏
  10127. </el-button>
  10128. <div
  10129. class="wheel"
  10130. v-if="
  10131. fulltype == 2 &&
  10132. fullUrl.indexOf(
  10133. 'https://view.officeapps.live.com/op/view.aspx?src='
  10134. ) != -1
  10135. "
  10136. style="width: 100%;height:100%; margin: 0 auto"
  10137. >
  10138. <iframe
  10139. style="width: 100%; height: 100%; border: none"
  10140. :src="fullUrl"
  10141. ></iframe>
  10142. </div>
  10143. <iframe
  10144. v-else-if="fulltype == 2"
  10145. style="width: 100%; height: 100%; border: none"
  10146. :src="fullUrl"
  10147. security="restricted"
  10148. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10149. ></iframe>
  10150. <pdf
  10151. v-else-if="fulltype == 3"
  10152. :pdfUrl="fullUrl"
  10153. style="width: 100%; height: 100%; overflow: auto"
  10154. ></pdf>
  10155. <div
  10156. class="wheel"
  10157. v-if="fulltype == 1"
  10158. style="
  10159. box-shadow: 0 0 6px 1px #f2f2f2;
  10160. height:100%;
  10161. width: 100%;
  10162. background: #f1f1f1;
  10163. "
  10164. >
  10165. <div class="title" style="width: 100%; box-sizing: border-box">
  10166. 查看文档
  10167. </div>
  10168. <el-form class="textBox" style="height: 90%">
  10169. <el-form-item class="textTitle">
  10170. <div style="font-size: 22px">
  10171. {{ fullUrl.name }}
  10172. </div>
  10173. </el-form-item>
  10174. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10175. <div
  10176. v-html="fullUrl.url"
  10177. class="textContent"
  10178. style="height: auto"
  10179. ></div>
  10180. </el-form>
  10181. </div>
  10182. </div>
  10183. <!-- <div slot="footer">
  10184. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10185. </div> -->
  10186. </el-dialog>
  10187. <el-dialog
  10188. title="个人评价"
  10189. :visible.sync="studentEvalDialogVisible"
  10190. :append-to-body="true"
  10191. width="800px"
  10192. :before-close="handleClose"
  10193. class="dialog_diy"
  10194. >
  10195. <div class="evalCss">
  10196. <div class="nav">请选择星星进行评分</div>
  10197. <div class="middleBox" v-if="eScore.eStar">
  10198. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10199. <div class="nameAndrate">
  10200. <div>{{ e.value }}</div>
  10201. <el-rate
  10202. v-model="eScore.eStar[eIndex]"
  10203. :disabled="isStar"
  10204. ></el-rate>
  10205. </div>
  10206. <div v-if="e.detail">{{ e.detail }}</div>
  10207. </div>
  10208. <div class="easy_comment" v-if="false">
  10209. <div
  10210. v-for="(p, pIndex) in PlTextList"
  10211. :key="pIndex"
  10212. @click="fastText(p, 2)"
  10213. >
  10214. {{ p }}
  10215. </div>
  10216. </div>
  10217. <div class="bz">
  10218. <textarea
  10219. :disabled="isStar"
  10220. rows="4"
  10221. class="pj"
  10222. style="
  10223. padding: 10px 5px;
  10224. width: 70%;
  10225. background: #f7f6f9;
  10226. font-size: 14px;
  10227. text-indent: 10px;
  10228. "
  10229. cols
  10230. v-model="eScore.eBzText"
  10231. placeholder="请输入评价内容..."
  10232. ></textarea>
  10233. </div>
  10234. </div>
  10235. </div>
  10236. <div slot="footer">
  10237. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10238. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10239. >确 定</el-button
  10240. >
  10241. </div>
  10242. </el-dialog>
  10243. <el-dialog
  10244. title="个人评价"
  10245. :visible.sync="studentEvalDialogVisibleTeacher"
  10246. :append-to-body="true"
  10247. width="800px"
  10248. :before-close="handleClose"
  10249. class="dialog_diy"
  10250. >
  10251. <div class="w_name">
  10252. 学生姓名:<span>{{ sStudent.student }}</span>
  10253. </div>
  10254. <div class="evalCss">
  10255. <div class="nav">请选择星星进行评分</div>
  10256. <div class="middleBox" v-if="eScore.eStar">
  10257. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10258. <div class="nameAndrate">
  10259. <div>{{ e.value }}</div>
  10260. <el-rate
  10261. v-model="eScore.eStar[eIndex]"
  10262. :disabled="isStar"
  10263. ></el-rate>
  10264. </div>
  10265. <div v-if="e.detail">{{ e.detail }}</div>
  10266. </div>
  10267. <div class="easy_comment" v-if="false">
  10268. <div
  10269. v-for="(p, pIndex) in PlTextList"
  10270. :key="pIndex"
  10271. @click="fastText(p, 2)"
  10272. >
  10273. {{ p }}
  10274. </div>
  10275. </div>
  10276. <div class="bz">
  10277. <textarea
  10278. :disabled="isStar"
  10279. rows="4"
  10280. class="pj"
  10281. style="
  10282. padding: 10px 5px;
  10283. width: 70%;
  10284. background: #f7f6f9;
  10285. font-size: 14px;
  10286. text-indent: 10px;
  10287. "
  10288. cols
  10289. v-model="eScore.eBzText"
  10290. placeholder="请输入评价内容..."
  10291. ></textarea>
  10292. </div>
  10293. </div>
  10294. </div>
  10295. <div slot="footer">
  10296. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10297. >取 消</el-button
  10298. >
  10299. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10300. >确 定</el-button
  10301. >
  10302. </div>
  10303. </el-dialog>
  10304. <el-dialog
  10305. title="选择匹配"
  10306. :visible.sync="dialogVisibleSelect"
  10307. :append-to-body="true"
  10308. width="90%"
  10309. :before-close="handleClose"
  10310. class="dialog_diy dialog_diy3"
  10311. >
  10312. <div v-if="selectJson">
  10313. <div class="select_box2">
  10314. <div class="select_box2_title">
  10315. <div>选择匹配</div>
  10316. <div>请选择对应的答案进行答题!</div>
  10317. </div>
  10318. <div class="select_box2_box">
  10319. <div class="select_box2_img">
  10320. <img
  10321. :src="selectJson.url"
  10322. @click="previewImg(selectJson.url)"
  10323. alt=""
  10324. />
  10325. </div>
  10326. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10327. <div style="padding-top: 15px">
  10328. <div class="select_answer_title" v-if="isSelect">
  10329. {{ selectAnswer.stu }}
  10330. </div>
  10331. <div class="select_answer_title" v-else>
  10332. 根据题目选择对应答案
  10333. </div>
  10334. <div
  10335. class="select_box2_answer_box"
  10336. v-for="(item2, checkIndex) in selectJson.select"
  10337. :key="checkIndex"
  10338. >
  10339. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10340. <el-select
  10341. :disabled="isSelect"
  10342. v-model="selectAnswer.answer[checkIndex]"
  10343. placeholder="请选择正确答案"
  10344. >
  10345. <el-option
  10346. v-for="(e, eIndex) in selectJson.select"
  10347. :key="eIndex"
  10348. :label="e"
  10349. :value="eIndex"
  10350. >
  10351. </el-option>
  10352. </el-select>
  10353. </div>
  10354. </div>
  10355. <div
  10356. class="rightAnswerCss"
  10357. v-if="isSelect && (tType == 1 || tType == 4)"
  10358. >
  10359. <div
  10360. v-for="(a, aIndex) in selectJson.answer"
  10361. :key="aIndex"
  10362. class="rightAnswer"
  10363. >
  10364. <div
  10365. v-if="selectAnswer.answer[aIndex] === a"
  10366. style="color: #767de1"
  10367. >
  10368. 回答正确
  10369. </div>
  10370. <div v-else>回答错误</div>
  10371. <div
  10372. style="margin-left: 10px"
  10373. v-if="selectAnswer.answer[aIndex] !== a"
  10374. >
  10375. 正确答案:
  10376. </div>
  10377. <div
  10378. :class="
  10379. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10380. "
  10381. >
  10382. {{ selectJson.select[a] }}
  10383. </div>
  10384. </div>
  10385. </div>
  10386. </div>
  10387. <div class="upAnswerCss">
  10388. <el-button
  10389. type="primary"
  10390. @click="addSelectAnswer"
  10391. v-if="!isSelect"
  10392. >提交答案</el-button
  10393. >
  10394. </div>
  10395. </div>
  10396. </div>
  10397. </div>
  10398. </el-dialog>
  10399. <el-dialog
  10400. title="选择匹配"
  10401. :visible.sync="dialogVisibleSelectTeacher"
  10402. :append-to-body="true"
  10403. width="90%"
  10404. :before-close="handleClose"
  10405. class="dialog_diy dialog_diy3"
  10406. >
  10407. <div v-if="selectJson">
  10408. <div class="w_name">
  10409. 学生姓名:<span>{{ sStudent.student }}</span>
  10410. </div>
  10411. <div class="select_box2">
  10412. <div class="select_box2_title">
  10413. <div>选择匹配</div>
  10414. <div>请选择对应的答案进行答题!</div>
  10415. </div>
  10416. <div class="select_box2_box">
  10417. <div class="select_box2_img">
  10418. <img
  10419. :src="selectJson.url"
  10420. @click="previewImg(selectJson.url)"
  10421. alt=""
  10422. />
  10423. </div>
  10424. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10425. <div style="padding-top: 15px">
  10426. <div class="select_answer_title" v-if="isSelect">
  10427. {{ selectAnswer.stu }}
  10428. </div>
  10429. <div class="select_answer_title" v-else>
  10430. 根据题目选择对应答案
  10431. </div>
  10432. <div
  10433. class="select_box2_answer_box"
  10434. v-for="(item2, checkIndex) in selectJson.select"
  10435. :key="checkIndex"
  10436. >
  10437. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10438. <el-select
  10439. :disabled="isSelect"
  10440. v-model="selectAnswer.answer[checkIndex]"
  10441. placeholder="请选择正确答案"
  10442. >
  10443. <el-option
  10444. v-for="(e, eIndex) in selectJson.select"
  10445. :key="eIndex"
  10446. :label="e"
  10447. :value="eIndex"
  10448. >
  10449. </el-option>
  10450. </el-select>
  10451. </div>
  10452. </div>
  10453. <div
  10454. class="rightAnswerCss"
  10455. v-if="isSelect && (tType == 1 || tType == 4)"
  10456. >
  10457. <div
  10458. v-for="(a, aIndex) in selectJson.answer"
  10459. :key="aIndex"
  10460. class="rightAnswer"
  10461. >
  10462. <div
  10463. v-if="selectAnswer.answer[aIndex] === a"
  10464. style="color: #767de1"
  10465. >
  10466. 回答正确
  10467. </div>
  10468. <div v-else>回答错误</div>
  10469. <div
  10470. style="margin-left: 10px"
  10471. v-if="selectAnswer.answer[aIndex] !== a"
  10472. >
  10473. 正确答案:
  10474. </div>
  10475. <div
  10476. :class="
  10477. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10478. "
  10479. >
  10480. {{ selectJson.select[a] }}
  10481. </div>
  10482. </div>
  10483. </div>
  10484. </div>
  10485. <div class="upAnswerCss">
  10486. <el-button
  10487. type="primary"
  10488. @click="addSelectAnswerTeacher"
  10489. v-if="!isSelect"
  10490. >提交答案</el-button
  10491. >
  10492. </div>
  10493. </div>
  10494. </div>
  10495. </div>
  10496. </el-dialog>
  10497. <el-dialog
  10498. title="教师评分"
  10499. :visible.sync="dialogVisibleScore"
  10500. :append-to-body="true"
  10501. width="800px"
  10502. :before-close="handleClose"
  10503. class="dialog_diy"
  10504. >
  10505. <div>
  10506. <div class="studentDetail">
  10507. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10508. <div class="nameAndTime">
  10509. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10510. <div>{{ commentDetail.time }}</div>
  10511. </div>
  10512. </div>
  10513. <div
  10514. class="worksAnswer"
  10515. v-if="commentDetail.works && commentDetail.type == 2"
  10516. >
  10517. {{ JSON.parse(commentDetail.works)[0].answer }}
  10518. </div>
  10519. <div
  10520. class="worksAnswer"
  10521. v-if="commentDetail.works && commentDetail.type == 1"
  10522. >
  10523. <pdf
  10524. v-if="showPDF"
  10525. :pdfUrl="pptImgUrl"
  10526. style="width: 100%; height: 520px; overflow: auto"
  10527. :class="{ fullStyle: full }"
  10528. ></pdf>
  10529. <iframe
  10530. v-else
  10531. :src="pptImgUrl"
  10532. frameborder="0"
  10533. width="100%"
  10534. height="600"
  10535. :class="{ fullStyle: full }"
  10536. ></iframe>
  10537. </div>
  10538. <div
  10539. class="worksAnswer"
  10540. v-if="commentDetail.works && commentDetail.type == 0"
  10541. >
  10542. <img
  10543. :src="commentDetail.works"
  10544. alt=""
  10545. @click="previewImg(commentDetail.works)"
  10546. />
  10547. </div>
  10548. <div
  10549. class="worksAnswer"
  10550. v-if="commentDetail.works && commentDetail.type == 3"
  10551. >
  10552. <video-player
  10553. class="video-player vjs-custom-skin"
  10554. :playsinline="true"
  10555. :options="videoDetail"
  10556. @play="onPlayerPlay($event)"
  10557. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10558. ></video-player>
  10559. </div>
  10560. <div
  10561. class="worksAnswer codeFileBox"
  10562. v-if="commentDetail.works && commentDetail.type == 12"
  10563. @click="downloadFile(commentDetail.works)"
  10564. >
  10565. <img src="../../assets/icon/codeFile.png" />
  10566. <div>点击下载文件</div>
  10567. </div>
  10568. <div
  10569. class="worksAnswer codeFileBox"
  10570. v-if="commentDetail.works && commentDetail.type == 15"
  10571. @click="
  10572. openCocoPi(
  10573. 57,
  10574. commentIndexJson.toolIndex,
  10575. commentDetail.userid,
  10576. commentDetail.sName
  10577. )
  10578. "
  10579. >
  10580. <img src="../../assets/icon/codeFile.png" />
  10581. <div>点击打开CocoPi</div>
  10582. </div>
  10583. <div
  10584. class="worksAnswer"
  10585. v-if="commentDetail.works && commentDetail.type == 13"
  10586. >
  10587. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10588. </div>
  10589. <div class="scoreBox">
  10590. <span class="t">请输入分数</span>
  10591. <el-input-number
  10592. :disabled="courseDetail.userid != userid"
  10593. v-model="wScore"
  10594. :controls="false"
  10595. :min="0"
  10596. :max="100"
  10597. ></el-input-number>
  10598. </div>
  10599. <div class="scoreDetailBox">
  10600. <span class="t">评分评论</span>
  10601. <el-input
  10602. type="textarea"
  10603. :rows="5"
  10604. :disabled="courseDetail.userid != userid"
  10605. resize="none"
  10606. v-model="scoreDetail"
  10607. placeholder="请输入对学生的评价"
  10608. >
  10609. </el-input>
  10610. </div>
  10611. </div>
  10612. <span slot="footer" class="dialog-footer">
  10613. <el-button
  10614. @click="
  10615. (dialogVisibleScore = false),
  10616. (commentIndexJson = {}),
  10617. videoDetail.sources && videoDetail.sources[0]
  10618. ? (videoDetail.sources[0].src = '')
  10619. : ''
  10620. "
  10621. >取 消</el-button
  10622. >
  10623. <el-button
  10624. type="primary"
  10625. v-if="courseDetail.userid == userid"
  10626. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10627. >确 定
  10628. </el-button>
  10629. </span>
  10630. </el-dialog>
  10631. <el-dialog
  10632. title="排序"
  10633. :visible.sync="dialogVisibleSentence"
  10634. :append-to-body="true"
  10635. width="1000px"
  10636. :before-close="handleClose"
  10637. class="dialog_diy dialog_diy3"
  10638. >
  10639. <div>
  10640. <div class="sentenBox">
  10641. <div
  10642. v-for="(st, stIndex) in sentenceList"
  10643. :key="stIndex"
  10644. style="padding-bottom: 20px"
  10645. >
  10646. <div
  10647. style="padding: 15px 0 10px 20px"
  10648. class="sentenceTitle"
  10649. :index="stIndex + 1"
  10650. >
  10651. 题目{{ stIndex + 1 }}:请选择正确顺序
  10652. </div>
  10653. <div class="cardList" v-if="st.chooseSenList">
  10654. <div class="cardBox">
  10655. <div
  10656. v-for="(r, rIndex) in st.chooseSenList"
  10657. :key="rIndex"
  10658. @click="returnCard(r, stIndex, rIndex)"
  10659. >
  10660. <el-tooltip
  10661. class="item"
  10662. effect="light"
  10663. :content="r"
  10664. placement="top"
  10665. v-if="r != '' && r != undefined"
  10666. >
  10667. <div
  10668. :class="{
  10669. isCard: r,
  10670. isChooseCard: r == '' || r == undefined,
  10671. }"
  10672. >
  10673. <div>{{ r }}</div>
  10674. </div>
  10675. </el-tooltip>
  10676. <div
  10677. :class="{
  10678. isCard: r,
  10679. isChooseCard: r == '' || r == undefined,
  10680. }"
  10681. v-else
  10682. >
  10683. <div>{{ r }}</div>
  10684. </div>
  10685. </div>
  10686. </div>
  10687. </div>
  10688. <div class="cardList" v-if="st.addChangeSen">
  10689. <div class="cardBox">
  10690. <div
  10691. v-for="(s, sIndex) in st.addChangeSen"
  10692. :key="sIndex"
  10693. @click="setRightAnswer(s, stIndex, sIndex)"
  10694. >
  10695. <el-tooltip
  10696. class="item"
  10697. effect="light"
  10698. :content="s"
  10699. placement="top"
  10700. v-if="s != '' && s != undefined"
  10701. >
  10702. <div
  10703. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10704. >
  10705. <div>{{ s }}</div>
  10706. </div>
  10707. </el-tooltip>
  10708. <div
  10709. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10710. v-else
  10711. >
  10712. <div>{{ s }}</div>
  10713. </div>
  10714. </div>
  10715. </div>
  10716. </div>
  10717. </div>
  10718. </div>
  10719. </div>
  10720. <span slot="footer" class="dialog-footer">
  10721. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10722. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10723. </span>
  10724. </el-dialog>
  10725. <el-dialog
  10726. title="排序"
  10727. :visible.sync="dialogVisibleSentenceTeacher"
  10728. :append-to-body="true"
  10729. width="1000px"
  10730. :before-close="handleClose"
  10731. class="dialog_diy dialog_diy3"
  10732. >
  10733. <div>
  10734. <div class="w_name">
  10735. 学生姓名:<span>{{ sStudent.student }}</span>
  10736. </div>
  10737. <div class="sentenBox">
  10738. <div
  10739. v-for="(st, stIndex) in sentenceList"
  10740. :key="stIndex"
  10741. style="padding-bottom: 20px"
  10742. >
  10743. <div
  10744. style="padding: 15px 0 10px 20px"
  10745. class="sentenceTitle"
  10746. :index="stIndex + 1"
  10747. >
  10748. 题目{{ stIndex + 1 }}:请选择正确顺序
  10749. </div>
  10750. <div class="cardList" v-if="st.chooseSenList">
  10751. <div class="cardBox">
  10752. <div
  10753. v-for="(r, rIndex) in st.chooseSenList"
  10754. :key="rIndex"
  10755. @click="returnCard(r, stIndex, rIndex)"
  10756. >
  10757. <el-tooltip
  10758. class="item"
  10759. effect="light"
  10760. :content="r"
  10761. placement="top"
  10762. v-if="r != '' && r != undefined"
  10763. >
  10764. <div
  10765. :class="{
  10766. isCard: r,
  10767. isChooseCard: r == '' || r == undefined,
  10768. }"
  10769. >
  10770. <div>{{ r }}</div>
  10771. </div>
  10772. </el-tooltip>
  10773. <div
  10774. :class="{
  10775. isCard: r,
  10776. isChooseCard: r == '' || r == undefined,
  10777. }"
  10778. v-else
  10779. >
  10780. <div>{{ r }}</div>
  10781. </div>
  10782. </div>
  10783. </div>
  10784. </div>
  10785. <div class="cardList" v-if="st.addChangeSen">
  10786. <div class="cardBox">
  10787. <div
  10788. v-for="(s, sIndex) in st.addChangeSen"
  10789. :key="sIndex"
  10790. @click="setRightAnswer(s, stIndex, sIndex)"
  10791. >
  10792. <el-tooltip
  10793. class="item"
  10794. effect="light"
  10795. :content="s"
  10796. placement="top"
  10797. v-if="s != '' && s != undefined"
  10798. >
  10799. <div
  10800. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10801. >
  10802. <div>{{ s }}</div>
  10803. </div>
  10804. </el-tooltip>
  10805. <div
  10806. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10807. v-else
  10808. >
  10809. <div>{{ s }}</div>
  10810. </div>
  10811. </div>
  10812. </div>
  10813. </div>
  10814. </div>
  10815. </div>
  10816. </div>
  10817. <span slot="footer" class="dialog-footer">
  10818. <el-button @click="dialogVisibleSentenceTeacher = false"
  10819. >取 消</el-button
  10820. >
  10821. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10822. </span>
  10823. </el-dialog>
  10824. <el-dialog
  10825. title="排序"
  10826. :visible.sync="dialogVisibleSentence1"
  10827. :append-to-body="true"
  10828. width="1000px"
  10829. :before-close="handleClose"
  10830. class="dialog_diy dialog_diy3"
  10831. >
  10832. <div>
  10833. <div class="sentenBox">
  10834. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10835. {{ sentenceList1.stuName }}的作业
  10836. </div>
  10837. <div
  10838. v-for="(st, stIndex) in sentenceList1"
  10839. :key="stIndex"
  10840. style="padding-bottom: 20px"
  10841. >
  10842. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10843. 第{{ stIndex + 1 }}题
  10844. </div>
  10845. <div class="isWrong">
  10846. <div class="cardList1" v-if="st.chooseSenList">
  10847. <div class="cardBox">
  10848. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10849. <el-tooltip
  10850. class="item"
  10851. effect="light"
  10852. :content="s"
  10853. placement="top"
  10854. >
  10855. <div class="isCard">
  10856. <div>{{ s }}</div>
  10857. </div>
  10858. </el-tooltip>
  10859. </div>
  10860. </div>
  10861. <div class="cardAnswerBox">
  10862. 组成句子:{{ st.chooseSenList.join(" ") }}
  10863. </div>
  10864. </div>
  10865. <div v-if="tType == 2" class="isTj">
  10866. <div class="isTjImg">
  10867. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10868. </div>
  10869. <div>已提交</div>
  10870. </div>
  10871. <div
  10872. class="answerRight isTj"
  10873. v-if="
  10874. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10875. (tType == 1 || tType == 4)
  10876. "
  10877. >
  10878. <div class="isTjImg">
  10879. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10880. </div>
  10881. <div>回答正确</div>
  10882. </div>
  10883. <div
  10884. class="answerRight isTj"
  10885. v-if="
  10886. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10887. (tType == 1 || tType == 4)
  10888. "
  10889. >
  10890. <div class="isTjImg">
  10891. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10892. </div>
  10893. <div>回答错误</div>
  10894. </div>
  10895. </div>
  10896. <div
  10897. v-if="
  10898. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10899. (tType == 1 || tType == 4)
  10900. "
  10901. >
  10902. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10903. <div
  10904. class="cardList"
  10905. v-if="st.rightAnswer"
  10906. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10907. >
  10908. <div class="cardBox">
  10909. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10910. <el-tooltip
  10911. class="item"
  10912. effect="light"
  10913. :content="r"
  10914. placement="top"
  10915. >
  10916. <div class="isCard1">
  10917. <div>{{ r }}</div>
  10918. </div>
  10919. </el-tooltip>
  10920. </div>
  10921. </div>
  10922. <div class="cardAnswerBox">
  10923. 组成句子:{{ st.rightAnswer.join(" ") }}
  10924. </div>
  10925. </div>
  10926. </div>
  10927. </div>
  10928. </div>
  10929. </div>
  10930. <span slot="footer" class="dialog-footer">
  10931. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10932. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10933. >确 定</el-button
  10934. >
  10935. </span>
  10936. </el-dialog>
  10937. <el-dialog
  10938. title="教师提交作业"
  10939. :visible.sync="dialogVisibleWorks"
  10940. :append-to-body="true"
  10941. width="500px"
  10942. :before-close="handleClose"
  10943. class="dialog_change"
  10944. >
  10945. <div class="marginT">
  10946. <div class="w_name">
  10947. 学生姓名:<span>{{ sStudent.student }}</span>
  10948. </div>
  10949. <div>上传文件</div>
  10950. <div
  10951. class="chapter_add"
  10952. @click="addImg($event)"
  10953. v-if="studyJuri[0].cover.length == 0"
  10954. >
  10955. <div class="up_photo">
  10956. <img src="../../assets/uploadImg2.png" alt />
  10957. </div>
  10958. <!-- <input
  10959. type="file"
  10960. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10961. style="display: none"
  10962. @change="beforeUpload1($event, 1)"
  10963. /> -->
  10964. <input
  10965. type="file"
  10966. accept="*"
  10967. style="display: none"
  10968. @change="beforeUpload1($event, 1)"
  10969. />
  10970. </div>
  10971. <!-- capture="camera" -->
  10972. <div
  10973. class="chapter_add"
  10974. style="
  10975. display: flex;
  10976. width: 100%;
  10977. flex-direction: row;
  10978. flex-wrap: wrap;
  10979. justify-content: flex-start;
  10980. padding: 15px 0;
  10981. "
  10982. v-if="studyJuri[0].cover.length > 0"
  10983. >
  10984. <div class="upCover">
  10985. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10986. <img :src="word" alt v-else-if="fileType == 1" />
  10987. <img :src="video" alt v-else-if="fileType == 2" />
  10988. <img :src="word2" alt v-else-if="fileType == 3" />
  10989. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10990. <div class="deleteWord" @click="clean(1)">
  10991. <img src="../../assets/icon/deleteWorks.png" alt />
  10992. </div>
  10993. </div>
  10994. </div>
  10995. </div>
  10996. <div
  10997. class="upload_send"
  10998. @click="addCourseWorksTeacher(taskCount)"
  10999. v-if="!proVisible"
  11000. >
  11001. 提交
  11002. </div>
  11003. </el-dialog>
  11004. <ImgDraw
  11005. :drawShow="drawShow"
  11006. @closeDraw="closeDraw"
  11007. @addImgDraw="addImgDraw"
  11008. :bg="bg"
  11009. ></ImgDraw>
  11010. <el-dialog
  11011. title="表格"
  11012. :visible.sync="dialogVisibleTable"
  11013. :append-to-body="true"
  11014. width="95%"
  11015. :before-close="handleClose"
  11016. class="dialog_diy"
  11017. >
  11018. <el-form>
  11019. <div
  11020. style="
  11021. display: flex;
  11022. align-items: center;
  11023. justify-content: space-between;
  11024. "
  11025. >
  11026. <span>表格内容</span>
  11027. <el-button type="primary" size="small" @click="returnTableText"
  11028. >还原模板</el-button
  11029. >
  11030. </div>
  11031. <Table
  11032. v-model="tableJson.text"
  11033. @change="change"
  11034. v-if="dialogVisibleTable"
  11035. ></Table>
  11036. </el-form>
  11037. <span slot="footer" class="dialog-footer">
  11038. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11039. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11040. </span>
  11041. </el-dialog>
  11042. <el-dialog
  11043. title="表格"
  11044. :visible.sync="dialogVisibleTableTeacher"
  11045. :append-to-body="true"
  11046. width="95%"
  11047. :before-close="handleClose"
  11048. class="dialog_diy"
  11049. >
  11050. <el-form>
  11051. <div class="w_name">
  11052. 学生姓名:<span>{{ sStudent.student }}</span>
  11053. </div>
  11054. <div>表格内容</div>
  11055. <Table
  11056. v-model="tableJson.text"
  11057. @change="change"
  11058. v-if="dialogVisibleTableTeacher"
  11059. ></Table>
  11060. </el-form>
  11061. <span slot="footer" class="dialog-footer">
  11062. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11063. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11064. </span>
  11065. </el-dialog>
  11066. <el-dialog
  11067. title="文档"
  11068. :visible.sync="dialogVisibleWord"
  11069. :append-to-body="true"
  11070. width="95%"
  11071. :before-close="handleClose"
  11072. class="dialog_diy"
  11073. >
  11074. <el-form>
  11075. <div
  11076. style="
  11077. display: flex;
  11078. align-items: center;
  11079. justify-content: space-between;
  11080. "
  11081. >
  11082. <span>文档内容</span>
  11083. <el-button type="primary" size="small" @click="returnWordText"
  11084. >还原模板</el-button
  11085. >
  11086. </div>
  11087. <editor-bar
  11088. v-model="wordJson.text"
  11089. v-if="dialogVisibleWord"
  11090. ></editor-bar>
  11091. </el-form>
  11092. <span slot="footer" class="dialog-footer">
  11093. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11094. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11095. </span>
  11096. </el-dialog>
  11097. <el-dialog
  11098. title="文档"
  11099. :visible.sync="dialogVisibleWordTeacher"
  11100. :append-to-body="true"
  11101. width="95%"
  11102. :before-close="handleClose"
  11103. class="dialog_diy"
  11104. >
  11105. <el-form>
  11106. <div class="w_name">
  11107. 学生姓名:<span>{{ sStudent.student }}</span>
  11108. </div>
  11109. <div>文档内容</div>
  11110. <editor-bar
  11111. v-model="wordJson.text"
  11112. v-if="dialogVisibleWordTeacher"
  11113. ></editor-bar>
  11114. </el-form>
  11115. <span slot="footer" class="dialog-footer">
  11116. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11117. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11118. </span>
  11119. </el-dialog>
  11120. <el-dialog
  11121. title="表格"
  11122. :visible.sync="dialogVisibleTable2"
  11123. :append-to-body="true"
  11124. width="95%"
  11125. :before-close="handleClose"
  11126. class="dialog_diy"
  11127. >
  11128. <el-form>
  11129. <div class="cont" v-html="tableJson.text"></div>
  11130. </el-form>
  11131. <span slot="footer" class="dialog-footer">
  11132. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11133. </span>
  11134. </el-dialog>
  11135. <el-dialog
  11136. title="文档"
  11137. :visible.sync="dialogVisibleTable3"
  11138. :append-to-body="true"
  11139. width="95%"
  11140. :before-close="handleClose"
  11141. class="dialog_diy"
  11142. >
  11143. <el-form>
  11144. <div class="cont" v-html="tableJson.text"></div>
  11145. </el-form>
  11146. <span slot="footer" class="dialog-footer">
  11147. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11148. </span>
  11149. </el-dialog>
  11150. <el-dialog
  11151. title="分组设置"
  11152. :visible.sync="dialogVisibleGroup"
  11153. :append-to-body="true"
  11154. width="95%"
  11155. :before-close="handleClose"
  11156. class="dialog_diy"
  11157. >
  11158. <div v-if="dialogVisibleGroup">
  11159. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11160. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11161. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11162. </div>
  11163. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11164. @click="lockChair">
  11165. 锁定位置
  11166. </div>
  11167. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11168. 解锁位置
  11169. </div> -->
  11170. <div class="group_switch">
  11171. <span>开放选座</span>
  11172. <el-switch
  11173. v-model="islock"
  11174. active-text=""
  11175. class="switchCss"
  11176. @change="lockChair"
  11177. ></el-switch>
  11178. </div>
  11179. <div
  11180. type="primary"
  11181. @click="updateGroup"
  11182. class="returnBtn"
  11183. style="background-color: #225bc7"
  11184. >
  11185. 分组设置
  11186. </div>
  11187. </div>
  11188. <div>
  11189. <div
  11190. class="g_d_box"
  11191. v-if="groupJson.group && groupStudent[toolindex]"
  11192. >
  11193. <div
  11194. class="g_d_group"
  11195. v-for="(g, gindex) in groupJson.group"
  11196. :key="gindex"
  11197. >
  11198. <div class="g_d_group_chair">
  11199. <div v-if="groupJson.number > 1">
  11200. <span
  11201. :class="{
  11202. isChair:
  11203. groupStudent[toolindex][gindex] &&
  11204. groupStudent[toolindex][gindex][0],
  11205. updateChair:
  11206. courseDetail.userid == userid &&
  11207. groupStudent[toolindex][gindex] &&
  11208. groupStudent[toolindex][gindex][0] &&
  11209. groupJson.islock == 2,
  11210. }"
  11211. ><span
  11212. class="updateChairBtn"
  11213. @click="
  11214. updateGroupChair(
  11215. groupStudent[toolindex][gindex] &&
  11216. groupStudent[toolindex][gindex][0]
  11217. )
  11218. "
  11219. >修改</span
  11220. ></span
  11221. ><span>{{
  11222. groupStudent[toolindex][gindex] &&
  11223. groupStudent[toolindex][gindex][0]
  11224. ? groupStudent[toolindex][gindex] &&
  11225. groupStudent[toolindex][gindex][0].name
  11226. : "空位置"
  11227. }}</span>
  11228. </div>
  11229. <div v-if="groupJson.number > 4">
  11230. <span
  11231. :class="{
  11232. isChair:
  11233. groupStudent[toolindex][gindex] &&
  11234. groupStudent[toolindex][gindex][4],
  11235. updateChair:
  11236. courseDetail.userid == userid &&
  11237. groupStudent[toolindex][gindex] &&
  11238. groupStudent[toolindex][gindex][4] &&
  11239. groupJson.islock == 2,
  11240. }"
  11241. ><span
  11242. class="updateChairBtn"
  11243. @click="
  11244. updateGroupChair(
  11245. groupStudent[toolindex][gindex] &&
  11246. groupStudent[toolindex][gindex][4]
  11247. )
  11248. "
  11249. >修改</span
  11250. ></span
  11251. ><span>{{
  11252. groupStudent[toolindex][gindex] &&
  11253. groupStudent[toolindex][gindex][4]
  11254. ? groupStudent[toolindex][gindex] &&
  11255. groupStudent[toolindex][gindex][4].name
  11256. : "空位置"
  11257. }}</span>
  11258. </div>
  11259. <div v-if="groupJson.number > 8">
  11260. <span
  11261. :class="{
  11262. isChair:
  11263. groupStudent[toolindex][gindex] &&
  11264. groupStudent[toolindex][gindex][8],
  11265. updateChair:
  11266. courseDetail.userid == userid &&
  11267. groupStudent[toolindex][gindex] &&
  11268. groupStudent[toolindex][gindex][8] &&
  11269. groupJson.islock == 2,
  11270. }"
  11271. ><span
  11272. class="updateChairBtn"
  11273. @click="
  11274. updateGroupChair(
  11275. groupStudent[toolindex][gindex] &&
  11276. groupStudent[toolindex][gindex][8]
  11277. )
  11278. "
  11279. >修改</span
  11280. ></span
  11281. ><span>{{
  11282. groupStudent[toolindex][gindex] &&
  11283. groupStudent[toolindex][gindex][8]
  11284. ? groupStudent[toolindex][gindex] &&
  11285. groupStudent[toolindex][gindex][8].name
  11286. : "空位置"
  11287. }}</span>
  11288. </div>
  11289. </div>
  11290. <div class="g_d_group_tableBox">
  11291. <div class="g_d_group_chair2">
  11292. <div v-if="groupJson.number > 2">
  11293. <span
  11294. :class="{
  11295. isChair:
  11296. groupStudent[toolindex][gindex] &&
  11297. groupStudent[toolindex][gindex][2],
  11298. updateChair:
  11299. courseDetail.userid == userid &&
  11300. groupStudent[toolindex][gindex] &&
  11301. groupStudent[toolindex][gindex][2] &&
  11302. groupJson.islock == 2,
  11303. }"
  11304. ><span
  11305. class="updateChairBtn"
  11306. @click="
  11307. updateGroupChair(
  11308. groupStudent[toolindex][gindex] &&
  11309. groupStudent[toolindex][gindex][2]
  11310. )
  11311. "
  11312. >修改</span
  11313. ></span
  11314. ><span>{{
  11315. groupStudent[toolindex][gindex] &&
  11316. groupStudent[toolindex][gindex][2]
  11317. ? groupStudent[toolindex][gindex] &&
  11318. groupStudent[toolindex][gindex][2].name
  11319. : "空位置"
  11320. }}</span>
  11321. </div>
  11322. <div v-if="groupJson.number > 6">
  11323. <span
  11324. :class="{
  11325. isChair:
  11326. groupStudent[toolindex][gindex] &&
  11327. groupStudent[toolindex][gindex][6],
  11328. updateChair:
  11329. courseDetail.userid == userid &&
  11330. groupStudent[toolindex][gindex] &&
  11331. groupStudent[toolindex][gindex][6] &&
  11332. groupJson.islock == 2,
  11333. }"
  11334. ><span
  11335. class="updateChairBtn"
  11336. @click="
  11337. updateGroupChair(
  11338. groupStudent[toolindex][gindex] &&
  11339. groupStudent[toolindex][gindex][6]
  11340. )
  11341. "
  11342. >修改</span
  11343. ></span
  11344. ><span>{{
  11345. groupStudent[toolindex][gindex] &&
  11346. groupStudent[toolindex][gindex][6]
  11347. ? groupStudent[toolindex][gindex] &&
  11348. groupStudent[toolindex][gindex][6].name
  11349. : "空位置"
  11350. }}</span>
  11351. </div>
  11352. </div>
  11353. <div class="g_d_group_table">
  11354. <div>
  11355. {{ g.name }}
  11356. </div>
  11357. <div>
  11358. <div
  11359. v-if="
  11360. courseDetail.userid == userid && groupJson.islock == 2
  11361. "
  11362. @click="deleteGroupChair(gindex)"
  11363. >
  11364. 移除组员
  11365. </div>
  11366. <div
  11367. @click="selectGroup(gindex)"
  11368. v-else-if="
  11369. groupStudentUid[toolindex] &&
  11370. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11371. "
  11372. >
  11373. 加入分组
  11374. </div>
  11375. <div
  11376. @click="
  11377. exitGroup(
  11378. groupStudent[toolindex][gindex] &&
  11379. groupStudent[toolindex][gindex][
  11380. groupStudentUid[toolindex][gindex].indexOf(userid)
  11381. ].id
  11382. )
  11383. "
  11384. v-else-if="
  11385. groupStudentUid[toolindex] &&
  11386. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11387. "
  11388. >
  11389. 退出分组
  11390. </div>
  11391. </div>
  11392. </div>
  11393. <div class="g_d_group_chair2">
  11394. <div v-if="groupJson.number > 3">
  11395. <span
  11396. :class="{
  11397. isChair:
  11398. groupStudent[toolindex][gindex] &&
  11399. groupStudent[toolindex][gindex][3],
  11400. updateChair:
  11401. courseDetail.userid == userid &&
  11402. groupStudent[toolindex][gindex] &&
  11403. groupStudent[toolindex][gindex][3] &&
  11404. groupJson.islock == 2,
  11405. }"
  11406. ><span
  11407. class="updateChairBtn"
  11408. @click="
  11409. updateGroupChair(
  11410. groupStudent[toolindex][gindex] &&
  11411. groupStudent[toolindex][gindex][3]
  11412. )
  11413. "
  11414. >修改</span
  11415. ></span
  11416. ><span>{{
  11417. groupStudent[toolindex][gindex] &&
  11418. groupStudent[toolindex][gindex][3]
  11419. ? groupStudent[toolindex][gindex] &&
  11420. groupStudent[toolindex][gindex][3].name
  11421. : "空位置"
  11422. }}</span>
  11423. </div>
  11424. <div v-if="groupJson.number > 7">
  11425. <span
  11426. :class="{
  11427. isChair:
  11428. groupStudent[toolindex][gindex] &&
  11429. groupStudent[toolindex][gindex][7],
  11430. updateChair:
  11431. courseDetail.userid == userid &&
  11432. groupStudent[toolindex][gindex] &&
  11433. groupStudent[toolindex][gindex][7] &&
  11434. groupJson.islock == 2,
  11435. }"
  11436. ><span
  11437. class="updateChairBtn"
  11438. @click="
  11439. updateGroupChair(
  11440. groupStudent[toolindex][gindex] &&
  11441. groupStudent[toolindex][gindex][7]
  11442. )
  11443. "
  11444. >修改</span
  11445. ></span
  11446. ><span>{{
  11447. groupStudent[toolindex][gindex] &&
  11448. groupStudent[toolindex][gindex][7]
  11449. ? groupStudent[toolindex][gindex] &&
  11450. groupStudent[toolindex][gindex][7].name
  11451. : "空位置"
  11452. }}</span>
  11453. </div>
  11454. </div>
  11455. </div>
  11456. <div class="g_d_group_chair">
  11457. <div v-if="groupJson.number > 1">
  11458. <span
  11459. :class="{
  11460. isChair:
  11461. groupStudent[toolindex][gindex] &&
  11462. groupStudent[toolindex][gindex][1],
  11463. updateChair:
  11464. courseDetail.userid == userid &&
  11465. groupStudent[toolindex][gindex] &&
  11466. groupStudent[toolindex][gindex][1] &&
  11467. groupJson.islock == 2,
  11468. }"
  11469. ><span
  11470. class="updateChairBtn"
  11471. @click="
  11472. updateGroupChair(
  11473. groupStudent[toolindex][gindex] &&
  11474. groupStudent[toolindex][gindex][1]
  11475. )
  11476. "
  11477. >修改</span
  11478. ></span
  11479. ><span>{{
  11480. groupStudent[toolindex][gindex] &&
  11481. groupStudent[toolindex][gindex][1]
  11482. ? groupStudent[toolindex][gindex] &&
  11483. groupStudent[toolindex][gindex][1].name
  11484. : "空位置"
  11485. }}</span>
  11486. </div>
  11487. <div v-if="groupJson.number > 5">
  11488. <span
  11489. :class="{
  11490. isChair:
  11491. groupStudent[toolindex][gindex] &&
  11492. groupStudent[toolindex][gindex][5],
  11493. updateChair:
  11494. courseDetail.userid == userid &&
  11495. groupStudent[toolindex][gindex] &&
  11496. groupStudent[toolindex][gindex][5] &&
  11497. groupJson.islock == 2,
  11498. }"
  11499. ><span
  11500. class="updateChairBtn"
  11501. @click="
  11502. updateGroupChair(
  11503. groupStudent[toolindex][gindex] &&
  11504. groupStudent[toolindex][gindex][5]
  11505. )
  11506. "
  11507. >修改</span
  11508. ></span
  11509. ><span>{{
  11510. groupStudent[toolindex][gindex] &&
  11511. groupStudent[toolindex][gindex][5]
  11512. ? groupStudent[toolindex][gindex] &&
  11513. groupStudent[toolindex][gindex][5].name
  11514. : "空位置"
  11515. }}</span>
  11516. </div>
  11517. <div v-if="groupJson.number > 9">
  11518. <span
  11519. :class="{
  11520. isChair:
  11521. groupStudent[toolindex][gindex] &&
  11522. groupStudent[toolindex][gindex][9],
  11523. updateChair:
  11524. courseDetail.userid == userid &&
  11525. groupStudent[toolindex][gindex] &&
  11526. groupStudent[toolindex][gindex][9] &&
  11527. groupJson.islock == 2,
  11528. }"
  11529. ><span
  11530. class="updateChairBtn"
  11531. @click="
  11532. updateGroupChair(
  11533. groupStudent[toolindex][gindex] &&
  11534. groupStudent[toolindex][gindex][9]
  11535. )
  11536. "
  11537. >修改</span
  11538. ></span
  11539. ><span>{{
  11540. groupStudent[toolindex][gindex] &&
  11541. groupStudent[toolindex][gindex][9]
  11542. ? groupStudent[toolindex][gindex] &&
  11543. groupStudent[toolindex][gindex][9].name
  11544. : "空位置"
  11545. }}</span>
  11546. </div>
  11547. </div>
  11548. </div>
  11549. </div>
  11550. </div>
  11551. </div>
  11552. <span slot="footer" class="dialog-footer">
  11553. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11554. </span>
  11555. </el-dialog>
  11556. <el-dialog
  11557. title="分组设置"
  11558. :visible.sync="dialogVisibleGroup2"
  11559. :append-to-body="true"
  11560. width="650px"
  11561. :before-close="handleClose"
  11562. class="dialog_diy"
  11563. >
  11564. <div class="groupBox">
  11565. <div v-if="groupJson2.group" class="groupContent">
  11566. <div class="groupTitle">请设置小组数量及名称</div>
  11567. <div
  11568. v-for="(item, index) in groupJson2.group"
  11569. :key="index"
  11570. class="groupName"
  11571. >
  11572. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11573. <el-input
  11574. v-model="item.name"
  11575. placeholder="请输入名称..."
  11576. style="width: 250px"
  11577. ></el-input>
  11578. <!-- <div class="groupBtn">
  11579. <el-button type="primary" size="small" @click="addGroup(index)">
  11580. 添加</el-button>
  11581. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11582. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11583. </div> -->
  11584. </div>
  11585. </div>
  11586. <div class="groupContent">
  11587. <div class="groupTitle">请设置每组人数</div>
  11588. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11589. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11590. <el-input
  11591. v-model="groupJson2.number"
  11592. style="width: 150px"
  11593. placeholder="请输入2-10的数字"
  11594. @change="numberPan"
  11595. ></el-input>
  11596. </div>
  11597. </div>
  11598. <span slot="footer" class="dialog-footer">
  11599. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11600. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11601. </span>
  11602. </el-dialog>
  11603. <el-dialog
  11604. title="作业提交"
  11605. :visible.sync="dialogVisibleGroupWork"
  11606. :append-to-body="true"
  11607. width="500px"
  11608. :before-close="handleClose"
  11609. class="dialog_change"
  11610. >
  11611. <div class="marginT">
  11612. <div>上传文件</div>
  11613. <div
  11614. class="chapter_add"
  11615. @click="addImg($event)"
  11616. v-if="studyJuri[0].cover.length == 0"
  11617. >
  11618. <div class="up_photo">
  11619. <img src="../../assets/icon/uploadImg.png" alt />
  11620. </div>
  11621. <!-- <input
  11622. type="file"
  11623. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11624. style="display: none"
  11625. @change="beforeUpload1($event, 1)"
  11626. /> -->
  11627. <input
  11628. type="file"
  11629. accept="*"
  11630. style="display: none"
  11631. @change="beforeUpload1($event, 1)"
  11632. />
  11633. </div>
  11634. <!-- capture="camera" -->
  11635. <div
  11636. class="chapter_add"
  11637. style="
  11638. display: flex;
  11639. width: 100%;
  11640. flex-direction: row;
  11641. flex-wrap: wrap;
  11642. justify-content: flex-start;
  11643. padding: 15px 0;
  11644. "
  11645. v-if="studyJuri[0].cover.length > 0"
  11646. >
  11647. <div class="upCover">
  11648. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11649. <img :src="word" alt v-else-if="fileType == 1" />
  11650. <img :src="video" alt v-else-if="fileType == 2" />
  11651. <img :src="word2" alt v-else-if="fileType == 3" />
  11652. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11653. <div class="deleteWord" @click="clean(1)">
  11654. <img src="../../assets/icon/deleteWorks.png" alt />
  11655. </div>
  11656. </div>
  11657. </div>
  11658. </div>
  11659. <div
  11660. class="upload_send"
  11661. @click="addCourseWorks2(taskCount)"
  11662. v-if="!proVisible"
  11663. >
  11664. 提交
  11665. </div>
  11666. </el-dialog>
  11667. <el-dialog
  11668. title="修改分组"
  11669. :visible.sync="dialogVisibleUpdateGroup"
  11670. :append-to-body="true"
  11671. width="350px"
  11672. :before-close="handleClose"
  11673. class="dialog_diy"
  11674. >
  11675. <div>
  11676. <h2>
  11677. {{ this.updateGroupUser.name }}
  11678. </h2>
  11679. <div style="color: rgb(171 171 171); margin-top: 10px">
  11680. 请选择要进入的分组
  11681. </div>
  11682. <el-radio-group v-model="checkChair">
  11683. <el-radio
  11684. style="display: block; margin-top: 20px"
  11685. v-for="(item, index) in updateGroupArray"
  11686. :label="item.label"
  11687. :key="index"
  11688. >{{ item.name }}</el-radio
  11689. >
  11690. </el-radio-group>
  11691. </div>
  11692. <span slot="footer" class="dialog-footer">
  11693. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11694. <el-button type="primary" @click="updateChair">确定</el-button>
  11695. </span>
  11696. </el-dialog>
  11697. <el-dialog
  11698. title="移除组员"
  11699. :visible.sync="dialogVisibleDeleteGroup"
  11700. :append-to-body="true"
  11701. width="350px"
  11702. :before-close="handleClose"
  11703. class="dialog_diy"
  11704. >
  11705. <div>
  11706. <h2>
  11707. {{ this.deleteGroupArray.name }}
  11708. </h2>
  11709. <div style="color: rgb(171 171 171); margin-top: 10px">
  11710. 请选择要删除的组员
  11711. </div>
  11712. <el-checkbox-group v-model="checkDeleteGroup">
  11713. <el-checkbox
  11714. style="display: flex; margin-top: 20px"
  11715. v-for="(item, index) in deleteGroupUser"
  11716. :label="item.userid"
  11717. :key="index"
  11718. >{{ item.name }}</el-checkbox
  11719. >
  11720. </el-checkbox-group>
  11721. </div>
  11722. <span slot="footer" class="dialog-footer">
  11723. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11724. <el-button type="primary" @click="deleteChair">确定</el-button>
  11725. </span>
  11726. </el-dialog>
  11727. <el-dialog
  11728. title="批量上传"
  11729. :visible.sync="dialogVisiblePl"
  11730. :append-to-body="true"
  11731. width="700px"
  11732. :before-close="handleClose"
  11733. class="dialog_change"
  11734. >
  11735. <div class="marginT">
  11736. <div class="plworkBox">
  11737. <div
  11738. class="chapter_add"
  11739. style="
  11740. display: flex;
  11741. width: 150px;
  11742. flex-direction: row;
  11743. flex-wrap: wrap;
  11744. justify-content: flex-start;
  11745. margin: 0 10px 10px 0;
  11746. "
  11747. v-for="(item, index) in plworkFile"
  11748. :key="index"
  11749. >
  11750. <div class="upCover2">
  11751. <img
  11752. :src="item.url"
  11753. alt
  11754. v-if="item.fileType == 1"
  11755. @click="previewImg(item.url)"
  11756. />
  11757. <img :src="word" alt v-else-if="item.fileType == 4" />
  11758. <img :src="video" alt v-else />
  11759. <!-- <span class="picName">{{ item.name }}</span> -->
  11760. <!-- <el-input
  11761. v-model="item.username"
  11762. placeholder="请输入学生名字"
  11763. style="margin-top: 10px"
  11764. ></el-input> -->
  11765. <div
  11766. class="pl_select_box"
  11767. @click="
  11768. getUpdateMore(true, checkUpload(), item.username, index)
  11769. "
  11770. >
  11771. {{ getSName(item.username) }}
  11772. </div>
  11773. <!-- <el-select
  11774. style="margin-top: 10px"
  11775. v-model="item.username"
  11776. filterable
  11777. allow-create
  11778. placeholder="请选择学生"
  11779. >
  11780. <el-option
  11781. v-for="item1 in checkUpload()"
  11782. :key="item1.userid"
  11783. :label="item1.name ? item1.name : item1.username"
  11784. :value="item1.userid"
  11785. >
  11786. </el-option>
  11787. </el-select> -->
  11788. <div class="deleteWord" @click="clean2(index)">
  11789. <img src="../../assets/icon/deleteWorks.png" alt />
  11790. </div>
  11791. </div>
  11792. </div>
  11793. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11794. <div class="up_photo2">
  11795. <img src="../../assets/icon/plwork.png" alt />
  11796. <span>点击上传文件</span>
  11797. </div>
  11798. <input
  11799. type="file"
  11800. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11801. multiple="multiple"
  11802. style="display: none"
  11803. @change="beforeUpload3($event, 6)"
  11804. />
  11805. </div>
  11806. </div>
  11807. </div>
  11808. <!-- capture="camera" -->
  11809. <div
  11810. class="upload_send"
  11811. @click="addCourseWorksPl(taskCount)"
  11812. v-if="!proVisible2"
  11813. >
  11814. 提交
  11815. </div>
  11816. </el-dialog>
  11817. <el-dialog
  11818. title="修改名称"
  11819. :visible.sync="dialogVisibleSname"
  11820. width="500px"
  11821. :before-close="handleClose"
  11822. class="dialog_diy"
  11823. center
  11824. >
  11825. <div
  11826. style="
  11827. text-align: center;
  11828. display: flex;
  11829. align-items: center;
  11830. justify-content: center;
  11831. "
  11832. >
  11833. <span class="tian1">名称</span>
  11834. <div
  11835. class="pl_select_box"
  11836. style="margin-left: 10px; width: 200px"
  11837. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11838. >
  11839. {{ getSName(worksSName) }}
  11840. </div>
  11841. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11842. placeholder="请选择学生">
  11843. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11844. :value="item.userid">
  11845. </el-option>
  11846. </el-select> -->
  11847. <!-- <el-input
  11848. v-model="worksSName"
  11849. style="width: 250px; margin: 15px 0px"
  11850. ></el-input> -->
  11851. </div>
  11852. <span slot="footer" class="dialog-footer">
  11853. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11854. <el-button type="primary" @click="updateName">确 定</el-button>
  11855. </span>
  11856. </el-dialog>
  11857. <el-dialog
  11858. title="英语写作"
  11859. :visible.sync="engDialogVisible"
  11860. :append-to-body="true"
  11861. width="800px"
  11862. :before-close="handleClose"
  11863. class="dialog_diy"
  11864. >
  11865. <onlineWrite
  11866. v-if="engDialogVisible"
  11867. :englishList="englishList"
  11868. :myAnswerList1="myAnswerList1"
  11869. ref="engJson"
  11870. ></onlineWrite>
  11871. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11872. <el-button @click="engDialogVisible = false">取 消</el-button>
  11873. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11874. </span>
  11875. </el-dialog>
  11876. <el-dialog
  11877. title="英语写作"
  11878. :visible.sync="engUpdateDialogVisible"
  11879. :append-to-body="true"
  11880. width="800px"
  11881. :before-close="handleClose"
  11882. class="dialog_diy fullStyle"
  11883. >
  11884. <div class="engUpBox">
  11885. <div class="engUpTop">
  11886. <div class="engTitle">
  11887. <div>作文题目:</div>
  11888. <div>{{ englishList1.engTitle }}</div>
  11889. </div>
  11890. <div class="engText">
  11891. <div>作文内容:</div>
  11892. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11893. </div>
  11894. </div>
  11895. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11896. <div class="oldBox">
  11897. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11898. <div class="oldText">
  11899. <div class="detailBox">
  11900. <div class="oldDetail">
  11901. <div>标题:</div>
  11902. <div>{{ oldEnglishJson.engTitle }} </div>
  11903. </div>
  11904. <div class="oldDetail1">
  11905. <div>正文:</div>
  11906. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11907. </div>
  11908. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11909. <div>图片:</div>
  11910. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11911. </div>
  11912. </div>
  11913. </div>
  11914. </div>
  11915. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11916. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11917. <div class="oldText">
  11918. <div class="detailBox" style="position: relative;">
  11919. <div class="oldDetail">
  11920. <div>标题:</div>
  11921. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11922. <div v-else v-html="newEnglishList.engTitle"></div>
  11923. </div>
  11924. <div class="oldDetail">
  11925. <div>正文:</div>
  11926. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11927. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11928. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11929. </div>
  11930. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11931. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11932. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11933. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11934. </div>
  11935. </div>
  11936. </div>
  11937. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11938. <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">
  11939. <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>
  11940. <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>
  11941. </div>
  11942. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11943. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11944. <div class="detailBox" style="position: relative;">
  11945. <div class="oldDetail">
  11946. <div>标题:</div>
  11947. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11948. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11949. </div>
  11950. <div class="oldDetail">
  11951. <div>正文:</div>
  11952. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11953. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11954. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  11955. </div>
  11956. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11957. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11958. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11959. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11960. </div>
  11961. </div>
  11962. <div class="oldText" v-else-if="newEngIndex == -1">
  11963. <div class="detailBox" style="position: relative;">
  11964. <div class="oldDetail">
  11965. <div>标题:</div>
  11966. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11967. <div v-else v-html="newEnglishList.engTitle"></div>
  11968. </div>
  11969. <div class="oldDetail">
  11970. <div>正文:</div>
  11971. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11972. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11973. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11974. </div>
  11975. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11976. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11977. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11978. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11979. </div>
  11980. </div>
  11981. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11982. <div class="detailBox" style="position: relative;">
  11983. <div class="oldDetail">
  11984. <div>标题:</div>
  11985. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11986. <div v-else>
  11987. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  11988. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11989. </div>
  11990. </div>
  11991. <div class="oldDetail">
  11992. <div>正文:</div>
  11993. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  11994. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11995. <div v-else>
  11996. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11997. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11998. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  11999. </div>
  12000. </div>
  12001. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12002. <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>
  12003. <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>
  12004. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12005. </div>
  12006. </div>
  12007. </div>
  12008. </div>
  12009. </div>
  12010. <span slot="footer" class="dialog-footer">
  12011. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12012. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12013. </span>
  12014. </el-dialog>
  12015. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12016. <interVideo
  12017. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12018. :videoJson="videoJson"
  12019. :userid="userid"
  12020. :id="id"
  12021. :courseType="courseType"
  12022. :taskCount="taskCount"
  12023. :toolindex="toolindex"
  12024. :videoType="videoType"
  12025. ></interVideo>
  12026. <UpdateMore
  12027. :dialogVisibleMember.sync="dialogVisibleMember"
  12028. :cList="uploadStudentJuri"
  12029. :userid="userid"
  12030. :searchTN="worksSName2"
  12031. @setPlname="setPlname"
  12032. ></UpdateMore>
  12033. <!-- <wordCloud
  12034. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12035. :data="wordCloudData"
  12036. ></wordCloud> -->
  12037. <el-dialog
  12038. title="词云"
  12039. :visible.sync="dialogVisibleWordCloud"
  12040. width="30%"
  12041. class="dialog_diy"
  12042. :before-close="handleClose">
  12043. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12044. </el-dialog>
  12045. <el-dialog
  12046. title="挑人"
  12047. :visible.sync="dialogVisiblePickPeople"
  12048. width="650px"
  12049. :before-close="handleClose"
  12050. class="dialog_diy"
  12051. center
  12052. >
  12053. <div class="pick_box">
  12054. <div
  12055. class="noWorksName"
  12056. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12057. v-for="(item, index) in uploadStudentJuri"
  12058. :key="index"
  12059. @click="pickStudent(item)"
  12060. >
  12061. {{ item.name }}
  12062. </div>
  12063. </div>
  12064. </el-dialog>
  12065. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12066. :englishVoiceJson='englishVoiceJson'
  12067. :userid="userid"
  12068. :id="id"
  12069. :courseType="courseType"
  12070. :taskCount="taskCount"
  12071. :toolindex="toolindex"
  12072. @selectSWorks="selectSWorks"
  12073. @selectStudent="selectStudent"
  12074. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12075. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12076. :userid="userid"
  12077. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12078. :commentDetail="commentDetail"
  12079. :courseDetail="courseDetail"
  12080. :wScore="wScore"
  12081. :scoreDetail="scoreDetail"
  12082. @selectSWorks="selectSWorks"
  12083. @selectStudent="selectStudent"></checkEnglishVoice>
  12084. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12085. <choseWorksDetailDialog
  12086. ref="choseWorksDetailDialogRef"
  12087. :worksStudentData="worksStudent"
  12088. :noWorksSData="noWorksS"
  12089. :chapInfoListData="chapInfoList"
  12090. :courseType="courseType"
  12091. :taskCount="taskCount"
  12092. :tType="tType"
  12093. :sIsOpen="sIsOpen"
  12094. :courseDetail="courseDetail"
  12095. :groupStudent2="groupStudent"
  12096. :groupStudentUid2="groupStudentUid"
  12097. :oid="oid"
  12098. :org="org"
  12099. @getCourseDetail="getCourseDetail"
  12100. @selectSLook="selectSLook"
  12101. @selectSWorks="selectSWorks"
  12102. @selectStudent="selectStudent"
  12103. @deleteWorks="deleteWorks"
  12104. @openTools="openTools"
  12105. @openWord="openWord"
  12106. @openScore="openScore"
  12107. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12108. />
  12109. <el-dialog
  12110. :visible.sync="confirmOpenDig"
  12111. width="500px"
  12112. :modal="false"
  12113. class="confirmOpenDigCss dialog_diyCopy"
  12114. :before-close="handleClose">
  12115. <div style="display: flex;align-items: center;">
  12116. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  12117. <span>“{{ courseDetail.title }}”开课啦</span>
  12118. </div>
  12119. <div style="margin: 20px 0 35px;">
  12120. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12121. <div>要认真听讲哦~</div>
  12122. </div>
  12123. <div style="text-align: center;">
  12124. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12125. </div>
  12126. </el-dialog>
  12127. </div>
  12128. </template>
  12129. <script>
  12130. import "../../common/aws-sdk-2.235.1.min.js";
  12131. // import pdf from "../components/pdf3";
  12132. import pdf from "../components/vpdf";
  12133. import AskStatic from "../components/askStatic";
  12134. import AskStatic2 from "../components/askStatic2";
  12135. import AnswerData2 from "../components/answerData2";
  12136. import AnswerData from "../components/answerData";
  12137. import EditorBar from "../tools/wangEnduit.vue";
  12138. import Table from "../tools/table.vue";
  12139. import Time from "../tools/time.vue";
  12140. import Mind from "../tools/jsmind.vue";
  12141. import Sunburst from "../tools/sunburst";
  12142. import SeeBoard from "../tools/seeBoard";
  12143. import * as imageConversion from "image-conversion";
  12144. import Audio from "../components/audio.vue";
  12145. import ImgDraw from "../tools/imgDraw/imgDraw";
  12146. import { Empty } from "element-ui";
  12147. import RecordRTC from "recordrtc";
  12148. import interVideo from "../interVideo/index.vue";
  12149. import UpdateMore from "../updateMore/updateMore.vue";
  12150. import wordCloud from "../wordCloud/index.vue";
  12151. import axios from "axios";
  12152. import JSZip from "jszip";
  12153. import FileSaver from "file-saver";
  12154. import onlineWrite from "./commpont/onlineWrite";
  12155. import englishEva from "../components/englishEva";
  12156. import * as Diff from 'diff'
  12157. import EnglishVoice from '../EnglishVoice2/index.vue'
  12158. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  12159. import correctText from '../components/correctText.vue'
  12160. import scoreItem from '../scoreList/scoreItem.vue'
  12161. import scoreZong from '../scoreZong/index.vue'
  12162. import classRoomHelper from '../classRoomHelper/index.vue'
  12163. import MarkdownIt from "markdown-it";
  12164. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  12165. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  12166. import { v4 as uuidv4 } from "uuid";
  12167. var OpenCC = require("opencc-js");
  12168. import choseWordCloud from '../components/choseWordCloud.vue'
  12169. let converter = OpenCC.Converter({
  12170. from: "hk",
  12171. to: "cn"
  12172. });
  12173. const getFile = (url) => {
  12174. return new Promise((resolve, reject) => {
  12175. var credentials = {
  12176. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12177. secretAccessKey: "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",
  12178. }; //秘钥形式的登录上传
  12179. window.AWS.config.update(credentials);
  12180. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12181. let url2 = url;
  12182. let _url2 = "";
  12183. if (
  12184. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12185. ) {
  12186. _url2 = url2.split(
  12187. "https://view.officeapps.live.com/op/view.aspx?src="
  12188. )[1];
  12189. } else {
  12190. _url2 = url2;
  12191. }
  12192. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12193. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12194. var params = {
  12195. Bucket: "ccrb",
  12196. Key: name
  12197. };
  12198. s3.getObject(params, function (err, data) {
  12199. if (err) {
  12200. console.log(err, err.stack)
  12201. resolve({ data: 1 });
  12202. }else {
  12203. resolve({ data: data.Body });
  12204. console.log(data);
  12205. } // sxuccessful response
  12206. });
  12207. // axios({
  12208. // method: "get",
  12209. // url,
  12210. // responseType: "blob",
  12211. // })
  12212. // .then((data) => {
  12213. // resolve({ data: data.data });
  12214. // })
  12215. // .catch((error) => {
  12216. // resolve({ data: 1 });
  12217. // // reject(error.toString());
  12218. // });
  12219. });
  12220. };
  12221. export default {
  12222. components: {
  12223. choseWordCloud,
  12224. EditorBar,
  12225. Time,
  12226. pdf,
  12227. AskStatic,
  12228. AskStatic2,
  12229. Mind,
  12230. Sunburst,
  12231. SeeBoard,
  12232. AnswerData2,
  12233. AnswerData,
  12234. Audio,
  12235. ImgDraw,
  12236. Table,
  12237. interVideo,
  12238. UpdateMore,
  12239. wordCloud,
  12240. onlineWrite,
  12241. englishEva,
  12242. EnglishVoice,
  12243. checkEnglishVoice,
  12244. correctText,
  12245. scoreItem,
  12246. classRoomHelper,
  12247. scoreZong,
  12248. statisticalAnalysis,
  12249. choseWorksDetailDialog
  12250. },
  12251. data() {
  12252. return {
  12253. wordCloudKey: 0,
  12254. bg: null,
  12255. drawShow: false,
  12256. dialogVisible: false,
  12257. dialogVisiblePl: false,
  12258. commentDialogVisible: false,
  12259. dialogVisibleMember: false,
  12260. dialogVisibleWordCloud: false,
  12261. videoVisible: false,
  12262. isStar: false,
  12263. studentEvalDialogVisible: false,
  12264. studentEvalDialogVisibleTeacher: false,
  12265. dialogVisibleSelect: false,
  12266. dialogVisibleSelectTeacher: false,
  12267. dialogVisibleScore: false,
  12268. dialogVisibleENScore: false,
  12269. dialogVisibleSentence: false,
  12270. dialogVisibleSentenceTeacher: false,
  12271. dialogVisibleSentence1: false,
  12272. dialogVisibleWorks: false,
  12273. dialogVisibleTable: false,
  12274. dialogVisibleTableTeacher: false,
  12275. dialogVisibleWord: false,
  12276. dialogVisibleWordTeacher: false,
  12277. dialogVisibleTable2: false,
  12278. dialogVisibleTable3: false,
  12279. dialogVisibleGroupWork: false,
  12280. dialogVisibleUpdateGroup: false,
  12281. dialogVisibleDeleteGroup: false,
  12282. dialogVisibleSname: false,
  12283. dialogVisibleVideo: false,
  12284. dialogVisiblePickPeople: false,
  12285. worksSName: "",
  12286. classJuri: [],
  12287. uploadStudentJuri: [],
  12288. uploadCid: "",
  12289. snameWid: "",
  12290. sStudent: {},
  12291. sTool: "",
  12292. bzText: "",
  12293. commentDetail: [],
  12294. selectAnswer: [],
  12295. videoDetail: {},
  12296. selectJson: {},
  12297. eScore: { eBzText: "", eStar: [] },
  12298. id: this.$route.query.courseId,
  12299. userid: this.$route.query.userid,
  12300. classId: this.$route.query.cid,
  12301. // courseTypeLine: this.$route.query.type,
  12302. oid: this.$route.query.oid,
  12303. org: this.$route.query.org,
  12304. tType: this.$route.query.tType,
  12305. courseType: this.$route.query.type,
  12306. screenType: this.$route.query.screenType,
  12307. tcid2: this.$route.query.tcid,
  12308. tcid: "",
  12309. pptImgUrl: "",
  12310. pptImgUrl1: "",
  12311. commentText: "",
  12312. full: false,
  12313. sIsOpen: false,
  12314. IsLookOpen: false,
  12315. IsFollow: false,
  12316. pzDialog: false,
  12317. contentDialog: false,
  12318. mlDialog: false,
  12319. type: 1,
  12320. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12321. sentenceList1: [],
  12322. tableJson: [],
  12323. tableJsonO: [],
  12324. wordJson: [],
  12325. wordJsonO: [],
  12326. vedio: [],
  12327. text: [],
  12328. textList: [],
  12329. line: [],
  12330. lineList: [],
  12331. chapTools: [],
  12332. chapToolList: [],
  12333. file: [],
  12334. fileC: [],
  12335. vedioTime: [],
  12336. upToolImg: "",
  12337. preTime: 0,
  12338. rateList: {
  12339. ca: 0,
  12340. },
  12341. rateParams: [],
  12342. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12343. studyJuri: [
  12344. {
  12345. content: "",
  12346. cover: [],
  12347. upVedio: [],
  12348. upFile: [],
  12349. },
  12350. ],
  12351. isClose: 0,
  12352. plworkFile: [],
  12353. mr: require("../../assets/vedioPic.png"),
  12354. word: require("../../assets/icon/isWord.png"),
  12355. word2: require("../../assets/icon/word2.png"),
  12356. video: require("../../assets/icon/isVideo.png"),
  12357. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12358. likes: require("../../assets/icon/comment/likes.png"),
  12359. scoreImg: require("../../assets/score.png"),
  12360. courseDetail: {},
  12361. reply: "",
  12362. isSelect: false,
  12363. chapInfo: [],
  12364. chapInfoList: [],
  12365. taskCount: 0,
  12366. imgList: [],
  12367. noImgList: [],
  12368. pzList: [],
  12369. timeWorkList: [],
  12370. PlTextList: [
  12371. "Excellent!",
  12372. "nice!",
  12373. "很有创意!",
  12374. "还不错哦~",
  12375. "继续努力哦~",
  12376. ],
  12377. isClickNav: "",
  12378. navId: "",
  12379. playerOptions: {
  12380. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12381. autoplay: false, //如果true,浏览器准备好时开始回放。
  12382. muted: false, // 默认情况下将会消除任何音频。
  12383. loop: false, // 导致视频一结束就重新开始。
  12384. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12385. language: "zh-CN",
  12386. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12387. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12388. sources: [
  12389. {
  12390. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12391. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12392. },
  12393. ],
  12394. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12395. // poster: dataRes.imgUrl, //你的封面地址
  12396. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12397. controlBar: {
  12398. timeDivider: true, //当前时间和持续时间的分隔符
  12399. durationDisplay: true, //显示持续时间
  12400. remainingTimeDisplay: false, //是否显示剩余时间功能
  12401. fullscreenToggle: true, //全屏按钮
  12402. },
  12403. },
  12404. playerOptions1: {
  12405. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12406. autoplay: false, //如果true,浏览器准备好时开始回放。
  12407. muted: false, // 默认情况下将会消除任何音频。
  12408. loop: false, // 导致视频一结束就重新开始。
  12409. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12410. language: "zh-CN",
  12411. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12412. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12413. sources: [
  12414. {
  12415. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12416. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12417. },
  12418. ],
  12419. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12420. // poster: dataRes.imgUrl, //你的封面地址
  12421. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12422. controlBar: {
  12423. timeDivider: true, //当前时间和持续时间的分隔符
  12424. durationDisplay: true, //显示持续时间
  12425. remainingTimeDisplay: false, //是否显示剩余时间功能
  12426. fullscreenToggle: true, //全屏按钮
  12427. },
  12428. },
  12429. playerO: {},
  12430. noneBtnImg: false,
  12431. proVisible: false,
  12432. proVisible2: false,
  12433. progress: 0,
  12434. isFinishSize: 0,
  12435. isAllSize: 0,
  12436. questionAnswer: "",
  12437. answerQ: "", //问答标题
  12438. rateJson: [],
  12439. wbCount: 0,
  12440. wordCount: 0,
  12441. mindCount: 0,
  12442. askCount: 0,
  12443. noteCount: 0,
  12444. mindNetWorkCount: 0,
  12445. libraryCount: 0,
  12446. workCount: 0,
  12447. timeCount: 0,
  12448. answerCount: 0,
  12449. trainCount: 0,
  12450. evalCount: 0,
  12451. dialogImageUrl: "",
  12452. pictureDialog: false,
  12453. toolTypeList: [],
  12454. dialogVisible1: false,
  12455. dialogVisible2: false,
  12456. dialogVisible3: false,
  12457. dialogVisible6: false,
  12458. dialogVisible4: false,
  12459. isNoHomeWork: false,
  12460. dialogVisible5: false,
  12461. dialogVisible5Teacher: false,
  12462. dialogVisibleChoice: false,
  12463. dialogVisibleChoiceTeacher: false,
  12464. answerDialogVisible: false,
  12465. answerDialogVisibleTeacher: false,
  12466. juriVisible: false,
  12467. timeDialogVisible: false,
  12468. replyDialogVisible: false,
  12469. toolDialogVisible: false,
  12470. engDialogVisible: false,
  12471. engUpdateDialogVisible:false,
  12472. engEvaDialogVisible: false,
  12473. evaEngJson: {
  12474. teacherJson: {},
  12475. studentJson: {},
  12476. message: {},
  12477. },
  12478. isNoUserid:false,
  12479. engListLength:0,
  12480. engWid:"",
  12481. newEnglishList:{
  12482. engTitle:"",
  12483. engText:"",
  12484. },
  12485. newEnglishList1:[],
  12486. oldEnglishJson:{},
  12487. oldEnglishJson1:{},
  12488. englishList1:{},
  12489. englishList:{},
  12490. myAnswerList1:{},
  12491. topHeight:0,
  12492. newEngIndex:-1,
  12493. englishToolIndex:0,
  12494. userMes:{},
  12495. englishToolIndex:0,
  12496. replyIndex: 0,
  12497. replyPid: "",
  12498. radio: [],
  12499. isAsk: false,
  12500. askJson: {
  12501. askCount: 1,
  12502. askTitle: "",
  12503. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12504. },
  12505. testJson: {},
  12506. englishList: {},
  12507. topHeight:0,
  12508. checkJson: [],
  12509. askList: [],
  12510. answerList: [],
  12511. navList: [],
  12512. addPzDialog: false,
  12513. pzConText: "",
  12514. worksStudent: [],
  12515. isCloseList: [],
  12516. workStudent: [],
  12517. groupStudent: [],
  12518. groupStudentUid: [],
  12519. noWorksS: [],
  12520. isWorksS: [],
  12521. noWorksStudent: [],
  12522. toolindex: 0,
  12523. toolDetailIndex: null,
  12524. groupIndex: 0,
  12525. workTypeB: false,
  12526. workTypeC: false,
  12527. isAnswer: false,
  12528. isHovered: false,
  12529. isHovered1: false,
  12530. isHovered2: false,
  12531. commentTagShow:0,
  12532. timer: null,
  12533. timer2: null,
  12534. opertimer: null,
  12535. showType: '',
  12536. fileType: 0,
  12537. showPDF: false,
  12538. noteName: "",
  12539. evaJuri: [],
  12540. evalua: "",
  12541. eTitle: "",
  12542. eName: "",
  12543. eJson: {},
  12544. fid: "", //一级
  12545. sid: "", //二级
  12546. tid: "", //二级
  12547. typeMode: 1,
  12548. eJSONNum: 0,
  12549. Etype: 1,
  12550. data: {
  12551. meta: {
  12552. name: "example",
  12553. author: "dd@163.com",
  12554. version: "0.2",
  12555. },
  12556. format: "node_array",
  12557. data: [{ id: "root", isroot: true, topic: "" }],
  12558. },
  12559. fullDialogVisible: false,
  12560. fulltype: "",
  12561. fullUrl: "",
  12562. commentIndexJson: {},
  12563. Stbodywidth: 0,
  12564. ispzType: 0,
  12565. pzType: 1,
  12566. wScore: 0,
  12567. scoreDetail: "",
  12568. videoStart: false,
  12569. recorder: null,
  12570. groupJson: {},
  12571. islock: false,
  12572. groupJson2: {},
  12573. dialogVisibleGroup: false,
  12574. dialogVisibleGroup2: false,
  12575. updateGroupArray: [],
  12576. updateGroupUser: {},
  12577. deleteGroupUser: [],
  12578. deleteGroupArray: {},
  12579. checkChair: "",
  12580. checkDeleteGroup: [],
  12581. inviteCode: "",
  12582. courseGroupStudent: [],
  12583. courseGroupStudentUid: [],
  12584. courseGroup: {},
  12585. isGroup: false,
  12586. toolIndex: null,
  12587. tool: {},
  12588. isWorkTool: [
  12589. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12590. ], //, 40
  12591. videoJson: {},
  12592. videoType:0,
  12593. toolType: 0,
  12594. checktoolArray: [],
  12595. vChapterData: [],
  12596. isUpdateToolDetail: false,
  12597. isUpdateToolDetail1: false,
  12598. updateToolDetailInner: "",
  12599. checkboxList: [],
  12600. plIndex: "",
  12601. worksSName2: "",
  12602. worksSid: "",
  12603. wordCloudData: [],
  12604. isPickStudent: [],
  12605. pzStype: 1,
  12606. myAnList: {},
  12607. downLoading: false,
  12608. greyType: false,
  12609. correctWord: [],
  12610. EnglishVoiceDialog: false,
  12611. englishVoiceJson: {},
  12612. englishVoiceJsonWork:[],
  12613. scoreList:{
  12614. listdata:[],
  12615. isScoreList:[],
  12616. },
  12617. classRoomHelperWidth: '85px',
  12618. orgArray:[],
  12619. oidArray:[],
  12620. splitScreenData:{
  12621. isOpen:false,
  12622. userId:"",
  12623. uid:"",
  12624. myUid:"",
  12625. loading:false,
  12626. behavior:null,
  12627. },
  12628. confirmOpenDig:false,
  12629. confirmOpenDigData:''
  12630. };
  12631. },
  12632. methods: {
  12633. getAIJ(){
  12634. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12635. let oid = res.data[0];
  12636. let org = res.data[1];
  12637. let oidArray = [];
  12638. let orgArray = [];
  12639. oid.forEach(i=>oidArray.push(i.oid))
  12640. org.forEach(i=>orgArray.push(i.oid))
  12641. this.orgArray = orgArray;
  12642. this.oidArray = oidArray;
  12643. })
  12644. },
  12645. insertMemorandum(_html){//保存行为操作
  12646. //variable
  12647. //btn
  12648. let params = [{
  12649. uid:this.userid,
  12650. courseId:this.id+(this.tcid2?this.tcid2:''),
  12651. content:_html
  12652. }]
  12653. console.log(params)
  12654. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12655. if(res.data==1){
  12656. console.log('保存操作成功')
  12657. }else{
  12658. console.log('保存操作失败')
  12659. }
  12660. }).catch(e=>{
  12661. console.log('保存操作失败')
  12662. console.log(e)
  12663. })
  12664. },
  12665. gx(){
  12666. this.$forceUpdate();
  12667. },
  12668. isUpdateCorrect(t,p){
  12669. if(this.greyType == false){
  12670. this.isUpdateText = t;
  12671. this.greyType = true;
  12672. }else{
  12673. if(p == 1){
  12674. this.newEnglishList.engText = this.isUpdateText;
  12675. }else if(p == 2){
  12676. this.oldEnglishJson1.engText = this.isUpdateText;
  12677. }else if(p == 3){
  12678. this.newEnglishList.engText = this.isUpdateText;
  12679. }else{
  12680. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12681. }
  12682. this.greyType = false
  12683. }
  12684. },
  12685. aiCorrect(t,p){
  12686. let aiText = "";
  12687. const loading = this.$loading.service({
  12688. background: "rgba(255, 255, 255)",
  12689. target: document.querySelectorAll(".loadingText")[0],
  12690. });
  12691. let param = {
  12692. model: "gpt-3.5-turbo",
  12693. temperature: 0,
  12694. max_tokens: 2048,
  12695. top_p: 1,
  12696. frequency_penalty: 0,
  12697. presence_penalty: 0,
  12698. messages: [
  12699. {
  12700. role: "user",
  12701. content:
  12702.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12703. },
  12704. ],
  12705. uid: this.userid,
  12706. stream: false,
  12707. };
  12708. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12709. (res) => {
  12710. if (
  12711. res.data.FunctionResponse &&
  12712. res.data.FunctionResponse.result &&
  12713. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12714. ) {
  12715. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12716. return;
  12717. }
  12718. aiText =
  12719. res.data.FunctionResponse.choices[0].message.content;
  12720. aiText = aiText.replace(/%/g,"%25");
  12721. // let w = "";
  12722. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12723. // for(var k = 0;k<a.length;k++){
  12724. // //diffWordsWithSpace
  12725. // if(a.length > 1){
  12726. // if(a[k].added == true){
  12727. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12728. // }else if(a[k].removed == true){
  12729. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12730. // }else{
  12731. // w += '<span>' + a[k].value + '</span>';
  12732. // }
  12733. // }else{
  12734. // if(p == 1){
  12735. // w = this.newEnglishList.engText;
  12736. // }else if(p == 2){
  12737. // w = this.oldEnglishJson1.engText;
  12738. // }else if(p == 3){
  12739. // w = this.newEnglishList.engText;
  12740. // }else{
  12741. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12742. // }
  12743. // }
  12744. // }
  12745. if(p == 1){
  12746. this.newEnglishList.engText = aiText;
  12747. }else if(p == 2){
  12748. this.oldEnglishJson1.engText = aiText;
  12749. }else if(p == 3){
  12750. this.newEnglishList.engText = aiText;
  12751. }else{
  12752. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12753. }
  12754. loading.close();
  12755. },
  12756. (err) => {
  12757. console.log(err);
  12758. loading.close();
  12759. }
  12760. );
  12761. },
  12762. addToolChoose() {
  12763. if (!this.checktoolArray.length) {
  12764. this.$message.error("请选择要添加的任务");
  12765. return;
  12766. }
  12767. if (
  12768. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12769. this.taskCount
  12770. ].toolChoose[0].tool.length
  12771. ) {
  12772. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12773. this.taskCount
  12774. ].toolChoose[0].tool = this.checktoolArray;
  12775. } else {
  12776. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12777. this.taskCount
  12778. ].toolChoose.push({
  12779. tool: this.checktoolArray,
  12780. toolDetail: "",
  12781. toolType: 0,
  12782. askCount: 1,
  12783. askTitle: "",
  12784. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12785. });
  12786. }
  12787. let params = [
  12788. {
  12789. cid: this.id,
  12790. chapters: JSON.stringify(this.chapInfoList),
  12791. uid: this.userid,
  12792. unitIndex: this.courseType,
  12793. },
  12794. ];
  12795. this.ajax
  12796. .post(this.$store.state.api + "updateWorkNew4", params)
  12797. .then((res) => {
  12798. this.$message({
  12799. message: "添加成功",
  12800. type: "success",
  12801. });
  12802. this.checktoolArray = [];
  12803. this.getCourseDetail(2);
  12804. this.checkBz(
  12805. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12806. this.taskCount
  12807. ].toolChoose.length - 1
  12808. );
  12809. this.toolDialogVisible = false;
  12810. this.refreshCourse();
  12811. this.$forceUpdate();
  12812. })
  12813. .catch((err) => {
  12814. console.error(err);
  12815. });
  12816. },
  12817. checkBz(index) {
  12818. this.isUpdateToolDetail = false;
  12819. this.$forceUpdate();
  12820. setTimeout(() => {
  12821. document.scrollingElement.scrollTop =
  12822. document.querySelectorAll(".filebox")[index].offsetTop +
  12823. document.querySelector(".student_body").offsetTop;
  12824. }, 500);
  12825. },
  12826. updateToolDetail(i, type) {
  12827. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12828. this.toolDetailIndex = i
  12829. this.isUpdateToolDetail1 = true;
  12830. setTimeout(() => {
  12831. this.updateToolDetailInner = JSON.parse(
  12832. JSON.stringify(
  12833. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12834. this.taskCount
  12835. ].toolChoose[i].toolDetail
  12836. )
  12837. );
  12838. document.querySelector(".checkTextArea").focus();
  12839. }, 0);
  12840. } else if((this.isUpdateToolDetail1 && type != 2)){
  12841. // this.toolDetailIndex = i;
  12842. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12843. this.taskCount
  12844. ].toolChoose[i].toolDetail = JSON.parse(
  12845. JSON.stringify(this.updateToolDetailInner)
  12846. );
  12847. let params = [
  12848. {
  12849. cid: this.id,
  12850. chapters: JSON.stringify(this.chapInfoList),
  12851. uid: this.userid,
  12852. unitIndex: this.courseType,
  12853. },
  12854. ];
  12855. this.ajax
  12856. .post(this.$store.state.api + "updateWorkNew4", params)
  12857. .then((res) => {
  12858. this.isUpdateToolDetail1 = false;
  12859. this.$message({
  12860. message: "修改成功",
  12861. type: "success",
  12862. });
  12863. this.toolDetailIndex = null;
  12864. this.updateToolDetailInner = "";
  12865. this.getCourseDetail(2);
  12866. this.$forceUpdate();
  12867. })
  12868. .catch((err) => {
  12869. console.error(err);
  12870. });
  12871. } else if((this.isUpdateToolDetail1 && type == 2)){
  12872. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12873. this.taskCount
  12874. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12875. JSON.stringify(this.updateToolDetailInner)
  12876. );
  12877. let params = [
  12878. {
  12879. cid: this.id,
  12880. chapters: JSON.stringify(this.chapInfoList),
  12881. uid: this.userid,
  12882. unitIndex: this.courseType,
  12883. },
  12884. ];
  12885. this.ajax
  12886. .post(this.$store.state.api + "updateWorkNew4", params)
  12887. .then((res) => {
  12888. this.$message({
  12889. message: "修改成功",
  12890. type: "success",
  12891. });
  12892. this.toolDetailIndex = i;
  12893. this.isUpdateToolDetail1 = true;
  12894. setTimeout(() => {
  12895. this.updateToolDetailInner = JSON.parse(
  12896. JSON.stringify(
  12897. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12898. this.taskCount
  12899. ].toolChoose[i].toolDetail
  12900. )
  12901. );
  12902. document.querySelector(".checkTextArea").focus();
  12903. }, 0);
  12904. this.getCourseDetail(2);
  12905. this.$forceUpdate();
  12906. })
  12907. .catch((err) => {
  12908. console.error(err);
  12909. });
  12910. }
  12911. },
  12912. jumpGj(i, j, k, l) {
  12913. for (var z = 0; z < this.navList.length; z++) {
  12914. for (var q = 0; q < this.navList[z].task.length; q++) {
  12915. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12916. this.navList[z].task[q].tool[w].isTool = false;
  12917. }
  12918. }
  12919. }
  12920. console.log(this.navList);
  12921. this.navList[i].task[j].tool[k].isTool =
  12922. !this.navList[i].task[j].tool[k].isTool;
  12923. var a = document.scrollingElement;
  12924. let target = document.querySelector(`#gj${k}`);
  12925. if (target) {
  12926. // target.scrollIntoView(true);
  12927. // setTimeout(() => {
  12928. // a.scrollTop = a.scrollTop - 150;
  12929. // }, 0);
  12930. target.scrollIntoView();
  12931. setTimeout(()=>{
  12932. let scrollBody = document.querySelector('.body_student').parentElement
  12933. scrollBody.scrollTop = scrollBody.scrollTop - 100
  12934. }, 0);
  12935. }
  12936. this.navId = ""
  12937. let flag = this.courseType == i;
  12938. let flag2 = this.taskCount == j
  12939. if (l) {
  12940. this.courseType = i;
  12941. // this.navId = l;
  12942. this.taskCount = j;
  12943. this.selectPz();
  12944. this.getHomeWork();
  12945. this.getCourseDetail(2);
  12946. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  12947. if(flag){
  12948. if(flag2){
  12949. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12950. }else{
  12951. 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>`)
  12952. }
  12953. }else{
  12954. 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>`)
  12955. }
  12956. }
  12957. // var b = this.$refs["bz" + k][0];
  12958. // a.scrollTop = b.offsetTop;
  12959. },
  12960. addTools2(i) {
  12961. if (i == 4) {
  12962. // this.openTools2(4);
  12963. this.$message.error("暂未开放");
  12964. return;
  12965. }
  12966. if (i == 45) {
  12967. // this.openTools2(45);
  12968. this.$message.error("暂未开放");
  12969. return;
  12970. }
  12971. if (i == 47) {
  12972. // this.openTools2(47);
  12973. this.$message.error("暂未开放");
  12974. return;
  12975. }
  12976. if (i == 49) {
  12977. // this.openTools2(49);
  12978. this.$message.error("暂未开放");
  12979. return;
  12980. }
  12981. if (i == 62) {
  12982. // this.openTools(itemTaskIndex, 62, toolIndex);
  12983. this.$message.error("暂未开放");
  12984. return;
  12985. }
  12986. if (i == 15) {
  12987. // this.openTools(itemTaskIndex, 15, toolIndex);
  12988. this.$message.error("暂未开放");
  12989. return;
  12990. }
  12991. if (i == 40) {
  12992. // this.openTools(itemTaskIndex, 40, toolIndex);
  12993. this.$message.error("暂未开放");
  12994. return;
  12995. }
  12996. if (i == 41) {
  12997. // this.openTools(itemTaskIndex, 41, toolIndex);
  12998. this.$message.error("暂未开放");
  12999. return;
  13000. }
  13001. if (i == 42) {
  13002. // this.openTools(itemTaskIndex, 42, toolIndex);
  13003. this.$message.error("暂未开放");
  13004. return;
  13005. }
  13006. if (this.checktoolArray.length > 0) {
  13007. if (this.checktoolArray.indexOf(i) != -1) {
  13008. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13009. } else {
  13010. this.checktoolArray = [];
  13011. this.checktoolArray.push(i);
  13012. }
  13013. } else {
  13014. this.checktoolArray.push(i);
  13015. }
  13016. this.$forceUpdate();
  13017. },
  13018. jump() {
  13019. window.parent.postMessage({ tools: "43" }, "*");
  13020. },
  13021. getUpdateMore(f, checkboxList, searchTN, index) {
  13022. this.dialogVisibleMember = f;
  13023. this.checkboxList = checkboxList;
  13024. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13025. this.plIndex = index;
  13026. },
  13027. setPlname(a) {
  13028. if (this.plworkFile.length) {
  13029. this.plworkFile[this.plIndex].username = a;
  13030. } else {
  13031. this.worksSName = a;
  13032. }
  13033. this.dialogVisibleMember = false;
  13034. },
  13035. previewImg(url,w) {
  13036. this.$hevueImgPreview(url);
  13037. if(w){
  13038. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13039. }
  13040. },
  13041. checkImg(list) {
  13042. if (!list.length) {
  13043. return;
  13044. }
  13045. this.$hevueImgPreview({
  13046. multiple: true, // 开启多图预览模式
  13047. imgList: list, // 需要预览的多图数组
  13048. });
  13049. },
  13050. change(val) {
  13051. console.log(val);
  13052. },
  13053. goTo(path) {
  13054. this.$router.push(path);
  13055. },
  13056. handlePictureCardPreview(url) {
  13057. this.dialogImageUrl = url;
  13058. this.pictureDialog = true;
  13059. },
  13060. clean(type) {
  13061. if (type == 1) {
  13062. this.studyJuri[0].cover.splice(0, 1);
  13063. } else if (type == 2) {
  13064. this.studyJuri[0].upVedio.splice(0, 1);
  13065. } else {
  13066. this.studyJuri[0].upFile.splice(0, 1);
  13067. }
  13068. },
  13069. clean2(index) {
  13070. this.plworkFile.splice(index, 1);
  13071. },
  13072. handleClose(done) {
  13073. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13074. this.videoDetail.sources[0].src = "";
  13075. }
  13076. this.commentIndexJson = {};
  13077. this.changeSplitScreenBehavior({code:99})
  13078. done();
  13079. },
  13080. fullTools() {
  13081. this.full = !this.full;
  13082. },
  13083. imgChange(file, fileList, type) {
  13084. if (type == 1) {
  13085. var _tmp = this.studyJuri[0].cover;
  13086. } else if (type == 2) {
  13087. var _tmp = this.studyJuri[0].upVedio;
  13088. } else {
  13089. var _tmp = this.studyJuri[0].upFile;
  13090. }
  13091. this.noneBtnImg = _tmp.length >= 1;
  13092. },
  13093. setContent(bool) {
  13094. this.contentDialog = bool;
  13095. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13096. document.querySelector(".workd_media").style.height = "650px";
  13097. } else if (document.querySelector(".workd_media")) {
  13098. document.querySelector(".workd_media").style.height = "auto";
  13099. }
  13100. },
  13101. setContent2(bool) {
  13102. this.mlDialog = bool;
  13103. if (
  13104. bool &&
  13105. this.contentDialog &&
  13106. document.querySelector(".workd_media")
  13107. ) {
  13108. document.querySelector(".workd_media").style.height = "650px";
  13109. } else if (document.querySelector(".workd_media")) {
  13110. document.querySelector(".workd_media").style.height = "auto";
  13111. }
  13112. },
  13113. openToolAll() {
  13114. this.toolDialogVisible = true;
  13115. },
  13116. addImg(e) {
  13117. var el = e.currentTarget;
  13118. // this.$message.success('触发上传')
  13119. el.getElementsByTagName("input")[0].click();
  13120. e.target.value = "";
  13121. },
  13122. addSelectAnswer() {
  13123. let params = [
  13124. {
  13125. uid: this.userid,
  13126. cid: this.id,
  13127. stage: this.courseType,
  13128. task: this.taskCount,
  13129. tool: this.toolindex,
  13130. content: this.selectAnswer.answer,
  13131. type: 7,
  13132. },
  13133. ];
  13134. this.ajax
  13135. .post(this.$store.state.api + "addCourseWorks", params)
  13136. .then((res) => {
  13137. this.$message({
  13138. message: "提交成功",
  13139. type: "success",
  13140. });
  13141. this.dialogVisibleSelect = false;
  13142. // this.selectAnswer = {};
  13143. this.selectSWorks();
  13144. this.selectStudent();
  13145. })
  13146. .catch((err) => {
  13147. this.$message.error("提交失败");
  13148. console.error(err);
  13149. });
  13150. },
  13151. addSelectAnswerTeacher() {
  13152. let params = [
  13153. {
  13154. uid: this.sStudent.userid,
  13155. cid: this.id,
  13156. stage: this.courseType,
  13157. task: this.taskCount,
  13158. tool: this.toolindex,
  13159. content: this.selectAnswer.answer,
  13160. type: 7,
  13161. },
  13162. ];
  13163. this.ajax
  13164. .post(this.$store.state.api + "addCourseWorks", params)
  13165. .then((res) => {
  13166. this.$message({
  13167. message: "提交成功",
  13168. type: "success",
  13169. });
  13170. this.dialogVisibleSelectTeacher = false;
  13171. // this.selectAnswer = {};
  13172. this.selectSWorks();
  13173. this.selectStudent();
  13174. })
  13175. .catch((err) => {
  13176. this.$message.error("提交失败");
  13177. console.error(err);
  13178. });
  13179. },
  13180. addSenWorks() {
  13181. for (var i = 0; i < this.sentenceList.length; i++) {
  13182. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13183. if (
  13184. this.sentenceList[i].chooseSenList[j] == undefined ||
  13185. this.sentenceList[i].chooseSenList[j] == ""
  13186. ) {
  13187. this.$message.error("请将答案填写完整!");
  13188. return;
  13189. }
  13190. }
  13191. }
  13192. let params = [
  13193. {
  13194. uid: this.userid,
  13195. cid: this.id,
  13196. stage: this.courseType,
  13197. task: this.taskCount,
  13198. tool: this.toolindex,
  13199. content: JSON.stringify(this.sentenceList),
  13200. type: 9,
  13201. },
  13202. ];
  13203. this.ajax
  13204. .post(this.$store.state.api + "addCourseWorks", params)
  13205. .then((res) => {
  13206. this.$message({
  13207. message: "提交成功",
  13208. type: "success",
  13209. });
  13210. this.dialogVisibleSentence = false;
  13211. // this.selectAnswer = {};
  13212. this.selectSWorks();
  13213. this.selectStudent();
  13214. })
  13215. .catch((err) => {
  13216. this.$message.error("提交失败");
  13217. console.error(err);
  13218. });
  13219. },
  13220. addSenWorksTeacher() {
  13221. for (var i = 0; i < this.sentenceList.length; i++) {
  13222. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13223. if (
  13224. this.sentenceList[i].chooseSenList[j] == undefined ||
  13225. this.sentenceList[i].chooseSenList[j] == ""
  13226. ) {
  13227. this.$message.error("请将答案填写完整!");
  13228. return;
  13229. }
  13230. }
  13231. }
  13232. let params = [
  13233. {
  13234. uid: this.sStudent.userid,
  13235. cid: this.id,
  13236. stage: this.courseType,
  13237. task: this.taskCount,
  13238. tool: this.toolindex,
  13239. content: JSON.stringify(this.sentenceList),
  13240. type: 9,
  13241. },
  13242. ];
  13243. this.ajax
  13244. .post(this.$store.state.api + "addCourseWorks", params)
  13245. .then((res) => {
  13246. this.$message({
  13247. message: "提交成功",
  13248. type: "success",
  13249. });
  13250. this.dialogVisibleSentenceTeacher = false;
  13251. // this.selectAnswer = {};
  13252. this.selectSWorks();
  13253. this.selectStudent();
  13254. })
  13255. .catch((err) => {
  13256. this.$message.error("提交失败");
  13257. console.error(err);
  13258. });
  13259. },
  13260. returnTableText() {
  13261. this.$confirm("确定还原此模板吗?", "提示", {
  13262. confirmButtonText: "确定",
  13263. cancelButtonText: "取消",
  13264. type: "warning",
  13265. })
  13266. .then(() => {
  13267. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13268. })
  13269. .catch(() => {});
  13270. },
  13271. addTableWorks() {
  13272. let params = [
  13273. {
  13274. uid: this.userid,
  13275. cid: this.id,
  13276. stage: this.courseType,
  13277. task: this.taskCount,
  13278. tool: this.toolindex,
  13279. content: JSON.stringify(this.tableJson),
  13280. type: 10,
  13281. },
  13282. ];
  13283. this.ajax
  13284. .post(this.$store.state.api + "addCourseWorks", params)
  13285. .then((res) => {
  13286. this.$message({
  13287. message: "提交成功",
  13288. type: "success",
  13289. });
  13290. this.dialogVisibleTable = false;
  13291. // this.selectAnswer = {};
  13292. this.selectSWorks();
  13293. this.selectStudent();
  13294. })
  13295. .catch((err) => {
  13296. this.$message.error("提交失败");
  13297. console.error(err);
  13298. });
  13299. },
  13300. tableRowClassName({ row, rowIndex }) {
  13301. if ((rowIndex + 1) % 2 === 0) {
  13302. return "even_row";
  13303. } else {
  13304. return "";
  13305. }
  13306. },
  13307. addTableWorksTeacher() {
  13308. let params = [
  13309. {
  13310. uid: this.sStudent.userid,
  13311. cid: this.id,
  13312. stage: this.courseType,
  13313. task: this.taskCount,
  13314. tool: this.toolindex,
  13315. content: JSON.stringify(this.tableJson),
  13316. type: 10,
  13317. },
  13318. ];
  13319. this.ajax
  13320. .post(this.$store.state.api + "addCourseWorks", params)
  13321. .then((res) => {
  13322. this.$message({
  13323. message: "提交成功",
  13324. type: "success",
  13325. });
  13326. this.dialogVisibleTableTeacher = false;
  13327. // this.selectAnswer = {};
  13328. this.selectSWorks();
  13329. this.selectStudent();
  13330. })
  13331. .catch((err) => {
  13332. this.$message.error("提交失败");
  13333. console.error(err);
  13334. });
  13335. },
  13336. returnWordText() {
  13337. this.$confirm("确定还原此模板吗?", "提示", {
  13338. confirmButtonText: "确定",
  13339. cancelButtonText: "取消",
  13340. type: "warning",
  13341. })
  13342. .then(() => {
  13343. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13344. })
  13345. .catch(() => {});
  13346. },
  13347. addWordWorks() {
  13348. let params = [
  13349. {
  13350. uid: this.userid,
  13351. cid: this.id,
  13352. stage: this.courseType,
  13353. task: this.taskCount,
  13354. tool: this.toolindex,
  13355. content: JSON.stringify(this.wordJson),
  13356. type: 13,
  13357. atool: 52,
  13358. },
  13359. ];
  13360. this.ajax
  13361. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13362. .then((res) => {
  13363. this.$message({
  13364. message: "提交成功",
  13365. type: "success",
  13366. });
  13367. this.dialogVisibleWord = false;
  13368. // this.selectAnswer = {};
  13369. this.selectSWorks();
  13370. this.selectStudent();
  13371. })
  13372. .catch((err) => {
  13373. this.$message.error("提交失败");
  13374. console.error(err);
  13375. });
  13376. },
  13377. addWordWorksTeacher() {
  13378. let params = [
  13379. {
  13380. uid: this.sStudent.userid,
  13381. cid: this.id,
  13382. stage: this.courseType,
  13383. task: this.taskCount,
  13384. tool: this.toolindex,
  13385. content: JSON.stringify(this.wordJson),
  13386. type: 13,
  13387. atool: 52,
  13388. },
  13389. ];
  13390. this.ajax
  13391. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13392. .then((res) => {
  13393. this.$message({
  13394. message: "提交成功",
  13395. type: "success",
  13396. });
  13397. this.dialogVisibleWordTeacher = false;
  13398. // this.selectAnswer = {};
  13399. this.selectSWorks();
  13400. this.selectStudent();
  13401. })
  13402. .catch((err) => {
  13403. this.$message.error("提交失败");
  13404. console.error(err);
  13405. });
  13406. },
  13407. addCourseWorks(i) {
  13408. var typesql;
  13409. if (this.fileType === 0) {
  13410. typesql = 1;
  13411. } else if (this.fileType === 1) {
  13412. typesql = 4;
  13413. } else if (this.fileType === 2) {
  13414. typesql = 5;
  13415. } else if (this.fileType === 3) {
  13416. typesql = 12;
  13417. }
  13418. if (!this.studyJuri[0].cover[0].url) {
  13419. this.$message.error("请上传文件");
  13420. return;
  13421. }
  13422. let params = [
  13423. {
  13424. uid: this.userid,
  13425. cid: this.id,
  13426. stage: this.courseType,
  13427. task: i,
  13428. tool: this.toolindex,
  13429. content: this.studyJuri[0].cover[0].url,
  13430. type: typesql,
  13431. },
  13432. ];
  13433. this.ajax
  13434. .post(this.$store.state.api + "addCourseWorksR", params)
  13435. .then((res) => {
  13436. this.$message({
  13437. message: "提交成功",
  13438. type: "success",
  13439. });
  13440. this.studyJuri[0].cover = [];
  13441. this.dialogVisible = false;
  13442. this.getCourseDetail(2);
  13443. })
  13444. .catch((err) => {
  13445. this.$message.error("提交失败");
  13446. console.error(err);
  13447. });
  13448. },
  13449. addCourseWorksPl(i) {
  13450. let _files = this.plworkFile;
  13451. var c = 1;
  13452. for (var k = 0; k < _files.length; k++) {
  13453. if (!_files[k].username) {
  13454. c = 2;
  13455. }
  13456. }
  13457. if (c == 2) {
  13458. this.$message.error("请填写学生姓名");
  13459. return;
  13460. }
  13461. let params = [
  13462. {
  13463. ateacher: this.userid,
  13464. cid: this.id,
  13465. stage: this.courseType,
  13466. task: i,
  13467. tool: this.toolindex,
  13468. content: JSON.stringify(_files),
  13469. },
  13470. ];
  13471. this.ajax
  13472. .post(this.$store.state.api + "addCourseWorksPl", params)
  13473. .then((res) => {
  13474. this.$message({
  13475. message: "提交成功",
  13476. type: "success",
  13477. });
  13478. this.plworkFile = [];
  13479. this.dialogVisiblePl = false;
  13480. this.getCourseDetail(2);
  13481. })
  13482. .catch((err) => {
  13483. this.$message.error("提交失败");
  13484. console.error(err);
  13485. });
  13486. },
  13487. addCourseWorks2(i) {
  13488. var typesql;
  13489. if (this.fileType === 0) {
  13490. typesql = 0;
  13491. } else if (this.fileType === 1) {
  13492. typesql = 1;
  13493. } else if (this.fileType === 2) {
  13494. typesql = 3;
  13495. } else if (this.fileType === 3) {
  13496. typesql = 12;
  13497. }
  13498. if (!this.studyJuri[0].cover[0].url) {
  13499. this.$message.error("请上传文件");
  13500. return;
  13501. }
  13502. let params = [
  13503. {
  13504. uid: this.userid,
  13505. cid: this.id,
  13506. stage: this.courseType,
  13507. task: i,
  13508. tool: this.toolindex,
  13509. content: JSON.stringify({
  13510. type: typesql,
  13511. groupIndex: this.groupIndex,
  13512. url: this.studyJuri[0].cover[0].url,
  13513. }),
  13514. type: 11,
  13515. atool: 49,
  13516. text: "",
  13517. },
  13518. ];
  13519. this.ajax
  13520. .post(this.$store.state.api + "addCourseWorks5", params)
  13521. .then((res) => {
  13522. this.$message({
  13523. message: "提交成功",
  13524. type: "success",
  13525. });
  13526. this.studyJuri[0].cover = [];
  13527. this.dialogVisibleGroupWork = false;
  13528. this.getCourseDetail(2);
  13529. })
  13530. .catch((err) => {
  13531. this.$message.error("提交失败");
  13532. console.error(err);
  13533. });
  13534. },
  13535. addEnglishWork() {
  13536. this.myAnList = this.$refs['engJson'].myAnswerList;
  13537. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13538. this.$message.error("请输入作文标题和正文!");
  13539. return;
  13540. }
  13541. let params = [
  13542. {
  13543. uid: this.userid,
  13544. cid: this.id,
  13545. stage: this.courseType,
  13546. task: this.taskCount,
  13547. tool: this.englishToolIndex,
  13548. content: JSON.stringify(this.myAnList),
  13549. type: 16,
  13550. atool: 69,
  13551. text: "",
  13552. },
  13553. ];
  13554. this.ajax
  13555. .post(this.$store.state.api + "addCourseWorks5", params)
  13556. .then((res) => {
  13557. this.$message({
  13558. message: "提交成功",
  13559. type: "success",
  13560. });
  13561. this.myAnList = {};
  13562. this.englishList = {};
  13563. this.englishToolIndex = 0;
  13564. this.engDialogVisible = false;
  13565. this.selectSWorks();
  13566. this.selectStudent();
  13567. })
  13568. .catch((err) => {
  13569. this.$message.error("提交失败");
  13570. console.error(err);
  13571. });
  13572. },
  13573. addCourseWorksGong(i, data, tool) {
  13574. let params = [
  13575. {
  13576. uid: this.userid,
  13577. cid: this.id,
  13578. stage: this.courseType,
  13579. task: this.taskCount,
  13580. tool: i,
  13581. content: data,
  13582. type: 12,
  13583. atool: tool,
  13584. text: "",
  13585. },
  13586. ];
  13587. this.ajax
  13588. .post(this.$store.state.api + "addCourseWorks5", params)
  13589. .then((res) => {
  13590. this.$message({
  13591. message: "提交成功",
  13592. type: "success",
  13593. });
  13594. this.studyJuri[0].cover = [];
  13595. this.selectSWorks();
  13596. this.selectStudent();
  13597. })
  13598. .catch((err) => {
  13599. this.$message.error("提交失败");
  13600. console.error(err);
  13601. });
  13602. },
  13603. addCourseWorksGongTeacher(i, data, tool) {
  13604. let params = [
  13605. {
  13606. uid: this.sStudent.userid,
  13607. cid: this.id,
  13608. stage: this.courseType,
  13609. task: this.taskCount,
  13610. tool: i,
  13611. content: data,
  13612. type: 12,
  13613. atool: tool,
  13614. text: "",
  13615. },
  13616. ];
  13617. this.ajax
  13618. .post(this.$store.state.api + "addCourseWorks5", params)
  13619. .then((res) => {
  13620. this.$message({
  13621. message: "提交成功",
  13622. type: "success",
  13623. });
  13624. this.studyJuri[0].cover = [];
  13625. this.dialogVisibleWorks = false;
  13626. this.selectSWorks();
  13627. this.selectStudent();
  13628. })
  13629. .catch((err) => {
  13630. this.$message.error("提交失败");
  13631. console.error(err);
  13632. });
  13633. },
  13634. addCourseWorksGongPl(i, data, tool, type) {
  13635. let params = [
  13636. {
  13637. uid: this.sStudent.userid,
  13638. cid: this.id,
  13639. stage: this.courseType,
  13640. task: this.taskCount,
  13641. tool: i,
  13642. content: data,
  13643. type: type,
  13644. atool: tool,
  13645. text: "",
  13646. },
  13647. ];
  13648. this.ajax
  13649. .post(this.$store.state.api + "addCourseWorks5", params)
  13650. .then((res) => {
  13651. this.$message({
  13652. message: "提交成功",
  13653. type: "success",
  13654. });
  13655. this.studyJuri[0].cover = [];
  13656. this.dialogVisibleWorks = false;
  13657. this.selectSWorks();
  13658. this.selectStudent();
  13659. })
  13660. .catch((err) => {
  13661. this.$message.error("提交失败");
  13662. console.error(err);
  13663. });
  13664. },
  13665. addCourseWorksTeacher(i) {
  13666. var typesql;
  13667. if (this.sTool == 32) {
  13668. this.addCourseWorksGongTeacher(
  13669. this.toolindex,
  13670. this.studyJuri[0].cover[0].url,
  13671. this.sTool
  13672. );
  13673. return;
  13674. }
  13675. if (this.fileType === 0) {
  13676. typesql = 1;
  13677. } else if (this.fileType === 1) {
  13678. typesql = 4;
  13679. } else if (this.fileType === 2) {
  13680. typesql = 5;
  13681. } else if (this.fileType === 3) {
  13682. typesql = 12;
  13683. }
  13684. if (this.sTool == 50) {
  13685. this.addCourseWorksGongPl(
  13686. this.toolindex,
  13687. this.studyJuri[0].cover[0].url,
  13688. this.sTool,
  13689. typesql
  13690. );
  13691. return;
  13692. }
  13693. if (!this.studyJuri[0].cover[0].url) {
  13694. this.$message.error("请上传文件");
  13695. return;
  13696. }
  13697. let params = [
  13698. {
  13699. uid: this.sStudent.userid,
  13700. cid: this.id,
  13701. stage: this.courseType,
  13702. task: i,
  13703. tool: this.toolindex,
  13704. content: this.studyJuri[0].cover[0].url,
  13705. type: typesql,
  13706. ateacher: this.userid,
  13707. },
  13708. ];
  13709. this.ajax
  13710. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13711. .then((res) => {
  13712. this.$message({
  13713. message: "提交成功",
  13714. type: "success",
  13715. });
  13716. this.studyJuri[0].cover = [];
  13717. this.dialogVisibleWorks = false;
  13718. this.getCourseDetail(2);
  13719. })
  13720. .catch((err) => {
  13721. this.$message.error("提交失败");
  13722. console.error(err);
  13723. });
  13724. },
  13725. selectUploadStudent(type) {
  13726. const loading = this.$loading.service({
  13727. background: "rgba(255, 255, 255, 0.7)",
  13728. target: document.body,
  13729. });
  13730. let params = {
  13731. cid: this.uploadCid,
  13732. oid: this.oid,
  13733. cn: "",
  13734. };
  13735. this.ajax
  13736. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13737. .then((res) => {
  13738. loading.close();
  13739. var studentK = [];
  13740. if (this.isWorksS[this.toolindex].length > 0) {
  13741. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13742. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13743. }
  13744. studentK = studentK.join(",");
  13745. }
  13746. this.uploadStudentJuri = res.data[0].filter((el) => {
  13747. return studentK.indexOf(el.userid) == -1;
  13748. });
  13749. if (this.worksSName && this.worksSid) {
  13750. this.uploadStudentJuri.push({
  13751. userid: this.worksSid,
  13752. name: this.worksSName,
  13753. });
  13754. }
  13755. if (type == 1) {
  13756. this.plworkFile = [];
  13757. this.dialogVisibleSname = true;
  13758. } else if (type == 2) {
  13759. this.dialogVisiblePl = true;
  13760. }
  13761. })
  13762. .catch((err) => {
  13763. loading.close();
  13764. console.error(err);
  13765. });
  13766. },
  13767. selectPickStudent() {
  13768. const loading = this.$loading.service({
  13769. background: "rgba(255, 255, 255, 0.7)",
  13770. target: document.body,
  13771. });
  13772. let params = {
  13773. cid: this.uploadCid,
  13774. oid: this.oid,
  13775. cn: "",
  13776. };
  13777. this.ajax
  13778. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13779. .then((res) => {
  13780. loading.close();
  13781. this.uploadStudentJuri = res.data[0];
  13782. this.dialogVisiblePickPeople = true;
  13783. })
  13784. .catch((err) => {
  13785. loading.close();
  13786. console.error(err);
  13787. });
  13788. },
  13789. arrayToArray(arrayo, arrayt) {
  13790. let array1 = arrayo;
  13791. let array2 = arrayt;
  13792. let commonElements = [];
  13793. for (let i = 0; i < array1.length; i++) {
  13794. for (let j = 0; j < array2.length; j++) {
  13795. if (array1[i] === array2[j]) {
  13796. commonElements.push(array1[i]);
  13797. }
  13798. }
  13799. }
  13800. return commonElements;
  13801. },
  13802. selectWorksStudent() {
  13803. let params = {
  13804. oid: this.oid,
  13805. cid: this.courseDetail.juri,
  13806. };
  13807. this.ajax
  13808. .get(this.$store.state.api + "selectWorksStudent", params)
  13809. .then((res) => {
  13810. var a = res.data[0];
  13811. for (var i = 0; i < this.isWorksS.length; i++) {
  13812. this.noWorksS[i] = [];
  13813. var studentK = [];
  13814. if (this.isWorksS[i].length > 0) {
  13815. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13816. studentK.push(this.isWorksS[i][z].uid);
  13817. }
  13818. studentK = studentK.join(",");
  13819. for (var j = 0; j < a.length; j++) {
  13820. if (studentK.indexOf(a[j].userid) == -1) {
  13821. if (this.tcid) {
  13822. // a[j].classid.indexOf(this.tcid) != -1
  13823. if (
  13824. this.arrayToArray(
  13825. a[j].classid.split(","),
  13826. this.tcid.split(",")
  13827. ).length
  13828. ) {
  13829. this.noWorksS[i].push({
  13830. student: a[j].name,
  13831. userid: a[j].userid,
  13832. });
  13833. }
  13834. } else {
  13835. this.noWorksS[i].push({
  13836. student: a[j].name,
  13837. userid: a[j].userid,
  13838. });
  13839. }
  13840. }
  13841. }
  13842. } else {
  13843. for (var k = 0; k < a.length; k++) {
  13844. if (this.tcid) {
  13845. if (
  13846. this.arrayToArray(
  13847. a[k].classid.split(","),
  13848. this.tcid.split(",")
  13849. ).length
  13850. ) {
  13851. this.noWorksS[i].push({
  13852. student: a[k].name,
  13853. userid: a[k].userid,
  13854. });
  13855. }
  13856. } else {
  13857. this.noWorksS[i].push({
  13858. student: a[k].name,
  13859. userid: a[k].userid,
  13860. });
  13861. }
  13862. }
  13863. }
  13864. }
  13865. this.$forceUpdate();
  13866. if (
  13867. Object.keys(this.commentDetail).length &&
  13868. Object.keys(this.commentIndexJson).length &&
  13869. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13870. ) {
  13871. let a = 1;
  13872. let c = this.commentIndexJson;
  13873. if (
  13874. this.commentIndexJson.gindex ||
  13875. this.commentIndexJson.gindex === 0
  13876. ) {
  13877. for (
  13878. var i = 0;
  13879. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13880. i++
  13881. ) {
  13882. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13883. groupA: for (var k = 0; k < _el.length; k++) {
  13884. let el = _el[k];
  13885. if (el.wid == this.commentDetail.wid) {
  13886. a = 2;
  13887. this.commentOther(
  13888. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13889. this.commentIndexJson.toolIndex,
  13890. k,
  13891. this.commentIndexJson.gindex
  13892. );
  13893. break groupA;
  13894. }
  13895. }
  13896. }
  13897. if (a === 1) {
  13898. this.commentDetail = [];
  13899. this.commentIndexJson = {};
  13900. this.commentDialogVisible = false;
  13901. this.$message("此作业已被删除");
  13902. }
  13903. } else {
  13904. if (this.isGroup && this.commentIndexJson.gid) {
  13905. groupA: for (
  13906. var i = 0;
  13907. i < this.courseGroup.group.length;
  13908. i++
  13909. ) {
  13910. let _group = this.courseGroup.group[i];
  13911. if (_group.id == this.commentIndexJson.gid) {
  13912. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13913. for (var k = 0; k < _el2.length; k++) {
  13914. let el2 = _el2[k];
  13915. if (el2.wid == this.commentDetail.wid) {
  13916. a = 2;
  13917. this.commentOther(
  13918. _el2[k],
  13919. this.commentIndexJson.toolIndex,
  13920. k,
  13921. null,
  13922. this.commentIndexJson.gid
  13923. );
  13924. break groupA;
  13925. }
  13926. }
  13927. }
  13928. }
  13929. }
  13930. if (a == 1) {
  13931. for (
  13932. var i = 0;
  13933. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13934. i++
  13935. ) {
  13936. let el =
  13937. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13938. if (el.wid == this.commentDetail.wid) {
  13939. a = 2;
  13940. this.commentOther(
  13941. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13942. this.commentIndexJson.toolIndex,
  13943. i
  13944. );
  13945. break;
  13946. }
  13947. }
  13948. }
  13949. if (a === 1) {
  13950. this.commentDetail = [];
  13951. this.commentIndexJson = {};
  13952. this.commentDialogVisible = false;
  13953. this.$message("此作业已被删除");
  13954. }
  13955. }
  13956. }
  13957. })
  13958. .catch((err) => {
  13959. console.error(err);
  13960. });
  13961. },
  13962. selectStudent() {
  13963. //学生查看自己作业
  13964. let params = {
  13965. uid: this.userid,
  13966. cid: this.id,
  13967. s: this.courseType,
  13968. t: this.taskCount,
  13969. };
  13970. this.ajax
  13971. .get(this.$store.state.api + "selectStudentWorks", params)
  13972. .then((res) => {
  13973. var a =
  13974. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13975. this.taskCount
  13976. ].toolChoose;
  13977. var b = res.data[0];
  13978. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13979. var y = [
  13980. "AVI",
  13981. "NAVI",
  13982. "MPEG",
  13983. "ASF",
  13984. "MOV",
  13985. "WMV",
  13986. "3GP",
  13987. "RM",
  13988. "RMVB",
  13989. "FLV",
  13990. "F4V",
  13991. "H.264",
  13992. "H.265",
  13993. "REAL VIDEO",
  13994. "MKV",
  13995. "WebM",
  13996. "HDDVD",
  13997. "MP4",
  13998. "MPG",
  13999. "M4V",
  14000. "MGV",
  14001. "OGV",
  14002. "QTM",
  14003. "STR",
  14004. "AMC",
  14005. "DVX",
  14006. "EVO",
  14007. "DAT",
  14008. "OGG",
  14009. "OGM",
  14010. ];
  14011. for (var i = 0; i < a.length; i++) {
  14012. this.workStudent[i] = [];
  14013. for (var j = 0; j < b.length; j++) {
  14014. if (i == b[j].tool) {
  14015. if (
  14016. (b[j].type == 1 ||
  14017. b[j].type == 4 ||
  14018. b[j].type == 5 ||
  14019. b[j].type == 6 ||
  14020. b[j].type == 12 ||
  14021. b[j].type == 7) &&
  14022. a[i].tool[0] != 15 &&
  14023. a[i].tool[0] != 4 &&
  14024. a[i].tool[0] != 45 &&
  14025. a[i].tool[0] != 50 &&
  14026. a[i].tool[0] != 32 &&
  14027. a[i].tool[0] != 57 &&
  14028. a[i].tool[0] != 52 &&
  14029. a[i].tool[0] != 69
  14030. ) {
  14031. if (
  14032. c.indexOf(
  14033. b[j].content
  14034. .split(".")
  14035. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14036. ) != -1 &&
  14037. a[i].tool[0] == 16 &&
  14038. b[j].atool != 50
  14039. ) {
  14040. this.workStudent[i].push({
  14041. works: b[j].content,
  14042. sName: b[j].name,
  14043. score: b[j].score,
  14044. img: b[j].img,
  14045. type: 1,
  14046. time: b[j].time,
  14047. userid: b[j].userid,
  14048. wid: b[j].id,
  14049. });
  14050. } else if (
  14051. y.indexOf(
  14052. b[j].content
  14053. .split(".")
  14054. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14055. ) != -1 &&
  14056. a[i].tool[0] == 16 &&
  14057. b[j].atool != 50
  14058. ) {
  14059. this.workStudent[i].push({
  14060. userid: b[j].userid,
  14061. wid: b[j].id,
  14062. works: b[j].content,
  14063. sName: b[j].name,
  14064. score: b[j].score,
  14065. img: b[j].img,
  14066. type: 3,
  14067. time: b[j].time,
  14068. });
  14069. } else if (b[j].type == 6 && b[j].atool != 50) {
  14070. this.workStudent[i].push({
  14071. userid: b[j].userid,
  14072. wid: b[j].id,
  14073. works: b[j].content,
  14074. sName: b[j].name,
  14075. score: b[j].score,
  14076. img: b[j].img,
  14077. type: 4,
  14078. time: b[j].time,
  14079. });
  14080. } else if (b[j].type == 7 && b[j].atool != 50) {
  14081. this.workStudent[i].push({
  14082. userid: b[j].userid,
  14083. wid: b[j].id,
  14084. works: b[j].content,
  14085. sName: b[j].name,
  14086. score: b[j].score,
  14087. img: b[j].img,
  14088. type: 5,
  14089. time: b[j].time,
  14090. });
  14091. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14092. this.workStudent[i].push({
  14093. works: b[j].content,
  14094. sName: b[j].name,
  14095. score: b[j].score,
  14096. img: b[j].img,
  14097. type: 12,
  14098. time: b[j].time,
  14099. userid: b[j].userid,
  14100. wid: b[j].id,
  14101. });
  14102. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14103. this.workStudent[i].push({
  14104. works: b[j].content,
  14105. sName: b[j].name,
  14106. score: b[j].score,
  14107. img: b[j].img,
  14108. type: 0,
  14109. time: b[j].time,
  14110. userid: b[j].userid,
  14111. wid: b[j].id,
  14112. });
  14113. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14114. this.workStudent[i].push({
  14115. works: b[j].content,
  14116. sName: b[j].name,
  14117. score: b[j].score,
  14118. img: b[j].img,
  14119. type: 0,
  14120. time: b[j].time,
  14121. userid: b[j].userid,
  14122. wid: b[j].id,
  14123. });
  14124. }
  14125. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14126. this.workStudent[i].push({
  14127. works: b[j].content,
  14128. sName: b[j].name,
  14129. score: b[j].score,
  14130. img: b[j].img,
  14131. type: 2,
  14132. time: b[j].time,
  14133. userid: b[j].userid,
  14134. wid: b[j].id,
  14135. });
  14136. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14137. //问卷
  14138. this.workStudent[i].push({
  14139. works: b[j].content,
  14140. sName: b[j].name,
  14141. score: b[j].score,
  14142. img: b[j].img,
  14143. type: 2,
  14144. time: b[j].time,
  14145. userid: b[j].userid,
  14146. wid: b[j].id,
  14147. });
  14148. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14149. //选择题
  14150. this.workStudent[i].push({
  14151. works: b[j].content,
  14152. sName: b[j].name,
  14153. score: b[j].score,
  14154. img: b[j].img,
  14155. type: 8,
  14156. time: b[j].time,
  14157. userid: b[j].userid,
  14158. wid: b[j].id,
  14159. });
  14160. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14161. //选择题
  14162. this.workStudent[i].push({
  14163. works: b[j].content,
  14164. sName: b[j].name,
  14165. score: b[j].score,
  14166. img: b[j].img,
  14167. type: 9,
  14168. time: b[j].time,
  14169. userid: b[j].userid,
  14170. wid: b[j].id,
  14171. });
  14172. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14173. //选择题
  14174. this.workStudent[i].push({
  14175. works: b[j].content,
  14176. sName: b[j].name,
  14177. score: b[j].score,
  14178. img: b[j].img,
  14179. type: 10,
  14180. time: b[j].time,
  14181. userid: b[j].userid,
  14182. wid: b[j].id,
  14183. });
  14184. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14185. //选择题
  14186. this.workStudent[i].push({
  14187. works: b[j].content,
  14188. sName: b[j].name,
  14189. score: b[j].score,
  14190. img: b[j].img,
  14191. type: 13,
  14192. time: b[j].time,
  14193. userid: b[j].userid,
  14194. wid: b[j].id,
  14195. });
  14196. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14197. //选择题
  14198. this.workStudent[i].push({
  14199. works: b[j].content,
  14200. sName: b[j].name,
  14201. score: b[j].score,
  14202. img: b[j].img,
  14203. type: 12,
  14204. time: b[j].time,
  14205. userid: b[j].userid,
  14206. wid: b[j].id,
  14207. });
  14208. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14209. //选择题
  14210. this.workStudent[i].push({
  14211. works: b[j].content,
  14212. sName: b[j].name,
  14213. score: b[j].score,
  14214. img: b[j].img,
  14215. type: 12,
  14216. time: b[j].time,
  14217. userid: b[j].userid,
  14218. wid: b[j].id,
  14219. });
  14220. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14221. //选择题
  14222. this.workStudent[i].push({
  14223. works: b[j].content,
  14224. sName: b[j].name,
  14225. score: b[j].score,
  14226. img: b[j].img,
  14227. type: 15,
  14228. time: b[j].time,
  14229. userid: b[j].userid,
  14230. wid: b[j].id,
  14231. });
  14232. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14233. //英语写作
  14234. this.workStudent[i].push({
  14235. works: b[j].content,
  14236. sName: b[j].name,
  14237. score: b[j].score,
  14238. img: b[j].img,
  14239. type: 16,
  14240. time: b[j].time,
  14241. userid: b[j].userid,
  14242. wid: b[j].id,
  14243. aiCode: b[j].aiCode,
  14244. teacherCode: b[j].teacherCode
  14245. });
  14246. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14247. //英语口语
  14248. this.workStudent[i].push({
  14249. works: b[j].content,
  14250. sName: b[j].name,
  14251. score: b[j].score,
  14252. img: b[j].img,
  14253. type: 17,
  14254. time: b[j].time,
  14255. userid: b[j].userid,
  14256. wid: b[j].id,
  14257. });
  14258. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14259. //交互视频
  14260. this.workStudent[i].push({
  14261. works: b[j].content,
  14262. sName: b[j].name,
  14263. score: b[j].score,
  14264. img: b[j].img,
  14265. type: 14,
  14266. time: b[j].time,
  14267. userid: b[j].userid,
  14268. wid: b[j].id,
  14269. });
  14270. }
  14271. }
  14272. }
  14273. }
  14274. })
  14275. .catch((err) => {
  14276. console.error(err);
  14277. });
  14278. },
  14279. openVideo(w) {
  14280. this.videoDetail = {};
  14281. this.playerOptions1.sources[0].src = w.works;
  14282. this.videoDetail = this.playerOptions1;
  14283. this.videoVisible = true;
  14284. },
  14285. isLikes(wid, uid, t, c, isLikes,sName) {
  14286. if (isLikes == false) {
  14287. let params = [
  14288. {
  14289. wid: wid,
  14290. lid: uid,
  14291. t: t,
  14292. c: c,
  14293. },
  14294. ];
  14295. this.ajax
  14296. .post(this.$store.state.api + "insertComment", params)
  14297. .then((res) => {
  14298. this.$message({
  14299. message: "点赞成功",
  14300. type: "success",
  14301. });
  14302. this.selectSWorks();
  14303. this.selectStudent();
  14304. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14305. })
  14306. .catch((err) => {
  14307. this.$message.error("点赞失败");
  14308. console.error(err);
  14309. });
  14310. } else {
  14311. let params = {
  14312. wid: wid,
  14313. lid: uid,
  14314. type: t,
  14315. };
  14316. this.ajax
  14317. .get(this.$store.state.api + "deleteComment", params)
  14318. .then((res) => {
  14319. this.$message({
  14320. message: "取消点赞成功",
  14321. type: "success",
  14322. });
  14323. this.selectSWorks();
  14324. this.selectStudent();
  14325. })
  14326. .catch((err) => {
  14327. console.error(err);
  14328. });
  14329. }
  14330. },
  14331. deleteComment(wid) {
  14332. this.$confirm("确定删除此评论吗?", "提示", {
  14333. confirmButtonText: "确定",
  14334. cancelButtonText: "取消",
  14335. type: "warning",
  14336. })
  14337. .then(() => {
  14338. let params = {
  14339. id: wid,
  14340. };
  14341. this.ajax
  14342. .get(this.$store.state.api + "deleteComment2", params)
  14343. .then((res) => {
  14344. this.$message({
  14345. message: "删除评论成功",
  14346. type: "success",
  14347. });
  14348. this.selectSWorks();
  14349. this.selectStudent();
  14350. })
  14351. .catch((err) => {
  14352. console.error(err);
  14353. });
  14354. })
  14355. .catch(() => {});
  14356. },
  14357. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14358. this.commentIndexJson = {
  14359. toolIndex: toolIndex,
  14360. wIndex: wIndex,
  14361. gindex: gindex,
  14362. gid: gid,
  14363. };
  14364. this.commentDetail = [];
  14365. this.commentDialogVisible = true;
  14366. this.commentDetail = w;
  14367. if (w.works && w.type == 1) {
  14368. // this.pptImgUrl = "";
  14369. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14370. if (
  14371. a.indexOf(
  14372. w.works
  14373. .split(".")
  14374. [w.works.split(".").length - 1].toLocaleUpperCase()
  14375. ) != -1
  14376. ) {
  14377. let _uuurl = await this.checkLink(w.works);
  14378. console.log(_uuurl)
  14379. this.pptImgUrl =
  14380. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14381. this.showPDF = false;
  14382. } else if (
  14383. w.works
  14384. .split(".")
  14385. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14386. ) {
  14387. this.pptImgUrl = w.works;
  14388. this.showPDF = true;
  14389. }
  14390. } else if (w.works && w.type == 3) {
  14391. this.videoDetail = {};
  14392. this.playerOptions1.sources[0].src = w.works;
  14393. this.videoDetail = this.playerOptions1;
  14394. // this.videoVisible = true;
  14395. } else if (w.works && w.type == 4) {
  14396. this.eScore = JSON.parse(w.works);
  14397. this.rateJson =
  14398. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14399. this.taskCount
  14400. ].toolChoose[toolIndex].rateJson;
  14401. } else if (w.works && w.type == 10) {
  14402. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14403. } else if (w.works && w.type == 13) {
  14404. this.wordJson =
  14405. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14406. this.taskCount
  14407. ].toolChoose[toolIndex].wordJson;
  14408. }
  14409. },
  14410. async openScore(w, index) {
  14411. this.wScore = 0;
  14412. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14413. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14414. this.commentDetail = [];
  14415. if(w.type == 17){
  14416. this.dialogVisibleENScore = true;
  14417. }else{
  14418. this.dialogVisibleScore = true;
  14419. }
  14420. this.commentDetail = w;
  14421. if (w.works && w.type == 1) {
  14422. this.pptImgUrl = "";
  14423. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14424. if (
  14425. a.indexOf(
  14426. w.works
  14427. .split(".")
  14428. [w.works.split(".").length - 1].toLocaleUpperCase()
  14429. ) != -1
  14430. ) {
  14431. let _uuurl = await this.checkLink(w.works);
  14432. console.log(_uuurl)
  14433. this.pptImgUrl =
  14434. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14435. this.showPDF = false;
  14436. } else if (
  14437. w.works
  14438. .split(".")
  14439. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14440. ) {
  14441. this.pptImgUrl = w.works;
  14442. this.showPDF = true;
  14443. }
  14444. } else if (w.works && w.type == 3) {
  14445. this.videoDetail = {};
  14446. this.playerOptions1.sources[0].src = w.works;
  14447. this.videoDetail = this.playerOptions1;
  14448. }else if(w.type == 17){
  14449. let englishVoiceJson = {}
  14450. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14451. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14452. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14453. .toolChoose[index].englishVoiceJson
  14454. : {};
  14455. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14456. }
  14457. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14458. },
  14459. addComment(wid, uid, t,detail) {
  14460. if (this.commentText == "") {
  14461. this.$message.error("请输入评论");
  14462. return;
  14463. }
  14464. let params2 = [
  14465. {
  14466. wid: wid,
  14467. lid: uid,
  14468. t: t,
  14469. },
  14470. ];
  14471. this.ajax
  14472. .post(this.$store.state.api + "getComment", params2)
  14473. .then((res) => {
  14474. if (res.data[0].length > 0) {
  14475. this.$message.error("一个作业只能评论一条");
  14476. } else {
  14477. let params = [
  14478. {
  14479. wid: wid,
  14480. lid: uid,
  14481. t: t,
  14482. c: this.commentText,
  14483. },
  14484. ];
  14485. this.ajax
  14486. .post(this.$store.state.api + "insertComment", params)
  14487. .then((res) => {
  14488. this.$message({
  14489. message: "评论成功",
  14490. type: "success",
  14491. });
  14492. this.commentText = "";
  14493. this.selectSWorks();
  14494. this.selectStudent();
  14495. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14496. })
  14497. .catch((err) => {
  14498. this.$message.error("评论失败");
  14499. console.error(err);
  14500. });
  14501. }
  14502. })
  14503. .catch((err) => {
  14504. // this.$message.error("评论失败");
  14505. console.error(err);
  14506. });
  14507. },
  14508. scoreWork(wid,sName) {
  14509. if (this.wScore == 0) {
  14510. this.$message.error("请评分");
  14511. return;
  14512. }
  14513. let params = [
  14514. {
  14515. wid: wid,
  14516. score: JSON.stringify({
  14517. wScore: this.wScore,
  14518. detail: this.scoreDetail,
  14519. }),
  14520. },
  14521. ];
  14522. this.ajax
  14523. .post(this.$store.state.api + "scoreWork", params)
  14524. .then((res) => {
  14525. this.$message({
  14526. message: "评分成功",
  14527. type: "success",
  14528. });
  14529. this.wScore = 0;
  14530. this.scoreDetail = "";
  14531. this.dialogVisibleScore = false;
  14532. this.selectSWorks();
  14533. this.selectStudent();
  14534. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14535. })
  14536. .catch((err) => {
  14537. this.$message.error("评分失败");
  14538. console.error(err);
  14539. });
  14540. },
  14541. openXz(w, i) {
  14542. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14543. .taskJson[this.taskCount].toolChoose[i].selectJson
  14544. ? JSON.parse(
  14545. JSON.stringify(
  14546. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14547. this.taskCount
  14548. ].toolChoose[i].selectJson
  14549. )
  14550. )
  14551. : { url: "", select: [], answer: [] };
  14552. var a = w.works.split(",");
  14553. for (var k = 0; k < a.length; k++) {
  14554. a[k] = parseInt(a[k]);
  14555. }
  14556. this.selectAnswer = { answer: a, stu: w.sName };
  14557. this.isSelect = true;
  14558. this.dialogVisibleSelect = true;
  14559. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14560. },
  14561. openSen(w, i) {
  14562. this.sentenceList1 = JSON.parse(w.works);
  14563. this.sentenceList1.stuName = w.sName;
  14564. this.dialogVisibleSentence1 = true;
  14565. },
  14566. openPj(w, toolindex) {
  14567. this.isStar = true;
  14568. this.eScore = JSON.parse(w);
  14569. this.rateJson =
  14570. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14571. this.taskCount
  14572. ].toolChoose[toolindex].rateJson;
  14573. this.studentEvalDialogVisible = true;
  14574. },
  14575. openEnglishEva(id,i){
  14576. let params = {
  14577. wid: id
  14578. };
  14579. this.ajax
  14580. .get(this.$store.state.api + "selectEngWork", params)
  14581. .then((res) => {
  14582. this.evaEngJson.message = res.data[0][0];
  14583. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14584. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14585. .toolChoose[i].englishList;
  14586. this.engEvaDialogVisible = true;
  14587. })
  14588. .catch((err) => {
  14589. console.error(err);
  14590. });
  14591. },
  14592. deleteWorks(id) {
  14593. this.$confirm("确定删除此作业吗?", "提示", {
  14594. confirmButtonText: "确定",
  14595. cancelButtonText: "取消",
  14596. type: "warning",
  14597. })
  14598. .then(() => {
  14599. let params = [
  14600. {
  14601. id: id,
  14602. },
  14603. ];
  14604. this.ajax
  14605. .post(this.$store.state.api + "deleteCourseWork", params)
  14606. .then((res) => {
  14607. this.$message({
  14608. message: "删除成功",
  14609. type: "success",
  14610. });
  14611. this.selectStudent();
  14612. this.selectSWorks();
  14613. this.selectSLook();
  14614. })
  14615. .catch((err) => {
  14616. this.$message.error("网络异常");
  14617. console.error(err);
  14618. });
  14619. })
  14620. .catch(() => {});
  14621. },
  14622. selectSWorks(gindex) {
  14623. //教师查看全部作业
  14624. let params = {
  14625. cid: this.id,
  14626. s: this.courseType,
  14627. t: this.taskCount,
  14628. };
  14629. this.ajax
  14630. .get(this.$store.state.api + "selectSWorks", params)
  14631. .then((res) => {
  14632. var a =
  14633. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14634. this.taskCount
  14635. ].toolChoose;
  14636. var b = res.data[0];
  14637. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14638. var y = [
  14639. "AVI",
  14640. "NAVI",
  14641. "MPEG",
  14642. "ASF",
  14643. "MOV",
  14644. "WMV",
  14645. "3GP",
  14646. "RM",
  14647. "RMVB",
  14648. "FLV",
  14649. "F4V",
  14650. "H.264",
  14651. "H.265",
  14652. "REAL VIDEO",
  14653. "MKV",
  14654. "WebM",
  14655. "HDDVD",
  14656. "MP4",
  14657. "MPG",
  14658. "M4V",
  14659. "MGV",
  14660. "OGV",
  14661. "QTM",
  14662. "STR",
  14663. "AMC",
  14664. "DVX",
  14665. "EVO",
  14666. "DAT",
  14667. "OGG",
  14668. "OGM",
  14669. ];
  14670. var d = res.data[1];
  14671. var e = res.data[2];
  14672. var f = res.data[3];
  14673. let _worksStudent = [];
  14674. var _worksStudent2 = [];
  14675. for (var i = 0; i < a.length; i++) {
  14676. _worksStudent[i] = [];
  14677. _worksStudent2[i] = [];
  14678. if (
  14679. !this.isCloseList[i] ||
  14680. this.isCloseList[i].isClose == undefined
  14681. ) {
  14682. this.isCloseList[i] = { isClose: 0 };
  14683. }
  14684. this.groupStudent[i] = [];
  14685. this.groupStudentUid[i] = [];
  14686. if (this.isGroup) {
  14687. for (
  14688. var groupI = 0;
  14689. groupI < this.courseGroup.group.length;
  14690. groupI++
  14691. ) {
  14692. this.courseGroup.group[groupI].works[i] = [];
  14693. }
  14694. }
  14695. this.isWorksS[i] = [];
  14696. this.checkJson[i] = [];
  14697. if (a[i].tool[0] == 49) {
  14698. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14699. this.groupStudent[i][gA] = [];
  14700. this.groupStudentUid[i][gA] = [];
  14701. _worksStudent[i][gA] = [];
  14702. _worksStudent2[i][gA] = [];
  14703. this.isCloseList[i][gA] = [];
  14704. for (var g = 0; g < f.length; g++) {
  14705. if (
  14706. f[g].ttype == 2 &&
  14707. this.tcid &&
  14708. this.arrayToArray(
  14709. (f[g].classid ? f[g].classid.split(",") : []),
  14710. this.tcid.split(",")
  14711. ).length == 0
  14712. ) {
  14713. continue;
  14714. }
  14715. let _classId = this.arrayToArray(
  14716. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14717. this.classId ? this.classId.split(",") : []
  14718. )
  14719. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14720. (f[g].classid ? f[g].classid.split(",") : []),
  14721. this.tcid.split(",")
  14722. ).length !== 0 || this.arrayToArray(
  14723. (f[g].classid ? f[g].classid.split(",") : []),
  14724. _classId
  14725. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14726. this.groupStudent[i][gA].push(f[g]);
  14727. this.groupStudentUid[i][gA].push(f[g].userid);
  14728. }
  14729. }
  14730. }
  14731. this.$forceUpdate();
  14732. }
  14733. for (var j = 0; j < b.length; j++) {
  14734. if (
  14735. b[j].ttype == 2 &&
  14736. this.tcid &&
  14737. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14738. .length == 0
  14739. ) {
  14740. continue;
  14741. }
  14742. var likesCount = 0;
  14743. var commentCount = 0;
  14744. var isLikes = false;
  14745. var commentJson = [];
  14746. var likeJson = [];
  14747. var data = b[j];
  14748. if (i == b[j].tool) {
  14749. if (data.type == 2 && a[i].tool[0] == 4) {
  14750. // if(JSON.parse(data.content)[0].anwer){
  14751. var checkL =
  14752. JSON.parse(data.content)[0].anwer instanceof Array
  14753. ? JSON.parse(data.content)[0].anwer
  14754. : JSON.parse(data.content)[0].anwer.split(",");
  14755. for (var z = 0; z < checkL.length; z++) {
  14756. if (!this.checkJson[i][z]) {
  14757. this.checkJson[i].push({
  14758. checkCount: [],
  14759. checkPerson: [],
  14760. rightPerson: [],
  14761. });
  14762. }
  14763. if (!this.checkJson[i][z].checkCount.length) {
  14764. this.checkJson[i][z].checkCount = [];
  14765. let _askItemCount = JSON.parse(data.content)[0].askJson
  14766. .askJson[z].askItem;
  14767. for (var aic = 0; aic < _askItemCount; aic++) {
  14768. this.checkJson[i][z].checkCount.push(0);
  14769. }
  14770. }
  14771. if (checkL[z] instanceof Array) {
  14772. if (
  14773. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14774. checkL[z].sort().join(",")
  14775. ) {
  14776. this.checkJson[i][z].rightPerson.push(data.name);
  14777. }
  14778. for (var q = 0; q < checkL[z].length; q++) {
  14779. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14780. ? this.checkJson[i][z].checkPerson[
  14781. parseInt(checkL[z][q])
  14782. ].push(data.name)
  14783. : (this.checkJson[i][z].checkPerson[
  14784. parseInt(checkL[z][q])
  14785. ] = [data.name]);
  14786. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14787. ? this.checkJson[i][z].checkCount[
  14788. parseInt(checkL[z][q])
  14789. ]++
  14790. : (this.checkJson[i][z].checkCount[
  14791. parseInt(checkL[z][q])
  14792. ] = 1);
  14793. }
  14794. } else {
  14795. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14796. this.checkJson[i][z].rightPerson.push(data.name);
  14797. }
  14798. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14799. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14800. ? this.checkJson[i][z].checkPerson[
  14801. parseInt(checkL[z])
  14802. ].push(data.name)
  14803. : (this.checkJson[i][z].checkPerson[
  14804. parseInt(checkL[z])
  14805. ] = [data.name]);
  14806. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14807. ? this.checkJson[i][z].checkCount[
  14808. parseInt(checkL[z])
  14809. ]++
  14810. : (this.checkJson[i][z].checkCount[
  14811. parseInt(checkL[z])
  14812. ] = 1);
  14813. }
  14814. }
  14815. }
  14816. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14817. var checkL = JSON.parse(data.content)[0].anwer;
  14818. for (var z = 0; z < checkL.length; z++) {
  14819. if (!this.checkJson[i][z]) {
  14820. this.checkJson[i].push({
  14821. checkCount: [],
  14822. checkPerson: [],
  14823. rightPerson: [],
  14824. });
  14825. }
  14826. if (!this.checkJson[i][z].checkCount.length) {
  14827. this.checkJson[i][z].checkCount = [];
  14828. let _askItemCount = JSON.parse(data.content)[0].testJson
  14829. .testJson[z].testItem;
  14830. for (var aic = 0; aic < _askItemCount; aic++) {
  14831. this.checkJson[i][z].checkCount.push(0);
  14832. }
  14833. }
  14834. if (checkL[z] instanceof Array) {
  14835. if (
  14836. JSON.parse(data.content)[0]
  14837. .testJson.testJson[z].answer.sort()
  14838. .join(",") == checkL[z].sort().join(",")
  14839. ) {
  14840. this.checkJson[i][z].rightPerson.push(data.name);
  14841. }
  14842. for (var q = 0; q < checkL[z].length; q++) {
  14843. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14844. ? this.checkJson[i][z].checkPerson[
  14845. parseInt(checkL[z][q])
  14846. ].push(data.name)
  14847. : (this.checkJson[i][z].checkPerson[
  14848. parseInt(checkL[z][q])
  14849. ] = [data.name]);
  14850. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14851. ? this.checkJson[i][z].checkCount[
  14852. parseInt(checkL[z][q])
  14853. ]++
  14854. : (this.checkJson[i][z].checkCount[
  14855. parseInt(checkL[z][q])
  14856. ] = 1);
  14857. }
  14858. } else {
  14859. if (
  14860. JSON.parse(data.content)[0].testJson.testJson[z]
  14861. .answer == checkL[z]
  14862. ) {
  14863. this.checkJson[i][z].rightPerson.push(data.name);
  14864. }
  14865. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14866. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14867. ? this.checkJson[i][z].checkPerson[
  14868. parseInt(checkL[z])
  14869. ].push(data.name)
  14870. : (this.checkJson[i][z].checkPerson[
  14871. parseInt(checkL[z])
  14872. ] = [data.name]);
  14873. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14874. ? this.checkJson[i][z].checkCount[
  14875. parseInt(checkL[z])
  14876. ]++
  14877. : (this.checkJson[i][z].checkCount[
  14878. parseInt(checkL[z])
  14879. ] = 1);
  14880. }
  14881. }
  14882. }
  14883. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14884. var checkL = JSON.parse(data.content);
  14885. for (var z = 0; z < checkL.length; z++) {
  14886. if (!this.checkJson[i][z]) {
  14887. this.checkJson[i].push({
  14888. checkCount: [],
  14889. checkPerson: [],
  14890. rightPerson: [],
  14891. });
  14892. }
  14893. this.checkJson[i][z].checkPerson.push(data.name);
  14894. if (
  14895. checkL[z].chooseSenList.toString() ==
  14896. checkL[z].rightAnswer.toString()
  14897. ) {
  14898. this.checkJson[i][z].rightPerson.push(data.name);
  14899. }
  14900. }
  14901. }
  14902. for (var k = 0; k < d.length; k++) {
  14903. //点赞
  14904. if (d[k].workId == b[j].id) {
  14905. likesCount++;
  14906. likeJson.push(d[k])
  14907. if (d[k].likesId == this.userid) {
  14908. isLikes = true;
  14909. }
  14910. }
  14911. }
  14912. for (var l = 0; l < e.length; l++) {
  14913. //评论
  14914. if (e[l].workId == b[j].id) {
  14915. if (e[l].comment != "") {
  14916. commentCount++;
  14917. commentJson.push({
  14918. commentText: e[l].comment,
  14919. commentTime: e[l].commentTime,
  14920. commentPeople: e[l].commentPeople,
  14921. userid: e[l].userid,
  14922. wid: e[l].id,
  14923. });
  14924. }
  14925. }
  14926. }
  14927. if (
  14928. (b[j].type == 1 ||
  14929. b[j].type == 4 ||
  14930. b[j].type == 5 ||
  14931. b[j].type == 6 ||
  14932. b[j].type == 12 ||
  14933. b[j].type == 7) &&
  14934. a[i].tool[0] != 15 &&
  14935. a[i].tool[0] != 4 &&
  14936. a[i].tool[0] != 45 &&
  14937. a[i].tool[0] != 50 &&
  14938. a[i].tool[0] != 32 &&
  14939. a[i].tool[0] != 57 &&
  14940. a[i].tool[0] != 52
  14941. ) {
  14942. if (
  14943. c.indexOf(
  14944. b[j].content
  14945. .split(".")
  14946. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14947. ) != -1 &&
  14948. a[i].tool[0] == 16 &&
  14949. b[j].atool != 50
  14950. ) {
  14951. let _works = {
  14952. userid: b[j].userid,
  14953. ateacher: b[j].ateacher,
  14954. wid: b[j].id,
  14955. works: b[j].content,
  14956. sName: b[j].name,
  14957. type: 1,
  14958. ttype:b[j].ttype,
  14959. time: b[j].time,
  14960. score: b[j].score,
  14961. img: b[j].img,
  14962. likesCount: likesCount,
  14963. commentCount: commentCount,
  14964. isLikes: isLikes,
  14965. commentJson: commentJson,
  14966. likeJson:likeJson
  14967. };
  14968. if (this.isGroup) {
  14969. let isGw = 1;
  14970. for (
  14971. var groupI = 0;
  14972. groupI < this.courseGroup.group.length;
  14973. groupI++
  14974. ) {
  14975. let gid = this.courseGroup.group[groupI].id;
  14976. if (
  14977. this.courseGroupStudentUid[gid].indexOf(
  14978. b[j].userid
  14979. ) != -1
  14980. ) {
  14981. isGw = 2;
  14982. this.courseGroup.group[groupI].works[i].push(_works);
  14983. break;
  14984. }
  14985. }
  14986. if (isGw == 1) {
  14987. _worksStudent[i].push(_works);
  14988. }
  14989. } else {
  14990. _worksStudent[i].push(_works);
  14991. }
  14992. _worksStudent2[i].push(_works);
  14993. this.isWorksS[i].push({
  14994. uid: b[j].userid,
  14995. sName: b[j].name,
  14996. });
  14997. } else if (
  14998. y.indexOf(
  14999. b[j].content
  15000. .split(".")
  15001. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15002. ) != -1 &&
  15003. a[i].tool[0] == 16 &&
  15004. b[j].atool != 50
  15005. ) {
  15006. let _works = {
  15007. userid: b[j].userid,
  15008. ateacher: b[j].ateacher,
  15009. wid: b[j].id,
  15010. works: b[j].content,
  15011. sName: b[j].name,
  15012. type: 3,
  15013. ttype:b[j].ttype,
  15014. time: b[j].time,
  15015. score: b[j].score,
  15016. img: b[j].img,
  15017. likesCount: likesCount,
  15018. commentCount: commentCount,
  15019. isLikes: isLikes,
  15020. commentJson: commentJson,
  15021. likeJson:likeJson
  15022. };
  15023. if (this.isGroup) {
  15024. let isGw = 1;
  15025. for (
  15026. var groupI = 0;
  15027. groupI < this.courseGroup.group.length;
  15028. groupI++
  15029. ) {
  15030. let gid = this.courseGroup.group[groupI].id;
  15031. if (
  15032. this.courseGroupStudentUid[gid].indexOf(
  15033. b[j].userid
  15034. ) != -1
  15035. ) {
  15036. isGw = 2;
  15037. this.courseGroup.group[groupI].works[i].push(_works);
  15038. break;
  15039. }
  15040. }
  15041. if (isGw == 1) {
  15042. _worksStudent[i].push(_works);
  15043. }
  15044. } else {
  15045. _worksStudent[i].push(_works);
  15046. }
  15047. _worksStudent2[i].push(_works);
  15048. this.isWorksS[i].push({
  15049. uid: b[j].userid,
  15050. sName: b[j].name,
  15051. });
  15052. } else if (b[j].type == 6 && b[j].atool != 50) {
  15053. let _works = {
  15054. userid: b[j].userid,
  15055. ateacher: b[j].ateacher,
  15056. wid: b[j].id,
  15057. works: b[j].content,
  15058. sName: b[j].name,
  15059. type: 4,
  15060. ttype:b[j].ttype,
  15061. time: b[j].time,
  15062. score: b[j].score,
  15063. img: b[j].img,
  15064. likesCount: likesCount,
  15065. commentCount: commentCount,
  15066. isLikes: isLikes,
  15067. commentJson: commentJson,
  15068. likeJson:likeJson
  15069. };
  15070. _worksStudent[i].push(_works);
  15071. _worksStudent2[i].push(_works);
  15072. this.isWorksS[i].push({
  15073. uid: b[j].userid,
  15074. sName: b[j].name,
  15075. });
  15076. } else if (b[j].type == 7 && b[j].atool != 50) {
  15077. let _work = {
  15078. userid: b[j].userid,
  15079. ateacher: b[j].ateacher,
  15080. wid: b[j].id,
  15081. works: b[j].content,
  15082. sName: b[j].name,
  15083. type: 5,
  15084. ttype:b[j].ttype,
  15085. time: b[j].time,
  15086. score: b[j].score,
  15087. img: b[j].img,
  15088. likesCount: likesCount,
  15089. commentCount: commentCount,
  15090. isLikes: isLikes,
  15091. commentJson: commentJson,
  15092. likeJson:likeJson
  15093. };
  15094. _worksStudent[i].push(_work);
  15095. _worksStudent2[i].push(_work);
  15096. this.isWorksS[i].push({
  15097. uid: b[j].userid,
  15098. sName: b[j].name,
  15099. });
  15100. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15101. let _works = {
  15102. userid: b[j].userid,
  15103. ateacher: b[j].ateacher,
  15104. wid: b[j].id,
  15105. works: b[j].content,
  15106. sName: b[j].name,
  15107. type: 12,
  15108. ttype:b[j].ttype,
  15109. time: b[j].time,
  15110. score: b[j].score,
  15111. img: b[j].img,
  15112. likesCount: likesCount,
  15113. commentCount: commentCount,
  15114. isLikes: isLikes,
  15115. commentJson: commentJson,
  15116. likeJson:likeJson
  15117. };
  15118. if (this.isGroup) {
  15119. let isGw = 1;
  15120. for (
  15121. var groupI = 0;
  15122. groupI < this.courseGroup.group.length;
  15123. groupI++
  15124. ) {
  15125. let gid = this.courseGroup.group[groupI].id;
  15126. if (
  15127. this.courseGroupStudentUid[gid].indexOf(
  15128. b[j].userid
  15129. ) != -1
  15130. ) {
  15131. isGw = 2;
  15132. this.courseGroup.group[groupI].works[i].push(_works);
  15133. break;
  15134. }
  15135. }
  15136. if (isGw == 1) {
  15137. _worksStudent[i].push(_works);
  15138. }
  15139. } else {
  15140. _worksStudent[i].push(_works);
  15141. }
  15142. _worksStudent2[i].push(_works);
  15143. this.isWorksS[i].push({
  15144. uid: b[j].userid,
  15145. sName: b[j].name,
  15146. });
  15147. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15148. let _works = {
  15149. userid: b[j].userid,
  15150. ateacher: b[j].ateacher,
  15151. wid: b[j].id,
  15152. works: b[j].content,
  15153. sName: b[j].name,
  15154. type: 0,
  15155. ttype:b[j].ttype,
  15156. time: b[j].time,
  15157. score: b[j].score,
  15158. img: b[j].img,
  15159. likesCount: likesCount,
  15160. commentCount: commentCount,
  15161. isLikes: isLikes,
  15162. commentJson: commentJson,
  15163. likeJson:likeJson
  15164. };
  15165. if (this.isGroup) {
  15166. let isGw = 1;
  15167. for (
  15168. var groupI = 0;
  15169. groupI < this.courseGroup.group.length;
  15170. groupI++
  15171. ) {
  15172. let gid = this.courseGroup.group[groupI].id;
  15173. if (
  15174. this.courseGroupStudentUid[gid].indexOf(
  15175. b[j].userid
  15176. ) != -1
  15177. ) {
  15178. isGw = 2;
  15179. this.courseGroup.group[groupI].works[i].push(_works);
  15180. break;
  15181. }
  15182. }
  15183. if (isGw == 1) {
  15184. _worksStudent[i].push(_works);
  15185. }
  15186. } else {
  15187. _worksStudent[i].push(_works);
  15188. }
  15189. _worksStudent2[i].push(_works);
  15190. this.isWorksS[i].push({
  15191. uid: b[j].userid,
  15192. sName: b[j].name,
  15193. });
  15194. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15195. let _works = {
  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: 0,
  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. if (this.isGroup) {
  15213. let isGw = 1;
  15214. for (
  15215. var groupI = 0;
  15216. groupI < this.courseGroup.group.length;
  15217. groupI++
  15218. ) {
  15219. let gid = this.courseGroup.group[groupI].id;
  15220. if (
  15221. this.courseGroupStudentUid[gid].indexOf(
  15222. b[j].userid
  15223. ) != -1
  15224. ) {
  15225. isGw = 2;
  15226. this.courseGroup.group[groupI].works[i].push(_works);
  15227. break;
  15228. }
  15229. }
  15230. if (isGw == 1) {
  15231. _worksStudent[i].push(_works);
  15232. }
  15233. } else {
  15234. _worksStudent[i].push(_works);
  15235. }
  15236. _worksStudent2[i].push(_works);
  15237. this.isWorksS[i].push({
  15238. uid: b[j].userid,
  15239. sName: b[j].name,
  15240. });
  15241. }
  15242. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15243. let _works = {
  15244. userid: b[j].userid,
  15245. ateacher: b[j].ateacher,
  15246. wid: b[j].id,
  15247. works: b[j].content,
  15248. sName: b[j].name,
  15249. type: 2,
  15250. ttype:b[j].ttype,
  15251. time: b[j].time,
  15252. score: b[j].score,
  15253. img: b[j].img,
  15254. likesCount: likesCount,
  15255. commentCount: commentCount,
  15256. isLikes: isLikes,
  15257. commentJson: commentJson,
  15258. likeJson:likeJson
  15259. };
  15260. if (this.isGroup) {
  15261. let isGw = 1;
  15262. for (
  15263. var groupI = 0;
  15264. groupI < this.courseGroup.group.length;
  15265. groupI++
  15266. ) {
  15267. let gid = this.courseGroup.group[groupI].id;
  15268. if (
  15269. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15270. -1
  15271. ) {
  15272. isGw = 2;
  15273. this.courseGroup.group[groupI].works[i].push(_works);
  15274. break;
  15275. }
  15276. }
  15277. if (isGw == 1) {
  15278. _worksStudent[i].push(_works);
  15279. }
  15280. } else {
  15281. _worksStudent[i].push(_works);
  15282. }
  15283. _worksStudent2[i].push(_works);
  15284. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15285. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15286. //问卷
  15287. let _work = {
  15288. userid: b[j].userid,
  15289. ateacher: b[j].ateacher,
  15290. wid: b[j].id,
  15291. works: b[j].content,
  15292. sName: b[j].name,
  15293. type: 2,
  15294. ttype:b[j].ttype,
  15295. time: b[j].time,
  15296. score: b[j].score,
  15297. img: b[j].img,
  15298. likesCount: likesCount,
  15299. commentCount: commentCount,
  15300. isLikes: isLikes,
  15301. commentJson: commentJson,
  15302. likeJson:likeJson
  15303. };
  15304. _worksStudent[i].push(_work);
  15305. _worksStudent2[i].push(_work);
  15306. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15307. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15308. //选择题
  15309. let _work = {
  15310. userid: b[j].userid,
  15311. ateacher: b[j].ateacher,
  15312. wid: b[j].id,
  15313. works: b[j].content,
  15314. sName: b[j].name,
  15315. type: 8,
  15316. ttype:b[j].ttype,
  15317. time: b[j].time,
  15318. score: b[j].score,
  15319. img: b[j].img,
  15320. likesCount: likesCount,
  15321. commentCount: commentCount,
  15322. isLikes: isLikes,
  15323. commentJson: commentJson,
  15324. likeJson:likeJson
  15325. };
  15326. _worksStudent[i].push(_work);
  15327. _worksStudent2[i].push(_work);
  15328. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15329. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15330. //选择题
  15331. let _work = {
  15332. userid: b[j].userid,
  15333. ateacher: b[j].ateacher,
  15334. wid: b[j].id,
  15335. works: b[j].content,
  15336. sName: b[j].name,
  15337. type: 9,
  15338. ttype:b[j].ttype,
  15339. time: b[j].time,
  15340. score: b[j].score,
  15341. img: b[j].img,
  15342. likesCount: likesCount,
  15343. commentCount: commentCount,
  15344. isLikes: isLikes,
  15345. commentJson: commentJson,
  15346. likeJson:likeJson
  15347. };
  15348. _worksStudent[i].push(_work);
  15349. _worksStudent2[i].push(_work);
  15350. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15351. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15352. //选择题
  15353. let _work = {
  15354. userid: b[j].userid,
  15355. ateacher: b[j].ateacher,
  15356. wid: b[j].id,
  15357. works: b[j].content,
  15358. sName: b[j].name,
  15359. type: 10,
  15360. ttype:b[j].ttype,
  15361. time: b[j].time,
  15362. score: b[j].score,
  15363. img: b[j].img,
  15364. likesCount: likesCount,
  15365. commentCount: commentCount,
  15366. isLikes: isLikes,
  15367. commentJson: commentJson,
  15368. likeJson:likeJson
  15369. };
  15370. _worksStudent[i].push(_work);
  15371. _worksStudent2[i].push(_work);
  15372. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15373. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15374. //选择题
  15375. let _work = {
  15376. userid: b[j].userid,
  15377. ateacher: b[j].ateacher,
  15378. wid: b[j].id,
  15379. works: b[j].content,
  15380. sName: b[j].name,
  15381. type: 13,
  15382. ttype:b[j].ttype,
  15383. time: b[j].time,
  15384. score: b[j].score,
  15385. img: b[j].img,
  15386. likesCount: likesCount,
  15387. commentCount: commentCount,
  15388. isLikes: isLikes,
  15389. commentJson: commentJson,
  15390. likeJson:likeJson
  15391. };
  15392. _worksStudent[i].push(_work);
  15393. _worksStudent2[i].push(_work);
  15394. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15395. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15396. //选择题
  15397. let _work = {
  15398. userid: b[j].userid,
  15399. ateacher: b[j].ateacher,
  15400. wid: b[j].id,
  15401. works: b[j].content,
  15402. sName: b[j].name,
  15403. type: 16,
  15404. ttype:b[j].ttype,
  15405. time: b[j].time,
  15406. score: b[j].score,
  15407. img: b[j].img,
  15408. likesCount: likesCount,
  15409. commentCount: commentCount,
  15410. isLikes: isLikes,
  15411. commentJson: commentJson,
  15412. aiCode: b[j].aiCode,
  15413. teacherCode: b[j].teacherCode,
  15414. likeJson:likeJson
  15415. };
  15416. _worksStudent[i].push(_work);
  15417. _worksStudent2[i].push(_work);
  15418. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15419. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15420. //英语口语
  15421. let _work = {
  15422. userid: b[j].userid,
  15423. ateacher: b[j].ateacher,
  15424. wid: b[j].id,
  15425. works: b[j].content,
  15426. sName: b[j].name,
  15427. type: 17,
  15428. ttype:b[j].ttype,
  15429. time: b[j].time,
  15430. score: b[j].score,
  15431. img: b[j].img,
  15432. likesCount: likesCount,
  15433. commentCount: commentCount,
  15434. isLikes: isLikes,
  15435. commentJson: commentJson,
  15436. likeJson:likeJson
  15437. };
  15438. _worksStudent[i].push(_work);
  15439. _worksStudent2[i].push(_work);
  15440. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15441. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15442. //交互视频
  15443. let _work = {
  15444. userid: b[j].userid,
  15445. ateacher: b[j].ateacher,
  15446. wid: b[j].id,
  15447. works: b[j].content,
  15448. sName: b[j].name,
  15449. type: 14,
  15450. ttype:b[j].ttype,
  15451. time: b[j].time,
  15452. score: b[j].score,
  15453. img: b[j].img,
  15454. likesCount: likesCount,
  15455. commentCount: commentCount,
  15456. isLikes: isLikes,
  15457. commentJson: commentJson,
  15458. likeJson:likeJson
  15459. };
  15460. _worksStudent[i].push(_work);
  15461. _worksStudent2[i].push(_work);
  15462. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15463. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15464. let _gindex = JSON.parse(b[j].content);
  15465. if (
  15466. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15467. b[j].userid
  15468. ) != -1
  15469. ) {
  15470. let _work = {
  15471. userid: b[j].userid,
  15472. ateacher: b[j].ateacher,
  15473. wid: b[j].id,
  15474. works: _gindex.url,
  15475. sName: b[j].name,
  15476. type: _gindex.type,
  15477. ttype:b[j].ttype,
  15478. time: b[j].time,
  15479. score: b[j].score,
  15480. img: b[j].img,
  15481. likesCount: likesCount,
  15482. commentCount: commentCount,
  15483. isLikes: isLikes,
  15484. commentJson: commentJson,
  15485. likeJson:likeJson
  15486. };
  15487. _worksStudent[i][_gindex.groupIndex].push(_work);
  15488. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15489. }
  15490. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15491. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15492. let _work = {
  15493. userid: b[j].userid,
  15494. ateacher: b[j].ateacher,
  15495. wid: b[j].id,
  15496. works: b[j].content,
  15497. sName: b[j].name ? b[j].name : b[j].userid,
  15498. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15499. ttype:b[j].ttype,
  15500. time: b[j].time,
  15501. score: b[j].score,
  15502. img: b[j].img,
  15503. likesCount: likesCount,
  15504. commentCount: commentCount,
  15505. isLikes: isLikes,
  15506. commentJson: commentJson,
  15507. likeJson:likeJson
  15508. };
  15509. _worksStudent[i].push(_work);
  15510. _worksStudent2[i].push(_work);
  15511. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15512. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15513. let _work = {
  15514. userid: b[j].userid,
  15515. ateacher: b[j].ateacher,
  15516. wid: b[j].id,
  15517. works: b[j].content,
  15518. sName: b[j].name ? b[j].name : b[j].userid,
  15519. type: 12,
  15520. ttype:b[j].ttype,
  15521. time: b[j].time,
  15522. score: b[j].score,
  15523. img: b[j].img,
  15524. likesCount: likesCount,
  15525. commentCount: commentCount,
  15526. isLikes: isLikes,
  15527. commentJson: commentJson,
  15528. likeJson:likeJson
  15529. };
  15530. _worksStudent[i].push(_work);
  15531. _worksStudent2[i].push(_work);
  15532. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15533. } else if (
  15534. a[i].tool[0] == 57 &&
  15535. b[j].atool == 57 &&
  15536. b[j].type == 12
  15537. ) {
  15538. let _work = {
  15539. userid: b[j].userid,
  15540. ateacher: b[j].ateacher,
  15541. wid: b[j].id,
  15542. works: b[j].content,
  15543. sName: b[j].name ? b[j].name : b[j].userid,
  15544. type: 12,
  15545. ttype:b[j].ttype,
  15546. time: b[j].time,
  15547. score: b[j].score,
  15548. img: b[j].img,
  15549. likesCount: likesCount,
  15550. commentCount: commentCount,
  15551. isLikes: isLikes,
  15552. commentJson: commentJson,
  15553. likeJson:likeJson
  15554. };
  15555. _worksStudent[i].push(_work);
  15556. _worksStudent2[i].push(_work);
  15557. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15558. } else if (
  15559. a[i].tool[0] == 57 &&
  15560. b[j].atool == 57 &&
  15561. b[j].type == 15
  15562. ) {
  15563. let _work = {
  15564. userid: b[j].userid,
  15565. ateacher: b[j].ateacher,
  15566. wid: b[j].id,
  15567. works: b[j].content,
  15568. sName: b[j].name ? b[j].name : b[j].userid,
  15569. type: 15,
  15570. ttype:b[j].ttype,
  15571. time: b[j].time,
  15572. score: b[j].score,
  15573. img: b[j].img,
  15574. likesCount: likesCount,
  15575. commentCount: commentCount,
  15576. isLikes: isLikes,
  15577. commentJson: commentJson,
  15578. likeJson:likeJson
  15579. };
  15580. _worksStudent[i].push(_work);
  15581. _worksStudent2[i].push(_work);
  15582. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15583. }
  15584. }
  15585. }
  15586. if (_worksStudent[i] && _worksStudent[i].length) {
  15587. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15588. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15589. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15590. var scoreA = parseFloat(jscoreA);
  15591. var scoreB = parseFloat(jscoreB);
  15592. if (scoreA == scoreB) {
  15593. return b.likesCount - a.likesCount;
  15594. }
  15595. return scoreB - scoreA;
  15596. });
  15597. if (this.isGroup) {
  15598. for (
  15599. var groupI = 0;
  15600. groupI < this.courseGroup.group.length;
  15601. groupI++
  15602. ) {
  15603. this.courseGroup.group[groupI].works[i] =
  15604. this.courseGroup.group[groupI].works[i].sort(function (
  15605. a,
  15606. b
  15607. ) {
  15608. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15609. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15610. var scoreA = parseFloat(jscoreA);
  15611. var scoreB = parseFloat(jscoreB);
  15612. if (scoreA == scoreB) {
  15613. return b.likesCount - a.likesCount;
  15614. }
  15615. return scoreB - scoreA;
  15616. });
  15617. }
  15618. }
  15619. }
  15620. }
  15621. this.timeWorkList = _worksStudent2;
  15622. for (var i = 0; i < a.length; i++) {
  15623. for (var j = 0; j < b.length; j++) {
  15624. var data = b[j];
  15625. if (i == b[j].tool) {
  15626. if (data.type == 2 || data.type == 8) {
  15627. for (var z = 0; z < this.checkJson[i].length; z++) {
  15628. this.checkJson[i][z].checkPerent = [];
  15629. this.checkJson[i][z].right = Math.round(
  15630. (this.checkJson[i][z].rightPerson.length /
  15631. parseInt(_worksStudent[i].length)) *
  15632. 100
  15633. );
  15634. let aaaa = this.checkJson[i][z];
  15635. for (
  15636. var k = 0;
  15637. k < this.checkJson[i][z].checkCount.length;
  15638. k++
  15639. ) {
  15640. this.checkJson[i][z].checkPerent.push(
  15641. Math.round(
  15642. (this.checkJson[i][z].checkCount[k] /
  15643. parseInt(_worksStudent[i].length)) *
  15644. 100
  15645. )
  15646. );
  15647. }
  15648. }
  15649. } else if (data.type == 9) {
  15650. for (var z = 0; z < this.checkJson[i].length; z++) {
  15651. this.checkJson[i][z].checkPerent = [];
  15652. this.checkJson[i][z].right = Math.round(
  15653. (this.checkJson[i][z].rightPerson.length /
  15654. this.checkJson[i][z].checkPerson.length) *
  15655. 100
  15656. );
  15657. }
  15658. }
  15659. }
  15660. }
  15661. }
  15662. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15663. this.joinGroup(gindex);
  15664. }
  15665. this.worksStudent = _worksStudent;
  15666. this.selectWorksStudent();
  15667. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15668. this.$nextTick(()=>{
  15669. setTimeout(()=>{
  15670. setTimeout(()=>{
  15671. this.panToolHeight('tool-'+ci);
  15672. }, 500)
  15673. }, 0)
  15674. })
  15675. }
  15676. })
  15677. .catch((err) => {
  15678. console.error(err);
  15679. });
  15680. },
  15681. pngToWhiteBg(file) {
  15682. const _file = file;
  15683. let read = new FileReader();
  15684. read.readAsDataURL(file); // 文件转base64
  15685. return new Promise((resolve, reject) => {
  15686. read.onload = (e) => {
  15687. let img = new Image();
  15688. img.src = e.target.result;
  15689. img.onload = async () => {
  15690. // 生成canvas
  15691. let canvas = document.createElement("canvas");
  15692. let context = canvas.getContext("2d");
  15693. // 绘制图片到canvas上
  15694. canvas.width = img.width;
  15695. canvas.height = img.height;
  15696. // 在canvas绘制前填充白色背景
  15697. context.fillStyle = "#fff";
  15698. context.fillRect(0, 0, canvas.width, canvas.height);
  15699. context.drawImage(img, 0, 0);
  15700. let base64 = canvas.toDataURL(file["type"], 1);
  15701. let newFile = this.dataUrlToFile(base64, _file);
  15702. resolve(newFile);
  15703. };
  15704. };
  15705. });
  15706. },
  15707. dataUrlToFile(dataurl, file) {
  15708. let arr = dataurl.split(","),
  15709. mime = arr[0].match(/:(.*?);/)[1],
  15710. bstr = atob(arr[1]),
  15711. n = bstr.length,
  15712. u8arr = new Uint8Array(n);
  15713. while (n--) {
  15714. u8arr[n] = bstr.charCodeAt(n);
  15715. }
  15716. // return new Blob([u8arr], { type: mime });
  15717. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15718. type: mime,
  15719. });
  15720. },
  15721. async beforeUpload1(event, type, i) {
  15722. // this.$message.success('进入上传')
  15723. var file = "";
  15724. if (type == 5) {
  15725. file = event;
  15726. } else {
  15727. file = event.target.files[0];
  15728. }
  15729. var credentials = {
  15730. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15731. secretAccessKey: "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",
  15732. }; //秘钥形式的登录上传
  15733. window.AWS.config.update(credentials);
  15734. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15735. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15736. var _this = this;
  15737. _this.progress = 0;
  15738. _this.proVisible = true;
  15739. _this.isFinishSize = 0;
  15740. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15741. var b = [
  15742. "DOC",
  15743. "DOCX",
  15744. "DOCM",
  15745. "DOTM",
  15746. "DOTX",
  15747. "PPTX",
  15748. "PPSX",
  15749. "PPT",
  15750. "PPS",
  15751. "PPTM",
  15752. "POTM",
  15753. "PPAM",
  15754. "POTX",
  15755. "PPSM",
  15756. ];
  15757. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15758. var photoA = [
  15759. "BMP",
  15760. "GIF",
  15761. "PNG",
  15762. "JPEG",
  15763. "JPEG",
  15764. "JPG",
  15765. "TIF",
  15766. "PCX",
  15767. "TGA",
  15768. "EXIF",
  15769. "FPX",
  15770. "SVG",
  15771. "APNG",
  15772. ];
  15773. // if (
  15774. // b.indexOf(
  15775. // file.name
  15776. // .split(".")
  15777. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15778. // ) != -1
  15779. // ) {
  15780. // if (file.size / 1024 / 1024 > 10) {
  15781. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15782. // return;
  15783. // }
  15784. // } else if (
  15785. // excelA.indexOf(
  15786. // file.name
  15787. // .split(".")
  15788. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15789. // ) != "-1"
  15790. // ) {
  15791. // if (file.size / 1024 / 1024 > 5) {
  15792. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15793. // return;
  15794. // }
  15795. // }
  15796. if (
  15797. photoA.indexOf(
  15798. file.name
  15799. .split(".")
  15800. [file.name.split(".").length - 1].toLocaleUpperCase()
  15801. ) != -1 &&
  15802. type != 4
  15803. ) {
  15804. // const blob = await imageConversion.compress(file, 0.8)
  15805. file = await this.pngToWhiteBg(file);
  15806. const blob = await imageConversion.compressAccurately(file, 256);
  15807. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15808. file = new File([blob], file.name, { type: file.type });
  15809. }
  15810. if (file) {
  15811. var params = {
  15812. Key:
  15813. file.name.split(".")[0] +
  15814. new Date().getTime() +
  15815. "." +
  15816. file.name.split(".")[file.name.split(".").length - 1],
  15817. ContentType: file.type,
  15818. Body: file,
  15819. "Access-Control-Allow-Credentials": "*",
  15820. ACL: "public-read",
  15821. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15822. var options = {
  15823. // partSize: 2048 * 1024 * 1024,
  15824. partSize: 1024 * 1024 * 1024,
  15825. queueSize: 2,
  15826. leavePartsOnError: true,
  15827. };
  15828. bucket
  15829. .upload(params, options)
  15830. .on("httpUploadProgress", function (evt) {
  15831. //这里可以写进度条
  15832. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15833. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15834. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15835. })
  15836. .send(function (err, data) {
  15837. _this.progress = 100;
  15838. _this.isFinishSize = _this.isAllSize;
  15839. setTimeout(() => {
  15840. _this.proVisible = false;
  15841. }, 1000);
  15842. if (err) {
  15843. var a = _this.$refs.upload1.uploadFiles;
  15844. a.splice(a.length - 1, a.length);
  15845. _this.$message.error("上传失败");
  15846. } else {
  15847. // _this.$message.success('上传成功')
  15848. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15849. var c = [
  15850. "AVI",
  15851. "NAVI",
  15852. "MPEG",
  15853. "ASF",
  15854. "MOV",
  15855. "WMV",
  15856. "3GP",
  15857. "RM",
  15858. "RMVB",
  15859. "FLV",
  15860. "F4V",
  15861. "H.264",
  15862. "H.265",
  15863. "REAL VIDEO",
  15864. "MKV",
  15865. "WebM",
  15866. "HDDVD",
  15867. "MP4",
  15868. "MPG",
  15869. "M4V",
  15870. "MGV",
  15871. "OGV",
  15872. "QTM",
  15873. "STR",
  15874. "AMC",
  15875. "DVX",
  15876. "EVO",
  15877. "DAT",
  15878. "OGG",
  15879. "OGM",
  15880. ];
  15881. if (type == 1) {
  15882. _this.studyJuri[0].cover.push({
  15883. name: file.name,
  15884. url: data.Location,
  15885. uid: file.uid,
  15886. });
  15887. if (
  15888. c.indexOf(
  15889. _this.studyJuri[0].cover[0].url
  15890. .split(".")
  15891. [
  15892. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15893. ].toLocaleUpperCase()
  15894. ) != -1
  15895. ) {
  15896. _this.fileType = 2;
  15897. } else if (
  15898. b.indexOf(
  15899. _this.studyJuri[0].cover[0].url
  15900. .split(".")
  15901. [
  15902. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15903. ].toLocaleUpperCase()
  15904. ) != -1
  15905. ) {
  15906. _this.fileType = 1;
  15907. } else if (
  15908. photoA.indexOf(
  15909. _this.studyJuri[0].cover[0].url
  15910. .split(".")
  15911. [
  15912. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15913. ].toLocaleUpperCase()
  15914. ) != -1
  15915. ) {
  15916. _this.fileType = 0;
  15917. } else {
  15918. _this.fileType = 3;
  15919. }
  15920. _this.imgChange(null, null, type);
  15921. } else if (type == 2) {
  15922. _this.upToolImg = data.Location;
  15923. _this.imgChange(null, null, type);
  15924. _this.addCourseWorks(i);
  15925. } else if (type == 4) {
  15926. _this.addPz("3", data.Location);
  15927. } else if (type == 5) {
  15928. _this.addImgDrawImG(data.Location);
  15929. } else if (type == 6) {
  15930. var _ftype = 1;
  15931. if (
  15932. c.indexOf(
  15933. data.Location.split(".")[
  15934. data.Location.split(".").length - 1
  15935. ].toLocaleUpperCase()
  15936. ) != -1
  15937. ) {
  15938. _ftype = 5;
  15939. } else if (
  15940. b.indexOf(
  15941. data.Location.split(".")[
  15942. data.Location.split(".").length - 1
  15943. ].toLocaleUpperCase()
  15944. ) != -1
  15945. ) {
  15946. _ftype = 4;
  15947. } else {
  15948. _ftype = 1;
  15949. }
  15950. _this.plworkFile.push({
  15951. name: file.name,
  15952. url: data.Location,
  15953. uid: file.uid,
  15954. fileType: _ftype,
  15955. username:
  15956. _this.plworkFile.length > 10
  15957. ? _this.plworkFile.length + 1
  15958. : "0" + (_this.plworkFile.length + 1),
  15959. });
  15960. } else if (type == 7) {
  15961. _this.addCourseWorksGong(i, data.Location, 32);
  15962. } else if (type == 8) {
  15963. _this.addCourseWorksGong(i, data.Location, 57);
  15964. }
  15965. _this.imgChange(null, null, type);
  15966. console.log(data.Location);
  15967. // _this.$message.success('上传成功'+data.Location)
  15968. }
  15969. });
  15970. }
  15971. },
  15972. async beforeUpload3(event, type, i) {
  15973. // this.$message.success('进入上传')
  15974. let file = "";
  15975. let cfindex2 = 0;
  15976. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15977. file = event.target.files[cfindex];
  15978. var credentials = {
  15979. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15980. secretAccessKey: "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",
  15981. }; //秘钥形式的登录上传
  15982. window.AWS.config.update(credentials);
  15983. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15984. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15985. var _this = this;
  15986. // _this.progress = 0;
  15987. _this.proVisible2 = true;
  15988. var b = [
  15989. "DOC",
  15990. "DOCX",
  15991. "DOCM",
  15992. "DOTM",
  15993. "DOTX",
  15994. "PPTX",
  15995. "PPSX",
  15996. "PPT",
  15997. "PPS",
  15998. "PPTM",
  15999. "POTM",
  16000. "PPAM",
  16001. "POTX",
  16002. "PPSM",
  16003. ];
  16004. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16005. var photoA = [
  16006. "BMP",
  16007. "GIF",
  16008. "PNG",
  16009. "JPEG",
  16010. "JPG",
  16011. "TIF",
  16012. "PCX",
  16013. "TGA",
  16014. "EXIF",
  16015. "FPX",
  16016. "SVG",
  16017. "APNG",
  16018. ];
  16019. if (
  16020. photoA.indexOf(
  16021. file.name
  16022. .split(".")
  16023. [file.name.split(".").length - 1].toLocaleUpperCase()
  16024. ) != -1 &&
  16025. type != 4
  16026. ) {
  16027. // const blob = await imageConversion.compress(file, 0.8)
  16028. file = await this.pngToWhiteBg(file);
  16029. const blob = await imageConversion.compressAccurately(file, 256);
  16030. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16031. file = new File([blob], file.name, { type: file.type });
  16032. }
  16033. if (file) {
  16034. var params = {
  16035. Key:
  16036. file.name.split(".")[0] +
  16037. new Date().getTime() +
  16038. "." +
  16039. file.name.split(".")[file.name.split(".").length - 1],
  16040. ContentType: file.type,
  16041. Body: file,
  16042. "Access-Control-Allow-Credentials": "*",
  16043. ACL: "public-read",
  16044. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16045. var options = {
  16046. // partSize: 2048 * 1024 * 1024,
  16047. partSize: 1024 * 1024 * 1024,
  16048. queueSize: 2,
  16049. leavePartsOnError: true,
  16050. };
  16051. bucket
  16052. .upload(params, options)
  16053. .on("httpUploadProgress", function (evt) {
  16054. //这里可以写进度条
  16055. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16056. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16057. })
  16058. .send(function (err, data) {
  16059. // _this.progress = 100;
  16060. cfindex2++;
  16061. setTimeout(() => {
  16062. if (
  16063. cfindex2 == event.target.files.length - 1 ||
  16064. cfindex2 > event.target.files.length - 1
  16065. ) {
  16066. _this.proVisible2 = false;
  16067. }
  16068. }, 1000);
  16069. if (err) {
  16070. var a = _this.$refs.upload1.uploadFiles;
  16071. a.splice(a.length - 1, a.length);
  16072. _this.$message.error("上传失败");
  16073. } else {
  16074. // _this.$message.success('上传成功')
  16075. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16076. var c = [
  16077. "AVI",
  16078. "NAVI",
  16079. "MPEG",
  16080. "ASF",
  16081. "MOV",
  16082. "WMV",
  16083. "3GP",
  16084. "RM",
  16085. "RMVB",
  16086. "FLV",
  16087. "F4V",
  16088. "H.264",
  16089. "H.265",
  16090. "REAL VIDEO",
  16091. "MKV",
  16092. "WebM",
  16093. "HDDVD",
  16094. "MP4",
  16095. "MPG",
  16096. "M4V",
  16097. "MGV",
  16098. "OGV",
  16099. "QTM",
  16100. "STR",
  16101. "AMC",
  16102. "DVX",
  16103. "EVO",
  16104. "DAT",
  16105. "OGG",
  16106. "OGM",
  16107. ];
  16108. if (type == 1) {
  16109. _this.studyJuri[0].cover.push({
  16110. name: file.name,
  16111. url: data.Location,
  16112. uid: file.uid,
  16113. });
  16114. if (
  16115. c.indexOf(
  16116. _this.studyJuri[0].cover[0].url
  16117. .split(".")
  16118. [
  16119. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16120. ].toLocaleUpperCase()
  16121. ) != -1
  16122. ) {
  16123. _this.fileType = 2;
  16124. } else if (
  16125. b.indexOf(
  16126. _this.studyJuri[0].cover[0].url
  16127. .split(".")
  16128. [
  16129. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16130. ].toLocaleUpperCase()
  16131. ) != -1
  16132. ) {
  16133. _this.fileType = 1;
  16134. } else {
  16135. _this.fileType = 0;
  16136. }
  16137. _this.imgChange(null, null, type);
  16138. } else if (type == 2) {
  16139. _this.upToolImg = data.Location;
  16140. _this.imgChange(null, null, type);
  16141. _this.addCourseWorks(i);
  16142. } else if (type == 4) {
  16143. _this.addPz("3", data.Location);
  16144. } else if (type == 5) {
  16145. _this.addImgDrawImG(data.Location);
  16146. } else if (type == 6) {
  16147. var _ftype = 1;
  16148. if (
  16149. c.indexOf(
  16150. data.Location.split(".")[
  16151. data.Location.split(".").length - 1
  16152. ].toLocaleUpperCase()
  16153. ) != -1
  16154. ) {
  16155. _ftype = 5;
  16156. } else if (
  16157. b.indexOf(
  16158. data.Location.split(".")[
  16159. data.Location.split(".").length - 1
  16160. ].toLocaleUpperCase()
  16161. ) != -1
  16162. ) {
  16163. _ftype = 4;
  16164. } else {
  16165. _ftype = 1;
  16166. }
  16167. _this.plworkFile.push({
  16168. name: file.name,
  16169. url: data.Location,
  16170. uid: file.uid,
  16171. fileType: _ftype,
  16172. username:
  16173. _this.plworkFile.length + 1 > 9
  16174. ? _this.plworkFile.length + 1
  16175. : "0" + (_this.plworkFile.length + 1),
  16176. });
  16177. }
  16178. _this.imgChange(null, null, type);
  16179. console.log(data.Location);
  16180. // _this.$message.success('上传成功'+data.Location)
  16181. }
  16182. });
  16183. }
  16184. }
  16185. },
  16186. beforeUpload2(event, type) {
  16187. var file = event.target.files[0];
  16188. var credentials = {
  16189. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16190. secretAccessKey: "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",
  16191. }; //秘钥形式的登录上传
  16192. window.AWS.config.update(credentials);
  16193. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16194. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16195. var _this = this;
  16196. _this.progress = 0;
  16197. _this.proVisible = true;
  16198. if (file) {
  16199. var params = {
  16200. Key:
  16201. file.name.split(".")[0] +
  16202. new Date().getTime() +
  16203. "." +
  16204. file.name.split(".")[file.name.split(".").length - 1],
  16205. ContentType: file.type,
  16206. Body: file,
  16207. "Access-Control-Allow-Credentials": "*",
  16208. ACL: "public-read",
  16209. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16210. var options = {
  16211. partSize: 2048 * 1024 * 1024,
  16212. queueSize: 2,
  16213. leavePartsOnError: true,
  16214. };
  16215. bucket
  16216. .upload(params, options)
  16217. .on("httpUploadProgress", function (evt) {
  16218. //这里可以写进度条
  16219. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16220. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16221. })
  16222. .send(function (err, data) {
  16223. _this.progress = 100;
  16224. setTimeout(() => {
  16225. _this.proVisible = false;
  16226. }, 1000);
  16227. if (err) {
  16228. var a = _this.$refs.upload1.uploadFiles;
  16229. a.splice(a.length - 1, a.length);
  16230. _this.$message.error("上传失败");
  16231. } else {
  16232. if (type == 2) {
  16233. _this.studyJuri[0].upVedio.push({
  16234. name: file.name,
  16235. url: data.Location,
  16236. uid: file.uid,
  16237. });
  16238. _this.imgChange(null, null, type);
  16239. } else if (type == 3) {
  16240. _this.studyJuri[0].upFile.push({
  16241. name: file.name,
  16242. url: data.Location,
  16243. uid: file.uid,
  16244. });
  16245. _this.imgChange(null, null, type);
  16246. }
  16247. console.log(data.Location);
  16248. }
  16249. });
  16250. }
  16251. },
  16252. allScrell() {
  16253. window.parent.postMessage({ allScreen: this.screenType }, "*");
  16254. },
  16255. nextOrpreSteps(t) {
  16256. if (this.IsFollow && this.tType == 2) {
  16257. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16258. return;
  16259. }
  16260. var b = this.chapInfoList.length - 1;
  16261. if (t == 0) {
  16262. if (this.courseType == 0) {
  16263. if (this.taskCount == 0) {
  16264. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16265. if (this.IsLookOpen) {
  16266. if (
  16267. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16268. ) {
  16269. if (
  16270. this.courseDetail.userid != this.userid &&
  16271. (!this.courseDetail.course_teacher ||
  16272. (this.courseDetail.course_teacher &&
  16273. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16274. ) {
  16275. this.$message.error("任务未解锁");
  16276. } else {
  16277. this.$message.error("上一任务未解锁");
  16278. }
  16279. return;
  16280. }
  16281. }
  16282. this.navList[this.courseType].isOpen = false;
  16283. this.courseType = b;
  16284. this.taskCount =
  16285. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16286. .length - 1;
  16287. this.navList[this.courseType].isOpen = true;
  16288. } else {
  16289. this.taskCount--;
  16290. }
  16291. } else {
  16292. if (this.taskCount == 0) {
  16293. this.navList[this.courseType].isOpen = false;
  16294. this.courseType--;
  16295. this.taskCount =
  16296. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16297. .length - 1;
  16298. this.navList[this.courseType].isOpen = true;
  16299. } else {
  16300. this.taskCount--;
  16301. }
  16302. }
  16303. } else {
  16304. if (this.courseType == b) {
  16305. if (
  16306. this.taskCount ==
  16307. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16308. 1
  16309. ) {
  16310. this.navList[this.courseType].isOpen = false;
  16311. this.courseType = 0;
  16312. this.taskCount = 0;
  16313. this.navList[this.courseType].isOpen = true;
  16314. } else {
  16315. var bbb = parseInt(this.taskCount) + 1;
  16316. if (
  16317. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16318. .isLook &&
  16319. this.courseDetail.userid != this.userid &&
  16320. (!this.courseDetail.course_teacher ||
  16321. (this.courseDetail.course_teacher &&
  16322. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16323. this.IsLookOpen
  16324. ) {
  16325. this.$message.error("任务未解锁");
  16326. return;
  16327. }
  16328. this.taskCount++;
  16329. if (this.IsLookOpen) {
  16330. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16331. this.taskCount
  16332. ].isLook = true;
  16333. this.addCourseState(3);
  16334. }
  16335. }
  16336. } else {
  16337. if (
  16338. this.taskCount ==
  16339. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16340. 1
  16341. ) {
  16342. var bbb = parseInt(this.courseType) + 1;
  16343. if (
  16344. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16345. this.courseDetail.userid != this.userid &&
  16346. (!this.courseDetail.course_teacher ||
  16347. (this.courseDetail.course_teacher &&
  16348. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16349. this.IsLookOpen
  16350. ) {
  16351. this.$message.error("任务未解锁");
  16352. return;
  16353. }
  16354. this.navList[this.courseType].isOpen = false;
  16355. this.courseType++;
  16356. this.taskCount = 0;
  16357. this.navList[this.courseType].isOpen = true;
  16358. } else {
  16359. var bbb = parseInt(this.taskCount) + 1;
  16360. if (
  16361. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16362. .isLook &&
  16363. this.courseDetail.userid != this.userid &&
  16364. (!this.courseDetail.course_teacher ||
  16365. (this.courseDetail.course_teacher &&
  16366. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16367. this.IsLookOpen
  16368. ) {
  16369. this.$message.error("任务未解锁");
  16370. return;
  16371. }
  16372. this.taskCount++;
  16373. }
  16374. if (this.IsLookOpen) {
  16375. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16376. this.taskCount
  16377. ].isLook = true;
  16378. this.addCourseState(3);
  16379. }
  16380. }
  16381. // if (
  16382. // this.taskCount ==
  16383. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16384. // ) {
  16385. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16386. // } else {
  16387. // this.taskCount++;
  16388. // }
  16389. }
  16390. document.scrollingElement.scrollTop = 0;
  16391. // this.showType = 7;
  16392. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16393. // if (this.vedio[this.taskCount].length > 0) {
  16394. // var a =
  16395. // document.getElementsByClassName("box_course")[this.taskCount]
  16396. // .offsetHeight;
  16397. // document.getElementsByClassName("vedioList")[
  16398. // this.taskCount
  16399. // ].style.height = a + "px";
  16400. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16401. // a - 40 + "px";
  16402. // }
  16403. this.isNoHomeWork = false;
  16404. (this.studyJuri = [
  16405. {
  16406. content: "",
  16407. cover: [],
  16408. upVedio: [],
  16409. upFile: [],
  16410. },
  16411. ]),
  16412. (this.radio = []);
  16413. this.isClickNav = "";
  16414. this.selectPz();
  16415. this.getHomeWork();
  16416. this.getCourseDetail(2);
  16417. this.$forceUpdate();
  16418. },
  16419. openTask(s, n, i) {
  16420. if (this.IsFollow && this.tType == 2) {
  16421. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16422. return;
  16423. }
  16424. if (this.IsLookOpen &&
  16425. this.courseDetail.userid != this.userid &&
  16426. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  16427. if (
  16428. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16429. this.courseDetail.userid != this.userid &&
  16430. (!this.courseDetail.course_teacher ||
  16431. (this.courseDetail.course_teacher &&
  16432. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16433. ) {
  16434. this.$message.error("任务未解锁");
  16435. return;
  16436. }
  16437. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16438. if (
  16439. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16440. .isLook
  16441. ) {
  16442. this.$message.error("上一任务未解锁");
  16443. return;
  16444. }
  16445. } else if (s > this.courseType) {
  16446. if (n > 0) {
  16447. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16448. this.$message.error("上一任务未解锁");
  16449. return;
  16450. }
  16451. } else {
  16452. if (
  16453. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16454. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16455. ].isLook
  16456. ) {
  16457. this.$message.error("上一任务未解锁");
  16458. return;
  16459. }
  16460. }
  16461. }
  16462. }
  16463. if (this.navList[s].task[n].isOpen == true) {
  16464. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16465. return;
  16466. }
  16467. let flag = this.courseType==s;
  16468. this.courseType = s;
  16469. this.navId = i;
  16470. this.taskCount = n;
  16471. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  16472. this.navList[this.courseType].task[this.taskCount].isOpen =
  16473. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16474. if (this.IsLookOpen) {
  16475. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16476. this.taskCount
  16477. ].isLook = true;
  16478. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  16479. this.addCourseState(3,yym);
  16480. }
  16481. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  16482. this.isCloseList[ci].isClose = 0;
  16483. this.isCloseList[ci].isCloseBoolean = false;
  16484. this.$nextTick(()=>{
  16485. setTimeout(()=>{
  16486. setTimeout(()=>{
  16487. this.panToolHeight('tool-'+ci);
  16488. }, 0)
  16489. }, 0)
  16490. })
  16491. }
  16492. // this.showType = 7;
  16493. this.isNoHomeWork = false;
  16494. (this.studyJuri = [
  16495. {
  16496. content: "",
  16497. cover: [],
  16498. upVedio: [],
  16499. upFile: [],
  16500. },
  16501. ]),
  16502. (this.radio = []);
  16503. document.scrollingElement.scrollTop = 0;
  16504. // setTimeout(() => {
  16505. // let a = document.getElementById(i);
  16506. // if (a.offsetTop - 110 == 0) {
  16507. // window.scrollTo(0, 0);
  16508. // } else {
  16509. // window.scrollTo(0, a.offsetTop);
  16510. // }
  16511. // }, 0);
  16512. for (var z = 0; z < this.navList.length; z++) {
  16513. for (var q = 0; q < this.navList[z].task.length; q++) {
  16514. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16515. this.navList[z].task[q].tool[w].isTool = false;
  16516. }
  16517. }
  16518. }
  16519. this.selectPz();
  16520. this.getHomeWork();
  16521. this.getCourseDetail(2);
  16522. if(flag){
  16523. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16524. }else{
  16525. 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>`)
  16526. }
  16527. },
  16528. get(i) {
  16529. if (this.IsFollow && this.tType == 2) {
  16530. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16531. return;
  16532. }
  16533. // for(var k=0;k<this.navList.length;k++){
  16534. // this.navList[k].isOpen = false;
  16535. // }
  16536. // this.navList[i].isOpen = true;
  16537. this.navList[i].isOpen = !this.navList[i].isOpen;
  16538. if (this.navList[i].isOpen) {
  16539. this.openTask(i, 0, i + "-0");
  16540. }
  16541. },
  16542. addQuestion() {
  16543. this.answerList.push({
  16544. answerTitle: this.answerQ,
  16545. answer: this.questionAnswer,
  16546. });
  16547. let params = [
  16548. {
  16549. uid: this.userid,
  16550. cid: this.id,
  16551. stage: this.courseType,
  16552. task: this.taskCount,
  16553. tool: this.toolindex,
  16554. content: JSON.stringify(this.answerList),
  16555. type: 3,
  16556. },
  16557. ];
  16558. this.ajax
  16559. .post(this.$store.state.api + "addCourseWorks", params)
  16560. .then((res) => {
  16561. this.$message({
  16562. message: "提交成功",
  16563. type: "success",
  16564. });
  16565. this.answerList = [];
  16566. this.answerDialogVisible = false;
  16567. this.selectStudent();
  16568. this.selectSWorks();
  16569. this.selectSLook();
  16570. })
  16571. .catch((err) => {
  16572. this.$message.error("提交失败");
  16573. console.error(err);
  16574. });
  16575. },
  16576. addQuestionTeacher() {
  16577. this.answerList.push({
  16578. answerTitle: this.answerQ,
  16579. answer: this.questionAnswer,
  16580. });
  16581. let params = [
  16582. {
  16583. uid: this.sStudent.userid,
  16584. cid: this.id,
  16585. stage: this.courseType,
  16586. task: this.taskCount,
  16587. tool: this.toolindex,
  16588. content: JSON.stringify(this.answerList),
  16589. type: 3,
  16590. ateacher: this.userid,
  16591. },
  16592. ];
  16593. this.ajax
  16594. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16595. .then((res) => {
  16596. this.$message({
  16597. message: "提交成功",
  16598. type: "success",
  16599. });
  16600. this.answerList = [];
  16601. this.questionAnswer = "";
  16602. this.answerDialogVisibleTeacher = false;
  16603. this.selectStudent();
  16604. this.selectSWorks();
  16605. this.selectSLook();
  16606. })
  16607. .catch((err) => {
  16608. this.$message.error("提交失败");
  16609. console.error(err);
  16610. });
  16611. },
  16612. refreshCourse() {
  16613. // window.location.reload();
  16614. this.navList = [];
  16615. this.getCourseDetail(1);
  16616. },
  16617. getCourseDetail(type, gindex) {
  16618. let loading;
  16619. if (type != 2) {
  16620. loading = this.$loading.service({
  16621. background: "rgba(255, 255, 255, 0.7)",
  16622. target: document.querySelector(".student_table"),
  16623. });
  16624. }
  16625. this.downLoading = false
  16626. // this.navList[0].isOpen = false;
  16627. // this.navList[this.courseType].isOpen = true;
  16628. // this.courseType = this.courseTypeLine;
  16629. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16630. let params = {
  16631. courseId: this.id,
  16632. };
  16633. this.ajax
  16634. .get(this.$store.state.api + "selectCourseDetail3", params)
  16635. .then((res) => {
  16636. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  16637. if (type != 2) {
  16638. loading.close();
  16639. if (
  16640. this.courseType >
  16641. JSON.parse(res.data[0][0].chapters).length - 1
  16642. ) {
  16643. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16644. }
  16645. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16646. .chapterInfo[0].taskJson;
  16647. var b = [
  16648. "AVI",
  16649. "NAVI",
  16650. "MPEG",
  16651. "ASF",
  16652. "MOV",
  16653. "WMV",
  16654. "3GP",
  16655. "RM",
  16656. "RMVB",
  16657. "FLV",
  16658. "F4V",
  16659. "H.264",
  16660. "H.265",
  16661. "REAL VIDEO",
  16662. "MKV",
  16663. "WebM",
  16664. "HDDVD",
  16665. "MP4",
  16666. "MPG",
  16667. "M4V",
  16668. "MGV",
  16669. "OGV",
  16670. "QTM",
  16671. "STR",
  16672. "AMC",
  16673. "DVX",
  16674. "EVO",
  16675. "DAT",
  16676. "OGG",
  16677. "OGM",
  16678. "MP3",
  16679. ];
  16680. let _chapterData = [];
  16681. for (var i = 0; i < a.length; i++) {
  16682. var c = a[i].chapterData;
  16683. this.vedio[i] = [];
  16684. this.textList[i] = [];
  16685. this.lineList[i] = [];
  16686. this.chapToolList[i] = [];
  16687. this.file[i] = [];
  16688. this.fileC[i] = [];
  16689. _chapterData[i] = c.filter((el) => {
  16690. return el.type != 12;
  16691. });
  16692. this.fileC[i] = c.filter((el) => {
  16693. return el.type == 12;
  16694. });
  16695. if (this.tType == 2) {
  16696. if (this.fileC[i].length) {
  16697. let yym1 = this.fileC[i].filter(e=>{
  16698. if(!converter(e.name).includes(converter("教案"))){
  16699. return e
  16700. }
  16701. })
  16702. this.fileC[i] = yym1
  16703. }
  16704. }
  16705. // else if (c[j].type == 12) {
  16706. // this.fileC[i].push(c[j]);
  16707. // }
  16708. for (var j = 0; j < c.length; j++) {
  16709. if (c[j].type == 7) {
  16710. this.chapToolList[i].push(c[j]);
  16711. } else if (c[j].type == 8 || c[j].type == 14) {
  16712. this.lineList[i].push(c[j]);
  16713. } else if (c[j].type == 6) {
  16714. this.textList[i].push(c[j]);
  16715. } else {
  16716. if (
  16717. b.indexOf(
  16718. c[j].url
  16719. .split(".")
  16720. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16721. ) != -1
  16722. ) {
  16723. this.vedio[i].push(c[j]);
  16724. } else {
  16725. this.file[i].push(c[j]);
  16726. }
  16727. }
  16728. }
  16729. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16730. d.sources[0].src =
  16731. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16732. this.playerO[i] = d;
  16733. }
  16734. this.courseDetail = res.data[0][0];
  16735. if(this.tType == 2){
  16736. this.tcid = this.arrayToArray(
  16737. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16738. this.classId ? this.classId.split(",") : []
  16739. ).join(",");
  16740. }else{
  16741. this.tcid = this.arrayToArray(
  16742. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16743. this.tcid2 ? this.tcid2.split(",") : []
  16744. ).join(",");
  16745. }
  16746. this.evalua = res.data[0][0].evaId;
  16747. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16748. this.courseType
  16749. ];
  16750. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16751. if (this.tcid && res.data[1].length) {
  16752. let _inviteA = [];
  16753. for (var ik = 0; ik < res.data[1].length; ik++) {
  16754. _inviteA.push({
  16755. cid: res.data[1][ik].classid,
  16756. ic: res.data[1][ik].code,
  16757. });
  16758. }
  16759. for (var ik = 0; ik < _inviteA.length; ik++) {
  16760. if (
  16761. this.arrayToArray(
  16762. _inviteA[ik].cid.split(","),
  16763. this.tcid.split(",")
  16764. ).length
  16765. ) {
  16766. this.inviteCode = _inviteA[ik].ic;
  16767. break;
  16768. }
  16769. }
  16770. }
  16771. for (var l = 0; l < this.chapInfoList.length; l++) {
  16772. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16773. for (var m = 0; m < w.length; m++) {
  16774. w[m].id = l + "-" + m;
  16775. }
  16776. }
  16777. let taskCount = 0;
  16778. if (
  16779. _chapterData[taskCount].length &&
  16780. _chapterData[taskCount][0].type == 2
  16781. ) {
  16782. this.showType = 0;
  16783. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  16784. } else {
  16785. if (_chapterData[taskCount].length > 0) {
  16786. let _url = _chapterData[taskCount][0].url;
  16787. if (
  16788. _chapterData[taskCount][0].type == 8 ||
  16789. _chapterData[taskCount][0].type == 14
  16790. ) {
  16791. this.showType = 2;
  16792. if (
  16793. _url.indexOf("https://") == -1 &&
  16794. _url.indexOf("http://") == -1
  16795. ) {
  16796. _url = "https://" + _url;
  16797. }
  16798. this.pptImgUrl1 = _url;
  16799. } else if (_chapterData[taskCount][0].type == 3) {
  16800. if (
  16801. _url
  16802. .split(".")
  16803. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16804. ) {
  16805. this.showType = 3;
  16806. this.pptImgUrl1 = _url;
  16807. } else if (
  16808. this.isAssetTypeAnImage(
  16809. _url
  16810. .split(".")
  16811. [_url.split(".").length - 1].toLocaleLowerCase()
  16812. )
  16813. ) {
  16814. this.showType = 4;
  16815. this.pptImgUrl1 = _url;
  16816. } else {
  16817. this.showType = 2;
  16818. this.pptImgUrl1 =
  16819. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16820. encodeURIComponent(_url);
  16821. }
  16822. } else if (_chapterData[taskCount][0].type == 13) {
  16823. this.showType = 4;
  16824. this.pptImgUrl1 = _url;
  16825. } else if (_chapterData[taskCount][0].type == 6) {
  16826. this.showType = 1;
  16827. this.text = this.textList[taskCount][0];
  16828. }
  16829. }
  16830. }
  16831. this.isClickNav = 0;
  16832. if (
  16833. !_chapterData[taskCount].length ||
  16834. _chapterData[taskCount][0].type == 12
  16835. ) {
  16836. this.isClickNav = "";
  16837. this.showType = "";
  16838. }
  16839. if (this.tType == 2) {
  16840. _chapterData.forEach((e,i)=>{
  16841. if (e.length) {
  16842. let yym = e.filter(k=>{
  16843. if(!converter(k.name).includes(converter("教案"))){
  16844. return k
  16845. }
  16846. })
  16847. _chapterData[i] = yym
  16848. }
  16849. })
  16850. }
  16851. this.vChapterData = _chapterData;
  16852. } else {
  16853. // this.showType = 0;
  16854. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16855. .chapterInfo[0].taskJson;
  16856. var b = [
  16857. "AVI",
  16858. "NAVI",
  16859. "MPEG",
  16860. "ASF",
  16861. "MOV",
  16862. "WMV",
  16863. "3GP",
  16864. "RM",
  16865. "RMVB",
  16866. "FLV",
  16867. "F4V",
  16868. "H.264",
  16869. "H.265",
  16870. "REAL VIDEO",
  16871. "MKV",
  16872. "WebM",
  16873. "HDDVD",
  16874. "MP4",
  16875. "MPG",
  16876. "M4V",
  16877. "MGV",
  16878. "OGV",
  16879. "QTM",
  16880. "STR",
  16881. "AMC",
  16882. "DVX",
  16883. "EVO",
  16884. "DAT",
  16885. "OGG",
  16886. "OGM",
  16887. "MP3",
  16888. ];
  16889. let _chapterData = [];
  16890. for (var i = 0; i < a.length; i++) {
  16891. var c = a[i].chapterData;
  16892. this.vedio[i] = [];
  16893. this.textList[i] = [];
  16894. this.lineList[i] = [];
  16895. this.chapToolList[i] = [];
  16896. this.file[i] = [];
  16897. this.fileC[i] = [];
  16898. _chapterData[i] = c.filter((el) => {
  16899. return el.type != 12;
  16900. });
  16901. this.fileC[i] = c.filter((el) => {
  16902. return el.type == 12;
  16903. });
  16904. if (this.tType == 2) {
  16905. if (this.fileC[i].length) {
  16906. let yym1 = this.fileC[i].filter(e=>{
  16907. if(!converter(e.name).includes(converter("教案"))){
  16908. return e
  16909. }
  16910. })
  16911. this.fileC[i] = yym1
  16912. }
  16913. }
  16914. for (var j = 0; j < c.length; j++) {
  16915. if (c[j].type == 7) {
  16916. this.chapToolList[i].push(c[j]);
  16917. } else if (c[j].type == 8 || c[j].type == 14) {
  16918. this.lineList[i].push(c[j]);
  16919. } else if (c[j].type == 6) {
  16920. this.textList[i].push(c[j]);
  16921. } else {
  16922. if (
  16923. b.indexOf(
  16924. c[j].url
  16925. .split(".")
  16926. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16927. ) != -1
  16928. ) {
  16929. this.vedio[i].push(c[j]);
  16930. } else {
  16931. this.file[i].push(c[j]);
  16932. }
  16933. }
  16934. }
  16935. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16936. d.sources[0].src =
  16937. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16938. this.playerO[i] = d;
  16939. }
  16940. let taskCount = 0;
  16941. if (
  16942. _chapterData[taskCount].length &&
  16943. _chapterData[taskCount][0].type == 2
  16944. ) {
  16945. // this.showType = 0;
  16946. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  16947. } else {
  16948. if (_chapterData[taskCount].length > 0) {
  16949. let _url = _chapterData[taskCount][0].url;
  16950. if (
  16951. _chapterData[taskCount][0].type == 8 ||
  16952. _chapterData[taskCount][0].type == 14
  16953. ) {
  16954. // this.showType = 2;
  16955. if (
  16956. _url.indexOf("https://") == -1 &&
  16957. _url.indexOf("http://") == -1
  16958. ) {
  16959. _url = "https://" + _url;
  16960. }
  16961. // this.pptImgUrl1 = _url;
  16962. } else if (_chapterData[taskCount][0].type == 3) {
  16963. if (
  16964. _url
  16965. .split(".")
  16966. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16967. ) {
  16968. // this.showType = 3;
  16969. // this.pptImgUrl1 = _url;
  16970. } else if (
  16971. this.isAssetTypeAnImage(
  16972. _url
  16973. .split(".")
  16974. [_url.split(".").length - 1].toLocaleLowerCase()
  16975. )
  16976. ) {
  16977. // this.showType = 4;
  16978. // this.pptImgUrl1 = _url;
  16979. } else {
  16980. // this.showType = 2;
  16981. // this.pptImgUrl1 =
  16982. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  16983. // encodeURIComponent(_url);
  16984. }
  16985. } else if (_chapterData[taskCount][0].type == 13) {
  16986. // this.showType = 4;
  16987. // this.pptImgUrl1 = _url;
  16988. } else if (_chapterData[taskCount][0].type == 6) {
  16989. this.showType = 1;
  16990. this.text = this.textList[taskCount][0];
  16991. }
  16992. }
  16993. }
  16994. this.isClickNav = 0;
  16995. if (
  16996. !_chapterData[taskCount].length ||
  16997. _chapterData[taskCount][0].type == 12
  16998. ) {
  16999. this.isClickNav = "";
  17000. // this.showType = "";
  17001. }
  17002. if (this.tType == 2) {
  17003. _chapterData.forEach((e,i)=>{
  17004. if (e.length) {
  17005. let yym = e.filter(k=>{
  17006. if(!converter(k.name).includes(converter("教案"))){
  17007. return k
  17008. }
  17009. })
  17010. _chapterData[i] = yym
  17011. }
  17012. })
  17013. }
  17014. this.vChapterData = _chapterData;
  17015. this.$forceUpdate();
  17016. }
  17017. // else {
  17018. // this.courseDetail = res.data[0][0];
  17019. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17020. // }
  17021. let _this = this;
  17022. if (_this.timer) {
  17023. clearInterval(_this.timer);
  17024. _this.timer = null;
  17025. }
  17026. if (_this.tcid) {
  17027. _this.getCourseGroup(gindex);
  17028. } else {
  17029. _this.selectSWorks(gindex);
  17030. }
  17031. _this.selectStudent();
  17032. _this.selectSLook();
  17033. _this.getPick();
  17034. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17035. _this.setCTask();
  17036. }
  17037. if (_this.dialogVisibleGroup) {
  17038. _this.groupJson =
  17039. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17040. _this.taskCount
  17041. ].toolChoose[_this.toolindex].groupJson;
  17042. }
  17043. _this.$nextTick(() => {
  17044. setTimeout(() => {
  17045. _this.checkEva();
  17046. }, 1000);
  17047. });
  17048. _this.timer = setInterval(function () {
  17049. // _this.getCourseDetail(2);
  17050. if (_this.tcid) {
  17051. _this.getCourseGroup();
  17052. } else {
  17053. _this.selectSWorks();
  17054. }
  17055. _this.selectStudent();
  17056. _this.selectSLook();
  17057. _this.getPick();
  17058. // _this.getSplitScreenData();//获取分屏数据
  17059. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17060. _this.setCTask();
  17061. }
  17062. if (_this.dialogVisibleGroup) {
  17063. _this.groupJson =
  17064. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17065. _this.taskCount
  17066. ].toolChoose[_this.toolindex].groupJson;
  17067. }
  17068. if (_this.tType == 4 || _this.ispzType == 4) {
  17069. _this.selectPz();
  17070. }
  17071. }, 5000);
  17072. if (_this.timer2 == null) {
  17073. _this.timer2 = setInterval(()=> {
  17074. _this.getSplitScreenData();//获取分屏数据
  17075. }, 5000);
  17076. }
  17077. _this.$nextTick(function () {
  17078. setTimeout(() => {
  17079. // var a =
  17080. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17081. // document.getElementsByClassName("vedioList")[0].style.height =
  17082. // a + "px";
  17083. // document.getElementsByClassName("navBox")[0].style.height =
  17084. // a - 40 + "px";
  17085. // if (_this.vedio[_this.taskCount].length > 0) {
  17086. // _this.vedioTime = [];
  17087. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17088. // _this.vedioTime[i] = document.getElementsByClassName(
  17089. // "vjs-duration-display"
  17090. // )[i].textContent;
  17091. // }
  17092. // }
  17093. }, 1000);
  17094. });
  17095. })
  17096. .catch((err) => {
  17097. loading.close();
  17098. console.error(err);
  17099. });
  17100. },
  17101. getCourseGroup(gindex) {
  17102. let params = {
  17103. cid: this.id,
  17104. classid: this.tcid ? this.tcid : "1",
  17105. };
  17106. this.ajax
  17107. .get(this.$store.state.api + "getCourseGroup", params)
  17108. .then((res) => {
  17109. if (res.data && res.data[0].length) {
  17110. if (!this.isGroup) {
  17111. let courseGroup = JSON.parse(res.data[0][0].group);
  17112. courseGroup.group = courseGroup.group.filter((el) => {
  17113. el.works = [];
  17114. return el;
  17115. });
  17116. if (courseGroup.isopen == 2) {
  17117. this.isGroup = false;
  17118. this.selectSWorks(gindex);
  17119. return;
  17120. }
  17121. this.courseGroup = courseGroup;
  17122. let groupPerson = res.data[1];
  17123. let group = JSON.parse(res.data[0][0].group).group;
  17124. let courseGroupStudent = {};
  17125. let courseGroupStudentUid = {};
  17126. for (var i = 0; i < group.length; i++) {
  17127. courseGroupStudent[group[i].id] = [];
  17128. courseGroupStudentUid[group[i].id] = [];
  17129. for (var j = 0; j < groupPerson.length; j++) {
  17130. if (groupPerson[j].groupCid == group[i].id) {
  17131. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17132. courseGroupStudentUid[group[i].id].push(
  17133. groupPerson[j].userid
  17134. );
  17135. }
  17136. }
  17137. }
  17138. this.courseGroupStudent = courseGroupStudent;
  17139. this.courseGroupStudentUid = courseGroupStudentUid;
  17140. }
  17141. if (this.courseGroup.isopen == 2) {
  17142. this.isGroup = false;
  17143. } else {
  17144. this.isGroup = true;
  17145. }
  17146. this.selectSWorks(gindex);
  17147. } else {
  17148. this.selectSWorks(gindex);
  17149. this.isGroup = false;
  17150. }
  17151. })
  17152. .catch((err) => {
  17153. // this.$message.error("网络不佳");
  17154. console.error(err);
  17155. });
  17156. },
  17157. setOperationTime() {
  17158. let _this = this;
  17159. if (_this.opertimer) {
  17160. clearInterval(_this.opertimer);
  17161. _this.opertimer = null;
  17162. }
  17163. _this.opertimer = setInterval(() => {
  17164. _this.setoTime("600");
  17165. }, 600000);
  17166. },
  17167. setoTime(time) {
  17168. let params = [
  17169. {
  17170. uid: this.userid,
  17171. cid: this.id,
  17172. type: "2",
  17173. time: time,
  17174. },
  17175. ];
  17176. this.ajax
  17177. .post(this.$store.state.api + "addOperationTimeT2", params)
  17178. .then((res) => {})
  17179. .catch((err) => {
  17180. console.error(err);
  17181. });
  17182. },
  17183. addPz(type, content) {
  17184. if (type == "1" && this.pzConText == "") {
  17185. this.$message.error("评论不能为空!");
  17186. return;
  17187. }
  17188. let params = [
  17189. {
  17190. cid: this.id,
  17191. uid: this.userid,
  17192. s: this.courseType,
  17193. t: this.taskCount,
  17194. c: type == "1" ? this.pzConText : content,
  17195. type: type,
  17196. },
  17197. ];
  17198. this.ajax
  17199. .post(this.$store.state.api + "addPz2", params)
  17200. .then((res) => {
  17201. this.$message({
  17202. message: "添加成功",
  17203. type: "success",
  17204. });
  17205. this.pzConText = "";
  17206. this.addPzDialog = false;
  17207. this.selectPz();
  17208. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17209. })
  17210. .catch((err) => {
  17211. this.$message.error("添加失败");
  17212. console.error(err);
  17213. });
  17214. },
  17215. setReplyIndex(id, i) {
  17216. this.replyIndex = i;
  17217. this.replyPid = id;
  17218. this.replyDialogVisible = true;
  17219. },
  17220. addHf() {
  17221. if (this.reply == "") {
  17222. this.$message.error("回复不能为空!");
  17223. return;
  17224. }
  17225. let params = [
  17226. {
  17227. cid: this.id,
  17228. uid: this.userid,
  17229. s: this.courseType,
  17230. t: this.taskCount,
  17231. type: "1",
  17232. ct: 2,
  17233. pid: this.replyPid,
  17234. c: this.reply,
  17235. },
  17236. ];
  17237. this.ajax
  17238. .post(this.$store.state.api + "addHf", params)
  17239. .then((res) => {
  17240. this.reply = "";
  17241. this.$message({
  17242. message: "回复成功",
  17243. type: "success",
  17244. });
  17245. this.replyDialogVisible = false;
  17246. this.selectPz();
  17247. })
  17248. .catch((err) => {
  17249. this.$message.error("回复失败");
  17250. console.error(err);
  17251. });
  17252. },
  17253. deletePz(id) {
  17254. this.$confirm("确定删除此评论吗?", "提示", {
  17255. confirmButtonText: "确定",
  17256. cancelButtonText: "取消",
  17257. type: "warning",
  17258. })
  17259. .then(() => {
  17260. let params = [
  17261. {
  17262. id: id,
  17263. },
  17264. ];
  17265. this.ajax
  17266. .post(this.$store.state.api + "deletePz", params)
  17267. .then((res) => {
  17268. this.$message({
  17269. message: "删除成功",
  17270. type: "success",
  17271. });
  17272. this.selectPz();
  17273. })
  17274. .catch((err) => {
  17275. this.$message.error("网络异常");
  17276. console.error(err);
  17277. });
  17278. })
  17279. .catch(() => {});
  17280. },
  17281. deleteReply(id) {
  17282. this.$confirm("确定删除此回复吗?", "提示", {
  17283. confirmButtonText: "确定",
  17284. cancelButtonText: "取消",
  17285. type: "warning",
  17286. })
  17287. .then(() => {
  17288. let params = [
  17289. {
  17290. id: id,
  17291. },
  17292. ];
  17293. this.ajax
  17294. .post(this.$store.state.api + "deleteReply", params)
  17295. .then((res) => {
  17296. this.$message({
  17297. message: "删除成功",
  17298. type: "success",
  17299. });
  17300. this.selectPz();
  17301. })
  17302. .catch((err) => {
  17303. this.$message.error("网络异常");
  17304. console.error(err);
  17305. });
  17306. })
  17307. .catch(() => {});
  17308. },
  17309. setPz() {
  17310. if (this.ispzType == 4) {
  17311. this.ispzType = 0;
  17312. this.pzDialog = false;
  17313. return;
  17314. }
  17315. this.ispzType = 4;
  17316. this.pzDialog = true;
  17317. this.selectPz();
  17318. },
  17319. selectPz() {
  17320. let params = {
  17321. cid: this.id,
  17322. s: this.courseType,
  17323. t: this.taskCount,
  17324. type: this.pzStype,
  17325. uid: this.userid,
  17326. };
  17327. this.ajax
  17328. .get(this.$store.state.api + "selectPzListType", params)
  17329. .then((res) => {
  17330. this.pzList = res.data[0];
  17331. var a = res.data[1];
  17332. for (var i = 0; i < a.length; i++) {
  17333. for (var j = 0; j < this.pzList.length; j++) {
  17334. if (!this.pzList[j].hfList) {
  17335. this.pzList[j].hfList = [];
  17336. }
  17337. if (a[i].pid == this.pzList[j].id) {
  17338. this.pzList[j].hfList.push(a[i]);
  17339. }
  17340. }
  17341. }
  17342. })
  17343. .catch((err) => {
  17344. console.error(err);
  17345. });
  17346. },
  17347. // selectHf() {
  17348. // let params = {
  17349. // cid: this.id,
  17350. // s: this.courseType,
  17351. // t: this.taskCount,
  17352. // };
  17353. // this.ajax
  17354. // .get(this.$store.state.api + "selectHfList", params)
  17355. // .then((res) => {
  17356. // var a = res.data[0];
  17357. // for (var i = 0; i < a.length; i++) {
  17358. // for (var j = 0; j < this.pzList.length; j++) {
  17359. // if (!this.pzList[i].hfList) {
  17360. // this.pzList[i].hfList = [];
  17361. // }
  17362. // if (a[i].pid == this.pzList[j].id) {
  17363. // this.pzList[i].hfList.push(a[i]);
  17364. // }
  17365. // }
  17366. // }
  17367. // })
  17368. // .catch((err) => {
  17369. // console.error(err);
  17370. // });
  17371. // },
  17372. updateSLook() {
  17373. let params = {
  17374. sopen: this.sIsOpen == false ? 1 : 2,
  17375. cid: this.id,
  17376. };
  17377. this.ajax
  17378. .get(this.$store.state.api + "updateCourseSLook", params)
  17379. .then((res) => {
  17380. if (this.sIsOpen == true) {
  17381. this.$message({
  17382. message: "权限设置成功",
  17383. type: "success",
  17384. });
  17385. } else {
  17386. this.$message({
  17387. message: "权限关闭成功",
  17388. type: "success",
  17389. });
  17390. }
  17391. })
  17392. .catch((err) => {
  17393. console.error(err);
  17394. });
  17395. },
  17396. updateFollow() {
  17397. let params = [
  17398. {
  17399. sopen: this.IsFollow == false ? 1 : 2,
  17400. cid: this.id,
  17401. },
  17402. ];
  17403. this.ajax
  17404. .post(this.$store.state.api + "updateCourseFollow", params)
  17405. .then((res) => {
  17406. if (this.IsFollow == true) {
  17407. this.$message({
  17408. message: "开启成功",
  17409. type: "success",
  17410. });
  17411. } else {
  17412. this.$message({
  17413. message: "关闭成功",
  17414. type: "success",
  17415. });
  17416. }
  17417. this.setCTask();
  17418. })
  17419. .catch((err) => {
  17420. console.error(err);
  17421. });
  17422. },
  17423. setCTask() {
  17424. let params = [
  17425. {
  17426. sopen: this.courseType + "-" + this.taskCount,
  17427. cid: this.id,
  17428. },
  17429. ];
  17430. this.ajax
  17431. .post(this.$store.state.api + "updateCourseFollowC", params)
  17432. .then((res) => {})
  17433. .catch((err) => {
  17434. console.error(err);
  17435. });
  17436. },
  17437. updateLookOpen() {
  17438. let params = [
  17439. {
  17440. sopen: this.IsLookOpen == false ? 1 : 2,
  17441. cid: this.id,
  17442. },
  17443. ];
  17444. this.ajax
  17445. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17446. .then((res) => {
  17447. if (this.IsLookOpen == true) {
  17448. // if (this.courseType != 0 && this.taskCount != 0) {
  17449. // this.openTask(0, 0, "0-0");
  17450. // }
  17451. this.$message({
  17452. message: "权限设置成功",
  17453. type: "success",
  17454. });
  17455. } else {
  17456. this.$message({
  17457. message: "权限关闭成功",
  17458. type: "success",
  17459. });
  17460. }
  17461. this.getCourseState(2);
  17462. })
  17463. .catch((err) => {
  17464. console.error(err);
  17465. });
  17466. },
  17467. selectSLook() {
  17468. let params = {
  17469. cid: this.id,
  17470. };
  17471. this.ajax
  17472. .get(this.$store.state.api + "selectCourseSLook", params)
  17473. .then((res) => {
  17474. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17475. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17476. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17477. if (!this.IsLookOpen) {
  17478. this.setNavList();
  17479. }
  17480. this.getCourseState(1);
  17481. if ((this.IsFollow && this.tType == 2)) {
  17482. this.setContent2(false);
  17483. let _followC = res.data[0][0].followC.split("-");
  17484. if (
  17485. this.courseType != _followC[0] ||
  17486. this.taskCount != _followC[1]
  17487. ) {
  17488. this.navList[this.courseType].isOpen = false;
  17489. this.courseType = _followC[0];
  17490. this.navList[this.courseType].isOpen = true;
  17491. this.taskCount = parseInt(_followC[1]);
  17492. this.navId = res.data[0][0].followC;
  17493. document.scrollingElement.scrollTop = 0;
  17494. this.getCourseDetail(2);
  17495. }
  17496. }
  17497. })
  17498. .catch((err) => {
  17499. console.error(err);
  17500. });
  17501. },
  17502. setNavList() {
  17503. if (this.navList.length == 0) {
  17504. this.navList = [];
  17505. var copyList = [];
  17506. for (var l = 0; l < this.chapInfoList.length; l++) {
  17507. var q = this.chapInfoList[l].dyName;
  17508. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17509. var e;
  17510. copyList.push({
  17511. dyName: q,
  17512. isOpen: l === 0 ? true : false,
  17513. task: [],
  17514. });
  17515. for (var r = 0; r < w.length; r++) {
  17516. e = w[r].task;
  17517. if (this.chapInfoList[l].easy == 1) {
  17518. copyList[l].task.push({
  17519. taskName: q,
  17520. id: l + "-" + r,
  17521. isLook: w[r].isLook,
  17522. isOpen: r === 0 ? true : false,
  17523. tool: [],
  17524. });
  17525. } else {
  17526. copyList[l].task.push({
  17527. taskName: e,
  17528. id: l + "-" + r,
  17529. isLook: w[r].isLook,
  17530. isOpen: r === 0 ? true : false,
  17531. tool: [],
  17532. });
  17533. }
  17534. var t = w[r].toolChoose;
  17535. for (var k = 0; k < t.length; k++) {
  17536. var tool = t[k].tool[0];
  17537. copyList[l].task[r].tool.push({
  17538. tool: tool,
  17539. isTool: false,
  17540. });
  17541. }
  17542. // this.navId = this.navId ? this.navId : l + "-" + r;
  17543. // this.navId = l + "-" + r;
  17544. }
  17545. }
  17546. this.navList = copyList;
  17547. this.navList[0].isOpen = false;
  17548. this.navList[this.courseType].isOpen = true;
  17549. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17550. } else {
  17551. this.setNavList2();
  17552. }
  17553. },
  17554. setNavList2() {
  17555. for (var l = 0; l < this.chapInfoList.length; l++) {
  17556. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17557. for (var r = 0; r < w.length; r++) {
  17558. this.navList[l].task[r].isLook = w[r].isLook;
  17559. }
  17560. }
  17561. if (
  17562. this.IsLookOpen &&
  17563. !this.navList[this.courseType].task[this.taskCount].isLook
  17564. ) {
  17565. this.openTask(0, 0, "0-0");
  17566. }
  17567. this.$forceUpdate();
  17568. },
  17569. getCourseState(type) {
  17570. let params = {
  17571. cid: this.id,
  17572. };
  17573. this.ajax
  17574. .get(this.$store.state.api + "getCourseState", params)
  17575. .then((res) => {
  17576. if (res.data[0].length > 0) {
  17577. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17578. }
  17579. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17580. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  17581. this.setNavList();
  17582. this.$forceUpdate();
  17583. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17584. this.addCourseState(2);
  17585. } else {
  17586. this.addCourseState(1);
  17587. }
  17588. })
  17589. .catch((err) => {
  17590. console.error(err);
  17591. });
  17592. },
  17593. addCourseState(type,val = '') {
  17594. let _state = val ? val : this.chapInfoList;
  17595. // this.courseType this.taskCount
  17596. if (type == 1 || type == 2) {
  17597. for (var i = 0; i < _state.length; i++) {
  17598. let el = _state[i].chapterInfo[0].taskJson;
  17599. for (var j = 0; j < el.length; j++) {
  17600. // if (i == 0 && j == 0) {
  17601. // el[j].isLook = true;
  17602. // } else {
  17603. // el[j].isLook = false;
  17604. // }
  17605. if (
  17606. this.courseType > i ||
  17607. (this.courseType == i && this.taskCount + 1 > j)
  17608. ) {
  17609. el[j].isLook = true;
  17610. } else {
  17611. el[j].isLook = false;
  17612. }
  17613. }
  17614. }
  17615. }
  17616. let params = [
  17617. {
  17618. cid: this.id,
  17619. state: JSON.stringify(_state),
  17620. },
  17621. ];
  17622. this.ajax
  17623. .post(
  17624. this.$store.state.api +
  17625. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17626. params
  17627. )
  17628. .then((res) => {
  17629. if (this.IsLookOpen) {
  17630. this.setNavList();
  17631. }
  17632. if (type == 3 && type == 2) {
  17633. this.getCourseState(1);
  17634. }
  17635. })
  17636. .catch((err) => {
  17637. console.error(err);
  17638. });
  17639. },
  17640. getHomeWork() {
  17641. let params = {
  17642. cid: this.id,
  17643. stage: this.courseType,
  17644. task: this.taskCount,
  17645. uid: this.userid,
  17646. };
  17647. this.ajax
  17648. .get(this.$store.state.api + "selectWork", params)
  17649. .then((res) => {
  17650. if (res.data[0].length > 0) {
  17651. this.studyJuri = JSON.parse(res.data[0][0].content);
  17652. this.isNoHomeWork = true;
  17653. }
  17654. })
  17655. .catch((err) => {
  17656. console.error(err);
  17657. });
  17658. },
  17659. isAssetTypeAnImage(ext) {
  17660. return (
  17661. [
  17662. "png",
  17663. "jpg",
  17664. "jpeg",
  17665. "bmp",
  17666. "gif",
  17667. "webp",
  17668. "psd",
  17669. "svg",
  17670. "tiff",
  17671. ].indexOf(ext) !== -1
  17672. );
  17673. },
  17674. switchVideo(media) {
  17675. this.playerO = {};
  17676. this.playerOptions.poster = "";
  17677. this.playerOptions.sources[0].src = media;
  17678. this.playerO = this.playerOptions;
  17679. },
  17680. onPlayerPlay() {},
  17681. onPlayerTimeupdate(player) {
  17682. let gklog = player.cache_.currentTime; //当前播放的秒数
  17683. let a = player.cache_.duration; //视频的总时长
  17684. let gklog2 = parseInt(gklog);
  17685. // if(gklog2 == '3'){
  17686. // player.pause()
  17687. // setTimeout(()=>{
  17688. // player.currentTime(gklog2+1)
  17689. // player.play()
  17690. // },1000)
  17691. // }
  17692. console.log(" onPlayerTimeupdate!", gklog);
  17693. console.log(" onPlayerTimeupdate!", gklog2);
  17694. },
  17695. lookVedio(u, i) {
  17696. this.isClickNav = "";
  17697. // this.playerOptions.sources[0].src = u;
  17698. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17699. d.sources[0].src = u;
  17700. this.playerO[0] = d;
  17701. this.showType = 0;
  17702. // this.isClickNav = "video" + i;
  17703. this.isClickNav = i;
  17704. this.$forceUpdate();
  17705. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17706. },
  17707. lookText(i, t) {
  17708. this.isClickNav = "";
  17709. // this.text = this.textList[i][t];
  17710. this.text = this.vChapterData[i][t];
  17711. // this.dialogVisible1 = true;
  17712. this.showType = 1;
  17713. // this.isClickNav = "text" + t;
  17714. this.isClickNav = t;
  17715. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17716. },
  17717. lookTools(i, t) {
  17718. this.chapTools = this.chapToolList[i][t];
  17719. this.dialogVisible2 = true;
  17720. },
  17721. async openFile(f) {
  17722. this.pptImgUrl = "";
  17723. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17724. if (
  17725. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17726. -1
  17727. ) {
  17728. let _uuurl = await this.checkLink(f);
  17729. console.log(_uuurl)
  17730. this.pptImgUrl =
  17731. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17732. this.showPDF = false;
  17733. this.dialogVisible3 = true;
  17734. } else if (
  17735. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17736. ) {
  17737. this.pptImgUrl = f;
  17738. this.showPDF = true;
  17739. this.dialogVisible3 = true;
  17740. }
  17741. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17742. },
  17743. openTable(f) {
  17744. this.tableJson = JSON.parse(f.works);
  17745. this.dialogVisibleTable2 = true;
  17746. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17747. },
  17748. openWord(f) {
  17749. this.tableJson = JSON.parse(f.works);
  17750. this.dialogVisibleTable3 = true;
  17751. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17752. },
  17753. doUrl(url, i) {
  17754. this.isClickNav = "";
  17755. this.pptImgUrl1 = "";
  17756. this.showType = 2;
  17757. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17758. url = "https://" + url;
  17759. }
  17760. this.pptImgUrl1 = "";
  17761. setTimeout(() => {
  17762. this.pptImgUrl1 = url;
  17763. }, 500);
  17764. // this.isClickNav = "line" + i;
  17765. this.isClickNav = i;
  17766. this.$forceUpdate();
  17767. },
  17768. checkPhoto(f, i) {
  17769. this.showType = 4;
  17770. this.pptImgUrl1 = f.url;
  17771. this.isClickNav = i;
  17772. this.$forceUpdate();
  17773. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17774. },
  17775. async downFile(f, i) {
  17776. this.isClickNav = "";
  17777. this.pptImgUrl1 = "";
  17778. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17779. if (
  17780. a.indexOf(
  17781. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17782. ) != -1
  17783. ) {
  17784. let _uuurl = await this.checkLink(f.url);
  17785. console.log(_uuurl)
  17786. this.pptImgUrl1 =
  17787. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17788. // this.dialogVisible3 = true;
  17789. this.showType = 2;
  17790. } else if (
  17791. this.isAssetTypeAnImage(
  17792. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17793. )
  17794. ) {
  17795. this.showType = 4;
  17796. this.pptImgUrl1 = f.url;
  17797. } else if (
  17798. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17799. "PDF"
  17800. ) {
  17801. this.pptImgUrl1 = f.url;
  17802. // this.dialogVisible3 = true;
  17803. this.showType = 3;
  17804. } else {
  17805. window.open(this.file[i].url);
  17806. }
  17807. // this.isClickNav = "word" + i;
  17808. this.isClickNav = i;
  17809. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17810. },
  17811. downFileList(i) {
  17812. window.open(this.noImgList[i].url);
  17813. },
  17814. openAddWork() {
  17815. this.dialogVisible = true;
  17816. },
  17817. addBzWorks() {
  17818. let params = [
  17819. {
  17820. uid: this.userid,
  17821. cid: this.id,
  17822. stage: this.courseType,
  17823. task: this.taskCount,
  17824. tool: this.toolindex,
  17825. content: JSON.stringify(this.eScore),
  17826. type: 6,
  17827. },
  17828. ];
  17829. this.ajax
  17830. .post(this.$store.state.api + "addCourseWorks", params)
  17831. .then((res) => {
  17832. this.$message({
  17833. message: "提交成功",
  17834. type: "success",
  17835. });
  17836. this.eScore = { eBzText: "", eStar: [] };
  17837. this.studentEvalDialogVisible = false;
  17838. this.selectSWorks();
  17839. })
  17840. .catch((err) => {
  17841. this.$message.error("提交失败");
  17842. console.error(err);
  17843. });
  17844. },
  17845. addBzWorksTeacher() {
  17846. let params = [
  17847. {
  17848. uid: this.sStudent.userid,
  17849. cid: this.id,
  17850. stage: this.courseType,
  17851. task: this.taskCount,
  17852. tool: this.toolindex,
  17853. content: JSON.stringify(this.eScore),
  17854. type: 6,
  17855. },
  17856. ];
  17857. this.ajax
  17858. .post(this.$store.state.api + "addCourseWorks", params)
  17859. .then((res) => {
  17860. this.$message({
  17861. message: "提交成功",
  17862. type: "success",
  17863. });
  17864. this.eScore = { eBzText: "", eStar: [] };
  17865. this.studentEvalDialogVisibleTeacher = false;
  17866. this.selectSWorks();
  17867. })
  17868. .catch((err) => {
  17869. this.$message.error("提交失败");
  17870. console.error(err);
  17871. });
  17872. },
  17873. addStudentAsk() {
  17874. if (!this.radio.length) {
  17875. this.$message.error("请选择选项");
  17876. return;
  17877. }
  17878. for (var i = 0; i < this.askJson.askCount; i++) {
  17879. if (
  17880. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17881. (this.radio[i] !== 0 && !this.radio[i])
  17882. ) {
  17883. this.$message.error("请选择选项");
  17884. return;
  17885. }
  17886. }
  17887. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17888. let params = [
  17889. {
  17890. uid: this.userid,
  17891. cid: this.id,
  17892. stage: this.courseType,
  17893. task: this.taskCount,
  17894. tool: this.toolindex,
  17895. content: JSON.stringify(this.askList),
  17896. type: 2,
  17897. },
  17898. ];
  17899. this.ajax
  17900. .post(this.$store.state.api + "addCourseWorks", params)
  17901. .then((res) => {
  17902. this.$message({
  17903. message: "提交成功",
  17904. type: "success",
  17905. });
  17906. this.askList = [];
  17907. this.dialogVisible5 = false;
  17908. this.selectStudent();
  17909. this.selectSWorks();
  17910. this.selectSLook();
  17911. })
  17912. .catch((err) => {
  17913. this.$message.error("提交失败");
  17914. console.error(err);
  17915. });
  17916. },
  17917. addStudentAskTeacher() {
  17918. if (!this.radio.length) {
  17919. this.$message.error("请选择选项");
  17920. return;
  17921. }
  17922. for (var i = 0; i < this.askJson.askCount; i++) {
  17923. if (
  17924. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17925. (this.radio[i] !== 0 && !this.radio[i])
  17926. ) {
  17927. this.$message.error("请选择选项");
  17928. return;
  17929. }
  17930. }
  17931. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17932. let params = [
  17933. {
  17934. uid: this.sStudent.userid,
  17935. cid: this.id,
  17936. stage: this.courseType,
  17937. task: this.taskCount,
  17938. tool: this.toolindex,
  17939. content: JSON.stringify(this.askList),
  17940. type: 2,
  17941. },
  17942. ];
  17943. this.ajax
  17944. .post(this.$store.state.api + "addCourseWorks", params)
  17945. .then((res) => {
  17946. this.$message({
  17947. message: "提交成功",
  17948. type: "success",
  17949. });
  17950. this.askList = [];
  17951. this.dialogVisible5Teacher = false;
  17952. this.selectStudent();
  17953. this.selectSWorks();
  17954. this.selectSLook();
  17955. })
  17956. .catch((err) => {
  17957. this.$message.error("提交失败");
  17958. console.error(err);
  17959. });
  17960. },
  17961. addStudentTest() {
  17962. if (!this.radio.length) {
  17963. this.$message.error("请选择选项");
  17964. return;
  17965. }
  17966. for (var i = 0; i < this.testJson.testCount; i++) {
  17967. if (
  17968. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17969. (this.radio[i] !== 0 && !this.radio[i])
  17970. ) {
  17971. this.$message.error("请选择选项");
  17972. return;
  17973. }
  17974. }
  17975. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17976. let params = [
  17977. {
  17978. uid: this.userid,
  17979. cid: this.id,
  17980. stage: this.courseType,
  17981. task: this.taskCount,
  17982. tool: this.toolindex,
  17983. content: JSON.stringify(this.askList),
  17984. type: 8,
  17985. },
  17986. ];
  17987. this.ajax
  17988. .post(this.$store.state.api + "addCourseWorks", params)
  17989. .then((res) => {
  17990. this.$message({
  17991. message: "提交成功",
  17992. type: "success",
  17993. });
  17994. this.askList = [];
  17995. this.dialogVisibleChoice = false;
  17996. this.selectStudent();
  17997. this.selectSWorks();
  17998. this.selectSLook();
  17999. })
  18000. .catch((err) => {
  18001. this.$message.error("提交失败");
  18002. console.error(err);
  18003. });
  18004. },
  18005. addStudentTestTeacher() {
  18006. if (!this.radio.length) {
  18007. this.$message.error("请选择选项");
  18008. return;
  18009. }
  18010. for (var i = 0; i < this.testJson.testCount; i++) {
  18011. if (
  18012. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18013. (this.radio[i] !== 0 && !this.radio[i])
  18014. ) {
  18015. this.$message.error("请选择选项");
  18016. return;
  18017. }
  18018. }
  18019. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18020. let params = [
  18021. {
  18022. uid: this.sStudent.userid,
  18023. cid: this.id,
  18024. stage: this.courseType,
  18025. task: this.taskCount,
  18026. tool: this.toolindex,
  18027. content: JSON.stringify(this.askList),
  18028. type: 8,
  18029. },
  18030. ];
  18031. this.ajax
  18032. .post(this.$store.state.api + "addCourseWorks", params)
  18033. .then((res) => {
  18034. this.$message({
  18035. message: "提交成功",
  18036. type: "success",
  18037. });
  18038. this.askList = [];
  18039. this.dialogVisibleChoiceTeacher = false;
  18040. this.selectStudent();
  18041. this.selectSWorks();
  18042. this.selectSLook();
  18043. })
  18044. .catch((err) => {
  18045. this.$message.error("提交失败");
  18046. console.error(err);
  18047. });
  18048. },
  18049. addWork() {
  18050. if (this.studyJuri[0].content == "") {
  18051. this.$message.error("请将信息填写完整");
  18052. return;
  18053. } else if (this.studyJuri[0].cover.length == 0) {
  18054. this.$message.error("请将信息填写完整");
  18055. return;
  18056. } else if (this.studyJuri[0].upVedio.length == 0) {
  18057. this.$message.error("请将信息填写完整");
  18058. return;
  18059. }
  18060. if (this.isNoHomeWork) {
  18061. this.$confirm(
  18062. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18063. "提示",
  18064. {
  18065. confirmButtonText: "确定",
  18066. cancelButtonText: "取消",
  18067. type: "warning",
  18068. }
  18069. )
  18070. .then(() => {
  18071. let params = [
  18072. {
  18073. uid: this.userid,
  18074. cid: this.id,
  18075. stage: this.courseType,
  18076. task: this.taskCount,
  18077. content: JSON.stringify(this.studyJuri),
  18078. },
  18079. ];
  18080. this.ajax
  18081. .post(this.$store.state.api + "addWorks", params)
  18082. .then((res) => {
  18083. this.$message({
  18084. message: "提交成功",
  18085. type: "success",
  18086. });
  18087. this.isNoHomeWork = true;
  18088. this.dialogVisible = false;
  18089. })
  18090. .catch((err) => {
  18091. this.$message.error("提交失败");
  18092. console.error(err);
  18093. });
  18094. })
  18095. .catch(() => {});
  18096. } else {
  18097. let params = [
  18098. {
  18099. uid: this.userid,
  18100. cid: this.id,
  18101. stage: this.courseType,
  18102. task: this.taskCount,
  18103. content: JSON.stringify(this.studyJuri),
  18104. },
  18105. ];
  18106. this.ajax
  18107. .post(this.$store.state.api + "addWorks", params)
  18108. .then((res) => {
  18109. this.$message({
  18110. message: "提交成功",
  18111. type: "success",
  18112. });
  18113. this.isNoHomeWork = true;
  18114. this.dialogVisible = false;
  18115. })
  18116. .catch((err) => {
  18117. this.$message.error("提交失败");
  18118. console.error(err);
  18119. });
  18120. }
  18121. },
  18122. selectCount() {
  18123. let params = {
  18124. cid: this.id,
  18125. chid: this.courseType,
  18126. uid: this.userid,
  18127. };
  18128. this.ajax
  18129. .get(this.$store.state.api + "selectToolsCount", params)
  18130. .then((res) => {
  18131. for (var i = 0; i < res.data[0].length; i++) {
  18132. if (res.data[0][i].tools == 1) {
  18133. this.wbCount = res.data[0][i].count;
  18134. } else if (res.data[0][i].tools == 2) {
  18135. this.wordCount = res.data[0][i].count;
  18136. } else if (res.data[0][i].tools == 3) {
  18137. this.mindCount = res.data[0][i].count;
  18138. } else if (res.data[0][i].tools == 4) {
  18139. this.askCount = res.data[0][i].count;
  18140. } else if (res.data[0][i].tools == 6) {
  18141. this.noteCount = res.data[0][i].count;
  18142. } else if (res.data[0][i].tools == 7) {
  18143. this.mindNetWorkCount = res.data[0][i].count;
  18144. } else if (res.data[0][i].tools == 8) {
  18145. this.libraryCount = res.data[0][i].count;
  18146. } else if (res.data[0][i].tools == 16) {
  18147. this.workCount = res.data[0][i].count;
  18148. } else if (res.data[0][i].tools == 10) {
  18149. this.timeCount = res.data[0][i].count;
  18150. } else if (res.data[0][i].tools == 15) {
  18151. this.answerCount = res.data[0][i].count;
  18152. } else if (res.data[0][i].tools == 18) {
  18153. this.trainCount = res.data[0][i].count;
  18154. }
  18155. }
  18156. })
  18157. .catch((err) => {
  18158. console.error(err);
  18159. });
  18160. },
  18161. openTools(t, i, index, c, sName,id) {
  18162. var z = JSON.parse(c);
  18163. this.noteName = sName;
  18164. if (t == 4) {
  18165. this.radio = [];
  18166. this.isAnswer = false;
  18167. let b = z[0].anwer;
  18168. this.radio = b;
  18169. this.askJson = z[0].askJson;
  18170. this.isAnswer = true;
  18171. this.dialogVisible5 = true;
  18172. } else if (t == 45) {
  18173. this.radio = [];
  18174. this.isAnswer = false;
  18175. let b = z[0].anwer;
  18176. this.radio = b;
  18177. this.testJson = z[0].testJson;
  18178. this.isAnswer = true;
  18179. this.dialogVisibleChoice = true;
  18180. }else if(t == 69){
  18181. this.oldEnglishJson1 = {}
  18182. this.oldEnglishJson = {}
  18183. this.englishList1 = {}
  18184. this.newEngIndex = -1;
  18185. this.isNoUserid = false;
  18186. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18187. .toolChoose[i].englishList;
  18188. this.oldEnglishJson = z;
  18189. this.engWid = id;
  18190. this.newEnglishList = { engTitle:"",engText:"" }
  18191. this.newEnglishList1 = []
  18192. this.selectEngC(id,z);
  18193. }else if(t == 62){
  18194. this.videoType = 1;
  18195. this.videoJson = {};
  18196. this.videoJson = JSON.parse(c);
  18197. // this.videoJson =
  18198. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18199. // index
  18200. // ].toolChoose[i].videoJson;
  18201. this.dialogVisibleVideo = true;
  18202. }
  18203. // else if (t == 15) {
  18204. // this.answerQ = "";
  18205. // this.questionAnswer = "";
  18206. // this.answerQ = z[0].answerTitle;
  18207. // this.questionAnswer = z[0].answer;
  18208. // this.answerDialogVisible = true;
  18209. // }
  18210. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18211. },
  18212. fastText(p, t) {
  18213. if (t == 1) {
  18214. this.commentText += p;
  18215. } else {
  18216. this.eScore.eBzText += p;
  18217. }
  18218. },
  18219. addTools(t, i, index) {
  18220. var a = 0;
  18221. // this.taskCount = index;
  18222. this.toolindex = i;
  18223. if (t == 1) {
  18224. if (this.wbCount > 0) {
  18225. this.updateCount(this.wbCount, t);
  18226. } else {
  18227. this.wbCount++;
  18228. a = this.wbCount;
  18229. this.toolsCount(a, t);
  18230. }
  18231. window.parent.postMessage(
  18232. {
  18233. tools: "1",
  18234. cid: this.id,
  18235. stage: this.courseType,
  18236. task: this.taskCount,
  18237. tool: i,
  18238. },
  18239. "*"
  18240. );
  18241. } else if (t == 2) {
  18242. if (this.wordCount > 0) {
  18243. this.updateCount(this.wordCount, t);
  18244. } else {
  18245. this.wordCount++;
  18246. a = this.wordCount;
  18247. this.toolsCount(a, t);
  18248. }
  18249. window.parent.postMessage({ tools: "2" }, "*");
  18250. } else if (t == 3) {
  18251. if (this.mindCount > 0) {
  18252. this.updateCount(this.mindCount, t);
  18253. } else {
  18254. this.mindCount++;
  18255. a = this.mindCount;
  18256. this.toolsCount(a, t);
  18257. }
  18258. window.parent.postMessage(
  18259. {
  18260. tools: "3",
  18261. cid: this.id,
  18262. stage: this.courseType,
  18263. task: this.taskCount,
  18264. tool: i,
  18265. },
  18266. "*"
  18267. );
  18268. } else if (t == 4) {
  18269. this.radio = [];
  18270. this.noteName = "";
  18271. this.isAnswer = false;
  18272. if (this.askCount > 0) {
  18273. this.updateCount(this.askCount, t);
  18274. } else {
  18275. this.askCount++;
  18276. a = this.askCount;
  18277. this.toolsCount(a, t);
  18278. }
  18279. if (!this.dialogVisible2) {
  18280. this.askJson.askJson =
  18281. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18282. index
  18283. ].toolChoose[i].askJson;
  18284. this.askJson.askTitle =
  18285. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18286. index
  18287. ].toolChoose[i].askTitle;
  18288. this.askJson.askCount =
  18289. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18290. index
  18291. ].toolChoose[i].askCount;
  18292. } else {
  18293. this.askJson.askJson = this.chapTools.askJson.askJson;
  18294. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18295. this.askJson.askCount = this.chapTools.askJson.askCount;
  18296. }
  18297. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18298. if (this.askJson.askJson[k].type == "2") {
  18299. this.radio.push([]);
  18300. } else {
  18301. this.radio.push("");
  18302. }
  18303. }
  18304. this.dialogVisible5 = true;
  18305. // window.parent.postMessage({ tools: "4" }, "*");
  18306. } else if (t == 45) {
  18307. this.noteName = "";
  18308. this.radio = [];
  18309. this.isAnswer = false;
  18310. if (this.askCount > 0) {
  18311. this.updateCount(this.askCount, t);
  18312. } else {
  18313. this.askCount++;
  18314. a = this.askCount;
  18315. this.toolsCount(a, t);
  18316. }
  18317. this.testJson =
  18318. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18319. index
  18320. ].toolChoose[i].testJson;
  18321. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18322. if (this.testJson.testJson[k].type == "2") {
  18323. this.radio.push([]);
  18324. } else {
  18325. this.radio.push("");
  18326. }
  18327. }
  18328. this.dialogVisibleChoice = true;
  18329. // window.parent.postMessage({ tools: "4" }, "*");
  18330. } else if (t == 5) {
  18331. if (this.scoreCount > 0) {
  18332. this.updateCount(this.scoreCount, t);
  18333. } else {
  18334. this.scoreCount++;
  18335. a = this.scoreCount;
  18336. this.toolsCount(a, t);
  18337. }
  18338. this.dialogVisible4 = true;
  18339. // window.parent.postMessage({ tools: "5" }, "*");
  18340. } else if (t == 6) {
  18341. if (this.noteCount > 0) {
  18342. this.updateCount(this.noteCount, t);
  18343. } else {
  18344. this.noteCount++;
  18345. a = this.noteCount;
  18346. this.toolsCount(a, t);
  18347. }
  18348. window.parent.postMessage(
  18349. {
  18350. tools: "6",
  18351. cid: this.id,
  18352. stage: this.courseType,
  18353. task: this.taskCount,
  18354. tool: i,
  18355. },
  18356. "*"
  18357. );
  18358. } else if (t == 7) {
  18359. if (this.mindNetWorkCount > 0) {
  18360. this.updateCount(this.mindNetWorkCount, t);
  18361. } else {
  18362. this.mindNetWorkCount++;
  18363. a = this.mindNetWorkCount;
  18364. this.toolsCount(a, t);
  18365. }
  18366. window.parent.postMessage(
  18367. {
  18368. tools: "7",
  18369. cid: this.id,
  18370. stage: this.courseType,
  18371. task: this.taskCount,
  18372. tool: i,
  18373. },
  18374. "*"
  18375. );
  18376. } else if (t == 16) {
  18377. if (this.workCount > 0) {
  18378. this.updateCount(this.workCount, t);
  18379. } else {
  18380. this.workCount++;
  18381. a = this.workCount;
  18382. this.toolsCount(a, t);
  18383. }
  18384. this.dialogVisible = true;
  18385. } else if (t == 50) {
  18386. if (this.tType == 2) {
  18387. this.$message.error("不支持学生使用");
  18388. return;
  18389. }
  18390. this.plworkFile = [];
  18391. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18392. if (!this.uploadCid) {
  18393. this.$message.error(
  18394. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18395. );
  18396. return;
  18397. }
  18398. // this.uploadCid =
  18399. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18400. // index
  18401. // ].toolChoose[i].uploadJson[0];
  18402. this.selectUploadStudent(2);
  18403. } else if (t == 8) {
  18404. if (this.libraryCount > 0) {
  18405. this.updateCount(this.libraryCount, t);
  18406. } else {
  18407. this.libraryCount++;
  18408. a = this.libraryCount;
  18409. this.toolsCount(a, t);
  18410. }
  18411. window.parent.postMessage({ tools: "8" }, "*");
  18412. } else if (t == 17) {
  18413. if (this.libraryCount > 0) {
  18414. this.updateCount(this.libraryCount, t);
  18415. } else {
  18416. this.libraryCount++;
  18417. a = this.libraryCount;
  18418. this.toolsCount(a, t);
  18419. }
  18420. window.parent.postMessage({ tools: "17" }, "*");
  18421. } else if (t == 18) {
  18422. if (this.trainCount > 0) {
  18423. this.updateCount(this.trainCount, t);
  18424. } else {
  18425. this.trainCount++;
  18426. a = this.trainCount;
  18427. this.toolsCount(a, t);
  18428. }
  18429. window.parent.postMessage({ tools: "18" }, "*");
  18430. } else if (t == 10) {
  18431. if (this.timeCount > 0) {
  18432. this.updateCount(this.timeCount, t);
  18433. } else {
  18434. this.timeCount++;
  18435. a = this.timeCount;
  18436. this.toolsCount(a, t);
  18437. }
  18438. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18439. .taskJson[index].toolChoose[i].preTime
  18440. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18441. .toolChoose[i].preTime
  18442. : "";
  18443. this.timeDialogVisible = true;
  18444. } else if (t == 15) {
  18445. this.answerQ = "";
  18446. this.questionAnswer = "";
  18447. if (this.answerCount > 0) {
  18448. this.updateCount(this.answerCount, t);
  18449. } else {
  18450. this.answerCount++;
  18451. a = this.answerCount;
  18452. this.toolsCount(a, t);
  18453. }
  18454. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18455. .taskJson[index].toolChoose[i].answerQ
  18456. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18457. .toolChoose[i].answerQ
  18458. : "";
  18459. this.answerDialogVisible = true;
  18460. } else if (t == 21) {
  18461. window.parent.postMessage({ tools: "21" }, "*");
  18462. } else if (t == 22) {
  18463. window.parent.postMessage({ tools: "22" }, "*");
  18464. } else if (t == 23) {
  18465. window.parent.postMessage({ tools: "23" }, "*");
  18466. } else if (t == 24) {
  18467. window.parent.postMessage({ tools: "24" }, "*");
  18468. } else if (t == 25) {
  18469. window.parent.postMessage({ tools: "25" }, "*");
  18470. } else if (t == 31) {
  18471. window.parent.postMessage({ tools: "31" }, "*");
  18472. } else if (t == 28) {
  18473. window.parent.postMessage({ tools: "28" }, "*");
  18474. } else if (t == 37) {
  18475. window.parent.postMessage({ tools: "37" }, "*");
  18476. } else if (t == 38) {
  18477. window.parent.postMessage({ tools: "38" }, "*");
  18478. } else if (t == 39) {
  18479. window.parent.postMessage({ tools: "39" }, "*");
  18480. } else if (t == 32) {
  18481. window.parent.postMessage({ tools: "32" }, "*");
  18482. } else if (t == 66) {
  18483. window.parent.postMessage({ tools: "66" }, "*");
  18484. } else if (t == 67) {
  18485. window.parent.postMessage({ tools: "67" }, "*");
  18486. } else if (t == 68) {
  18487. window.parent.postMessage({ tools: "68" }, "*");
  18488. } else if (t == 57) {
  18489. // window.parent.postMessage({ tools: "57" }, "*");
  18490. window.parent.postMessage(
  18491. {
  18492. tools: "57u",
  18493. cid: this.id,
  18494. stage: this.courseType,
  18495. task: this.taskCount,
  18496. tool: i,
  18497. },
  18498. "*"
  18499. );
  18500. } else if (t == 58) {
  18501. window.parent.postMessage({ tools: "58" }, "*");
  18502. } else if (t == 59) {
  18503. window.parent.postMessage({ tools: "59" }, "*");
  18504. } else if (t == 60) {
  18505. window.parent.postMessage({ tools: "60" }, "*");
  18506. } else if (t == 61) {
  18507. window.parent.postMessage({ tools: "61" }, "*");
  18508. } else if (t == 63) {
  18509. window.parent.postMessage({ tools: "63" }, "*");
  18510. } else if (t == 71) {
  18511. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  18512. // this.$message.error("该工具不可使用");
  18513. // return
  18514. // }
  18515. window.parent.postMessage({ tools: "71" }, "*");
  18516. } else if (t == 72) {
  18517. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  18518. .taskJson[index].toolChoose[i].appJson
  18519. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18520. .toolChoose[i].appJson
  18521. : "";
  18522. if(!item || !item.url){
  18523. this.$message.error("应用连接为空, 请到课程管理中添加");
  18524. return;
  18525. }
  18526. window.parent.postMessage({ tools: "72", data: item }, "*");
  18527. // window.open(item.url, "_blank");
  18528. } else if (t == 69) {
  18529. if (this.worksStudent[i].length) {
  18530. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18531. if (this.userid == this.worksStudent[i][k].userid) {
  18532. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18533. break;
  18534. } else {
  18535. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18536. }
  18537. }
  18538. } else {
  18539. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18540. }
  18541. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18542. .taskJson[index].toolChoose[i].englishList
  18543. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18544. .toolChoose[i].englishList
  18545. : {};
  18546. this.englishToolIndex = i;
  18547. this.myAnList = this.myAnswerList1;
  18548. this.engDialogVisible = true;
  18549. } else if (t == 70) {
  18550. if (this.worksStudent[i].length) {
  18551. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18552. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18553. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18554. break;
  18555. } else {
  18556. this.englishVoiceJsonWork = [];
  18557. }
  18558. }
  18559. } else {
  18560. this.englishVoiceJsonWork = [];
  18561. }
  18562. let englishVoiceJson = {}
  18563. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18564. .taskJson[index].toolChoose[i].englishVoiceJson
  18565. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18566. .toolChoose[i].englishVoiceJson
  18567. : {};
  18568. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18569. this.EnglishVoiceDialog = true;
  18570. } else if (t == 65) {
  18571. if (this.tType == 2) {
  18572. this.$message.error("不支持学生使用");
  18573. return;
  18574. }
  18575. this.uploadCid = this.tcid;
  18576. if (!this.uploadCid) {
  18577. this.$message.error(
  18578. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18579. );
  18580. return;
  18581. }
  18582. this.selectPickStudent();
  18583. } else if (t == 26) {
  18584. window.parent.postMessage(
  18585. {
  18586. tools: "26",
  18587. cid: this.id,
  18588. stage: this.courseType,
  18589. task: this.taskCount,
  18590. tool: i,
  18591. },
  18592. "*"
  18593. );
  18594. } else if (t == 40) {
  18595. if (this.evalCount > 0) {
  18596. this.updateCount(this.evalCount, t);
  18597. } else {
  18598. this.evalCount++;
  18599. a = this.evalCount;
  18600. this.toolsCount(a, t);
  18601. }
  18602. this.eScore = { eBzText: "", eStar: [] };
  18603. if (this.worksStudent[i].length) {
  18604. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18605. if (this.userid == this.worksStudent[i][k].userid) {
  18606. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18607. this.rateJson =
  18608. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18609. index
  18610. ].toolChoose[i].rateJson;
  18611. break;
  18612. } else {
  18613. this.rateJson =
  18614. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18615. index
  18616. ].toolChoose[i].rateJson;
  18617. }
  18618. }
  18619. } else {
  18620. this.rateJson =
  18621. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18622. index
  18623. ].toolChoose[i].rateJson;
  18624. }
  18625. this.isStar = false;
  18626. this.studentEvalDialogVisible = true;
  18627. } else if (t == 41) {
  18628. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18629. .taskJson[index].toolChoose[i].selectJson
  18630. ? JSON.parse(
  18631. JSON.stringify(
  18632. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18633. index
  18634. ].toolChoose[i].selectJson
  18635. )
  18636. )
  18637. : { url: "", select: [], answer: [] };
  18638. if (this.worksStudent[i].length) {
  18639. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18640. if (this.userid == this.worksStudent[i][k].userid) {
  18641. var a = this.worksStudent[i][k].works.split(",");
  18642. for (var ki = 0; ki < a.length; ki++) {
  18643. a[ki] = parseInt(a[ki]);
  18644. }
  18645. this.selectAnswer = {
  18646. answer: a,
  18647. stu: this.worksStudent[i][k].sName,
  18648. };
  18649. break;
  18650. } else {
  18651. this.selectAnswer = { answer: [], stu: "" };
  18652. }
  18653. }
  18654. } else {
  18655. this.selectAnswer = { answer: [], stu: "" };
  18656. }
  18657. this.isSelect = false;
  18658. this.dialogVisibleSelect = true;
  18659. } else if (t == 44) {
  18660. window.parent.postMessage({ tools: "44" }, "*");
  18661. } else if (t == 47) {
  18662. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18663. .taskJson[index].toolChoose[i].sentenceList
  18664. ? JSON.parse(
  18665. JSON.stringify(
  18666. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18667. index
  18668. ].toolChoose[i].sentenceList
  18669. )
  18670. )
  18671. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18672. for (var q = 0; q < this.sentenceList.length; q++) {
  18673. this.sentenceList[q].chooseSenList = [];
  18674. this.sentenceList[q].addChangeSen = [];
  18675. this.sentenceList[q].addChangeSen = JSON.parse(
  18676. JSON.stringify(this.sentenceList[q].addSentence)
  18677. );
  18678. this.sentenceList[q].chooseSenList.length =
  18679. this.sentenceList[q].rightAnswer.length;
  18680. }
  18681. this.dialogVisibleSentence = true;
  18682. } else if (t == 48) {
  18683. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18684. .taskJson[index].toolChoose[i].tableJson
  18685. ? JSON.parse(
  18686. JSON.stringify(
  18687. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18688. index
  18689. ].toolChoose[i].tableJson
  18690. )
  18691. )
  18692. : { text: "" };
  18693. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18694. if (this.worksStudent[i].length) {
  18695. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18696. if (this.userid == this.worksStudent[i][k].userid) {
  18697. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18698. break;
  18699. }
  18700. }
  18701. }
  18702. this.dialogVisibleTable = true;
  18703. } else if (t == 52) {
  18704. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18705. .taskJson[index].toolChoose[i].wordJson
  18706. ? JSON.parse(
  18707. JSON.stringify(
  18708. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18709. index
  18710. ].toolChoose[i].wordJson
  18711. )
  18712. )
  18713. : { text: "" };
  18714. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18715. if (this.worksStudent[i].length) {
  18716. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18717. if (this.userid == this.worksStudent[i][k].userid) {
  18718. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18719. break;
  18720. }
  18721. }
  18722. }
  18723. this.dialogVisibleWord = true;
  18724. } else if (t == 49) {
  18725. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18726. return
  18727. }
  18728. this.groupJson =
  18729. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18730. index
  18731. ].toolChoose[i].groupJson;
  18732. this.islock = this.groupJson.islock == 1 ? true : false;
  18733. this.dialogVisibleGroup = true;
  18734. } else if (t == 62) {
  18735. this.videoType = 0;
  18736. this.videoJson = {};
  18737. this.videoJson =
  18738. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18739. index
  18740. ].toolChoose[i].videoJson;
  18741. this.dialogVisibleVideo = true;
  18742. }
  18743. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18744. },
  18745. teacherWorkSubmit(t, i, index, s) {
  18746. this.sStudent = s;
  18747. this.toolindex = i;
  18748. this.sTool = t;
  18749. if (this.tType !== "1" && this.tType !== "4") {
  18750. return;
  18751. }
  18752. if (t == 16 || t == 32 || t == 50) {
  18753. this.dialogVisibleWorks = true;
  18754. } else if (t == 15) {
  18755. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18756. .taskJson[index].toolChoose[i].answerQ
  18757. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18758. .toolChoose[i].answerQ
  18759. : "";
  18760. this.questionAnswer = "";
  18761. this.answerDialogVisibleTeacher = true; //问答
  18762. } else if (t == 52) {
  18763. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18764. .taskJson[index].toolChoose[i].wordJson
  18765. ? JSON.parse(
  18766. JSON.stringify(
  18767. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18768. index
  18769. ].toolChoose[i].wordJson
  18770. )
  18771. )
  18772. : { text: "" };
  18773. if (this.worksStudent[i].length) {
  18774. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18775. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18776. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18777. break;
  18778. }
  18779. }
  18780. }
  18781. this.dialogVisibleWordTeacher = true; //文档
  18782. } else if (t == 4) {
  18783. this.radio = [];
  18784. this.noteName = "";
  18785. this.isAnswer = false;
  18786. if (this.askCount > 0) {
  18787. this.updateCount(this.askCount, t);
  18788. } else {
  18789. this.askCount++;
  18790. a = this.askCount;
  18791. this.toolsCount(a, t);
  18792. }
  18793. if (!this.dialogVisible2) {
  18794. this.askJson.askJson =
  18795. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18796. index
  18797. ].toolChoose[i].askJson;
  18798. this.askJson.askTitle =
  18799. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18800. index
  18801. ].toolChoose[i].askTitle;
  18802. this.askJson.askCount =
  18803. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18804. index
  18805. ].toolChoose[i].askCount;
  18806. } else {
  18807. this.askJson.askJson = this.chapTools.askJson.askJson;
  18808. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18809. this.askJson.askCount = this.chapTools.askJson.askCount;
  18810. }
  18811. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18812. if (this.askJson.askJson[k].type == "2") {
  18813. this.radio.push([]);
  18814. } else {
  18815. this.radio.push("");
  18816. }
  18817. }
  18818. this.dialogVisible5Teacher = true;
  18819. } else if (t == 45) {
  18820. this.noteName = "";
  18821. this.radio = [];
  18822. this.isAnswer = false;
  18823. if (this.askCount > 0) {
  18824. this.updateCount(this.askCount, t);
  18825. } else {
  18826. this.askCount++;
  18827. a = this.askCount;
  18828. this.toolsCount(a, t);
  18829. }
  18830. this.testJson =
  18831. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18832. index
  18833. ].toolChoose[i].testJson;
  18834. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18835. if (this.testJson.testJson[k].type == "2") {
  18836. this.radio.push([]);
  18837. } else {
  18838. this.radio.push("");
  18839. }
  18840. }
  18841. this.dialogVisibleChoiceTeacher = true;
  18842. } else if (t == 41) {
  18843. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18844. .taskJson[index].toolChoose[i].selectJson
  18845. ? JSON.parse(
  18846. JSON.stringify(
  18847. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18848. index
  18849. ].toolChoose[i].selectJson
  18850. )
  18851. )
  18852. : { url: "", select: [], answer: [] };
  18853. if (this.worksStudent[i].length) {
  18854. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18855. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18856. var a = this.worksStudent[i][k].works.split(",");
  18857. for (var ki = 0; ki < a.length; ki++) {
  18858. a[ki] = parseInt(a[ki]);
  18859. }
  18860. this.selectAnswer = {
  18861. answer: a,
  18862. stu: this.worksStudent[i][k].sName,
  18863. };
  18864. break;
  18865. } else {
  18866. this.selectAnswer = { answer: [], stu: "" };
  18867. }
  18868. }
  18869. } else {
  18870. this.selectAnswer = { answer: [], stu: "" };
  18871. }
  18872. this.isSelect = false;
  18873. this.dialogVisibleSelectTeacher = true;
  18874. } else if (t == 47) {
  18875. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18876. .taskJson[index].toolChoose[i].sentenceList
  18877. ? JSON.parse(
  18878. JSON.stringify(
  18879. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18880. index
  18881. ].toolChoose[i].sentenceList
  18882. )
  18883. )
  18884. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18885. for (var q = 0; q < this.sentenceList.length; q++) {
  18886. this.sentenceList[q].chooseSenList = [];
  18887. this.sentenceList[q].addChangeSen = [];
  18888. this.sentenceList[q].addChangeSen = JSON.parse(
  18889. JSON.stringify(this.sentenceList[q].addSentence)
  18890. );
  18891. this.sentenceList[q].chooseSenList.length =
  18892. this.sentenceList[q].rightAnswer.length;
  18893. }
  18894. this.dialogVisibleSentenceTeacher = true;
  18895. } else if (t == 48) {
  18896. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18897. .taskJson[index].toolChoose[i].tableJson
  18898. ? JSON.parse(
  18899. JSON.stringify(
  18900. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18901. index
  18902. ].toolChoose[i].tableJson
  18903. )
  18904. )
  18905. : { text: "" };
  18906. if (this.worksStudent[i].length) {
  18907. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18908. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18909. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18910. break;
  18911. }
  18912. }
  18913. }
  18914. this.dialogVisibleTableTeacher = true;
  18915. } else if (t == 40) {
  18916. if (this.evalCount > 0) {
  18917. this.updateCount(this.evalCount, t);
  18918. } else {
  18919. this.evalCount++;
  18920. a = this.evalCount;
  18921. this.toolsCount(a, t);
  18922. }
  18923. this.eScore = { eBzText: "", eStar: [] };
  18924. if (this.worksStudent[i].length) {
  18925. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18926. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18927. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18928. this.rateJson =
  18929. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18930. index
  18931. ].toolChoose[i].rateJson;
  18932. break;
  18933. } else {
  18934. this.rateJson =
  18935. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18936. index
  18937. ].toolChoose[i].rateJson;
  18938. }
  18939. }
  18940. } else {
  18941. this.rateJson =
  18942. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18943. index
  18944. ].toolChoose[i].rateJson;
  18945. }
  18946. this.isStar = false;
  18947. this.studentEvalDialogVisibleTeacher = true;
  18948. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18949. window.parent.postMessage(
  18950. {
  18951. tools: t + "teacher",
  18952. cid: this.id,
  18953. stage: this.courseType,
  18954. task: this.taskCount,
  18955. tool: i,
  18956. student: this.sStudent,
  18957. },
  18958. "*"
  18959. );
  18960. }
  18961. },
  18962. openCocoPi(tool, i, uid, uname) {
  18963. let student = {
  18964. userid: uid,
  18965. student: uname,
  18966. };
  18967. if (tool == 57) {
  18968. window.parent.postMessage(
  18969. {
  18970. tools: tool + "teacher",
  18971. cid: this.id,
  18972. stage: this.courseType,
  18973. task: this.taskCount,
  18974. tool: i,
  18975. student: student,
  18976. },
  18977. "*"
  18978. );
  18979. }
  18980. },
  18981. setRightAnswer(s, i, j) {
  18982. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18983. if (
  18984. this.sentenceList[i].chooseSenList[q] == undefined ||
  18985. this.sentenceList[i].chooseSenList[q] == ""
  18986. ) {
  18987. this.sentenceList[i].chooseSenList[q] = s;
  18988. this.sentenceList[i].addChangeSen[j] = "";
  18989. break;
  18990. }
  18991. }
  18992. this.$forceUpdate();
  18993. },
  18994. returnCard(r, i, j) {
  18995. var a = this.sentenceList[i].addSentence.indexOf(r);
  18996. this.sentenceList[i].chooseSenList[j] = "";
  18997. this.sentenceList[i].addChangeSen[a] = r;
  18998. this.$forceUpdate();
  18999. },
  19000. // addSentenceTool() {
  19001. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19002. // this.taskCount
  19003. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19004. // this.sentenceList = [
  19005. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19006. // ];
  19007. // this.dialogVisibleSentence = false;
  19008. // },
  19009. toolsCount(a, t) {
  19010. let params = {
  19011. cid: this.id,
  19012. chid: this.courseType,
  19013. uid: this.userid,
  19014. tid: t,
  19015. count: a,
  19016. };
  19017. this.ajax
  19018. .get(this.$store.state.api + "insertToolsCount", params)
  19019. .then((res) => {
  19020. this.selectCount();
  19021. })
  19022. .catch((err) => {
  19023. console.error(err);
  19024. });
  19025. },
  19026. updateCount(c, t) {
  19027. c++;
  19028. let params = {
  19029. cid: this.id,
  19030. chid: this.courseType,
  19031. uid: this.userid,
  19032. tid: t,
  19033. count: c,
  19034. };
  19035. this.ajax
  19036. .get(this.$store.state.api + "updateToolsCount", params)
  19037. .then((res) => {
  19038. this.selectCount();
  19039. })
  19040. .catch((err) => {
  19041. console.error(err);
  19042. });
  19043. },
  19044. checkEva() {
  19045. if (this.evalua != "") {
  19046. for (var i = 0; i < this.evaJuri.length; i++) {
  19047. if (this.evalua == this.evaJuri[i].id) {
  19048. this.eTitle = this.evaJuri[i].title;
  19049. this.eJson = JSON.parse(this.evaJuri[i].content);
  19050. }
  19051. }
  19052. this.$forceUpdate();
  19053. setTimeout(() => {
  19054. this.setMindData();
  19055. }, 0);
  19056. }
  19057. },
  19058. selectEva() {
  19059. let params = {
  19060. oid: this.oid,
  19061. };
  19062. this.ajax
  19063. .get(this.$store.state.api + "selectAllEvaluation", params)
  19064. .then((res) => {
  19065. this.evaJuri = res.data[0];
  19066. })
  19067. .catch((err) => {
  19068. console.error(err);
  19069. });
  19070. },
  19071. setMindData() {
  19072. this.data.data = [];
  19073. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19074. let _eJson = Object.keys(this.eJson);
  19075. let _e = this.eJson;
  19076. for (let i = 0; i < _eJson.length; i++) {
  19077. let element = _e[_eJson[i]];
  19078. this.data.data.push({
  19079. id: element.id,
  19080. parentid: "root",
  19081. topic: element.name,
  19082. });
  19083. let _eJsonc = Object.keys(element.child);
  19084. let _e2 = element.child;
  19085. for (let j = 0; j < _eJsonc.length; j++) {
  19086. let _ec = _e2[_eJsonc[j]];
  19087. this.data.data.push({
  19088. id: _ec.id,
  19089. parentid: element.id,
  19090. topic: _ec.name,
  19091. });
  19092. let _eJsonz = Object.keys(_ec.child);
  19093. let _e3 = _ec.child;
  19094. for (let z = 0; z < _eJsonz.length; z++) {
  19095. let _ez = _e3[_eJsonz[z]];
  19096. this.data.data.push({
  19097. id: _ez.id,
  19098. parentid: _ec.id,
  19099. topic: _ez.name,
  19100. });
  19101. }
  19102. }
  19103. }
  19104. this.$forceUpdate();
  19105. },
  19106. checkFileFull(type, url) {
  19107. this.fullDialogVisible = true;
  19108. this.fulltype = type;
  19109. this.fullUrl = url;
  19110. },
  19111. async checkFileFull1(t, f) {
  19112. this.fullDialogVisible = true;
  19113. if (t == 6) {
  19114. this.fulltype = 1;
  19115. this.fullUrl = JSON.parse(JSON.stringify(f));
  19116. } else if (t == 8) {
  19117. this.fulltype = 2;
  19118. this.fullUrl = f.url;
  19119. } else if (
  19120. t == 3 &&
  19121. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19122. "PDF"
  19123. ) {
  19124. this.fulltype = 3;
  19125. this.fullUrl = f.url;
  19126. } else if (t == 3) {
  19127. this.fulltype = 2;
  19128. let _uuurl = await this.checkLink(f.url);
  19129. console.log(_uuurl)
  19130. this.fullUrl =
  19131. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19132. }
  19133. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19134. },
  19135. openSname(n, id, i, uid) {
  19136. this.snameWid = id;
  19137. this.worksSName = n;
  19138. this.worksSid = uid == n ? "" : uid;
  19139. this.toolindex = i;
  19140. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19141. if (!this.uploadCid) {
  19142. this.$message.error(
  19143. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19144. );
  19145. return;
  19146. }
  19147. this.selectUploadStudent(1);
  19148. },
  19149. updateName() {
  19150. let params = {
  19151. n: this.worksSName,
  19152. cid: this.snameWid,
  19153. };
  19154. this.ajax
  19155. .get(this.$store.state.api + "updateCourseWorksName", params)
  19156. .then((res) => {
  19157. this.$message({
  19158. message: "修改成功",
  19159. type: "success",
  19160. });
  19161. this.dialogVisibleSname = false;
  19162. this.getCourseDetail(2);
  19163. this.snameWid = "";
  19164. this.worksSName = "";
  19165. })
  19166. .catch((err) => {
  19167. console.error(err);
  19168. });
  19169. },
  19170. downloadFile2(f) {
  19171. // const loading = this.$loading.service({
  19172. // background: "rgba(255, 255, 255, 0.7)",
  19173. // target: document.body,
  19174. // text: "文件加载中...",
  19175. // });
  19176. // let url2 = f.url;
  19177. // let _url2 = "";
  19178. // if (
  19179. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19180. // ) {
  19181. // _url2 = url2.split(
  19182. // "https://view.officeapps.live.com/op/view.aspx?src="
  19183. // )[1];
  19184. // } else {
  19185. // _url2 = url2;
  19186. // }
  19187. // let params = {
  19188. // url: _url2,
  19189. // name: f.name,
  19190. // };
  19191. // this.ajax
  19192. // .get(this.$store.state.api + "download", params)
  19193. // .then((res) => {
  19194. // loading.close();
  19195. // let content = res.data.data.data;
  19196. // let ab = new ArrayBuffer(content.length);
  19197. // let view = new Uint8Array(ab);
  19198. // for (var i = 0; i < content.length; ++i) {
  19199. // view[i] = content[i];
  19200. // }
  19201. // let elink = document.createElement("a");
  19202. // elink.download = f.name;
  19203. // elink.style.display = "none";
  19204. // let blob = new Blob([ab], {
  19205. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19206. // });
  19207. // elink.href = URL.createObjectURL(blob);
  19208. // document.body.appendChild(elink);
  19209. // elink.click();
  19210. // document.body.removeChild(elink);
  19211. // })
  19212. // .catch((err) => {
  19213. // loading.close();
  19214. // console.error(err);
  19215. // });
  19216. var credentials = {
  19217. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19218. secretAccessKey: "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",
  19219. }; //秘钥形式的登录上传
  19220. window.AWS.config.update(credentials);
  19221. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19222. let url2 = f.url;
  19223. let _url2 = "";
  19224. if (
  19225. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19226. ) {
  19227. _url2 = url2.split(
  19228. "https://view.officeapps.live.com/op/view.aspx?src="
  19229. )[1];
  19230. } else {
  19231. _url2 = url2;
  19232. }
  19233. let _this = this;
  19234. _this.downLoading = true
  19235. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19236. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19237. var params = {
  19238. Bucket: "ccrb",
  19239. Key: name
  19240. };
  19241. s3.getObject(params, function (err, data) {
  19242. _this.downLoading = false
  19243. if (err) console.log(err, err.stack); // an error occurred
  19244. else {
  19245. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19246. let a = document.createElement("a");
  19247. a.name = f.name;
  19248. a.href = url;
  19249. a.download = f.name;
  19250. a.click();
  19251. console.log(data);
  19252. } // sxuccessful response
  19253. });
  19254. return;
  19255. let url = f.url;
  19256. let _url = "";
  19257. if (
  19258. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19259. ) {
  19260. _url = url.split(
  19261. "https://view.officeapps.live.com/op/view.aspx?src="
  19262. )[1];
  19263. } else {
  19264. _url = url;
  19265. }
  19266. _this.downLoading = true
  19267. // const loading = _this.$loading.service({
  19268. // background: "rgba(255, 255, 255, 0.7)",
  19269. // target: document.body,
  19270. // text: "文件加载中...",
  19271. // });
  19272. let x = new XMLHttpRequest();
  19273. x.open("GET", _url, true);
  19274. x.responseType = "blob";
  19275. x.onload = function () {
  19276. _this.downLoading = false
  19277. // loading.close();
  19278. let url = window.URL.createObjectURL(new Blob([x.response]));
  19279. let a = document.createElement("a");
  19280. a.name = f.name;
  19281. a.href = url;
  19282. a.download = f.name;
  19283. a.click();
  19284. };
  19285. x.send();
  19286. },
  19287. downloadFile(url) {
  19288. var credentials = {
  19289. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19290. secretAccessKey: "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",
  19291. }; //秘钥形式的登录上传
  19292. window.AWS.config.update(credentials);
  19293. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19294. let url2 = url;
  19295. let _url2 = "";
  19296. if (
  19297. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19298. ) {
  19299. _url2 = url2.split(
  19300. "https://view.officeapps.live.com/op/view.aspx?src="
  19301. )[1];
  19302. } else {
  19303. _url2 = url2;
  19304. }
  19305. const loading2 = this.$loading.service({
  19306. background: "rgba(255, 255, 255, 0.7)",
  19307. target: document.body,
  19308. text: "文件加载中...",
  19309. });
  19310. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19311. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19312. var params = {
  19313. Bucket: "ccrb",
  19314. Key: name
  19315. };
  19316. s3.getObject(params, function (err, data) {
  19317. loading2.close();
  19318. if (err) console.log(err, err.stack); // an error occurred
  19319. else {
  19320. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19321. let a = document.createElement("a");
  19322. a.name = name;
  19323. a.href = url;
  19324. a.download = name;
  19325. a.click();
  19326. console.log(data);
  19327. } // sxuccessful response
  19328. });
  19329. return;
  19330. let _this = this;
  19331. let _url = "";
  19332. if (
  19333. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19334. ) {
  19335. _url = url.split(
  19336. "https://view.officeapps.live.com/op/view.aspx?src="
  19337. )[1];
  19338. } else {
  19339. _url = url;
  19340. }
  19341. const x = new XMLHttpRequest();
  19342. x.open("GET", _url, true);
  19343. x.responseType = "blob";
  19344. // this.downLoading = true
  19345. const loading = _this.$loading.service({
  19346. background: "rgba(255, 255, 255, 0.7)",
  19347. target: document.body,
  19348. text: "文件加载中...",
  19349. });
  19350. // _this.$message.success("文件下载中...");
  19351. x.onload = function (e) {
  19352. this.downLoading = false
  19353. loading.close();
  19354. let content = x.response;
  19355. let elink = document.createElement("a");
  19356. elink.download = decodeURI(
  19357. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19358. );
  19359. elink.style.display = "none";
  19360. let blob = new Blob([content]);
  19361. elink.href = URL.createObjectURL(blob);
  19362. document.body.appendChild(elink);
  19363. elink.click();
  19364. document.body.removeChild(elink);
  19365. };
  19366. x.send();
  19367. },
  19368. openLine(url) {
  19369. window.open(url);
  19370. },
  19371. resize() {
  19372. if (document.getElementsByClassName("box_course").length) {
  19373. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19374. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19375. if (this.showType == 2 || this.showType == 3) {
  19376. document.getElementsByClassName("navBox")[0].style.height =
  19377. a - 40 + 0+ "px";
  19378. } else {
  19379. document.getElementsByClassName("navBox")[0].style.height =
  19380. a - 40 + "px";
  19381. }
  19382. }
  19383. this.Stbodywidth =
  19384. document.getElementsByClassName("student_body").length &&
  19385. document.getElementsByClassName("student_body")[0].offsetWidth;
  19386. },
  19387. closeDraw() {
  19388. this.bg = null;
  19389. this.drawShow = false;
  19390. },
  19391. showPicturePaint(url) {
  19392. let params = {
  19393. img: url,
  19394. };
  19395. this.ajax
  19396. .get(this.$store.state.api + "imgToBase64", params)
  19397. .then((res) => {
  19398. this.drawShow = true;
  19399. this.bg = res.data[0].img;
  19400. })
  19401. .catch((err) => {
  19402. console.error(err);
  19403. });
  19404. },
  19405. addImgDraw(base64) {
  19406. let file = { name: "批注图.png" };
  19407. let img = this.dataUrlToFile(base64, file);
  19408. this.beforeUpload1(img, 5);
  19409. },
  19410. addImgDrawImG(url) {
  19411. // console.log(url);
  19412. let params = [
  19413. {
  19414. wid: this.commentDetail.wid,
  19415. img: url,
  19416. },
  19417. ];
  19418. this.ajax
  19419. .post(this.$store.state.api + "updateCourseWorks", params)
  19420. .then((res) => {
  19421. this.$message({
  19422. message: "提交成功",
  19423. type: "success",
  19424. });
  19425. this.drawShow = false;
  19426. this.bg = "";
  19427. this.selectSWorks();
  19428. this.selectStudent();
  19429. })
  19430. .catch((err) => {
  19431. this.$message.error("提交失败");
  19432. console.error(err);
  19433. });
  19434. },
  19435. deletePicturePaint() {
  19436. this.$confirm("确定删除此批注吗?", "提示", {
  19437. confirmButtonText: "确定",
  19438. cancelButtonText: "取消",
  19439. type: "warning",
  19440. })
  19441. .then(() => {
  19442. let params = [
  19443. {
  19444. wid: this.commentDetail.wid,
  19445. img: "",
  19446. },
  19447. ];
  19448. this.ajax
  19449. .post(this.$store.state.api + "updateCourseWorks", params)
  19450. .then((res) => {
  19451. this.$message({
  19452. message: "删除成功",
  19453. type: "success",
  19454. });
  19455. this.selectSWorks();
  19456. this.selectStudent();
  19457. })
  19458. .catch((err) => {
  19459. this.$message.error("删除失败");
  19460. console.error(err);
  19461. });
  19462. })
  19463. .catch(() => {});
  19464. },
  19465. getAudioVideo(constraintsData) {
  19466. if (navigator.mediaDevices === undefined) {
  19467. navigator.mediaDevices = {};
  19468. }
  19469. if (navigator.mediaDevices.getUserMedia === undefined) {
  19470. navigator.mediaDevices.getUserMedia = function (constraints) {
  19471. // 首先,如果有getUserMedia的话,就获得它
  19472. var getUserMedia =
  19473. navigator.getUserMedia ||
  19474. navigator.webkitGetUserMedia ||
  19475. navigator.mozGetUserMedia ||
  19476. navigator.msGetUserMedia;
  19477. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19478. if (!getUserMedia) {
  19479. return Promise.reject({ code: 404 });
  19480. }
  19481. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19482. return new Promise(function (resolve, reject) {
  19483. getUserMedia.call(navigator, constraints, resolve, reject);
  19484. });
  19485. };
  19486. }
  19487. return navigator.mediaDevices.getUserMedia(constraintsData);
  19488. },
  19489. /**
  19490. * 开始录制
  19491. */
  19492. startRecording(callback) {
  19493. let _function = (screenStream) => {
  19494. this.addStreamStopListener(screenStream, () => {
  19495. console.log("流停止监听");
  19496. this.stopRecording();
  19497. this.$emit("streamStop", {});
  19498. // this.stopRecording();
  19499. });
  19500. var options = {
  19501. type: "video",
  19502. mimeType: "video/webm",
  19503. disableLogs: false,
  19504. getNativeBlob: false, // enable it for longer recordings
  19505. ignoreMutedMedia: false,
  19506. };
  19507. // this.video.srcObject = screenStream;
  19508. this.recorder = RecordRTC(screenStream, options);
  19509. this.recorder.startRecording();
  19510. this.recorder.screen = screenStream;
  19511. this.videoStart = true;
  19512. // callback(true);
  19513. };
  19514. this.getAudioVideo({ audio: true })
  19515. .then((res) => {
  19516. this.captureScreen(_function, true);
  19517. console.log("已点击允许,开启成功");
  19518. })
  19519. .catch((err) => {
  19520. // console.log('浏览器不支持,请更换浏览器')
  19521. // } else {
  19522. this.captureScreen(_function, false);
  19523. console.log("请检查是否存在麦克风");
  19524. });
  19525. },
  19526. /**
  19527. * 停止录制
  19528. */
  19529. stopRecording(callback) {
  19530. this.recorder.stopRecording(() => {
  19531. // this.video.src = this.video.srcObject = null;
  19532. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19533. const url = URL.createObjectURL(this.recorder.getBlob());
  19534. const a = document.createElement("a"); //this.fileName+
  19535. let videoFile = new File(
  19536. [this.recorder.getBlob()],
  19537. this.courseDetail.title + "录屏.mp4",
  19538. {
  19539. type: "video/mp4",
  19540. }
  19541. );
  19542. let downloadUrl = URL.createObjectURL(videoFile);
  19543. if(this.$refs.classRoomHelperRef){
  19544. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19545. }
  19546. document.body.appendChild(a);
  19547. a.style.display = "none";
  19548. a.href = url;
  19549. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19550. a.click();
  19551. this.recorder.screen.stop();
  19552. this.recorder.destroy();
  19553. this.recorder = null;
  19554. this.videoStart = false;
  19555. // callback(false);
  19556. });
  19557. },
  19558. //初始化
  19559. captureScreen(callback, type) {
  19560. if (navigator.getDisplayMedia) {
  19561. //录制结束,文件下载
  19562. navigator
  19563. .getDisplayMedia({
  19564. video: true,
  19565. })
  19566. .then((screenStream) => {
  19567. if (type) {
  19568. navigator.mediaDevices
  19569. .getUserMedia({ audio: true })
  19570. .then((mic) => {
  19571. screenStream.addTrack(mic.getTracks()[0]);
  19572. callback(screenStream);
  19573. });
  19574. } else {
  19575. callback(screenStream);
  19576. }
  19577. })
  19578. .catch(function (error) {
  19579. console.log("error", error);
  19580. });
  19581. } else if (navigator.mediaDevices.getDisplayMedia) {
  19582. navigator.mediaDevices
  19583. .getDisplayMedia({
  19584. video: true,
  19585. })
  19586. .then((screenStream) => {
  19587. if (type) {
  19588. navigator.mediaDevices
  19589. .getUserMedia({ audio: true })
  19590. .then((mic) => {
  19591. screenStream.addTrack(mic.getTracks()[0]);
  19592. callback(screenStream);
  19593. });
  19594. } else {
  19595. callback(screenStream);
  19596. }
  19597. })
  19598. .catch(function (error) {
  19599. console.log("error", error);
  19600. });
  19601. } else {
  19602. var error = "getDisplayMedia API are not supported in this browser.";
  19603. console.log("error", error);
  19604. alert(error);
  19605. }
  19606. },
  19607. //流监听
  19608. addStreamStopListener(stream, callback) {
  19609. stream.addEventListener(
  19610. "ended",
  19611. function () {
  19612. callback();
  19613. callback = function () {};
  19614. },
  19615. false
  19616. );
  19617. stream.addEventListener(
  19618. "inactive",
  19619. function () {
  19620. callback();
  19621. callback = function () {};
  19622. },
  19623. false
  19624. );
  19625. stream.getTracks().forEach(function (track) {
  19626. track.addEventListener(
  19627. "ended",
  19628. function () {
  19629. callback();
  19630. callback = function () {};
  19631. },
  19632. false
  19633. );
  19634. track.addEventListener(
  19635. "inactive",
  19636. function () {
  19637. callback();
  19638. callback = function () {};
  19639. },
  19640. false
  19641. );
  19642. });
  19643. },
  19644. updateGroup() {
  19645. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19646. this.dialogVisibleGroup2 = true;
  19647. },
  19648. numberPan() {
  19649. if (
  19650. /[^\d]/.test(this.groupJson.number) ||
  19651. this.groupJson.number < 2 ||
  19652. this.groupJson.number > 10
  19653. ) {
  19654. this.$message.error("请输入2-10的数字");
  19655. this.groupJson.number = "";
  19656. }
  19657. },
  19658. updateGroupJson() {
  19659. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19660. if (
  19661. this.groupStudentUid[this.toolindex][i].length >
  19662. this.groupJson2.number
  19663. ) {
  19664. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19665. return;
  19666. }
  19667. }
  19668. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19669. this.islock = this.groupJson.islock == 1 ? true : false;
  19670. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19671. this.taskCount
  19672. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19673. let params = [
  19674. {
  19675. cid: this.id,
  19676. chapters: JSON.stringify(this.chapInfoList),
  19677. uid: this.userid,
  19678. unitIndex: this.courseType,
  19679. },
  19680. ];
  19681. this.ajax
  19682. .post(this.$store.state.api + "updateWorkNew4", params)
  19683. .then((res) => {
  19684. this.$message.success("设置成功");
  19685. this.getCourseDetail(2);
  19686. this.dialogVisibleGroup2 = false;
  19687. this.groupJson2 = {};
  19688. this.$forceUpdate();
  19689. })
  19690. .catch((err) => {
  19691. this.$message.error("网络不佳");
  19692. console.error(err);
  19693. });
  19694. },
  19695. lockChair() {
  19696. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19697. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19698. this.updateGroupJson();
  19699. },
  19700. selectGroup(index) {
  19701. this.getCourseDetail(2, index);
  19702. },
  19703. joinGroup(index) {
  19704. if (this.groupJson.islock == 2) {
  19705. this.$message.error("位置已被锁定,无法加入");
  19706. return;
  19707. }
  19708. if (
  19709. this.groupStudent[this.toolindex][index].length >
  19710. this.groupJson.number ||
  19711. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19712. ) {
  19713. this.$message.error("位置已满,无法加入");
  19714. return;
  19715. }
  19716. let params = [
  19717. {
  19718. cid: this.id,
  19719. stage: this.courseType,
  19720. task: this.taskCount,
  19721. tool: this.toolindex,
  19722. g: index,
  19723. uid: this.userid,
  19724. },
  19725. ];
  19726. this.ajax
  19727. .post(this.$store.state.api + "joinGroup", params)
  19728. .then((res) => {
  19729. this.$message.success("加入成功");
  19730. this.getCourseDetail(2);
  19731. })
  19732. .catch((err) => {
  19733. this.$message.error("网络不佳");
  19734. console.error(err);
  19735. });
  19736. },
  19737. exitGroup(id) {
  19738. if (this.groupJson.islock == 2) {
  19739. this.$message.error("位置已被锁定,无法退出");
  19740. return;
  19741. }
  19742. let params = [
  19743. {
  19744. gid: id,
  19745. },
  19746. ];
  19747. this.ajax
  19748. .post(this.$store.state.api + "exitGroup", params)
  19749. .then((res) => {
  19750. this.$message.success("退出成功");
  19751. this.getCourseDetail(2);
  19752. })
  19753. .catch((err) => {
  19754. this.$message.error("网络不佳");
  19755. console.error(err);
  19756. });
  19757. },
  19758. groupUpload(index, task, gindex) {
  19759. this.taskCount = task;
  19760. this.toolindex = index;
  19761. this.groupIndex = gindex;
  19762. this.dialogVisibleGroupWork = true;
  19763. },
  19764. updateGroupChair(user) {
  19765. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19766. el.label = index;
  19767. return index != user.group;
  19768. });
  19769. this.updateGroupUser = user;
  19770. this.dialogVisibleUpdateGroup = true;
  19771. },
  19772. updateChair() {
  19773. if (
  19774. this.groupStudent[this.toolindex][this.checkChair].length >
  19775. this.groupJson.number ||
  19776. this.groupStudent[this.toolindex][this.checkChair].length ==
  19777. this.groupJson.number
  19778. ) {
  19779. this.$message.error("位置已满,无法加入");
  19780. return;
  19781. }
  19782. let params = [
  19783. {
  19784. cid: this.id,
  19785. stage: this.courseType,
  19786. task: this.taskCount,
  19787. tool: this.toolindex,
  19788. g: this.checkChair,
  19789. uid: this.updateGroupUser.userid,
  19790. },
  19791. ];
  19792. this.ajax
  19793. .post(this.$store.state.api + "joinGroup", params)
  19794. .then((res) => {
  19795. this.$message.success("修改成功");
  19796. this.updateGroupUser = {};
  19797. this.checkChair = "";
  19798. this.updateGroupArray = {};
  19799. this.dialogVisibleUpdateGroup = false;
  19800. this.getCourseDetail(2);
  19801. })
  19802. .catch((err) => {
  19803. this.$message.error("网络不佳");
  19804. console.error(err);
  19805. });
  19806. },
  19807. deleteGroupChair(gindex) {
  19808. this.checkDeleteGroup = [];
  19809. this.deleteGroupUser = JSON.parse(
  19810. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19811. );
  19812. this.deleteGroupArray = this.groupJson.group[gindex];
  19813. this.groupIndex = gindex;
  19814. this.dialogVisibleDeleteGroup = true;
  19815. },
  19816. async deleteChair() {
  19817. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19818. const gid =
  19819. this.groupStudent[this.toolindex][this.groupIndex][
  19820. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19821. this.checkDeleteGroup[i]
  19822. )
  19823. ];
  19824. let params = [
  19825. {
  19826. gid: gid.id,
  19827. },
  19828. ];
  19829. var a = await this.deleteChairA(params);
  19830. if (i == this.checkDeleteGroup.length - 1) {
  19831. this.$message.success("退出成功");
  19832. this.dialogVisibleDeleteGroup = false;
  19833. this.deleteGroupUser = [];
  19834. this.deleteGroupArray = {};
  19835. this.groupIndex = "";
  19836. this.checkDeleteGroup = [];
  19837. this.getCourseDetail(2);
  19838. }
  19839. }
  19840. },
  19841. deleteChairA(params) {
  19842. return new Promise((resolve, reject) => {
  19843. this.ajax
  19844. .post(this.$store.state.api + "exitGroup", params)
  19845. .then((res) => {
  19846. resolve(1);
  19847. })
  19848. .catch((err) => {
  19849. this.$message.error("网络不佳");
  19850. console.error(err);
  19851. });
  19852. });
  19853. },
  19854. contract(i) {
  19855. if (this.isCloseList[i].isClose == 0) {
  19856. this.isCloseList[i].isClose = 1;
  19857. } else {
  19858. this.isCloseList[i].isClose = 0;
  19859. }
  19860. this.$forceUpdate();
  19861. },
  19862. openWordCloud(toolindex) {
  19863. this.wordCloudData = '';
  19864. let array = [];
  19865. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19866. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19867. array.push({ name: works });
  19868. }
  19869. if (this.isGroup) {
  19870. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19871. let works = this.courseGroup.group[i].works[toolindex];
  19872. for (var j = 0; j < works.length; j++) {
  19873. let answer = JSON.parse(works[j].works)[0].answer;
  19874. array.push({ name: answer });
  19875. }
  19876. }
  19877. }
  19878. let _result = ''
  19879. array.forEach(e=>{
  19880. _result +=e.name+','
  19881. })
  19882. this.wordCloudData = _result;
  19883. this.dialogVisibleWordCloud = true;
  19884. this.wordCloudKey += 1;
  19885. },
  19886. uploadWorks(i) {
  19887. this.$confirm("确定导出作业吗?", "提示", {
  19888. confirmButtonText: "确定",
  19889. cancelButtonText: "取消",
  19890. type: "warning",
  19891. })
  19892. .then(() => {
  19893. const loading = this.$loading.service({
  19894. background: "rgba(255, 255, 255, 0.7)",
  19895. target: document.body,
  19896. text: "文件加载中...",
  19897. });
  19898. const _worksStudent = this.worksStudent;
  19899. let url = [];
  19900. var counts = {};
  19901. for (var l = 0; l < _worksStudent[i].length; l++) {
  19902. var item = _worksStudent[i][l];
  19903. var name = item.sName;
  19904. if (!counts.hasOwnProperty(name)) {
  19905. counts[name] = 0;
  19906. } else {
  19907. counts[name]++;
  19908. }
  19909. if (counts[name] > 0) {
  19910. item.sName += " (" + counts[name] + ")";
  19911. }
  19912. }
  19913. for (var l = 0; l < _worksStudent[i].length; l++) {
  19914. var item = _worksStudent[i][l];
  19915. if (
  19916. item.works.indexOf(
  19917. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19918. ) !== -1 &&
  19919. item.works.indexOf("img") === -1
  19920. ) {
  19921. url.push({ name: item.sName, url: item.works });
  19922. }
  19923. }
  19924. // var toolList = [
  19925. // { name: "电子白板", tool: 1 },
  19926. // { name: "思维导图", tool: 3 },
  19927. // { name: "协同文档", tool: 6 },
  19928. // { name: "思维网格", tool: 7 },
  19929. // { name: "素材库", tool: 8 },
  19930. // { name: "学习资料", tool: 17 },
  19931. // { name: "便签", tool: 2 },
  19932. // { name: "问卷调查", tool: 4 },
  19933. // { name: "选择题", tool: 45 },
  19934. // { name: "倒计时", tool: 10 },
  19935. // { name: "问答", tool: 15 },
  19936. // { name: "课程设计", tool: 26 },
  19937. // { name: "训练服务器", tool: 18 },
  19938. // { name: "作业提交", tool: 16 },
  19939. // { name: "批量上传", tool: 50 },
  19940. // { name: "AIoT Blockly", tool: 21 },
  19941. // { name: "AI Python", tool: 23 },
  19942. // { name: "AI Blockly", tool: 24 },
  19943. // { name: "目标管理", tool: 25 },
  19944. // { name: "数学画板", tool: 31 },
  19945. // { name: "翻译", tool: 28 },
  19946. // { name: "魔盒识字", tool: 37 },
  19947. // { name: "数学画板", tool: 31 },
  19948. // { name: "24点", tool: 38 },
  19949. // { name: "GeoGebra", tool: 39 },
  19950. // { name: "源码编辑", tool: 32 },
  19951. // { name: "个人评价", tool: 40 },
  19952. // { name: "选择匹配", tool: 41 },
  19953. // { name: "汉字宫", tool: 44 },
  19954. // { name: "排序", tool: 47 },
  19955. // { name: "表格", tool: 48 },
  19956. // { name: "文档", tool: 52 },
  19957. // { name: "学生分组", tool: 49 },
  19958. // { name: "CocoPi", tool: 57 },
  19959. // { name: "模拟驾驶", tool: 58 },
  19960. // { name: "路径搜索", tool: 59 },
  19961. // { name: "深度学习", tool: 60 },
  19962. // { name: "全历史", tool: 61 },
  19963. // { name: "交互视频", tool: 62 },
  19964. // { name: "海龟编程", tool: 63 },
  19965. // { name: "挑人", tool: 65 },
  19966. // { name: "公式编辑", tool: 66 },
  19967. // { name: "分子结构", tool: 67 },
  19968. // { name: "时间轴", tool: 68 },
  19969. // ];
  19970. // var toolName = "";
  19971. // for(var w = 0;w<toolList.length;w++){
  19972. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19973. // toolName = toolList[w].name;
  19974. // }
  19975. // }
  19976. console.log(url);
  19977. this.downLoadAll(url, loading);
  19978. })
  19979. .catch(() => {});
  19980. },
  19981. downLoadAll(url, loading) {
  19982. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19983. const zip = new JSZip();
  19984. const cache = {};
  19985. const promises = [];
  19986. data.forEach((item) => {
  19987. const promise = getFile(item.url).then((data) => {
  19988. if (data.data != 1) {
  19989. // 下载文件, 并存成ArrayBuffer对象
  19990. const file_name =
  19991. item.name +
  19992. "." +
  19993. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19994. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19995. cache[file_name] = data.data;
  19996. }
  19997. });
  19998. promises.push(promise);
  19999. });
  20000. Promise.all(promises).then(() => {
  20001. zip.generateAsync({ type: "blob" }).then((content) => {
  20002. // 生成二进制流
  20003. FileSaver.saveAs(
  20004. content,
  20005. this.courseDetail.title + "-" + "作业提交工具.zip"
  20006. ); // 利用file-saver保存文件 自定义文件名
  20007. setTimeout(() => {
  20008. loading.close();
  20009. }, 2000);
  20010. });
  20011. });
  20012. },
  20013. pickStudent(stu) {
  20014. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20015. return;
  20016. }
  20017. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20018. confirmButtonText: "确定",
  20019. cancelButtonText: "取消",
  20020. type: "warning",
  20021. })
  20022. .then(() => {
  20023. let params = [
  20024. {
  20025. uid: stu.userid,
  20026. cid: this.id,
  20027. stage: this.courseType,
  20028. task: this.taskCount,
  20029. tool: this.toolindex,
  20030. },
  20031. ];
  20032. this.ajax
  20033. .post(this.$store.state.api + "updateCoursePick", params)
  20034. .then((res) => {
  20035. this.$message.success("操作成功");
  20036. this.getPick();
  20037. })
  20038. .catch((err) => {
  20039. this.$message.error("网络不佳");
  20040. console.error(err);
  20041. });
  20042. })
  20043. .catch(() => {});
  20044. },
  20045. selectUser(){
  20046. let params = {
  20047. userid: this.userid,
  20048. };
  20049. this.ajax
  20050. .get(this.$store.state.api + "selectUser", params)
  20051. .then((res) => {
  20052. this.userMes = res.data[0];
  20053. })
  20054. .catch((err) => {
  20055. console.error(err);
  20056. });
  20057. },
  20058. setEngText(i){
  20059. this.newEngIndex = i;
  20060. this.$forceUpdate();
  20061. },
  20062. addCorrect(){
  20063. this.$confirm("你确定提交批改嘛?", "提示", {
  20064. confirmButtonText: "确定",
  20065. showCancelButton: false,
  20066. closeOnClickModal: false,
  20067. type: "warning",
  20068. })
  20069. .then(() => {
  20070. let params = {
  20071. cid: this.id,
  20072. s: parseInt(this.courseType),
  20073. t: this.taskCount,
  20074. tool: this.toolindex,
  20075. wid: this.engWid,
  20076. c: this.userid,
  20077. 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) : "",
  20078. };
  20079. this.ajax
  20080. .get(this.$store.state.api + "addEngC", params)
  20081. .then((res) => {
  20082. this.$message.success("提交成功");
  20083. this.engUpdateDialogVisible = false;
  20084. })
  20085. .catch((err) => {
  20086. console.error(err);
  20087. });
  20088. })
  20089. .catch(() => {});
  20090. },
  20091. selectEngC(id,z){
  20092. let params = {
  20093. workid: id,
  20094. };
  20095. this.ajax
  20096. .get(this.$store.state.api + "selectEngC", params)
  20097. .then((res) => {
  20098. if(res.data[0].length == 0){
  20099. this.newEnglishList.engTitle = z.engTitle;
  20100. this.newEnglishList.engText = z.engText;
  20101. }else{
  20102. var a = res.data[0];
  20103. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20104. if(this.userMes[0].type == 2){
  20105. var snum = 0;
  20106. for(var i = 0;i<a.length;i++){
  20107. if(this.userMes[0].userid == a[i].correct){
  20108. this.newEnglishList = JSON.parse(a[i].cWork);
  20109. snum = 1;
  20110. }
  20111. }
  20112. if(snum == 0){
  20113. this.newEnglishList = { engTitle:"",engText:"" };
  20114. this.newEnglishList.engTitle = z.engTitle;
  20115. this.newEnglishList.engText = z.engText;
  20116. }
  20117. }else if(this.userMes[0].type == 1){
  20118. var num = 0;
  20119. for(var w= 0;w<a.length;w++){
  20120. if(this.userMes[0].userid == a[w].correct){
  20121. num = 1;
  20122. }
  20123. }
  20124. if(num == 0){
  20125. this.isNoUserid = true;
  20126. var c = JSON.parse(JSON.stringify(z));
  20127. this.oldEnglishJson1 = c;
  20128. }else{
  20129. this.isNoUserid = false;
  20130. }
  20131. var b = a.sort((item, index) => {
  20132. console.log(item)
  20133. if (item.correct === this.userMes[0].userid) {
  20134. return -1; // 将a移到前面
  20135. } else if (index.correct === this.userMes[0].userid) {
  20136. return 1; // 将b移到前面
  20137. } else {
  20138. return 0; // 保持默认顺序
  20139. }
  20140. });
  20141. for(var p = 0;p<b.length;p++){
  20142. for(var y = 0;y<ppp.length;y++){
  20143. if(b[p].id == ppp[y].id){
  20144. b[p].cWork = JSON.parse(ppp[y].cWork);
  20145. break
  20146. }
  20147. }
  20148. }
  20149. this.newEnglishList1 = b;
  20150. }
  20151. }
  20152. this.greyType = false;
  20153. setTimeout(() => {
  20154. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20155. if(this.newEnglishList1.length > 0){
  20156. if(this.isNoUserid == true){
  20157. this.engListLength = this.newEnglishList1.length + 1;
  20158. this.newEngIndex = -1;
  20159. }else{
  20160. this.engListLength = this.newEnglishList1.length;
  20161. this.newEngIndex = 0;
  20162. }
  20163. }
  20164. if(this.userMes[0].type == 2){
  20165. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20166. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20167. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20168. }else if(this.newEngIndex == -1){
  20169. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20170. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20171. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20172. }
  20173. }, 500);
  20174. this.engUpdateDialogVisible = true;
  20175. this.$forceUpdate();
  20176. })
  20177. .catch((err) => {
  20178. console.error(err);
  20179. });
  20180. },
  20181. getPick() {
  20182. let params = {
  20183. cid: this.id,
  20184. };
  20185. this.ajax
  20186. .get(this.$store.state.api + "getPick", params)
  20187. .then((res) => {
  20188. let array = [];
  20189. for (var i = 0; i < res.data[0].length; i++) {
  20190. array.push(res.data[0][i].userid);
  20191. }
  20192. this.isPickStudent = array;
  20193. if (array.indexOf(this.userid) !== -1) {
  20194. this.$confirm("你被老师选到啦!", "提示", {
  20195. confirmButtonText: "确定",
  20196. showCancelButton: false,
  20197. closeOnClickModal: false,
  20198. type: "warning",
  20199. })
  20200. .then(() => {
  20201. let pa = [
  20202. {
  20203. uid: this.userid,
  20204. cid: this.id,
  20205. },
  20206. ];
  20207. this.ajax
  20208. .post(this.$store.state.api + "deletePick", pa)
  20209. .then((res) => {
  20210. this.getPick();
  20211. })
  20212. .catch((err) => {
  20213. this.$message.error("网络不佳");
  20214. console.error(err);
  20215. });
  20216. })
  20217. .catch(() => {});
  20218. }
  20219. })
  20220. .catch((err) => {
  20221. this.$message.error("网络不佳");
  20222. console.error(err);
  20223. });
  20224. },
  20225. foldEva() {
  20226. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20227. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20228. } else {
  20229. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20230. setTimeout(() => {
  20231. this.checkEva();
  20232. setTimeout(() => {
  20233. this.checkEva();
  20234. }, 500);
  20235. }, 0);
  20236. }
  20237. this.$forceUpdate();
  20238. },
  20239. panToolHeight(tool) {
  20240. var _tool = document.querySelectorAll('#'+tool)[0]
  20241. var _toolA = _tool ? _tool.offsetHeight : 0
  20242. var _toolC = 0
  20243. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20244. let boolean2 = (_toolA > _toolC) ? true : false
  20245. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20246. this.$forceUpdate();
  20247. },
  20248. async checkLink(url) {
  20249. // console.log(url)
  20250. let _url = url
  20251. try {
  20252. const response = await fetch(url);
  20253. if(!response.ok){
  20254. _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]))
  20255. }
  20256. // console.log(response.ok)
  20257. } catch (error) {
  20258. console.error('Error checking link:', error);
  20259. // console.log(false)
  20260. _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]))
  20261. }
  20262. // console.log(_url)
  20263. return _url
  20264. },
  20265. getScoreList(){
  20266. let params = {
  20267. cid: this.id,
  20268. };
  20269. this.ajax
  20270. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20271. .then((res) => {
  20272. let result = res.data;
  20273. this.scoreList.datalist = result[0];
  20274. this.scoreList.isScoreList = result[1];
  20275. })
  20276. .catch((err) => {
  20277. console.error(err);
  20278. });
  20279. },
  20280. setClassRoomHelperWidth(width){
  20281. this.classRoomHelperWidth = width
  20282. },
  20283. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20284. this.$refs.choseWorksDetailDialogRef.open({
  20285. toolType:tooc,
  20286. tType: this.tType,
  20287. toolIndex: toolIndex
  20288. });
  20289. this.changeSplitScreenBehavior({
  20290. code: 1,
  20291. form: {
  20292. toolType:tooc,
  20293. toolIndex: toolIndex,
  20294. courseType: this.courseType,
  20295. taskCount: this.taskCount,
  20296. type: 0
  20297. }
  20298. });
  20299. },
  20300. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20301. this.$refs.statisticalAnalysisRef.open({
  20302. worksStudent: this.worksStudent[toolIndex],
  20303. tType: this.tType,
  20304. toolIndex: toolIndex
  20305. });
  20306. this.changeSplitScreenBehavior({
  20307. code: 2,
  20308. form: {
  20309. toolType:4,
  20310. courseType: this.courseType,
  20311. taskCount: this.taskCount,
  20312. toolIndex: toolIndex,
  20313. type: 0
  20314. }
  20315. });
  20316. },
  20317. statisticalAnalysisRefresh(toolIndex) {
  20318. this.$refs.statisticalAnalysisRef.refreshData({
  20319. worksStudent: this.worksStudent[toolIndex],
  20320. tType: this.tType,
  20321. toolIndex: toolIndex
  20322. });
  20323. },
  20324. async splitScreenBehavior(type = 0) {
  20325. // return;
  20326. if (this.splitScreenData.loading)
  20327. return this.$message.info("操作过快,请稍等");
  20328. if (type == 0) {
  20329. //关闭分屏
  20330. this.splitScreenData.isOpen = false;
  20331. // this.splitScreenData.userId = "";
  20332. // this.splitScreenData.uid = "";
  20333. this.splitScreenData.behavior = null;
  20334. await this.updateSplitScreenData(1);
  20335. this.$message.success("已关闭分屏模式");
  20336. this.studentFreePreview(false);
  20337. this.OpenJobPreview(false);
  20338. // this.followingMode(false);
  20339. } else if (type == 1) {
  20340. //开启分屏
  20341. this.splitScreenData.isOpen = true;
  20342. this.splitScreenData.userId = this.userid;
  20343. this.splitScreenData.uid = this.splitScreenData.myUid;
  20344. this.splitScreenData.behavior = null;
  20345. let status = await this.updateSplitScreenData(0);
  20346. this.changeSplitScreenBehavior({form:{}})
  20347. if (status == 1) {
  20348. this.$message.success("已开启分屏");
  20349. this.studentFreePreview(true);
  20350. this.OpenJobPreview(true);
  20351. // this.followingMode(true);
  20352. } else {
  20353. this.splitScreenData.isOpen = false;
  20354. this.splitScreenData.userId = "";
  20355. this.splitScreenData.uid = "";
  20356. this.splitScreenData.behavior = null;
  20357. this.$message.success("分屏开启失败");
  20358. }
  20359. }
  20360. },
  20361. enterFullScreen() {
  20362. let element = document.documentElement;
  20363. if (element.requestFullscreen) {
  20364. element.requestFullscreen();
  20365. } else if (element.mozRequestFullScreen) { /* Firefox */
  20366. element.mozRequestFullScreen();
  20367. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  20368. element.webkitRequestFullscreen();
  20369. } else if (element.msRequestFullscreen) { /* IE/Edge */
  20370. element.msRequestFullscreen();
  20371. }
  20372. },
  20373. exitFullScreen() {
  20374. if (document.exitFullscreen) {
  20375. document.exitFullscreen();
  20376. } else if (document.mozCancelFullScreen) { /* Firefox */
  20377. document.mozCancelFullScreen();
  20378. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  20379. document.webkitExitFullscreen();
  20380. } else if (document.msExitFullscreen) { /* IE/Edge */
  20381. document.msExitFullscreen();
  20382. }
  20383. },
  20384. confirmOpen(){
  20385. this.splitScreenData.isOpen = true;
  20386. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  20387. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  20388. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  20389. this.confirmOpenDig = false
  20390. if (!document.fullscreenElement) {
  20391. this.enterFullScreen();
  20392. }
  20393. if (this.timer2) {
  20394. clearInterval(this.timer2);
  20395. this.timer2 = null;
  20396. }
  20397. this.timer2 = setInterval(()=> {
  20398. this.getSplitScreenData();//获取分屏数据
  20399. }, 1000);
  20400. this.$message.success("分屏模式已开启");
  20401. },
  20402. getSplitScreenData() {
  20403. // return;
  20404. // if (this.tType != 1) return;
  20405. let params = {
  20406. cid: this.id
  20407. };
  20408. this.ajax
  20409. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20410. .then(async res => {
  20411. let data = res.data[0][0]["splitScreenData"];
  20412. console.log("获取了分屏数:", data);
  20413. if (data) {
  20414. data = JSON.parse(data);
  20415. if (
  20416. !this.splitScreenData.isOpen &&
  20417. data.isOpen &&
  20418. this.splitScreenData.myUid == data.uid
  20419. ) {
  20420. this.splitScreenData.isOpen = false;
  20421. this.splitScreenData.userId = "";
  20422. this.splitScreenData.uid = "";
  20423. this.splitScreenData.behavior = null;
  20424. await this.updateSplitScreenData(1);
  20425. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20426. this.confirmOpenDig = true
  20427. this.confirmOpenDigData = data
  20428. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20429. this.splitScreenData.isOpen = false;
  20430. this.splitScreenData.userId = "";
  20431. this.splitScreenData.uid = "";
  20432. this.splitScreenData.behavior = null;
  20433. this.$message.error("已结束分屏模式");
  20434. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20435. this.splitScreenData.isOpen = true;
  20436. this.splitScreenData.uid = data.uid;
  20437. this.splitScreenData.userId = data.userId;
  20438. this.splitScreenData.behavior = data.behavior;
  20439. }
  20440. this.doSplitScreenBehavior();
  20441. } else {
  20442. if (this.splitScreenData.isOpen) {
  20443. this.splitScreenData.isOpen = false;
  20444. this.splitScreenData.userId = "";
  20445. this.splitScreenData.uid = "";
  20446. this.splitScreenData.behavior = null;
  20447. this.$message.error("已结束分屏模式");
  20448. if (this.timer2) {
  20449. clearInterval(this.timer2);
  20450. this.timer2 = null;
  20451. }
  20452. this.timer2 = setInterval(()=> {
  20453. this.getSplitScreenData();//获取分屏数据
  20454. }, 5000);
  20455. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  20456. confirmButtonText: '确定', //确认按钮的文字
  20457. showCancelButton: false, //是否显示取消按钮
  20458. showClose: false, //是否显示关闭按钮
  20459. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  20460. type: "warning",
  20461. })
  20462. .then(() => {
  20463. if (document.fullscreenElement) {
  20464. this.exitFullScreen();
  20465. }
  20466. })
  20467. .catch(() => {});
  20468. }
  20469. }
  20470. })
  20471. .catch(e => {
  20472. console.log("获取分屏数出错:", e);
  20473. });
  20474. },
  20475. doSplitScreenBehavior() {
  20476. if (
  20477. this.splitScreenData.isOpen &&
  20478. this.splitScreenData.uid != this.splitScreenData.myUid
  20479. ) {
  20480. let behavior = this.splitScreenData.behavior;
  20481. if (behavior) {
  20482. if (behavior.code === 99) {
  20483. //初始化
  20484. this.fullDialogVisible = false;
  20485. if(this.$refs.choseWorksDetailDialogRef.show){
  20486. this.$refs.choseWorksDetailDialogRef.close();
  20487. }
  20488. if(this.$refs.statisticalAnalysisRef.show){
  20489. this.$refs.statisticalAnalysisRef.close();
  20490. }
  20491. }
  20492. if (behavior.code === 0) {
  20493. //开启内容列表弹窗
  20494. this.checkFileFull1(behavior.form.t, behavior.form.f);
  20495. }else{
  20496. this.fullDialogVisible = false;
  20497. }
  20498. if (behavior.code === 1) {
  20499. //关于选择题的作业详细的操作
  20500. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20501. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20502. this.courseType = behavior.form.courseType;
  20503. this.taskCount = behavior.form.taskCount;
  20504. }
  20505. this.$nextTick(() => {
  20506. if (this.$refs.choseWorksDetailDialogRef.show) {
  20507. //已经打开了
  20508. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  20509. } else {
  20510. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  20511. }
  20512. });
  20513. }else{
  20514. this.$refs.choseWorksDetailDialogRef.close()
  20515. }
  20516. if(behavior.code === 2){
  20517. if(this.$refs.statisticalAnalysisRef.show){
  20518. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20519. }else{
  20520. this.$refs.statisticalAnalysisRef.open({
  20521. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20522. tType: this.tType,
  20523. toolIndex: behavior.form.toolIndex
  20524. });
  20525. }
  20526. }else{
  20527. this.$refs.statisticalAnalysisRef.close();
  20528. }
  20529. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  20530. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  20531. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  20532. if (behavior.form.courseType != this.courseType ||
  20533. behavior.form.taskCount != this.taskCount ||
  20534. behavior.form.toolType != this.toolindex
  20535. ) {
  20536. var a = document.scrollingElement;
  20537. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  20538. if (target) {
  20539. target.scrollIntoView(true);
  20540. setTimeout(()=>{
  20541. let scrollBody = document.querySelector('.body_student').parentElement
  20542. scrollBody.scrollTop = scrollBody.scrollTop - 100
  20543. }, 0);
  20544. // setTimeout(() => {
  20545. // a.scrollTop = 0
  20546. // }, 0);
  20547. }
  20548. }
  20549. if(this.courseType !=behavior.form.courseType){
  20550. this.courseType = behavior.form.courseType;
  20551. }
  20552. if(this.taskCount !=behavior.form.taskCount){
  20553. this.taskCount = behavior.form.taskCount;
  20554. }
  20555. if((behavior.form.toolType || behavior.form.toolType == 0) && (this.toolindex != behavior.form.toolType)){
  20556. this.toolindex = behavior.form.toolType;
  20557. }
  20558. // if(behavior.form.navId){
  20559. // this.navId = behavior.form.navId
  20560. // }
  20561. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  20562. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  20563. console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  20564. this.getCourseDetail()
  20565. }
  20566. this.setContent2(false)
  20567. }
  20568. } else {
  20569. }
  20570. }
  20571. },
  20572. updateSplitScreenData(empty = 0) {
  20573. return new Promise(resolve => {
  20574. if(this.userid!==this.courseDetail.userid){
  20575. if(!this.courseDetail.userid){
  20576. return setTimeout(()=>{
  20577. this.updateSplitScreenData(empty)
  20578. },2000)
  20579. }
  20580. return;
  20581. };
  20582. if (
  20583. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20584. this.splitScreenData.userId == this.userid
  20585. ) {
  20586. this.splitScreenData.loading = true;
  20587. let params = [
  20588. {
  20589. cid: this.id,
  20590. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20591. }
  20592. ];
  20593. this.ajax
  20594. .post(
  20595. this.$store.state.api + "update_courseSplitScreenData",
  20596. params
  20597. )
  20598. .then(res => {
  20599. this.splitScreenData.loading = false;
  20600. if (res.data == 1) {
  20601. resolve(1);
  20602. console.log("修改分屏数据成功");
  20603. }
  20604. })
  20605. .catch(e => {
  20606. this.splitScreenData.loading = false;
  20607. console.log("修改分屏数据失败", e);
  20608. resoleve(0);
  20609. });
  20610. } else if (empty == 2 && this.tType == 1) {
  20611. let params = [
  20612. {
  20613. cid: this.id,
  20614. nData: ""
  20615. }
  20616. ];
  20617. return this.ajax
  20618. .post(
  20619. this.$store.state.api + "update_courseSplitScreenData",
  20620. params
  20621. )
  20622. .then(_ => resolve(1))
  20623. .catch(_ => resolve(0));
  20624. } else {
  20625. return resolve(0);
  20626. }
  20627. });
  20628. },
  20629. changeSplitScreenBehavior(newValue) {
  20630. if (
  20631. this.splitScreenData.isOpen &&
  20632. this.splitScreenData.uid == this.splitScreenData.myUid
  20633. ) {
  20634. let _behavior = null;
  20635. if(!newValue){
  20636. _behavior = {}
  20637. }else{
  20638. _behavior = newValue
  20639. }
  20640. if(_behavior.form){
  20641. _behavior.form.taskCount = this.taskCount;
  20642. _behavior.form.courseType = this.courseType
  20643. }else{
  20644. _behavior.form = {
  20645. taskCount:this.taskCount,
  20646. courseType:this.courseType
  20647. }
  20648. }
  20649. this.splitScreenData.behavior = _behavior;
  20650. this.updateSplitScreenData(0);
  20651. }
  20652. },
  20653. studentFreePreview(flag) {
  20654. this.IsLookOpen = flag;
  20655. this.followingMode(flag)
  20656. this.updateLookOpen();
  20657. },
  20658. OpenJobPreview(flag) {
  20659. this.sIsOpen = flag;
  20660. this.updateSLook();
  20661. },
  20662. followingMode(flag) {
  20663. this.IsFollow = flag;
  20664. this.updateFollow();
  20665. }
  20666. },
  20667. directives: {
  20668. // 使用局部注册指令的方式
  20669. resize: {
  20670. // 指令的名称
  20671. bind(el, binding) {
  20672. // el为绑定的元素,binding为绑定给指令的对象
  20673. let width = "",
  20674. height = "";
  20675. function isReize() {
  20676. const style = document.defaultView.getComputedStyle(el);
  20677. if (width !== style.width || height !== style.height) {
  20678. binding.value(); // 关键
  20679. }
  20680. width = style.width;
  20681. height = style.height;
  20682. }
  20683. el.__vueSetInterval__ = setInterval(isReize, 300);
  20684. },
  20685. unbind(el) {
  20686. clearInterval(el.__vueSetInterval__);
  20687. },
  20688. },
  20689. autoHeight: {
  20690. update(el, binding) {
  20691. const { value } = binding
  20692. if (value && typeof value === 'number') {
  20693. el.style.height = `${value}px`
  20694. } else {
  20695. el.style.height = 'auto'
  20696. }
  20697. },
  20698. componentUpdated(el) {
  20699. el.style.height = `${el.scrollHeight + 5}px`
  20700. },
  20701. },
  20702. },
  20703. beforeDestroy() {
  20704. window.onresize = null;
  20705. clearInterval(this.timer);
  20706. this.timer = null;
  20707. clearInterval(this.timer2);
  20708. this.timer2 = null;
  20709. clearInterval(this.opertimer);
  20710. this.opertimer = null;
  20711. this.updateSplitScreenData(1);
  20712. },
  20713. computed: {
  20714. getHeight(){
  20715. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20716. },
  20717. contentConvent() {
  20718. return function (c) {
  20719. return c
  20720. ? c
  20721. .replaceAll(/\r\n/g, "<br/>")
  20722. .replaceAll(/\n/g, "<br/>")
  20723. .replaceAll(/\s/g, " &nbsp")
  20724. : "";
  20725. };
  20726. },
  20727. MarkdownT() {
  20728. return function (c) {
  20729. let md = new MarkdownIt();
  20730. return c
  20731. ? md.render(c) : "";
  20732. };
  20733. },
  20734. commentRight(){
  20735. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  20736. return "35px";
  20737. }
  20738. return `calc(${this.classRoomHelperWidth} + 5px)`
  20739. // if(this.$refs["classRoomHelperRef"].type==0){
  20740. // return "100px";
  20741. // }else if(this.$refs["classRoomHelperRef"].type==1){
  20742. // return "502px"
  20743. // }else{
  20744. // return "0px"
  20745. // }
  20746. },
  20747. checkUpload() {
  20748. return function () {
  20749. var studentK = [];
  20750. if (this.plworkFile.length > 0) {
  20751. for (var z = 0; z < this.plworkFile.length; z++) {
  20752. studentK.push(this.plworkFile[z].username);
  20753. }
  20754. studentK = studentK.join(",");
  20755. }
  20756. var a = this.uploadStudentJuri.filter((el) => {
  20757. return studentK.indexOf(el.userid) == -1;
  20758. });
  20759. return a;
  20760. };
  20761. },
  20762. getSName() {
  20763. return function (name) {
  20764. var check = name;
  20765. this.uploadStudentJuri.forEach((el) => {
  20766. if (el.userid == check) {
  20767. check = el.name ? el.name : el.username;
  20768. }
  20769. });
  20770. return check;
  20771. };
  20772. },
  20773. getImgList() {
  20774. return function (val) {
  20775. let srcList = []; // 定义一个数组用来接收后面的img地址
  20776. val.replace(
  20777. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  20778. function (match, capture) {
  20779. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  20780. srcList.push(capture);
  20781. }
  20782. );
  20783. return srcList;
  20784. };
  20785. },
  20786. retrnToolHeight(){
  20787. return function (tool) {
  20788. var _tool = document.querySelectorAll('#'+tool)[0]
  20789. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  20790. };
  20791. },
  20792. Correct() {
  20793. return function (c,d) {
  20794. let w = "";
  20795. let a = this.correctWord;
  20796. for(var k = 0;k<a.length;k++){
  20797. //diffWordsWithSpace
  20798. if(a.length > 1){
  20799. if(a[k].added == true){
  20800. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20801. }else if(a[k].removed == true){
  20802. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20803. }else{
  20804. w += '<span>' + a[k].value + '</span>';
  20805. }
  20806. }else{
  20807. w = c
  20808. }
  20809. console.log("👇👇!+++==")
  20810. console.log(w)
  20811. //diffChars方法
  20812. // if(w == ""){
  20813. // if(a.length > 1){
  20814. // if(a[k].added == true){
  20815. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20816. // }else if(a[k].removed == true){
  20817. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20818. // }
  20819. // }else{
  20820. // w = c
  20821. // }
  20822. // }else{
  20823. // if(k == a.length - 1){
  20824. // if(a[k].added == true){
  20825. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20826. // }else if(a[k].removed == true){
  20827. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20828. // }
  20829. // }else{
  20830. // if(a[k].added == true){
  20831. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20832. // }else if(a[k].removed == true){
  20833. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20834. // }
  20835. // }
  20836. // }
  20837. }
  20838. c = w;
  20839. return c;
  20840. };
  20841. },
  20842. },
  20843. mounted() {
  20844. document.body.addEventListener("click", (e) => {
  20845. if (this.isUpdateToolDetail1) {
  20846. this.updateToolDetail(this.toolDetailIndex);
  20847. }
  20848. });
  20849. if (this.screenType == 2) {
  20850. window.parent.postMessage({ allScreen: 4 }, "*");
  20851. } else if (this.screenType == 3) {
  20852. window.parent.postMessage({ allScreen: 5 }, "*");
  20853. } else if (this.screenType == 1) {
  20854. window.parent.postMessage({ allScreen: 6 }, "*");
  20855. }
  20856. this.setOperationTime();
  20857. this.selectEva();
  20858. this.getCourseDetail();
  20859. this.selectCount();
  20860. this.getHomeWork();
  20861. this.selectUser();
  20862. this.getAIJ();
  20863. this.contentDialog = true;
  20864. this.setContent2(true);
  20865. if (this.tType == 4) {
  20866. this.pzDialog = true;
  20867. this.selectPz();
  20868. }
  20869. // 获取评分列表
  20870. this.getScoreList()
  20871. this.updateSplitScreenData(2);
  20872. this.splitScreenData.myUid = uuidv4();
  20873. document.scrollingElement.scrollTop = 0;
  20874. window.addEventListener("resize", () => {
  20875. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20876. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20877. if (this.showType == 2 || this.showType == 3) {
  20878. document.getElementsByClassName("navBox")[0].style.height =
  20879. a - 40 + 0+ "px";
  20880. } else {
  20881. document.getElementsByClassName("navBox")[0].style.height =
  20882. a - 40 + "px";
  20883. }
  20884. });
  20885. let _this = this;
  20886. setTimeout(() => {
  20887. // _this.vedioTime = [];
  20888. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20889. // _this.vedioTime[i] = document.getElementsByClassName(
  20890. // "vjs-duration-display"
  20891. // )[i].textContent;
  20892. // }
  20893. }, 1000);
  20894. },
  20895. };
  20896. </script>
  20897. <style scoped>
  20898. @media screen and (max-width: 1280px) {
  20899. /* .courseIndex > div:first-child(2) {
  20900. width: 15% !important;
  20901. } */
  20902. /* .navText {
  20903. width: 120px !important;
  20904. } */
  20905. .evaCss {
  20906. flex-direction: column !important;
  20907. align-items: center !important;
  20908. }
  20909. .elist_input {
  20910. width: 90% !important;
  20911. }
  20912. .dialog_diy1 >>> .el-dialog {
  20913. width: 100% !important;
  20914. }
  20915. .rightWidthCss {
  20916. width: 100% !important;
  20917. }
  20918. .dialog_diy3 >>> .el-dialog {
  20919. width: 100% !important;
  20920. }
  20921. .addToolCss {
  20922. right: 0 !important;
  20923. width: 100% !important;
  20924. min-width: unset !important;
  20925. }
  20926. }
  20927. .evaCssMax {
  20928. flex-direction: column !important;
  20929. align-items: center !important;
  20930. }
  20931. .dialog_diy >>> .el-dialog {
  20932. margin-top: 10vh !important;
  20933. }
  20934. .body_student {
  20935. width: 77%;
  20936. height: 100%;
  20937. position: absolute;
  20938. left: 22%;
  20939. top: 0;
  20940. }
  20941. .student_head {
  20942. width: 100%;
  20943. margin: 20px auto 0;
  20944. padding-bottom: 20px;
  20945. display: flex;
  20946. flex-direction: column;
  20947. flex-wrap: nowrap;
  20948. align-items: flex-start;
  20949. justify-content: flex-start;
  20950. }
  20951. .pb_left {
  20952. width: 20%;
  20953. margin-right: 10px;
  20954. background: rgb(255, 255, 255);
  20955. position: fixed;
  20956. height: calc(100% - 40px);
  20957. border-radius: 20px;
  20958. padding-bottom: 15px;
  20959. box-sizing: border-box;
  20960. }
  20961. .wheel > img,
  20962. .project > img,
  20963. .star > img,
  20964. .evaluate > img,
  20965. .up_photo > img,
  20966. .chapter_add > img,
  20967. .deleteWord > img,
  20968. .question > img,
  20969. .homework > img {
  20970. width: 100%;
  20971. height: 100%;
  20972. }
  20973. .upCover > img {
  20974. width: 131px;
  20975. height: 69px;
  20976. object-fit: cover;
  20977. }
  20978. .upCover {
  20979. width: calc(100% / 3.5);
  20980. position: relative;
  20981. margin: 0 15px 10px 0;
  20982. display: flex;
  20983. flex-direction: column;
  20984. flex-wrap: nowrap;
  20985. justify-content: center;
  20986. align-content: center;
  20987. align-items: center;
  20988. height: fit-content;
  20989. }
  20990. .upCover2 {
  20991. width: 100%;
  20992. position: relative;
  20993. margin: 0 15px 10px 0;
  20994. display: flex;
  20995. flex-direction: column;
  20996. flex-wrap: nowrap;
  20997. justify-content: center;
  20998. align-content: center;
  20999. align-items: center;
  21000. }
  21001. .upCover2 > img {
  21002. width: 100%;
  21003. height: 90px;
  21004. object-fit: contain;
  21005. }
  21006. .chapter_add {
  21007. width: 120px;
  21008. position: relative;
  21009. text-align: center;
  21010. }
  21011. .isAddThings {
  21012. margin-top: 20px;
  21013. position: relative;
  21014. text-align: center;
  21015. background: #f7f8fa;
  21016. height: 90px;
  21017. width: 90px;
  21018. display: flex;
  21019. flex-direction: column;
  21020. justify-content: center;
  21021. }
  21022. .deleteWord {
  21023. width: 22px;
  21024. height: 22px;
  21025. position: absolute;
  21026. right: -5px;
  21027. top: -5px;
  21028. cursor: pointer;
  21029. }
  21030. .box_course {
  21031. /* width: 60%; */
  21032. width: calc(100% - 300px);
  21033. }
  21034. .wheel {
  21035. width: 100%;
  21036. /* height: 100%; */
  21037. height: 650px;
  21038. }
  21039. .right_box {
  21040. display: flex;
  21041. flex-direction: column;
  21042. margin-left: 30px;
  21043. justify-content: space-around;
  21044. }
  21045. .right_box_title {
  21046. font-size: 23px;
  21047. }
  21048. .people {
  21049. display: flex;
  21050. }
  21051. .student_body {
  21052. width: 100%;
  21053. margin: 0 auto;
  21054. margin-top: 10px;
  21055. padding: 0 0 20px;
  21056. }
  21057. .study_top {
  21058. margin-top: 100px;
  21059. width: 100%;
  21060. height: auto;
  21061. padding-bottom: 20px;
  21062. margin-left: 2px;
  21063. min-height: 90%;
  21064. }
  21065. .study_top .checkbox {
  21066. display: flex;
  21067. align-items: center;
  21068. padding: 15px 0 15px 30px;
  21069. flex: 0 0 auto;
  21070. font-weight: bold;
  21071. border-bottom: 1px solid #eee;
  21072. }
  21073. .study_top .check {
  21074. padding-bottom: 5px;
  21075. text-align: center;
  21076. cursor: pointer;
  21077. height: 30px;
  21078. box-sizing: border-box;
  21079. display: flex;
  21080. }
  21081. .study_top .checked {
  21082. border-bottom: 4px solid #3fc6a0;
  21083. padding-bottom: 5px;
  21084. color: #3fc6a0;
  21085. display: flex;
  21086. height: 35px;
  21087. }
  21088. .study_top .checked > div,
  21089. .study_top .check > div {
  21090. margin-right: 5px;
  21091. }
  21092. .videoTop {
  21093. display: flex;
  21094. flex-direction: row;
  21095. justify-content: space-between;
  21096. background: #fff;
  21097. align-items: center;
  21098. width: 95%;
  21099. padding: 20px;
  21100. }
  21101. .filebox {
  21102. display: flex;
  21103. flex-wrap: wrap;
  21104. flex-direction: column;
  21105. padding: 0 0 5px;
  21106. position: relative;
  21107. }
  21108. .filebox:before {
  21109. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21110. position: absolute;
  21111. top: 20px;
  21112. left: 13px;
  21113. border-left: 2px dotted #cad1dc;
  21114. height: calc(100% - 15px);
  21115. }
  21116. .toolHeng2 > div:last-child::before {
  21117. height: calc(100% - 43px);
  21118. }
  21119. .filebox .tooldetail {
  21120. width: calc(100%);
  21121. margin: 0px 12px;
  21122. padding: 12px;
  21123. line-height: 30px;
  21124. word-break: break-word;
  21125. background: #ffffff;
  21126. border-radius: 8px 8px 8px 8px;
  21127. opacity: 1;
  21128. border: 1px solid #cad1dc;
  21129. overflow:hidden;
  21130. box-sizing:border-box;
  21131. }
  21132. .file {
  21133. display: flex;
  21134. flex-direction: column;
  21135. align-items: center;
  21136. justify-content: center;
  21137. cursor: pointer;
  21138. width: 200px;
  21139. }
  21140. .file div {
  21141. margin-top: 10px;
  21142. width: 150px;
  21143. text-align: center;
  21144. overflow: hidden;
  21145. white-space: nowrap;
  21146. text-overflow: ellipsis;
  21147. }
  21148. .media {
  21149. display: flex;
  21150. flex-direction: column;
  21151. align-items: center;
  21152. justify-content: center;
  21153. margin: 0 20px 20px 0;
  21154. cursor: pointer;
  21155. margin: 12px 0 5px 15px;
  21156. overflow: hidden;
  21157. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21158. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21159. box-sizing: border-box;
  21160. }
  21161. .media img {
  21162. height: 90px;
  21163. width: 160px;
  21164. object-fit: cover;
  21165. }
  21166. .media .title {
  21167. padding: 5px;
  21168. text-align: left;
  21169. width: 100%;
  21170. box-sizing: border-box;
  21171. }
  21172. .media .btn {
  21173. width: 100%;
  21174. height: 35px;
  21175. line-height: 35px;
  21176. color: #fff;
  21177. background: #606060;
  21178. text-align: center;
  21179. overflow: hidden;
  21180. white-space: nowrap;
  21181. text-overflow: ellipsis;
  21182. }
  21183. .detail_content_top {
  21184. width: 100%;
  21185. padding: 25px 0 25px 0;
  21186. }
  21187. .detail_title {
  21188. text-align: center;
  21189. font-size: 24px;
  21190. }
  21191. .detail_time {
  21192. font-size: 13px;
  21193. padding: 15px 0 0 40px;
  21194. }
  21195. .detail_content {
  21196. line-height: 2pc;
  21197. width: 90%;
  21198. margin: 0 auto;
  21199. padding-top: 30px;
  21200. text-indent: 30px;
  21201. overflow: auto;
  21202. height: 200px;
  21203. }
  21204. .score_box >>> .el-rate {
  21205. margin-left: 10px;
  21206. }
  21207. .dialog_change >>> .el-dialog {
  21208. border-radius: 5px;
  21209. }
  21210. .dialog_change >>> .el-dialog__header {
  21211. background: #f2f2f2;
  21212. text-align: center;
  21213. }
  21214. .dialog_change >>> .el-dialog__title {
  21215. line-height: 5px;
  21216. }
  21217. .dialog_change >>> .el-dialog__body {
  21218. background: #fff;
  21219. padding: 10px 20px;
  21220. }
  21221. .score_box {
  21222. display: flex;
  21223. align-items: center;
  21224. margin-bottom: 18px;
  21225. margin-top: 20px;
  21226. }
  21227. .up_photo {
  21228. width: 120px;
  21229. cursor: pointer;
  21230. margin-top: 10px;
  21231. }
  21232. .up_photo2 {
  21233. width: 180px;
  21234. box-sizing: border-box;
  21235. min-width: 180px;
  21236. height: 180px;
  21237. max-height: 180px;
  21238. min-height: 180px;
  21239. cursor: pointer;
  21240. display: flex;
  21241. flex-direction: column;
  21242. align-items: center;
  21243. justify-content: center;
  21244. background: rgb(242, 246, 255);
  21245. /* padding: 25px; */
  21246. margin-bottom: 10px;
  21247. }
  21248. .up_photo2 img {
  21249. width: 50%;
  21250. height: auto;
  21251. }
  21252. .up_photo2 span {
  21253. color: #898989;
  21254. }
  21255. .plworkBox {
  21256. display: flex;
  21257. align-items: center;
  21258. margin-top: 10px;
  21259. flex-wrap: wrap;
  21260. }
  21261. .upload_send {
  21262. margin: 30px auto 30px;
  21263. width: 60%;
  21264. background: #3681fc;
  21265. text-align: center;
  21266. height: 35px;
  21267. line-height: 35px;
  21268. color: #fff;
  21269. border-radius: 5px;
  21270. cursor: pointer;
  21271. }
  21272. .marginT {
  21273. margin-top: 20px;
  21274. }
  21275. .cd_content_steps {
  21276. display: flex;
  21277. width: 90%;
  21278. justify-content: space-around;
  21279. border-top: 1px solid #eeeeee;
  21280. }
  21281. .cd_steps_box {
  21282. display: flex;
  21283. justify-content: center;
  21284. align-items: center;
  21285. flex-direction: column;
  21286. cursor: pointer;
  21287. }
  21288. .first {
  21289. display: flex;
  21290. align-items: center;
  21291. margin: 15px 0 20px 0;
  21292. font-size: 20px;
  21293. }
  21294. .first > div:nth-child(2) {
  21295. font-size: 16px !important;
  21296. padding-left: 10px;
  21297. line-height: 26px;
  21298. box-sizing: border-box;
  21299. }
  21300. .blue_box_one {
  21301. text-align: center;
  21302. color: #fff;
  21303. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  21304. border-radius: 7px;
  21305. margin: 10px;
  21306. cursor: pointer;
  21307. width: 95%;
  21308. height: 45px;
  21309. display: flex;
  21310. flex-direction: row;
  21311. justify-content: flex-start;
  21312. align-items: center;
  21313. }
  21314. .blue_box_one > div:nth-child(1) {
  21315. line-height: 30px;
  21316. margin: 0 5px 0 10px;
  21317. width: 30%;
  21318. min-width: 70px;
  21319. border-radius: 4px;
  21320. }
  21321. .blue_box_one > div:nth-child(2) {
  21322. white-space: nowrap;
  21323. text-overflow: ellipsis;
  21324. overflow: hidden;
  21325. word-break: break-all;
  21326. width: 70%;
  21327. text-align: left;
  21328. margin-right: 10px;
  21329. max-width: calc(100% - 85px);
  21330. }
  21331. .blue_box_one > div:nth-child(2):hover {
  21332. overflow: hidden;
  21333. text-overflow: ellipsis;
  21334. white-space: nowrap;
  21335. cursor: pointer;
  21336. }
  21337. .upFile {
  21338. margin: 0 auto;
  21339. width: 120px;
  21340. background: #3681fc;
  21341. color: #fff;
  21342. height: 30px;
  21343. text-align: center;
  21344. line-height: 30px;
  21345. border-radius: 5px;
  21346. font-size: 14px;
  21347. cursor: pointer;
  21348. }
  21349. .courseTitle {
  21350. width: 85%;
  21351. margin: 10px auto 26px auto;
  21352. display: flex;
  21353. flex-direction: row;
  21354. align-items: center;
  21355. justify-content: space-between;
  21356. text-align: center;
  21357. }
  21358. .courseTitle .ctitle {
  21359. font-size: 20px;
  21360. font-weight: bold;
  21361. color: #0e1e33;
  21362. white-space: nowrap;
  21363. overflow: hidden;
  21364. text-overflow: ellipsis;
  21365. }
  21366. .inviteBox {
  21367. font-size: 14px;
  21368. /* margin-top: 5px; */
  21369. color: #00000099;
  21370. text-align: center;
  21371. }
  21372. .courseTitle >>> .el-tooltip {
  21373. width: 100%;
  21374. white-space: nowrap;
  21375. overflow: hidden;
  21376. text-overflow: ellipsis;
  21377. word-break: break-word;
  21378. }
  21379. .ml {
  21380. margin-left: 20px;
  21381. color: #5b7dba;
  21382. border-left: 3px solid #5b7dba;
  21383. padding-left: 5px;
  21384. font-weight: bold;
  21385. }
  21386. .return {
  21387. width: 2rem;
  21388. height: 2rem;
  21389. cursor: pointer;
  21390. }
  21391. .return > img {
  21392. width: 100%;
  21393. height: 100%;
  21394. }
  21395. .returnBtn {
  21396. width: 86px;
  21397. height: 36px;
  21398. background: #3681fc;
  21399. border-radius: 4px;
  21400. color: #fff;
  21401. text-align: center;
  21402. line-height: 36px;
  21403. margin-right: 20px;
  21404. cursor: pointer;
  21405. font-size: 14px;
  21406. font-weight: 400;
  21407. display: flex;
  21408. flex-direction: row;
  21409. flex-wrap: nowrap;
  21410. align-items: center;
  21411. justify-content: center;
  21412. }
  21413. .reBtnIcon,
  21414. .commentIcon,
  21415. .vedioIcon,
  21416. .vedioIcon1 {
  21417. /* width: 36px; */
  21418. height: 36px;
  21419. border-radius: 4px;
  21420. position: relative;
  21421. /* background: #e0eafb; */
  21422. background: #0061ff;
  21423. cursor: pointer;
  21424. margin-right: 12px;
  21425. display: flex;
  21426. align-items: center;
  21427. padding: 0 10px;
  21428. box-sizing: border-box;
  21429. font-size: 14px;
  21430. color: #fff;
  21431. }
  21432. .reBtnIcon::before,
  21433. .commentIcon::before,
  21434. .vedioIcon::before,
  21435. .vedioIcon1::before {
  21436. content: "";
  21437. display: block;
  21438. background-size: 100% 100%;
  21439. background-repeat: no-repeat;
  21440. width: 20px;
  21441. height: 20px;
  21442. margin-right: 5px;
  21443. /* position: absolute; */
  21444. /* top: 8px;
  21445. left: 8px; */
  21446. }
  21447. .vedioIcon1 {
  21448. background: #f63564;
  21449. }
  21450. .reBtnIcon::before {
  21451. background-image: url("../../assets/icon/newIcons/refresh.png");
  21452. }
  21453. .commentIcon::before {
  21454. background-image: url("../../assets/icon/newIcons/comment.png");
  21455. }
  21456. .vedioIcon::before {
  21457. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21458. }
  21459. .vedioIcon1::before {
  21460. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  21461. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21462. }
  21463. .tool {
  21464. display: flex;
  21465. flex-direction: column;
  21466. flex-wrap: nowrap;
  21467. width: 13%;
  21468. margin: 0 30px;
  21469. align-items: center;
  21470. position: relative;
  21471. padding: 10px 25px;
  21472. cursor: pointer;
  21473. }
  21474. .whiteBIcon {
  21475. width: 150px;
  21476. }
  21477. .whiteBIcon > img {
  21478. width: 100%;
  21479. height: 100%;
  21480. }
  21481. .mask {
  21482. background-color: rgba(0, 0, 0, 0);
  21483. position: fixed;
  21484. top: 0;
  21485. left: 0;
  21486. width: 100%;
  21487. height: 100%;
  21488. z-index: 20000;
  21489. display: flex;
  21490. align-items: center;
  21491. justify-content: center;
  21492. }
  21493. .progressBox {
  21494. width: 500px;
  21495. height: 180px;
  21496. background: #fff;
  21497. border-radius: 10px;
  21498. box-shadow: 0 0 6px 1px #bfbfbf;
  21499. display: flex;
  21500. align-items: center;
  21501. justify-content: center;
  21502. flex-direction: column;
  21503. position: relative;
  21504. color: #6c6c6c;
  21505. }
  21506. .progressBox >>> .el-progress-bar__outer {
  21507. background-color: #d1dfff !important;
  21508. }
  21509. .progressBox .lbox {
  21510. height: 50px;
  21511. font-size: 19px;
  21512. display: flex;
  21513. align-items: center;
  21514. color: #747474;
  21515. }
  21516. .progressBox .lbox img {
  21517. width: 40px;
  21518. margin-right: 20px;
  21519. }
  21520. .closeCss {
  21521. position: absolute;
  21522. top: 8px;
  21523. right: 8px;
  21524. cursor: pointer;
  21525. width: 20px;
  21526. height: 20px;
  21527. }
  21528. .closeCss > img {
  21529. width: 100%;
  21530. height: 100%;
  21531. }
  21532. .uploadVedio {
  21533. display: flex;
  21534. flex-direction: column;
  21535. flex-wrap: nowrap;
  21536. justify-content: center;
  21537. align-items: center;
  21538. margin: 0 15px 10px 0;
  21539. }
  21540. .uploadVedio > img {
  21541. width: 30px;
  21542. height: 30px;
  21543. }
  21544. .uploadVedio > span {
  21545. white-space: nowrap;
  21546. overflow: hidden;
  21547. text-overflow: ellipsis;
  21548. width: 75px;
  21549. margin-top: 7px;
  21550. }
  21551. .picName {
  21552. white-space: nowrap;
  21553. overflow: hidden;
  21554. text-overflow: ellipsis;
  21555. width: 75px;
  21556. margin-top: 7px;
  21557. }
  21558. .new_top {
  21559. display: flex;
  21560. background: #fff;
  21561. flex-direction: row;
  21562. justify-content: flex-start;
  21563. align-items: center;
  21564. height: 60px;
  21565. position: fixed;
  21566. top: 20px;
  21567. left: 22%;
  21568. width: 77%;
  21569. z-index: 999;
  21570. border-radius: 12px 12px 0 0;
  21571. border-bottom: 1px solid #cad1dc;
  21572. padding: 10px 0;
  21573. }
  21574. .new_topFixed {
  21575. width: 100%;
  21576. height: 40px;
  21577. position: fixed;
  21578. top: 0px;
  21579. display: block;
  21580. background: #f2f2f2;
  21581. z-index: 998;
  21582. }
  21583. .before {
  21584. position: absolute;
  21585. background: #c3dad4;
  21586. width: 6px;
  21587. height: 100%;
  21588. }
  21589. .courseIndex {
  21590. display: flex;
  21591. flex-direction: row;
  21592. align-items: center;
  21593. width: calc(100% - 745px);
  21594. }
  21595. .courseIndex > div:nth-child(1) {
  21596. margin: 0 0 0 10px;
  21597. font-size: 20px;
  21598. min-width: 100px;
  21599. font-weight: bold;
  21600. border-left: 4px solid #3363b9;
  21601. height: 32px;
  21602. text-align: center;
  21603. line-height: 35px;
  21604. }
  21605. .courseIndex > div:nth-child(2) {
  21606. font-size: 20px;
  21607. /* width: 300px; */
  21608. max-width: calc(100% - 105px);
  21609. white-space: nowrap;
  21610. overflow: hidden;
  21611. text-overflow: ellipsis;
  21612. }
  21613. .courseIndex > div:nth-child(3) {
  21614. border-bottom: 1px solid #d7d7d7;
  21615. padding-bottom: 5px;
  21616. background: #3681fc;
  21617. width: 55px;
  21618. min-width: 55px;
  21619. border-radius: 5px;
  21620. color: #fff;
  21621. text-align: center;
  21622. height: 20px;
  21623. line-height: 26px;
  21624. font-size: 14px;
  21625. margin: 0 0 0 10px;
  21626. }
  21627. .course_text {
  21628. padding: 20px 0 0 15px;
  21629. text-indent: 30px;
  21630. width: 80%;
  21631. min-height: 20px;
  21632. }
  21633. .vedioList {
  21634. background: #f2f2f2;
  21635. border: 1px solid #ececec;
  21636. /* width: 38.8%; */
  21637. /* width: 300px; */
  21638. width: 100%;
  21639. height: 445px;
  21640. border-radius: 10px;
  21641. overflow: hidden;
  21642. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  21643. }
  21644. .vedioNav {
  21645. margin: 10px 0 0 15px;
  21646. border-bottom: 1px solid #d7d7d7;
  21647. padding-bottom: 5px;
  21648. background: #3681fc;
  21649. width: 55px;
  21650. min-width: 55px;
  21651. border-radius: 5px;
  21652. color: #fff;
  21653. text-align: center;
  21654. height: 20px;
  21655. line-height: 26px;
  21656. font-size: 14px;
  21657. }
  21658. .queTop {
  21659. display: flex;
  21660. padding: 20px 0 20px 30px;
  21661. width: 100%;
  21662. flex-direction: row;
  21663. justify-content: flex-start;
  21664. align-items: center;
  21665. box-sizing: border-box;
  21666. }
  21667. .queTopTitle {
  21668. display: flex;
  21669. flex-direction: row;
  21670. flex-wrap: nowrap;
  21671. align-items: center;
  21672. font-weight: bold;
  21673. font-size: 20px;
  21674. color: rgb(14, 30, 51);
  21675. }
  21676. .queTopTitle::before {
  21677. content: "";
  21678. width: 2px;
  21679. height: 22px;
  21680. background: #3681fc;
  21681. border-radius: 3px;
  21682. display: block;
  21683. margin: 2px 6px 0 0;
  21684. }
  21685. .queTopRight {
  21686. display: flex;
  21687. flex-direction: row;
  21688. flex-wrap: nowrap;
  21689. align-items: center;
  21690. }
  21691. .queTopClose {
  21692. margin-right: 20px;
  21693. cursor: pointer;
  21694. position: relative;
  21695. display: flex;
  21696. }
  21697. .closeImg,
  21698. .openImg {
  21699. width: 25px;
  21700. height: 25px;
  21701. position: absolute;
  21702. left: -20px;
  21703. top: -1px;
  21704. }
  21705. .closeImg > img,
  21706. .openImg > img {
  21707. width: 100%;
  21708. height: 100%;
  21709. }
  21710. .question {
  21711. width: 40px;
  21712. margin-right: 10px;
  21713. margin-top: 7px;
  21714. }
  21715. .queTitle {
  21716. margin-left: 5px;
  21717. font-size: 25px;
  21718. display: flex;
  21719. align-items: center;
  21720. }
  21721. .addEditor {
  21722. width: 100px;
  21723. height: 30px;
  21724. background: #42cda6;
  21725. color: #fff;
  21726. border-radius: 5px;
  21727. text-align: center;
  21728. line-height: 30px;
  21729. box-shadow: 1px 3px 6px 1px #bfbfbf;
  21730. cursor: pointer;
  21731. }
  21732. /* .vedioName {
  21733. cursor: pointer;
  21734. margin: 0px 0px 10px 5px;
  21735. white-space: nowrap;
  21736. overflow: hidden;
  21737. text-overflow: ellipsis;
  21738. width: 100%;
  21739. } */
  21740. .vedioTime {
  21741. width: 35px;
  21742. position: absolute;
  21743. color: #fff;
  21744. bottom: 0px;
  21745. right: 0px;
  21746. text-align: center;
  21747. background: #46411f;
  21748. height: 20px;
  21749. font-size: 14px;
  21750. line-height: 20px;
  21751. }
  21752. .homework {
  21753. width: 200px;
  21754. display: flex;
  21755. flex-direction: column;
  21756. flex-wrap: nowrap;
  21757. align-items: center;
  21758. cursor: pointer;
  21759. }
  21760. .homebox {
  21761. display: flex;
  21762. flex-wrap: wrap;
  21763. flex-direction: row;
  21764. justify-content: flex-start;
  21765. align-items: center;
  21766. padding: 15px 0;
  21767. }
  21768. .isChooseActive {
  21769. color: #3681fc !important;
  21770. font-weight: bold !important;
  21771. }
  21772. .chooseWho {
  21773. display: flex;
  21774. width: 100%;
  21775. flex-direction: row;
  21776. flex-wrap: nowrap;
  21777. justify-content: flex-start;
  21778. padding-bottom: 10px;
  21779. }
  21780. .chooseWho > div {
  21781. cursor: pointer;
  21782. padding-bottom: 10px;
  21783. margin: 0 30px 0 0;
  21784. font-weight: 400;
  21785. color: #0e1e33;
  21786. }
  21787. .addPoint > div > img {
  21788. cursor: pointer;
  21789. width: 85px;
  21790. border-radius: 15px;
  21791. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  21792. }
  21793. .addPoint > div {
  21794. display: flex;
  21795. flex-direction: column;
  21796. flex-wrap: nowrap;
  21797. align-items: center;
  21798. }
  21799. .isBorder > div {
  21800. margin: 0 0 10px 0;
  21801. align-items: flex-start !important;
  21802. }
  21803. .noiframeBox {
  21804. display: flex;
  21805. flex-wrap: wrap;
  21806. }
  21807. .iframeBox iframe {
  21808. width: 100%;
  21809. height: 800px;
  21810. border: none;
  21811. margin-bottom: 20px;
  21812. border: 1px solid #ccc;
  21813. }
  21814. .upload_toolBtn {
  21815. background: #3681fc;
  21816. color: #fff;
  21817. width: 110px;
  21818. text-align: center;
  21819. height: 35px;
  21820. line-height: 35px;
  21821. font-size: 14px;
  21822. border-radius: 5px;
  21823. cursor: pointer;
  21824. position: absolute;
  21825. right: 10px;
  21826. bottom: 0;
  21827. }
  21828. .binfo_input,
  21829. .pj {
  21830. font: inherit;
  21831. color: currentColor;
  21832. width: 100%;
  21833. margin: 0;
  21834. padding: 15px 14px;
  21835. display: block;
  21836. min-width: 0;
  21837. outline: none;
  21838. box-sizing: content-box;
  21839. background: none;
  21840. -webkit-tap-highlight-color: transparent;
  21841. border: 1px solid rgba(0, 0, 0, 0.23);
  21842. border-radius: 4px;
  21843. box-sizing: border-box;
  21844. resize: none;
  21845. }
  21846. .binfo_input:focus-visible {
  21847. border: 1px solid rgba(61, 103, 188);
  21848. }
  21849. .dialog_diy >>> .el-dialog__header,
  21850. .dialog_diy1 >>> .el-dialog__header {
  21851. background: #454545 !important;
  21852. padding: 15px 20px;
  21853. }
  21854. .dialog_diy >>> .el-dialog__title,
  21855. .dialog_diy1 >>> .el-dialog__title {
  21856. color: #fff;
  21857. }
  21858. .dialog_diy >>> .el-dialog__headerbtn,
  21859. .dialog_diy1 >>> .el-dialog__headerbtn {
  21860. top: 19px;
  21861. }
  21862. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21863. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21864. color: #fff;
  21865. }
  21866. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21867. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21868. color: #fff;
  21869. }
  21870. .dialog_diy1 >>> .el-dialog__body {
  21871. padding: 0;
  21872. }
  21873. .dialog_diy >>> .el-dialog__body,
  21874. .dialog_diy >>> .el-dialog__footer,
  21875. .dialog_diy1 >>> .el-dialog__footer {
  21876. background: #fafafa;
  21877. }
  21878. .a_addBox {
  21879. padding: 0 0 0 15px;
  21880. }
  21881. .a_add_box {
  21882. padding: 10px;
  21883. background: #fff;
  21884. margin-bottom: 10px;
  21885. border-radius: 5px;
  21886. box-shadow: 0 0 5px 0 #d5d5d5;
  21887. }
  21888. .a_add_head {
  21889. display: flex;
  21890. align-items: flex-start;
  21891. /* justify-content: space-between; */
  21892. flex-direction: column;
  21893. /* flex-direction: row; */
  21894. margin: 10px 0 20px 0;
  21895. font-size: 18px;
  21896. width: 100%;
  21897. }
  21898. .askIndex {
  21899. background: #3681fc;
  21900. border-radius: 50%;
  21901. color: #fff;
  21902. width: 25px;
  21903. height: 25px;
  21904. min-width: 25px;
  21905. min-height: 25px;
  21906. text-align: center;
  21907. line-height: 25px;
  21908. margin-right: 5px;
  21909. }
  21910. .a_add_head .a_add_head_input {
  21911. width: 300px;
  21912. }
  21913. .a_add_head .a_add_head_div {
  21914. display: flex;
  21915. align-items: center;
  21916. justify-content: space-between;
  21917. }
  21918. .a_add_body {
  21919. display: flex;
  21920. align-items: center;
  21921. }
  21922. .a_add_input {
  21923. display: flex;
  21924. align-items: center;
  21925. flex-wrap: wrap;
  21926. width: 100%;
  21927. }
  21928. .a_add_input >>> .el-radio-group,
  21929. .a_add_input >>> .el-checkbox-group {
  21930. width: 100%;
  21931. }
  21932. .a_add_input >>> .el-radio,
  21933. .a_add_input >>> .el-checkbox {
  21934. display: flex;
  21935. flex-direction: row;
  21936. flex-wrap: nowrap;
  21937. align-items: center;
  21938. padding: 15px 0;
  21939. }
  21940. .a_add_input >>> .el-radio:not(:last-child),
  21941. .a_add_input >>> .el-checkbox:not(:last-child) {
  21942. width: 100%;
  21943. border-bottom: 1px solid #efefef;
  21944. }
  21945. .redioStyle >>> .el-radio__label {
  21946. font-size: 18px;
  21947. }
  21948. .redioStyle >>> .el-radio__label > span,
  21949. .redioStyle >>> .el-checkbox__label > span {
  21950. word-break: break-all;
  21951. white-space: normal;
  21952. }
  21953. .redioStyle >>> .el-checkbox__label {
  21954. font-size: 18px;
  21955. }
  21956. .toolHeng2 {
  21957. width: 100%;
  21958. padding-left: 15px;
  21959. box-sizing: border-box;
  21960. }
  21961. .workNav {
  21962. font-size: 20px;
  21963. font-weight: bold;
  21964. color: #0e1e33;
  21965. display: flex;
  21966. flex-direction: row;
  21967. flex-wrap: nowrap;
  21968. align-items: center;
  21969. padding: 15px 0 15px 0;
  21970. }
  21971. .workNav::before {
  21972. content: "";
  21973. width: 2px;
  21974. height: 22px;
  21975. background: #3681fc;
  21976. border-radius: 3px;
  21977. display: block;
  21978. margin: 2px 6px 0 0;
  21979. }
  21980. .toolHeng {
  21981. display: flex;
  21982. flex-direction: row;
  21983. flex-wrap: wrap;
  21984. justify-content: flex-start;
  21985. align-items: center;
  21986. width: 100%;
  21987. }
  21988. .toolHeng > div {
  21989. padding-left: 20px;
  21990. }
  21991. .isWidth {
  21992. width: 20%;
  21993. }
  21994. .textTitle {
  21995. display: flex;
  21996. flex-direction: row;
  21997. flex-wrap: nowrap;
  21998. align-items: center;
  21999. width: 95%;
  22000. }
  22001. .textTitle >>> .el-form-item__label {
  22002. font-size: 22px;
  22003. color: #918f8f;
  22004. width: 100px;
  22005. }
  22006. .textTitle >>> .el-form-item__content {
  22007. width: calc(100% - 100px);
  22008. }
  22009. .textCss >>> .el-dialog {
  22010. width: 800px !important;
  22011. height: 400px;
  22012. background: #fafafa;
  22013. }
  22014. .textCss >>> .el-dialog__body {
  22015. margin: 55px 8% 0 8%;
  22016. padding: 0 !important;
  22017. }
  22018. .textCss >>> .el-dialog__footer {
  22019. padding-top: 38px;
  22020. }
  22021. .toolsCss >>> .el-dialog__body {
  22022. padding: 20px;
  22023. }
  22024. .lineCss >>> .el-dialog__body {
  22025. display: flex;
  22026. flex-direction: row;
  22027. align-items: center;
  22028. justify-content: center;
  22029. }
  22030. .newNav {
  22031. display: flex;
  22032. flex-direction: row;
  22033. align-items: baseline;
  22034. justify-content: flex-start;
  22035. }
  22036. .navListItem {
  22037. width: calc(100% - 20px);
  22038. height: 50px;
  22039. margin: 0px auto 10px;
  22040. display: flex;
  22041. flex-direction: row;
  22042. flex-wrap: nowrap;
  22043. align-items: center;
  22044. justify-content: space-between;
  22045. background: #f0f4fa;
  22046. border-radius: 6px 6px 6px 6px;
  22047. }
  22048. .navText {
  22049. cursor: pointer;
  22050. white-space: nowrap;
  22051. overflow: hidden;
  22052. text-overflow: ellipsis;
  22053. width: 220px;
  22054. padding: 0 10px;
  22055. font-weight: 400;
  22056. color: #0e1e33;
  22057. }
  22058. .downIcon {
  22059. width: 20px;
  22060. min-width: 20px;
  22061. height: 20px;
  22062. margin-right: 15px;
  22063. cursor: pointer;
  22064. }
  22065. .downIcon > img {
  22066. width: 100%;
  22067. height: 100%;
  22068. }
  22069. .noVedio {
  22070. display: flex;
  22071. flex-direction: row;
  22072. justify-content: center;
  22073. align-content: center;
  22074. }
  22075. .noNavText {
  22076. cursor: pointer;
  22077. margin: 0px 0px 10px 5px;
  22078. width: 112px;
  22079. }
  22080. .listNoVedio {
  22081. margin: 0 0 0 30px;
  22082. width: 97%;
  22083. }
  22084. .video-player >>> .video-js {
  22085. height: 100%;
  22086. }
  22087. .hangVedioList {
  22088. width: 90% !important;
  22089. height: 150px !important;
  22090. margin: 20px 0 0 30px;
  22091. }
  22092. .hangVedio {
  22093. width: 100%;
  22094. height: 170px !important;
  22095. align-items: flex-start !important;
  22096. }
  22097. .hangHand {
  22098. height: 150px !important;
  22099. }
  22100. .twoChild {
  22101. width: 95%;
  22102. margin: 10px;
  22103. border-radius: 5px;
  22104. background: #f2f2f2;
  22105. display: flex;
  22106. flex-direction: column;
  22107. flex-wrap: nowrap;
  22108. justify-content: flex-start;
  22109. align-items: flex-start;
  22110. transition: all 0.5s;
  22111. overflow: hidden;
  22112. height: 0;
  22113. background: #e7f3ff;
  22114. }
  22115. .twoChild > div:nth-child(1) {
  22116. margin-top: 5px;
  22117. }
  22118. .navChild {
  22119. width: 100%;
  22120. cursor: pointer;
  22121. margin-bottom: 10px;
  22122. position: relative;
  22123. }
  22124. .navChild img {
  22125. position: absolute;
  22126. right: 11px;
  22127. width: 15px;
  22128. top: 50%;
  22129. transform: translateY(-50%);
  22130. }
  22131. .navActive,
  22132. .toolActive {
  22133. height: auto !important;
  22134. overflow: auto !important;
  22135. /* padding-bottom: 16px; */
  22136. }
  22137. .toolActive {
  22138. padding: 0;
  22139. }
  22140. .navTask {
  22141. display: flex;
  22142. flex-direction: row;
  22143. flex-wrap: nowrap;
  22144. align-items: center;
  22145. align-content: flex-start;
  22146. height: 40px;
  22147. justify-content: flex-start;
  22148. padding: 0 10px;
  22149. width: 100%;
  22150. box-sizing: border-box;
  22151. }
  22152. .navTaskname {
  22153. white-space: nowrap;
  22154. text-overflow: ellipsis;
  22155. overflow: hidden;
  22156. word-break: break-all;
  22157. padding-left: 5px;
  22158. }
  22159. .openTaskActive {
  22160. /* background-color: #e0eafb !important;
  22161. color: #0061ff; */
  22162. color:#fff;
  22163. background: rgb(55, 129, 252) !important;
  22164. }
  22165. .iframeName {
  22166. margin: 5px 0;
  22167. border-left: 4px solid #41c4a4;
  22168. padding-left: 4px;
  22169. }
  22170. .toolTitle {
  22171. margin: 0px 0px 20px;
  22172. font-size: 20px;
  22173. font-weight: 500;
  22174. border-left: 4px solid #41c4a4;
  22175. padding-left: 4px;
  22176. }
  22177. .cru_selectBox {
  22178. overflow: auto;
  22179. width: 95%;
  22180. margin: 17px auto 0;
  22181. height: calc(100% - 40px - 21px - 20px - 17px);
  22182. background: #fff;
  22183. border-radius: 8px;
  22184. }
  22185. .cru_selectBox::-webkit-scrollbar,
  22186. .study_top::-webkit-scrollbar,
  22187. .textContent::-webkit-scrollbar {
  22188. /*滚动条整体样式*/
  22189. width: 6px;
  22190. /*高宽分别对应横竖滚动条的尺寸*/
  22191. height: 6px;
  22192. }
  22193. /*定义滚动条轨道 内阴影+圆角*/
  22194. .cru_selectBox::-webkit-scrollbar-track,
  22195. .study_top::-webkit-scrollbar-track,
  22196. .textContent::-webkit-scrollbar {
  22197. border-radius: 10px;
  22198. background-color: #b8bdc9;
  22199. }
  22200. /*定义滑块 内阴影+圆角*/
  22201. .cru_selectBox::-webkit-scrollbar-thumb,
  22202. .study_top::-webkit-scrollbar-thumb,
  22203. .textContent::-webkit-scrollbar-thumb {
  22204. border-radius: 10px;
  22205. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22206. background-color: #2c5ab3;
  22207. }
  22208. .vedioBox {
  22209. border-radius: 0 0 20px 20px;
  22210. background: #fff;
  22211. overflow: auto;
  22212. }
  22213. .taskBox {
  22214. width: 98%;
  22215. background: #f0f4fa;
  22216. margin: 10px auto;
  22217. padding: 0 10px;
  22218. border-radius: 4px;
  22219. box-sizing: border-box;
  22220. }
  22221. .vedioTaskBox {
  22222. width: 100%;
  22223. display: flex;
  22224. flex-direction: row;
  22225. flex-wrap: nowrap;
  22226. align-items: flex-start;
  22227. position: relative;
  22228. }
  22229. .toolBox {
  22230. margin: 15px 0 0 25px;
  22231. display: flex;
  22232. position: relative;
  22233. padding: 18px 20px;
  22234. border-top-left-radius: 5px;
  22235. border-top-right-radius: 5px;
  22236. width: 90%;
  22237. }
  22238. .btnAll {
  22239. position: absolute;
  22240. right: 0;
  22241. display: flex;
  22242. flex-direction: row;
  22243. flex-wrap: nowrap;
  22244. align-items: center;
  22245. }
  22246. .btnLeft,
  22247. .btnRight {
  22248. display: flex;
  22249. flex-direction: row;
  22250. flex-wrap: nowrap;
  22251. align-items: center;
  22252. padding: 5px 0;
  22253. }
  22254. .btnLeft {
  22255. border-right: 1px solid #cad1dc;
  22256. }
  22257. .btnLeft > .custom-tooltip {
  22258. background: #3681fc;
  22259. color: #fff;
  22260. }
  22261. .last:hover {
  22262. background: #3383fa !important;
  22263. color: #fff;
  22264. border: 1px solid #3383fa !important;
  22265. }
  22266. .last,
  22267. .returnBtn1 {
  22268. width: 90px;
  22269. height: 36px;
  22270. background: #ffffff;
  22271. border-radius: 4px;
  22272. border: 1px solid #0061ff;
  22273. color: #0061ff;
  22274. cursor: pointer;
  22275. display: flex;
  22276. flex-direction: row;
  22277. flex-wrap: nowrap;
  22278. align-items: center;
  22279. justify-content: center;
  22280. margin-left: 12px;
  22281. }
  22282. .returnBtn1 {
  22283. background: #f0f4fa;
  22284. border-radius: 4px;
  22285. border: 1px solid #cad1dc;
  22286. margin: 0 12px;
  22287. }
  22288. .lastImg {
  22289. min-width: 15px;
  22290. width: 15px;
  22291. height: 15px;
  22292. display: flex;
  22293. }
  22294. .lastText {
  22295. padding: 0 5px 0 5px;
  22296. box-sizing: border-box;
  22297. font-size: 14px;
  22298. }
  22299. .lastImg > img {
  22300. width: 100%;
  22301. height: 100%;
  22302. }
  22303. /* .vedioTimeBox {
  22304. display: flex;
  22305. flex-direction: row;
  22306. align-items: center;
  22307. flex-wrap: nowrap;
  22308. position: relative;
  22309. } */
  22310. .navBox {
  22311. background: #fff;
  22312. height: calc(100% - 40px);
  22313. overflow-y: auto;
  22314. overflow-x: hidden;
  22315. }
  22316. .worksBox {
  22317. margin: 0 0 10px 25px;
  22318. border-bottom: 1px solid #eeeeee;
  22319. padding: 18px 20px;
  22320. border-radius: 4px;
  22321. width: 90%;
  22322. }
  22323. .worksBTitle {
  22324. font-size: 20px;
  22325. padding-bottom: 15px;
  22326. border-bottom: 1px solid #eeeeee;
  22327. display: flex;
  22328. align-items: center;
  22329. }
  22330. .greenBox {
  22331. width: 5px;
  22332. height: 30px;
  22333. background: #63b6fa;
  22334. margin-right: 5px;
  22335. }
  22336. .worksDetailBox {
  22337. display: flex;
  22338. width: 100%;
  22339. flex-direction: row;
  22340. flex-wrap: wrap;
  22341. align-items: flex-end;
  22342. justify-content: flex-start;
  22343. padding: 15px 5px;
  22344. box-sizing: border-box;
  22345. }
  22346. .works {
  22347. display: flex;
  22348. flex-direction: column;
  22349. flex-wrap: nowrap;
  22350. align-items: flex-start;
  22351. justify-content: flex-start;
  22352. align-content: center;
  22353. max-width: 240px;
  22354. width: calc(100% / 3 - 10px);
  22355. height: auto;
  22356. margin-right: 10px;
  22357. margin-bottom: 10px;
  22358. overflow: hidden;
  22359. height: 140px;
  22360. box-shadow: 0 0 6px 1px #dfdada;
  22361. border-radius: 15px;
  22362. }
  22363. .workImg {
  22364. width: 100%;
  22365. /* height: calc(100% - 40px); */
  22366. height: 105px;
  22367. position: relative;
  22368. }
  22369. .workImg > img {
  22370. width: 100%;
  22371. height: 100%;
  22372. object-fit: contain;
  22373. cursor: pointer;
  22374. }
  22375. .worksName {
  22376. height: 40px;
  22377. line-height: 40px;
  22378. display: flex;
  22379. width: 100%;
  22380. flex-direction: row;
  22381. flex-wrap: nowrap;
  22382. justify-content: space-between;
  22383. align-items: center;
  22384. margin: 0 0 0 10px;
  22385. }
  22386. .worksName > div:nth-child(1) {
  22387. width: 110px;
  22388. white-space: nowrap;
  22389. overflow: hidden;
  22390. text-overflow: ellipsis;
  22391. }
  22392. .worksName > div:nth-child(2) {
  22393. color: #b7b4b5;
  22394. }
  22395. .noWorksS {
  22396. padding: 15px 0;
  22397. display: flex;
  22398. flex-direction: row;
  22399. flex-wrap: wrap;
  22400. align-items: center;
  22401. justify-content: flex-start;
  22402. }
  22403. .noWorksName,
  22404. .isWorksName,
  22405. .isWorksName2 {
  22406. background: #ddebf8;
  22407. color: #000;
  22408. width: 90px;
  22409. height: 25px;
  22410. text-align: center;
  22411. line-height: 25px;
  22412. border-radius: 4px;
  22413. margin: 10px 15px 10px 0;
  22414. white-space: nowrap;
  22415. overflow: hidden;
  22416. padding: 5px;
  22417. text-overflow: ellipsis;
  22418. cursor: pointer;
  22419. border: 1px solid #ddebf8;
  22420. }
  22421. .noWorksName {
  22422. background: #fff;
  22423. color: #0061ff;
  22424. border: 1px solid #0061ff;
  22425. }
  22426. .noWorksName > span{
  22427. max-width: 100%;
  22428. display: block;
  22429. overflow: hidden;
  22430. text-overflow: ellipsis;
  22431. white-space: nowrap;
  22432. }
  22433. .isWorksName2 {
  22434. width: 100px;
  22435. height: 40px;
  22436. line-height: 40px;
  22437. position: relative;
  22438. background: #dae6f9;
  22439. }
  22440. .isWorksName {
  22441. background: #e7ebf1 !important;
  22442. width: 100px;
  22443. height: 40px;
  22444. line-height: 40px;
  22445. position: relative;
  22446. color: #acb4bf;
  22447. border: 1px solid #cad1dc !important;
  22448. }
  22449. .isSelectName,
  22450. .noWorksName:hover {
  22451. background: #3383fa !important;
  22452. color: #fff !important;
  22453. border: 1px solid #3383fa !important;
  22454. }
  22455. .title {
  22456. background: #1e5cc9;
  22457. /* width: 98%; */
  22458. height: 45px;
  22459. color: #fff;
  22460. line-height: 45px;
  22461. padding-left: 20px;
  22462. box-sizing: border-box;
  22463. }
  22464. .textBox {
  22465. font-size: 20px;
  22466. width: 90%;
  22467. display: flex;
  22468. flex-direction: column;
  22469. align-items: center;
  22470. margin: 20px auto 0;
  22471. max-height: calc(100% - 75px);
  22472. overflow: auto;
  22473. }
  22474. .textContent {
  22475. font-size: 18px;
  22476. width: 95%;
  22477. max-width: 95%;
  22478. }
  22479. .answerBg {
  22480. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  22481. background-size: 100% 100%;
  22482. width: 100%;
  22483. height: 100%;
  22484. color: #fff;
  22485. text-align: center;
  22486. display: flex;
  22487. flex-direction: column;
  22488. flex-wrap: nowrap;
  22489. align-items: center;
  22490. position: relative;
  22491. justify-content: center;
  22492. }
  22493. .answerBg > div:nth-child(1) {
  22494. /* font-size: 22px;
  22495. padding: 25px 0 10px; */
  22496. }
  22497. .answerContent {
  22498. width: 215px;
  22499. max-height: 60px;
  22500. word-break: break-all;
  22501. text-align: center;
  22502. /* white-space: nowrap; */
  22503. overflow: hidden;
  22504. text-overflow: ellipsis;
  22505. /* padding: 23px 0 0; */
  22506. -webkit-line-clamp: 3;
  22507. -webkit-box-orient: vertical;
  22508. display: -webkit-box;
  22509. font-size: 15px;
  22510. cursor: pointer;
  22511. }
  22512. .elist_input_box {
  22513. display: flex;
  22514. align-items: flex-start;
  22515. flex-wrap: nowrap;
  22516. padding: 10px 0 15px 30px;
  22517. flex-direction: column;
  22518. }
  22519. .elist_input {
  22520. /* width: 40%; */
  22521. width: 45%;
  22522. margin: 20px;
  22523. }
  22524. .elist_input .elist_input_box input {
  22525. font: inherit;
  22526. color: currentColor;
  22527. width: 200px;
  22528. padding: 8px 14px;
  22529. display: block;
  22530. min-width: 0;
  22531. outline: none;
  22532. border: 1px solid rgba(0, 0, 0, 0.23);
  22533. border-radius: 4px;
  22534. box-sizing: border-box;
  22535. background: #fff;
  22536. margin: 0 20px 0 0;
  22537. }
  22538. .elist_input .elist_input_box span {
  22539. height: 36px;
  22540. line-height: 36px;
  22541. color: rgb(82, 82, 82);
  22542. }
  22543. .elist_input .elist_input_box .remove {
  22544. height: 20px;
  22545. width: 20px;
  22546. background-size: 100% 100%;
  22547. background-position: unset;
  22548. margin-left: 5px;
  22549. }
  22550. .elist_input_box >>> .el-rate {
  22551. display: flex;
  22552. height: 36px;
  22553. align-items: center;
  22554. }
  22555. .elist_input_box .elist_inptu_text {
  22556. min-height: 50px;
  22557. /* width: 500px;
  22558. max-height: 150px; */
  22559. width: 100%;
  22560. line-height: 50px;
  22561. color: rgb(82, 82, 82);
  22562. overflow: auto;
  22563. text-indent: 5px;
  22564. background: #f7f6f9;
  22565. border-radius: 10px;
  22566. }
  22567. .elist_input_box .elist_inptu_text input {
  22568. width: 500px;
  22569. }
  22570. .elist_input_box >>> .el-rate__icon {
  22571. font-size: 24px;
  22572. }
  22573. .isClick {
  22574. background: #4d9def;
  22575. }
  22576. .bzBox {
  22577. display: flex;
  22578. flex-direction: row;
  22579. align-items: center;
  22580. }
  22581. .bzBox .yCss {
  22582. width: 7px;
  22583. height: 7px;
  22584. background: #fff;
  22585. margin: 0 16px 0 6px;
  22586. border-radius: 50%;
  22587. border: 5px solid #3681fc;
  22588. z-index: 99;
  22589. }
  22590. .bzBox > div:nth-child(2) {
  22591. font-size: 18px;
  22592. font-weight: bold;
  22593. color: #0e1e33;
  22594. }
  22595. .navTitile {
  22596. padding: 0 0px 0 15px;
  22597. font-size: 16px;
  22598. font-weight: bold;
  22599. color: #0e1e33;
  22600. height: 40px;
  22601. line-height: 40px;
  22602. }
  22603. .isTypeOne {
  22604. width: 240px;
  22605. height: 170px;
  22606. /* border: 1px solid #f8f8f8; */
  22607. border-radius: 10px;
  22608. box-shadow: 0 0 6px 1px #dfdada;
  22609. }
  22610. .e_add_top {
  22611. display: flex;
  22612. justify-content: space-between;
  22613. padding: 10px 20px;
  22614. border-radius: 3px;
  22615. background: #fff;
  22616. }
  22617. .e_add_title2 {
  22618. display: flex;
  22619. align-items: center;
  22620. }
  22621. .e_add_title2 span {
  22622. width: 40px;
  22623. }
  22624. .e_add_title {
  22625. display: flex;
  22626. align-items: center;
  22627. color: #b8b8b8;
  22628. font-size: 18px;
  22629. position: relative;
  22630. height: 40px;
  22631. }
  22632. .e_add_title span {
  22633. margin-right: 10px;
  22634. }
  22635. .e_add_title .el_input {
  22636. width: 300px;
  22637. }
  22638. .e_add_title >>> .el-input__inner {
  22639. width: 400px;
  22640. }
  22641. .e_add_btn {
  22642. }
  22643. .e_add_content {
  22644. display: flex;
  22645. width: 100%;
  22646. max-width: 650px;
  22647. height: 550px;
  22648. }
  22649. .e_add_list {
  22650. background: #fff;
  22651. height: 500px;
  22652. width: 210px;
  22653. position: relative;
  22654. margin: 15px 5px 0 0;
  22655. flex-shrink: 0;
  22656. display: flex;
  22657. flex-direction: column;
  22658. }
  22659. .e_add_list_title {
  22660. font-size: 20px;
  22661. width: 100%;
  22662. box-sizing: border-box;
  22663. padding: 15px 40px;
  22664. text-align: center;
  22665. border-bottom: 1px solid #eaeaea;
  22666. position: relative;
  22667. display: flex;
  22668. align-items: center;
  22669. justify-content: center;
  22670. height: 57px;
  22671. background: #f6f6f6;
  22672. }
  22673. .e_add_list_title span {
  22674. overflow: hidden;
  22675. white-space: nowrap;
  22676. text-overflow: ellipsis;
  22677. }
  22678. .e_add_list_title img {
  22679. position: absolute;
  22680. right: 15px;
  22681. width: 25px;
  22682. cursor: pointer;
  22683. top: 50%;
  22684. transform: translateY(-50%);
  22685. }
  22686. .e_add_list_body {
  22687. height: calc(100% - 187px);
  22688. overflow: auto;
  22689. }
  22690. .e_add_list_child {
  22691. width: 100%;
  22692. display: flex;
  22693. align-items: center;
  22694. justify-content: center;
  22695. position: relative;
  22696. box-sizing: border-box;
  22697. padding: 15px 40px;
  22698. text-align: center;
  22699. }
  22700. .e_add_list_child span {
  22701. overflow: hidden;
  22702. white-space: nowrap;
  22703. text-overflow: ellipsis;
  22704. cursor: pointer;
  22705. }
  22706. .e_add_list_child img {
  22707. position: absolute;
  22708. right: 10px;
  22709. width: 21px;
  22710. cursor: pointer;
  22711. top: 50%;
  22712. transform: translateY(-50%);
  22713. }
  22714. .e_add_list_child + .e_add_list_child {
  22715. border-top: 1px solid #eaeaea;
  22716. }
  22717. .e_add_list_child .active {
  22718. color: #409eff;
  22719. }
  22720. .e_add_list_btn {
  22721. position: absolute;
  22722. bottom: 0;
  22723. height: 50px;
  22724. background: rgb(120, 120, 254);
  22725. width: 100%;
  22726. color: #fff;
  22727. font-size: 16px;
  22728. text-align: center;
  22729. line-height: 50px;
  22730. cursor: pointer;
  22731. }
  22732. .e_add_list_detail {
  22733. position: absolute;
  22734. bottom: 0;
  22735. height: 130px;
  22736. background: rgb(120, 120, 254);
  22737. width: 100%;
  22738. color: #fff;
  22739. font-size: 16px;
  22740. display: flex;
  22741. align-items: center;
  22742. justify-content: center;
  22743. }
  22744. .e_add_list_detail textarea {
  22745. height: 90%;
  22746. width: 95%;
  22747. border: none;
  22748. resize: none;
  22749. outline: none;
  22750. padding: 5px;
  22751. box-sizing: border-box;
  22752. }
  22753. .e_add_list_pbox {
  22754. width: 100%;
  22755. max-width: 650px;
  22756. /* height: 600px; */
  22757. }
  22758. .e_add_list_pbox_title {
  22759. height: 50px;
  22760. background: #fff;
  22761. display: flex;
  22762. align-items: center;
  22763. width: 100%;
  22764. box-sizing: border-box;
  22765. padding: 0 20px;
  22766. }
  22767. .type_title {
  22768. font-size: 18px;
  22769. font-weight: 700;
  22770. }
  22771. .type_content {
  22772. font-size: 16px;
  22773. /* margin-left: 30px; */
  22774. }
  22775. .type_content span + span {
  22776. margin-left: 20px;
  22777. }
  22778. .type_content span {
  22779. cursor: pointer;
  22780. padding-bottom: 5px;
  22781. box-sizing: border-box;
  22782. }
  22783. .type_content .active {
  22784. color: #409eff;
  22785. border-bottom: 2px solid #409eff;
  22786. }
  22787. .e_add_list_pbox_content {
  22788. height: calc(100% - 50px);
  22789. display: flex;
  22790. align-items: center;
  22791. width: 100%;
  22792. background: #fff;
  22793. }
  22794. .evaCss {
  22795. display: flex;
  22796. flex-direction: row;
  22797. flex-wrap: nowrap;
  22798. align-items: flex-start;
  22799. padding: 0 0 20px;
  22800. }
  22801. .cru_line {
  22802. position: absolute;
  22803. bottom: 0px;
  22804. transition: all 0.5s;
  22805. left: 0px;
  22806. width: 125px;
  22807. margin-left: -25px;
  22808. }
  22809. .isNoMessage {
  22810. width: 20%;
  22811. margin: 25% auto 0;
  22812. }
  22813. .isNoMessage > img {
  22814. width: 100%;
  22815. height: 100%;
  22816. }
  22817. .fullStyle >>> .el-dialog__body {
  22818. height: 100% !important;
  22819. }
  22820. .fullStyle >>> .el-dialog,
  22821. .fullStyle {
  22822. width: 100% !important;
  22823. max-width: 100% !important;
  22824. height: 100% !important;
  22825. margin: 0 !important;
  22826. }
  22827. .full_diy >>> .el-dialog {
  22828. margin: 0 !important;
  22829. height: 100%;
  22830. padding: 4px;
  22831. }
  22832. .full_diy >>> .el-dialog__body {
  22833. height: calc(100% - 100px);
  22834. }
  22835. .full_diy2 >>> .el-dialog__body {
  22836. height: calc(100% - 50px);
  22837. padding: 0;
  22838. }
  22839. .switchCss {
  22840. /* width: 100%; */
  22841. display: flex;
  22842. flex-direction: row;
  22843. flex-wrap: nowrap;
  22844. align-items: center;
  22845. /* justify-content: center; */
  22846. }
  22847. .isClickNav {
  22848. /* color: #499eef; */
  22849. color: #000;
  22850. }
  22851. .commentImg {
  22852. width: 25px;
  22853. height: 25px;
  22854. cursor: pointer;
  22855. }
  22856. .commentImg > img {
  22857. width: 100%;
  22858. height: 100%;
  22859. }
  22860. .comment {
  22861. background: #f9f9f9;
  22862. border-radius: 0 0 4px 4px;
  22863. display: flex;
  22864. flex-direction: row;
  22865. flex-wrap: nowrap;
  22866. align-items: center;
  22867. justify-content: flex-end;
  22868. height: 35px;
  22869. }
  22870. .commentList {
  22871. display: flex;
  22872. flex-direction: row;
  22873. flex-wrap: nowrap;
  22874. align-items: center;
  22875. justify-content: center;
  22876. align-content: center;
  22877. /* margin-left: 15px; */
  22878. /* margin-left: 8px; */
  22879. }
  22880. .scoreImg {
  22881. width: 17px;
  22882. height: 17px;
  22883. }
  22884. .studentDetail {
  22885. display: flex;
  22886. flex-direction: row;
  22887. flex-wrap: nowrap;
  22888. /* align-items: center; */
  22889. align-items: flex-start;
  22890. }
  22891. .tx {
  22892. width: 50px;
  22893. }
  22894. .tx > img {
  22895. width: 100%;
  22896. height: 100%;
  22897. }
  22898. .nameAndTime {
  22899. display: flex;
  22900. flex-direction: column;
  22901. flex-wrap: nowrap;
  22902. align-items: flex-start;
  22903. margin-left: 10px;
  22904. }
  22905. .worksAnswer {
  22906. color: #4078dd;
  22907. margin: 10px 0;
  22908. font-size: 16px;
  22909. position: relative;
  22910. }
  22911. .worksAnswer > img {
  22912. width: 500px;
  22913. height: 300px;
  22914. object-fit: contain;
  22915. margin: 0 auto;
  22916. display: block;
  22917. }
  22918. .commentTop {
  22919. border-bottom: 1px solid #eaeaea;
  22920. padding-bottom: 10px;
  22921. }
  22922. .commentBox {
  22923. padding-top: 15px;
  22924. }
  22925. .pl {
  22926. font-size: 18px;
  22927. }
  22928. .plPerson {
  22929. width: 100%;
  22930. }
  22931. .plName {
  22932. display: flex;
  22933. flex-direction: row;
  22934. flex-wrap: nowrap;
  22935. align-items: baseline;
  22936. color: #78787a;
  22937. width: 100%;
  22938. }
  22939. .deleteComment {
  22940. cursor: pointer;
  22941. margin-left: auto;
  22942. color: #237ade;
  22943. }
  22944. .plContent {
  22945. margin-top: 5px;
  22946. }
  22947. .evalCss {
  22948. background: #fff;
  22949. font-size: 18px;
  22950. }
  22951. .nav {
  22952. color: #9d9d9d;
  22953. padding: 5px 0 15px 20px;
  22954. }
  22955. .middleBox {
  22956. padding: 5px 0 15px 20px;
  22957. }
  22958. .pfBox {
  22959. padding-bottom: 30px;
  22960. }
  22961. .nameAndrate {
  22962. display: flex;
  22963. flex-direction: row;
  22964. flex-wrap: nowrap;
  22965. align-items: center;
  22966. padding-bottom: 10px;
  22967. height: 30px;
  22968. line-height: 30px;
  22969. }
  22970. .nameAndrate > div {
  22971. margin-left: 10px;
  22972. color: #000;
  22973. height: 30px;
  22974. }
  22975. .nameAndrate >>> .el-rate__icon {
  22976. font-size: 28px !important;
  22977. }
  22978. .pfBox > div:nth-child(2) {
  22979. background: #f7f6f9;
  22980. width: 400px;
  22981. min-height: 45px;
  22982. border-radius: 10px;
  22983. font-size: 16px;
  22984. display: flex;
  22985. flex-wrap: wrap;
  22986. align-items: center;
  22987. padding: 10px 20px;
  22988. box-sizing: border-box;
  22989. color: #000;
  22990. }
  22991. .bz {
  22992. display: flex;
  22993. flex-direction: row;
  22994. flex-wrap: nowrap;
  22995. align-items: flex-start;
  22996. }
  22997. .bz > div {
  22998. padding: 0 10px;
  22999. }
  23000. .select_box2_title {
  23001. background: #fff;
  23002. border-radius: 5px;
  23003. padding: 15px 10px;
  23004. box-sizing: border-box;
  23005. margin-bottom: 10px;
  23006. display: flex;
  23007. flex-direction: row;
  23008. flex-wrap: nowrap;
  23009. align-items: center;
  23010. }
  23011. .select_box2_title > div:nth-child(2) {
  23012. margin-left: 10px;
  23013. color: #c4c4c4;
  23014. }
  23015. .select_box2_box {
  23016. display: flex;
  23017. height: 500px;
  23018. }
  23019. .select_box2_img {
  23020. width: calc(100% - 310px);
  23021. height: 100%;
  23022. overflow: auto;
  23023. background: #fff;
  23024. border-radius: 5px;
  23025. }
  23026. .select_box2_img img {
  23027. width: 100%;
  23028. }
  23029. .select_box2_answer {
  23030. background: #fff;
  23031. margin-left: 10px;
  23032. border-radius: 5px;
  23033. width: 300px;
  23034. overflow: auto;
  23035. height: 90%;
  23036. display: flex;
  23037. flex-direction: column;
  23038. align-items: flex-start;
  23039. padding-top: 10px;
  23040. box-sizing: border-box;
  23041. position: relative;
  23042. }
  23043. .select_answer_title {
  23044. padding: 0 0 15px 20px;
  23045. color: #c4c4c4;
  23046. }
  23047. .select_box2_answer_box {
  23048. margin: 0 0 10px 20px;
  23049. width: 85%;
  23050. display: flex;
  23051. flex-direction: row;
  23052. flex-wrap: nowrap;
  23053. align-items: center;
  23054. }
  23055. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23056. color: #000;
  23057. }
  23058. .upAnswerCss {
  23059. position: absolute;
  23060. bottom: 15px;
  23061. right: 15px;
  23062. }
  23063. .upAnswerCss >>> .el-button {
  23064. width: 95px;
  23065. height: 35px;
  23066. line-height: 35px;
  23067. padding: 0;
  23068. }
  23069. .rightWidthCss {
  23070. width: 60%;
  23071. display: flex;
  23072. flex-direction: row;
  23073. align-items: flex-start;
  23074. }
  23075. .rightAnswer {
  23076. display: flex;
  23077. flex-direction: row;
  23078. flex-wrap: nowrap;
  23079. align-items: center;
  23080. color: red;
  23081. margin-bottom: 31px;
  23082. }
  23083. .rightAnswerCss {
  23084. display: flex;
  23085. flex-direction: column;
  23086. flex-wrap: nowrap;
  23087. padding-top: 60px;
  23088. }
  23089. .blueCss {
  23090. color: #767de1;
  23091. margin-left: 10px;
  23092. }
  23093. .redCss {
  23094. color: red;
  23095. }
  23096. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23097. color: rgb(0 123 255) !important;
  23098. }
  23099. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23100. color: rgb(0 123 255) !important;
  23101. }
  23102. .zuoyeYulan {
  23103. padding-top: 0;
  23104. font-size: 18px;
  23105. display: flex;
  23106. align-items: flex-end;
  23107. }
  23108. .buttonA {
  23109. margin-left: 10px;
  23110. padding: 0;
  23111. }
  23112. .displayBox {
  23113. margin-bottom: 10px;
  23114. display: block;
  23115. border-bottom: 3px solid #eee;
  23116. display: flex;
  23117. align-items: center;
  23118. }
  23119. .easy_comment {
  23120. width: calc(100% - 90px);
  23121. margin-left: 10px;
  23122. display: flex;
  23123. flex-wrap: wrap;
  23124. }
  23125. .easy_comment > div {
  23126. border: 1px solid #4a4a4a;
  23127. color: #666;
  23128. border-radius: 15px;
  23129. padding: 5px 10px;
  23130. font-size: 16px;
  23131. margin-bottom: 10px;
  23132. margin-right: 5px;
  23133. cursor: pointer;
  23134. }
  23135. .easy_comment div:hover {
  23136. border: 1px solid #f7ba2a;
  23137. color: #c69217;
  23138. }
  23139. .xuan_right_box {
  23140. padding: 10px 0;
  23141. background: #f0f4fa;
  23142. margin: 0 15px 0 25px;
  23143. border-bottom-left-radius: 5px;
  23144. border-bottom-right-radius: 5px;
  23145. width: 91.5%;
  23146. }
  23147. .tool_right_box {
  23148. display: flex;
  23149. align-items: center;
  23150. }
  23151. .tool_right_box + .tool_right_box {
  23152. margin-top: 10px;
  23153. }
  23154. .right_box_xuan {
  23155. border-radius: 5px;
  23156. padding: 5px;
  23157. margin-left: 10px;
  23158. min-width: 85px;
  23159. background: #fff;
  23160. color: #0061ff;
  23161. border: 1px solid #0061ff;
  23162. font-size: 14px;
  23163. }
  23164. .pButton:hover {
  23165. opacity: 1 !important;
  23166. }
  23167. .pButton {
  23168. position: fixed;
  23169. text-align: center;
  23170. cursor: pointer;
  23171. z-index: 999;
  23172. right: 20px;
  23173. top: 110px;
  23174. width: 50px;
  23175. height: 50px;
  23176. display: flex;
  23177. align-items: center;
  23178. justify-content: center;
  23179. border-radius: 5px;
  23180. }
  23181. .pzClass {
  23182. width: calc(100% - 340px);
  23183. }
  23184. .newDialogCss {
  23185. /* position: fixed;
  23186. right: 5%;
  23187. top: 50%;
  23188. width: 340px;
  23189. transform: translateY(-50%);
  23190. height: 60%;
  23191. box-shadow: 0px 0 8px 0px #555555;
  23192. border-radius: 15px;
  23193. z-index: 999; */
  23194. position: fixed;
  23195. right: 20px;
  23196. top: 101px;
  23197. width: 330px;
  23198. height: calc(100% - 80px);
  23199. z-index: 999;
  23200. background: #fff;
  23201. border-top-right-radius: 0px;
  23202. border-bottom-right-radius: 0px;
  23203. overflow: hidden;
  23204. }
  23205. .newDialogCss>.scoreList{
  23206. width:100%;
  23207. height:100%;
  23208. box-sizing:border-box;
  23209. padding:10px 15px;
  23210. overflow:auto;
  23211. padding-bottom:80px;
  23212. }
  23213. .pzTop {
  23214. color: #fff;
  23215. background: #000;
  23216. display: flex;
  23217. flex-direction: row;
  23218. flex-wrap: nowrap;
  23219. align-items: center;
  23220. justify-content: space-between;
  23221. height: 40px;
  23222. border-radius: 15px 15px 0 0;
  23223. user-select: none;
  23224. }
  23225. .pzTop2 .checkbox {
  23226. display: flex;
  23227. align-items: center;
  23228. padding: 5px 10px;
  23229. flex: 0 0 auto;
  23230. font-weight: bold;
  23231. border-bottom: 1px solid #eee;
  23232. justify-content: space-between;
  23233. }
  23234. .checkbox>.cb-tabList{
  23235. display:flex;
  23236. align-items:center;
  23237. }
  23238. .cb-tabList>div{
  23239. margin-right:20px;
  23240. font-weight:400;
  23241. cursor:pointer;
  23242. }
  23243. .cb-tabList>.cb-tabItem{
  23244. color:#1684FC;
  23245. position:relative;
  23246. }
  23247. .cb-tabItem::after{
  23248. content:"";
  23249. width:100%;
  23250. height:2px;
  23251. background:#1684FC;
  23252. position:absolute;
  23253. bottom:-5px;
  23254. left:0
  23255. }
  23256. .pzTop2 .check {
  23257. text-align: center;
  23258. cursor: pointer;
  23259. box-sizing: border-box;
  23260. display: flex;
  23261. }
  23262. .pzTop2 img {
  23263. width: 25px;
  23264. cursor: pointer;
  23265. }
  23266. .pzTop > div:nth-child(1) {
  23267. padding-left: 10px;
  23268. }
  23269. .pzTop > div:nth-child(2) {
  23270. width: 15px;
  23271. height: 15px;
  23272. padding-right: 10px;
  23273. cursor: pointer;
  23274. }
  23275. .pzTop > div:nth-child(2) > img {
  23276. width: 100%;
  23277. height: 100%;
  23278. }
  23279. .pzBox,
  23280. .noPzBox {
  23281. height: calc(100% - 60px);
  23282. /* background: #ededed; */
  23283. background: #fff;
  23284. /* border-radius: 0 0 15px 15px; */
  23285. }
  23286. .noPzBox {
  23287. display: flex;
  23288. flex-direction: column;
  23289. flex-wrap: nowrap;
  23290. justify-content: center;
  23291. align-items: center;
  23292. }
  23293. .pzList {
  23294. background: #f7f7f7;
  23295. width: 90%;
  23296. margin: 0 auto 15px;
  23297. border-radius: 5px;
  23298. }
  23299. .pzNavTop {
  23300. display: flex;
  23301. flex-direction: row;
  23302. flex-wrap: nowrap;
  23303. padding: 10px 10px 0 10px;
  23304. align-items: center;
  23305. }
  23306. .pzDelete {
  23307. cursor: pointer;
  23308. margin-left: auto;
  23309. font-size: 14px;
  23310. color: #afafaf;
  23311. }
  23312. .pzNavTop > div:nth-child(1) {
  23313. background: #3760af;
  23314. width: 35px;
  23315. height: 35px;
  23316. color: #fff;
  23317. text-align: center;
  23318. line-height: 35px;
  23319. border-radius: 50%;
  23320. font-size: 14px;
  23321. }
  23322. .pzNavTop > div:nth-child(2) {
  23323. font-size: 18px;
  23324. color: #959595;
  23325. margin-left: 5px;
  23326. }
  23327. .pzContent {
  23328. padding: 10px;
  23329. word-break: break-word;
  23330. }
  23331. .pzContent audio {
  23332. width: 100%;
  23333. }
  23334. .pzContent audio::-webkit-media-controls-panel {
  23335. background: #fff;
  23336. }
  23337. .pzContent >>> img {
  23338. max-width: 100%;
  23339. }
  23340. .pzListBox {
  23341. padding-top: 15px;
  23342. height: calc(100% - 110px);
  23343. overflow: auto;
  23344. }
  23345. .addPzButton {
  23346. position: relative;
  23347. margin-top: 3px;
  23348. width: 100%;
  23349. }
  23350. .addPzButton .img1 {
  23351. position: absolute;
  23352. top: 50%;
  23353. right: 25px;
  23354. transform: translateY(-50%);
  23355. height: 100%;
  23356. display: flex;
  23357. align-items: center;
  23358. }
  23359. .addPzButton .img1 div {
  23360. display: flex;
  23361. }
  23362. .addPzButton .img1 div img {
  23363. width: 28px;
  23364. margin-left: 10px;
  23365. cursor: pointer;
  23366. }
  23367. .addPzButton .img1 div span {
  23368. font-size: 14px;
  23369. margin: 4px 0 0 3px;
  23370. color: #afafaf;
  23371. }
  23372. .addPz {
  23373. background: #4b79ce;
  23374. width: 100px;
  23375. color: #fff;
  23376. font-size: 12px;
  23377. height: 30px;
  23378. margin: 0 auto;
  23379. text-align: center;
  23380. line-height: 30px;
  23381. border-radius: 10px;
  23382. cursor: pointer;
  23383. }
  23384. .addDialogCss {
  23385. position: fixed;
  23386. width: 600px;
  23387. height: 70%;
  23388. min-height: 450px;
  23389. box-shadow: 0px 0 8px 0px #555555;
  23390. border-radius: 15px;
  23391. z-index: 999;
  23392. left: 50%;
  23393. top: 50%;
  23394. margin: -18% 0 0 -300px;
  23395. }
  23396. .teacherPz {
  23397. display: flex;
  23398. flex-direction: row;
  23399. align-items: center;
  23400. flex-wrap: nowrap;
  23401. }
  23402. .teacherPzImg {
  23403. width: 30px;
  23404. height: 30px;
  23405. }
  23406. .teacherPzImg > img {
  23407. width: 100%;
  23408. height: 100%;
  23409. }
  23410. .addPzBox {
  23411. height: calc(100% - 40px);
  23412. background: #ededed;
  23413. border-bottom-left-radius: 15px;
  23414. border-bottom-right-radius: 15px;
  23415. }
  23416. .pzAudioClass {
  23417. margin: 15px 14px;
  23418. background: #fff;
  23419. height: 100%;
  23420. display: flex;
  23421. justify-content: center;
  23422. align-items: center;
  23423. }
  23424. .pzConText {
  23425. width: 95%;
  23426. height: 100%;
  23427. margin: 10px auto 0;
  23428. border: none;
  23429. background: #fff;
  23430. border-radius: 0px;
  23431. }
  23432. .pzConText >>> .text {
  23433. height: calc(100% - 82px);
  23434. }
  23435. .addTextCss {
  23436. background: #4b79ce;
  23437. width: 80px;
  23438. height: 30px;
  23439. text-align: center;
  23440. color: #fff;
  23441. line-height: 30px;
  23442. border-radius: 10px;
  23443. margin: 10px auto 0;
  23444. cursor: pointer;
  23445. }
  23446. .pzConText:focus-visible {
  23447. border: none !important;
  23448. }
  23449. .maxWidth {
  23450. width: 1000px;
  23451. }
  23452. .noPz {
  23453. width: 150px;
  23454. margin: 0 auto 20%;
  23455. }
  23456. .noPz > img {
  23457. width: 100%;
  23458. height: 100%;
  23459. }
  23460. .timeAndReply {
  23461. display: flex;
  23462. flex-direction: row;
  23463. flex-wrap: nowrap;
  23464. justify-content: space-between;
  23465. align-items: center;
  23466. font-size: 14px;
  23467. box-sizing: border-box;
  23468. padding: 0 10px 10px 0px;
  23469. }
  23470. .timeAndReply .time {
  23471. color: #bfbfbf;
  23472. padding: 0 0 0 10px;
  23473. box-sizing: border-box;
  23474. }
  23475. .timeAndReply > div:last-child {
  23476. cursor: pointer;
  23477. color: #777;
  23478. }
  23479. /* table 样式 */
  23480. .cont >>> table {
  23481. border-top: 1px solid #ccc;
  23482. border-left: 1px solid #ccc;
  23483. }
  23484. .cont >>> table td,
  23485. .cont >>> table th {
  23486. border-bottom: 1px solid #ccc;
  23487. border-right: 1px solid #ccc;
  23488. /* padding: 20px 5px; */
  23489. padding: 5px 10px;
  23490. max-width: 0px;
  23491. height: 30px;
  23492. vertical-align: baseline;
  23493. box-sizing: border-box;
  23494. }
  23495. .cont >>> table th {
  23496. border-bottom: 2px solid #ccc;
  23497. text-align: center;
  23498. }
  23499. /* blockquote 样式 */
  23500. .cont >>> blockquote {
  23501. display: block;
  23502. border-left: 8px solid #d0e5f2;
  23503. padding: 5px 10px;
  23504. margin: 10px 0;
  23505. line-height: 1.4;
  23506. font-size: 100%;
  23507. background-color: #f1f1f1;
  23508. }
  23509. /* code 样式 */
  23510. .cont >>> code {
  23511. display: inline-block;
  23512. /* *display: inline; */
  23513. zoom: 1;
  23514. background-color: #f1f1f1;
  23515. border-radius: 3px;
  23516. padding: 3px 5px;
  23517. margin: 0 3px;
  23518. }
  23519. .cont >>> pre code {
  23520. display: block;
  23521. }
  23522. /* ul ol 样式 */
  23523. .cont >>> ul,
  23524. ol {
  23525. margin: 10px 0 10px 20px;
  23526. }
  23527. .addPzCheck {
  23528. display: flex;
  23529. flex-direction: row;
  23530. flex-wrap: nowrap;
  23531. padding: 10px 15px 0;
  23532. }
  23533. .addPzCheck span {
  23534. cursor: pointer;
  23535. padding-bottom: 5px;
  23536. font-weight: bold;
  23537. }
  23538. .addPzCheck span + span {
  23539. margin-left: 10px;
  23540. }
  23541. .addPzCheck .isChooseActive {
  23542. color: #3e88f4;
  23543. border-bottom: 2px solid #2f80f3;
  23544. }
  23545. /* code 样式 */
  23546. .cont {
  23547. /* -webkit-user-modify: read-write; */
  23548. overflow-wrap: break-word;
  23549. -webkit-line-break: after-white-space;
  23550. word-break: break-word;
  23551. white-space: pre-line;
  23552. }
  23553. .scoreBox,
  23554. .scoreDetailBox {
  23555. display: flex;
  23556. align-items: center;
  23557. justify-content: flex-start;
  23558. margin-top: 20px;
  23559. font-size: 18px;
  23560. width: 100%;
  23561. }
  23562. .scoreBox .t,
  23563. .scoreDetailBox .t {
  23564. margin-right: 10px;
  23565. width: 100px;
  23566. text-align: right;
  23567. }
  23568. .scoreDetailBox {
  23569. align-items: flex-start;
  23570. }
  23571. .scoreDetailBox >>> .el-textarea {
  23572. width: calc(100% - 200px);
  23573. }
  23574. .scoreBox >>> .el-input {
  23575. width: 130px;
  23576. font-size: 38px;
  23577. }
  23578. .scoreBox >>> .el-input__inner {
  23579. height: 60px;
  23580. }
  23581. .answerScore {
  23582. position: absolute;
  23583. top: 10px;
  23584. right: 10px;
  23585. background: #0000008f;
  23586. border-radius: 5px;
  23587. padding: 3px 5px;
  23588. font-size: 14px;
  23589. color: #fff;
  23590. cursor: pointer;
  23591. }
  23592. .open_box .switch_box {
  23593. width: 100%;
  23594. margin: 0 auto;
  23595. display: flex;
  23596. justify-content: space-between;
  23597. }
  23598. .open_box .switch_box + .switch_box {
  23599. margin-top: 10px;
  23600. }
  23601. .deleteImg,.deleteImg1 {
  23602. width: 25px !important;
  23603. height: 25px !important;
  23604. cursor: pointer;
  23605. position: absolute;
  23606. top: 10px;
  23607. right: 10px;
  23608. }
  23609. .deleteImg2 {
  23610. width: 23px !important;
  23611. height: 23px !important;
  23612. top: 5px;
  23613. right: 5px;
  23614. }
  23615. .deleteImg1{
  23616. width: 23px !important;
  23617. height: 23px !important;
  23618. top: 5px !important;
  23619. right: 30px !important;
  23620. }
  23621. .rightW {
  23622. right: 40px;
  23623. }
  23624. .drawPBox {
  23625. display: flex;
  23626. flex-direction: column;
  23627. position: relative;
  23628. }
  23629. .drawPBox span {
  23630. font-size: 18px;
  23631. color: #606266;
  23632. padding-bottom: 10px;
  23633. margin: 10px 0;
  23634. border-bottom: 1px solid #eaeaea;
  23635. }
  23636. .drawPBox img {
  23637. width: 500px;
  23638. height: 300px;
  23639. object-fit: contain;
  23640. cursor: pointer;
  23641. margin: 0 auto;
  23642. }
  23643. .sentenBox {
  23644. background: #fff;
  23645. height: 450px;
  23646. overflow: auto;
  23647. background-image: url("../../assets/icon/conSentences/stuBg.png");
  23648. background-position: 102%;
  23649. background-repeat: no-repeat;
  23650. background-size: 60%;
  23651. }
  23652. .addSen {
  23653. background: #409efe;
  23654. width: 90px;
  23655. color: #fff;
  23656. height: 35px;
  23657. text-align: center;
  23658. line-height: 35px;
  23659. border-radius: 5px;
  23660. float: right;
  23661. margin: 10px 20px 0 0;
  23662. cursor: pointer;
  23663. }
  23664. .sentenTop {
  23665. display: flex;
  23666. flex-direction: row;
  23667. flex-wrap: nowrap;
  23668. align-items: center;
  23669. padding: 55px 0 0 20px;
  23670. box-sizing: border-box;
  23671. }
  23672. .sentenTop > div:nth-child(2) {
  23673. width: 300px;
  23674. margin: 0 15px;
  23675. }
  23676. .sentenTop > div:nth-child(3) {
  23677. background: #409efe;
  23678. color: #fff;
  23679. width: 65px;
  23680. height: 35px;
  23681. text-align: center;
  23682. line-height: 35px;
  23683. border-radius: 5px;
  23684. cursor: pointer;
  23685. }
  23686. .cardList,
  23687. .cardList1 {
  23688. padding: 10px 0 10px 0;
  23689. display: flex;
  23690. flex-direction: row;
  23691. flex-wrap: wrap;
  23692. align-items: center;
  23693. box-sizing: border-box;
  23694. border-bottom: 1px solid #f4f4f4;
  23695. width: 98%;
  23696. margin: 0 auto;
  23697. min-width: 60%;
  23698. max-width: 85%;
  23699. }
  23700. .cardList1 {
  23701. padding: 10px 0 10px 10px !important;
  23702. margin: 0 !important;
  23703. }
  23704. .cardBox {
  23705. display: flex;
  23706. flex-direction: row;
  23707. flex-wrap: wrap;
  23708. align-items: center;
  23709. align-content: center;
  23710. }
  23711. .cardBox > div {
  23712. margin-bottom: 10px;
  23713. }
  23714. .isCard,
  23715. .isChooseCard,
  23716. .noCard,
  23717. .isCard1 {
  23718. min-width: 130px;
  23719. width: auto;
  23720. height: 60px;
  23721. text-align: center;
  23722. line-height: 60px;
  23723. font-size: 20px;
  23724. cursor: pointer;
  23725. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  23726. background-size: cover;
  23727. transition: all 2s;
  23728. margin-right: 20px;
  23729. background-size: 100% 100%;
  23730. padding: 0 20px;
  23731. box-sizing: border-box;
  23732. }
  23733. .isCard > div,
  23734. .noCard > div,
  23735. .isCard1 > div {
  23736. white-space: nowrap;
  23737. overflow: hidden;
  23738. text-overflow: ellipsis;
  23739. width: 100%;
  23740. margin: 0 auto;
  23741. }
  23742. .noCard {
  23743. background-image: none;
  23744. }
  23745. .isCard1 {
  23746. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  23747. }
  23748. .isChooseCard {
  23749. background-image: none;
  23750. border: 1px dashed #b9b9b9;
  23751. border-radius: 10px;
  23752. }
  23753. .card {
  23754. width: 130px;
  23755. height: 60px;
  23756. }
  23757. .card > img {
  23758. width: 100%;
  23759. height: 100%;
  23760. }
  23761. .rightCardBox {
  23762. margin: 10px 0 0 10px;
  23763. }
  23764. .rightCardBox > div:nth-child(1) {
  23765. margin-bottom: 10px;
  23766. }
  23767. .cardCss {
  23768. display: flex;
  23769. flex-direction: column;
  23770. flex-wrap: nowrap;
  23771. align-items: center;
  23772. border-bottom: 3px solid #b4c3d3;
  23773. padding: 0 0 5px 0;
  23774. margin-right: 10px;
  23775. }
  23776. .cardCss > div:nth-child(2) {
  23777. background: #5b7b9d;
  23778. color: #fff;
  23779. width: 20px;
  23780. height: 20px;
  23781. border-radius: 50%;
  23782. text-align: center;
  23783. line-height: 20px;
  23784. }
  23785. .isWrong {
  23786. display: flex;
  23787. flex-direction: row;
  23788. flex-wrap: nowrap;
  23789. align-content: center;
  23790. align-items: center;
  23791. }
  23792. .answerRight {
  23793. width: 25%;
  23794. }
  23795. .isTj {
  23796. display: flex;
  23797. flex-direction: row;
  23798. flex-wrap: nowrap;
  23799. align-items: center;
  23800. }
  23801. .isTj > div:nth-child(2) {
  23802. color: #727070;
  23803. margin-left: 10px;
  23804. }
  23805. .isTjImg {
  23806. width: 30px;
  23807. height: 30px;
  23808. }
  23809. .isTjImg > img {
  23810. width: 100%;
  23811. height: 100%;
  23812. }
  23813. .cardAnswerBox {
  23814. font-size: 18px;
  23815. width: 97%;
  23816. border: 5px;
  23817. padding: 0;
  23818. border-radius: 5px;
  23819. margin: 10px auto;
  23820. word-break: break-word;
  23821. }
  23822. .w_name {
  23823. margin-bottom: 10px;
  23824. }
  23825. .w_name span {
  23826. font-size: 16px;
  23827. }
  23828. .w_teachert {
  23829. width: 50px !important;
  23830. position: absolute;
  23831. height: auto !important;
  23832. z-index: 10;
  23833. right: 25px;
  23834. top: -25px;
  23835. }
  23836. .group_workBox {
  23837. }
  23838. .group_workBox + .group_workBox {
  23839. margin-top: 20px;
  23840. }
  23841. .group_box {
  23842. padding-bottom: 20px;
  23843. border-bottom: 2px solid #f0f0f0;
  23844. margin-top: 10px;
  23845. }
  23846. .group_title {
  23847. display: flex;
  23848. align-items: center;
  23849. justify-content: space-between;
  23850. width: 95%;
  23851. }
  23852. .group_name {
  23853. background-image: url(../../assets/icon/groupN.png);
  23854. width: 220px;
  23855. background-size: 100% 100%;
  23856. height: 67px;
  23857. padding: 0 20px 0 43px;
  23858. box-sizing: border-box;
  23859. line-height: 63px;
  23860. color: #fff;
  23861. overflow: hidden;
  23862. white-space: nowrap;
  23863. text-overflow: ellipsis;
  23864. }
  23865. .group_work {
  23866. width: 100%;
  23867. padding: 0 10px;
  23868. box-sizing: border-box;
  23869. display: flex;
  23870. flex-wrap: wrap;
  23871. }
  23872. .g_d_box {
  23873. display: flex;
  23874. flex-flow: wrap;
  23875. justify-content: space-around;
  23876. }
  23877. .g_d_box .isChair {
  23878. background-image: url(../../assets/avatar.png) !important;
  23879. }
  23880. .g_d_group {
  23881. width: 500px;
  23882. margin-bottom: 80px;
  23883. }
  23884. .g_d_group_chair {
  23885. display: flex;
  23886. align-items: center;
  23887. justify-content: center;
  23888. }
  23889. .g_d_group_chair > div + div {
  23890. margin-left: 30px;
  23891. }
  23892. .g_d_group_chair > div,
  23893. .g_d_group_chair2 > div {
  23894. display: flex;
  23895. flex-direction: column;
  23896. align-items: center;
  23897. }
  23898. .g_d_group_chair > div > span:nth-child(1),
  23899. .g_d_group_chair2 > div > span:nth-child(1) {
  23900. background-image: url(../../assets/icon/chair.png);
  23901. width: 50px;
  23902. height: 50px;
  23903. display: block;
  23904. background-size: 100% 100%;
  23905. }
  23906. .g_d_group_tableBox {
  23907. display: flex;
  23908. align-items: center;
  23909. justify-content: center;
  23910. }
  23911. .g_d_group_chair2 {
  23912. display: flex;
  23913. flex-direction: column;
  23914. align-items: center;
  23915. justify-content: center;
  23916. }
  23917. .g_d_group_chair2 > div + div {
  23918. margin-top: 10px;
  23919. }
  23920. .g_d_group_table {
  23921. background-image: url(../../assets/icon/groupBg.png);
  23922. width: 354px;
  23923. height: 196px;
  23924. background-size: 100% 100%;
  23925. display: flex;
  23926. align-items: center;
  23927. justify-content: center;
  23928. flex-direction: column;
  23929. color: #fff;
  23930. }
  23931. .g_d_group_table > div:nth-child(1) {
  23932. font-size: 24px;
  23933. margin-bottom: 5px;
  23934. }
  23935. .g_d_group_table > div:nth-child(2) div {
  23936. cursor: pointer;
  23937. background: #2e77bf;
  23938. padding: 4px 10px;
  23939. border-radius: 5px;
  23940. }
  23941. .groupBox {
  23942. }
  23943. .groupContent + .groupContent {
  23944. margin-top: 30px;
  23945. }
  23946. .groupTitle {
  23947. font-size: 24px;
  23948. color: rgb(80, 80, 80);
  23949. margin-bottom: 20px;
  23950. }
  23951. .groupName {
  23952. display: flex;
  23953. align-items: center;
  23954. }
  23955. .groupn {
  23956. font-size: 15px;
  23957. margin-right: 10px;
  23958. }
  23959. .groupName + .groupName {
  23960. margin-top: 15px;
  23961. }
  23962. .groupBtn {
  23963. margin-left: 10px;
  23964. }
  23965. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23966. text-align: left;
  23967. }
  23968. .g_d_btnBox {
  23969. display: flex;
  23970. justify-content: flex-end;
  23971. align-items: center;
  23972. margin-bottom: 20px;
  23973. }
  23974. .updateChair {
  23975. position: relative;
  23976. }
  23977. .updateChairBtn {
  23978. position: absolute;
  23979. width: 50px;
  23980. height: 50px;
  23981. overflow: hidden;
  23982. /* display: flex; */
  23983. align-items: center;
  23984. justify-content: center;
  23985. background: #00000087;
  23986. color: #fff;
  23987. border-radius: 50px;
  23988. display: none;
  23989. cursor: pointer;
  23990. }
  23991. .updateChair:hover .updateChairBtn {
  23992. display: flex;
  23993. }
  23994. .group_staic_box {
  23995. display: flex;
  23996. padding: 30px 40px 10px;
  23997. flex-wrap: wrap;
  23998. }
  23999. .group_staic {
  24000. /* width: 50%; */
  24001. margin-bottom: 20px;
  24002. display: flex;
  24003. align-items: center;
  24004. }
  24005. .group_staic span:nth-child(1) {
  24006. width: 150px;
  24007. text-align: right;
  24008. margin-right: 15px;
  24009. }
  24010. .group_staic span:nth-child(2) {
  24011. background: rgb(0 123 255);
  24012. color: #fff;
  24013. border-radius: 5px;
  24014. padding: 5px;
  24015. }
  24016. .codeFileBox {
  24017. height: 300px;
  24018. background: #fff;
  24019. display: flex;
  24020. align-items: center;
  24021. justify-content: center;
  24022. }
  24023. .codeFileBox img {
  24024. width: 200px;
  24025. margin: 0;
  24026. height: auto;
  24027. }
  24028. .codeFileBox div {
  24029. background: rgb(80, 142, 226);
  24030. color: #fff;
  24031. padding: 10px 20px;
  24032. border-radius: 25px;
  24033. cursor: pointer;
  24034. margin-left: 15px;
  24035. }
  24036. .radioBox {
  24037. display: flex;
  24038. flex-direction: column;
  24039. flex-wrap: nowrap;
  24040. align-items: flex-start;
  24041. }
  24042. .radioBox > div {
  24043. margin: 10px 0 0 10px;
  24044. }
  24045. /* .radioBox >>> .el-radio__input,
  24046. .radioBox >>> .el-checkbox__inner {
  24047. margin-left: 10px;
  24048. } */
  24049. .radioBox >>> .el-radio__label,
  24050. .radioBox >>> .el-checkbox__label {
  24051. display: flex;
  24052. align-items: center;
  24053. width: 100%;
  24054. }
  24055. .radioBox >>> .el-radio__label > span {
  24056. width: 100%;
  24057. display: -webkit-box;
  24058. overflow: hidden;
  24059. white-space: normal !important;
  24060. text-overflow: ellipsis;
  24061. word-wrap: break-word;
  24062. }
  24063. .inImg {
  24064. width: 100px;
  24065. cursor: pointer;
  24066. }
  24067. .inImg > img {
  24068. width: 100%;
  24069. height: 100%;
  24070. object-fit: cover;
  24071. }
  24072. .timuImgBox {
  24073. margin: 10px 0;
  24074. display: flex;
  24075. flex-direction: column;
  24076. flex-wrap: wrap;
  24077. align-items: flex-start;
  24078. }
  24079. .timuImg {
  24080. width: 150px;
  24081. margin: 5px 0;
  24082. cursor: pointer;
  24083. }
  24084. .timuImg > img {
  24085. width: 100%;
  24086. height: 100%;
  24087. object-fit: cover;
  24088. }
  24089. .worksTop {
  24090. display: flex;
  24091. flex-direction: row;
  24092. align-items: flex-end;
  24093. }
  24094. .worksTitle {
  24095. display: flex;
  24096. flex-direction: row;
  24097. flex-wrap: nowrap;
  24098. align-items: center;
  24099. }
  24100. .worksTitle::before,
  24101. .worksTop::before {
  24102. content: "";
  24103. display: block;
  24104. width: 3px;
  24105. height: 20px;
  24106. background: #0061ff;
  24107. border-radius: 3px;
  24108. margin: 0 5px 0 0;
  24109. }
  24110. .corOpen {
  24111. margin: 0 0 0 10px;
  24112. font-size: 14px;
  24113. cursor: pointer;
  24114. color: #505050;
  24115. }
  24116. .corOpen:hover {
  24117. color: #499eef;
  24118. }
  24119. .navCorOpenBox {
  24120. display: flex;
  24121. flex-direction: row;
  24122. align-items: center;
  24123. justify-content: space-between;
  24124. height: 55px;
  24125. background: #ffffff;
  24126. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24127. border-radius: 8px 8px 0px 0px;
  24128. z-index: 9;
  24129. position: relative;
  24130. }
  24131. .navCorOpen {
  24132. padding-right: 15px;
  24133. cursor: pointer;
  24134. width: 45px;
  24135. display: flex;
  24136. }
  24137. .navCorOpen > img {
  24138. width: 100%;
  24139. height: 100%;
  24140. }
  24141. .mlImg {
  24142. width: 40px !important;
  24143. min-width: 40px;
  24144. cursor: pointer;
  24145. transform: rotate(180deg);
  24146. }
  24147. .mlImg > img {
  24148. width: 100%;
  24149. height: 100%;
  24150. }
  24151. .navLeftCss {
  24152. width: 100% !important;
  24153. left: 0 !important;
  24154. }
  24155. .isContentCss {
  24156. width: 100% !important;
  24157. }
  24158. .isAllWidth {
  24159. width: 100% !important;
  24160. }
  24161. .group_switch {
  24162. margin-right: 10px;
  24163. height: 30px;
  24164. display: flex;
  24165. align-items: center;
  24166. }
  24167. .group_switch > span {
  24168. margin-right: 5px;
  24169. }
  24170. .fileC_box {
  24171. padding-top: 15px;
  24172. }
  24173. .fileC_box > .fileC_title {
  24174. padding: 10px 5px 14px 10px;
  24175. border-top: 1px solid #cad1dc;
  24176. font-size: 14px;
  24177. font-weight: 400;
  24178. color: #cad1dc;
  24179. width: calc(100% - 20px);
  24180. margin: 0 auto;
  24181. box-sizing: border-box;
  24182. }
  24183. .pl_select_box {
  24184. height: 40px;
  24185. line-height: 40px;
  24186. width: 100%;
  24187. cursor: pointer;
  24188. padding: 0 20px;
  24189. box-sizing: border-box;
  24190. border-radius: 5px;
  24191. border: 1px solid #d6d6d6;
  24192. white-space: nowrap;
  24193. overflow: hidden;
  24194. text-overflow: ellipsis;
  24195. background: #fff;
  24196. text-align: left;
  24197. }
  24198. .newButton {
  24199. width: 102px;
  24200. height: 36px;
  24201. background: #e7ebf1;
  24202. border-radius: 4px;
  24203. color: #0e1e33;
  24204. font-weight: 400;
  24205. font-size: 14px;
  24206. border: none;
  24207. float: right;
  24208. margin-left: 10px;
  24209. }
  24210. .el-table >>> .even_row {
  24211. background-color: #f0f4fa;
  24212. }
  24213. .stageBoxCss,
  24214. .stageBoxIsCss {
  24215. display: flex;
  24216. flex-direction: row;
  24217. flex-wrap: nowrap;
  24218. align-items: center;
  24219. height: 50px;
  24220. border-bottom: 1px solid #e2f5fc;
  24221. cursor: pointer;
  24222. width: 100%;
  24223. }
  24224. .stageBoxIsCss {
  24225. background: #0061ff;
  24226. color: #fff;
  24227. border-radius: 8px;
  24228. }
  24229. .closeTri,
  24230. .closeTri1 {
  24231. min-width: 15px;
  24232. width: 15px;
  24233. height: 15px;
  24234. }
  24235. .closeTri1 {
  24236. padding-left: 10px;
  24237. cursor: pointer;
  24238. }
  24239. .closeTri > img,
  24240. .closeTri1 > img {
  24241. width: 100%;
  24242. height: 100%;
  24243. /* transition: all .5s; */
  24244. }
  24245. .noToolBlue {
  24246. min-width: 10px;
  24247. width: 10px;
  24248. height: 10px;
  24249. background: #0061ff;
  24250. border-radius: 50%;
  24251. margin-left: 13px;
  24252. }
  24253. .stageChild,
  24254. .toolChild {
  24255. height: 0;
  24256. overflow: hidden;
  24257. transition: all 0.5s;
  24258. }
  24259. .toolChild {
  24260. /* margin: 0 0 0 17px;
  24261. padding: 0 0 0 20px;
  24262. border-left: 1px solid #d7d7d7; */
  24263. }
  24264. .toolChild > div + div{
  24265. margin-top:5px;
  24266. }
  24267. .gjCss {
  24268. display: flex;
  24269. flex-direction: row;
  24270. flex-wrap: nowrap;
  24271. align-items: center;
  24272. padding: 10px 0 10px 40px;
  24273. box-sizing: border-box;
  24274. font-size: 14px;
  24275. cursor: pointer;
  24276. border-radius:5px;
  24277. }
  24278. .toolChild > div {
  24279. position: relative;
  24280. width: 100%;
  24281. }
  24282. .toolChild > div::before {
  24283. /* content: "";
  24284. width: 15px;
  24285. height: 1px;
  24286. background: #cad1dc;
  24287. position: absolute;
  24288. top: 24px;
  24289. left: -20px;
  24290. display: block; */
  24291. }
  24292. .isGjCss {
  24293. /* color: #0061ff; */
  24294. color:#fff;
  24295. background: rgb(55, 129, 252);
  24296. /* background-color: #e0eafb !important;
  24297. color: #0061ff !important; */
  24298. }
  24299. .navItem {
  24300. background: #ffffff;
  24301. border-radius: 4px;
  24302. width: 100%;
  24303. margin: 10px auto;
  24304. position: relative;
  24305. height: 40px;
  24306. display: flex;
  24307. flex-direction: row;
  24308. flex-wrap: nowrap;
  24309. align-items: center;
  24310. }
  24311. .navItemList {
  24312. display: flex;
  24313. flex-direction: row;
  24314. flex-wrap: nowrap;
  24315. align-items: center;
  24316. padding: 0 13px;
  24317. cursor: pointer;
  24318. width: calc(100% - 60px);
  24319. height: 100%;
  24320. }
  24321. .navItemList > div:first-child {
  24322. min-width: 60px;
  24323. }
  24324. .navItemList > div:last-child {
  24325. width: calc(100% - 80px);
  24326. white-space: nowrap;
  24327. overflow: hidden;
  24328. text-overflow: ellipsis;
  24329. word-break: break-word;
  24330. }
  24331. /* .isItemList > div {
  24332. color: #fff !important;
  24333. } */
  24334. .tool_work_box {
  24335. width: 100%;
  24336. padding: 0 37px 0;
  24337. box-sizing: border-box;
  24338. }
  24339. .tool_box {
  24340. width: 100%;
  24341. padding: 0 0 0 20px;
  24342. }
  24343. .tool_type_box {
  24344. display: flex;
  24345. flex-direction: row;
  24346. align-items: baseline;
  24347. flex-wrap: nowrap;
  24348. justify-content: flex-start;
  24349. position: relative;
  24350. }
  24351. .toolSort {
  24352. display: flex;
  24353. flex-direction: row;
  24354. flex-wrap: wrap;
  24355. justify-content: flex-start;
  24356. align-items: flex-start;
  24357. padding: 0 0 15px 0;
  24358. }
  24359. .toolSort > div {
  24360. margin: 0 10px 0 0;
  24361. width: 135px;
  24362. box-sizing: border-box;
  24363. border: 2px solid transparent;
  24364. }
  24365. .tools {
  24366. width: 100%;
  24367. display: flex;
  24368. flex-direction: column;
  24369. flex-wrap: nowrap;
  24370. align-items: flex-start;
  24371. }
  24372. .whiteBIcon {
  24373. width: fit-content;
  24374. cursor: pointer;
  24375. display: flex;
  24376. flex-direction: column;
  24377. flex-wrap: nowrap;
  24378. align-items: center;
  24379. font-size: 14px;
  24380. }
  24381. .tool:hover {
  24382. border: 2px solid #a5c7ff;
  24383. border-radius: 5px;
  24384. }
  24385. .whiteBIcon > img {
  24386. width: 65px;
  24387. height: 100%;
  24388. }
  24389. .whiteBIcon > img {
  24390. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  24391. border-radius: 15px;
  24392. }
  24393. .check {
  24394. /* width: 20px;
  24395. height: 20px; */
  24396. cursor: pointer;
  24397. margin: 10px 0;
  24398. position: absolute;
  24399. right: 2px;
  24400. top: -5px;
  24401. }
  24402. .noChoose,
  24403. .isChoose {
  24404. width: 15px;
  24405. height: 15px;
  24406. border-radius: 50%;
  24407. border: 1px solid #adadad;
  24408. }
  24409. .isChoose {
  24410. border: 4px solid #0363ff !important;
  24411. width: 10px;
  24412. height: 10px;
  24413. }
  24414. .isToolChoose {
  24415. border: 2px solid #5394ff !important;
  24416. border-radius: 5px;
  24417. box-shadow: 0 0 6px 0px #5394ff;
  24418. }
  24419. .checkDiv {
  24420. display: flex;
  24421. align-items: center;
  24422. }
  24423. .checkDiv span {
  24424. margin-left: 5px;
  24425. color: #858585;
  24426. }
  24427. .check img {
  24428. width: 20px;
  24429. height: 20px;
  24430. }
  24431. .lockTaskIcon {
  24432. width: 20px;
  24433. height: 20px;
  24434. position: absolute;
  24435. right: 10px;
  24436. top: 10px;
  24437. }
  24438. .lockTaskIcon > img {
  24439. width: 100%;
  24440. height: 100%;
  24441. }
  24442. .pick_box {
  24443. display: flex;
  24444. align-items: flex-start;
  24445. flex-wrap: wrap;
  24446. }
  24447. .selectBox {
  24448. width: 110px;
  24449. margin-left: 10px;
  24450. margin: 0 10px 0 auto;
  24451. }
  24452. .selectBox >>> .el-input__inner {
  24453. height: 30px;
  24454. line-height: 30px;
  24455. }
  24456. .selectBox >>> .el-input__icon {
  24457. line-height: 30px;
  24458. }
  24459. .sentenceTitle {
  24460. display: flex;
  24461. flex-direction: row;
  24462. flex-wrap: nowrap;
  24463. align-items: center;
  24464. }
  24465. .sentenceTitle::before {
  24466. content: attr(index);
  24467. background: #3681fc;
  24468. border-radius: 50%;
  24469. color: #fff;
  24470. width: 25px;
  24471. height: 25px;
  24472. min-width: 25px;
  24473. min-height: 25px;
  24474. text-align: center;
  24475. line-height: 25px;
  24476. margin-right: 5px;
  24477. }
  24478. .hfBox {
  24479. padding: 10px;
  24480. box-sizing: border-box;
  24481. }
  24482. .whoReplyWho {
  24483. display: flex;
  24484. flex-direction: row;
  24485. flex-wrap: nowrap;
  24486. align-items: baseline;
  24487. justify-content: flex-start;
  24488. }
  24489. .hfBottom {
  24490. display: flex;
  24491. flex-direction: row;
  24492. flex-wrap: nowrap;
  24493. align-items: center;
  24494. justify-content: space-between;
  24495. font-size: 14px;
  24496. }
  24497. .deleteHfItem {
  24498. cursor: pointer;
  24499. width: 20px;
  24500. height: 20px;
  24501. }
  24502. .deleteHfItem > img {
  24503. width: 100%;
  24504. height: 100%;
  24505. }
  24506. .whoReplyWho > .hfImg {
  24507. width: 12px;
  24508. height: 12px;
  24509. margin: 0 5px;
  24510. }
  24511. .whoReplyWho > .hfImg > img {
  24512. width: 100%;
  24513. height: 100%;
  24514. }
  24515. .hfContent {
  24516. padding-top: 10px;
  24517. box-sizing: border-box;
  24518. display: -webkit-box;
  24519. overflow: hidden;
  24520. white-space: normal !important;
  24521. text-overflow: ellipsis;
  24522. word-wrap: break-word;
  24523. -webkit-box-orient: vertical;
  24524. }
  24525. .hfTime {
  24526. text-align: left;
  24527. box-sizing: border-box;
  24528. padding: 10px 0 10px 0px;
  24529. color: #bfbfbf;
  24530. font-size: 14px;
  24531. }
  24532. .btnAllNT {
  24533. position: fixed;
  24534. bottom: 100px;
  24535. right: 40px;
  24536. z-index: 999;
  24537. display: flex;
  24538. flex-direction: row;
  24539. }
  24540. .btnAllNT > img {
  24541. cursor: pointer;
  24542. width: 80px;
  24543. }
  24544. .toolMask {
  24545. position: fixed;
  24546. width: 100%;
  24547. height: 100%;
  24548. background: #3f3c3c;
  24549. opacity: 0.5;
  24550. top: 0;
  24551. left: 0;
  24552. z-index: 999;
  24553. }
  24554. .addToolCss {
  24555. position: fixed;
  24556. z-index: 999;
  24557. background: #fff;
  24558. right: 5%;
  24559. bottom: 18%;
  24560. min-width: 1035px;
  24561. min-height: 300px;
  24562. border-radius: 10px;
  24563. box-shadow: 0 0 8px 1px #b2b2b2;
  24564. }
  24565. .toolTop {
  24566. display: flex;
  24567. flex-direction: row;
  24568. flex-wrap: nowrap;
  24569. justify-content: space-between;
  24570. align-items: center;
  24571. padding: 20px;
  24572. }
  24573. .toolTop > div:nth-child(2) {
  24574. width: 15px;
  24575. height: 15px;
  24576. padding-right: 10px;
  24577. cursor: pointer;
  24578. }
  24579. .toolTop > div:nth-child(2) > img {
  24580. width: 100%;
  24581. height: 100%;
  24582. }
  24583. .fullStyle>>>.el-dialog__body {
  24584. height: calc(100% - 125px) !important;
  24585. box-sizing: border-box;
  24586. padding: 30px 0 !important;
  24587. background: #fff !important;
  24588. }
  24589. .fullStyle>>>.el-dialog {
  24590. width: 100% !important;
  24591. max-width: 100% !important;
  24592. height: 100% !important;
  24593. margin: 0 !important;
  24594. }
  24595. .fullStyle {
  24596. width: 100% !important;
  24597. max-width: 100% !important;
  24598. height: 100% !important;
  24599. margin: 0 auto !important;
  24600. }
  24601. .fullStyle>>>.el-dialog__footer{
  24602. background: #fff !important;
  24603. }
  24604. .engUpBox {
  24605. width: 100%;
  24606. height: 100%;
  24607. }
  24608. .engTitle,
  24609. .engText {
  24610. display: flex;
  24611. flex-direction: row;
  24612. flex-wrap: nowrap;
  24613. align-items: flex-start;
  24614. padding: 0 20px 20px 20px;
  24615. box-sizing: border-box;
  24616. }
  24617. .engTitle > .div:first-child,
  24618. .engText > div:first-child {
  24619. min-width: 75px;
  24620. }
  24621. .correctBox{
  24622. width: 100%;
  24623. display: flex;
  24624. flex-direction: row;
  24625. flex-wrap: nowrap;
  24626. align-items: flex-start;
  24627. }
  24628. .oldBox{
  24629. width: 50%;
  24630. height: 100%;
  24631. display: flex;
  24632. flex-direction: column;
  24633. flex-wrap: nowrap;
  24634. align-items: center;
  24635. border-top: 1px solid #d9d9d9;
  24636. border-left: 1px solid #d9d9d9;
  24637. border-right: 1px solid #d9d9d9;
  24638. }
  24639. .oldBox>div:first-child{
  24640. width: 100%;
  24641. text-align: center;
  24642. background: #d9d9d9;
  24643. height: 35px;
  24644. line-height: 35px;
  24645. font-weight: bold;
  24646. }
  24647. .oldText{
  24648. width: 100%;
  24649. height: calc(100% - 35px);
  24650. overflow: auto;
  24651. margin: 10px 0;
  24652. display: flex;
  24653. flex-direction: column;
  24654. flex-wrap: nowrap;
  24655. align-content: center;
  24656. align-items: center;
  24657. }
  24658. .detailBox{
  24659. width: 50%;
  24660. padding: 10px;
  24661. background: #f6f6f6;
  24662. border-radius: 5px;
  24663. }
  24664. .oldDetail,.oldDetail1{
  24665. padding-bottom: 30px;
  24666. }
  24667. .oldImg{
  24668. width:30px;
  24669. height: 30px;
  24670. }
  24671. .oldImg>img{
  24672. width: 100%;
  24673. height: 100%;
  24674. }
  24675. .allName{
  24676. min-width: 200px;
  24677. white-space: nowrap;
  24678. overflow: hidden;
  24679. text-overflow: ellipsis;
  24680. word-break: break-word;
  24681. cursor: pointer;
  24682. text-align: center;
  24683. border: 1px solid #bcc2cc;
  24684. box-sizing: border-box;
  24685. }
  24686. .engUpTop{
  24687. max-height: 300px;
  24688. overflow: auto;
  24689. }
  24690. .isUpdateToolDetailClass{
  24691. padding: 0 !important;
  24692. }
  24693. .isUpdateToolDetailClass textarea{
  24694. padding:12px;
  24695. font-size: 16px;
  24696. min-height:100%;
  24697. width: 100%;
  24698. box-sizing:border-box;
  24699. outline: none;
  24700. border:none;
  24701. line-height: 30px;
  24702. resize: none;
  24703. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  24704. color: #838383;
  24705. }
  24706. .show_taskD {
  24707. min-width: fit-content;
  24708. margin-left: 10px;
  24709. display: flex;
  24710. align-items: center;
  24711. font-size: 14px;
  24712. cursor: pointer;
  24713. color: #717c8d;
  24714. }
  24715. .show_taskD > img {
  24716. width: 15px;
  24717. margin-right: 5px;
  24718. transition: 0.2s all;
  24719. transform: rotate(-90deg);
  24720. }
  24721. .show_taskD.show > img {
  24722. transform: rotate(0deg);
  24723. }
  24724. .dialog_diyCopy >>> .el-dialog__header {
  24725. display: none !important;
  24726. }
  24727. .dialog_diyCopy >>> .el-dialog__body {
  24728. padding: 0 !important;
  24729. height: 100% !important;
  24730. }
  24731. .confirmOpenDigCss > div{
  24732. font-size: 14px;
  24733. color: rgba(0, 0, 0, 0.6);
  24734. }
  24735. .confirmOpenDigCss >>> .el-dialog{
  24736. border-radius: 6px;
  24737. }
  24738. .confirmOpenDigCss >>> .el-dialog__body{
  24739. padding: 25px !important;
  24740. }
  24741. .confirmOpenDigCss > span{
  24742. font-size: 16px;
  24743. font-weight: 600;
  24744. color: rgba(0, 0, 0, 0.8);
  24745. }
  24746. .correctCss{
  24747. position: absolute;
  24748. bottom: -70px;
  24749. background: #409eff;
  24750. color: #fff;
  24751. }
  24752. div::-webkit-scrollbar {
  24753. width: 10px;
  24754. height: 6px;
  24755. }
  24756. </style>