studyStudent.vue 851 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456
  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. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1427. <!-- content to trigger tooltip here -->
  1428. <div style="margin: 5px 0;width: 85px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">{{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}</div>
  1429. </el-tooltip>
  1430. </div>
  1431. <div v-if="tooC == 65">
  1432. <img
  1433. @click="addTools(tooC, toolIndex, taskCount)"
  1434. src="../../assets/icon/firstToolList/pickPeople.png"
  1435. alt
  1436. />
  1437. <div style="margin: 5px 0">挑人</div>
  1438. </div>
  1439. <div v-if="tooC == 66">
  1440. <img
  1441. @click="addTools(tooC, toolIndex, taskCount)"
  1442. src="../../assets/icon/secondToolList/formulaEdi.png"
  1443. alt
  1444. />
  1445. <div style="margin: 5px 0">公式编辑</div>
  1446. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1447. style="position: absolute;right: 33px;top: -30px;">
  1448. 投影
  1449. </div>
  1450. </div>
  1451. <div v-if="tooC == 67">
  1452. <img
  1453. @click="addTools(tooC, toolIndex, taskCount)"
  1454. src="../../assets/icon/secondToolList/molStr.png"
  1455. alt
  1456. />
  1457. <div style="margin: 5px 0">分子结构</div>
  1458. </div>
  1459. <div v-if="tooC == 68">
  1460. <img
  1461. @click="addTools(tooC, toolIndex, taskCount)"
  1462. src="../../assets/icon/secondToolList/timeAxis.png"
  1463. alt
  1464. />
  1465. <div style="margin: 5px 0">时间轴</div>
  1466. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1467. style="position: absolute;right: 33px;top: -30px;">
  1468. 投影
  1469. </div> -->
  1470. </div>
  1471. <div v-if="tooC == 69">
  1472. <img
  1473. @click="addTools(tooC, toolIndex, taskCount)"
  1474. src="../../assets/icon/secondToolList/english.png"
  1475. alt
  1476. />
  1477. <div style="margin: 5px 0">英语写作</div>
  1478. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1479. style="position: absolute;right: 33px;top: -30px;">
  1480. 投影
  1481. </div>
  1482. </div>
  1483. <div v-if="tooC == 70">
  1484. <img
  1485. @click="addTools(tooC, toolIndex, taskCount)"
  1486. src="../../assets/icon/thirdToolList/englishVoice.png"
  1487. alt
  1488. />
  1489. <div style="margin: 5px 0">英语口语</div>
  1490. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1491. style="position: absolute;right: 33px;top: -30px;">
  1492. 投影
  1493. </div>
  1494. </div>
  1495. </div>
  1496. </div>
  1497. </div>
  1498. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1499. <!-- <div class="toolTitle">工具描述</div> -->
  1500. <!-- @click.stop="updateToolDetail(toolIndex, 2)" 点击开启修改-->
  1501. <div style="height:100%;"
  1502. v-html="contentConvent(tool.toolDetail)"
  1503. v-if="toolDetailIndex != toolIndex"
  1504. ></div>
  1505. <div v-else @click.stop="" style="height:100%;">
  1506. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1507. </div>
  1508. </div>
  1509. <el-button
  1510. type="primary"
  1511. v-if="tool.tool[0] == 32"
  1512. style="position: absolute; right: 30px; top: -45px"
  1513. @click="addImg($event)"
  1514. >上传作业<input
  1515. type="file"
  1516. accept="*"
  1517. style="display: none"
  1518. @change="beforeUpload1($event, 7, toolIndex)"
  1519. /></el-button>
  1520. <el-button
  1521. type="primary"
  1522. v-if="tool.tool[0] == 15"
  1523. style="position: absolute; right: 30px; top: -45px"
  1524. @click="openWordCloud(toolIndex)"
  1525. >生成词云</el-button
  1526. >
  1527. <el-button
  1528. type="primary"
  1529. v-if="
  1530. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1531. "
  1532. style="position: absolute; right: 30px; top: -45px"
  1533. @click="uploadWorks(toolIndex)"
  1534. >导出作业</el-button
  1535. >
  1536. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1537. position: absolute;
  1538. right: 30px;
  1539. transform: translateY(-130%);
  1540. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1541. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1542. </div>
  1543. <div
  1544. v-if="
  1545. tType &&
  1546. tType == 2 &&
  1547. !sIsOpen &&
  1548. tool.tool.indexOf(16) != -1
  1549. "
  1550. class="worksBox"
  1551. >
  1552. <div
  1553. class="zuoyeYulan"
  1554. v-if="workStudent[toolIndex].length > 0"
  1555. >
  1556. <span class="worksTitle">作业预览</span>
  1557. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1558. </div>
  1559. <div
  1560. class="worksDetailBox"
  1561. v-if="workStudent[toolIndex].length > 0"
  1562. >
  1563. <div
  1564. class="works"
  1565. style="
  1566. width: 200px;
  1567. height: 140px;
  1568. margin: 10px 10px 10px 0;
  1569. box-shadow: 0 0 6px 1px #dfdada;
  1570. "
  1571. v-for="(w, wIndex) in workStudent[toolIndex]"
  1572. :key="wIndex"
  1573. >
  1574. <div class="workImg" v-if="w.type == 0">
  1575. <img
  1576. :src="w.works"
  1577. @click="previewImg(w.works,w)"
  1578. alt
  1579. />
  1580. <div
  1581. class="answerScore"
  1582. v-if="w.score"
  1583. @click.stop="openScore(w)"
  1584. :class="{
  1585. rightW:
  1586. w.userid == userid || tType == 1 || tType == 4,
  1587. }"
  1588. >
  1589. {{ JSON.parse(w.score).wScore }}分
  1590. </div>
  1591. <div
  1592. class="answerScore"
  1593. @click.stop="openScore(w)"
  1594. v-else-if="courseDetail.userid == userid"
  1595. :class="{
  1596. rightW:
  1597. w.userid == userid || tType == 1 || tType == 4,
  1598. }"
  1599. >
  1600. 评分
  1601. </div>
  1602. <img
  1603. class="deleteImg"
  1604. src="../../assets/deleteworks.png"
  1605. v-if="
  1606. w.userid == userid || tType == 1 || tType == 4
  1607. "
  1608. @click.stop="deleteWorks(w.wid)"
  1609. alt
  1610. />
  1611. </div>
  1612. <div class="workImg" v-if="w.type == 1">
  1613. <img :src="word" @click="openFile(w.works)" alt />
  1614. <div
  1615. class="answerScore"
  1616. v-if="w.score"
  1617. @click.stop="openScore(w)"
  1618. :class="{
  1619. rightW:
  1620. w.userid == userid || tType == 1 || tType == 4,
  1621. }"
  1622. >
  1623. {{ JSON.parse(w.score).wScore }}分
  1624. </div>
  1625. <div
  1626. class="answerScore"
  1627. @click.stop="openScore(w)"
  1628. v-else-if="courseDetail.userid == userid"
  1629. :class="{
  1630. rightW:
  1631. w.userid == userid || tType == 1 || tType == 4,
  1632. }"
  1633. >
  1634. 评分
  1635. </div>
  1636. <img
  1637. class="deleteImg"
  1638. src="../../assets/deleteworks.png"
  1639. v-if="
  1640. w.userid == userid || tType == 1 || tType == 4
  1641. "
  1642. @click.stop="deleteWorks(w.wid)"
  1643. alt
  1644. />
  1645. </div>
  1646. <div class="workImg" v-if="w.type == 3">
  1647. <img
  1648. style="cursor: pointer"
  1649. :src="video"
  1650. @click="openVideo(w)"
  1651. alt
  1652. />
  1653. <div
  1654. class="answerScore"
  1655. v-if="w.score"
  1656. @click.stop="openScore(w)"
  1657. :class="{
  1658. rightW:
  1659. w.userid == userid || tType == 1 || tType == 4,
  1660. }"
  1661. >
  1662. {{ JSON.parse(w.score).wScore }}分
  1663. </div>
  1664. <div
  1665. class="answerScore"
  1666. @click.stop="openScore(w)"
  1667. v-else-if="courseDetail.userid == userid"
  1668. :class="{
  1669. rightW:
  1670. w.userid == userid || tType == 1 || tType == 4,
  1671. }"
  1672. >
  1673. 评分
  1674. </div>
  1675. <img
  1676. class="deleteImg"
  1677. src="../../assets/deleteworks.png"
  1678. v-if="
  1679. w.userid == userid || tType == 1 || tType == 4
  1680. "
  1681. @click.stop="deleteWorks(w.wid)"
  1682. alt
  1683. />
  1684. </div>
  1685. <div class="workImg" v-if="w.type == 12">
  1686. <img
  1687. style="cursor: pointer"
  1688. :src="word2"
  1689. @click="downloadFile(w.works)"
  1690. alt
  1691. />
  1692. <div
  1693. class="answerScore"
  1694. v-if="w.score"
  1695. @click.stop="openScore(w)"
  1696. :class="{
  1697. rightW:
  1698. w.userid == userid || tType == 1 || tType == 4,
  1699. }"
  1700. >
  1701. {{ JSON.parse(w.score).wScore }}分
  1702. </div>
  1703. <div
  1704. class="answerScore"
  1705. @click.stop="openScore(w)"
  1706. v-else-if="courseDetail.userid == userid"
  1707. :class="{
  1708. rightW:
  1709. w.userid == userid || tType == 1 || tType == 4,
  1710. }"
  1711. >
  1712. 评分
  1713. </div>
  1714. <img
  1715. class="deleteImg"
  1716. src="../../assets/deleteworks.png"
  1717. v-if="
  1718. w.userid == userid || tType == 1 || tType == 4
  1719. "
  1720. @click.stop="deleteWorks(w.wid)"
  1721. alt
  1722. />
  1723. </div>
  1724. <div class="worksName">
  1725. <div>{{ w.sName }}</div>
  1726. </div>
  1727. </div>
  1728. </div>
  1729. </div>
  1730. <div
  1731. v-if="
  1732. tType &&
  1733. tType == 2 &&
  1734. !sIsOpen &&
  1735. tool.tool.indexOf(32) != -1
  1736. "
  1737. class="worksBox"
  1738. >
  1739. <div
  1740. class="zuoyeYulan"
  1741. v-if="workStudent[toolIndex].length > 0"
  1742. >
  1743. <span class="worksTitle">作业预览</span>
  1744. </div>
  1745. <div
  1746. class="worksDetailBox"
  1747. v-if="workStudent[toolIndex].length > 0"
  1748. >
  1749. <div
  1750. class="works"
  1751. style="
  1752. width: 200px;
  1753. height: 140px;
  1754. margin: 10px 10px 10px 0;
  1755. box-shadow: 0 0 6px 1px #dfdada;
  1756. "
  1757. v-for="(w, wIndex) in workStudent[toolIndex]"
  1758. :key="wIndex"
  1759. >
  1760. <div class="workImg">
  1761. <img
  1762. :src="word2"
  1763. @click="downloadFile(w.works)"
  1764. alt
  1765. />
  1766. <div
  1767. class="answerScore"
  1768. v-if="w.score"
  1769. @click.stop="openScore(w)"
  1770. :class="{
  1771. rightW:
  1772. w.userid == userid || tType == 1 || tType == 4,
  1773. }"
  1774. >
  1775. {{ JSON.parse(w.score).wScore }}分
  1776. </div>
  1777. <div
  1778. class="answerScore"
  1779. @click.stop="openScore(w)"
  1780. v-else-if="courseDetail.userid == userid"
  1781. :class="{
  1782. rightW:
  1783. w.userid == userid || tType == 1 || tType == 4,
  1784. }"
  1785. >
  1786. 评分
  1787. </div>
  1788. <img
  1789. class="deleteImg"
  1790. src="../../assets/deleteworks.png"
  1791. v-if="
  1792. w.userid == userid || tType == 1 || tType == 4
  1793. "
  1794. @click.stop="deleteWorks(w.wid)"
  1795. alt
  1796. />
  1797. </div>
  1798. <div class="worksName">
  1799. <div>{{ w.sName }}</div>
  1800. </div>
  1801. </div>
  1802. </div>
  1803. </div>
  1804. <div
  1805. v-if="
  1806. tType &&
  1807. tType == 2 &&
  1808. !sIsOpen &&
  1809. tool.tool.indexOf(57) != -1
  1810. "
  1811. class="worksBox"
  1812. >
  1813. <div
  1814. class="zuoyeYulan"
  1815. v-if="workStudent[toolIndex].length > 0"
  1816. >
  1817. <span class="worksTitle">作业预览</span>
  1818. </div>
  1819. <div
  1820. class="worksDetailBox"
  1821. v-if="workStudent[toolIndex].length > 0"
  1822. >
  1823. <div
  1824. class="works"
  1825. style="
  1826. width: 200px;
  1827. height: 140px;
  1828. margin: 10px 10px 10px 0;
  1829. box-shadow: 0 0 6px 1px #dfdada;
  1830. "
  1831. v-for="(w, wIndex) in workStudent[toolIndex]"
  1832. :key="wIndex"
  1833. >
  1834. <div class="workImg">
  1835. <img
  1836. :src="word2"
  1837. @click="downloadFile(w.works)"
  1838. v-if="w.type == 12"
  1839. alt
  1840. />
  1841. <img
  1842. :src="word2"
  1843. @click="
  1844. openCocoPi(57, toolIndex, w.userid, w.sName)
  1845. "
  1846. v-else-if="w.type == 15"
  1847. alt
  1848. />
  1849. <div
  1850. class="answerScore"
  1851. v-if="w.score"
  1852. @click.stop="openScore(w)"
  1853. :class="{
  1854. rightW:
  1855. w.userid == userid || tType == 1 || tType == 4,
  1856. }"
  1857. >
  1858. {{ JSON.parse(w.score).wScore }}分
  1859. </div>
  1860. <div
  1861. class="answerScore"
  1862. @click.stop="openScore(w)"
  1863. v-else-if="courseDetail.userid == userid"
  1864. :class="{
  1865. rightW:
  1866. w.userid == userid || tType == 1 || tType == 4,
  1867. }"
  1868. >
  1869. 评分
  1870. </div>
  1871. <img
  1872. class="deleteImg"
  1873. src="../../assets/deleteworks.png"
  1874. v-if="
  1875. w.userid == userid || tType == 1 || tType == 4
  1876. "
  1877. @click.stop="deleteWorks(w.wid)"
  1878. alt
  1879. />
  1880. </div>
  1881. <div class="worksName">
  1882. <div>{{ w.sName }}</div>
  1883. </div>
  1884. </div>
  1885. </div>
  1886. </div>
  1887. <div
  1888. v-if="
  1889. tType &&
  1890. tType == 2 &&
  1891. !sIsOpen &&
  1892. tool.tool.indexOf(4) != -1
  1893. "
  1894. class="worksBox"
  1895. >
  1896. <div
  1897. class="zuoyeYulan"
  1898. v-if="workStudent[toolIndex].length > 0"
  1899. >
  1900. <span class="worksTitle">作业预览</span>
  1901. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1902. </div>
  1903. <div
  1904. class="worksDetailBox"
  1905. v-if="workStudent[toolIndex].length > 0"
  1906. >
  1907. <div
  1908. class="isWorksName2"
  1909. v-for="(w, wIndex) in workStudent[toolIndex]"
  1910. :key="wIndex"
  1911. @click="
  1912. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1913. "
  1914. >
  1915. {{ w.sName }}
  1916. <img
  1917. class="deleteImg deleteImg2"
  1918. src="../../assets/deleteworks.png"
  1919. v-if="w.userid == userid || tType == 1 || tType == 4"
  1920. @click.stop="deleteWorks(w.wid)"
  1921. alt
  1922. />
  1923. </div>
  1924. <!-- <div
  1925. class="works"
  1926. style="
  1927. width: 200px;
  1928. height: 140px;
  1929. border-radius: 10px;
  1930. box-shadow: 0 0 6px 1px #dfdada;
  1931. overflow: hidden;
  1932. "
  1933. v-for="(w, wIndex) in workStudent[toolIndex]"
  1934. :key="wIndex"
  1935. >
  1936. <div class="workImg">
  1937. <img
  1938. src="../../assets/icon/works/noImg.png"
  1939. @click="
  1940. openTools(
  1941. 4,
  1942. toolIndex,
  1943. taskCount,
  1944. w.works,
  1945. w.sName
  1946. )
  1947. "
  1948. alt
  1949. />
  1950. </div>
  1951. <div class="worksName">
  1952. <div>{{ w.sName }}</div>
  1953. <div>{{ w.time }}</div>
  1954. </div>
  1955. </div> -->
  1956. </div>
  1957. </div>
  1958. <div
  1959. v-if="
  1960. tType &&
  1961. ((tType == 2 && sIsOpen == true) ||
  1962. tType == 1 ||
  1963. tType == 4) &&
  1964. tool.tool.indexOf(62) != -1
  1965. "
  1966. class="worksBox"
  1967. >
  1968. <div
  1969. class="zuoyeYulan"
  1970. v-if="
  1971. worksStudent.length &&
  1972. worksStudent[toolIndex].length > 0
  1973. "
  1974. >
  1975. <div class="worksTop">
  1976. <div>作业预览</div>
  1977. <div
  1978. class="corOpen"
  1979. @click="contract(toolIndex)"
  1980. v-if="
  1981. (isCloseList[toolIndex].isCloseBoolean) &&
  1982. isCloseList[toolIndex].isClose == 0
  1983. "
  1984. >
  1985. 折叠
  1986. </div>
  1987. <div
  1988. class="corOpen"
  1989. @click="contract(toolIndex)"
  1990. v-if="isCloseList[toolIndex].isClose == 1"
  1991. >
  1992. 展开
  1993. </div>
  1994. </div>
  1995. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1996. </div>
  1997. <div>
  1998. <div
  1999. :id="'tool-' + toolIndex"
  2000. :style="{
  2001. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2002. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2003. }"
  2004. class="worksDetailBox"
  2005. v-if="
  2006. worksStudent.length &&
  2007. worksStudent[toolIndex].length > 0
  2008. "
  2009. >
  2010. <div
  2011. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2012. :key="wIndex"
  2013. class="isWorksName2"
  2014. @click="
  2015. openTools(
  2016. 62,
  2017. toolIndex,
  2018. taskCount,
  2019. w.works,
  2020. w.sName
  2021. )
  2022. "
  2023. >
  2024. {{ w.sName }}
  2025. <img
  2026. class="deleteImg deleteImg2"
  2027. src="../../assets/deleteworks.png"
  2028. v-if="
  2029. w.userid == userid || tType == 1 || tType == 4
  2030. "
  2031. @click.stop="deleteWorks(w.wid)"
  2032. alt
  2033. />
  2034. </div>
  2035. </div>
  2036. </div>
  2037. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2038. 未提交
  2039. </div>
  2040. <div
  2041. class="noWorksS"
  2042. v-if="noWorksS && noWorksS[toolIndex].length"
  2043. >
  2044. <div
  2045. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2046. :key="sIndex"
  2047. class="noWorksName"
  2048. >
  2049. <el-tooltip effect="dark" :content="s.student" placement="top">
  2050. <span>{{ s.student }}</span>
  2051. </el-tooltip>
  2052. </div>
  2053. </div>
  2054. </div>
  2055. <div
  2056. v-if="
  2057. tType &&
  2058. tType == 2 &&
  2059. !sIsOpen &&
  2060. tool.tool.indexOf(62) != -1
  2061. "
  2062. class="worksBox"
  2063. >
  2064. <div
  2065. class="zuoyeYulan"
  2066. v-if="workStudent[toolIndex].length > 0"
  2067. >
  2068. <span class="worksTitle">作业预览</span>
  2069. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2070. </div>
  2071. <div
  2072. class="worksDetailBox"
  2073. v-if="workStudent[toolIndex].length > 0"
  2074. >
  2075. <div
  2076. class="isWorksName2"
  2077. v-for="(w, wIndex) in workStudent[toolIndex]"
  2078. :key="wIndex"
  2079. @click="
  2080. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2081. "
  2082. >
  2083. {{ w.sName }}
  2084. <img
  2085. class="deleteImg deleteImg2"
  2086. src="../../assets/deleteworks.png"
  2087. v-if="w.userid == userid || tType == 1 || tType == 4"
  2088. @click.stop="deleteWorks(w.wid)"
  2089. alt
  2090. />
  2091. </div>
  2092. </div>
  2093. </div>
  2094. <div
  2095. v-if="
  2096. tType &&
  2097. tType == 2 &&
  2098. !sIsOpen &&
  2099. tool.tool.indexOf(45) != -1
  2100. "
  2101. class="worksBox"
  2102. >
  2103. <div
  2104. class="zuoyeYulan"
  2105. v-if="workStudent[toolIndex].length > 0"
  2106. >
  2107. <span class="worksTitle">作业预览</span>
  2108. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2109. </div>
  2110. <div
  2111. class="worksDetailBox"
  2112. v-if="workStudent[toolIndex].length > 0"
  2113. >
  2114. <div
  2115. class="isWorksName2"
  2116. v-for="(w, wIndex) in workStudent[toolIndex]"
  2117. :key="wIndex"
  2118. @click="
  2119. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2120. "
  2121. >
  2122. {{ w.sName }}
  2123. <img
  2124. class="deleteImg deleteImg2"
  2125. src="../../assets/deleteworks.png"
  2126. v-if="w.userid == userid || tType == 1 || tType == 4"
  2127. @click.stop="deleteWorks(w.wid)"
  2128. alt
  2129. />
  2130. </div>
  2131. </div>
  2132. </div>
  2133. <div
  2134. v-if="
  2135. tType &&
  2136. tType == 2 &&
  2137. !sIsOpen &&
  2138. tool.tool.indexOf(69) != -1
  2139. "
  2140. class="worksBox"
  2141. >
  2142. <div
  2143. class="zuoyeYulan"
  2144. v-if="workStudent[toolIndex].length > 0"
  2145. >
  2146. <span class="worksTitle">作业预览</span>
  2147. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2148. </div>
  2149. <div
  2150. class="worksDetailBox"
  2151. v-if="workStudent[toolIndex].length > 0"
  2152. >
  2153. <div
  2154. class="isWorksName2"
  2155. v-for="(w, wIndex) in workStudent[toolIndex]"
  2156. :key="wIndex"
  2157. @click="
  2158. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2159. "
  2160. >
  2161. {{ w.sName }}
  2162. <img
  2163. class="deleteImg deleteImg2"
  2164. src="../../assets/deleteworks.png"
  2165. v-if="w.userid == userid || tType == 1 || tType == 4"
  2166. @click.stop="deleteWorks(w.wid)"
  2167. alt
  2168. />
  2169. </div>
  2170. </div>
  2171. </div>
  2172. <div
  2173. v-if="
  2174. tType &&
  2175. tType == 2 &&
  2176. !sIsOpen &&
  2177. tool.tool.indexOf(15) != -1
  2178. "
  2179. class="worksBox"
  2180. >
  2181. <div
  2182. class="zuoyeYulan"
  2183. v-if="workStudent[toolIndex].length > 0"
  2184. >
  2185. <span class="worksTitle">作业预览</span>
  2186. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2187. </div>
  2188. <div
  2189. class="worksDetailBox"
  2190. v-if="workStudent[toolIndex].length > 0"
  2191. >
  2192. <div
  2193. class="works"
  2194. v-for="(w, wIndex) in workStudent[toolIndex]"
  2195. :key="wIndex"
  2196. >
  2197. <div class="workImg">
  2198. <!-- <img
  2199. src="../../assets/icon/works/noImg.png"
  2200. @click="openTools(15, toolIndex, taskCount, w.works)"
  2201. alt=""
  2202. />-->
  2203. <div class="answerBg">
  2204. <!-- <div>{{ w.sName }}</div> -->
  2205. <el-tooltip
  2206. class="item"
  2207. effect="light"
  2208. :content="JSON.parse(w.works)[0].answer"
  2209. placement="top"
  2210. >
  2211. <div class="answerContent">
  2212. {{ JSON.parse(w.works)[0].answer }}
  2213. </div>
  2214. </el-tooltip>
  2215. <div
  2216. class="answerScore"
  2217. v-if="w.score"
  2218. @click.stop="openScore(w)"
  2219. :class="{
  2220. rightW:
  2221. w.userid == userid ||
  2222. tType == 1 ||
  2223. tType == 4,
  2224. }"
  2225. >
  2226. {{ JSON.parse(w.score).wScore }}分
  2227. </div>
  2228. <div
  2229. class="answerScore"
  2230. @click.stop="openScore(w)"
  2231. v-else-if="courseDetail.userid == userid"
  2232. :class="{
  2233. rightW:
  2234. w.userid == userid ||
  2235. tType == 1 ||
  2236. tType == 4,
  2237. }"
  2238. >
  2239. 评分
  2240. </div>
  2241. <img
  2242. class="deleteImg"
  2243. src="../../assets/deleteworks.png"
  2244. v-if="
  2245. w.userid == userid || tType == 1 || tType == 4
  2246. "
  2247. @click.stop="deleteWorks(w.wid)"
  2248. alt
  2249. />
  2250. </div>
  2251. <div class="comment">
  2252. <div class="worksName">
  2253. <div>{{ w.sName }}</div>
  2254. </div>
  2255. </div>
  2256. </div>
  2257. </div>
  2258. </div>
  2259. </div>
  2260. <div
  2261. v-if="
  2262. tType &&
  2263. tType == 2 &&
  2264. !sIsOpen &&
  2265. tool.tool.indexOf(1) != -1
  2266. "
  2267. class="worksBox"
  2268. >
  2269. <div
  2270. class="zuoyeYulan"
  2271. v-if="workStudent[toolIndex].length > 0"
  2272. >
  2273. <span class="worksTitle">作业预览</span>
  2274. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2275. </div>
  2276. <div
  2277. class="worksDetailBox"
  2278. v-if="workStudent[toolIndex].length > 0"
  2279. >
  2280. <div
  2281. class="works"
  2282. style="
  2283. width: 200px;
  2284. height: 140px;
  2285. margin: 10px 10px 10px 0;
  2286. box-shadow: 0 0 6px 1px #dfdada;
  2287. "
  2288. v-for="(w, wIndex) in workStudent[toolIndex]"
  2289. :key="wIndex"
  2290. >
  2291. <div class="workImg">
  2292. <img
  2293. :src="w.works"
  2294. @click="previewImg(w.works,w)"
  2295. alt
  2296. />
  2297. <div
  2298. class="answerScore"
  2299. v-if="w.score"
  2300. @click.stop="openScore(w)"
  2301. :class="{
  2302. rightW:
  2303. w.userid == userid || tType == 1 || tType == 4,
  2304. }"
  2305. >
  2306. {{ JSON.parse(w.score).wScore }}分
  2307. </div>
  2308. <div
  2309. class="answerScore"
  2310. @click.stop="openScore(w)"
  2311. v-else-if="courseDetail.userid == userid"
  2312. :class="{
  2313. rightW:
  2314. w.userid == userid || tType == 1 || tType == 4,
  2315. }"
  2316. >
  2317. 评分
  2318. </div>
  2319. <img
  2320. class="deleteImg"
  2321. src="../../assets/deleteworks.png"
  2322. v-if="
  2323. w.userid == userid || tType == 1 || tType == 4
  2324. "
  2325. @click.stop="deleteWorks(w.wid)"
  2326. alt
  2327. />
  2328. </div>
  2329. <div class="worksName">
  2330. <div>{{ w.sName }}</div>
  2331. </div>
  2332. </div>
  2333. </div>
  2334. </div>
  2335. <div
  2336. v-if="
  2337. tType &&
  2338. tType == 2 &&
  2339. !sIsOpen &&
  2340. tool.tool.indexOf(3) != -1
  2341. "
  2342. class="worksBox"
  2343. >
  2344. <div
  2345. class="zuoyeYulan"
  2346. v-if="workStudent[toolIndex].length > 0"
  2347. >
  2348. <span class="worksTitle">作业预览</span>
  2349. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2350. </div>
  2351. <div
  2352. class="worksDetailBox"
  2353. v-if="workStudent[toolIndex].length > 0"
  2354. >
  2355. <div
  2356. class="works"
  2357. style="
  2358. width: 200px;
  2359. height: 140px;
  2360. margin: 10px 10px 10px 0;
  2361. box-shadow: 0 0 6px 1px #dfdada;
  2362. "
  2363. v-for="(w, wIndex) in workStudent[toolIndex]"
  2364. :key="wIndex"
  2365. >
  2366. <div class="workImg">
  2367. <img
  2368. :src="w.works"
  2369. @click="previewImg(w.works,w)"
  2370. alt
  2371. />
  2372. <div
  2373. class="answerScore"
  2374. v-if="w.score"
  2375. @click.stop="openScore(w)"
  2376. :class="{
  2377. rightW:
  2378. w.userid == userid || tType == 1 || tType == 4,
  2379. }"
  2380. >
  2381. {{ JSON.parse(w.score).wScore }}分
  2382. </div>
  2383. <div
  2384. class="answerScore"
  2385. @click.stop="openScore(w)"
  2386. v-else-if="courseDetail.userid == userid"
  2387. :class="{
  2388. rightW:
  2389. w.userid == userid || tType == 1 || tType == 4,
  2390. }"
  2391. >
  2392. 评分
  2393. </div>
  2394. <img
  2395. class="deleteImg"
  2396. src="../../assets/deleteworks.png"
  2397. v-if="
  2398. w.userid == userid || tType == 1 || tType == 4
  2399. "
  2400. @click.stop="deleteWorks(w.wid)"
  2401. alt
  2402. />
  2403. </div>
  2404. <div class="worksName">
  2405. <div>{{ w.sName }}</div>
  2406. </div>
  2407. </div>
  2408. </div>
  2409. </div>
  2410. <div
  2411. v-if="
  2412. tType &&
  2413. tType == 2 &&
  2414. !sIsOpen &&
  2415. tool.tool.indexOf(6) != -1
  2416. "
  2417. class="worksBox"
  2418. >
  2419. <div
  2420. class="zuoyeYulan"
  2421. v-if="workStudent[toolIndex].length > 0"
  2422. >
  2423. <span class="worksTitle">作业预览</span>
  2424. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2425. </div>
  2426. <div
  2427. class="worksDetailBox"
  2428. v-if="workStudent[toolIndex].length > 0"
  2429. >
  2430. <div
  2431. class="works"
  2432. style="
  2433. width: 200px;
  2434. height: 140px;
  2435. margin: 10px 10px 10px 0;
  2436. box-shadow: 0 0 6px 1px #dfdada;
  2437. "
  2438. v-for="(w, wIndex) in workStudent[toolIndex]"
  2439. :key="wIndex"
  2440. >
  2441. <div class="workImg">
  2442. <img
  2443. :src="w.works"
  2444. @click="previewImg(w.works,w)"
  2445. alt
  2446. />
  2447. <div
  2448. class="answerScore"
  2449. v-if="w.score"
  2450. @click.stop="openScore(w)"
  2451. :class="{
  2452. rightW:
  2453. w.userid == userid || tType == 1 || tType == 4,
  2454. }"
  2455. >
  2456. {{ JSON.parse(w.score).wScore }}分
  2457. </div>
  2458. <div
  2459. class="answerScore"
  2460. @click.stop="openScore(w)"
  2461. v-else-if="courseDetail.userid == userid"
  2462. :class="{
  2463. rightW:
  2464. w.userid == userid || tType == 1 || tType == 4,
  2465. }"
  2466. >
  2467. 评分
  2468. </div>
  2469. <img
  2470. class="deleteImg"
  2471. src="../../assets/deleteworks.png"
  2472. v-if="
  2473. w.userid == userid || tType == 1 || tType == 4
  2474. "
  2475. @click.stop="deleteWorks(w.wid)"
  2476. alt
  2477. />
  2478. </div>
  2479. <div class="worksName">
  2480. <div>{{ w.sName }}</div>
  2481. </div>
  2482. </div>
  2483. </div>
  2484. </div>
  2485. <div
  2486. v-if="
  2487. tType &&
  2488. tType == 2 &&
  2489. !sIsOpen &&
  2490. tool.tool.indexOf(7) != -1
  2491. "
  2492. class="worksBox"
  2493. >
  2494. <div
  2495. class="zuoyeYulan"
  2496. v-if="workStudent[toolIndex].length > 0"
  2497. >
  2498. <span class="worksTitle">作业预览</span>
  2499. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2500. </div>
  2501. <div
  2502. class="worksDetailBox"
  2503. v-if="workStudent[toolIndex].length > 0"
  2504. >
  2505. <div
  2506. class="works"
  2507. style="
  2508. width: 200px;
  2509. height: 140px;
  2510. margin: 10px 10px 10px 0;
  2511. box-shadow: 0 0 6px 1px #dfdada;
  2512. "
  2513. v-for="(w, wIndex) in workStudent[toolIndex]"
  2514. :key="wIndex"
  2515. >
  2516. <div class="workImg">
  2517. <img
  2518. :src="w.works"
  2519. @click="previewImg(w.works,w)"
  2520. alt
  2521. />
  2522. <div
  2523. class="answerScore"
  2524. v-if="w.score"
  2525. @click.stop="openScore(w)"
  2526. :class="{
  2527. rightW:
  2528. w.userid == userid || tType == 1 || tType == 4,
  2529. }"
  2530. >
  2531. {{ JSON.parse(w.score).wScore }}分
  2532. </div>
  2533. <div
  2534. class="answerScore"
  2535. @click.stop="openScore(w)"
  2536. v-else-if="courseDetail.userid == userid"
  2537. :class="{
  2538. rightW:
  2539. w.userid == userid || tType == 1 || tType == 4,
  2540. }"
  2541. >
  2542. 评分
  2543. </div>
  2544. <img
  2545. class="deleteImg"
  2546. src="../../assets/deleteworks.png"
  2547. v-if="
  2548. w.userid == userid || tType == 1 || tType == 4
  2549. "
  2550. @click.stop="deleteWorks(w.wid)"
  2551. alt
  2552. />
  2553. </div>
  2554. <div class="worksName">
  2555. <div>{{ w.sName }}</div>
  2556. </div>
  2557. </div>
  2558. </div>
  2559. </div>
  2560. <div
  2561. v-if="
  2562. tType &&
  2563. tType == 2 &&
  2564. !sIsOpen &&
  2565. tool.tool.indexOf(26) != -1
  2566. "
  2567. class="worksBox"
  2568. >
  2569. <div
  2570. class="zuoyeYulan"
  2571. v-if="workStudent[toolIndex].length > 0"
  2572. >
  2573. <span class="worksTitle">作业预览</span>
  2574. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2575. </div>
  2576. <div
  2577. class="worksDetailBox"
  2578. v-if="workStudent[toolIndex].length > 0"
  2579. >
  2580. <div
  2581. class="works"
  2582. style="
  2583. width: 200px;
  2584. height: 140px;
  2585. margin: 10px 10px 10px 0;
  2586. box-shadow: 0 0 6px 1px #dfdada;
  2587. "
  2588. v-for="(w, wIndex) in workStudent[toolIndex]"
  2589. :key="wIndex"
  2590. >
  2591. <div class="workImg">
  2592. <img
  2593. :src="w.works"
  2594. @click="previewImg(w.works,w)"
  2595. alt
  2596. />
  2597. <img
  2598. class="deleteImg"
  2599. src="../../assets/deleteworks.png"
  2600. v-if="
  2601. w.userid == userid || tType == 1 || tType == 4
  2602. "
  2603. @click.stop="deleteWorks(w.wid)"
  2604. alt
  2605. />
  2606. </div>
  2607. <div class="worksName">
  2608. <div>{{ w.sName }}</div>
  2609. </div>
  2610. </div>
  2611. </div>
  2612. </div>
  2613. <div
  2614. v-if="
  2615. tType &&
  2616. ((tType == 2 && sIsOpen == true) ||
  2617. tType == 1 ||
  2618. tType == 4) &&
  2619. tool.tool.indexOf(16) != -1
  2620. "
  2621. class="worksBox"
  2622. >
  2623. <div
  2624. class="zuoyeYulan"
  2625. v-if="
  2626. (worksStudent.length &&
  2627. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2628. "
  2629. >
  2630. <div class="worksTop">
  2631. <div>作业预览</div>
  2632. <div
  2633. class="corOpen"
  2634. @click="contract(toolIndex)"
  2635. v-if="
  2636. (isCloseList[toolIndex].isCloseBoolean) &&
  2637. isCloseList[toolIndex].isClose == 0
  2638. "
  2639. >
  2640. 折叠
  2641. </div>
  2642. <div
  2643. class="corOpen"
  2644. @click="contract(toolIndex)"
  2645. v-if="isCloseList[toolIndex].isClose == 1"
  2646. >
  2647. 展开
  2648. </div>
  2649. </div>
  2650. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2651. </div>
  2652. <div
  2653. class="group_workBox"
  2654. v-for="(g, gindex) in courseGroup.group"
  2655. :key="gindex"
  2656. >
  2657. <div class="group_box">
  2658. <div class="group_title">
  2659. <el-tooltip
  2660. class="item"
  2661. effect="light"
  2662. :content="g.name"
  2663. placement="top"
  2664. >
  2665. <div class="group_name">{{ g.name }}</div>
  2666. </el-tooltip>
  2667. </div>
  2668. <div
  2669. class="group_work"
  2670. v-if="
  2671. g.works &&
  2672. g.works.length &&
  2673. g.works[toolIndex].length
  2674. "
  2675. >
  2676. <div
  2677. class="works"
  2678. style="
  2679. width: 200px;
  2680. height: 140px;
  2681. margin: 10px 10px 10px 0;
  2682. border-radius: 15px;
  2683. box-shadow: 0 0 6px 1px #dfdada;
  2684. "
  2685. v-for="(w, wIndex) in g.works[toolIndex]"
  2686. :key="wIndex"
  2687. :class="w.type == 1 ? 'isTypeOne' : ''"
  2688. >
  2689. <div class="workImg" v-if="w.type == 0">
  2690. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2691. <img
  2692. :src="w.works"
  2693. @click="previewImg(w.works,w)"
  2694. alt
  2695. />
  2696. <div
  2697. class="answerScore"
  2698. v-if="w.score"
  2699. @click.stop="openScore(w)"
  2700. :class="{
  2701. rightW:
  2702. w.userid == userid ||
  2703. tType == 1 ||
  2704. tType == 4 ||
  2705. w.ateacher == userid,
  2706. }"
  2707. >
  2708. {{ JSON.parse(w.score).wScore }}分
  2709. </div>
  2710. <div
  2711. class="answerScore"
  2712. @click.stop="openScore(w)"
  2713. v-else-if="courseDetail.userid == userid"
  2714. :class="{
  2715. rightW:
  2716. w.userid == userid ||
  2717. tType == 1 ||
  2718. tType == 4 ||
  2719. w.ateacher == userid,
  2720. }"
  2721. >
  2722. 评分
  2723. </div>
  2724. <img
  2725. class="deleteImg"
  2726. src="../../assets/deleteworks.png"
  2727. v-if="
  2728. w.userid == userid || tType == 1 || tType == 4
  2729. "
  2730. @click.stop="deleteWorks(w.wid)"
  2731. alt
  2732. />
  2733. </div>
  2734. <div class="workImg" v-if="w.type == 1">
  2735. <img :src="word" @click="openFile(w.works)" alt />
  2736. <!-- @click="openFile(w.works)" -->
  2737. <div
  2738. class="answerScore"
  2739. v-if="w.score"
  2740. @click.stop="openScore(w)"
  2741. :class="{
  2742. rightW:
  2743. w.userid == userid ||
  2744. tType == 1 ||
  2745. tType == 4 ||
  2746. w.ateacher == userid,
  2747. }"
  2748. >
  2749. {{ JSON.parse(w.score).wScore }}分
  2750. </div>
  2751. <div
  2752. class="answerScore"
  2753. @click.stop="openScore(w)"
  2754. v-else-if="courseDetail.userid == userid"
  2755. :class="{
  2756. rightW:
  2757. w.userid == userid ||
  2758. tType == 1 ||
  2759. tType == 4 ||
  2760. w.ateacher == userid,
  2761. }"
  2762. >
  2763. 评分
  2764. </div>
  2765. <img
  2766. class="deleteImg"
  2767. src="../../assets/deleteworks.png"
  2768. v-if="
  2769. w.userid == userid || tType == 1 || tType == 4
  2770. "
  2771. @click.stop="deleteWorks(w.wid)"
  2772. alt
  2773. />
  2774. </div>
  2775. <div class="workImg" v-if="w.type == 3">
  2776. <img
  2777. style="cursor: pointer"
  2778. :src="video"
  2779. @click="openVideo(w)"
  2780. alt
  2781. />
  2782. <!-- @click="openVideo(w.works)" -->
  2783. <div
  2784. class="answerScore"
  2785. v-if="w.score"
  2786. @click.stop="openScore(w)"
  2787. :class="{
  2788. rightW:
  2789. w.userid == userid ||
  2790. tType == 1 ||
  2791. tType == 4 ||
  2792. w.ateacher == userid,
  2793. }"
  2794. >
  2795. {{ JSON.parse(w.score).wScore }}分
  2796. </div>
  2797. <div
  2798. class="answerScore"
  2799. @click.stop="openScore(w)"
  2800. v-else-if="courseDetail.userid == userid"
  2801. :class="{
  2802. rightW:
  2803. w.userid == userid ||
  2804. tType == 1 ||
  2805. tType == 4 ||
  2806. w.ateacher == userid,
  2807. }"
  2808. >
  2809. 评分
  2810. </div>
  2811. <img
  2812. class="deleteImg"
  2813. src="../../assets/deleteworks.png"
  2814. v-if="
  2815. w.userid == userid || tType == 1 || tType == 4
  2816. "
  2817. @click.stop="deleteWorks(w.wid)"
  2818. alt
  2819. />
  2820. </div>
  2821. <div class="workImg" v-if="w.type == 12">
  2822. <img
  2823. style="cursor: pointer"
  2824. :src="word2"
  2825. @click="downloadFile(w.works)"
  2826. alt
  2827. />
  2828. <!-- @click="openVideo(w.works)" -->
  2829. <div
  2830. class="answerScore"
  2831. v-if="w.score"
  2832. @click.stop="openScore(w)"
  2833. :class="{
  2834. rightW:
  2835. w.userid == userid ||
  2836. tType == 1 ||
  2837. tType == 4 ||
  2838. w.ateacher == userid,
  2839. }"
  2840. >
  2841. {{ JSON.parse(w.score).wScore }}分
  2842. </div>
  2843. <div
  2844. class="answerScore"
  2845. @click.stop="openScore(w)"
  2846. v-else-if="courseDetail.userid == userid"
  2847. :class="{
  2848. rightW:
  2849. w.userid == userid ||
  2850. tType == 1 ||
  2851. tType == 4 ||
  2852. w.ateacher == userid,
  2853. }"
  2854. >
  2855. 评分
  2856. </div>
  2857. <img
  2858. class="deleteImg"
  2859. src="../../assets/deleteworks.png"
  2860. v-if="
  2861. w.userid == userid || tType == 1 || tType == 4
  2862. "
  2863. @click.stop="deleteWorks(w.wid)"
  2864. alt
  2865. />
  2866. </div>
  2867. <div class="comment" style="min-width: 200px">
  2868. <div class="worksName">
  2869. <div>{{ w.sName }}</div>
  2870. </div>
  2871. <div class="commentList">
  2872. <div class="commentList">
  2873. <div
  2874. class="commentImg"
  2875. @click="
  2876. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2877. "
  2878. >
  2879. <img
  2880. :src="w.isLikes == true ? likes : noLikes"
  2881. alt=""
  2882. />
  2883. </div>
  2884. <div>{{ w.likesCount }}</div>
  2885. </div>
  2886. <div
  2887. class="commentList"
  2888. style="margin-right: 15px"
  2889. >
  2890. <div
  2891. class="commentImg"
  2892. @click="
  2893. commentOther(
  2894. w,
  2895. toolIndex,
  2896. wIndex,
  2897. null,
  2898. g.id
  2899. )
  2900. "
  2901. >
  2902. <img
  2903. src="../../assets/icon/comment/comment.png"
  2904. alt=""
  2905. />
  2906. </div>
  2907. <div>{{ w.commentCount }}</div>
  2908. </div>
  2909. </div>
  2910. </div>
  2911. </div>
  2912. </div>
  2913. <div class="group_work" v-else>暂无提交作业</div>
  2914. </div>
  2915. </div>
  2916. <div
  2917. :id="'tool-' + toolIndex"
  2918. :style="{
  2919. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2920. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2921. }"
  2922. class="worksDetailBox"
  2923. v-if="
  2924. worksStudent.length &&
  2925. worksStudent[toolIndex].length > 0
  2926. "
  2927. >
  2928. <div
  2929. class="works"
  2930. style="
  2931. width: 200px;
  2932. height: 140px;
  2933. margin: 10px 10px 10px 0;
  2934. border-radius: 15px;
  2935. box-shadow: 0 0 6px 1px #dfdada;
  2936. "
  2937. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2938. :key="wIndex"
  2939. :class="w.type == 1 ? 'isTypeOne' : ''"
  2940. >
  2941. <div class="workImg" v-if="w.type == 0">
  2942. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2943. <img
  2944. :src="w.works"
  2945. @click="previewImg(w.works,w)"
  2946. alt
  2947. />
  2948. <div
  2949. class="answerScore"
  2950. v-if="w.score"
  2951. @click.stop="openScore(w)"
  2952. :class="{
  2953. rightW:
  2954. w.userid == userid ||
  2955. tType == 1 ||
  2956. tType == 4 ||
  2957. w.ateacher == userid,
  2958. }"
  2959. >
  2960. {{ JSON.parse(w.score).wScore }}分
  2961. </div>
  2962. <div
  2963. class="answerScore"
  2964. @click.stop="openScore(w)"
  2965. v-else-if="courseDetail.userid == userid"
  2966. :class="{
  2967. rightW:
  2968. w.userid == userid ||
  2969. tType == 1 ||
  2970. tType == 4 ||
  2971. w.ateacher == userid,
  2972. }"
  2973. >
  2974. 评分
  2975. </div>
  2976. <img
  2977. class="deleteImg"
  2978. src="../../assets/deleteworks.png"
  2979. v-if="
  2980. w.userid == userid || tType == 1 || tType == 4
  2981. "
  2982. @click.stop="deleteWorks(w.wid)"
  2983. alt
  2984. />
  2985. </div>
  2986. <div class="workImg" v-if="w.type == 1">
  2987. <img :src="word" @click="openFile(w.works)" alt />
  2988. <!-- @click="openFile(w.works)" -->
  2989. <div
  2990. class="answerScore"
  2991. v-if="w.score"
  2992. @click.stop="openScore(w)"
  2993. :class="{
  2994. rightW:
  2995. w.userid == userid ||
  2996. tType == 1 ||
  2997. tType == 4 ||
  2998. w.ateacher == userid,
  2999. }"
  3000. >
  3001. {{ JSON.parse(w.score).wScore }}分
  3002. </div>
  3003. <div
  3004. class="answerScore"
  3005. @click.stop="openScore(w)"
  3006. v-else-if="courseDetail.userid == userid"
  3007. :class="{
  3008. rightW:
  3009. w.userid == userid ||
  3010. tType == 1 ||
  3011. tType == 4 ||
  3012. w.ateacher == userid,
  3013. }"
  3014. >
  3015. 评分
  3016. </div>
  3017. <img
  3018. class="deleteImg"
  3019. src="../../assets/deleteworks.png"
  3020. v-if="
  3021. w.userid == userid || tType == 1 || tType == 4
  3022. "
  3023. @click.stop="deleteWorks(w.wid)"
  3024. alt
  3025. />
  3026. </div>
  3027. <div class="workImg" v-if="w.type == 3">
  3028. <img
  3029. style="cursor: pointer"
  3030. :src="video"
  3031. @click="openVideo(w)"
  3032. alt
  3033. />
  3034. <!-- @click="openVideo(w.works)" -->
  3035. <div
  3036. class="answerScore"
  3037. v-if="w.score"
  3038. @click.stop="openScore(w)"
  3039. :class="{
  3040. rightW:
  3041. w.userid == userid ||
  3042. tType == 1 ||
  3043. tType == 4 ||
  3044. w.ateacher == userid,
  3045. }"
  3046. >
  3047. {{ JSON.parse(w.score).wScore }}分
  3048. </div>
  3049. <div
  3050. class="answerScore"
  3051. @click.stop="openScore(w)"
  3052. v-else-if="courseDetail.userid == userid"
  3053. :class="{
  3054. rightW:
  3055. w.userid == userid ||
  3056. tType == 1 ||
  3057. tType == 4 ||
  3058. w.ateacher == userid,
  3059. }"
  3060. >
  3061. 评分
  3062. </div>
  3063. <img
  3064. class="deleteImg"
  3065. src="../../assets/deleteworks.png"
  3066. v-if="
  3067. w.userid == userid || tType == 1 || tType == 4
  3068. "
  3069. @click.stop="deleteWorks(w.wid)"
  3070. alt
  3071. />
  3072. </div>
  3073. <div class="workImg" v-if="w.type == 12">
  3074. <img
  3075. style="cursor: pointer"
  3076. :src="word2"
  3077. @click="downloadFile(w.works)"
  3078. alt
  3079. />
  3080. <!-- @click="openVideo(w.works)" -->
  3081. <div
  3082. class="answerScore"
  3083. v-if="w.score"
  3084. @click.stop="openScore(w)"
  3085. :class="{
  3086. rightW:
  3087. w.userid == userid ||
  3088. tType == 1 ||
  3089. tType == 4 ||
  3090. w.ateacher == userid,
  3091. }"
  3092. >
  3093. {{ JSON.parse(w.score).wScore }}分
  3094. </div>
  3095. <div
  3096. class="answerScore"
  3097. @click.stop="openScore(w)"
  3098. v-else-if="courseDetail.userid == userid"
  3099. :class="{
  3100. rightW:
  3101. w.userid == userid ||
  3102. tType == 1 ||
  3103. tType == 4 ||
  3104. w.ateacher == userid,
  3105. }"
  3106. >
  3107. 评分
  3108. </div>
  3109. <img
  3110. class="deleteImg"
  3111. src="../../assets/deleteworks.png"
  3112. v-if="
  3113. w.userid == userid || tType == 1 || tType == 4
  3114. "
  3115. @click.stop="deleteWorks(w.wid)"
  3116. alt
  3117. />
  3118. </div>
  3119. <div class="comment" style="min-width: 200px">
  3120. <div class="worksName">
  3121. <div>{{ w.sName }}</div>
  3122. </div>
  3123. <div class="commentList">
  3124. <div class="commentList">
  3125. <div
  3126. class="commentImg"
  3127. @click="
  3128. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3129. "
  3130. >
  3131. <img
  3132. :src="w.isLikes == true ? likes : noLikes"
  3133. alt=""
  3134. />
  3135. </div>
  3136. <div>{{ w.likesCount }}</div>
  3137. </div>
  3138. <div class="commentList" style="margin-right: 15px">
  3139. <div
  3140. class="commentImg"
  3141. @click="commentOther(w, toolIndex, wIndex)"
  3142. >
  3143. <img
  3144. src="../../assets/icon/comment/comment.png"
  3145. alt=""
  3146. />
  3147. </div>
  3148. <div>{{ w.commentCount }}</div>
  3149. </div>
  3150. </div>
  3151. </div>
  3152. </div>
  3153. </div>
  3154. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3155. 未提交
  3156. </div>
  3157. <div
  3158. class="noWorksS"
  3159. v-if="noWorksS && noWorksS[toolIndex].length"
  3160. >
  3161. <div
  3162. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3163. :key="sIndex"
  3164. class="noWorksName"
  3165. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3166. >
  3167. <el-tooltip effect="dark" :content="s.student" placement="top">
  3168. <span>{{ s.student }}</span>
  3169. </el-tooltip>
  3170. </div>
  3171. </div>
  3172. </div>
  3173. <div
  3174. v-if="
  3175. tType &&
  3176. ((tType == 2 && sIsOpen == true) ||
  3177. tType == 1 ||
  3178. tType == 4) &&
  3179. tool.tool.indexOf(70) != -1
  3180. "
  3181. class="worksBox"
  3182. >
  3183. <div
  3184. class="zuoyeYulan"
  3185. v-if="
  3186. (worksStudent.length &&
  3187. worksStudent[toolIndex].length > 0)
  3188. "
  3189. >
  3190. <div class="worksTop">
  3191. <div>作业预览</div>
  3192. <div
  3193. class="corOpen"
  3194. @click="contract(toolIndex)"
  3195. v-if="
  3196. (isCloseList[toolIndex].isCloseBoolean) &&
  3197. isCloseList[toolIndex].isClose == 0
  3198. "
  3199. >
  3200. 折叠
  3201. </div>
  3202. <div
  3203. class="corOpen"
  3204. @click="contract(toolIndex)"
  3205. v-if="isCloseList[toolIndex].isClose == 1"
  3206. >
  3207. 展开
  3208. </div>
  3209. </div>
  3210. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3211. </div>
  3212. <div
  3213. :id="'tool-' + toolIndex"
  3214. :style="{
  3215. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3216. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3217. }"
  3218. class="worksDetailBox"
  3219. v-if="
  3220. worksStudent.length &&
  3221. worksStudent[toolIndex].length > 0
  3222. "
  3223. >
  3224. <div
  3225. class="works"
  3226. style="
  3227. width: 200px;
  3228. height: 140px;
  3229. margin: 10px 10px 10px 0;
  3230. border-radius: 15px;
  3231. box-shadow: 0 0 6px 1px #dfdada;
  3232. "
  3233. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3234. :key="wIndex"
  3235. :class="w.type == 1 ? 'isTypeOne' : ''"
  3236. >
  3237. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3238. <img :src="word" alt />
  3239. <img
  3240. class="deleteImg"
  3241. src="../../assets/deleteworks.png"
  3242. v-if="
  3243. w.userid == userid || tType == 1 || tType == 4
  3244. "
  3245. @click.stop="deleteWorks(w.wid)"
  3246. alt
  3247. />
  3248. </div>
  3249. <div class="comment" style="min-width: 200px">
  3250. <div class="worksName">
  3251. <div>{{ w.sName }}</div>
  3252. </div>
  3253. </div>
  3254. </div>
  3255. </div>
  3256. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3257. 未提交
  3258. </div>
  3259. <div
  3260. class="noWorksS"
  3261. v-if="noWorksS && noWorksS[toolIndex].length"
  3262. >
  3263. <div
  3264. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3265. :key="sIndex"
  3266. class="noWorksName"
  3267. >
  3268. <el-tooltip effect="dark" :content="s.student" placement="top">
  3269. <span>{{ s.student }}</span>
  3270. </el-tooltip>
  3271. </div>
  3272. </div>
  3273. </div>
  3274. <div
  3275. v-if="
  3276. tType &&
  3277. tType == 2 &&
  3278. !sIsOpen &&
  3279. tool.tool.indexOf(70) != -1
  3280. "
  3281. class="worksBox"
  3282. >
  3283. <div
  3284. class="zuoyeYulan"
  3285. v-if="workStudent[toolIndex].length > 0"
  3286. >
  3287. <span class="worksTitle">作业预览</span>
  3288. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3289. </div>
  3290. <div
  3291. class="worksDetailBox"
  3292. v-if="workStudent[toolIndex].length > 0"
  3293. >
  3294. <div
  3295. class="works"
  3296. style="
  3297. width: 200px;
  3298. height: 140px;
  3299. margin: 10px 10px 10px 0;
  3300. box-shadow: 0 0 6px 1px #dfdada;
  3301. "
  3302. v-for="(w, wIndex) in workStudent[toolIndex]"
  3303. :key="wIndex"
  3304. >
  3305. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3306. <img :src="word" alt />
  3307. <img
  3308. class="deleteImg"
  3309. src="../../assets/deleteworks.png"
  3310. v-if="
  3311. w.userid == userid || tType == 1 || tType == 4
  3312. "
  3313. @click.stop="deleteWorks(w.wid)"
  3314. alt
  3315. />
  3316. </div>
  3317. <div class="worksName">
  3318. <div>{{ w.sName }}</div>
  3319. </div>
  3320. </div>
  3321. </div>
  3322. </div>
  3323. <div
  3324. v-if="
  3325. tType &&
  3326. ((tType == 2 && sIsOpen == true) ||
  3327. tType == 1 ||
  3328. tType == 4) &&
  3329. tool.tool.indexOf(32) != -1
  3330. "
  3331. class="worksBox"
  3332. >
  3333. <div
  3334. class="zuoyeYulan"
  3335. v-if="
  3336. worksStudent.length &&
  3337. worksStudent[toolIndex].length > 0
  3338. "
  3339. >
  3340. <div class="worksTop">
  3341. <div>作业预览</div>
  3342. <div
  3343. class="corOpen"
  3344. @click="contract(toolIndex)"
  3345. v-if="
  3346. (isCloseList[toolIndex].isCloseBoolean) &&
  3347. isCloseList[toolIndex].isClose == 0
  3348. "
  3349. >
  3350. 折叠
  3351. </div>
  3352. <div
  3353. class="corOpen"
  3354. @click="contract(toolIndex)"
  3355. v-if="isCloseList[toolIndex].isClose == 1"
  3356. >
  3357. 展开
  3358. </div>
  3359. </div>
  3360. </div>
  3361. <div
  3362. :id="'tool-' + toolIndex"
  3363. :style="{
  3364. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3365. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3366. }"
  3367. class="worksDetailBox"
  3368. v-if="
  3369. worksStudent.length &&
  3370. worksStudent[toolIndex].length > 0
  3371. "
  3372. >
  3373. <div
  3374. class="works"
  3375. style="
  3376. width: 200px;
  3377. height: 140px;
  3378. margin: 10px 10px 10px 0;
  3379. border-radius: 15px;
  3380. box-shadow: 0 0 6px 1px #dfdada;
  3381. "
  3382. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3383. :key="wIndex"
  3384. :class="w.type == 1 ? 'isTypeOne' : ''"
  3385. >
  3386. <div class="workImg">
  3387. <img
  3388. :src="word2"
  3389. @click="downloadFile(w.works)"
  3390. alt
  3391. />
  3392. <div
  3393. class="answerScore"
  3394. v-if="w.score"
  3395. @click.stop="openScore(w)"
  3396. :class="{
  3397. rightW:
  3398. w.userid == userid ||
  3399. tType == 1 ||
  3400. tType == 4 ||
  3401. w.ateacher == userid,
  3402. }"
  3403. >
  3404. {{ JSON.parse(w.score).wScore }}分
  3405. </div>
  3406. <div
  3407. class="answerScore"
  3408. @click.stop="openScore(w)"
  3409. v-else-if="courseDetail.userid == userid"
  3410. :class="{
  3411. rightW:
  3412. w.userid == userid ||
  3413. tType == 1 ||
  3414. tType == 4 ||
  3415. w.ateacher == userid,
  3416. }"
  3417. >
  3418. 评分
  3419. </div>
  3420. <img
  3421. class="deleteImg"
  3422. src="../../assets/deleteworks.png"
  3423. v-if="
  3424. w.userid == userid || tType == 1 || tType == 4
  3425. "
  3426. @click.stop="deleteWorks(w.wid)"
  3427. alt
  3428. />
  3429. </div>
  3430. <div class="comment" style="min-width: 200px">
  3431. <div class="worksName">
  3432. <div>{{ w.sName }}</div>
  3433. </div>
  3434. <div class="commentList">
  3435. <div class="commentList">
  3436. <div
  3437. class="commentImg"
  3438. @click="
  3439. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3440. "
  3441. >
  3442. <img
  3443. :src="w.isLikes == true ? likes : noLikes"
  3444. alt=""
  3445. />
  3446. </div>
  3447. <div>{{ w.likesCount }}</div>
  3448. </div>
  3449. <div class="commentList" style="margin-right: 15px">
  3450. <div
  3451. class="commentImg"
  3452. @click="commentOther(w, toolIndex, wIndex)"
  3453. >
  3454. <img
  3455. src="../../assets/icon/comment/comment.png"
  3456. alt=""
  3457. />
  3458. </div>
  3459. <div>{{ w.commentCount }}</div>
  3460. </div>
  3461. </div>
  3462. </div>
  3463. </div>
  3464. </div>
  3465. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3466. 未提交
  3467. </div>
  3468. <div
  3469. class="noWorksS"
  3470. v-if="noWorksS && noWorksS[toolIndex].length"
  3471. >
  3472. <div
  3473. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3474. :key="sIndex"
  3475. class="noWorksName"
  3476. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3477. >
  3478. <el-tooltip effect="dark" :content="s.student" placement="top">
  3479. <span>{{ s.student }}</span>
  3480. </el-tooltip>
  3481. </div>
  3482. </div>
  3483. </div>
  3484. <div
  3485. v-if="
  3486. tType &&
  3487. ((tType == 2 && sIsOpen == true) ||
  3488. tType == 1 ||
  3489. tType == 4) &&
  3490. tool.tool.indexOf(57) != -1
  3491. "
  3492. class="worksBox"
  3493. >
  3494. <div
  3495. class="zuoyeYulan"
  3496. v-if="
  3497. worksStudent.length &&
  3498. worksStudent[toolIndex].length > 0
  3499. "
  3500. >
  3501. <div class="worksTop">
  3502. <div>作业预览</div>
  3503. <div
  3504. class="corOpen"
  3505. @click="contract(toolIndex)"
  3506. v-if="
  3507. (isCloseList[toolIndex].isCloseBoolean) &&
  3508. isCloseList[toolIndex].isClose == 0
  3509. "
  3510. >
  3511. 折叠
  3512. </div>
  3513. <div
  3514. class="corOpen"
  3515. @click="contract(toolIndex)"
  3516. v-if="isCloseList[toolIndex].isClose == 1"
  3517. >
  3518. 展开
  3519. </div>
  3520. </div>
  3521. </div>
  3522. <div
  3523. :id="'tool-' + toolIndex"
  3524. :style="{
  3525. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3526. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3527. }"
  3528. class="worksDetailBox"
  3529. v-if="
  3530. worksStudent.length &&
  3531. worksStudent[toolIndex].length > 0
  3532. "
  3533. >
  3534. <div
  3535. class="works"
  3536. style="
  3537. width: 200px;
  3538. height: 140px;
  3539. margin: 10px 10px 10px 0;
  3540. border-radius: 15px;
  3541. box-shadow: 0 0 6px 1px #dfdada;
  3542. "
  3543. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3544. :key="wIndex"
  3545. :class="w.type == 1 ? 'isTypeOne' : ''"
  3546. >
  3547. <div class="workImg">
  3548. <img
  3549. :src="word2"
  3550. @click="downloadFile(w.works)"
  3551. v-if="w.type == 12"
  3552. alt
  3553. />
  3554. <img
  3555. :src="word2"
  3556. @click="
  3557. openCocoPi(57, toolIndex, w.userid, w.sName)
  3558. "
  3559. v-else-if="w.type == 15"
  3560. alt
  3561. />
  3562. <div
  3563. class="answerScore"
  3564. v-if="w.score"
  3565. @click.stop="openScore(w)"
  3566. :class="{
  3567. rightW:
  3568. w.userid == userid ||
  3569. tType == 1 ||
  3570. tType == 4 ||
  3571. w.ateacher == userid,
  3572. }"
  3573. >
  3574. {{ JSON.parse(w.score).wScore }}分
  3575. </div>
  3576. <div
  3577. class="answerScore"
  3578. @click.stop="openScore(w)"
  3579. v-else-if="courseDetail.userid == userid"
  3580. :class="{
  3581. rightW:
  3582. w.userid == userid ||
  3583. tType == 1 ||
  3584. tType == 4 ||
  3585. w.ateacher == userid,
  3586. }"
  3587. >
  3588. 评分
  3589. </div>
  3590. <img
  3591. class="deleteImg"
  3592. src="../../assets/deleteworks.png"
  3593. v-if="
  3594. w.userid == userid || tType == 1 || tType == 4
  3595. "
  3596. @click.stop="deleteWorks(w.wid)"
  3597. alt
  3598. />
  3599. </div>
  3600. <div class="comment" style="min-width: 200px">
  3601. <div class="worksName">
  3602. <div>{{ w.sName }}</div>
  3603. </div>
  3604. <div class="commentList">
  3605. <div class="commentList">
  3606. <div
  3607. class="commentImg"
  3608. @click="
  3609. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3610. "
  3611. >
  3612. <img
  3613. :src="w.isLikes == true ? likes : noLikes"
  3614. alt=""
  3615. />
  3616. </div>
  3617. <div>{{ w.likesCount }}</div>
  3618. </div>
  3619. <div class="commentList" style="margin-right: 15px">
  3620. <div
  3621. class="commentImg"
  3622. @click="commentOther(w, toolIndex, wIndex)"
  3623. >
  3624. <img
  3625. src="../../assets/icon/comment/comment.png"
  3626. alt=""
  3627. />
  3628. </div>
  3629. <div>{{ w.commentCount }}</div>
  3630. </div>
  3631. </div>
  3632. </div>
  3633. </div>
  3634. </div>
  3635. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3636. 未提交
  3637. </div>
  3638. <div
  3639. class="noWorksS"
  3640. v-if="noWorksS && noWorksS[toolIndex].length"
  3641. >
  3642. <div
  3643. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3644. :key="sIndex"
  3645. class="noWorksName"
  3646. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3647. >
  3648. <el-tooltip effect="dark" :content="s.student" placement="top">
  3649. <span>{{ s.student }}</span>
  3650. </el-tooltip>
  3651. </div>
  3652. </div>
  3653. </div>
  3654. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3655. <div
  3656. class="zuoyeYulan"
  3657. v-if="
  3658. worksStudent.length &&
  3659. worksStudent[toolIndex].length > 0
  3660. "
  3661. >
  3662. <span class="worksTitle">作业预览</span>
  3663. <div
  3664. class="corOpen"
  3665. @click="contract(toolIndex)"
  3666. v-if="
  3667. (isCloseList[toolIndex].isCloseBoolean) &&
  3668. isCloseList[toolIndex].isClose == 0
  3669. "
  3670. >
  3671. 折叠
  3672. </div>
  3673. <div
  3674. class="corOpen"
  3675. @click="contract(toolIndex)"
  3676. v-if="isCloseList[toolIndex].isClose == 1"
  3677. >
  3678. 展开
  3679. </div>
  3680. </div>
  3681. <div
  3682. :id="'tool-' + toolIndex"
  3683. :style="{
  3684. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3685. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3686. }"
  3687. class="worksDetailBox"
  3688. v-if="
  3689. worksStudent.length &&
  3690. worksStudent[toolIndex].length > 0
  3691. "
  3692. >
  3693. <div
  3694. class="works"
  3695. style="
  3696. width: 200px;
  3697. height: 140px;
  3698. margin: 10px 10px 10px 0;
  3699. border-radius: 15px;
  3700. box-shadow: 0 0 6px 1px #dfdada;
  3701. "
  3702. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3703. :key="wIndex"
  3704. :class="w.type == 1 ? 'isTypeOne' : ''"
  3705. >
  3706. <div class="workImg" v-if="w.type == 0">
  3707. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3708. <img
  3709. :src="w.works"
  3710. @click="previewImg(w.works,w)"
  3711. alt
  3712. />
  3713. <div
  3714. class="answerScore"
  3715. v-if="w.score"
  3716. @click.stop="openScore(w)"
  3717. :class="{
  3718. rightW:
  3719. w.userid == userid ||
  3720. tType == 1 ||
  3721. tType == 4 ||
  3722. w.ateacher == userid,
  3723. }"
  3724. >
  3725. {{ JSON.parse(w.score).wScore }}分
  3726. </div>
  3727. <div
  3728. class="answerScore"
  3729. @click.stop="openScore(w)"
  3730. v-else-if="courseDetail.userid == userid"
  3731. :class="{
  3732. rightW:
  3733. w.userid == userid ||
  3734. tType == 1 ||
  3735. tType == 4 ||
  3736. w.ateacher == userid,
  3737. }"
  3738. >
  3739. 评分
  3740. </div>
  3741. <img
  3742. class="deleteImg"
  3743. src="../../assets/deleteworks.png"
  3744. v-if="
  3745. w.userid == userid || tType == 1 || tType == 4
  3746. "
  3747. @click.stop="deleteWorks(w.wid)"
  3748. alt
  3749. />
  3750. </div>
  3751. <div
  3752. class="workImg"
  3753. style="cursor: pointer"
  3754. v-if="w.type == 1"
  3755. >
  3756. <img :src="word" @click="openFile(w.works)" alt />
  3757. <!-- @click="openFile(w.works)" -->
  3758. <div
  3759. class="answerScore"
  3760. v-if="w.score"
  3761. @click.stop="openScore(w)"
  3762. :class="{
  3763. rightW:
  3764. w.userid == userid ||
  3765. tType == 1 ||
  3766. tType == 4 ||
  3767. w.ateacher == userid,
  3768. }"
  3769. >
  3770. {{ JSON.parse(w.score).wScore }}分
  3771. </div>
  3772. <div
  3773. class="answerScore"
  3774. @click.stop="openScore(w)"
  3775. v-else-if="courseDetail.userid == userid"
  3776. :class="{
  3777. rightW:
  3778. w.userid == userid ||
  3779. tType == 1 ||
  3780. tType == 4 ||
  3781. w.ateacher == userid,
  3782. }"
  3783. >
  3784. 评分
  3785. </div>
  3786. <img
  3787. class="deleteImg"
  3788. src="../../assets/deleteworks.png"
  3789. v-if="
  3790. w.userid == userid || tType == 1 || tType == 4
  3791. "
  3792. @click.stop="deleteWorks(w.wid)"
  3793. alt
  3794. />
  3795. </div>
  3796. <div class="workImg" v-if="w.type == 3">
  3797. <img
  3798. style="cursor: pointer"
  3799. :src="video"
  3800. @click="openVideo(w)"
  3801. alt
  3802. />
  3803. <!-- @click="openVideo(w.works)" -->
  3804. <div
  3805. class="answerScore"
  3806. v-if="w.score"
  3807. @click.stop="openScore(w)"
  3808. :class="{
  3809. rightW:
  3810. w.userid == userid ||
  3811. tType == 1 ||
  3812. tType == 4 ||
  3813. w.ateacher == userid,
  3814. }"
  3815. >
  3816. {{ JSON.parse(w.score).wScore }}分
  3817. </div>
  3818. <div
  3819. class="answerScore"
  3820. @click.stop="openScore(w)"
  3821. v-else-if="courseDetail.userid == userid"
  3822. :class="{
  3823. rightW:
  3824. w.userid == userid ||
  3825. tType == 1 ||
  3826. tType == 4 ||
  3827. w.ateacher == userid,
  3828. }"
  3829. >
  3830. 评分
  3831. </div>
  3832. <img
  3833. class="deleteImg"
  3834. src="../../assets/deleteworks.png"
  3835. v-if="
  3836. w.userid == userid || tType == 1 || tType == 4
  3837. "
  3838. @click.stop="deleteWorks(w.wid)"
  3839. alt
  3840. />
  3841. </div>
  3842. <div class="comment" style="min-width: 200px">
  3843. <div class="worksName">
  3844. <div
  3845. style="cursor: pointer"
  3846. @click="
  3847. openSname(w.sName, w.wid, toolIndex, w.userid)
  3848. "
  3849. >
  3850. {{ w.sName }}
  3851. </div>
  3852. </div>
  3853. <div class="commentList">
  3854. <div class="commentList">
  3855. <div
  3856. class="commentImg"
  3857. @click="
  3858. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3859. "
  3860. >
  3861. <img
  3862. :src="w.isLikes == true ? likes : noLikes"
  3863. alt=""
  3864. />
  3865. </div>
  3866. <div>{{ w.likesCount }}</div>
  3867. </div>
  3868. <div class="commentList" style="margin-right: 15px">
  3869. <div
  3870. class="commentImg"
  3871. @click="commentOther(w, toolIndex, wIndex)"
  3872. >
  3873. <img
  3874. src="../../assets/icon/comment/comment.png"
  3875. alt=""
  3876. />
  3877. </div>
  3878. <div>{{ w.commentCount }}</div>
  3879. </div>
  3880. </div>
  3881. </div>
  3882. </div>
  3883. </div>
  3884. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3885. 未提交
  3886. </div>
  3887. <div
  3888. class="noWorksS"
  3889. v-if="noWorksS && noWorksS[toolIndex].length"
  3890. >
  3891. <div
  3892. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3893. :key="sIndex"
  3894. class="noWorksName"
  3895. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3896. >
  3897. <el-tooltip effect="dark" :content="s.student" placement="top">
  3898. <span>{{ s.student }}</span>
  3899. </el-tooltip>
  3900. </div>
  3901. </div>
  3902. </div>
  3903. <div
  3904. v-if="
  3905. tType &&
  3906. ((tType == 2 && sIsOpen == true) ||
  3907. tType == 1 ||
  3908. tType == 4) &&
  3909. tool.tool.indexOf(4) != -1 &&
  3910. (tool.askJson[0].answer ||
  3911. tool.askJson[0].answer === 0) &&
  3912. checkJson[toolIndex].length
  3913. "
  3914. class="xuan_right_box"
  3915. >
  3916. <div
  3917. class="tool_right_box"
  3918. v-for="(item, index) in tool.askJson"
  3919. :key="index"
  3920. >
  3921. <div style="width: calc(100% - 30px);">
  3922. <el-tooltip
  3923. effect="light"
  3924. :content="index + 1 + '、' + item.askstitle"
  3925. placement="top"
  3926. popper-class="text_tooltip"
  3927. >
  3928. <div
  3929. style="
  3930. width: calc(100% - 130px);
  3931. display: block;
  3932. white-space: nowrap;
  3933. overflow: hidden;
  3934. text-overflow: ellipsis;
  3935. word-break: break-word;
  3936. cursor: pointer;
  3937. "
  3938. >
  3939. {{ index + 1 + "、" + item.askstitle }}
  3940. </div>
  3941. </el-tooltip>
  3942. </div>
  3943. <div class="right_box_xuan">
  3944. <span>正确率</span>
  3945. <span>{{
  3946. (checkJson[toolIndex][index].right
  3947. ? checkJson[toolIndex][index].right
  3948. : 0) + "%"
  3949. }}</span>
  3950. </div>
  3951. </div>
  3952. </div>
  3953. <div
  3954. class="xuan_right_box"
  3955. style="background: unset; padding: 0 10px"
  3956. v-if="
  3957. tType &&
  3958. ((tType == 2 && sIsOpen == true) ||
  3959. tType == 1 ||
  3960. tType == 4) &&
  3961. tool.tool.indexOf(4) != -1
  3962. "
  3963. >
  3964. <AskStatic
  3965. v-if="
  3966. worksStudent.length &&
  3967. worksStudent[toolIndex].length > 0
  3968. "
  3969. :askJSON="tool"
  3970. :checkJson="checkJson[toolIndex]"
  3971. ></AskStatic>
  3972. </div>
  3973. <div
  3974. v-if="
  3975. tType &&
  3976. ((tType == 2 && sIsOpen == true) ||
  3977. tType == 1 ||
  3978. tType == 4) &&
  3979. tool.tool.indexOf(4) != -1
  3980. "
  3981. class="worksBox"
  3982. >
  3983. <div
  3984. class="zuoyeYulan"
  3985. v-if="
  3986. worksStudent.length &&
  3987. worksStudent[toolIndex].length > 0
  3988. "
  3989. >
  3990. <div class="worksTop">
  3991. <div>作业预览</div>
  3992. <div
  3993. class="corOpen"
  3994. @click="contract(toolIndex)"
  3995. v-if="
  3996. (isCloseList[toolIndex].isCloseBoolean) &&
  3997. isCloseList[toolIndex].isClose == 0
  3998. "
  3999. >
  4000. 折叠
  4001. </div>
  4002. <div
  4003. class="corOpen"
  4004. @click="contract(toolIndex)"
  4005. v-if="isCloseList[toolIndex].isClose == 1"
  4006. >
  4007. 展开
  4008. </div>
  4009. </div>
  4010. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4011. </div>
  4012. <div>
  4013. <div
  4014. :id="'tool-' + toolIndex"
  4015. :style="{
  4016. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4017. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4018. }"
  4019. class="worksDetailBox"
  4020. v-if="
  4021. worksStudent.length &&
  4022. worksStudent[toolIndex].length > 0
  4023. "
  4024. >
  4025. <div
  4026. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4027. :key="wIndex"
  4028. class="isWorksName2"
  4029. @click="
  4030. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4031. "
  4032. >
  4033. {{ w.sName }}
  4034. <img
  4035. class="deleteImg deleteImg2"
  4036. src="../../assets/deleteworks.png"
  4037. v-if="
  4038. w.userid == userid || tType == 1 || tType == 4
  4039. "
  4040. @click.stop="deleteWorks(w.wid)"
  4041. alt
  4042. />
  4043. </div>
  4044. <!-- <div class="works" style="
  4045. width: 200px;
  4046. height: 140px;
  4047. border-radius: 10px;
  4048. box-shadow: 0 0 6px 1px #dfdada;
  4049. overflow: hidden;
  4050. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4051. <div class="workImg">
  4052. <img src="../../assets/icon/works/noImg.png" @click="
  4053. openTools(
  4054. 4,
  4055. toolIndex,
  4056. taskCount,
  4057. w.works,
  4058. w.sName
  4059. )
  4060. " alt />
  4061. </div>
  4062. <div class="worksName">
  4063. <div>{{ w.sName }}</div>
  4064. <div>{{ w.time }}</div>
  4065. </div>
  4066. </div> -->
  4067. </div>
  4068. </div>
  4069. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4070. 未提交
  4071. </div>
  4072. <div
  4073. class="noWorksS"
  4074. v-if="noWorksS && noWorksS[toolIndex].length"
  4075. >
  4076. <div
  4077. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4078. :key="sIndex"
  4079. class="noWorksName"
  4080. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4081. >
  4082. <el-tooltip effect="dark" :content="s.student" placement="top">
  4083. <span>{{ s.student }}</span>
  4084. </el-tooltip>
  4085. </div>
  4086. </div>
  4087. </div>
  4088. <div
  4089. v-if="
  4090. tType &&
  4091. ((tType == 2 && sIsOpen == true) ||
  4092. tType == 1 ||
  4093. tType == 4) &&
  4094. tool.tool.indexOf(45) != -1 &&
  4095. (tool.testJson.testJson[0].answer ||
  4096. tool.testJson.testJson[0].answer === 0) &&
  4097. checkJson[toolIndex].length
  4098. "
  4099. class="xuan_right_box"
  4100. >
  4101. <div
  4102. class="tool_right_box"
  4103. v-for="(item, index) in tool.testJson.testJson"
  4104. :key="index"
  4105. >
  4106. <div class="right_box_xuan" style="margin-right: 10px">
  4107. <span>正确率</span>
  4108. <span>{{
  4109. (checkJson[toolIndex][index].right
  4110. ? checkJson[toolIndex][index].right
  4111. : 0) + "%"
  4112. }}</span>
  4113. </div>
  4114. <div style="width: calc(100% - 30px);">
  4115. <el-tooltip
  4116. effect="light"
  4117. :content="index + 1 + '、' + item.teststitle"
  4118. placement="top"
  4119. popper-class="text_tooltip"
  4120. >
  4121. <div
  4122. style="
  4123. width: calc(100% - 130px);
  4124. display: block;
  4125. white-space: nowrap;
  4126. overflow: hidden;
  4127. text-overflow: ellipsis;
  4128. word-break: break-word;
  4129. cursor: pointer;
  4130. "
  4131. >
  4132. {{ index + 1 + "、" + item.teststitle }}
  4133. </div>
  4134. </el-tooltip>
  4135. </div>
  4136. </div>
  4137. </div>
  4138. <div
  4139. class="xuan_right_box"
  4140. style="background: unset; padding: 0 10px; width: 91.5%"
  4141. v-if="
  4142. tType &&
  4143. ((tType == 2 && sIsOpen == true) ||
  4144. tType == 1 ||
  4145. tType == 4) &&
  4146. tool.tool.indexOf(45) != -1
  4147. "
  4148. >
  4149. <AskStatic2
  4150. v-if="
  4151. worksStudent.length &&
  4152. worksStudent[toolIndex].length > 0
  4153. "
  4154. :askJSON="tool"
  4155. :checkJson="checkJson[toolIndex]"
  4156. ></AskStatic2>
  4157. </div>
  4158. <div
  4159. v-if="
  4160. tType &&
  4161. ((tType == 2 && sIsOpen == true) ||
  4162. tType == 1 ||
  4163. tType == 4) &&
  4164. tool.tool.indexOf(45) != -1
  4165. "
  4166. class="worksBox"
  4167. >
  4168. <div
  4169. class="zuoyeYulan"
  4170. v-if="
  4171. worksStudent.length &&
  4172. worksStudent[toolIndex].length > 0
  4173. "
  4174. >
  4175. <div class="worksTop">
  4176. <div>作业预览</div>
  4177. <div
  4178. class="corOpen"
  4179. @click="contract(toolIndex)"
  4180. v-if="
  4181. (isCloseList[toolIndex].isCloseBoolean) &&
  4182. isCloseList[toolIndex].isClose == 0
  4183. "
  4184. >
  4185. 折叠
  4186. </div>
  4187. <div
  4188. class="corOpen"
  4189. @click="contract(toolIndex)"
  4190. v-if="isCloseList[toolIndex].isClose == 1"
  4191. >
  4192. 展开
  4193. </div>
  4194. </div>
  4195. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4196. </div>
  4197. <div>
  4198. <div
  4199. :id="'tool-' + toolIndex"
  4200. :style="{
  4201. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4202. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4203. }"
  4204. class="worksDetailBox"
  4205. v-if="
  4206. worksStudent.length &&
  4207. worksStudent[toolIndex].length > 0
  4208. "
  4209. >
  4210. <div
  4211. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4212. :key="wIndex"
  4213. class="isWorksName2"
  4214. @click="
  4215. openTools(
  4216. 45,
  4217. toolIndex,
  4218. taskCount,
  4219. w.works,
  4220. w.sName
  4221. )
  4222. "
  4223. >
  4224. {{ w.sName }}
  4225. <img
  4226. class="deleteImg deleteImg2"
  4227. src="../../assets/deleteworks.png"
  4228. v-if="
  4229. w.userid == userid || tType == 1 || tType == 4
  4230. "
  4231. @click.stop="deleteWorks(w.wid)"
  4232. alt
  4233. />
  4234. </div>
  4235. </div>
  4236. </div>
  4237. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4238. 未提交
  4239. </div>
  4240. <div
  4241. class="noWorksS"
  4242. v-if="noWorksS && noWorksS[toolIndex].length"
  4243. >
  4244. <div
  4245. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4246. :key="sIndex"
  4247. class="noWorksName"
  4248. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4249. >
  4250. <el-tooltip effect="dark" :content="s.student" placement="top">
  4251. <span>{{ s.student }}</span>
  4252. </el-tooltip>
  4253. </div>
  4254. </div>
  4255. </div>
  4256. <div
  4257. v-if="
  4258. tType &&
  4259. ((tType == 2 && sIsOpen == true) ||
  4260. tType == 1 ||
  4261. tType == 4) &&
  4262. tool.tool.indexOf(69) != -1
  4263. "
  4264. class="worksBox"
  4265. >
  4266. <div
  4267. class="zuoyeYulan"
  4268. v-if="
  4269. worksStudent.length &&
  4270. worksStudent[toolIndex].length > 0
  4271. "
  4272. >
  4273. <div class="worksTop">
  4274. <div>作业预览</div>
  4275. <div
  4276. class="corOpen"
  4277. @click="contract(toolIndex)"
  4278. v-if="
  4279. (isCloseList[toolIndex].isCloseBoolean) &&
  4280. isCloseList[toolIndex].isClose == 0
  4281. "
  4282. >
  4283. 折叠
  4284. </div>
  4285. <div
  4286. class="corOpen"
  4287. @click="contract(toolIndex)"
  4288. v-if="isCloseList[toolIndex].isClose == 1"
  4289. >
  4290. 展开
  4291. </div>
  4292. </div>
  4293. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4294. </div>
  4295. <div>
  4296. <div
  4297. :id="'tool-' + toolIndex"
  4298. :style="{
  4299. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4300. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4301. }"
  4302. class="worksDetailBox"
  4303. v-if="
  4304. worksStudent.length &&
  4305. worksStudent[toolIndex].length > 0
  4306. "
  4307. >
  4308. <div
  4309. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4310. :key="wIndex"
  4311. class="isWorksName2"
  4312. style="width: 160px;height: 65px;line-height: 65px;"
  4313. @click="
  4314. openTools(
  4315. 69,
  4316. toolIndex,
  4317. taskCount,
  4318. w.works,
  4319. w.sName,
  4320. w.wid
  4321. )
  4322. "
  4323. >
  4324. {{ w.sName }}
  4325. <img
  4326. class="deleteImg1"
  4327. src="../../assets/evaEnglish.png"
  4328. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4329. alt
  4330. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4331. />
  4332. <img
  4333. class="deleteImg deleteImg2"
  4334. src="../../assets/deleteworks.png"
  4335. v-if="
  4336. w.userid == userid || tType == 1 || tType == 4
  4337. "
  4338. @click.stop="deleteWorks(w.wid)"
  4339. alt
  4340. />
  4341. </div>
  4342. </div>
  4343. </div>
  4344. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4345. 未提交
  4346. </div>
  4347. <div
  4348. class="noWorksS"
  4349. v-if="noWorksS && noWorksS[toolIndex].length"
  4350. >
  4351. <div
  4352. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4353. :key="sIndex"
  4354. class="noWorksName"
  4355. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4356. >
  4357. <el-tooltip effect="dark" :content="s.student" placement="top">
  4358. <span>{{ s.student }}</span>
  4359. </el-tooltip>
  4360. </div>
  4361. </div>
  4362. </div>
  4363. <div
  4364. v-if="
  4365. tType &&
  4366. ((tType == 2 && sIsOpen == true) ||
  4367. tType == 1 ||
  4368. tType == 4) &&
  4369. tool.tool.indexOf(15) != -1
  4370. "
  4371. class="worksBox"
  4372. >
  4373. <div
  4374. class="zuoyeYulan"
  4375. v-if="
  4376. (worksStudent.length &&
  4377. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4378. "
  4379. >
  4380. <div class="worksTop">
  4381. <div>作业预览</div>
  4382. <div
  4383. class="corOpen"
  4384. @click="contract(toolIndex)"
  4385. v-if="
  4386. (isCloseList[toolIndex].isCloseBoolean) &&
  4387. isCloseList[toolIndex].isClose == 0
  4388. "
  4389. >
  4390. 折叠
  4391. </div>
  4392. <div
  4393. class="corOpen"
  4394. @click="contract(toolIndex)"
  4395. v-if="isCloseList[toolIndex].isClose == 1"
  4396. >
  4397. 展开
  4398. </div>
  4399. </div>
  4400. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4401. </div>
  4402. <div
  4403. class="group_workBox"
  4404. v-for="(g, gindex) in courseGroup.group"
  4405. :key="gindex"
  4406. >
  4407. <div class="group_box">
  4408. <div class="group_title">
  4409. <el-tooltip
  4410. class="item"
  4411. effect="light"
  4412. :content="g.name"
  4413. placement="top"
  4414. >
  4415. <div class="group_name">{{ g.name }}</div>
  4416. </el-tooltip>
  4417. </div>
  4418. <div
  4419. class="group_work"
  4420. v-if="
  4421. g.works &&
  4422. g.works.length &&
  4423. g.works[toolIndex].length
  4424. "
  4425. >
  4426. <div
  4427. class="works"
  4428. v-for="(w, wIndex) in g.works[toolIndex]"
  4429. :key="wIndex"
  4430. >
  4431. <div
  4432. class="workImg"
  4433. style="
  4434. border-radius: 15px;
  4435. box-shadow: 0px 0px 5px 5px #eee;
  4436. "
  4437. >
  4438. <div
  4439. class="answerBg"
  4440. style="border-radius: 15px 15px 0 0"
  4441. @click="
  4442. commentOther(w, toolIndex, wIndex, null, g.id)
  4443. "
  4444. >
  4445. <div class="answerContent">
  4446. {{ JSON.parse(w.works)[0].answer }}
  4447. </div>
  4448. <div
  4449. class="answerScore"
  4450. v-if="w.score"
  4451. @click.stop="openScore(w)"
  4452. :class="{
  4453. rightW:
  4454. w.userid == userid ||
  4455. tType == 1 ||
  4456. tType == 4,
  4457. }"
  4458. >
  4459. {{ JSON.parse(w.score).wScore }}分
  4460. </div>
  4461. <div
  4462. class="answerScore"
  4463. @click.stop="openScore(w)"
  4464. v-else-if="courseDetail.userid == userid"
  4465. :class="{
  4466. rightW:
  4467. w.userid == userid ||
  4468. tType == 1 ||
  4469. tType == 4,
  4470. }"
  4471. >
  4472. 评分
  4473. </div>
  4474. <img
  4475. class="deleteImg"
  4476. src="../../assets/deleteworks.png"
  4477. v-if="
  4478. w.userid == userid ||
  4479. tType == 1 ||
  4480. tType == 4
  4481. "
  4482. @click.stop="deleteWorks(w.wid)"
  4483. alt
  4484. />
  4485. </div>
  4486. <div class="comment">
  4487. <div class="worksName">
  4488. <div>{{ w.sName }}</div>
  4489. </div>
  4490. <div class="commentList">
  4491. <div
  4492. class="commentImg"
  4493. @click="
  4494. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4495. "
  4496. >
  4497. <img
  4498. :src="w.isLikes == true ? likes : noLikes"
  4499. alt=""
  4500. />
  4501. </div>
  4502. <div>{{ w.likesCount }}</div>
  4503. </div>
  4504. <div
  4505. class="commentList"
  4506. style="margin-right: 15px"
  4507. >
  4508. <div
  4509. class="commentImg"
  4510. @click="
  4511. commentOther(
  4512. w,
  4513. toolIndex,
  4514. wIndex,
  4515. null,
  4516. g.id
  4517. )
  4518. "
  4519. >
  4520. <img
  4521. src="../../assets/icon/comment/comment.png"
  4522. alt=""
  4523. />
  4524. </div>
  4525. <div>{{ w.commentCount }}</div>
  4526. </div>
  4527. </div>
  4528. </div>
  4529. </div>
  4530. </div>
  4531. <div class="group_work" v-else>暂无提交作业</div>
  4532. </div>
  4533. </div>
  4534. <div
  4535. :id="'tool-' + toolIndex"
  4536. :style="{
  4537. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4538. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4539. }"
  4540. class="worksDetailBox"
  4541. v-if="
  4542. worksStudent.length &&
  4543. worksStudent[toolIndex].length > 0
  4544. "
  4545. >
  4546. <div
  4547. class="works"
  4548. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4549. :key="wIndex"
  4550. >
  4551. <div
  4552. class="workImg"
  4553. style="
  4554. border-radius: 15px;
  4555. box-shadow: 0px 0px 5px 5px #eee;
  4556. "
  4557. >
  4558. <!-- <img
  4559. src="../../assets/icon/works/noImg.png"
  4560. @click="openTools(15, toolIndex, taskCount, w.works)"
  4561. alt=""
  4562. />-->
  4563. <div
  4564. class="answerBg"
  4565. style="border-radius: 15px 15px 0 0"
  4566. @click="commentOther(w, toolIndex, wIndex)"
  4567. >
  4568. <!-- <div>{{ w.sName }}</div> -->
  4569. <div class="answerContent">
  4570. {{ JSON.parse(w.works)[0].answer }}
  4571. </div>
  4572. <div
  4573. class="answerScore"
  4574. v-if="w.score"
  4575. @click.stop="openScore(w)"
  4576. :class="{
  4577. rightW:
  4578. w.userid == userid ||
  4579. tType == 1 ||
  4580. tType == 4,
  4581. }"
  4582. >
  4583. {{ JSON.parse(w.score).wScore }}分
  4584. </div>
  4585. <div
  4586. class="answerScore"
  4587. @click.stop="openScore(w)"
  4588. v-else-if="courseDetail.userid == userid"
  4589. :class="{
  4590. rightW:
  4591. w.userid == userid ||
  4592. tType == 1 ||
  4593. tType == 4,
  4594. }"
  4595. >
  4596. 评分
  4597. </div>
  4598. <img
  4599. class="deleteImg"
  4600. src="../../assets/deleteworks.png"
  4601. v-if="
  4602. w.userid == userid || tType == 1 || tType == 4
  4603. "
  4604. @click.stop="deleteWorks(w.wid)"
  4605. alt
  4606. />
  4607. </div>
  4608. <div class="comment">
  4609. <div class="worksName">
  4610. <div>{{ w.sName }}</div>
  4611. </div>
  4612. <div class="commentList">
  4613. <div
  4614. class="commentImg"
  4615. @click="
  4616. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4617. "
  4618. >
  4619. <img
  4620. :src="w.isLikes == true ? likes : noLikes"
  4621. alt=""
  4622. />
  4623. </div>
  4624. <div>{{ w.likesCount }}</div>
  4625. </div>
  4626. <div class="commentList" style="margin-right: 15px">
  4627. <div
  4628. class="commentImg"
  4629. @click="commentOther(w, toolIndex, wIndex)"
  4630. >
  4631. <img
  4632. src="../../assets/icon/comment/comment.png"
  4633. alt=""
  4634. />
  4635. </div>
  4636. <div>{{ w.commentCount }}</div>
  4637. </div>
  4638. </div>
  4639. </div>
  4640. </div>
  4641. </div>
  4642. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4643. 未提交
  4644. </div>
  4645. <div
  4646. class="noWorksS"
  4647. v-if="noWorksS && noWorksS[toolIndex].length"
  4648. >
  4649. <div
  4650. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4651. :key="sIndex"
  4652. class="noWorksName"
  4653. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4654. >
  4655. <el-tooltip effect="dark" :content="s.student" placement="top">
  4656. <span>{{ s.student }}</span>
  4657. </el-tooltip>
  4658. </div>
  4659. </div>
  4660. </div>
  4661. <div
  4662. v-if="
  4663. tType &&
  4664. ((tType == 2 && sIsOpen == true) ||
  4665. tType == 1 ||
  4666. tType == 4) &&
  4667. tool.tool.indexOf(1) != -1
  4668. "
  4669. class="worksBox"
  4670. >
  4671. <div
  4672. class="zuoyeYulan"
  4673. v-if="
  4674. (worksStudent.length &&
  4675. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4676. "
  4677. >
  4678. <div class="worksTop">
  4679. <div>作业预览</div>
  4680. <div
  4681. class="corOpen"
  4682. @click="contract(toolIndex)"
  4683. v-if="
  4684. (isCloseList[toolIndex].isCloseBoolean) &&
  4685. isCloseList[toolIndex].isClose == 0
  4686. "
  4687. >
  4688. 折叠
  4689. </div>
  4690. <div
  4691. class="corOpen"
  4692. @click="contract(toolIndex)"
  4693. v-if="isCloseList[toolIndex].isClose == 1"
  4694. >
  4695. 展开
  4696. </div>
  4697. </div>
  4698. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4699. </div>
  4700. <div
  4701. class="group_workBox"
  4702. v-for="(g, gindex) in courseGroup.group"
  4703. :key="gindex"
  4704. >
  4705. <div class="group_box">
  4706. <div class="group_title">
  4707. <el-tooltip
  4708. class="item"
  4709. effect="light"
  4710. :content="g.name"
  4711. placement="top"
  4712. >
  4713. <div class="group_name">{{ g.name }}</div>
  4714. </el-tooltip>
  4715. </div>
  4716. <div
  4717. class="group_work"
  4718. v-if="
  4719. g.works &&
  4720. g.works.length &&
  4721. g.works[toolIndex].length
  4722. "
  4723. >
  4724. <div
  4725. class="works"
  4726. style="
  4727. width: 200px;
  4728. height: 140px;
  4729. margin: 10px 10px 10px 0;
  4730. border-radius: 15px;
  4731. box-shadow: 0 0 6px 1px #dfdada;
  4732. "
  4733. v-for="(w, wIndex) in g.works[toolIndex]"
  4734. :key="wIndex"
  4735. :class="w.type == 1 ? 'isTypeOne' : ''"
  4736. >
  4737. <div class="workImg">
  4738. <img
  4739. :src="w.works"
  4740. @click="previewImg(w.works,w)"
  4741. alt
  4742. />
  4743. <div
  4744. class="answerScore"
  4745. v-if="w.score"
  4746. @click.stop="openScore(w)"
  4747. :class="{
  4748. rightW:
  4749. w.userid == userid ||
  4750. tType == 1 ||
  4751. tType == 4,
  4752. }"
  4753. >
  4754. {{ JSON.parse(w.score).wScore }}分
  4755. </div>
  4756. <div
  4757. class="answerScore"
  4758. @click.stop="openScore(w)"
  4759. v-else-if="courseDetail.userid == userid"
  4760. :class="{
  4761. rightW:
  4762. w.userid == userid ||
  4763. tType == 1 ||
  4764. tType == 4,
  4765. }"
  4766. >
  4767. 评分
  4768. </div>
  4769. <img
  4770. class="deleteImg"
  4771. src="../../assets/deleteworks.png"
  4772. v-if="
  4773. w.userid == userid || tType == 1 || tType == 4
  4774. "
  4775. @click.stop="deleteWorks(w.wid)"
  4776. alt
  4777. />
  4778. </div>
  4779. <div class="comment" style="min-width: 200px">
  4780. <div class="worksName">
  4781. <div>{{ w.sName }}</div>
  4782. </div>
  4783. <div class="commentList">
  4784. <div class="commentList">
  4785. <div
  4786. class="commentImg"
  4787. @click="
  4788. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4789. "
  4790. >
  4791. <img
  4792. :src="w.isLikes == true ? likes : noLikes"
  4793. alt=""
  4794. />
  4795. </div>
  4796. <div>{{ w.likesCount }}</div>
  4797. </div>
  4798. <div
  4799. class="commentList"
  4800. style="margin-right: 15px"
  4801. >
  4802. <div
  4803. class="commentImg"
  4804. @click="
  4805. commentOther(
  4806. w,
  4807. toolIndex,
  4808. wIndex,
  4809. null,
  4810. g.id
  4811. )
  4812. "
  4813. >
  4814. <img
  4815. src="../../assets/icon/comment/comment.png"
  4816. alt=""
  4817. />
  4818. </div>
  4819. <div>{{ w.commentCount }}</div>
  4820. </div>
  4821. </div>
  4822. </div>
  4823. </div>
  4824. </div>
  4825. <div class="group_work" v-else>暂无提交作业</div>
  4826. </div>
  4827. </div>
  4828. <div
  4829. :id="'tool-' + toolIndex"
  4830. :style="{
  4831. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4832. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4833. }"
  4834. class="worksDetailBox"
  4835. v-if="
  4836. worksStudent.length &&
  4837. worksStudent[toolIndex].length > 0
  4838. "
  4839. >
  4840. <div
  4841. class="works"
  4842. style="
  4843. width: 200px;
  4844. height: 140px;
  4845. margin: 10px 10px 10px 0;
  4846. border-radius: 15px;
  4847. box-shadow: 0 0 6px 1px #dfdada;
  4848. "
  4849. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4850. :key="wIndex"
  4851. >
  4852. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4853. <div class="workImg">
  4854. <img
  4855. :src="w.works"
  4856. @click="previewImg(w.works,w)"
  4857. alt
  4858. />
  4859. <div
  4860. class="answerScore"
  4861. v-if="w.score"
  4862. @click.stop="openScore(w)"
  4863. :class="{
  4864. rightW:
  4865. w.userid == userid || tType == 1 || tType == 4,
  4866. }"
  4867. >
  4868. {{ JSON.parse(w.score).wScore }}分
  4869. </div>
  4870. <div
  4871. class="answerScore"
  4872. @click.stop="openScore(w)"
  4873. v-else-if="courseDetail.userid == userid"
  4874. :class="{
  4875. rightW:
  4876. w.userid == userid || tType == 1 || tType == 4,
  4877. }"
  4878. >
  4879. 评分
  4880. </div>
  4881. <img
  4882. class="deleteImg"
  4883. src="../../assets/deleteworks.png"
  4884. v-if="
  4885. w.userid == userid || tType == 1 || tType == 4
  4886. "
  4887. @click.stop="deleteWorks(w.wid)"
  4888. alt
  4889. />
  4890. </div>
  4891. <div class="comment" style="min-width: 200px">
  4892. <div class="worksName">
  4893. <div>{{ w.sName }}</div>
  4894. </div>
  4895. <div class="commentList">
  4896. <div class="commentList">
  4897. <div
  4898. class="commentImg"
  4899. @click="
  4900. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4901. "
  4902. >
  4903. <img
  4904. :src="w.isLikes == true ? likes : noLikes"
  4905. alt=""
  4906. />
  4907. </div>
  4908. <div>{{ w.likesCount }}</div>
  4909. </div>
  4910. <div class="commentList" style="margin-right: 15px">
  4911. <div
  4912. class="commentImg"
  4913. @click="commentOther(w, toolIndex, wIndex)"
  4914. >
  4915. <img
  4916. src="../../assets/icon/comment/comment.png"
  4917. alt=""
  4918. />
  4919. </div>
  4920. <div>{{ w.commentCount }}</div>
  4921. </div>
  4922. </div>
  4923. </div>
  4924. </div>
  4925. </div>
  4926. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4927. 未提交
  4928. </div>
  4929. <div
  4930. class="noWorksS"
  4931. v-if="noWorksS && noWorksS[toolIndex].length"
  4932. >
  4933. <div
  4934. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4935. :key="sIndex"
  4936. class="noWorksName"
  4937. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4938. >
  4939. <el-tooltip effect="dark" :content="s.student" placement="top">
  4940. <span>{{ s.student }}</span>
  4941. </el-tooltip>
  4942. </div>
  4943. </div>
  4944. </div>
  4945. <div
  4946. v-if="
  4947. tType &&
  4948. ((tType == 2 && sIsOpen == true) ||
  4949. tType == 1 ||
  4950. tType == 4) &&
  4951. tool.tool.indexOf(3) != -1
  4952. "
  4953. class="worksBox"
  4954. >
  4955. <div
  4956. class="zuoyeYulan"
  4957. v-if="
  4958. (worksStudent.length &&
  4959. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4960. "
  4961. >
  4962. <div class="worksTop">
  4963. <div>作业预览</div>
  4964. <div
  4965. class="corOpen"
  4966. @click="contract(toolIndex)"
  4967. v-if="
  4968. (isCloseList[toolIndex].isCloseBoolean) &&
  4969. isCloseList[toolIndex].isClose == 0
  4970. "
  4971. >
  4972. 折叠
  4973. </div>
  4974. <div
  4975. class="corOpen"
  4976. @click="contract(toolIndex)"
  4977. v-if="isCloseList[toolIndex].isClose == 1"
  4978. >
  4979. 展开
  4980. </div>
  4981. </div>
  4982. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4983. </div>
  4984. <div
  4985. class="group_workBox"
  4986. v-for="(g, gindex) in courseGroup.group"
  4987. :key="gindex"
  4988. >
  4989. <div class="group_box">
  4990. <div class="group_title">
  4991. <el-tooltip
  4992. class="item"
  4993. effect="light"
  4994. :content="g.name"
  4995. placement="top"
  4996. >
  4997. <div class="group_name">{{ g.name }}</div>
  4998. </el-tooltip>
  4999. </div>
  5000. <div
  5001. class="group_work"
  5002. v-if="
  5003. g.works &&
  5004. g.works.length &&
  5005. g.works[toolIndex].length
  5006. "
  5007. >
  5008. <div
  5009. class="works"
  5010. style="
  5011. width: 200px;
  5012. height: 140px;
  5013. margin: 10px 10px 10px 0;
  5014. border-radius: 15px;
  5015. box-shadow: 0 0 6px 1px #dfdada;
  5016. "
  5017. v-for="(w, wIndex) in g.works[toolIndex]"
  5018. :key="wIndex"
  5019. :class="w.type == 1 ? 'isTypeOne' : ''"
  5020. >
  5021. <div class="workImg">
  5022. <img
  5023. :src="w.works"
  5024. @click="previewImg(w.works,w)"
  5025. alt
  5026. />
  5027. <div
  5028. class="answerScore"
  5029. v-if="w.score"
  5030. @click.stop="openScore(w)"
  5031. :class="{
  5032. rightW:
  5033. w.userid == userid ||
  5034. tType == 1 ||
  5035. tType == 4,
  5036. }"
  5037. >
  5038. {{ JSON.parse(w.score).wScore }}分
  5039. </div>
  5040. <div
  5041. class="answerScore"
  5042. @click.stop="openScore(w)"
  5043. v-else-if="courseDetail.userid == userid"
  5044. :class="{
  5045. rightW:
  5046. w.userid == userid ||
  5047. tType == 1 ||
  5048. tType == 4,
  5049. }"
  5050. >
  5051. 评分
  5052. </div>
  5053. <img
  5054. class="deleteImg"
  5055. src="../../assets/deleteworks.png"
  5056. v-if="
  5057. w.userid == userid || tType == 1 || tType == 4
  5058. "
  5059. @click.stop="deleteWorks(w.wid)"
  5060. alt
  5061. />
  5062. </div>
  5063. <div class="comment" style="min-width: 200px">
  5064. <div class="worksName">
  5065. <div>{{ w.sName }}</div>
  5066. </div>
  5067. <div class="commentList">
  5068. <div class="commentList">
  5069. <div
  5070. class="commentImg"
  5071. @click="
  5072. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5073. "
  5074. >
  5075. <img
  5076. :src="w.isLikes == true ? likes : noLikes"
  5077. alt=""
  5078. />
  5079. </div>
  5080. <div>{{ w.likesCount }}</div>
  5081. </div>
  5082. <div
  5083. class="commentList"
  5084. style="margin-right: 15px"
  5085. >
  5086. <div
  5087. class="commentImg"
  5088. @click="
  5089. commentOther(
  5090. w,
  5091. toolIndex,
  5092. wIndex,
  5093. null,
  5094. g.id
  5095. )
  5096. "
  5097. >
  5098. <img
  5099. src="../../assets/icon/comment/comment.png"
  5100. alt=""
  5101. />
  5102. </div>
  5103. <div>{{ w.commentCount }}</div>
  5104. </div>
  5105. </div>
  5106. </div>
  5107. </div>
  5108. </div>
  5109. <div class="group_work" v-else>暂无提交作业</div>
  5110. </div>
  5111. </div>
  5112. <div
  5113. :id="'tool-' + toolIndex"
  5114. :style="{
  5115. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5116. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5117. }"
  5118. class="worksDetailBox"
  5119. v-if="
  5120. worksStudent.length &&
  5121. worksStudent[toolIndex].length > 0
  5122. "
  5123. >
  5124. <div
  5125. class="works"
  5126. style="
  5127. width: 200px;
  5128. height: 140px;
  5129. margin: 10px 10px 10px 0;
  5130. border-radius: 15px;
  5131. box-shadow: 0 0 6px 1px #dfdada;
  5132. "
  5133. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5134. :key="wIndex"
  5135. >
  5136. <!-- @click="previewImg(w.works)" -->
  5137. <div class="workImg">
  5138. <img
  5139. :src="w.works"
  5140. @click="previewImg(w.works,w)"
  5141. alt
  5142. />
  5143. <div
  5144. class="answerScore"
  5145. v-if="w.score"
  5146. @click.stop="openScore(w)"
  5147. :class="{
  5148. rightW:
  5149. w.userid == userid || tType == 1 || tType == 4,
  5150. }"
  5151. >
  5152. {{ JSON.parse(w.score).wScore }}分
  5153. </div>
  5154. <div
  5155. class="answerScore"
  5156. @click.stop="openScore(w)"
  5157. v-else-if="courseDetail.userid == userid"
  5158. :class="{
  5159. rightW:
  5160. w.userid == userid || tType == 1 || tType == 4,
  5161. }"
  5162. >
  5163. 评分
  5164. </div>
  5165. <img
  5166. class="deleteImg"
  5167. src="../../assets/deleteworks.png"
  5168. v-if="
  5169. w.userid == userid || tType == 1 || tType == 4
  5170. "
  5171. @click.stop="deleteWorks(w.wid)"
  5172. alt
  5173. />
  5174. </div>
  5175. <div class="comment" style="min-width: 200px">
  5176. <div class="worksName">
  5177. <div>{{ w.sName }}</div>
  5178. </div>
  5179. <div class="commentList">
  5180. <div class="commentList">
  5181. <div
  5182. class="commentImg"
  5183. @click="
  5184. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5185. "
  5186. >
  5187. <img
  5188. :src="w.isLikes == true ? likes : noLikes"
  5189. alt=""
  5190. />
  5191. </div>
  5192. <div>{{ w.likesCount }}</div>
  5193. </div>
  5194. <div class="commentList" style="margin-right: 15px">
  5195. <div
  5196. class="commentImg"
  5197. @click="commentOther(w, toolIndex, wIndex)"
  5198. >
  5199. <img
  5200. src="../../assets/icon/comment/comment.png"
  5201. alt=""
  5202. />
  5203. </div>
  5204. <div>{{ w.commentCount }}</div>
  5205. </div>
  5206. </div>
  5207. </div>
  5208. </div>
  5209. </div>
  5210. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5211. 未提交
  5212. </div>
  5213. <div
  5214. class="noWorksS"
  5215. v-if="noWorksS && noWorksS[toolIndex].length"
  5216. >
  5217. <div
  5218. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5219. :key="sIndex"
  5220. class="noWorksName"
  5221. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5222. >
  5223. <el-tooltip effect="dark" :content="s.student" placement="top">
  5224. <span>{{ s.student }}</span>
  5225. </el-tooltip>
  5226. </div>
  5227. </div>
  5228. </div>
  5229. <div
  5230. v-if="
  5231. tType &&
  5232. ((tType == 2 && sIsOpen == true) ||
  5233. tType == 1 ||
  5234. tType == 4) &&
  5235. tool.tool.indexOf(6) != -1
  5236. "
  5237. class="worksBox"
  5238. >
  5239. <div
  5240. class="zuoyeYulan"
  5241. v-if="
  5242. (worksStudent.length &&
  5243. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5244. "
  5245. >
  5246. <div class="worksTop">
  5247. <div>作业预览</div>
  5248. <div
  5249. class="corOpen"
  5250. @click="contract(toolIndex)"
  5251. v-if="
  5252. (isCloseList[toolIndex].isCloseBoolean) &&
  5253. isCloseList[toolIndex].isClose == 0
  5254. "
  5255. >
  5256. 折叠
  5257. </div>
  5258. <div
  5259. class="corOpen"
  5260. @click="contract(toolIndex)"
  5261. v-if="isCloseList[toolIndex].isClose == 1"
  5262. >
  5263. 展开
  5264. </div>
  5265. </div>
  5266. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5267. </div>
  5268. <div
  5269. class="group_workBox"
  5270. v-for="(g, gindex) in courseGroup.group"
  5271. :key="gindex"
  5272. >
  5273. <div class="group_box">
  5274. <div class="group_title">
  5275. <el-tooltip
  5276. class="item"
  5277. effect="light"
  5278. :content="g.name"
  5279. placement="top"
  5280. >
  5281. <div class="group_name">{{ g.name }}</div>
  5282. </el-tooltip>
  5283. </div>
  5284. <div
  5285. class="group_work"
  5286. v-if="
  5287. g.works &&
  5288. g.works.length &&
  5289. g.works[toolIndex].length
  5290. "
  5291. >
  5292. <div
  5293. class="works"
  5294. style="
  5295. width: 200px;
  5296. height: 140px;
  5297. margin: 10px 10px 10px 0;
  5298. border-radius: 15px;
  5299. box-shadow: 0 0 6px 1px #dfdada;
  5300. "
  5301. v-for="(w, wIndex) in g.works[toolIndex]"
  5302. :key="wIndex"
  5303. :class="w.type == 1 ? 'isTypeOne' : ''"
  5304. >
  5305. <div class="workImg">
  5306. <img
  5307. :src="w.works"
  5308. @click="previewImg(w.works,w)"
  5309. alt
  5310. />
  5311. <div
  5312. class="answerScore"
  5313. v-if="w.score"
  5314. @click.stop="openScore(w)"
  5315. :class="{
  5316. rightW:
  5317. w.userid == userid ||
  5318. tType == 1 ||
  5319. tType == 4,
  5320. }"
  5321. >
  5322. {{ JSON.parse(w.score).wScore }}分
  5323. </div>
  5324. <div
  5325. class="answerScore"
  5326. @click.stop="openScore(w)"
  5327. v-else-if="courseDetail.userid == userid"
  5328. :class="{
  5329. rightW:
  5330. w.userid == userid ||
  5331. tType == 1 ||
  5332. tType == 4,
  5333. }"
  5334. >
  5335. 评分
  5336. </div>
  5337. <img
  5338. class="deleteImg"
  5339. src="../../assets/deleteworks.png"
  5340. v-if="
  5341. w.userid == userid || tType == 1 || tType == 4
  5342. "
  5343. @click.stop="deleteWorks(w.wid)"
  5344. alt
  5345. />
  5346. </div>
  5347. <div class="comment" style="min-width: 200px">
  5348. <div class="worksName">
  5349. <div>{{ w.sName }}</div>
  5350. </div>
  5351. <div class="commentList">
  5352. <div class="commentList">
  5353. <div
  5354. class="commentImg"
  5355. @click="
  5356. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5357. "
  5358. >
  5359. <img
  5360. :src="w.isLikes == true ? likes : noLikes"
  5361. alt=""
  5362. />
  5363. </div>
  5364. <div>{{ w.likesCount }}</div>
  5365. </div>
  5366. <div
  5367. class="commentList"
  5368. style="margin-right: 15px"
  5369. >
  5370. <div
  5371. class="commentImg"
  5372. @click="
  5373. commentOther(
  5374. w,
  5375. toolIndex,
  5376. wIndex,
  5377. null,
  5378. g.id
  5379. )
  5380. "
  5381. >
  5382. <img
  5383. src="../../assets/icon/comment/comment.png"
  5384. alt=""
  5385. />
  5386. </div>
  5387. <div>{{ w.commentCount }}</div>
  5388. </div>
  5389. </div>
  5390. </div>
  5391. </div>
  5392. </div>
  5393. <div class="group_work" v-else>暂无提交作业</div>
  5394. </div>
  5395. </div>
  5396. <div
  5397. :id="'tool-' + toolIndex"
  5398. :style="{
  5399. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5400. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5401. }"
  5402. class="worksDetailBox"
  5403. v-if="
  5404. worksStudent.length &&
  5405. worksStudent[toolIndex].length > 0
  5406. "
  5407. >
  5408. <div
  5409. class="works"
  5410. style="
  5411. width: 200px;
  5412. height: 140px;
  5413. margin: 10px 10px 10px 0;
  5414. border-radius: 15px;
  5415. box-shadow: 0 0 6px 1px #dfdada;
  5416. "
  5417. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5418. :key="wIndex"
  5419. >
  5420. <!-- @click="previewImg(w.works)" -->
  5421. <div class="workImg">
  5422. <img
  5423. :src="w.works"
  5424. @click="previewImg(w.works,w)"
  5425. alt
  5426. />
  5427. <div
  5428. class="answerScore"
  5429. v-if="w.score"
  5430. @click.stop="openScore(w)"
  5431. :class="{
  5432. rightW:
  5433. w.userid == userid || tType == 1 || tType == 4,
  5434. }"
  5435. >
  5436. {{ JSON.parse(w.score).wScore }}分
  5437. </div>
  5438. <div
  5439. class="answerScore"
  5440. @click.stop="openScore(w)"
  5441. v-else-if="courseDetail.userid == userid"
  5442. :class="{
  5443. rightW:
  5444. w.userid == userid || tType == 1 || tType == 4,
  5445. }"
  5446. >
  5447. 评分
  5448. </div>
  5449. <img
  5450. class="deleteImg"
  5451. src="../../assets/deleteworks.png"
  5452. v-if="
  5453. w.userid == userid || tType == 1 || tType == 4
  5454. "
  5455. @click.stop="deleteWorks(w.wid)"
  5456. alt
  5457. />
  5458. </div>
  5459. <div class="comment" style="min-width: 200px">
  5460. <div class="worksName">
  5461. <div>{{ w.sName }}</div>
  5462. </div>
  5463. <div class="commentList">
  5464. <div class="commentList">
  5465. <div
  5466. class="commentImg"
  5467. @click="
  5468. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5469. "
  5470. >
  5471. <img
  5472. :src="w.isLikes == true ? likes : noLikes"
  5473. alt=""
  5474. />
  5475. </div>
  5476. <div>{{ w.likesCount }}</div>
  5477. </div>
  5478. <div class="commentList" style="margin-right: 15px">
  5479. <div
  5480. class="commentImg"
  5481. @click="commentOther(w, toolIndex, wIndex)"
  5482. >
  5483. <img
  5484. src="../../assets/icon/comment/comment.png"
  5485. alt=""
  5486. />
  5487. </div>
  5488. <div>{{ w.commentCount }}</div>
  5489. </div>
  5490. </div>
  5491. </div>
  5492. </div>
  5493. </div>
  5494. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5495. 未提交
  5496. </div>
  5497. <div
  5498. class="noWorksS"
  5499. v-if="noWorksS && noWorksS[toolIndex].length"
  5500. >
  5501. <div
  5502. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5503. :key="sIndex"
  5504. class="noWorksName"
  5505. >
  5506. <el-tooltip effect="dark" :content="s.student" placement="top">
  5507. <span>{{ s.student }}</span>
  5508. </el-tooltip>
  5509. </div>
  5510. </div>
  5511. </div>
  5512. <div
  5513. v-if="
  5514. tType &&
  5515. ((tType == 2 && sIsOpen == true) ||
  5516. tType == 1 ||
  5517. tType == 4) &&
  5518. tool.tool.indexOf(7) != -1
  5519. "
  5520. class="worksBox"
  5521. >
  5522. <div
  5523. class="zuoyeYulan"
  5524. v-if="
  5525. (worksStudent.length &&
  5526. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5527. "
  5528. >
  5529. <div class="worksTop">
  5530. <div>作业预览</div>
  5531. <div
  5532. class="corOpen"
  5533. @click="contract(toolIndex)"
  5534. v-if="
  5535. (isCloseList[toolIndex].isCloseBoolean) &&
  5536. isCloseList[toolIndex].isClose == 0
  5537. "
  5538. >
  5539. 折叠
  5540. </div>
  5541. <div
  5542. class="corOpen"
  5543. @click="contract(toolIndex)"
  5544. v-if="isCloseList[toolIndex].isClose == 1"
  5545. >
  5546. 展开
  5547. </div>
  5548. </div>
  5549. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5550. </div>
  5551. <div
  5552. class="group_workBox"
  5553. v-for="(g, gindex) in courseGroup.group"
  5554. :key="gindex"
  5555. >
  5556. <div class="group_box">
  5557. <div class="group_title">
  5558. <el-tooltip
  5559. class="item"
  5560. effect="light"
  5561. :content="g.name"
  5562. placement="top"
  5563. >
  5564. <div class="group_name">{{ g.name }}</div>
  5565. </el-tooltip>
  5566. </div>
  5567. <div
  5568. class="group_work"
  5569. v-if="
  5570. g.works &&
  5571. g.works.length &&
  5572. g.works[toolIndex].length
  5573. "
  5574. >
  5575. <div
  5576. class="works"
  5577. style="
  5578. width: 200px;
  5579. height: 140px;
  5580. margin: 10px 10px 10px 0;
  5581. border-radius: 15px;
  5582. box-shadow: 0 0 6px 1px #dfdada;
  5583. "
  5584. v-for="(w, wIndex) in g.works[toolIndex]"
  5585. :key="wIndex"
  5586. :class="w.type == 1 ? 'isTypeOne' : ''"
  5587. >
  5588. <div class="workImg">
  5589. <img
  5590. :src="w.works"
  5591. @click="previewImg(w.works,w)"
  5592. alt
  5593. />
  5594. <div
  5595. class="answerScore"
  5596. v-if="w.score"
  5597. @click.stop="openScore(w)"
  5598. :class="{
  5599. rightW:
  5600. w.userid == userid ||
  5601. tType == 1 ||
  5602. tType == 4,
  5603. }"
  5604. >
  5605. {{ JSON.parse(w.score).wScore }}分
  5606. </div>
  5607. <div
  5608. class="answerScore"
  5609. @click.stop="openScore(w)"
  5610. v-else-if="courseDetail.userid == userid"
  5611. :class="{
  5612. rightW:
  5613. w.userid == userid ||
  5614. tType == 1 ||
  5615. tType == 4,
  5616. }"
  5617. >
  5618. 评分
  5619. </div>
  5620. <img
  5621. class="deleteImg"
  5622. src="../../assets/deleteworks.png"
  5623. v-if="
  5624. w.userid == userid || tType == 1 || tType == 4
  5625. "
  5626. @click.stop="deleteWorks(w.wid)"
  5627. alt
  5628. />
  5629. </div>
  5630. <div class="comment" style="min-width: 200px">
  5631. <div class="worksName">
  5632. <div>{{ w.sName }}</div>
  5633. </div>
  5634. <div class="commentList">
  5635. <div class="commentList">
  5636. <div
  5637. class="commentImg"
  5638. @click="
  5639. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5640. "
  5641. >
  5642. <img
  5643. :src="w.isLikes == true ? likes : noLikes"
  5644. alt=""
  5645. />
  5646. </div>
  5647. <div>{{ w.likesCount }}</div>
  5648. </div>
  5649. <div
  5650. class="commentList"
  5651. style="margin-right: 15px"
  5652. >
  5653. <div
  5654. class="commentImg"
  5655. @click="
  5656. commentOther(
  5657. w,
  5658. toolIndex,
  5659. wIndex,
  5660. null,
  5661. g.id
  5662. )
  5663. "
  5664. >
  5665. <img
  5666. src="../../assets/icon/comment/comment.png"
  5667. alt=""
  5668. />
  5669. </div>
  5670. <div>{{ w.commentCount }}</div>
  5671. </div>
  5672. </div>
  5673. </div>
  5674. </div>
  5675. </div>
  5676. <div class="group_work" v-else>暂无提交作业</div>
  5677. </div>
  5678. </div>
  5679. <div
  5680. :id="'tool-' + toolIndex"
  5681. :style="{
  5682. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5683. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5684. }"
  5685. class="worksDetailBox"
  5686. v-if="
  5687. worksStudent.length &&
  5688. worksStudent[toolIndex].length > 0
  5689. "
  5690. >
  5691. <div
  5692. class="works"
  5693. style="
  5694. width: 200px;
  5695. height: 140px;
  5696. margin: 10px 10px 10px 0;
  5697. border-radius: 15px;
  5698. box-shadow: 0 0 6px 1px #dfdada;
  5699. "
  5700. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5701. :key="wIndex"
  5702. >
  5703. <!-- @click="previewImg(w.works)" -->
  5704. <div class="workImg">
  5705. <img
  5706. :src="w.works"
  5707. @click="previewImg(w.works,w)"
  5708. alt
  5709. />
  5710. <div
  5711. class="answerScore"
  5712. v-if="w.score"
  5713. @click.stop="openScore(w)"
  5714. :class="{
  5715. rightW:
  5716. w.userid == userid || tType == 1 || tType == 4,
  5717. }"
  5718. >
  5719. {{ JSON.parse(w.score).wScore }}分
  5720. </div>
  5721. <div
  5722. class="answerScore"
  5723. @click.stop="openScore(w)"
  5724. v-else-if="courseDetail.userid == userid"
  5725. :class="{
  5726. rightW:
  5727. w.userid == userid || tType == 1 || tType == 4,
  5728. }"
  5729. >
  5730. 评分
  5731. </div>
  5732. <img
  5733. class="deleteImg"
  5734. src="../../assets/deleteworks.png"
  5735. v-if="
  5736. w.userid == userid || tType == 1 || tType == 4
  5737. "
  5738. @click.stop="deleteWorks(w.wid)"
  5739. alt
  5740. />
  5741. </div>
  5742. <div class="comment" style="min-width: 200px">
  5743. <div class="worksName">
  5744. <div>{{ w.sName }}</div>
  5745. </div>
  5746. <div class="commentList">
  5747. <div class="commentList">
  5748. <div
  5749. class="commentImg"
  5750. @click="
  5751. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5752. "
  5753. >
  5754. <img
  5755. :src="w.isLikes == true ? likes : noLikes"
  5756. alt=""
  5757. />
  5758. </div>
  5759. <div>{{ w.likesCount }}</div>
  5760. </div>
  5761. <div class="commentList" style="margin-right: 15px">
  5762. <div
  5763. class="commentImg"
  5764. @click="commentOther(w, toolIndex, wIndex)"
  5765. >
  5766. <img
  5767. src="../../assets/icon/comment/comment.png"
  5768. alt=""
  5769. />
  5770. </div>
  5771. <div>{{ w.commentCount }}</div>
  5772. </div>
  5773. </div>
  5774. </div>
  5775. </div>
  5776. </div>
  5777. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5778. 未提交
  5779. </div>
  5780. <div
  5781. class="noWorksS"
  5782. v-if="noWorksS && noWorksS[toolIndex].length"
  5783. >
  5784. <div
  5785. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5786. :key="sIndex"
  5787. class="noWorksName"
  5788. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5789. >
  5790. <el-tooltip effect="dark" :content="s.student" placement="top">
  5791. <span>{{ s.student }}</span>
  5792. </el-tooltip>
  5793. </div>
  5794. </div>
  5795. </div>
  5796. <div
  5797. v-if="
  5798. tType &&
  5799. ((tType == 2 && sIsOpen == true) ||
  5800. tType == 1 ||
  5801. tType == 4) &&
  5802. tool.tool.indexOf(26) != -1
  5803. "
  5804. class="worksBox"
  5805. >
  5806. <div
  5807. class="zuoyeYulan"
  5808. v-if="
  5809. worksStudent.length &&
  5810. worksStudent[toolIndex].length > 0
  5811. "
  5812. >
  5813. <div class="worksTop">
  5814. <div>作业预览</div>
  5815. <div
  5816. class="corOpen"
  5817. @click="contract(toolIndex)"
  5818. v-if="
  5819. (isCloseList[toolIndex].isCloseBoolean) &&
  5820. isCloseList[toolIndex].isClose == 0
  5821. "
  5822. >
  5823. 折叠
  5824. </div>
  5825. <div
  5826. class="corOpen"
  5827. @click="contract(toolIndex)"
  5828. v-if="isCloseList[toolIndex].isClose == 1"
  5829. >
  5830. 展开
  5831. </div>
  5832. </div>
  5833. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5834. </div>
  5835. <div
  5836. :id="'tool-' + toolIndex"
  5837. :style="{
  5838. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5839. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5840. }"
  5841. class="worksDetailBox"
  5842. v-if="
  5843. worksStudent.length &&
  5844. worksStudent[toolIndex].length > 0
  5845. "
  5846. >
  5847. <div
  5848. class="works"
  5849. style="width: 240px; height: 140px; overflow: hidden"
  5850. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5851. :key="wIndex"
  5852. :class="w.type == 1 ? 'isTypeOne' : ''"
  5853. >
  5854. <div class="workImg" v-if="w.type == 0">
  5855. <img
  5856. :src="w.works"
  5857. @click="previewImg(w.works,w)"
  5858. alt
  5859. />
  5860. <img
  5861. class="deleteImg"
  5862. src="../../assets/deleteworks.png"
  5863. v-if="
  5864. w.userid == userid || tType == 1 || tType == 4
  5865. "
  5866. @click.stop="deleteWorks(w.wid)"
  5867. alt
  5868. />
  5869. </div>
  5870. <div class="workImg" v-if="w.type == 1">
  5871. <img :src="word" @click="openFile(w.works)" alt />
  5872. <img
  5873. class="deleteImg"
  5874. src="../../assets/deleteworks.png"
  5875. v-if="
  5876. w.userid == userid || tType == 1 || tType == 4
  5877. "
  5878. @click.stop="deleteWorks(w.wid)"
  5879. alt
  5880. />
  5881. </div>
  5882. <div class="worksName">
  5883. <div>{{ w.sName }}</div>
  5884. </div>
  5885. </div>
  5886. </div>
  5887. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5888. 未提交
  5889. </div>
  5890. <div
  5891. class="noWorksS"
  5892. v-if="noWorksS && noWorksS[toolIndex].length"
  5893. >
  5894. <div
  5895. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5896. :key="sIndex"
  5897. class="noWorksName"
  5898. >
  5899. <el-tooltip effect="dark" :content="s.student" placement="top">
  5900. <span>{{ s.student }}</span>
  5901. </el-tooltip>
  5902. </div>
  5903. </div>
  5904. </div>
  5905. <div
  5906. v-if="
  5907. tType &&
  5908. ((tType == 2 && sIsOpen == true) ||
  5909. tType == 1 ||
  5910. tType == 4) &&
  5911. tool.tool.indexOf(40) != -1
  5912. "
  5913. class="worksBox"
  5914. >
  5915. <div
  5916. class="zuoyeYulan"
  5917. v-if="
  5918. worksStudent.length &&
  5919. worksStudent[toolIndex].length > 0
  5920. "
  5921. >
  5922. <div class="worksTop">
  5923. <div>作业预览</div>
  5924. <div
  5925. class="corOpen"
  5926. @click="contract(toolIndex)"
  5927. v-if="
  5928. (isCloseList[toolIndex].isCloseBoolean) &&
  5929. isCloseList[toolIndex].isClose == 0
  5930. "
  5931. >
  5932. 折叠
  5933. </div>
  5934. <div
  5935. class="corOpen"
  5936. @click="contract(toolIndex)"
  5937. v-if="isCloseList[toolIndex].isClose == 1"
  5938. >
  5939. 展开
  5940. </div>
  5941. </div>
  5942. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5943. </div>
  5944. <div
  5945. :id="'tool-' + toolIndex"
  5946. :style="{
  5947. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5948. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5949. }"
  5950. class="worksDetailBox"
  5951. v-if="
  5952. worksStudent.length &&
  5953. worksStudent[toolIndex].length > 0
  5954. "
  5955. >
  5956. <div
  5957. class="works"
  5958. style="
  5959. width: 200px;
  5960. height: 140px;
  5961. margin: 10px 10px 10px 0;
  5962. border-radius: 15px;
  5963. box-shadow: 0 0 6px 1px #dfdada;
  5964. "
  5965. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5966. :key="wIndex"
  5967. :class="w.type == 1 ? 'isTypeOne' : ''"
  5968. >
  5969. <div class="workImg">
  5970. <img
  5971. src="../../assets/icon/works/noImg.png"
  5972. @click="openPj(w.works, toolIndex)"
  5973. alt
  5974. />
  5975. <img
  5976. class="deleteImg"
  5977. src="../../assets/deleteworks.png"
  5978. v-if="
  5979. w.userid == userid || tType == 1 || tType == 4
  5980. "
  5981. @click.stop="deleteWorks(w.wid)"
  5982. alt
  5983. />
  5984. </div>
  5985. <div class="comment" style="min-width: 200px">
  5986. <div class="worksName">
  5987. <div>{{ w.sName }}</div>
  5988. </div>
  5989. <div class="commentList">
  5990. <div class="commentList">
  5991. <div
  5992. class="commentImg"
  5993. @click="
  5994. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5995. "
  5996. >
  5997. <img
  5998. :src="w.isLikes == true ? likes : noLikes"
  5999. alt=""
  6000. />
  6001. </div>
  6002. <div>{{ w.likesCount }}</div>
  6003. </div>
  6004. <div class="commentList" style="margin-right: 15px">
  6005. <div
  6006. class="commentImg"
  6007. @click="commentOther(w, toolIndex, wIndex)"
  6008. >
  6009. <img
  6010. src="../../assets/icon/comment/comment.png"
  6011. alt=""
  6012. />
  6013. </div>
  6014. <div>{{ w.commentCount }}</div>
  6015. </div>
  6016. </div>
  6017. </div>
  6018. </div>
  6019. </div>
  6020. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6021. 未提交
  6022. </div>
  6023. <div
  6024. class="noWorksS"
  6025. v-if="noWorksS && noWorksS[toolIndex].length"
  6026. >
  6027. <div
  6028. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6029. :key="sIndex"
  6030. class="noWorksName"
  6031. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6032. >
  6033. <el-tooltip effect="dark" :content="s.student" placement="top">
  6034. <span>{{ s.student }}</span>
  6035. </el-tooltip>
  6036. </div>
  6037. </div>
  6038. </div>
  6039. <div
  6040. v-if="
  6041. tType &&
  6042. tType == 2 &&
  6043. !sIsOpen &&
  6044. tool.tool.indexOf(40) != -1
  6045. "
  6046. class="worksBox"
  6047. >
  6048. <div
  6049. class="zuoyeYulan"
  6050. v-if="workStudent[toolIndex].length > 0"
  6051. >
  6052. <span class="worksTitle">作业预览</span>
  6053. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6054. </div>
  6055. <div
  6056. class="worksDetailBox"
  6057. v-if="workStudent[toolIndex].length > 0"
  6058. >
  6059. <div
  6060. class="works"
  6061. style="
  6062. width: 200px;
  6063. height: 140px;
  6064. margin: 10px 10px 10px 0;
  6065. "
  6066. v-for="(w, wIndex) in workStudent[toolIndex]"
  6067. :key="wIndex"
  6068. >
  6069. <div class="workImg">
  6070. <img
  6071. src="../../assets/icon/works/noImg.png"
  6072. @click="openPj(w.works, toolIndex)"
  6073. alt
  6074. />
  6075. <img
  6076. class="deleteImg"
  6077. src="../../assets/deleteworks.png"
  6078. v-if="
  6079. w.userid == userid || tType == 1 || tType == 4
  6080. "
  6081. @click.stop="deleteWorks(w.wid)"
  6082. alt
  6083. />
  6084. </div>
  6085. <div class="worksName">
  6086. <div>{{ w.sName }}</div>
  6087. </div>
  6088. </div>
  6089. </div>
  6090. </div>
  6091. <div
  6092. v-if="
  6093. tType &&
  6094. ((tType == 2 && sIsOpen == true) ||
  6095. tType == 1 ||
  6096. tType == 4) &&
  6097. tool.tool.indexOf(41) != -1
  6098. "
  6099. >
  6100. <AnswerData2
  6101. v-if="
  6102. worksStudent.length &&
  6103. worksStudent[toolIndex].length > 0
  6104. "
  6105. :problemJson="tool.selectJson.answer"
  6106. :people="worksStudent[toolIndex]"
  6107. ></AnswerData2>
  6108. </div>
  6109. <div
  6110. v-if="
  6111. tType &&
  6112. ((tType == 2 && sIsOpen == true) ||
  6113. tType == 1 ||
  6114. tType == 4) &&
  6115. tool.tool.indexOf(41) != -1
  6116. "
  6117. class="worksBox"
  6118. >
  6119. <div
  6120. class="zuoyeYulan"
  6121. v-if="
  6122. worksStudent.length &&
  6123. worksStudent[toolIndex].length > 0
  6124. "
  6125. >
  6126. <div class="worksTop">
  6127. <div>作业预览</div>
  6128. <div
  6129. class="corOpen"
  6130. @click="contract(toolIndex)"
  6131. v-if="
  6132. (isCloseList[toolIndex].isCloseBoolean) &&
  6133. isCloseList[toolIndex].isClose == 0
  6134. "
  6135. >
  6136. 折叠
  6137. </div>
  6138. <div
  6139. class="corOpen"
  6140. @click="contract(toolIndex)"
  6141. v-if="isCloseList[toolIndex].isClose == 1"
  6142. >
  6143. 展开
  6144. </div>
  6145. </div>
  6146. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6147. </div>
  6148. <div
  6149. :id="'tool-' + toolIndex"
  6150. :style="{
  6151. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6152. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6153. }"
  6154. class="worksDetailBox"
  6155. v-if="
  6156. worksStudent.length &&
  6157. worksStudent[toolIndex].length > 0
  6158. "
  6159. >
  6160. <div
  6161. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6162. :key="wIndex"
  6163. class="isWorksName2"
  6164. @click="openXz(w, toolIndex)"
  6165. >
  6166. {{ w.sName }}
  6167. <img
  6168. class="deleteImg deleteImg2"
  6169. src="../../assets/deleteworks.png"
  6170. v-if="w.userid == userid || tType == 1 || tType == 4"
  6171. @click.stop="deleteWorks(w.wid)"
  6172. alt
  6173. />
  6174. </div>
  6175. <!-- <div
  6176. class="works"
  6177. style="
  6178. width: 200px;
  6179. height: 140px;
  6180. margin: 10px 10px 10px 0;
  6181. border-radius: 15px;
  6182. box-shadow: 0 0 6px 1px #dfdada;
  6183. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6184. :class="w.type == 5 ? 'isTypeOne' : ''">
  6185. <div class="workImg">
  6186. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6187. </div>
  6188. <div class="worksName">
  6189. <div>{{ w.sName }}</div>
  6190. </div>
  6191. </div> -->
  6192. </div>
  6193. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6194. 未提交
  6195. </div>
  6196. <div
  6197. class="noWorksS"
  6198. v-if="noWorksS && noWorksS[toolIndex].length"
  6199. >
  6200. <div
  6201. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6202. :key="sIndex"
  6203. class="noWorksName"
  6204. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6205. >
  6206. <el-tooltip effect="dark" :content="s.student" placement="top">
  6207. <span>{{ s.student }}</span>
  6208. </el-tooltip>
  6209. </div>
  6210. </div>
  6211. </div>
  6212. <div
  6213. v-if="
  6214. tType &&
  6215. tType == 2 &&
  6216. !sIsOpen &&
  6217. tool.tool.indexOf(41) != -1
  6218. "
  6219. class="worksBox"
  6220. >
  6221. <div
  6222. class="zuoyeYulan"
  6223. v-if="workStudent[toolIndex].length > 0"
  6224. >
  6225. <span class="worksTitle">作业预览</span>
  6226. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6227. </div>
  6228. <div
  6229. class="worksDetailBox"
  6230. v-if="workStudent[toolIndex].length > 0"
  6231. >
  6232. <div
  6233. class="works"
  6234. style="
  6235. width: 200px;
  6236. height: 140px;
  6237. margin: 10px 10px 10px 0;
  6238. "
  6239. v-for="(w, wIndex) in workStudent[toolIndex]"
  6240. :key="wIndex"
  6241. >
  6242. <div class="workImg">
  6243. <img
  6244. src="../../assets/icon/works/noImg.png"
  6245. @click="openXz(w, toolIndex)"
  6246. alt
  6247. />
  6248. <img
  6249. class="deleteImg"
  6250. src="../../assets/deleteworks.png"
  6251. v-if="
  6252. w.userid == userid || tType == 1 || tType == 4
  6253. "
  6254. @click.stop="deleteWorks(w.wid)"
  6255. alt
  6256. />
  6257. </div>
  6258. <div class="worksName">
  6259. <div>{{ w.sName }}</div>
  6260. </div>
  6261. </div>
  6262. </div>
  6263. </div>
  6264. <div v-if="false" class="xuan_right_box">
  6265. <div
  6266. class="tool_right_box"
  6267. v-for="(item, index) in tool.sentenceList"
  6268. :key="index"
  6269. >
  6270. <div>
  6271. <span
  6272. style="word-break: break-all; white-space: normal"
  6273. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6274. >
  6275. </div>
  6276. <div class="right_box_xuan">
  6277. <span>正确率</span>
  6278. <span>{{
  6279. (checkJson[toolIndex][index].right
  6280. ? checkJson[toolIndex][index].right
  6281. : 0) + "%"
  6282. }}</span>
  6283. </div>
  6284. <div class="right_box_xuan">
  6285. <span>答对人数</span>
  6286. <span>{{
  6287. checkJson[toolIndex][index].rightPerson.length
  6288. }}</span>
  6289. </div>
  6290. </div>
  6291. </div>
  6292. <div
  6293. v-if="
  6294. tType &&
  6295. ((tType == 2 && sIsOpen == true) ||
  6296. tType == 1 ||
  6297. tType == 4) &&
  6298. tool.tool.indexOf(47) != -1
  6299. "
  6300. >
  6301. <AnswerData
  6302. v-if="
  6303. checkJson[toolIndex].length &&
  6304. (tool.sentenceList || tool.sentenceList.length > 0)
  6305. "
  6306. :people="checkJson[toolIndex]"
  6307. ></AnswerData>
  6308. </div>
  6309. <div
  6310. v-if="
  6311. tType &&
  6312. tType == 2 &&
  6313. !sIsOpen &&
  6314. tool.tool.indexOf(47) != -1
  6315. "
  6316. class="worksBox"
  6317. >
  6318. <div
  6319. class="zuoyeYulan"
  6320. v-if="workStudent[toolIndex].length > 0"
  6321. >
  6322. <span class="worksTitle">作业预览</span>
  6323. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6324. </div>
  6325. <div
  6326. class="worksDetailBox"
  6327. v-if="workStudent[toolIndex].length > 0"
  6328. >
  6329. <div
  6330. class="works"
  6331. style="
  6332. width: 200px;
  6333. height: 140px;
  6334. margin: 10px 10px 10px 0;
  6335. "
  6336. v-for="(w, wIndex) in workStudent[toolIndex]"
  6337. :key="wIndex"
  6338. >
  6339. <!-- @click="openXz(w, toolIndex)" -->
  6340. <div class="workImg" @click="openSen(w, toolIndex)">
  6341. <img src="../../assets/icon/works/noImg.png" alt />
  6342. <img
  6343. class="deleteImg"
  6344. src="../../assets/deleteworks.png"
  6345. v-if="
  6346. w.userid == userid || tType == 1 || tType == 4
  6347. "
  6348. @click.stop="deleteWorks(w.wid)"
  6349. alt
  6350. />
  6351. </div>
  6352. <div class="worksName">
  6353. <div>
  6354. {{ w.sName }}
  6355. </div>
  6356. </div>
  6357. </div>
  6358. </div>
  6359. </div>
  6360. <div
  6361. v-if="
  6362. tType &&
  6363. ((tType == 2 && sIsOpen == true) ||
  6364. tType == 1 ||
  6365. tType == 4) &&
  6366. tool.tool.indexOf(47) != -1
  6367. "
  6368. class="worksBox"
  6369. >
  6370. <div
  6371. class="zuoyeYulan"
  6372. v-if="
  6373. worksStudent.length &&
  6374. worksStudent[toolIndex].length > 0
  6375. "
  6376. >
  6377. <div class="worksTop">
  6378. <div>作业预览</div>
  6379. <div
  6380. class="corOpen"
  6381. @click="contract(toolIndex)"
  6382. v-if="
  6383. (isCloseList[toolIndex].isCloseBoolean) &&
  6384. isCloseList[toolIndex].isClose == 0
  6385. "
  6386. >
  6387. 折叠
  6388. </div>
  6389. <div
  6390. class="corOpen"
  6391. @click="contract(toolIndex)"
  6392. v-if="isCloseList[toolIndex].isClose == 1"
  6393. >
  6394. 展开
  6395. </div>
  6396. </div>
  6397. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6398. </div>
  6399. <div
  6400. :id="'tool-' + toolIndex"
  6401. :style="{
  6402. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6403. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6404. }"
  6405. class="worksDetailBox"
  6406. v-if="
  6407. worksStudent.length &&
  6408. worksStudent[toolIndex].length > 0
  6409. "
  6410. >
  6411. <!-- @click="openXz(w, toolIndex)" -->
  6412. <div
  6413. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6414. :key="wIndex"
  6415. class="isWorksName2"
  6416. @click="openSen(w, toolIndex)"
  6417. >
  6418. {{ w.sName }}
  6419. <img
  6420. class="deleteImg deleteImg2"
  6421. src="../../assets/deleteworks.png"
  6422. v-if="w.userid == userid || tType == 1 || tType == 4"
  6423. @click.stop="deleteWorks(w.wid)"
  6424. alt
  6425. />
  6426. </div>
  6427. </div>
  6428. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6429. 未提交
  6430. </div>
  6431. <div
  6432. class="noWorksS"
  6433. v-if="noWorksS && noWorksS[toolIndex].length"
  6434. >
  6435. <div
  6436. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6437. :key="sIndex"
  6438. class="noWorksName"
  6439. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6440. >
  6441. <el-tooltip effect="dark" :content="s.student" placement="top">
  6442. <span>{{ s.student }}</span>
  6443. </el-tooltip>
  6444. </div>
  6445. </div>
  6446. </div>
  6447. <div
  6448. v-if="
  6449. tType &&
  6450. ((tType == 2 && sIsOpen == true) ||
  6451. tType == 1 ||
  6452. tType == 4) &&
  6453. tool.tool.indexOf(48) != -1
  6454. "
  6455. class="worksBox"
  6456. >
  6457. <div
  6458. class="zuoyeYulan"
  6459. v-if="
  6460. worksStudent.length &&
  6461. worksStudent[toolIndex].length > 0
  6462. "
  6463. >
  6464. <div class="worksTop">
  6465. <div>作业预览</div>
  6466. <div
  6467. class="corOpen"
  6468. @click="contract(toolIndex)"
  6469. v-if="
  6470. (isCloseList[toolIndex].isCloseBoolean) &&
  6471. isCloseList[toolIndex].isClose == 0
  6472. "
  6473. >
  6474. 折叠
  6475. </div>
  6476. <div
  6477. class="corOpen"
  6478. @click="contract(toolIndex)"
  6479. v-if="isCloseList[toolIndex].isClose == 1"
  6480. >
  6481. 展开
  6482. </div>
  6483. </div>
  6484. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6485. </div>
  6486. <div
  6487. :id="'tool-' + toolIndex"
  6488. :style="{
  6489. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6490. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6491. }"
  6492. class="worksDetailBox"
  6493. v-if="
  6494. worksStudent.length &&
  6495. worksStudent[toolIndex].length > 0
  6496. "
  6497. >
  6498. <div
  6499. class="works"
  6500. style="
  6501. width: 200px;
  6502. height: 140px;
  6503. margin: 10px 10px 10px 0;
  6504. border-radius: 15px;
  6505. box-shadow: 0 0 6px 1px #dfdada;
  6506. "
  6507. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6508. :key="wIndex"
  6509. :class="w.type == 1 ? 'isTypeOne' : ''"
  6510. >
  6511. <div class="workImg">
  6512. <img :src="word" @click="openTable(w)" alt />
  6513. <!-- @click="openFile(w.works)" -->
  6514. <div
  6515. class="answerScore"
  6516. v-if="w.score"
  6517. @click.stop="openScore(w)"
  6518. :class="{
  6519. rightW:
  6520. w.userid == userid ||
  6521. tType == 1 ||
  6522. tType == 4 ||
  6523. w.ateacher == userid,
  6524. }"
  6525. >
  6526. {{ JSON.parse(w.score).wScore }}分
  6527. </div>
  6528. <div
  6529. class="answerScore"
  6530. @click.stop="openScore(w)"
  6531. v-else-if="courseDetail.userid == userid"
  6532. :class="{
  6533. rightW:
  6534. w.userid == userid ||
  6535. tType == 1 ||
  6536. tType == 4 ||
  6537. w.ateacher == userid,
  6538. }"
  6539. >
  6540. 评分
  6541. </div>
  6542. <img
  6543. class="deleteImg"
  6544. src="../../assets/deleteworks.png"
  6545. v-if="
  6546. w.userid == userid || tType == 1 || tType == 4
  6547. "
  6548. @click.stop="deleteWorks(w.wid)"
  6549. alt
  6550. />
  6551. </div>
  6552. <div class="comment" style="min-width: 200px">
  6553. <div class="worksName">
  6554. <div>{{ w.sName }}</div>
  6555. </div>
  6556. <div class="commentList">
  6557. <div class="commentList">
  6558. <div
  6559. class="commentImg"
  6560. @click="
  6561. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6562. "
  6563. >
  6564. <img
  6565. :src="w.isLikes == true ? likes : noLikes"
  6566. alt=""
  6567. />
  6568. </div>
  6569. <div>{{ w.likesCount }}</div>
  6570. </div>
  6571. <div class="commentList" style="margin-right: 15px">
  6572. <div
  6573. class="commentImg"
  6574. @click="commentOther(w, toolIndex, wIndex)"
  6575. >
  6576. <img
  6577. src="../../assets/icon/comment/comment.png"
  6578. alt=""
  6579. />
  6580. </div>
  6581. <div>{{ w.commentCount }}</div>
  6582. </div>
  6583. </div>
  6584. </div>
  6585. </div>
  6586. </div>
  6587. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6588. 未提交
  6589. </div>
  6590. <div
  6591. class="noWorksS"
  6592. v-if="noWorksS && noWorksS[toolIndex].length"
  6593. >
  6594. <div
  6595. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6596. :key="sIndex"
  6597. class="noWorksName"
  6598. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6599. >
  6600. <el-tooltip effect="dark" :content="s.student" placement="top">
  6601. <span>{{ s.student }}</span>
  6602. </el-tooltip>
  6603. </div>
  6604. </div>
  6605. </div>
  6606. <div
  6607. v-if="
  6608. tType &&
  6609. tType == 2 &&
  6610. !sIsOpen &&
  6611. tool.tool.indexOf(48) != -1
  6612. "
  6613. class="worksBox"
  6614. >
  6615. <div
  6616. class="zuoyeYulan"
  6617. v-if="workStudent[toolIndex].length > 0"
  6618. >
  6619. <span class="worksTitle">作业预览</span>
  6620. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6621. </div>
  6622. <div
  6623. class="worksDetailBox"
  6624. v-if="workStudent[toolIndex].length > 0"
  6625. >
  6626. <div
  6627. class="works"
  6628. style="
  6629. width: 200px;
  6630. height: 140px;
  6631. margin: 10px 10px 10px 0;
  6632. box-shadow: 0 0 6px 1px #dfdada;
  6633. "
  6634. v-for="(w, wIndex) in workStudent[toolIndex]"
  6635. :key="wIndex"
  6636. >
  6637. <div class="workImg">
  6638. <img :src="word" @click="openTable(w)" alt />
  6639. <div
  6640. class="answerScore"
  6641. v-if="w.score"
  6642. @click.stop="openScore(w)"
  6643. :class="{
  6644. rightW:
  6645. w.userid == userid || tType == 1 || tType == 4,
  6646. }"
  6647. >
  6648. {{ JSON.parse(w.score).wScore }}分
  6649. </div>
  6650. <div
  6651. class="answerScore"
  6652. @click.stop="openScore(w)"
  6653. v-else-if="courseDetail.userid == userid"
  6654. :class="{
  6655. rightW:
  6656. w.userid == userid || tType == 1 || tType == 4,
  6657. }"
  6658. >
  6659. 评分
  6660. </div>
  6661. <img
  6662. class="deleteImg"
  6663. src="../../assets/deleteworks.png"
  6664. v-if="
  6665. w.userid == userid || tType == 1 || tType == 4
  6666. "
  6667. @click.stop="deleteWorks(w.wid)"
  6668. alt
  6669. />
  6670. </div>
  6671. <div class="worksName">
  6672. <div>{{ w.sName }}</div>
  6673. </div>
  6674. </div>
  6675. </div>
  6676. </div>
  6677. <div
  6678. v-if="
  6679. tType &&
  6680. ((tType == 2 && sIsOpen == true) ||
  6681. tType == 1 ||
  6682. tType == 4) &&
  6683. tool.tool.indexOf(52) != -1
  6684. "
  6685. class="worksBox"
  6686. >
  6687. <div
  6688. class="zuoyeYulan"
  6689. v-if="
  6690. worksStudent.length &&
  6691. worksStudent[toolIndex].length > 0
  6692. "
  6693. >
  6694. <div class="worksTop">
  6695. <div>作业预览</div>
  6696. <div
  6697. class="corOpen"
  6698. @click="contract(toolIndex)"
  6699. v-if="
  6700. (isCloseList[toolIndex].isCloseBoolean) &&
  6701. isCloseList[toolIndex].isClose == 0
  6702. "
  6703. >
  6704. 折叠
  6705. </div>
  6706. <div
  6707. class="corOpen"
  6708. @click="contract(toolIndex)"
  6709. v-if="isCloseList[toolIndex].isClose == 1"
  6710. >
  6711. 展开
  6712. </div>
  6713. </div>
  6714. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6715. </div>
  6716. <div
  6717. :id="'tool-' + toolIndex"
  6718. :style="{
  6719. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6720. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6721. }"
  6722. class="worksDetailBox"
  6723. v-if="
  6724. worksStudent.length &&
  6725. worksStudent[toolIndex].length > 0
  6726. "
  6727. >
  6728. <div
  6729. class="works"
  6730. style="
  6731. width: 200px;
  6732. height: 140px;
  6733. margin: 10px 10px 10px 0;
  6734. border-radius: 15px;
  6735. box-shadow: 0 0 6px 1px #dfdada;
  6736. "
  6737. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6738. :key="wIndex"
  6739. :class="w.type == 1 ? 'isTypeOne' : ''"
  6740. >
  6741. <div class="workImg">
  6742. <img :src="word" @click="openWord(w)" alt />
  6743. <!-- @click="openFile(w.works)" -->
  6744. <div
  6745. class="answerScore"
  6746. v-if="w.score"
  6747. @click.stop="openScore(w)"
  6748. :class="{
  6749. rightW:
  6750. w.userid == userid ||
  6751. tType == 1 ||
  6752. tType == 4 ||
  6753. w.ateacher == userid,
  6754. }"
  6755. >
  6756. {{ JSON.parse(w.score).wScore }}分
  6757. </div>
  6758. <div
  6759. class="answerScore"
  6760. @click.stop="openScore(w)"
  6761. v-else-if="courseDetail.userid == userid"
  6762. :class="{
  6763. rightW:
  6764. w.userid == userid ||
  6765. tType == 1 ||
  6766. tType == 4 ||
  6767. w.ateacher == userid,
  6768. }"
  6769. >
  6770. 评分
  6771. </div>
  6772. <img
  6773. class="deleteImg"
  6774. src="../../assets/deleteworks.png"
  6775. v-if="
  6776. w.userid == userid || tType == 1 || tType == 4
  6777. "
  6778. @click.stop="deleteWorks(w.wid)"
  6779. alt
  6780. />
  6781. </div>
  6782. <div class="comment" style="min-width: 200px">
  6783. <div class="worksName">
  6784. <div>{{ w.sName }}</div>
  6785. </div>
  6786. <div class="commentList">
  6787. <div class="commentList">
  6788. <div
  6789. class="commentImg"
  6790. @click="
  6791. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6792. "
  6793. >
  6794. <img
  6795. :src="w.isLikes == true ? likes : noLikes"
  6796. alt=""
  6797. />
  6798. </div>
  6799. <div>{{ w.likesCount }}</div>
  6800. </div>
  6801. <div class="commentList" style="margin-right: 15px">
  6802. <div
  6803. class="commentImg"
  6804. @click="commentOther(w, toolIndex, wIndex)"
  6805. >
  6806. <img
  6807. src="../../assets/icon/comment/comment.png"
  6808. alt=""
  6809. />
  6810. </div>
  6811. <div>{{ w.commentCount }}</div>
  6812. </div>
  6813. </div>
  6814. </div>
  6815. </div>
  6816. </div>
  6817. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6818. 未提交
  6819. </div>
  6820. <div
  6821. class="noWorksS"
  6822. v-if="noWorksS && noWorksS[toolIndex].length"
  6823. >
  6824. <div
  6825. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6826. :key="sIndex"
  6827. class="noWorksName"
  6828. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6829. >
  6830. <el-tooltip effect="dark" :content="s.student" placement="top">
  6831. <span>{{ s.student }}</span>
  6832. </el-tooltip>
  6833. </div>
  6834. </div>
  6835. </div>
  6836. <div
  6837. v-if="
  6838. tType &&
  6839. tType == 2 &&
  6840. !sIsOpen &&
  6841. tool.tool.indexOf(52) != -1
  6842. "
  6843. class="worksBox"
  6844. >
  6845. <div
  6846. class="zuoyeYulan"
  6847. v-if="workStudent[toolIndex].length > 0"
  6848. >
  6849. <span class="worksTitle">作业预览</span>
  6850. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6851. </div>
  6852. <div
  6853. class="worksDetailBox"
  6854. v-if="workStudent[toolIndex].length > 0"
  6855. >
  6856. <div
  6857. class="works"
  6858. style="
  6859. width: 200px;
  6860. height: 140px;
  6861. margin: 10px 10px 10px 0;
  6862. box-shadow: 0 0 6px 1px #dfdada;
  6863. "
  6864. v-for="(w, wIndex) in workStudent[toolIndex]"
  6865. :key="wIndex"
  6866. >
  6867. <div class="workImg">
  6868. <img :src="word" @click="openWord(w)" alt />
  6869. <div
  6870. class="answerScore"
  6871. v-if="w.score"
  6872. @click.stop="openScore(w)"
  6873. :class="{
  6874. rightW:
  6875. w.userid == userid || tType == 1 || tType == 4,
  6876. }"
  6877. >
  6878. {{ JSON.parse(w.score).wScore }}分
  6879. </div>
  6880. <div
  6881. class="answerScore"
  6882. @click.stop="openScore(w)"
  6883. v-else-if="courseDetail.userid == userid"
  6884. :class="{
  6885. rightW:
  6886. w.userid == userid || tType == 1 || tType == 4,
  6887. }"
  6888. >
  6889. 评分
  6890. </div>
  6891. <img
  6892. class="deleteImg"
  6893. src="../../assets/deleteworks.png"
  6894. v-if="
  6895. w.userid == userid || tType == 1 || tType == 4
  6896. "
  6897. @click.stop="deleteWorks(w.wid)"
  6898. alt
  6899. />
  6900. </div>
  6901. <div class="worksName">
  6902. <div>{{ w.sName }}</div>
  6903. </div>
  6904. </div>
  6905. </div>
  6906. </div>
  6907. <div
  6908. v-if="tool.tool.indexOf(49) != -1"
  6909. class="xuan_right_box"
  6910. style="margin: 0 15px 0 25px; width: 93%"
  6911. >
  6912. <div
  6913. v-if="courseDetail.userid == userid"
  6914. style="
  6915. display: flex;
  6916. justify-content: flex-end;
  6917. margin-right: 10px;
  6918. "
  6919. >
  6920. <el-button
  6921. type="primary"
  6922. size="small"
  6923. @click="addTools(49, toolIndex, taskCount)"
  6924. >分组设置</el-button
  6925. >
  6926. </div>
  6927. <div
  6928. v-if="groupStudentUid[toolIndex]"
  6929. class="group_staic_box"
  6930. >
  6931. <div
  6932. v-for="(gp, gd) in tool.groupJson.group"
  6933. :key="gd"
  6934. class="group_staic"
  6935. >
  6936. <span> {{ gp.name }}</span>
  6937. <span>
  6938. 目前人数{{
  6939. groupStudentUid[toolIndex][gd].length
  6940. }}人</span
  6941. >
  6942. </div>
  6943. </div>
  6944. </div>
  6945. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6946. <div
  6947. class="zuoyeYulan"
  6948. v-if="
  6949. worksStudent.length &&
  6950. worksStudent[toolIndex].length > 0
  6951. "
  6952. >
  6953. <span class="worksTitle">作业预览</span>
  6954. </div>
  6955. <div>
  6956. <div
  6957. class="group_workBox"
  6958. v-for="(g, gindex) in tool.groupJson.group"
  6959. :key="gindex"
  6960. >
  6961. <div
  6962. class="group_box"
  6963. v-if="
  6964. groupStudentUid[toolIndex] &&
  6965. worksStudent[toolIndex] &&
  6966. (worksStudent[toolIndex][gindex].length ||
  6967. groupStudentUid[toolIndex][gindex].indexOf(
  6968. userid
  6969. ) != -1)
  6970. "
  6971. >
  6972. <div class="group_title">
  6973. <el-tooltip
  6974. class="item"
  6975. effect="light"
  6976. :content="g.name"
  6977. placement="top"
  6978. >
  6979. <div class="group_name">{{ g.name }}</div>
  6980. </el-tooltip>
  6981. <el-button
  6982. type="primary"
  6983. v-if="
  6984. groupStudentUid[toolIndex][gindex].indexOf(
  6985. userid
  6986. ) != -1
  6987. "
  6988. @click="groupUpload(toolIndex, taskCount, gindex)"
  6989. >上传作业</el-button
  6990. >
  6991. </div>
  6992. <div class="group_work">
  6993. <div
  6994. class="works"
  6995. style="
  6996. width: 200px;
  6997. height: 140px;
  6998. margin: 10px 10px 10px 0;
  6999. border-radius: 15px;
  7000. box-shadow: 0 0 6px 1px #dfdada;
  7001. "
  7002. v-for="(w, wIndex) in worksStudent[toolIndex][
  7003. gindex
  7004. ]"
  7005. :key="wIndex"
  7006. :class="w.type == 1 ? 'isTypeOne' : ''"
  7007. >
  7008. <div class="workImg" v-if="w.type == 0">
  7009. <img
  7010. :src="w.works"
  7011. @click="previewImg(w.works,w)"
  7012. alt
  7013. />
  7014. <div
  7015. class="answerScore"
  7016. v-if="w.score"
  7017. @click.stop="openScore(w)"
  7018. :class="{
  7019. rightW:
  7020. w.userid == userid ||
  7021. tType == 1 ||
  7022. tType == 4 ||
  7023. w.ateacher == userid,
  7024. }"
  7025. >
  7026. {{ JSON.parse(w.score).wScore }}分
  7027. </div>
  7028. <div
  7029. class="answerScore"
  7030. @click.stop="openScore(w)"
  7031. v-else-if="courseDetail.userid == userid"
  7032. :class="{
  7033. rightW:
  7034. w.userid == userid ||
  7035. tType == 1 ||
  7036. tType == 4 ||
  7037. w.ateacher == userid,
  7038. }"
  7039. >
  7040. 评分
  7041. </div>
  7042. <img
  7043. class="deleteImg"
  7044. src="../../assets/deleteworks.png"
  7045. v-if="
  7046. w.userid == userid ||
  7047. tType == 1 ||
  7048. tType == 4
  7049. "
  7050. @click.stop="deleteWorks(w.wid)"
  7051. alt
  7052. />
  7053. </div>
  7054. <div class="workImg" v-if="w.type == 1">
  7055. <img
  7056. :src="word"
  7057. @click="openFile(w.works)"
  7058. alt
  7059. />
  7060. <!-- @click="openFile(w.works)" -->
  7061. <div
  7062. class="answerScore"
  7063. v-if="w.score"
  7064. @click.stop="openScore(w)"
  7065. :class="{
  7066. rightW:
  7067. w.userid == userid ||
  7068. tType == 1 ||
  7069. tType == 4 ||
  7070. w.ateacher == userid,
  7071. }"
  7072. >
  7073. {{ JSON.parse(w.score).wScore }}分
  7074. </div>
  7075. <div
  7076. class="answerScore"
  7077. @click.stop="openScore(w)"
  7078. v-else-if="courseDetail.userid == userid"
  7079. :class="{
  7080. rightW:
  7081. w.userid == userid ||
  7082. tType == 1 ||
  7083. tType == 4 ||
  7084. w.ateacher == userid,
  7085. }"
  7086. >
  7087. 评分
  7088. </div>
  7089. <img
  7090. class="deleteImg"
  7091. src="../../assets/deleteworks.png"
  7092. v-if="
  7093. w.userid == userid ||
  7094. tType == 1 ||
  7095. tType == 4
  7096. "
  7097. @click.stop="deleteWorks(w.wid)"
  7098. alt
  7099. />
  7100. </div>
  7101. <div class="workImg" v-if="w.type == 3">
  7102. <img
  7103. style="cursor: pointer"
  7104. :src="video"
  7105. @click="openVideo(w)"
  7106. alt
  7107. />
  7108. <!-- @click="openVideo(w.works)" -->
  7109. <div
  7110. class="answerScore"
  7111. v-if="w.score"
  7112. @click.stop="openScore(w)"
  7113. :class="{
  7114. rightW:
  7115. w.userid == userid ||
  7116. tType == 1 ||
  7117. tType == 4 ||
  7118. w.ateacher == userid,
  7119. }"
  7120. >
  7121. {{ JSON.parse(w.score).wScore }}分
  7122. </div>
  7123. <div
  7124. class="answerScore"
  7125. @click.stop="openScore(w)"
  7126. v-else-if="courseDetail.userid == userid"
  7127. :class="{
  7128. rightW:
  7129. w.userid == userid ||
  7130. tType == 1 ||
  7131. tType == 4 ||
  7132. w.ateacher == userid,
  7133. }"
  7134. >
  7135. 评分
  7136. </div>
  7137. <img
  7138. class="deleteImg"
  7139. src="../../assets/deleteworks.png"
  7140. v-if="
  7141. w.userid == userid ||
  7142. tType == 1 ||
  7143. tType == 4
  7144. "
  7145. @click.stop="deleteWorks(w.wid)"
  7146. alt
  7147. />
  7148. </div>
  7149. <div class="workImg" v-if="w.type == 12">
  7150. <img
  7151. style="cursor: pointer"
  7152. :src="word2"
  7153. @click="downloadFile(w.works)"
  7154. alt
  7155. />
  7156. <!-- @click="openVideo(w.works)" -->
  7157. <div
  7158. class="answerScore"
  7159. v-if="w.score"
  7160. @click.stop="openScore(w)"
  7161. :class="{
  7162. rightW:
  7163. w.userid == userid ||
  7164. tType == 1 ||
  7165. tType == 4 ||
  7166. w.ateacher == userid,
  7167. }"
  7168. >
  7169. {{ JSON.parse(w.score).wScore }}分
  7170. </div>
  7171. <div
  7172. class="answerScore"
  7173. @click.stop="openScore(w)"
  7174. v-else-if="courseDetail.userid == userid"
  7175. :class="{
  7176. rightW:
  7177. w.userid == userid ||
  7178. tType == 1 ||
  7179. tType == 4 ||
  7180. w.ateacher == userid,
  7181. }"
  7182. >
  7183. 评分
  7184. </div>
  7185. <img
  7186. class="deleteImg"
  7187. src="../../assets/deleteworks.png"
  7188. v-if="
  7189. w.userid == userid ||
  7190. tType == 1 ||
  7191. tType == 4
  7192. "
  7193. @click.stop="deleteWorks(w.wid)"
  7194. alt
  7195. />
  7196. </div>
  7197. <div class="comment" style="min-width: 200px">
  7198. <div class="worksName">
  7199. <div>{{ w.sName }}</div>
  7200. </div>
  7201. <div class="commentList">
  7202. <div class="commentList">
  7203. <div
  7204. class="commentImg"
  7205. @click="
  7206. isLikes(
  7207. w.wid,
  7208. userid,
  7209. 1,
  7210. null,
  7211. w.isLikes,
  7212. w.sName
  7213. )
  7214. "
  7215. >
  7216. <img
  7217. :src="
  7218. w.isLikes == true ? likes : noLikes
  7219. "
  7220. alt=""
  7221. />
  7222. </div>
  7223. <div>{{ w.likesCount }}</div>
  7224. </div>
  7225. <div
  7226. class="commentList"
  7227. style="margin-right: 15px"
  7228. >
  7229. <div
  7230. class="commentImg"
  7231. @click="
  7232. commentOther(
  7233. w,
  7234. toolIndex,
  7235. wIndex,
  7236. gindex
  7237. )
  7238. "
  7239. >
  7240. <img
  7241. src="../../assets/icon/comment/comment.png"
  7242. alt=""
  7243. />
  7244. </div>
  7245. <div>{{ w.commentCount }}</div>
  7246. </div>
  7247. </div>
  7248. </div>
  7249. </div>
  7250. </div>
  7251. </div>
  7252. </div>
  7253. </div>
  7254. </div>
  7255. </div>
  7256. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7257. 上传文件
  7258. <input
  7259. type="file"
  7260. accept="image/png, image/gif, image/jpeg"
  7261. style="display: none"
  7262. @change="beforeUpload1($event, 2, index)"
  7263. />
  7264. </div>-->
  7265. </div>
  7266. </div>
  7267. <!-- <div
  7268. class="vedioBox"
  7269. style="margin-top: 10px"
  7270. v-if="
  7271. courseDetail.userid == userid ||
  7272. (courseDetail.course_teacher &&
  7273. courseDetail.course_teacher.indexOf(userid) != -1)
  7274. "
  7275. :style="{
  7276. borderRadius:
  7277. !(
  7278. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7279. .toolChoose[0].tool &&
  7280. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7281. .toolChoose[0].tool.length > 0
  7282. ) &&
  7283. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7284. .taskDetail == '' &&
  7285. vChapterData[taskCount].length == 0 &&
  7286. fileC[taskCount].length == 0
  7287. ? '0 0 20px 20px'
  7288. : '20px',
  7289. }"
  7290. >
  7291. <div
  7292. class="queTop"
  7293. @click="isClose = !isClose"
  7294. style="
  7295. padding: 15px 0 15px 37px;
  7296. justify-content: space-between;
  7297. "
  7298. >
  7299. <div class="queTopTitle">新增工具</div>
  7300. <div class="queTopRight">
  7301. <div class="queTopClose" v-if="isClose == 0">
  7302. 展开
  7303. <div class="closeImg">
  7304. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7305. </div>
  7306. </div>
  7307. <div class="queTopClose" v-if="isClose == 1">
  7308. 折叠
  7309. <div class="openImg">
  7310. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7311. </div>
  7312. </div>
  7313. <el-button
  7314. style="margin: 0 30px 0 auto"
  7315. type="primary"
  7316. size="small"
  7317. v-if="isClose == 1 && checktoolArray.length > 0"
  7318. @click.stop="addToolChoose"
  7319. >确定</el-button
  7320. >
  7321. </div>
  7322. </div>
  7323. <div
  7324. class="tool_work_box"
  7325. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7326. >
  7327. <div class="tool_box">
  7328. <div class="tool_type_box">
  7329. <div class="chooseWho">
  7330. <div
  7331. :class="toolType == 0 ? 'isChooseActive' : ''"
  7332. @click="(toolType = 0), $forceUpdate()"
  7333. >
  7334. 互动类
  7335. </div>
  7336. <div
  7337. :class="toolType == 1 ? 'isChooseActive' : ''"
  7338. @click="(toolType = 1), $forceUpdate()"
  7339. >
  7340. 思维类
  7341. </div>
  7342. <div
  7343. :class="toolType == 2 ? 'isChooseActive' : ''"
  7344. @click="(toolType = 2), $forceUpdate()"
  7345. >
  7346. 测评类
  7347. </div>
  7348. <div
  7349. :class="toolType == 3 ? 'isChooseActive' : ''"
  7350. @click="(toolType = 3), $forceUpdate()"
  7351. >
  7352. 编程类
  7353. </div>
  7354. <div
  7355. :class="toolType == 5 ? 'isChooseActive' : ''"
  7356. @click="(toolType = 5), $forceUpdate()"
  7357. >
  7358. 学科类
  7359. </div>
  7360. </div>
  7361. </div>
  7362. <div>
  7363. <div class="toolSort" v-if="toolType == 0">
  7364. <div class="tool">
  7365. <div class="whiteBIcon" @click="addTools2(10)">
  7366. <img
  7367. src="../../assets/icon/thirdToolList/time.png"
  7368. alt
  7369. />
  7370. <div style="margin: 5px 0">倒计时</div>
  7371. </div>
  7372. <div class="check" @click="addTools2(10)">
  7373. <img
  7374. src="../../assets/icon/checkNo.png"
  7375. alt
  7376. v-if="checktoolArray.indexOf(10) == -1"
  7377. />
  7378. <div class="checkDiv" v-else>
  7379. <img src="../../assets/icon/checkedIs.png" alt /><span
  7380. >已选择</span
  7381. >
  7382. </div>
  7383. </div>
  7384. </div>
  7385. <div class="tool">
  7386. <div class="whiteBIcon" @click="addTools2(65)">
  7387. <img
  7388. src="../../assets/icon/firstToolList/pickPeople.png"
  7389. alt
  7390. />
  7391. <div style="margin: 5px 0">挑人</div>
  7392. </div>
  7393. <div class="check" @click="addTools2(65)">
  7394. <img
  7395. src="../../assets/icon/checkNo.png"
  7396. alt
  7397. v-if="checktoolArray.indexOf(65) == -1"
  7398. />
  7399. <div class="checkDiv" v-else>
  7400. <img src="../../assets/icon/checkedIs.png" alt /><span
  7401. >已选择</span
  7402. >
  7403. </div>
  7404. </div>
  7405. </div>
  7406. </div>
  7407. <div class="toolSort" v-if="toolType == 1">
  7408. <div class="tool">
  7409. <div class="whiteBIcon" @click="addTools2(7)">
  7410. <img
  7411. src="../../assets/icon/secondToolList/mindNetwork.png"
  7412. alt
  7413. />
  7414. <div style="margin: 5px 0">思维网格</div>
  7415. </div>
  7416. <div class="check" @click="addTools2(7)">
  7417. <img
  7418. src="../../assets/icon/checkNo.png"
  7419. alt
  7420. v-if="checktoolArray.indexOf(7) == -1"
  7421. />
  7422. <div class="checkDiv" v-else>
  7423. <img src="../../assets/icon/checkedIs.png" alt /><span
  7424. >已选择</span
  7425. >
  7426. </div>
  7427. </div>
  7428. </div>
  7429. <div class="tool">
  7430. <div class="whiteBIcon" @click="addTools2(1)">
  7431. <img
  7432. src="../../assets/icon/secondToolList/whiteBoard.png"
  7433. alt
  7434. />
  7435. <div style="margin: 5px 0">电子白板</div>
  7436. </div>
  7437. <div class="check" @click="addTools2(1)">
  7438. <img
  7439. src="../../assets/icon/checkNo.png"
  7440. alt
  7441. v-if="checktoolArray.indexOf(1) == -1"
  7442. />
  7443. <div class="checkDiv" v-else>
  7444. <img src="../../assets/icon/checkedIs.png" alt /><span
  7445. >已选择</span
  7446. >
  7447. </div>
  7448. </div>
  7449. </div>
  7450. <div class="tool">
  7451. <div class="whiteBIcon" @click="addTools2(52)">
  7452. <img
  7453. src="../../assets/icon/fourthToolList/text.png"
  7454. alt
  7455. />
  7456. <div style="margin: 5px 0">文档</div>
  7457. </div>
  7458. <div class="check" @click="addTools2(52)">
  7459. <img
  7460. src="../../assets/icon/checkNo.png"
  7461. alt
  7462. v-if="checktoolArray.indexOf(52) == -1"
  7463. />
  7464. <div class="checkDiv" v-else>
  7465. <img src="../../assets/icon/checkedIs.png" alt /><span
  7466. >已选择</span
  7467. >
  7468. </div>
  7469. </div>
  7470. </div>
  7471. <div class="tool">
  7472. <div class="whiteBIcon" @click="addTools2(3)">
  7473. <img
  7474. src="../../assets/icon/secondToolList/mindMapping.png"
  7475. alt
  7476. />
  7477. <div style="margin: 5px 0">思维导图</div>
  7478. </div>
  7479. <div class="check" @click="addTools2(3)">
  7480. <img
  7481. src="../../assets/icon/checkNo.png"
  7482. alt
  7483. v-if="checktoolArray.indexOf(3) == -1"
  7484. />
  7485. <div class="checkDiv" v-else>
  7486. <img src="../../assets/icon/checkedIs.png" alt /><span
  7487. >已选择</span
  7488. >
  7489. </div>
  7490. </div>
  7491. </div>
  7492. <div class="tool">
  7493. <div class="whiteBIcon" @click="addTools2(48)">
  7494. <img
  7495. src="../../assets/icon/fourthToolList/table.png"
  7496. alt
  7497. />
  7498. <div style="margin: 5px 0">表格</div>
  7499. </div>
  7500. <div class="check" @click="addTools2(48)">
  7501. <img
  7502. src="../../assets/icon/checkNo.png"
  7503. alt
  7504. v-if="checktoolArray.indexOf(48) == -1"
  7505. />
  7506. <div class="checkDiv" v-else>
  7507. <img src="../../assets/icon/checkedIs.png" alt /><span
  7508. >已选择</span
  7509. >
  7510. </div>
  7511. </div>
  7512. </div>
  7513. </div>
  7514. <div class="toolSort" v-if="toolType == 6">
  7515. <div v-show="tooC == 49">
  7516. <img
  7517. @click="addTools(tooC, toolIndex, taskCount)"
  7518. src="../../assets/icon/fourthToolList/group.png"
  7519. alt
  7520. />
  7521. <div style="margin: 5px 0">学生分组</div>
  7522. </div>
  7523. </div>
  7524. <div class="toolSort" v-if="toolType == 2">
  7525. <div class="tool">
  7526. <div class="whiteBIcon" @click="addTools2(16)">
  7527. <img
  7528. src="../../assets/icon/thirdToolList/work.png"
  7529. alt
  7530. />
  7531. <div style="margin: 5px 0">作业提交</div>
  7532. </div>
  7533. <div class="check" @click="addTools2(16)">
  7534. <img
  7535. src="../../assets/icon/checkNo.png"
  7536. alt
  7537. v-if="checktoolArray.indexOf(16) == -1"
  7538. />
  7539. <div class="checkDiv" v-else>
  7540. <img src="../../assets/icon/checkedIs.png" alt /><span
  7541. >已选择</span
  7542. >
  7543. </div>
  7544. </div>
  7545. </div>
  7546. <div class="tool">
  7547. <div class="whiteBIcon" @click="addTools2(50)">
  7548. <img
  7549. src="../../assets/icon/thirdToolList/plwork.png"
  7550. alt
  7551. />
  7552. <div style="margin: 5px 0">批量上传</div>
  7553. </div>
  7554. <div class="check" @click="addTools2(50)">
  7555. <img
  7556. src="../../assets/icon/checkNo.png"
  7557. alt
  7558. v-if="checktoolArray.indexOf(50) == -1"
  7559. />
  7560. <div class="checkDiv" v-else>
  7561. <img src="../../assets/icon/checkedIs.png" alt /><span
  7562. >已选择</span
  7563. >
  7564. </div>
  7565. </div>
  7566. </div>
  7567. </div>
  7568. <div class="toolSort" v-if="toolType == 3">
  7569. <div class="tool">
  7570. <div class="whiteBIcon" @click="addTools2(18)">
  7571. <img
  7572. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7573. alt
  7574. />
  7575. <div style="margin: 5px 0">训练平台</div>
  7576. </div>
  7577. <div class="check" @click="addTools2(18)">
  7578. <img
  7579. src="../../assets/icon/checkNo.png"
  7580. alt
  7581. v-if="checktoolArray.indexOf(18) == -1"
  7582. />
  7583. <div class="checkDiv" v-else>
  7584. <img src="../../assets/icon/checkedIs.png" alt /><span
  7585. >已选择</span
  7586. >
  7587. </div>
  7588. </div>
  7589. </div>
  7590. <div class="tool">
  7591. <div class="whiteBIcon" @click="addTools2(21)">
  7592. <img
  7593. src="../../assets/icon/fourthToolList/program.png"
  7594. alt
  7595. />
  7596. <div style="margin: 5px 0">AIoT Blockly</div>
  7597. </div>
  7598. <div class="check" @click="addTools2(21)">
  7599. <img
  7600. src="../../assets/icon/checkNo.png"
  7601. alt
  7602. v-if="checktoolArray.indexOf(21) == -1"
  7603. />
  7604. <div class="checkDiv" v-else>
  7605. <img src="../../assets/icon/checkedIs.png" alt /><span
  7606. >已选择</span
  7607. >
  7608. </div>
  7609. </div>
  7610. </div>
  7611. <div class="tool">
  7612. <div class="whiteBIcon" @click="addTools2(23)">
  7613. <img
  7614. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7615. alt
  7616. />
  7617. <div style="margin: 5px 0">AI Python</div>
  7618. </div>
  7619. <div class="check" @click="addTools2(23)">
  7620. <img
  7621. src="../../assets/icon/checkNo.png"
  7622. alt
  7623. v-if="checktoolArray.indexOf(23) == -1"
  7624. />
  7625. <div class="checkDiv" v-else>
  7626. <img src="../../assets/icon/checkedIs.png" alt /><span
  7627. >已选择</span
  7628. >
  7629. </div>
  7630. </div>
  7631. </div>
  7632. <div class="tool">
  7633. <div class="whiteBIcon" @click="addTools2(24)">
  7634. <img
  7635. src="../../assets/icon/fourthToolList/AIprogram.png"
  7636. alt
  7637. />
  7638. <div style="margin: 5px 0">AI Blockly</div>
  7639. </div>
  7640. <div class="check" @click="addTools2(24)">
  7641. <img
  7642. src="../../assets/icon/checkNo.png"
  7643. alt
  7644. v-if="checktoolArray.indexOf(24) == -1"
  7645. />
  7646. <div class="checkDiv" v-else>
  7647. <img src="../../assets/icon/checkedIs.png" alt /><span
  7648. >已选择</span
  7649. >
  7650. </div>
  7651. </div>
  7652. </div>
  7653. <div class="tool">
  7654. <div class="whiteBIcon" @click="addTools2(32)">
  7655. <img
  7656. src="../../assets/icon/thirdToolList/code.png"
  7657. alt
  7658. />
  7659. <div style="margin: 5px 0">源码编辑</div>
  7660. </div>
  7661. <div class="check" @click="addTools2(32)">
  7662. <img
  7663. src="../../assets/icon/checkNo.png"
  7664. alt
  7665. v-if="checktoolArray.indexOf(32) == -1"
  7666. />
  7667. <div class="checkDiv" v-else>
  7668. <img src="../../assets/icon/checkedIs.png" alt /><span
  7669. >已选择</span
  7670. >
  7671. </div>
  7672. </div>
  7673. </div>
  7674. <div class="tool">
  7675. <div class="whiteBIcon" @click="addTools2(57)">
  7676. <img
  7677. src="../../assets/icon/fourthToolList/cocopi.png"
  7678. alt
  7679. />
  7680. <div style="margin: 5px 0">CocoPi</div>
  7681. </div>
  7682. <div class="check" @click="addTools2(57)">
  7683. <img
  7684. src="../../assets/icon/checkNo.png"
  7685. alt
  7686. v-if="checktoolArray.indexOf(57) == -1"
  7687. />
  7688. <div class="checkDiv" v-else>
  7689. <img src="../../assets/icon/checkedIs.png" alt /><span
  7690. >已选择</span
  7691. >
  7692. </div>
  7693. </div>
  7694. </div>
  7695. <div class="tool">
  7696. <div class="whiteBIcon" @click="addTools2(63)">
  7697. <img
  7698. src="../../assets/icon/fourthToolList/Wood.png"
  7699. alt
  7700. />
  7701. <div style="margin: 5px 0">海龟编程</div>
  7702. </div>
  7703. <div class="check" @click="addTools2(63)">
  7704. <img
  7705. src="../../assets/icon/checkNo.png"
  7706. alt
  7707. v-if="checktoolArray.indexOf(63) == -1"
  7708. />
  7709. <div class="checkDiv" v-else>
  7710. <img src="../../assets/icon/checkedIs.png" alt /><span
  7711. >已选择</span
  7712. >
  7713. </div>
  7714. </div>
  7715. </div>
  7716. </div>
  7717. <div class="toolSort" v-if="toolType == 5">
  7718. <div class="tool">
  7719. <div class="whiteBIcon" @click="addTools2(28)">
  7720. <img
  7721. src="../../assets/icon/secondToolList/translation.png"
  7722. alt
  7723. />
  7724. <div style="margin: 5px 0">翻译</div>
  7725. </div>
  7726. <div class="check" @click="addTools2(28)">
  7727. <img
  7728. src="../../assets/icon/checkNo.png"
  7729. alt
  7730. v-if="checktoolArray.indexOf(28) == -1"
  7731. />
  7732. <div class="checkDiv" v-else>
  7733. <img src="../../assets/icon/checkedIs.png" alt /><span
  7734. >已选择</span
  7735. >
  7736. </div>
  7737. </div>
  7738. </div>
  7739. <div class="tool">
  7740. <div class="whiteBIcon" @click="addTools2(31)">
  7741. <img
  7742. src="../../assets/icon/secondToolList/networkPanel.png"
  7743. alt
  7744. />
  7745. <div style="margin: 5px 0">数字画板</div>
  7746. </div>
  7747. <div class="check" @click="addTools2(31)">
  7748. <img
  7749. src="../../assets/icon/checkNo.png"
  7750. alt
  7751. v-if="checktoolArray.indexOf(31) == -1"
  7752. />
  7753. <div class="checkDiv" v-else>
  7754. <img src="../../assets/icon/checkedIs.png" alt /><span
  7755. >已选择</span
  7756. >
  7757. </div>
  7758. </div>
  7759. </div>
  7760. <div class="tool">
  7761. <div class="whiteBIcon" @click="addTools2(39)">
  7762. <img
  7763. src="../../assets/icon/secondToolList/GeoGebra.png"
  7764. alt
  7765. />
  7766. <div style="margin: 5px 0">GeoGebra</div>
  7767. </div>
  7768. <div class="check" @click="addTools2(39)">
  7769. <img
  7770. src="../../assets/icon/checkNo.png"
  7771. alt
  7772. v-if="checktoolArray.indexOf(39) == -1"
  7773. />
  7774. <div class="checkDiv" v-else>
  7775. <img src="../../assets/icon/checkedIs.png" alt /><span
  7776. >已选择</span
  7777. >
  7778. </div>
  7779. </div>
  7780. </div>
  7781. <div class="tool">
  7782. <div class="whiteBIcon" @click="addTools2(66)">
  7783. <img
  7784. src="../../assets/icon/secondToolList/formulaEdi.png"
  7785. alt
  7786. />
  7787. <div style="margin: 5px 0">公式编辑</div>
  7788. </div>
  7789. <div class="check" @click="addTools2(66)">
  7790. <img
  7791. src="../../assets/icon/checkNo.png"
  7792. alt
  7793. v-if="checktoolArray.indexOf(66) == -1"
  7794. />
  7795. <div class="checkDiv" v-else>
  7796. <img src="../../assets/icon/checkedIs.png" alt /><span
  7797. >已选择</span
  7798. >
  7799. </div>
  7800. </div>
  7801. </div>
  7802. <div class="tool">
  7803. <div class="whiteBIcon" @click="addTools2(67)">
  7804. <img
  7805. src="../../assets/icon/secondToolList/molStr.png"
  7806. alt
  7807. />
  7808. <div style="margin: 5px 0">分子结构</div>
  7809. </div>
  7810. <div class="check" @click="addTools2(67)">
  7811. <img
  7812. src="../../assets/icon/checkNo.png"
  7813. alt
  7814. v-if="checktoolArray.indexOf(67) == -1"
  7815. />
  7816. <div class="checkDiv" v-else>
  7817. <img src="../../assets/icon/checkedIs.png" alt /><span
  7818. >已选择</span
  7819. >
  7820. </div>
  7821. </div>
  7822. </div>
  7823. <div class="tool">
  7824. <div class="whiteBIcon" @click="addTools2(68)">
  7825. <img
  7826. src="../../assets/icon/secondToolList/timeAxis.png"
  7827. alt
  7828. />
  7829. <div style="margin: 5px 0">时间轴</div>
  7830. </div>
  7831. <div class="check" @click="addTools2(68)">
  7832. <img
  7833. src="../../assets/icon/checkNo.png"
  7834. alt
  7835. v-if="checktoolArray.indexOf(68) == -1"
  7836. />
  7837. <div class="checkDiv" v-else>
  7838. <img src="../../assets/icon/checkedIs.png" alt /><span
  7839. >已选择</span
  7840. >
  7841. </div>
  7842. </div>
  7843. </div>
  7844. </div>
  7845. <div class="toolSort" v-if="toolType == 7">
  7846. <div class="tool">
  7847. <div class="whiteBIcon" @click="addTools2(40)">
  7848. <img
  7849. src="../../assets/icon/secondToolList/eval.png"
  7850. alt
  7851. />
  7852. <div style="margin: 5px 0">个人评价</div>
  7853. </div>
  7854. <div class="check" @click="addTools2(40)">
  7855. <img
  7856. src="../../assets/icon/checkNo.png"
  7857. alt
  7858. v-if="checktoolArray.indexOf(40) == -1"
  7859. />
  7860. <div class="checkDiv" v-else>
  7861. <img src="../../assets/icon/checkedIs.png" alt /><span
  7862. >已选择</span
  7863. >
  7864. </div>
  7865. </div>
  7866. </div>
  7867. </div>
  7868. <div class="toolSort" v-if="toolType == 4">
  7869. <div class="tool">
  7870. <div class="whiteBIcon" @click="addTools2(26)">
  7871. <img
  7872. src="../../assets/icon/thirdToolList/courseDesign.png"
  7873. alt
  7874. />
  7875. <div style="margin: 5px 0">课程设计</div>
  7876. </div>
  7877. <div class="check" @click="addTools2(26)">
  7878. <img
  7879. src="../../assets/icon/checkNo.png"
  7880. alt
  7881. v-if="checktoolArray.indexOf(26) == -1"
  7882. />
  7883. <div class="checkDiv" v-else>
  7884. <img src="../../assets/icon/checkedIs.png" alt /><span
  7885. >已选择</span
  7886. >
  7887. </div>
  7888. </div>
  7889. </div>
  7890. <div class="tool">
  7891. <div class="whiteBIcon" @click="addTools2(25)">
  7892. <img
  7893. src="../../assets/icon/thirdToolList/evalua.png"
  7894. alt
  7895. />
  7896. <div style="margin: 5px 0">目标管理</div>
  7897. </div>
  7898. <div class="check" @click="addTools2(25)">
  7899. <img
  7900. src="../../assets/icon/checkNo.png"
  7901. alt
  7902. v-if="checktoolArray.indexOf(25) == -1"
  7903. />
  7904. <div class="checkDiv" v-else>
  7905. <img src="../../assets/icon/checkedIs.png" alt /><span
  7906. >已选择</span
  7907. >
  7908. </div>
  7909. </div>
  7910. </div>
  7911. </div>
  7912. </div>
  7913. </div>
  7914. </div>
  7915. </div> -->
  7916. <div
  7917. class="vedioBox"
  7918. style="margin-top: 10px; border-radius: 20px"
  7919. v-if="
  7920. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7921. .eList &&
  7922. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7923. .eList.length &&
  7924. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7925. .eList.length > 0 &&
  7926. tType != 2
  7927. "
  7928. >
  7929. <div
  7930. class="queTop"
  7931. style="
  7932. font-size: 20px;
  7933. padding: 15px 0 15px 37px;
  7934. font-weight: bold;
  7935. "
  7936. >
  7937. <!-- <div class="question" style="width: 30px">
  7938. <img src="../assets/icon/toolIcon.png" alt />
  7939. </div>
  7940. <div class="queTitle">
  7941. <div>工具</div>
  7942. </div>-->
  7943. 评一评
  7944. </div>
  7945. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7946. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7947. <el-table
  7948. :data="
  7949. chapInfoList[courseType].chapterInfo[0].taskJson[
  7950. taskCount
  7951. ].eList
  7952. "
  7953. :header-cell-style="{ background: '#F0F4FA' }"
  7954. :row-class-name="tableRowClassName"
  7955. border
  7956. stripe
  7957. style="width: 100%"
  7958. >
  7959. <el-table-column
  7960. label="评价名称"
  7961. align="center"
  7962. >
  7963. <template slot-scope="scope"
  7964. ><div>{{ scope.row.value }}</div></template
  7965. >
  7966. </el-table-column>
  7967. <el-table-column
  7968. label="评价描述"
  7969. align="center"
  7970. >
  7971. <template slot-scope="scope"
  7972. ><div>
  7973. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7974. </div></template
  7975. >
  7976. </el-table-column>
  7977. <el-table-column label="目标" align="center">
  7978. <template slot-scope="scope"
  7979. ><div>
  7980. {{
  7981. scope.row.target
  7982. ? scope.row.target[scope.row.target.length - 1]
  7983. : "-"
  7984. }}
  7985. </div></template
  7986. ></el-table-column
  7987. >
  7988. </el-table>
  7989. <!-- <div
  7990. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7991. .chapterInfo[0].taskJson[taskCount].eList"
  7992. :key="eIndex"
  7993. class="elist_input_box"
  7994. >
  7995. <div style="width: 95%">
  7996. <div
  7997. style="
  7998. display: flex;
  7999. flex-direction: row;
  8000. flex-wrap: nowrap;
  8001. align-items: center;
  8002. "
  8003. >
  8004. <div style="max-width: calc(100% - 285px)">
  8005. <span>{{ eItem.value }}</span>
  8006. </div>
  8007. <div
  8008. style="
  8009. padding-left: 25px;
  8010. display: flex;
  8011. flex-direction: row;
  8012. align-items: center;
  8013. "
  8014. >
  8015. <el-rate
  8016. v-model="eItem.score"
  8017. :colors="colors"
  8018. disabled
  8019. ></el-rate>
  8020. </div>
  8021. </div>
  8022. <div class="elist_inptu_text" style="padding-left: 10px">
  8023. <span v-if="eItem.detail != ''">{{
  8024. eItem.detail
  8025. }}</span>
  8026. <span v-else style="color: #b2b1b3; font-size: 14px"
  8027. >暂无描述...</span
  8028. >
  8029. </div>
  8030. </div>
  8031. </div> -->
  8032. </div>
  8033. <div
  8034. v-if="evalua"
  8035. style="
  8036. border: 1px solid #e5e5e5;
  8037. max-width: 650px;
  8038. width: 100%;
  8039. margin-top: 20px;
  8040. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8041. "
  8042. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8043. >
  8044. <div class="e_add_top">
  8045. <div class="e_add_title" style="width: 100%">
  8046. <!-- <span>目标管理名称</span> -->
  8047. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8048. <img
  8049. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8050. src="../../assets/line.png"
  8051. class="cru_line"
  8052. style="
  8053. width: 125px;
  8054. height: 20px;
  8055. bottom: -10px;
  8056. left: 5px;
  8057. "
  8058. />
  8059. <!-- <el-input
  8060. v-model="eTitle"
  8061. placeholder="请输入名称"
  8062. @change="setMindData"
  8063. ></el-input>-->
  8064. <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>
  8065. <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>
  8066. </div>
  8067. </div>
  8068. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8069. <div class="e_add_list_pbox">
  8070. <div class="e_add_list_pbox_title">
  8071. <!-- <span class="type_title">切换模式</span> -->
  8072. <div class="type_content">
  8073. <span
  8074. :class="{ active: typeMode == 1 }"
  8075. @click="typeMode = 1"
  8076. >目标树</span
  8077. >
  8078. <span
  8079. :class="{ active: typeMode == 2 }"
  8080. @click="typeMode = 2"
  8081. >目标罗盘</span
  8082. >
  8083. <!-- <span
  8084. :class="{ active: typeMode == 3 }"
  8085. @click="typeMode = 3"
  8086. >目标看板</span
  8087. > -->
  8088. </div>
  8089. </div>
  8090. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8091. <Mind
  8092. :showBar="false"
  8093. :mindData="data"
  8094. style="width: 100%"
  8095. v-show="typeMode == 1"
  8096. ></Mind>
  8097. <Sunburst
  8098. :Josn="eJson"
  8099. :num="eJSONNum"
  8100. style="width: 100%"
  8101. v-if="typeMode == 2"
  8102. ></Sunburst>
  8103. <SeeBoard
  8104. :Josn="eJson"
  8105. :num="eJSONNum"
  8106. :ename="eTitle"
  8107. style="width: 100%"
  8108. v-if="typeMode == 3"
  8109. >
  8110. </SeeBoard>
  8111. </div>
  8112. </div>
  8113. </div>
  8114. </div>
  8115. </div>
  8116. </div>
  8117. <!-- <div
  8118. class="project_box"
  8119. style="margin-top: 15px; padding-bottom: 30px"
  8120. >
  8121. <div
  8122. style="
  8123. display: flex;
  8124. flex-wrap: nowrap;
  8125. flex-direction: column;
  8126. position: relative;
  8127. "
  8128. >
  8129. <div class="queTop">
  8130. <div class="question">
  8131. <img src="../../assets/icon/homeWork.png" alt="" />
  8132. </div>
  8133. <div class="queTitle">
  8134. <div>作业提交<span>(提交图文视频等)</span></div>
  8135. <div>:任务:{{ task.task }}</div>
  8136. </div>
  8137. </div>
  8138. <div class="ediBottom">
  8139. <div
  8140. class="addEditor"
  8141. style="margin-top: 23px"
  8142. @click="openAddWork"
  8143. v-if="!isNoHomeWork"
  8144. >
  8145. 选择文件
  8146. </div>
  8147. <div
  8148. class="addEditor"
  8149. style="margin-top: 23px"
  8150. @click="openAddWork"
  8151. v-else
  8152. >
  8153. 已提交
  8154. </div>
  8155. </div>
  8156. </div>
  8157. </div>-->
  8158. </div>
  8159. </div>
  8160. <el-dialog
  8161. title="作业提交"
  8162. :visible.sync="dialogVisible"
  8163. :append-to-body="true"
  8164. width="500px"
  8165. :before-close="handleClose"
  8166. class="dialog_change"
  8167. >
  8168. <div class="marginT">
  8169. <div>上传文件</div>
  8170. <div
  8171. class="chapter_add"
  8172. @click="addImg($event)"
  8173. v-if="studyJuri[0].cover.length == 0"
  8174. >
  8175. <div class="up_photo">
  8176. <img src="../../assets/icon/uploadImg.png" alt />
  8177. </div>
  8178. <!-- <input
  8179. type="file"
  8180. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8181. style="display: none"
  8182. @change="beforeUpload1($event, 1)"
  8183. /> -->
  8184. <input
  8185. type="file"
  8186. accept="*"
  8187. style="display: none"
  8188. @change="beforeUpload1($event, 1)"
  8189. />
  8190. <!-- <input
  8191. type="file"
  8192. accept="image/*"
  8193. capture="camera"
  8194. style="display: none"
  8195. @change="beforeUpload1($event, 1)"
  8196. /> -->
  8197. </div>
  8198. <div
  8199. class="chapter_add"
  8200. style="
  8201. display: flex;
  8202. width: 100%;
  8203. flex-direction: row;
  8204. flex-wrap: wrap;
  8205. justify-content: flex-start;
  8206. padding: 15px 0;
  8207. "
  8208. v-if="studyJuri[0].cover.length > 0"
  8209. >
  8210. <div class="upCover">
  8211. <img
  8212. :src="studyJuri[0].cover[0].url"
  8213. alt
  8214. v-if="fileType == 0"
  8215. />
  8216. <img :src="word" alt v-else-if="fileType == 1" />
  8217. <img :src="video" alt v-else-if="fileType == 2" />
  8218. <img :src="word2" alt v-else-if="fileType == 3" />
  8219. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8220. <div class="deleteWord" @click="clean(1)">
  8221. <img src="../../assets/icon/deleteWorks.png" alt />
  8222. </div>
  8223. </div>
  8224. </div>
  8225. </div>
  8226. <div
  8227. class="upload_send"
  8228. @click="addCourseWorks(taskCount)"
  8229. v-if="!proVisible"
  8230. >
  8231. 提交
  8232. </div>
  8233. </el-dialog>
  8234. </div>
  8235. </div>
  8236. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8237. <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(
  8238. '/courseDetail?userid=' +
  8239. userid +
  8240. '&oid=' +
  8241. oid +
  8242. '&org=' +
  8243. org +
  8244. '&cid=' +
  8245. classId +
  8246. '&courseId=' +
  8247. id +
  8248. '&tType=' +
  8249. tType +
  8250. '&screenType=' +
  8251. screenType
  8252. )"></classRoomHelper>
  8253. <div
  8254. class="pButton"
  8255. @click="(pzDialog = true), selectPz()"
  8256. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8257. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8258. >
  8259. <!-- 批 -->
  8260. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8261. </div>
  8262. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8263. <div class="pzTop2">
  8264. <!-- <div>评论</div>
  8265. <div @click="pzDialog = false">
  8266. <img src="../../assets/close1.png" alt="" />
  8267. </div> -->
  8268. <div class="checkbox">
  8269. <!-- <div class="check" style="font-size: 25px; position: unset">
  8270. 评论
  8271. </div> -->
  8272. <div class="cb-tabList">
  8273. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8274. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8275. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8276. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8277. </div>
  8278. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8279. <el-option label="时间降序" :value="1"></el-option>
  8280. <el-option label="时间升序" :value="2"></el-option>
  8281. <el-option label="我的评课" :value="3"></el-option>
  8282. </el-select>
  8283. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8284. </div>
  8285. </div>
  8286. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8287. <div class="pzListBox" v-if="pzList && pzList.length">
  8288. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8289. <div class="pzNavTop">
  8290. <div>评</div>
  8291. <div>
  8292. {{
  8293. pz.username && pz.username.length > 5
  8294. ? pz.username.substring(0, 5) + "..."
  8295. : pz.username
  8296. }}的评论
  8297. </div>
  8298. <div
  8299. class="pzDelete"
  8300. v-if="pz.userid == userid"
  8301. @click="deletePz(pz.id)"
  8302. >
  8303. 删除
  8304. </div>
  8305. </div>
  8306. <div
  8307. @click="checkImg(getImgList(pz.content))"
  8308. class="pzContent cont"
  8309. v-html="pz.content"
  8310. v-if="pz.type == '1'"
  8311. ></div>
  8312. <div class="pzContent" v-if="pz.type == '2'">
  8313. <audio :src="pz.content" controls="controls" ref="audio">
  8314. Your browser does not support the audio element.
  8315. </audio>
  8316. </div>
  8317. <div class="pzContent" v-if="pz.type == '3'">
  8318. <img
  8319. :src="pz.content"
  8320. style="width: 90%; margin: 0 auto; display: block"
  8321. @click="previewImg(pz.content)"
  8322. />
  8323. </div>
  8324. <div class="timeAndReply">
  8325. <div class="time">
  8326. {{ pz.time }}
  8327. </div>
  8328. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8329. </div>
  8330. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8331. <div
  8332. v-for="(h, hIndex) in pz.hfList"
  8333. :key="hIndex"
  8334. class="hfItem"
  8335. >
  8336. <div class="whoReplyWho">
  8337. <div class="hfName">{{ h.username }}</div>
  8338. <div class="hfImg">
  8339. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8340. </div>
  8341. <div class="hfName">{{ pz.username }}</div>
  8342. </div>
  8343. <div class="hfContent" v-html="h.content"></div>
  8344. <div class="hfBottom">
  8345. <div class="hfTime">{{ h.time }}</div>
  8346. <div
  8347. class="deleteHfItem"
  8348. @click="deleteReply(h.id)"
  8349. v-if="userid == h.userid"
  8350. >
  8351. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8352. </div>
  8353. </div>
  8354. </div>
  8355. </div>
  8356. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8357. <div class="replyInput">
  8358. <el-input v-model="reply[pzIndex]"></el-input>
  8359. </div>
  8360. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8361. </div> -->
  8362. </div>
  8363. </div>
  8364. <div class="noPz" v-else>
  8365. <img src="../../assets/icon/noPz.png" alt="" />
  8366. </div>
  8367. <div class="addPzButton">
  8368. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8369. 添加评论
  8370. </div>
  8371. <!-- <div class="img1">
  8372. <div @click="(addPzDialog = true), (pzType = 2)">
  8373. <img src="../../assets/audio.png" /><span>音频</span>
  8374. </div>
  8375. </div> -->
  8376. </div>
  8377. </div>
  8378. <div class="scoreList" v-if="commentTagShow==1">
  8379. <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"/>
  8380. </div>
  8381. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8382. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8383. </div>
  8384. </div>
  8385. <div
  8386. v-if="toolDialogVisible == true"
  8387. class="toolMask"
  8388. @click="toolDialogVisible = false"
  8389. ></div>
  8390. <div v-if="toolDialogVisible == true" class="addToolCss">
  8391. <div class="toolTop">
  8392. <div style="font-weight: bold">新增工具</div>
  8393. <div @click="toolDialogVisible = false">
  8394. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8395. </div>
  8396. </div>
  8397. <div class="tool_box">
  8398. <div class="tool_type_box">
  8399. <div class="chooseWho">
  8400. <div
  8401. :class="toolType == 0 ? 'isChooseActive' : ''"
  8402. @click="(toolType = 0), $forceUpdate()"
  8403. >
  8404. 互动类
  8405. </div>
  8406. <div
  8407. :class="toolType == 1 ? 'isChooseActive' : ''"
  8408. @click="(toolType = 1), $forceUpdate()"
  8409. >
  8410. 思维类
  8411. </div>
  8412. <div
  8413. :class="toolType == 2 ? 'isChooseActive' : ''"
  8414. @click="(toolType = 2), $forceUpdate()"
  8415. >
  8416. 测评类
  8417. </div>
  8418. <div
  8419. :class="toolType == 3 ? 'isChooseActive' : ''"
  8420. @click="(toolType = 3), $forceUpdate()"
  8421. >
  8422. 编程类
  8423. </div>
  8424. <div
  8425. :class="toolType == 5 ? 'isChooseActive' : ''"
  8426. @click="(toolType = 5), $forceUpdate()"
  8427. >
  8428. 学科类
  8429. </div>
  8430. </div>
  8431. </div>
  8432. <div>
  8433. <div class="toolSort" v-if="toolType == 0">
  8434. <div
  8435. class="tool"
  8436. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8437. @click="addTools2(10)"
  8438. >
  8439. <div class="whiteBIcon">
  8440. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8441. <div style="margin: 5px 0">倒计时</div>
  8442. </div>
  8443. <div class="check">
  8444. <div
  8445. v-if="checktoolArray.indexOf(10) == -1"
  8446. class="noChoose"
  8447. ></div>
  8448. <div v-else class="isChoose"></div>
  8449. </div>
  8450. </div>
  8451. <div
  8452. class="tool"
  8453. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8454. @click="addTools2(65)"
  8455. >
  8456. <div class="whiteBIcon">
  8457. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8458. <div style="margin: 5px 0">挑人</div>
  8459. </div>
  8460. <div class="check">
  8461. <div
  8462. v-if="checktoolArray.indexOf(65) == -1"
  8463. class="noChoose"
  8464. ></div>
  8465. <div v-else class="isChoose"></div>
  8466. </div>
  8467. </div>
  8468. </div>
  8469. <div class="toolSort" v-if="toolType == 1">
  8470. <div
  8471. class="tool"
  8472. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8473. @click="addTools2(7)"
  8474. >
  8475. <div class="whiteBIcon">
  8476. <img
  8477. src="../../assets/icon/secondToolList/mindNetwork.png"
  8478. alt
  8479. />
  8480. <div style="margin: 5px 0">思维网格</div>
  8481. </div>
  8482. <div class="check">
  8483. <div
  8484. v-if="checktoolArray.indexOf(7) == -1"
  8485. class="noChoose"
  8486. ></div>
  8487. <div v-else class="isChoose"></div>
  8488. </div>
  8489. </div>
  8490. <div
  8491. class="tool"
  8492. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8493. @click="addTools2(1)"
  8494. >
  8495. <div class="whiteBIcon">
  8496. <img
  8497. src="../../assets/icon/secondToolList/whiteBoard.png"
  8498. alt
  8499. />
  8500. <div style="margin: 5px 0">电子白板</div>
  8501. </div>
  8502. <div class="check">
  8503. <div
  8504. v-if="checktoolArray.indexOf(1) == -1"
  8505. class="noChoose"
  8506. ></div>
  8507. <div v-else class="isChoose"></div>
  8508. </div>
  8509. </div>
  8510. <div
  8511. class="tool"
  8512. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8513. @click="addTools2(52)"
  8514. >
  8515. <div class="whiteBIcon">
  8516. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8517. <div style="margin: 5px 0">文档</div>
  8518. </div>
  8519. <div class="check">
  8520. <div
  8521. v-if="checktoolArray.indexOf(52) == -1"
  8522. class="noChoose"
  8523. ></div>
  8524. <div v-else class="isChoose"></div>
  8525. </div>
  8526. </div>
  8527. <div
  8528. class="tool"
  8529. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8530. @click="addTools2(3)"
  8531. >
  8532. <div class="whiteBIcon">
  8533. <img
  8534. src="../../assets/icon/secondToolList/mindMapping.png"
  8535. alt
  8536. />
  8537. <div style="margin: 5px 0">思维导图</div>
  8538. </div>
  8539. <div class="check">
  8540. <div
  8541. v-if="checktoolArray.indexOf(3) == -1"
  8542. class="noChoose"
  8543. ></div>
  8544. <div v-else class="isChoose"></div>
  8545. </div>
  8546. </div>
  8547. <div
  8548. class="tool"
  8549. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8550. @click="addTools2(48)"
  8551. >
  8552. <div class="whiteBIcon">
  8553. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8554. <div style="margin: 5px 0">表格</div>
  8555. </div>
  8556. <div class="check">
  8557. <div
  8558. v-if="checktoolArray.indexOf(48) == -1"
  8559. class="noChoose"
  8560. ></div>
  8561. <div v-else class="isChoose"></div>
  8562. </div>
  8563. </div>
  8564. </div>
  8565. <div class="toolSort" v-if="toolType == 6">
  8566. <div v-show="tooC == 49">
  8567. <img
  8568. @click="addTools(tooC, toolIndex, taskCount)"
  8569. src="../../assets/icon/fourthToolList/group.png"
  8570. alt
  8571. />
  8572. <div style="margin: 5px 0">学生分组</div>
  8573. </div>
  8574. </div>
  8575. <div class="toolSort" v-if="toolType == 2">
  8576. <div
  8577. class="tool"
  8578. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8579. @click="addTools2(16)"
  8580. >
  8581. <div class="whiteBIcon">
  8582. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8583. <div style="margin: 5px 0">作业提交</div>
  8584. </div>
  8585. <div class="check">
  8586. <div
  8587. v-if="checktoolArray.indexOf(16) == -1"
  8588. class="noChoose"
  8589. ></div>
  8590. <div v-else class="isChoose"></div>
  8591. </div>
  8592. </div>
  8593. <div
  8594. class="tool"
  8595. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8596. @click="addTools2(50)"
  8597. >
  8598. <div class="whiteBIcon">
  8599. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8600. <div style="margin: 5px 0">批量上传</div>
  8601. </div>
  8602. <div class="check">
  8603. <div
  8604. v-if="checktoolArray.indexOf(50) == -1"
  8605. class="noChoose"
  8606. ></div>
  8607. <div v-else class="isChoose"></div>
  8608. </div>
  8609. </div>
  8610. </div>
  8611. <div class="toolSort" v-if="toolType == 3">
  8612. <div
  8613. class="tool"
  8614. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8615. @click="addTools2(18)"
  8616. >
  8617. <div class="whiteBIcon">
  8618. <img
  8619. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8620. alt
  8621. />
  8622. <div style="margin: 5px 0">训练平台</div>
  8623. </div>
  8624. <div class="check">
  8625. <div
  8626. v-if="checktoolArray.indexOf(18) == -1"
  8627. class="noChoose"
  8628. ></div>
  8629. <div v-else class="isChoose"></div>
  8630. </div>
  8631. </div>
  8632. <div
  8633. class="tool"
  8634. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8635. @click="addTools2(21)"
  8636. >
  8637. <div class="whiteBIcon">
  8638. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8639. <div style="margin: 5px 0">AIoT Blockly</div>
  8640. </div>
  8641. <div class="check">
  8642. <div
  8643. v-if="checktoolArray.indexOf(21) == -1"
  8644. class="noChoose"
  8645. ></div>
  8646. <div v-else class="isChoose"></div>
  8647. </div>
  8648. </div>
  8649. <div
  8650. class="tool"
  8651. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8652. @click="addTools2(23)"
  8653. >
  8654. <div class="whiteBIcon">
  8655. <img
  8656. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8657. alt
  8658. />
  8659. <div style="margin: 5px 0">AI Python</div>
  8660. </div>
  8661. <div class="check">
  8662. <div
  8663. v-if="checktoolArray.indexOf(23) == -1"
  8664. class="noChoose"
  8665. ></div>
  8666. <div v-else class="isChoose"></div>
  8667. </div>
  8668. </div>
  8669. <div
  8670. class="tool"
  8671. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8672. @click="addTools2(24)"
  8673. >
  8674. <div class="whiteBIcon">
  8675. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8676. <div style="margin: 5px 0">AI Blockly</div>
  8677. </div>
  8678. <div class="check">
  8679. <div
  8680. v-if="checktoolArray.indexOf(24) == -1"
  8681. class="noChoose"
  8682. ></div>
  8683. <div v-else class="isChoose"></div>
  8684. </div>
  8685. </div>
  8686. <div
  8687. class="tool"
  8688. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8689. @click="addTools2(32)"
  8690. >
  8691. <div class="whiteBIcon">
  8692. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8693. <div style="margin: 5px 0">源码编辑</div>
  8694. </div>
  8695. <div class="check">
  8696. <div
  8697. v-if="checktoolArray.indexOf(32) == -1"
  8698. class="noChoose"
  8699. ></div>
  8700. <div v-else class="isChoose"></div>
  8701. </div>
  8702. </div>
  8703. <div
  8704. class="tool"
  8705. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8706. @click="addTools2(57)"
  8707. >
  8708. <div class="whiteBIcon">
  8709. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8710. <div style="margin: 5px 0">CocoPi</div>
  8711. </div>
  8712. <div class="check">
  8713. <div
  8714. v-if="checktoolArray.indexOf(57) == -1"
  8715. class="noChoose"
  8716. ></div>
  8717. <div v-else class="isChoose"></div>
  8718. </div>
  8719. </div>
  8720. <div
  8721. class="tool"
  8722. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8723. @click="addTools2(63)"
  8724. >
  8725. <div class="whiteBIcon">
  8726. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8727. <div style="margin: 5px 0">海龟编程</div>
  8728. </div>
  8729. <div class="check">
  8730. <div
  8731. v-if="checktoolArray.indexOf(63) == -1"
  8732. class="noChoose"
  8733. ></div>
  8734. <div v-else class="isChoose"></div>
  8735. </div>
  8736. </div>
  8737. <div
  8738. class="tool"
  8739. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8740. @click="addTools2(71)"
  8741. >
  8742. <div class="whiteBIcon">
  8743. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  8744. <div style="margin: 5px 0">AI智能体</div>
  8745. </div>
  8746. <div class="check">
  8747. <div
  8748. v-if="checktoolArray.indexOf(71) == -1"
  8749. class="noChoose"
  8750. ></div>
  8751. <div v-else class="isChoose"></div>
  8752. </div>
  8753. </div>
  8754. </div>
  8755. <div class="toolSort" v-if="toolType == 7">
  8756. <div
  8757. class="tool"
  8758. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8759. @click="addTools2(40)"
  8760. >
  8761. <div class="whiteBIcon">
  8762. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8763. <div style="margin: 5px 0">个人评价</div>
  8764. </div>
  8765. <div class="check">
  8766. <div
  8767. v-if="checktoolArray.indexOf(40) == -1"
  8768. class="noChoose"
  8769. ></div>
  8770. <div v-else class="isChoose"></div>
  8771. </div>
  8772. </div>
  8773. </div>
  8774. <div class="toolSort" v-if="toolType == 5">
  8775. <div
  8776. class="tool"
  8777. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8778. @click="addTools2(28)"
  8779. >
  8780. <div class="whiteBIcon">
  8781. <img
  8782. src="../../assets/icon/secondToolList/translation.png"
  8783. alt
  8784. />
  8785. <div style="margin: 5px 0">翻译</div>
  8786. </div>
  8787. <div class="check">
  8788. <div
  8789. v-if="checktoolArray.indexOf(28) == -1"
  8790. class="noChoose"
  8791. ></div>
  8792. <div v-else class="isChoose"></div>
  8793. </div>
  8794. </div>
  8795. <div
  8796. class="tool"
  8797. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8798. @click="addTools2(31)"
  8799. >
  8800. <div class="whiteBIcon">
  8801. <img
  8802. src="../../assets/icon/secondToolList/networkPanel.png"
  8803. alt
  8804. />
  8805. <div style="margin: 5px 0">数字画板</div>
  8806. </div>
  8807. <div class="check">
  8808. <div
  8809. v-if="checktoolArray.indexOf(31) == -1"
  8810. class="noChoose"
  8811. ></div>
  8812. <div v-else class="isChoose"></div>
  8813. </div>
  8814. </div>
  8815. <div
  8816. class="tool"
  8817. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8818. @click="addTools2(39)"
  8819. >
  8820. <div class="whiteBIcon">
  8821. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8822. <div style="margin: 5px 0">GeoGebra</div>
  8823. </div>
  8824. <div class="check">
  8825. <div
  8826. v-if="checktoolArray.indexOf(39) == -1"
  8827. class="noChoose"
  8828. ></div>
  8829. <div v-else class="isChoose"></div>
  8830. </div>
  8831. </div>
  8832. <div
  8833. class="tool"
  8834. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8835. @click="addTools2(66)"
  8836. >
  8837. <div class="whiteBIcon">
  8838. <img
  8839. src="../../assets/icon/secondToolList/formulaEdi.png"
  8840. alt
  8841. />
  8842. <div style="margin: 5px 0">公式编辑</div>
  8843. </div>
  8844. <div class="check">
  8845. <div
  8846. v-if="checktoolArray.indexOf(66) == -1"
  8847. class="noChoose"
  8848. ></div>
  8849. <div v-else class="isChoose"></div>
  8850. </div>
  8851. </div>
  8852. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8853. <div class="whiteBIcon" @click="addTools2(67)">
  8854. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8855. <div style="margin: 5px 0">分子结构</div>
  8856. </div>
  8857. <div class="check" @click="addTools2(67)">
  8858. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8859. <div v-else class="isChoose"></div>
  8860. </div>
  8861. </div> -->
  8862. <div
  8863. class="tool"
  8864. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8865. @click="addTools2(68)"
  8866. >
  8867. <div class="whiteBIcon">
  8868. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8869. <div style="margin: 5px 0">时间轴</div>
  8870. </div>
  8871. <div class="check">
  8872. <div
  8873. v-if="checktoolArray.indexOf(68) == -1"
  8874. class="noChoose"
  8875. ></div>
  8876. <div v-else class="isChoose"></div>
  8877. </div>
  8878. </div>
  8879. <!-- <div
  8880. class="tool"
  8881. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8882. @click="addTools2(69)"
  8883. >
  8884. <div class="whiteBIcon">
  8885. <img src="../../assets/icon/secondToolList/english.png" alt />
  8886. <div style="margin: 5px 0">英语写作</div>
  8887. </div>
  8888. <div class="check">
  8889. <div
  8890. v-if="checktoolArray.indexOf(69) == -1"
  8891. class="noChoose"
  8892. ></div>
  8893. <div v-else class="isChoose"></div>
  8894. </div>
  8895. </div> -->
  8896. </div>
  8897. <div class="toolSort" v-if="toolType == 4">
  8898. <div
  8899. class="tool"
  8900. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8901. @click="addTools2(26)"
  8902. >
  8903. <div class="whiteBIcon">
  8904. <img
  8905. src="../../assets/icon/thirdToolList/courseDesign.png"
  8906. alt
  8907. />
  8908. <div style="margin: 5px 0">课程设计</div>
  8909. </div>
  8910. <div class="check">
  8911. <div
  8912. v-if="checktoolArray.indexOf(26) == -1"
  8913. class="noChoose"
  8914. ></div>
  8915. <div v-else class="isChoose"></div>
  8916. </div>
  8917. </div>
  8918. <div
  8919. class="tool"
  8920. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8921. @click="addTools2(25)"
  8922. >
  8923. <div class="whiteBIcon">
  8924. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8925. <div style="margin: 5px 0">目标管理</div>
  8926. </div>
  8927. <div class="check">
  8928. <div
  8929. v-if="checktoolArray.indexOf(25) == -1"
  8930. class="noChoose"
  8931. ></div>
  8932. <div v-else class="isChoose"></div>
  8933. </div>
  8934. </div>
  8935. </div>
  8936. </div>
  8937. </div>
  8938. <span
  8939. slot="footer"
  8940. class="dialog-footer"
  8941. style="display: block; text-align: center; padding: 0 0 10px 0"
  8942. >
  8943. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8944. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8945. </span>
  8946. </div>
  8947. <div
  8948. v-if="replyDialogVisible == true"
  8949. class="addDialogCss"
  8950. v-el-drag-dialog
  8951. >
  8952. <div class="pzTop">
  8953. <div class="teacherPz">
  8954. <div class="teacherPzImg">
  8955. <img src="../../assets/icon/teacherPz.png" alt="" />
  8956. </div>
  8957. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8958. </div>
  8959. <div @click="replyDialogVisible = false">
  8960. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8961. </div>
  8962. </div>
  8963. <div class="addPzBox">
  8964. <!-- <div class="addPzCheck">
  8965. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8966. >文本</span
  8967. >
  8968. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8969. >音频</span
  8970. >
  8971. </div> -->
  8972. <div style="height: calc(100% - 50px)">
  8973. <editor-bar
  8974. class="binfo_input pzConText"
  8975. style="width: 100% !important; margin: 0 auto"
  8976. placeholder="请输入回复描述"
  8977. v-model="reply"
  8978. @change="change"
  8979. ></editor-bar>
  8980. </div>
  8981. <div class="addTextCss" @click="addHf">确定</div>
  8982. </div>
  8983. </div>
  8984. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8985. <div class="pzTop">
  8986. <div class="teacherPz">
  8987. <div class="teacherPzImg">
  8988. <img src="../../assets/icon/teacherPz.png" alt="" />
  8989. </div>
  8990. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8991. </div>
  8992. <div @click="addPzDialog = false">
  8993. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8994. </div>
  8995. </div>
  8996. <div class="addPzBox">
  8997. <div class="addPzCheck">
  8998. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8999. >文本</span
  9000. >
  9001. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9002. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9003. >音频</span
  9004. >
  9005. </div>
  9006. <div style="height: calc(100% - 95px)">
  9007. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9008. v-if="pzType == 1"></textarea> -->
  9009. <editor-bar
  9010. class="binfo_input pzConText"
  9011. style="width: 100% !important"
  9012. placeholder="请输入任务描述"
  9013. v-model="pzConText"
  9014. @change="change"
  9015. v-if="pzType == 1"
  9016. ></editor-bar>
  9017. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9018. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9019. <div @click="addImg($event)">
  9020. <el-button type="primary">上传图片</el-button>
  9021. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9022. @change="beforeUpload1($event, 4)" />
  9023. </div>
  9024. </div> -->
  9025. </div>
  9026. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9027. 确定
  9028. </div>
  9029. </div>
  9030. </div>
  9031. <div v-if="proVisible" class="mask">
  9032. <div class="progressBox">
  9033. <!-- <div id="closePro" class="closeCss">
  9034. <img src="../../assets/icon/close.png" alt />
  9035. </div> -->
  9036. <div class="lbox">
  9037. <img src="../../assets/loading.gif" />上传中,请稍后
  9038. </div>
  9039. <div style="margin-bottom: 10px">
  9040. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9041. </div>
  9042. <el-progress
  9043. :text-inside="true"
  9044. :stroke-width="20"
  9045. :percentage="progress"
  9046. style="width: 80%"
  9047. ></el-progress>
  9048. </div>
  9049. </div>
  9050. <div v-if="proVisible2" class="mask">
  9051. <div class="progressBox">
  9052. <div class="lbox">
  9053. <img src="../../assets/loading.gif" />上传中,请稍后
  9054. </div>
  9055. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9056. </div>
  9057. </div>
  9058. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9059. <img width="100%" :src="dialogImageUrl" alt />
  9060. </el-dialog>
  9061. <el-dialog
  9062. :title="noteName != '' ? noteName : '查看问卷'"
  9063. :visible.sync="dialogVisible5"
  9064. :append-to-body="true"
  9065. width="1000px"
  9066. :before-close="handleClose"
  9067. class="dialog_diy dialog_diy3"
  9068. >
  9069. <div>
  9070. <div
  9071. class="a_add_title"
  9072. style="
  9073. display: flex;
  9074. flex-direction: row;
  9075. align-items: center;
  9076. justify-content: center;
  9077. "
  9078. >
  9079. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9080. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9081. </div>
  9082. <div class="a_addBox">
  9083. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9084. 题目内容
  9085. </div>
  9086. <div
  9087. class="a_add_box"
  9088. v-for="(item1, index1) in askJson.askCount"
  9089. :key="index1"
  9090. >
  9091. <div class="a_add_head">
  9092. <div style="display: flex">
  9093. <span class="askIndex"> {{ index1 + 1 }}</span>
  9094. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9095. </div>
  9096. <img
  9097. v-if="askJson.askJson[index1].img"
  9098. :src="askJson.askJson[index1].img"
  9099. style="height: 300px; margin-top: 10px; max-width: 100%"
  9100. />
  9101. </div>
  9102. <div class="a_add_body">
  9103. <div class="a_add_input">
  9104. <el-radio-group
  9105. v-model="radio[index1]"
  9106. v-if="
  9107. askJson.askJson[index1].type == '1' ||
  9108. !askJson.askJson[index1].type
  9109. "
  9110. >
  9111. <el-radio
  9112. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9113. .checkList"
  9114. :key="checkIndex"
  9115. :label="checkIndex"
  9116. :disabled="isAnswer"
  9117. class="redioStyle"
  9118. ><span v-html="item2"></span
  9119. ></el-radio>
  9120. </el-radio-group>
  9121. <el-checkbox-group
  9122. v-model="radio[index1]"
  9123. v-if="askJson.askJson[index1].type == '2'"
  9124. >
  9125. <el-checkbox
  9126. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9127. .checkList"
  9128. :key="checkIndex1"
  9129. :label="checkIndex1"
  9130. :disabled="isAnswer"
  9131. class="redioStyle"
  9132. ><span v-html="item2"></span>
  9133. </el-checkbox>
  9134. </el-checkbox-group>
  9135. </div>
  9136. </div>
  9137. </div>
  9138. </div>
  9139. </div>
  9140. <span slot="footer" class="dialog-footer">
  9141. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9142. >取 消</el-button
  9143. >
  9144. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9145. >确 定</el-button
  9146. >
  9147. </span>
  9148. </el-dialog>
  9149. <el-dialog
  9150. :title="noteName != '' ? noteName : '查看问卷'"
  9151. :visible.sync="dialogVisible5Teacher"
  9152. :append-to-body="true"
  9153. width="1000px"
  9154. :before-close="handleClose"
  9155. class="dialog_diy dialog_diy3"
  9156. >
  9157. <div>
  9158. <div class="w_name">
  9159. 学生姓名:<span>{{ sStudent.student }}</span>
  9160. </div>
  9161. <div
  9162. class="a_add_title"
  9163. style="
  9164. display: flex;
  9165. flex-direction: row;
  9166. align-items: center;
  9167. justify-content: center;
  9168. "
  9169. >
  9170. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9171. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9172. </div>
  9173. <div class="a_addBox">
  9174. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9175. 题目内容
  9176. </div>
  9177. <div
  9178. class="a_add_box"
  9179. v-for="(item1, index1) in askJson.askCount"
  9180. :key="index1"
  9181. >
  9182. <div class="a_add_head">
  9183. <div style="display: flex">
  9184. <span class="askIndex">{{ index1 + 1 }}</span>
  9185. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9186. </div>
  9187. <img
  9188. v-if="askJson.askJson[index1].img"
  9189. :src="askJson.askJson[index1].img"
  9190. style="height: 300px; margin-top: 10px; max-width: 100%"
  9191. />
  9192. </div>
  9193. <div class="a_add_body">
  9194. <div class="a_add_input">
  9195. <el-radio-group
  9196. v-model="radio[index1]"
  9197. v-if="
  9198. askJson.askJson[index1].type == '1' ||
  9199. !askJson.askJson[index1].type
  9200. "
  9201. >
  9202. <el-radio
  9203. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9204. .checkList"
  9205. :key="checkIndex"
  9206. :label="checkIndex"
  9207. :disabled="isAnswer"
  9208. class="redioStyle"
  9209. ><span v-html="item2"></span
  9210. ></el-radio>
  9211. </el-radio-group>
  9212. <el-checkbox-group
  9213. v-model="radio[index1]"
  9214. v-if="askJson.askJson[index1].type == '2'"
  9215. >
  9216. <el-checkbox
  9217. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9218. .checkList"
  9219. :key="checkIndex1"
  9220. :label="checkIndex1"
  9221. :disabled="isAnswer"
  9222. class="redioStyle"
  9223. ><span v-html="item2"></span>
  9224. </el-checkbox>
  9225. </el-checkbox-group>
  9226. </div>
  9227. </div>
  9228. </div>
  9229. </div>
  9230. </div>
  9231. <span slot="footer" class="dialog-footer">
  9232. <el-button
  9233. @click="dialogVisible5Teacher = false"
  9234. v-show="noteName == ''"
  9235. >取 消</el-button
  9236. >
  9237. <el-button
  9238. type="primary"
  9239. @click="addStudentAskTeacher"
  9240. v-show="noteName == ''"
  9241. >确 定</el-button
  9242. >
  9243. </span>
  9244. </el-dialog>
  9245. <el-dialog
  9246. :title="noteName != '' ? noteName : '查看选择题'"
  9247. :visible.sync="dialogVisibleChoice"
  9248. :append-to-body="true"
  9249. width="1000px"
  9250. :before-close="handleClose"
  9251. class="dialog_diy dialog_diy3"
  9252. >
  9253. <div>
  9254. <!-- <div class="a_add_title" style="
  9255. display: flex;
  9256. flex-direction: row;
  9257. align-items: center;
  9258. justify-content: center;
  9259. ">
  9260. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9261. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9262. </div> -->
  9263. <div class="a_addBox">
  9264. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9265. 题目内容
  9266. </div>
  9267. <div
  9268. class="a_add_box"
  9269. v-for="(item1, index1) in testJson.testCount"
  9270. :key="index1"
  9271. >
  9272. <div class="a_add_head">
  9273. <div style="display: flex">
  9274. <span class="askIndex">{{ index1 + 1 }}</span>
  9275. <div
  9276. v-if="testJson.testJson[index1].type == '1'"
  9277. style="margin-right: 5px; min-width: 70px"
  9278. >
  9279. (单选题)
  9280. </div>
  9281. <div
  9282. v-if="testJson.testJson[index1].type == '2'"
  9283. style="margin-right: 5px; min-width: 70px"
  9284. >
  9285. (多选题)
  9286. </div>
  9287. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9288. </div>
  9289. <img
  9290. v-if="testJson.testJson[index1].img"
  9291. :src="testJson.testJson[index1].img"
  9292. style="height: 300px; margin-top: 10px; max-width: 100%"
  9293. />
  9294. </div>
  9295. <div
  9296. class="timuImgBox"
  9297. v-if="
  9298. testJson.testJson[index1].timuList &&
  9299. testJson.testJson[index1].timuList.length
  9300. "
  9301. >
  9302. <div
  9303. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9304. :key="tIndex"
  9305. class="timuImg"
  9306. @click.stop="previewImg(timg.src)"
  9307. >
  9308. <img :src="timg.src" alt="" />
  9309. </div>
  9310. </div>
  9311. <div class="a_add_body">
  9312. <div class="a_add_input">
  9313. <el-radio-group
  9314. v-model="radio[index1]"
  9315. v-if="testJson.testJson[index1].type == '1'"
  9316. >
  9317. <div class="radioBox">
  9318. <el-radio
  9319. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9320. .checkList"
  9321. :key="checkIndex"
  9322. :label="checkIndex"
  9323. :disabled="isAnswer"
  9324. class="redioStyle"
  9325. >
  9326. <div
  9327. style="margin-right: 10px"
  9328. v-if="item2 && item2.imgType && item2.imgType == 1"
  9329. >
  9330. <div class="inImg" @click.stop="previewImg(item2.src)">
  9331. <img :src="item2.src" alt="" />
  9332. </div>
  9333. </div>
  9334. <span v-else v-html="item2"></span>
  9335. </el-radio>
  9336. </div>
  9337. </el-radio-group>
  9338. <el-checkbox-group
  9339. v-model="radio[index1]"
  9340. v-if="testJson.testJson[index1].type == '2'"
  9341. >
  9342. <div class="radioBox">
  9343. <el-checkbox
  9344. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9345. .checkList"
  9346. :key="checkIndex"
  9347. :label="checkIndex"
  9348. :disabled="isAnswer"
  9349. class="redioStyle"
  9350. >
  9351. <div
  9352. style="margin-right: 10px"
  9353. v-if="item2 && item2.imgType && item2.imgType == 1"
  9354. >
  9355. <div class="inImg" @click.stop="previewImg(item2.src)">
  9356. <img :src="item2.src" alt="" />
  9357. </div>
  9358. </div>
  9359. <span v-else v-html="item2"></span>
  9360. </el-checkbox>
  9361. </div>
  9362. </el-checkbox-group>
  9363. </div>
  9364. </div>
  9365. </div>
  9366. </div>
  9367. </div>
  9368. <span slot="footer" class="dialog-footer">
  9369. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9370. >取 消</el-button
  9371. >
  9372. <el-button
  9373. type="primary"
  9374. @click="addStudentTest"
  9375. v-show="noteName == ''"
  9376. >确 定</el-button
  9377. >
  9378. </span>
  9379. </el-dialog>
  9380. <el-dialog
  9381. :title="noteName != '' ? noteName : '查看选择题'"
  9382. :visible.sync="dialogVisibleChoiceTeacher"
  9383. :append-to-body="true"
  9384. width="1000px"
  9385. :before-close="handleClose"
  9386. class="dialog_diy dialog_diy3"
  9387. >
  9388. <div>
  9389. <div class="w_name">
  9390. 学生姓名:<span>{{ sStudent.student }}</span>
  9391. </div>
  9392. <div class="a_addBox">
  9393. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9394. 题目内容
  9395. </div>
  9396. <div
  9397. class="a_add_box"
  9398. v-for="(item1, index1) in testJson.testCount"
  9399. :key="index1"
  9400. >
  9401. <div class="a_add_head">
  9402. <div style="display: flex">
  9403. <span class="askIndex">{{ index1 + 1 }}</span>
  9404. <div
  9405. v-if="testJson.testJson[index1].type == '1'"
  9406. style="margin-right: 5px; min-width: 70px"
  9407. >
  9408. (单选题)
  9409. </div>
  9410. <div
  9411. v-if="testJson.testJson[index1].type == '2'"
  9412. style="margin-right: 5px; min-width: 70px"
  9413. >
  9414. (多选题)
  9415. </div>
  9416. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9417. </div>
  9418. <img
  9419. v-if="testJson.testJson[index1].img"
  9420. :src="testJson.testJson[index1].img"
  9421. style="height: 300px; margin-top: 10px; max-width: 100%"
  9422. />
  9423. </div>
  9424. <div
  9425. class="timuImgBox"
  9426. v-if="
  9427. testJson.testJson[index1].timuList &&
  9428. testJson.testJson[index1].timuList.length
  9429. "
  9430. >
  9431. <div
  9432. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9433. :key="tIndex"
  9434. class="timuImg"
  9435. @click.stop="previewImg(timg.src)"
  9436. >
  9437. <img :src="timg.src" alt="" />
  9438. </div>
  9439. </div>
  9440. <div class="a_add_body">
  9441. <div class="a_add_input">
  9442. <el-radio-group
  9443. v-model="radio[index1]"
  9444. v-if="testJson.testJson[index1].type == '1'"
  9445. >
  9446. <div class="radioBox">
  9447. <el-radio
  9448. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9449. .checkList"
  9450. :key="checkIndex"
  9451. :label="checkIndex"
  9452. :disabled="isAnswer"
  9453. class="redioStyle"
  9454. >
  9455. <div
  9456. style="margin-right: 10px"
  9457. v-if="item2 && item2.imgType && item2.imgType == 1"
  9458. >
  9459. <div class="inImg" @click.stop="previewImg(item2.src)">
  9460. <img :src="item2.src" alt="" />
  9461. </div>
  9462. </div>
  9463. <span v-else v-html="item2"></span>
  9464. </el-radio>
  9465. </div>
  9466. </el-radio-group>
  9467. <el-checkbox-group
  9468. v-model="radio[index1]"
  9469. v-if="testJson.testJson[index1].type == '2'"
  9470. >
  9471. <div class="radioBox">
  9472. <el-checkbox
  9473. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9474. .checkList"
  9475. :key="checkIndex"
  9476. :label="checkIndex"
  9477. :disabled="isAnswer"
  9478. class="redioStyle"
  9479. >
  9480. <div
  9481. style="margin-right: 10px"
  9482. v-if="item2 && item2.imgType && item2.imgType == 1"
  9483. >
  9484. <div class="inImg" @click.stop="previewImg(item2.src)">
  9485. <img :src="item2.src" alt="" />
  9486. </div>
  9487. </div>
  9488. <span v-else v-html="item2"></span>
  9489. </el-checkbox>
  9490. </div>
  9491. </el-checkbox-group>
  9492. </div>
  9493. </div>
  9494. </div>
  9495. </div>
  9496. </div>
  9497. <span slot="footer" class="dialog-footer">
  9498. <el-button
  9499. @click="dialogVisibleChoiceTeacher = false"
  9500. v-show="noteName == ''"
  9501. >取 消</el-button
  9502. >
  9503. <el-button
  9504. type="primary"
  9505. @click="addStudentTestTeacher"
  9506. v-show="noteName == ''"
  9507. >确 定</el-button
  9508. >
  9509. </span>
  9510. </el-dialog>
  9511. <el-dialog
  9512. title="查看富文本"
  9513. :visible.sync="dialogVisible1"
  9514. :append-to-body="true"
  9515. width="500px"
  9516. :before-close="handleClose"
  9517. class="dialog_diy textCss"
  9518. >
  9519. <el-form style="font-size: 20px">
  9520. <el-form-item label="文本标题" class="textTitle">
  9521. <div style="font-size: 20px">{{ text.name }}</div>
  9522. </el-form-item>
  9523. <div>富文本内容</div>
  9524. <div
  9525. v-html="text.url"
  9526. style="font-size: 18px; padding: 40px 0 0 0"
  9527. ></div>
  9528. </el-form>
  9529. <span slot="footer" class="dialog-footer">
  9530. <el-button type="primary" @click="dialogVisible1 = false"
  9531. >确定</el-button
  9532. >
  9533. </span>
  9534. </el-dialog>
  9535. <el-dialog
  9536. title="文件预览"
  9537. :visible.sync="dialogVisible3"
  9538. width="50%"
  9539. :before-close="handleClose"
  9540. class="dialog_diy"
  9541. :class="{ fullStyle: full }"
  9542. >
  9543. <div slot="title" class="header-title">
  9544. <div style="color: #fff">文件预览</div>
  9545. <div style="position: absolute; top: 19px; right: 50px">
  9546. <img
  9547. src="../../assets/full.png"
  9548. style="height: 16px; cursor: pointer"
  9549. alt=""
  9550. @click="fullTools"
  9551. />
  9552. </div>
  9553. </div>
  9554. <pdf
  9555. v-if="showPDF"
  9556. :pdfUrl="pptImgUrl"
  9557. style="width: 100%; height: 520px; overflow: auto"
  9558. :class="{ fullStyle: full }"
  9559. ></pdf>
  9560. <iframe
  9561. v-else
  9562. :src="pptImgUrl"
  9563. frameborder="0"
  9564. width="100%"
  9565. height="600"
  9566. :class="{ fullStyle: full }"
  9567. ></iframe>
  9568. </el-dialog>
  9569. <el-dialog
  9570. title="文件预览"
  9571. :visible.sync="dialogVisible6"
  9572. width="50%"
  9573. :before-close="handleClose"
  9574. class="dialog_diy"
  9575. >
  9576. <iframe
  9577. :src="pptImgUrl1"
  9578. frameborder="0"
  9579. width="100%"
  9580. height="600"
  9581. ></iframe>
  9582. </el-dialog>
  9583. <el-dialog
  9584. title="提示"
  9585. :visible.sync="dialogVisible4"
  9586. :append-to-body="true"
  9587. width="800px"
  9588. :before-close="handleClose"
  9589. class="dialog_diy notice"
  9590. >
  9591. <div>此功能暂未开放!</div>
  9592. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9593. </el-dialog>
  9594. <el-dialog
  9595. title="问答"
  9596. :visible.sync="answerDialogVisible"
  9597. :append-to-body="true"
  9598. width="800px"
  9599. :before-close="handleClose"
  9600. class="dialog_diy"
  9601. >
  9602. <div>
  9603. <div
  9604. style="
  9605. display: flex;
  9606. flex-wrap: nowrap;
  9607. flex-direction: column;
  9608. position: relative;
  9609. "
  9610. >
  9611. <div class="queTop" style="padding: 20px 0 20px 0">
  9612. <div class="question">
  9613. <img src="../../assets/icon/question.png" alt />
  9614. </div>
  9615. <div class="queTitle">
  9616. <div style="width: 90px; min-width: 90px">提问:</div>
  9617. <div>{{ answerQ }}</div>
  9618. </div>
  9619. </div>
  9620. <div class="ediBottom">
  9621. <textarea
  9622. rows="6"
  9623. class="binfo_input"
  9624. cols
  9625. style="width: 95%; height: 120px"
  9626. v-model="questionAnswer"
  9627. ></textarea>
  9628. </div>
  9629. </div>
  9630. </div>
  9631. <div slot="footer">
  9632. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9633. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9634. </div>
  9635. </el-dialog>
  9636. <el-dialog
  9637. title="问答"
  9638. :visible.sync="answerDialogVisibleTeacher"
  9639. :append-to-body="true"
  9640. width="800px"
  9641. :before-close="handleClose"
  9642. class="dialog_diy"
  9643. >
  9644. <div>
  9645. <div class="w_name">
  9646. 学生姓名:<span>{{ sStudent.student }}</span>
  9647. </div>
  9648. <div
  9649. style="
  9650. display: flex;
  9651. flex-wrap: nowrap;
  9652. flex-direction: column;
  9653. position: relative;
  9654. "
  9655. >
  9656. <div class="queTop" style="padding: 20px 0 20px 0">
  9657. <div class="question">
  9658. <img src="../../assets/icon/question.png" alt />
  9659. </div>
  9660. <div class="queTitle">
  9661. <div style="width: 90px; min-width: 90px">提问:</div>
  9662. <div>{{ answerQ }}</div>
  9663. </div>
  9664. </div>
  9665. <div class="ediBottom">
  9666. <textarea
  9667. rows="6"
  9668. class="binfo_input"
  9669. cols
  9670. style="width: 95%; height: 120px"
  9671. v-model="questionAnswer"
  9672. ></textarea>
  9673. </div>
  9674. </div>
  9675. </div>
  9676. <div slot="footer">
  9677. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9678. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9679. </div>
  9680. </el-dialog>
  9681. <el-dialog
  9682. title="倒计时"
  9683. :visible.sync="timeDialogVisible"
  9684. :append-to-body="true"
  9685. width="800px"
  9686. :before-close="handleClose"
  9687. class="dialog_diy"
  9688. >
  9689. <div>
  9690. <div style="margin-bottom: 20px; color: #999">
  9691. 提示:点击“+”或“-”修改倒计时时长。
  9692. </div>
  9693. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9694. </div>
  9695. <div slot="footer">
  9696. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9697. </div>
  9698. </el-dialog>
  9699. <el-dialog
  9700. title="权限设置"
  9701. :visible.sync="juriVisible"
  9702. :append-to-body="true"
  9703. width="400px"
  9704. :before-close="handleClose"
  9705. class="dialog_diy"
  9706. >
  9707. <div>
  9708. <div class="open_box">
  9709. <div class="switch_box">
  9710. <span>允许学生查看所有作业</span>
  9711. <el-switch
  9712. v-model="sIsOpen"
  9713. active-text=""
  9714. class="switchCss"
  9715. @change="updateSLook"
  9716. ></el-switch>
  9717. </div>
  9718. <div
  9719. class="switch_box"
  9720. v-if="
  9721. courseDetail.userid == userid ||
  9722. (courseDetail.course_teacher &&
  9723. courseDetail.course_teacher.indexOf(userid) != -1)
  9724. "
  9725. >
  9726. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9727. <span>禁止学生查看阶段</span>
  9728. <el-switch
  9729. v-model="IsLookOpen"
  9730. active-text=""
  9731. class="switchCss"
  9732. @change="updateLookOpen"
  9733. ></el-switch>
  9734. </div>
  9735. <div class="switch_box" v-if="courseDetail.userid == userid">
  9736. <span>开启跟随模式</span>
  9737. <el-switch
  9738. v-model="IsFollow"
  9739. active-text=""
  9740. class="switchCss"
  9741. @change="updateFollow"
  9742. ></el-switch>
  9743. </div>
  9744. </div>
  9745. </div>
  9746. <div slot="footer">
  9747. <el-button
  9748. style="background: #409efe; color: #fff"
  9749. @click="juriVisible = false"
  9750. >关 闭</el-button
  9751. >
  9752. </div>
  9753. </el-dialog>
  9754. <el-dialog
  9755. title="查看视频"
  9756. :visible.sync="videoVisible"
  9757. :append-to-body="true"
  9758. width="1000px"
  9759. :before-close="handleClose"
  9760. class="dialog_diy1"
  9761. >
  9762. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9763. <video-player
  9764. class="video-player vjs-custom-skin"
  9765. :playsinline="true"
  9766. :options="videoDetail"
  9767. @play="onPlayerPlay($event)"
  9768. style="width: 100%; height: 100%"
  9769. ></video-player>
  9770. </div>
  9771. <div slot="footer">
  9772. <el-button
  9773. style="background: #409efe; color: #fff"
  9774. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9775. >
  9776. 关 闭</el-button
  9777. >
  9778. </div>
  9779. </el-dialog>
  9780. <el-dialog
  9781. title="查看详情"
  9782. :visible.sync="commentDialogVisible"
  9783. :append-to-body="true"
  9784. width="800px"
  9785. :before-close="handleClose"
  9786. class="dialog_diy"
  9787. >
  9788. <div class="commentTop">
  9789. <div class="studentDetail">
  9790. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9791. <div class="nameAndTime">
  9792. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9793. <div>{{ commentDetail.time }}</div>
  9794. </div>
  9795. <div
  9796. class="returnBtn"
  9797. style="margin-left: auto; width: 80px"
  9798. v-if="
  9799. commentDetail.works &&
  9800. commentDetail.type == 0 &&
  9801. (tType == 1 || tType == 4)
  9802. "
  9803. @click="
  9804. showPicturePaint(
  9805. commentDetail.img ? commentDetail.img : commentDetail.works
  9806. )
  9807. "
  9808. >
  9809. 教师批注
  9810. </div>
  9811. </div>
  9812. <div
  9813. class="worksAnswer"
  9814. v-if="commentDetail.works && commentDetail.type == 2"
  9815. >
  9816. {{ JSON.parse(commentDetail.works)[0].answer }}
  9817. </div>
  9818. <div
  9819. class="worksAnswer"
  9820. v-if="commentDetail.works && commentDetail.type == 1"
  9821. >
  9822. <img
  9823. src="../../assets/teacherWork.png"
  9824. v-if="commentDetail.ateacher"
  9825. class="w_teachert"
  9826. />
  9827. <pdf
  9828. v-if="showPDF"
  9829. :pdfUrl="pptImgUrl"
  9830. style="width: 100%; height: 520px; overflow: auto"
  9831. :class="{ fullStyle: full }"
  9832. ></pdf>
  9833. <iframe
  9834. v-else
  9835. :src="pptImgUrl"
  9836. frameborder="0"
  9837. width="100%"
  9838. height="600"
  9839. :class="{ fullStyle: full }"
  9840. ></iframe>
  9841. </div>
  9842. <div
  9843. class="worksAnswer"
  9844. v-if="commentDetail.works && commentDetail.type == 0"
  9845. >
  9846. <img
  9847. src="../../assets/teacherWork.png"
  9848. v-if="commentDetail.ateacher"
  9849. class="w_teachert"
  9850. style="right: 105px"
  9851. />
  9852. <img
  9853. :src="commentDetail.works"
  9854. alt=""
  9855. @click="previewImg(commentDetail.works)"
  9856. />
  9857. </div>
  9858. <div
  9859. class="worksAnswer"
  9860. v-if="commentDetail.works && commentDetail.type == 3"
  9861. >
  9862. <img
  9863. src="../../assets/teacherWork.png"
  9864. v-if="commentDetail.ateacher"
  9865. class="w_teachert"
  9866. />
  9867. <video-player
  9868. class="video-player vjs-custom-skin"
  9869. :playsinline="true"
  9870. :options="videoDetail"
  9871. @play="onPlayerPlay($event)"
  9872. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9873. ></video-player>
  9874. </div>
  9875. <div
  9876. class="worksAnswer"
  9877. v-if="commentDetail.works && commentDetail.type == 10"
  9878. >
  9879. <div class="cont" v-html="commentDetail.works.text"></div>
  9880. </div>
  9881. <div
  9882. class="worksAnswer codeFileBox"
  9883. v-if="commentDetail.works && commentDetail.type == 12"
  9884. @click="downloadFile(commentDetail.works)"
  9885. >
  9886. <img src="../../assets/icon/codeFile.png" />
  9887. <div>点击下载文件</div>
  9888. </div>
  9889. <div
  9890. class="worksAnswer codeFileBox"
  9891. v-if="commentDetail.works && commentDetail.type == 15"
  9892. @click="
  9893. openCocoPi(
  9894. 57,
  9895. commentIndexJson.toolIndex,
  9896. commentDetail.userid,
  9897. commentDetail.sName
  9898. )
  9899. "
  9900. >
  9901. <img src="../../assets/icon/codeFile.png" />
  9902. <div>点击打开CocoPi</div>
  9903. </div>
  9904. <div
  9905. class="worksAnswer"
  9906. v-if="commentDetail.works && commentDetail.type == 13"
  9907. >
  9908. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9909. </div>
  9910. <div
  9911. class="worksAnswer"
  9912. v-if="commentDetail.works && commentDetail.type == 4"
  9913. >
  9914. <div class="evalCss">
  9915. <div class="nav">请选择星星进行评分</div>
  9916. <div class="middleBox" v-if="eScore.eStar">
  9917. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9918. <div class="nameAndrate">
  9919. <div>{{ e.value }}</div>
  9920. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9921. </div>
  9922. <div v-if="e.detail">{{ e.detail }}</div>
  9923. </div>
  9924. <div class="bz">
  9925. <textarea
  9926. disabled
  9927. rows="4"
  9928. class="pj"
  9929. style="
  9930. padding: 10px 5px;
  9931. width: 70%;
  9932. background: #f7f6f9;
  9933. font-size: 14px;
  9934. text-indent: 10px;
  9935. color: #000;
  9936. "
  9937. cols
  9938. v-model="eScore.eBzText"
  9939. placeholder="请输入评价内容..."
  9940. ></textarea>
  9941. </div>
  9942. </div>
  9943. </div>
  9944. </div>
  9945. <div class="comment">
  9946. <div class="commentList">
  9947. <div class="commentImg">
  9948. <img
  9949. @click="
  9950. isLikes(
  9951. commentDetail.wid,
  9952. userid,
  9953. 1,
  9954. null,
  9955. commentDetail.isLikes,
  9956. commentDetail.sName
  9957. )
  9958. "
  9959. :src="commentDetail.isLikes == true ? likes : noLikes"
  9960. alt=""
  9961. />
  9962. </div>
  9963. <div>{{ commentDetail.likesCount }}</div>
  9964. </div>
  9965. <div class="commentList">
  9966. <div class="commentImg">
  9967. <img src="../../assets/icon/comment/comment.png" alt="" />
  9968. </div>
  9969. <div>{{ commentDetail.commentCount }}</div>
  9970. </div>
  9971. </div>
  9972. <div class="drawPBox" v-if="commentDetail.img">
  9973. <span>教师批注</span>
  9974. <img
  9975. :src="commentDetail.img"
  9976. alt=""
  9977. @click="previewImg(commentDetail.img)"
  9978. />
  9979. <span
  9980. class="deleteImg"
  9981. v-if="tType == 1 || tType == 4"
  9982. @click.stop="deletePicturePaint(commentDetail.wid)"
  9983. style="
  9984. font-size: 14px;
  9985. width: auto !important;
  9986. color: #b4b4b4;
  9987. top: unset;
  9988. bottom: 0;
  9989. border: none;
  9990. padding: 0;
  9991. height: auto !important;
  9992. margin: 0;
  9993. "
  9994. >删除</span
  9995. >
  9996. </div>
  9997. </div>
  9998. <div class="commentBox">
  9999. <div class="pl">评论:</div>
  10000. <div style="max-height: 200px; overflow: auto">
  10001. <div
  10002. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10003. style="padding: 10px 0 0 0"
  10004. >
  10005. <div
  10006. class="studentDetail"
  10007. style="padding-top: 10px"
  10008. v-for="(co, coIndex) in commentDetail.commentJson"
  10009. :key="coIndex"
  10010. >
  10011. <div class="tx" style="min-width: 50px">
  10012. <img src="../../assets/avatar.png" alt="" />
  10013. </div>
  10014. <div class="plPerson">
  10015. <div class="plName">
  10016. <div>{{ co.commentPeople }}</div>
  10017. <div style="margin-left: 5px">
  10018. {{ co.commentTime }}
  10019. </div>
  10020. <div
  10021. class="deleteComment"
  10022. v-if="userid == co.userid"
  10023. @click="deleteComment(co.wid)"
  10024. >
  10025. 删除
  10026. </div>
  10027. </div>
  10028. <div class="plContent">{{ co.commentText }}</div>
  10029. </div>
  10030. </div>
  10031. </div>
  10032. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10033. </div>
  10034. </div>
  10035. <div style="margin-top: 10px">
  10036. <div class="displayBox">
  10037. <div
  10038. style="
  10039. color: #556db4;
  10040. font-size: 14px;
  10041. font-weight: bold;
  10042. padding-bottom: 10px;
  10043. "
  10044. >
  10045. 评价
  10046. </div>
  10047. <div class="easy_comment" v-if="false">
  10048. <div
  10049. v-for="(p, pIndex) in PlTextList"
  10050. :key="pIndex"
  10051. @click="fastText(p, 1)"
  10052. >
  10053. {{ p }}
  10054. </div>
  10055. </div>
  10056. </div>
  10057. <div>
  10058. <textarea
  10059. rows="3"
  10060. class="pj"
  10061. style="padding: 10px 5px"
  10062. cols
  10063. v-model="commentText"
  10064. placeholder="请输入评论"
  10065. ></textarea>
  10066. </div>
  10067. </div>
  10068. <div slot="footer">
  10069. <el-button
  10070. @click="
  10071. (commentDialogVisible = false),
  10072. (commentIndexJson = {}),
  10073. videoDetail.sources && videoDetail.sources[0]
  10074. ? (videoDetail.sources[0].src = '')
  10075. : ''
  10076. "
  10077. >取 消</el-button
  10078. >
  10079. <el-button
  10080. type="primary"
  10081. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10082. >确 定</el-button
  10083. >
  10084. </div>
  10085. </el-dialog>
  10086. <el-dialog
  10087. title="查看文档"
  10088. :visible.sync="fullDialogVisible"
  10089. :append-to-body="true"
  10090. width="100%"
  10091. :before-close="handleClose"
  10092. :show-close="false"
  10093. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10094. >
  10095. <div slot="title" class="header-title">
  10096. <div style="color: #fff">查看文档</div>
  10097. <div
  10098. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10099. style="
  10100. cursor: pointer;
  10101. position: absolute;
  10102. top: 20px;
  10103. right: 20px;
  10104. color: #fff;
  10105. "
  10106. >
  10107. 退出全屏
  10108. </div>
  10109. </div>
  10110. <div style="height: 100%;position: relative;">
  10111. <el-button
  10112. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10113. size="medium"
  10114. type="primary"
  10115. @click="
  10116. () => {
  10117. (fullDialogVisible = false),
  10118. changeSplitScreenBehavior({ code: 99 });
  10119. }
  10120. "
  10121. style="
  10122. cursor: pointer;
  10123. position: absolute;
  10124. top: 10px;
  10125. right: 20px;
  10126. color: #fff;
  10127. "
  10128. >
  10129. 退出全屏
  10130. </el-button>
  10131. <div
  10132. class="wheel"
  10133. v-if="
  10134. fulltype == 2 &&
  10135. fullUrl.indexOf(
  10136. 'https://view.officeapps.live.com/op/view.aspx?src='
  10137. ) != -1
  10138. "
  10139. style="width: 100%;height:100%; margin: 0 auto"
  10140. >
  10141. <iframe
  10142. style="width: 100%; height: 100%; border: none"
  10143. :src="fullUrl"
  10144. ></iframe>
  10145. </div>
  10146. <iframe
  10147. v-else-if="fulltype == 2"
  10148. style="width: 100%; height: 100%; border: none"
  10149. :src="fullUrl"
  10150. security="restricted"
  10151. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10152. ></iframe>
  10153. <pdf
  10154. v-else-if="fulltype == 3"
  10155. :pdfUrl="fullUrl"
  10156. style="width: 100%; height: 100%; overflow: auto"
  10157. ></pdf>
  10158. <div
  10159. class="wheel"
  10160. v-if="fulltype == 1"
  10161. style="
  10162. box-shadow: 0 0 6px 1px #f2f2f2;
  10163. height:100%;
  10164. width: 100%;
  10165. background: #f1f1f1;
  10166. "
  10167. >
  10168. <div class="title" style="width: 100%; box-sizing: border-box">
  10169. 查看文档
  10170. </div>
  10171. <el-form class="textBox" style="height: 90%">
  10172. <el-form-item class="textTitle">
  10173. <div style="font-size: 22px">
  10174. {{ fullUrl.name }}
  10175. </div>
  10176. </el-form-item>
  10177. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10178. <div
  10179. v-html="fullUrl.url"
  10180. class="textContent"
  10181. style="height: auto"
  10182. ></div>
  10183. </el-form>
  10184. </div>
  10185. </div>
  10186. <!-- <div slot="footer">
  10187. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10188. </div> -->
  10189. </el-dialog>
  10190. <el-dialog
  10191. title="个人评价"
  10192. :visible.sync="studentEvalDialogVisible"
  10193. :append-to-body="true"
  10194. width="800px"
  10195. :before-close="handleClose"
  10196. class="dialog_diy"
  10197. >
  10198. <div class="evalCss">
  10199. <div class="nav">请选择星星进行评分</div>
  10200. <div class="middleBox" v-if="eScore.eStar">
  10201. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10202. <div class="nameAndrate">
  10203. <div>{{ e.value }}</div>
  10204. <el-rate
  10205. v-model="eScore.eStar[eIndex]"
  10206. :disabled="isStar"
  10207. ></el-rate>
  10208. </div>
  10209. <div v-if="e.detail">{{ e.detail }}</div>
  10210. </div>
  10211. <div class="easy_comment" v-if="false">
  10212. <div
  10213. v-for="(p, pIndex) in PlTextList"
  10214. :key="pIndex"
  10215. @click="fastText(p, 2)"
  10216. >
  10217. {{ p }}
  10218. </div>
  10219. </div>
  10220. <div class="bz">
  10221. <textarea
  10222. :disabled="isStar"
  10223. rows="4"
  10224. class="pj"
  10225. style="
  10226. padding: 10px 5px;
  10227. width: 70%;
  10228. background: #f7f6f9;
  10229. font-size: 14px;
  10230. text-indent: 10px;
  10231. "
  10232. cols
  10233. v-model="eScore.eBzText"
  10234. placeholder="请输入评价内容..."
  10235. ></textarea>
  10236. </div>
  10237. </div>
  10238. </div>
  10239. <div slot="footer">
  10240. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10241. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10242. >确 定</el-button
  10243. >
  10244. </div>
  10245. </el-dialog>
  10246. <el-dialog
  10247. title="个人评价"
  10248. :visible.sync="studentEvalDialogVisibleTeacher"
  10249. :append-to-body="true"
  10250. width="800px"
  10251. :before-close="handleClose"
  10252. class="dialog_diy"
  10253. >
  10254. <div class="w_name">
  10255. 学生姓名:<span>{{ sStudent.student }}</span>
  10256. </div>
  10257. <div class="evalCss">
  10258. <div class="nav">请选择星星进行评分</div>
  10259. <div class="middleBox" v-if="eScore.eStar">
  10260. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10261. <div class="nameAndrate">
  10262. <div>{{ e.value }}</div>
  10263. <el-rate
  10264. v-model="eScore.eStar[eIndex]"
  10265. :disabled="isStar"
  10266. ></el-rate>
  10267. </div>
  10268. <div v-if="e.detail">{{ e.detail }}</div>
  10269. </div>
  10270. <div class="easy_comment" v-if="false">
  10271. <div
  10272. v-for="(p, pIndex) in PlTextList"
  10273. :key="pIndex"
  10274. @click="fastText(p, 2)"
  10275. >
  10276. {{ p }}
  10277. </div>
  10278. </div>
  10279. <div class="bz">
  10280. <textarea
  10281. :disabled="isStar"
  10282. rows="4"
  10283. class="pj"
  10284. style="
  10285. padding: 10px 5px;
  10286. width: 70%;
  10287. background: #f7f6f9;
  10288. font-size: 14px;
  10289. text-indent: 10px;
  10290. "
  10291. cols
  10292. v-model="eScore.eBzText"
  10293. placeholder="请输入评价内容..."
  10294. ></textarea>
  10295. </div>
  10296. </div>
  10297. </div>
  10298. <div slot="footer">
  10299. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10300. >取 消</el-button
  10301. >
  10302. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10303. >确 定</el-button
  10304. >
  10305. </div>
  10306. </el-dialog>
  10307. <el-dialog
  10308. title="选择匹配"
  10309. :visible.sync="dialogVisibleSelect"
  10310. :append-to-body="true"
  10311. width="90%"
  10312. :before-close="handleClose"
  10313. class="dialog_diy dialog_diy3"
  10314. >
  10315. <div v-if="selectJson">
  10316. <div class="select_box2">
  10317. <div class="select_box2_title">
  10318. <div>选择匹配</div>
  10319. <div>请选择对应的答案进行答题!</div>
  10320. </div>
  10321. <div class="select_box2_box">
  10322. <div class="select_box2_img">
  10323. <img
  10324. :src="selectJson.url"
  10325. @click="previewImg(selectJson.url)"
  10326. alt=""
  10327. />
  10328. </div>
  10329. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10330. <div style="padding-top: 15px">
  10331. <div class="select_answer_title" v-if="isSelect">
  10332. {{ selectAnswer.stu }}
  10333. </div>
  10334. <div class="select_answer_title" v-else>
  10335. 根据题目选择对应答案
  10336. </div>
  10337. <div
  10338. class="select_box2_answer_box"
  10339. v-for="(item2, checkIndex) in selectJson.select"
  10340. :key="checkIndex"
  10341. >
  10342. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10343. <el-select
  10344. :disabled="isSelect"
  10345. v-model="selectAnswer.answer[checkIndex]"
  10346. placeholder="请选择正确答案"
  10347. >
  10348. <el-option
  10349. v-for="(e, eIndex) in selectJson.select"
  10350. :key="eIndex"
  10351. :label="e"
  10352. :value="eIndex"
  10353. >
  10354. </el-option>
  10355. </el-select>
  10356. </div>
  10357. </div>
  10358. <div
  10359. class="rightAnswerCss"
  10360. v-if="isSelect && (tType == 1 || tType == 4)"
  10361. >
  10362. <div
  10363. v-for="(a, aIndex) in selectJson.answer"
  10364. :key="aIndex"
  10365. class="rightAnswer"
  10366. >
  10367. <div
  10368. v-if="selectAnswer.answer[aIndex] === a"
  10369. style="color: #767de1"
  10370. >
  10371. 回答正确
  10372. </div>
  10373. <div v-else>回答错误</div>
  10374. <div
  10375. style="margin-left: 10px"
  10376. v-if="selectAnswer.answer[aIndex] !== a"
  10377. >
  10378. 正确答案:
  10379. </div>
  10380. <div
  10381. :class="
  10382. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10383. "
  10384. >
  10385. {{ selectJson.select[a] }}
  10386. </div>
  10387. </div>
  10388. </div>
  10389. </div>
  10390. <div class="upAnswerCss">
  10391. <el-button
  10392. type="primary"
  10393. @click="addSelectAnswer"
  10394. v-if="!isSelect"
  10395. >提交答案</el-button
  10396. >
  10397. </div>
  10398. </div>
  10399. </div>
  10400. </div>
  10401. </el-dialog>
  10402. <el-dialog
  10403. title="选择匹配"
  10404. :visible.sync="dialogVisibleSelectTeacher"
  10405. :append-to-body="true"
  10406. width="90%"
  10407. :before-close="handleClose"
  10408. class="dialog_diy dialog_diy3"
  10409. >
  10410. <div v-if="selectJson">
  10411. <div class="w_name">
  10412. 学生姓名:<span>{{ sStudent.student }}</span>
  10413. </div>
  10414. <div class="select_box2">
  10415. <div class="select_box2_title">
  10416. <div>选择匹配</div>
  10417. <div>请选择对应的答案进行答题!</div>
  10418. </div>
  10419. <div class="select_box2_box">
  10420. <div class="select_box2_img">
  10421. <img
  10422. :src="selectJson.url"
  10423. @click="previewImg(selectJson.url)"
  10424. alt=""
  10425. />
  10426. </div>
  10427. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10428. <div style="padding-top: 15px">
  10429. <div class="select_answer_title" v-if="isSelect">
  10430. {{ selectAnswer.stu }}
  10431. </div>
  10432. <div class="select_answer_title" v-else>
  10433. 根据题目选择对应答案
  10434. </div>
  10435. <div
  10436. class="select_box2_answer_box"
  10437. v-for="(item2, checkIndex) in selectJson.select"
  10438. :key="checkIndex"
  10439. >
  10440. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10441. <el-select
  10442. :disabled="isSelect"
  10443. v-model="selectAnswer.answer[checkIndex]"
  10444. placeholder="请选择正确答案"
  10445. >
  10446. <el-option
  10447. v-for="(e, eIndex) in selectJson.select"
  10448. :key="eIndex"
  10449. :label="e"
  10450. :value="eIndex"
  10451. >
  10452. </el-option>
  10453. </el-select>
  10454. </div>
  10455. </div>
  10456. <div
  10457. class="rightAnswerCss"
  10458. v-if="isSelect && (tType == 1 || tType == 4)"
  10459. >
  10460. <div
  10461. v-for="(a, aIndex) in selectJson.answer"
  10462. :key="aIndex"
  10463. class="rightAnswer"
  10464. >
  10465. <div
  10466. v-if="selectAnswer.answer[aIndex] === a"
  10467. style="color: #767de1"
  10468. >
  10469. 回答正确
  10470. </div>
  10471. <div v-else>回答错误</div>
  10472. <div
  10473. style="margin-left: 10px"
  10474. v-if="selectAnswer.answer[aIndex] !== a"
  10475. >
  10476. 正确答案:
  10477. </div>
  10478. <div
  10479. :class="
  10480. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10481. "
  10482. >
  10483. {{ selectJson.select[a] }}
  10484. </div>
  10485. </div>
  10486. </div>
  10487. </div>
  10488. <div class="upAnswerCss">
  10489. <el-button
  10490. type="primary"
  10491. @click="addSelectAnswerTeacher"
  10492. v-if="!isSelect"
  10493. >提交答案</el-button
  10494. >
  10495. </div>
  10496. </div>
  10497. </div>
  10498. </div>
  10499. </el-dialog>
  10500. <el-dialog
  10501. title="教师评分"
  10502. :visible.sync="dialogVisibleScore"
  10503. :append-to-body="true"
  10504. width="800px"
  10505. :before-close="handleClose"
  10506. class="dialog_diy"
  10507. >
  10508. <div>
  10509. <div class="studentDetail">
  10510. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10511. <div class="nameAndTime">
  10512. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10513. <div>{{ commentDetail.time }}</div>
  10514. </div>
  10515. </div>
  10516. <div
  10517. class="worksAnswer"
  10518. v-if="commentDetail.works && commentDetail.type == 2"
  10519. >
  10520. {{ JSON.parse(commentDetail.works)[0].answer }}
  10521. </div>
  10522. <div
  10523. class="worksAnswer"
  10524. v-if="commentDetail.works && commentDetail.type == 1"
  10525. >
  10526. <pdf
  10527. v-if="showPDF"
  10528. :pdfUrl="pptImgUrl"
  10529. style="width: 100%; height: 520px; overflow: auto"
  10530. :class="{ fullStyle: full }"
  10531. ></pdf>
  10532. <iframe
  10533. v-else
  10534. :src="pptImgUrl"
  10535. frameborder="0"
  10536. width="100%"
  10537. height="600"
  10538. :class="{ fullStyle: full }"
  10539. ></iframe>
  10540. </div>
  10541. <div
  10542. class="worksAnswer"
  10543. v-if="commentDetail.works && commentDetail.type == 0"
  10544. >
  10545. <img
  10546. :src="commentDetail.works"
  10547. alt=""
  10548. @click="previewImg(commentDetail.works)"
  10549. />
  10550. </div>
  10551. <div
  10552. class="worksAnswer"
  10553. v-if="commentDetail.works && commentDetail.type == 3"
  10554. >
  10555. <video-player
  10556. class="video-player vjs-custom-skin"
  10557. :playsinline="true"
  10558. :options="videoDetail"
  10559. @play="onPlayerPlay($event)"
  10560. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10561. ></video-player>
  10562. </div>
  10563. <div
  10564. class="worksAnswer codeFileBox"
  10565. v-if="commentDetail.works && commentDetail.type == 12"
  10566. @click="downloadFile(commentDetail.works)"
  10567. >
  10568. <img src="../../assets/icon/codeFile.png" />
  10569. <div>点击下载文件</div>
  10570. </div>
  10571. <div
  10572. class="worksAnswer codeFileBox"
  10573. v-if="commentDetail.works && commentDetail.type == 15"
  10574. @click="
  10575. openCocoPi(
  10576. 57,
  10577. commentIndexJson.toolIndex,
  10578. commentDetail.userid,
  10579. commentDetail.sName
  10580. )
  10581. "
  10582. >
  10583. <img src="../../assets/icon/codeFile.png" />
  10584. <div>点击打开CocoPi</div>
  10585. </div>
  10586. <div
  10587. class="worksAnswer"
  10588. v-if="commentDetail.works && commentDetail.type == 13"
  10589. >
  10590. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10591. </div>
  10592. <div class="scoreBox">
  10593. <span class="t">请输入分数</span>
  10594. <el-input-number
  10595. :disabled="courseDetail.userid != userid"
  10596. v-model="wScore"
  10597. :controls="false"
  10598. :min="0"
  10599. :max="100"
  10600. ></el-input-number>
  10601. </div>
  10602. <div class="scoreDetailBox">
  10603. <span class="t">评分评论</span>
  10604. <el-input
  10605. type="textarea"
  10606. :rows="5"
  10607. :disabled="courseDetail.userid != userid"
  10608. resize="none"
  10609. v-model="scoreDetail"
  10610. placeholder="请输入对学生的评价"
  10611. >
  10612. </el-input>
  10613. </div>
  10614. </div>
  10615. <span slot="footer" class="dialog-footer">
  10616. <el-button
  10617. @click="
  10618. (dialogVisibleScore = false),
  10619. (commentIndexJson = {}),
  10620. videoDetail.sources && videoDetail.sources[0]
  10621. ? (videoDetail.sources[0].src = '')
  10622. : ''
  10623. "
  10624. >取 消</el-button
  10625. >
  10626. <el-button
  10627. type="primary"
  10628. v-if="courseDetail.userid == userid"
  10629. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10630. >确 定
  10631. </el-button>
  10632. </span>
  10633. </el-dialog>
  10634. <el-dialog
  10635. title="排序"
  10636. :visible.sync="dialogVisibleSentence"
  10637. :append-to-body="true"
  10638. width="1000px"
  10639. :before-close="handleClose"
  10640. class="dialog_diy dialog_diy3"
  10641. >
  10642. <div>
  10643. <div class="sentenBox">
  10644. <div
  10645. v-for="(st, stIndex) in sentenceList"
  10646. :key="stIndex"
  10647. style="padding-bottom: 20px"
  10648. >
  10649. <div
  10650. style="padding: 15px 0 10px 20px"
  10651. class="sentenceTitle"
  10652. :index="stIndex + 1"
  10653. >
  10654. 题目{{ stIndex + 1 }}:请选择正确顺序
  10655. </div>
  10656. <div class="cardList" v-if="st.chooseSenList">
  10657. <div class="cardBox">
  10658. <div
  10659. v-for="(r, rIndex) in st.chooseSenList"
  10660. :key="rIndex"
  10661. @click="returnCard(r, stIndex, rIndex)"
  10662. >
  10663. <el-tooltip
  10664. class="item"
  10665. effect="light"
  10666. :content="r"
  10667. placement="top"
  10668. v-if="r != '' && r != undefined"
  10669. >
  10670. <div
  10671. :class="{
  10672. isCard: r,
  10673. isChooseCard: r == '' || r == undefined,
  10674. }"
  10675. >
  10676. <div>{{ r }}</div>
  10677. </div>
  10678. </el-tooltip>
  10679. <div
  10680. :class="{
  10681. isCard: r,
  10682. isChooseCard: r == '' || r == undefined,
  10683. }"
  10684. v-else
  10685. >
  10686. <div>{{ r }}</div>
  10687. </div>
  10688. </div>
  10689. </div>
  10690. </div>
  10691. <div class="cardList" v-if="st.addChangeSen">
  10692. <div class="cardBox">
  10693. <div
  10694. v-for="(s, sIndex) in st.addChangeSen"
  10695. :key="sIndex"
  10696. @click="setRightAnswer(s, stIndex, sIndex)"
  10697. >
  10698. <el-tooltip
  10699. class="item"
  10700. effect="light"
  10701. :content="s"
  10702. placement="top"
  10703. v-if="s != '' && s != undefined"
  10704. >
  10705. <div
  10706. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10707. >
  10708. <div>{{ s }}</div>
  10709. </div>
  10710. </el-tooltip>
  10711. <div
  10712. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10713. v-else
  10714. >
  10715. <div>{{ s }}</div>
  10716. </div>
  10717. </div>
  10718. </div>
  10719. </div>
  10720. </div>
  10721. </div>
  10722. </div>
  10723. <span slot="footer" class="dialog-footer">
  10724. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10725. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10726. </span>
  10727. </el-dialog>
  10728. <el-dialog
  10729. title="排序"
  10730. :visible.sync="dialogVisibleSentenceTeacher"
  10731. :append-to-body="true"
  10732. width="1000px"
  10733. :before-close="handleClose"
  10734. class="dialog_diy dialog_diy3"
  10735. >
  10736. <div>
  10737. <div class="w_name">
  10738. 学生姓名:<span>{{ sStudent.student }}</span>
  10739. </div>
  10740. <div class="sentenBox">
  10741. <div
  10742. v-for="(st, stIndex) in sentenceList"
  10743. :key="stIndex"
  10744. style="padding-bottom: 20px"
  10745. >
  10746. <div
  10747. style="padding: 15px 0 10px 20px"
  10748. class="sentenceTitle"
  10749. :index="stIndex + 1"
  10750. >
  10751. 题目{{ stIndex + 1 }}:请选择正确顺序
  10752. </div>
  10753. <div class="cardList" v-if="st.chooseSenList">
  10754. <div class="cardBox">
  10755. <div
  10756. v-for="(r, rIndex) in st.chooseSenList"
  10757. :key="rIndex"
  10758. @click="returnCard(r, stIndex, rIndex)"
  10759. >
  10760. <el-tooltip
  10761. class="item"
  10762. effect="light"
  10763. :content="r"
  10764. placement="top"
  10765. v-if="r != '' && r != undefined"
  10766. >
  10767. <div
  10768. :class="{
  10769. isCard: r,
  10770. isChooseCard: r == '' || r == undefined,
  10771. }"
  10772. >
  10773. <div>{{ r }}</div>
  10774. </div>
  10775. </el-tooltip>
  10776. <div
  10777. :class="{
  10778. isCard: r,
  10779. isChooseCard: r == '' || r == undefined,
  10780. }"
  10781. v-else
  10782. >
  10783. <div>{{ r }}</div>
  10784. </div>
  10785. </div>
  10786. </div>
  10787. </div>
  10788. <div class="cardList" v-if="st.addChangeSen">
  10789. <div class="cardBox">
  10790. <div
  10791. v-for="(s, sIndex) in st.addChangeSen"
  10792. :key="sIndex"
  10793. @click="setRightAnswer(s, stIndex, sIndex)"
  10794. >
  10795. <el-tooltip
  10796. class="item"
  10797. effect="light"
  10798. :content="s"
  10799. placement="top"
  10800. v-if="s != '' && s != undefined"
  10801. >
  10802. <div
  10803. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10804. >
  10805. <div>{{ s }}</div>
  10806. </div>
  10807. </el-tooltip>
  10808. <div
  10809. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10810. v-else
  10811. >
  10812. <div>{{ s }}</div>
  10813. </div>
  10814. </div>
  10815. </div>
  10816. </div>
  10817. </div>
  10818. </div>
  10819. </div>
  10820. <span slot="footer" class="dialog-footer">
  10821. <el-button @click="dialogVisibleSentenceTeacher = false"
  10822. >取 消</el-button
  10823. >
  10824. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10825. </span>
  10826. </el-dialog>
  10827. <el-dialog
  10828. title="排序"
  10829. :visible.sync="dialogVisibleSentence1"
  10830. :append-to-body="true"
  10831. width="1000px"
  10832. :before-close="handleClose"
  10833. class="dialog_diy dialog_diy3"
  10834. >
  10835. <div>
  10836. <div class="sentenBox">
  10837. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10838. {{ sentenceList1.stuName }}的作业
  10839. </div>
  10840. <div
  10841. v-for="(st, stIndex) in sentenceList1"
  10842. :key="stIndex"
  10843. style="padding-bottom: 20px"
  10844. >
  10845. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10846. 第{{ stIndex + 1 }}题
  10847. </div>
  10848. <div class="isWrong">
  10849. <div class="cardList1" v-if="st.chooseSenList">
  10850. <div class="cardBox">
  10851. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10852. <el-tooltip
  10853. class="item"
  10854. effect="light"
  10855. :content="s"
  10856. placement="top"
  10857. >
  10858. <div class="isCard">
  10859. <div>{{ s }}</div>
  10860. </div>
  10861. </el-tooltip>
  10862. </div>
  10863. </div>
  10864. <div class="cardAnswerBox">
  10865. 组成句子:{{ st.chooseSenList.join(" ") }}
  10866. </div>
  10867. </div>
  10868. <div v-if="tType == 2" class="isTj">
  10869. <div class="isTjImg">
  10870. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10871. </div>
  10872. <div>已提交</div>
  10873. </div>
  10874. <div
  10875. class="answerRight isTj"
  10876. v-if="
  10877. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10878. (tType == 1 || tType == 4)
  10879. "
  10880. >
  10881. <div class="isTjImg">
  10882. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10883. </div>
  10884. <div>回答正确</div>
  10885. </div>
  10886. <div
  10887. class="answerRight isTj"
  10888. v-if="
  10889. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10890. (tType == 1 || tType == 4)
  10891. "
  10892. >
  10893. <div class="isTjImg">
  10894. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10895. </div>
  10896. <div>回答错误</div>
  10897. </div>
  10898. </div>
  10899. <div
  10900. v-if="
  10901. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10902. (tType == 1 || tType == 4)
  10903. "
  10904. >
  10905. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10906. <div
  10907. class="cardList"
  10908. v-if="st.rightAnswer"
  10909. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10910. >
  10911. <div class="cardBox">
  10912. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10913. <el-tooltip
  10914. class="item"
  10915. effect="light"
  10916. :content="r"
  10917. placement="top"
  10918. >
  10919. <div class="isCard1">
  10920. <div>{{ r }}</div>
  10921. </div>
  10922. </el-tooltip>
  10923. </div>
  10924. </div>
  10925. <div class="cardAnswerBox">
  10926. 组成句子:{{ st.rightAnswer.join(" ") }}
  10927. </div>
  10928. </div>
  10929. </div>
  10930. </div>
  10931. </div>
  10932. </div>
  10933. <span slot="footer" class="dialog-footer">
  10934. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10935. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10936. >确 定</el-button
  10937. >
  10938. </span>
  10939. </el-dialog>
  10940. <el-dialog
  10941. title="教师提交作业"
  10942. :visible.sync="dialogVisibleWorks"
  10943. :append-to-body="true"
  10944. width="500px"
  10945. :before-close="handleClose"
  10946. class="dialog_change"
  10947. >
  10948. <div class="marginT">
  10949. <div class="w_name">
  10950. 学生姓名:<span>{{ sStudent.student }}</span>
  10951. </div>
  10952. <div>上传文件</div>
  10953. <div
  10954. class="chapter_add"
  10955. @click="addImg($event)"
  10956. v-if="studyJuri[0].cover.length == 0"
  10957. >
  10958. <div class="up_photo">
  10959. <img src="../../assets/uploadImg2.png" alt />
  10960. </div>
  10961. <!-- <input
  10962. type="file"
  10963. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10964. style="display: none"
  10965. @change="beforeUpload1($event, 1)"
  10966. /> -->
  10967. <input
  10968. type="file"
  10969. accept="*"
  10970. style="display: none"
  10971. @change="beforeUpload1($event, 1)"
  10972. />
  10973. </div>
  10974. <!-- capture="camera" -->
  10975. <div
  10976. class="chapter_add"
  10977. style="
  10978. display: flex;
  10979. width: 100%;
  10980. flex-direction: row;
  10981. flex-wrap: wrap;
  10982. justify-content: flex-start;
  10983. padding: 15px 0;
  10984. "
  10985. v-if="studyJuri[0].cover.length > 0"
  10986. >
  10987. <div class="upCover">
  10988. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10989. <img :src="word" alt v-else-if="fileType == 1" />
  10990. <img :src="video" alt v-else-if="fileType == 2" />
  10991. <img :src="word2" alt v-else-if="fileType == 3" />
  10992. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10993. <div class="deleteWord" @click="clean(1)">
  10994. <img src="../../assets/icon/deleteWorks.png" alt />
  10995. </div>
  10996. </div>
  10997. </div>
  10998. </div>
  10999. <div
  11000. class="upload_send"
  11001. @click="addCourseWorksTeacher(taskCount)"
  11002. v-if="!proVisible"
  11003. >
  11004. 提交
  11005. </div>
  11006. </el-dialog>
  11007. <ImgDraw
  11008. :drawShow="drawShow"
  11009. @closeDraw="closeDraw"
  11010. @addImgDraw="addImgDraw"
  11011. :bg="bg"
  11012. ></ImgDraw>
  11013. <el-dialog
  11014. title="表格"
  11015. :visible.sync="dialogVisibleTable"
  11016. :append-to-body="true"
  11017. width="95%"
  11018. :before-close="handleClose"
  11019. class="dialog_diy"
  11020. >
  11021. <el-form>
  11022. <div
  11023. style="
  11024. display: flex;
  11025. align-items: center;
  11026. justify-content: space-between;
  11027. "
  11028. >
  11029. <span>表格内容</span>
  11030. <el-button type="primary" size="small" @click="returnTableText"
  11031. >还原模板</el-button
  11032. >
  11033. </div>
  11034. <Table
  11035. v-model="tableJson.text"
  11036. @change="change"
  11037. v-if="dialogVisibleTable"
  11038. ></Table>
  11039. </el-form>
  11040. <span slot="footer" class="dialog-footer">
  11041. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11042. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11043. </span>
  11044. </el-dialog>
  11045. <el-dialog
  11046. title="表格"
  11047. :visible.sync="dialogVisibleTableTeacher"
  11048. :append-to-body="true"
  11049. width="95%"
  11050. :before-close="handleClose"
  11051. class="dialog_diy"
  11052. >
  11053. <el-form>
  11054. <div class="w_name">
  11055. 学生姓名:<span>{{ sStudent.student }}</span>
  11056. </div>
  11057. <div>表格内容</div>
  11058. <Table
  11059. v-model="tableJson.text"
  11060. @change="change"
  11061. v-if="dialogVisibleTableTeacher"
  11062. ></Table>
  11063. </el-form>
  11064. <span slot="footer" class="dialog-footer">
  11065. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11066. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11067. </span>
  11068. </el-dialog>
  11069. <el-dialog
  11070. title="文档"
  11071. :visible.sync="dialogVisibleWord"
  11072. :append-to-body="true"
  11073. width="95%"
  11074. :before-close="handleClose"
  11075. class="dialog_diy"
  11076. >
  11077. <el-form>
  11078. <div
  11079. style="
  11080. display: flex;
  11081. align-items: center;
  11082. justify-content: space-between;
  11083. "
  11084. >
  11085. <span>文档内容</span>
  11086. <el-button type="primary" size="small" @click="returnWordText"
  11087. >还原模板</el-button
  11088. >
  11089. </div>
  11090. <editor-bar
  11091. v-model="wordJson.text"
  11092. v-if="dialogVisibleWord"
  11093. ></editor-bar>
  11094. </el-form>
  11095. <span slot="footer" class="dialog-footer">
  11096. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11097. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11098. </span>
  11099. </el-dialog>
  11100. <el-dialog
  11101. title="文档"
  11102. :visible.sync="dialogVisibleWordTeacher"
  11103. :append-to-body="true"
  11104. width="95%"
  11105. :before-close="handleClose"
  11106. class="dialog_diy"
  11107. >
  11108. <el-form>
  11109. <div class="w_name">
  11110. 学生姓名:<span>{{ sStudent.student }}</span>
  11111. </div>
  11112. <div>文档内容</div>
  11113. <editor-bar
  11114. v-model="wordJson.text"
  11115. v-if="dialogVisibleWordTeacher"
  11116. ></editor-bar>
  11117. </el-form>
  11118. <span slot="footer" class="dialog-footer">
  11119. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11120. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11121. </span>
  11122. </el-dialog>
  11123. <el-dialog
  11124. title="表格"
  11125. :visible.sync="dialogVisibleTable2"
  11126. :append-to-body="true"
  11127. width="95%"
  11128. :before-close="handleClose"
  11129. class="dialog_diy"
  11130. >
  11131. <el-form>
  11132. <div class="cont" v-html="tableJson.text"></div>
  11133. </el-form>
  11134. <span slot="footer" class="dialog-footer">
  11135. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11136. </span>
  11137. </el-dialog>
  11138. <el-dialog
  11139. title="文档"
  11140. :visible.sync="dialogVisibleTable3"
  11141. :append-to-body="true"
  11142. width="95%"
  11143. :before-close="handleClose"
  11144. class="dialog_diy"
  11145. >
  11146. <el-form>
  11147. <div class="cont" v-html="tableJson.text"></div>
  11148. </el-form>
  11149. <span slot="footer" class="dialog-footer">
  11150. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11151. </span>
  11152. </el-dialog>
  11153. <el-dialog
  11154. title="分组设置"
  11155. :visible.sync="dialogVisibleGroup"
  11156. :append-to-body="true"
  11157. width="95%"
  11158. :before-close="handleClose"
  11159. class="dialog_diy"
  11160. >
  11161. <div v-if="dialogVisibleGroup">
  11162. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11163. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11164. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11165. </div>
  11166. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11167. @click="lockChair">
  11168. 锁定位置
  11169. </div>
  11170. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11171. 解锁位置
  11172. </div> -->
  11173. <div class="group_switch">
  11174. <span>开放选座</span>
  11175. <el-switch
  11176. v-model="islock"
  11177. active-text=""
  11178. class="switchCss"
  11179. @change="lockChair"
  11180. ></el-switch>
  11181. </div>
  11182. <div
  11183. type="primary"
  11184. @click="updateGroup"
  11185. class="returnBtn"
  11186. style="background-color: #225bc7"
  11187. >
  11188. 分组设置
  11189. </div>
  11190. </div>
  11191. <div>
  11192. <div
  11193. class="g_d_box"
  11194. v-if="groupJson.group && groupStudent[toolindex]"
  11195. >
  11196. <div
  11197. class="g_d_group"
  11198. v-for="(g, gindex) in groupJson.group"
  11199. :key="gindex"
  11200. >
  11201. <div class="g_d_group_chair">
  11202. <div v-if="groupJson.number > 1">
  11203. <span
  11204. :class="{
  11205. isChair:
  11206. groupStudent[toolindex][gindex] &&
  11207. groupStudent[toolindex][gindex][0],
  11208. updateChair:
  11209. courseDetail.userid == userid &&
  11210. groupStudent[toolindex][gindex] &&
  11211. groupStudent[toolindex][gindex][0] &&
  11212. groupJson.islock == 2,
  11213. }"
  11214. ><span
  11215. class="updateChairBtn"
  11216. @click="
  11217. updateGroupChair(
  11218. groupStudent[toolindex][gindex] &&
  11219. groupStudent[toolindex][gindex][0]
  11220. )
  11221. "
  11222. >修改</span
  11223. ></span
  11224. ><span>{{
  11225. groupStudent[toolindex][gindex] &&
  11226. groupStudent[toolindex][gindex][0]
  11227. ? groupStudent[toolindex][gindex] &&
  11228. groupStudent[toolindex][gindex][0].name
  11229. : "空位置"
  11230. }}</span>
  11231. </div>
  11232. <div v-if="groupJson.number > 4">
  11233. <span
  11234. :class="{
  11235. isChair:
  11236. groupStudent[toolindex][gindex] &&
  11237. groupStudent[toolindex][gindex][4],
  11238. updateChair:
  11239. courseDetail.userid == userid &&
  11240. groupStudent[toolindex][gindex] &&
  11241. groupStudent[toolindex][gindex][4] &&
  11242. groupJson.islock == 2,
  11243. }"
  11244. ><span
  11245. class="updateChairBtn"
  11246. @click="
  11247. updateGroupChair(
  11248. groupStudent[toolindex][gindex] &&
  11249. groupStudent[toolindex][gindex][4]
  11250. )
  11251. "
  11252. >修改</span
  11253. ></span
  11254. ><span>{{
  11255. groupStudent[toolindex][gindex] &&
  11256. groupStudent[toolindex][gindex][4]
  11257. ? groupStudent[toolindex][gindex] &&
  11258. groupStudent[toolindex][gindex][4].name
  11259. : "空位置"
  11260. }}</span>
  11261. </div>
  11262. <div v-if="groupJson.number > 8">
  11263. <span
  11264. :class="{
  11265. isChair:
  11266. groupStudent[toolindex][gindex] &&
  11267. groupStudent[toolindex][gindex][8],
  11268. updateChair:
  11269. courseDetail.userid == userid &&
  11270. groupStudent[toolindex][gindex] &&
  11271. groupStudent[toolindex][gindex][8] &&
  11272. groupJson.islock == 2,
  11273. }"
  11274. ><span
  11275. class="updateChairBtn"
  11276. @click="
  11277. updateGroupChair(
  11278. groupStudent[toolindex][gindex] &&
  11279. groupStudent[toolindex][gindex][8]
  11280. )
  11281. "
  11282. >修改</span
  11283. ></span
  11284. ><span>{{
  11285. groupStudent[toolindex][gindex] &&
  11286. groupStudent[toolindex][gindex][8]
  11287. ? groupStudent[toolindex][gindex] &&
  11288. groupStudent[toolindex][gindex][8].name
  11289. : "空位置"
  11290. }}</span>
  11291. </div>
  11292. </div>
  11293. <div class="g_d_group_tableBox">
  11294. <div class="g_d_group_chair2">
  11295. <div v-if="groupJson.number > 2">
  11296. <span
  11297. :class="{
  11298. isChair:
  11299. groupStudent[toolindex][gindex] &&
  11300. groupStudent[toolindex][gindex][2],
  11301. updateChair:
  11302. courseDetail.userid == userid &&
  11303. groupStudent[toolindex][gindex] &&
  11304. groupStudent[toolindex][gindex][2] &&
  11305. groupJson.islock == 2,
  11306. }"
  11307. ><span
  11308. class="updateChairBtn"
  11309. @click="
  11310. updateGroupChair(
  11311. groupStudent[toolindex][gindex] &&
  11312. groupStudent[toolindex][gindex][2]
  11313. )
  11314. "
  11315. >修改</span
  11316. ></span
  11317. ><span>{{
  11318. groupStudent[toolindex][gindex] &&
  11319. groupStudent[toolindex][gindex][2]
  11320. ? groupStudent[toolindex][gindex] &&
  11321. groupStudent[toolindex][gindex][2].name
  11322. : "空位置"
  11323. }}</span>
  11324. </div>
  11325. <div v-if="groupJson.number > 6">
  11326. <span
  11327. :class="{
  11328. isChair:
  11329. groupStudent[toolindex][gindex] &&
  11330. groupStudent[toolindex][gindex][6],
  11331. updateChair:
  11332. courseDetail.userid == userid &&
  11333. groupStudent[toolindex][gindex] &&
  11334. groupStudent[toolindex][gindex][6] &&
  11335. groupJson.islock == 2,
  11336. }"
  11337. ><span
  11338. class="updateChairBtn"
  11339. @click="
  11340. updateGroupChair(
  11341. groupStudent[toolindex][gindex] &&
  11342. groupStudent[toolindex][gindex][6]
  11343. )
  11344. "
  11345. >修改</span
  11346. ></span
  11347. ><span>{{
  11348. groupStudent[toolindex][gindex] &&
  11349. groupStudent[toolindex][gindex][6]
  11350. ? groupStudent[toolindex][gindex] &&
  11351. groupStudent[toolindex][gindex][6].name
  11352. : "空位置"
  11353. }}</span>
  11354. </div>
  11355. </div>
  11356. <div class="g_d_group_table">
  11357. <div>
  11358. {{ g.name }}
  11359. </div>
  11360. <div>
  11361. <div
  11362. v-if="
  11363. courseDetail.userid == userid && groupJson.islock == 2
  11364. "
  11365. @click="deleteGroupChair(gindex)"
  11366. >
  11367. 移除组员
  11368. </div>
  11369. <div
  11370. @click="selectGroup(gindex)"
  11371. v-else-if="
  11372. groupStudentUid[toolindex] &&
  11373. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11374. "
  11375. >
  11376. 加入分组
  11377. </div>
  11378. <div
  11379. @click="
  11380. exitGroup(
  11381. groupStudent[toolindex][gindex] &&
  11382. groupStudent[toolindex][gindex][
  11383. groupStudentUid[toolindex][gindex].indexOf(userid)
  11384. ].id
  11385. )
  11386. "
  11387. v-else-if="
  11388. groupStudentUid[toolindex] &&
  11389. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11390. "
  11391. >
  11392. 退出分组
  11393. </div>
  11394. </div>
  11395. </div>
  11396. <div class="g_d_group_chair2">
  11397. <div v-if="groupJson.number > 3">
  11398. <span
  11399. :class="{
  11400. isChair:
  11401. groupStudent[toolindex][gindex] &&
  11402. groupStudent[toolindex][gindex][3],
  11403. updateChair:
  11404. courseDetail.userid == userid &&
  11405. groupStudent[toolindex][gindex] &&
  11406. groupStudent[toolindex][gindex][3] &&
  11407. groupJson.islock == 2,
  11408. }"
  11409. ><span
  11410. class="updateChairBtn"
  11411. @click="
  11412. updateGroupChair(
  11413. groupStudent[toolindex][gindex] &&
  11414. groupStudent[toolindex][gindex][3]
  11415. )
  11416. "
  11417. >修改</span
  11418. ></span
  11419. ><span>{{
  11420. groupStudent[toolindex][gindex] &&
  11421. groupStudent[toolindex][gindex][3]
  11422. ? groupStudent[toolindex][gindex] &&
  11423. groupStudent[toolindex][gindex][3].name
  11424. : "空位置"
  11425. }}</span>
  11426. </div>
  11427. <div v-if="groupJson.number > 7">
  11428. <span
  11429. :class="{
  11430. isChair:
  11431. groupStudent[toolindex][gindex] &&
  11432. groupStudent[toolindex][gindex][7],
  11433. updateChair:
  11434. courseDetail.userid == userid &&
  11435. groupStudent[toolindex][gindex] &&
  11436. groupStudent[toolindex][gindex][7] &&
  11437. groupJson.islock == 2,
  11438. }"
  11439. ><span
  11440. class="updateChairBtn"
  11441. @click="
  11442. updateGroupChair(
  11443. groupStudent[toolindex][gindex] &&
  11444. groupStudent[toolindex][gindex][7]
  11445. )
  11446. "
  11447. >修改</span
  11448. ></span
  11449. ><span>{{
  11450. groupStudent[toolindex][gindex] &&
  11451. groupStudent[toolindex][gindex][7]
  11452. ? groupStudent[toolindex][gindex] &&
  11453. groupStudent[toolindex][gindex][7].name
  11454. : "空位置"
  11455. }}</span>
  11456. </div>
  11457. </div>
  11458. </div>
  11459. <div class="g_d_group_chair">
  11460. <div v-if="groupJson.number > 1">
  11461. <span
  11462. :class="{
  11463. isChair:
  11464. groupStudent[toolindex][gindex] &&
  11465. groupStudent[toolindex][gindex][1],
  11466. updateChair:
  11467. courseDetail.userid == userid &&
  11468. groupStudent[toolindex][gindex] &&
  11469. groupStudent[toolindex][gindex][1] &&
  11470. groupJson.islock == 2,
  11471. }"
  11472. ><span
  11473. class="updateChairBtn"
  11474. @click="
  11475. updateGroupChair(
  11476. groupStudent[toolindex][gindex] &&
  11477. groupStudent[toolindex][gindex][1]
  11478. )
  11479. "
  11480. >修改</span
  11481. ></span
  11482. ><span>{{
  11483. groupStudent[toolindex][gindex] &&
  11484. groupStudent[toolindex][gindex][1]
  11485. ? groupStudent[toolindex][gindex] &&
  11486. groupStudent[toolindex][gindex][1].name
  11487. : "空位置"
  11488. }}</span>
  11489. </div>
  11490. <div v-if="groupJson.number > 5">
  11491. <span
  11492. :class="{
  11493. isChair:
  11494. groupStudent[toolindex][gindex] &&
  11495. groupStudent[toolindex][gindex][5],
  11496. updateChair:
  11497. courseDetail.userid == userid &&
  11498. groupStudent[toolindex][gindex] &&
  11499. groupStudent[toolindex][gindex][5] &&
  11500. groupJson.islock == 2,
  11501. }"
  11502. ><span
  11503. class="updateChairBtn"
  11504. @click="
  11505. updateGroupChair(
  11506. groupStudent[toolindex][gindex] &&
  11507. groupStudent[toolindex][gindex][5]
  11508. )
  11509. "
  11510. >修改</span
  11511. ></span
  11512. ><span>{{
  11513. groupStudent[toolindex][gindex] &&
  11514. groupStudent[toolindex][gindex][5]
  11515. ? groupStudent[toolindex][gindex] &&
  11516. groupStudent[toolindex][gindex][5].name
  11517. : "空位置"
  11518. }}</span>
  11519. </div>
  11520. <div v-if="groupJson.number > 9">
  11521. <span
  11522. :class="{
  11523. isChair:
  11524. groupStudent[toolindex][gindex] &&
  11525. groupStudent[toolindex][gindex][9],
  11526. updateChair:
  11527. courseDetail.userid == userid &&
  11528. groupStudent[toolindex][gindex] &&
  11529. groupStudent[toolindex][gindex][9] &&
  11530. groupJson.islock == 2,
  11531. }"
  11532. ><span
  11533. class="updateChairBtn"
  11534. @click="
  11535. updateGroupChair(
  11536. groupStudent[toolindex][gindex] &&
  11537. groupStudent[toolindex][gindex][9]
  11538. )
  11539. "
  11540. >修改</span
  11541. ></span
  11542. ><span>{{
  11543. groupStudent[toolindex][gindex] &&
  11544. groupStudent[toolindex][gindex][9]
  11545. ? groupStudent[toolindex][gindex] &&
  11546. groupStudent[toolindex][gindex][9].name
  11547. : "空位置"
  11548. }}</span>
  11549. </div>
  11550. </div>
  11551. </div>
  11552. </div>
  11553. </div>
  11554. </div>
  11555. <span slot="footer" class="dialog-footer">
  11556. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11557. </span>
  11558. </el-dialog>
  11559. <el-dialog
  11560. title="分组设置"
  11561. :visible.sync="dialogVisibleGroup2"
  11562. :append-to-body="true"
  11563. width="650px"
  11564. :before-close="handleClose"
  11565. class="dialog_diy"
  11566. >
  11567. <div class="groupBox">
  11568. <div v-if="groupJson2.group" class="groupContent">
  11569. <div class="groupTitle">请设置小组数量及名称</div>
  11570. <div
  11571. v-for="(item, index) in groupJson2.group"
  11572. :key="index"
  11573. class="groupName"
  11574. >
  11575. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11576. <el-input
  11577. v-model="item.name"
  11578. placeholder="请输入名称..."
  11579. style="width: 250px"
  11580. ></el-input>
  11581. <!-- <div class="groupBtn">
  11582. <el-button type="primary" size="small" @click="addGroup(index)">
  11583. 添加</el-button>
  11584. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11585. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11586. </div> -->
  11587. </div>
  11588. </div>
  11589. <div class="groupContent">
  11590. <div class="groupTitle">请设置每组人数</div>
  11591. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11592. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11593. <el-input
  11594. v-model="groupJson2.number"
  11595. style="width: 150px"
  11596. placeholder="请输入2-10的数字"
  11597. @change="numberPan"
  11598. ></el-input>
  11599. </div>
  11600. </div>
  11601. <span slot="footer" class="dialog-footer">
  11602. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11603. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11604. </span>
  11605. </el-dialog>
  11606. <el-dialog
  11607. title="作业提交"
  11608. :visible.sync="dialogVisibleGroupWork"
  11609. :append-to-body="true"
  11610. width="500px"
  11611. :before-close="handleClose"
  11612. class="dialog_change"
  11613. >
  11614. <div class="marginT">
  11615. <div>上传文件</div>
  11616. <div
  11617. class="chapter_add"
  11618. @click="addImg($event)"
  11619. v-if="studyJuri[0].cover.length == 0"
  11620. >
  11621. <div class="up_photo">
  11622. <img src="../../assets/icon/uploadImg.png" alt />
  11623. </div>
  11624. <!-- <input
  11625. type="file"
  11626. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11627. style="display: none"
  11628. @change="beforeUpload1($event, 1)"
  11629. /> -->
  11630. <input
  11631. type="file"
  11632. accept="*"
  11633. style="display: none"
  11634. @change="beforeUpload1($event, 1)"
  11635. />
  11636. </div>
  11637. <!-- capture="camera" -->
  11638. <div
  11639. class="chapter_add"
  11640. style="
  11641. display: flex;
  11642. width: 100%;
  11643. flex-direction: row;
  11644. flex-wrap: wrap;
  11645. justify-content: flex-start;
  11646. padding: 15px 0;
  11647. "
  11648. v-if="studyJuri[0].cover.length > 0"
  11649. >
  11650. <div class="upCover">
  11651. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11652. <img :src="word" alt v-else-if="fileType == 1" />
  11653. <img :src="video" alt v-else-if="fileType == 2" />
  11654. <img :src="word2" alt v-else-if="fileType == 3" />
  11655. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11656. <div class="deleteWord" @click="clean(1)">
  11657. <img src="../../assets/icon/deleteWorks.png" alt />
  11658. </div>
  11659. </div>
  11660. </div>
  11661. </div>
  11662. <div
  11663. class="upload_send"
  11664. @click="addCourseWorks2(taskCount)"
  11665. v-if="!proVisible"
  11666. >
  11667. 提交
  11668. </div>
  11669. </el-dialog>
  11670. <el-dialog
  11671. title="修改分组"
  11672. :visible.sync="dialogVisibleUpdateGroup"
  11673. :append-to-body="true"
  11674. width="350px"
  11675. :before-close="handleClose"
  11676. class="dialog_diy"
  11677. >
  11678. <div>
  11679. <h2>
  11680. {{ this.updateGroupUser.name }}
  11681. </h2>
  11682. <div style="color: rgb(171 171 171); margin-top: 10px">
  11683. 请选择要进入的分组
  11684. </div>
  11685. <el-radio-group v-model="checkChair">
  11686. <el-radio
  11687. style="display: block; margin-top: 20px"
  11688. v-for="(item, index) in updateGroupArray"
  11689. :label="item.label"
  11690. :key="index"
  11691. >{{ item.name }}</el-radio
  11692. >
  11693. </el-radio-group>
  11694. </div>
  11695. <span slot="footer" class="dialog-footer">
  11696. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11697. <el-button type="primary" @click="updateChair">确定</el-button>
  11698. </span>
  11699. </el-dialog>
  11700. <el-dialog
  11701. title="移除组员"
  11702. :visible.sync="dialogVisibleDeleteGroup"
  11703. :append-to-body="true"
  11704. width="350px"
  11705. :before-close="handleClose"
  11706. class="dialog_diy"
  11707. >
  11708. <div>
  11709. <h2>
  11710. {{ this.deleteGroupArray.name }}
  11711. </h2>
  11712. <div style="color: rgb(171 171 171); margin-top: 10px">
  11713. 请选择要删除的组员
  11714. </div>
  11715. <el-checkbox-group v-model="checkDeleteGroup">
  11716. <el-checkbox
  11717. style="display: flex; margin-top: 20px"
  11718. v-for="(item, index) in deleteGroupUser"
  11719. :label="item.userid"
  11720. :key="index"
  11721. >{{ item.name }}</el-checkbox
  11722. >
  11723. </el-checkbox-group>
  11724. </div>
  11725. <span slot="footer" class="dialog-footer">
  11726. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11727. <el-button type="primary" @click="deleteChair">确定</el-button>
  11728. </span>
  11729. </el-dialog>
  11730. <el-dialog
  11731. title="批量上传"
  11732. :visible.sync="dialogVisiblePl"
  11733. :append-to-body="true"
  11734. width="700px"
  11735. :before-close="handleClose"
  11736. class="dialog_change"
  11737. >
  11738. <div class="marginT">
  11739. <div class="plworkBox">
  11740. <div
  11741. class="chapter_add"
  11742. style="
  11743. display: flex;
  11744. width: 150px;
  11745. flex-direction: row;
  11746. flex-wrap: wrap;
  11747. justify-content: flex-start;
  11748. margin: 0 10px 10px 0;
  11749. "
  11750. v-for="(item, index) in plworkFile"
  11751. :key="index"
  11752. >
  11753. <div class="upCover2">
  11754. <img
  11755. :src="item.url"
  11756. alt
  11757. v-if="item.fileType == 1"
  11758. @click="previewImg(item.url)"
  11759. />
  11760. <img :src="word" alt v-else-if="item.fileType == 4" />
  11761. <img :src="video" alt v-else />
  11762. <!-- <span class="picName">{{ item.name }}</span> -->
  11763. <!-- <el-input
  11764. v-model="item.username"
  11765. placeholder="请输入学生名字"
  11766. style="margin-top: 10px"
  11767. ></el-input> -->
  11768. <div
  11769. class="pl_select_box"
  11770. @click="
  11771. getUpdateMore(true, checkUpload(), item.username, index)
  11772. "
  11773. >
  11774. {{ getSName(item.username) }}
  11775. </div>
  11776. <!-- <el-select
  11777. style="margin-top: 10px"
  11778. v-model="item.username"
  11779. filterable
  11780. allow-create
  11781. placeholder="请选择学生"
  11782. >
  11783. <el-option
  11784. v-for="item1 in checkUpload()"
  11785. :key="item1.userid"
  11786. :label="item1.name ? item1.name : item1.username"
  11787. :value="item1.userid"
  11788. >
  11789. </el-option>
  11790. </el-select> -->
  11791. <div class="deleteWord" @click="clean2(index)">
  11792. <img src="../../assets/icon/deleteWorks.png" alt />
  11793. </div>
  11794. </div>
  11795. </div>
  11796. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11797. <div class="up_photo2">
  11798. <img src="../../assets/icon/plwork.png" alt />
  11799. <span>点击上传文件</span>
  11800. </div>
  11801. <input
  11802. type="file"
  11803. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11804. multiple="multiple"
  11805. style="display: none"
  11806. @change="beforeUpload3($event, 6)"
  11807. />
  11808. </div>
  11809. </div>
  11810. </div>
  11811. <!-- capture="camera" -->
  11812. <div
  11813. class="upload_send"
  11814. @click="addCourseWorksPl(taskCount)"
  11815. v-if="!proVisible2"
  11816. >
  11817. 提交
  11818. </div>
  11819. </el-dialog>
  11820. <el-dialog
  11821. title="修改名称"
  11822. :visible.sync="dialogVisibleSname"
  11823. width="500px"
  11824. :before-close="handleClose"
  11825. class="dialog_diy"
  11826. center
  11827. >
  11828. <div
  11829. style="
  11830. text-align: center;
  11831. display: flex;
  11832. align-items: center;
  11833. justify-content: center;
  11834. "
  11835. >
  11836. <span class="tian1">名称</span>
  11837. <div
  11838. class="pl_select_box"
  11839. style="margin-left: 10px; width: 200px"
  11840. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11841. >
  11842. {{ getSName(worksSName) }}
  11843. </div>
  11844. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11845. placeholder="请选择学生">
  11846. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11847. :value="item.userid">
  11848. </el-option>
  11849. </el-select> -->
  11850. <!-- <el-input
  11851. v-model="worksSName"
  11852. style="width: 250px; margin: 15px 0px"
  11853. ></el-input> -->
  11854. </div>
  11855. <span slot="footer" class="dialog-footer">
  11856. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11857. <el-button type="primary" @click="updateName">确 定</el-button>
  11858. </span>
  11859. </el-dialog>
  11860. <el-dialog
  11861. title="英语写作"
  11862. :visible.sync="engDialogVisible"
  11863. :append-to-body="true"
  11864. width="800px"
  11865. :before-close="handleClose"
  11866. class="dialog_diy"
  11867. >
  11868. <onlineWrite
  11869. v-if="engDialogVisible"
  11870. :englishList="englishList"
  11871. :myAnswerList1="myAnswerList1"
  11872. ref="engJson"
  11873. ></onlineWrite>
  11874. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11875. <el-button @click="engDialogVisible = false">取 消</el-button>
  11876. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11877. </span>
  11878. </el-dialog>
  11879. <el-dialog
  11880. title="英语写作"
  11881. :visible.sync="engUpdateDialogVisible"
  11882. :append-to-body="true"
  11883. width="800px"
  11884. :before-close="handleClose"
  11885. class="dialog_diy fullStyle"
  11886. >
  11887. <div class="engUpBox">
  11888. <div class="engUpTop">
  11889. <div class="engTitle">
  11890. <div>作文题目:</div>
  11891. <div>{{ englishList1.engTitle }}</div>
  11892. </div>
  11893. <div class="engText">
  11894. <div>作文内容:</div>
  11895. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11896. </div>
  11897. </div>
  11898. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11899. <div class="oldBox">
  11900. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11901. <div class="oldText">
  11902. <div class="detailBox">
  11903. <div class="oldDetail">
  11904. <div>标题:</div>
  11905. <div>{{ oldEnglishJson.engTitle }} </div>
  11906. </div>
  11907. <div class="oldDetail1">
  11908. <div>正文:</div>
  11909. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11910. </div>
  11911. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11912. <div>图片:</div>
  11913. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11914. </div>
  11915. </div>
  11916. </div>
  11917. </div>
  11918. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11919. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11920. <div class="oldText">
  11921. <div class="detailBox" style="position: relative;">
  11922. <div class="oldDetail">
  11923. <div>标题:</div>
  11924. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11925. <div v-else v-html="newEnglishList.engTitle"></div>
  11926. </div>
  11927. <div class="oldDetail">
  11928. <div>正文:</div>
  11929. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11930. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11931. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11932. </div>
  11933. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11934. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11935. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11936. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11937. </div>
  11938. </div>
  11939. </div>
  11940. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11941. <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">
  11942. <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>
  11943. <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>
  11944. </div>
  11945. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11946. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11947. <div class="detailBox" style="position: relative;">
  11948. <div class="oldDetail">
  11949. <div>标题:</div>
  11950. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11951. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11952. </div>
  11953. <div class="oldDetail">
  11954. <div>正文:</div>
  11955. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11956. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11957. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  11958. </div>
  11959. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11960. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11961. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11962. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11963. </div>
  11964. </div>
  11965. <div class="oldText" v-else-if="newEngIndex == -1">
  11966. <div class="detailBox" style="position: relative;">
  11967. <div class="oldDetail">
  11968. <div>标题:</div>
  11969. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11970. <div v-else v-html="newEnglishList.engTitle"></div>
  11971. </div>
  11972. <div class="oldDetail">
  11973. <div>正文:</div>
  11974. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11975. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11976. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11977. </div>
  11978. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11979. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11980. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11981. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11982. </div>
  11983. </div>
  11984. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11985. <div class="detailBox" style="position: relative;">
  11986. <div class="oldDetail">
  11987. <div>标题:</div>
  11988. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11989. <div v-else>
  11990. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  11991. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11992. </div>
  11993. </div>
  11994. <div class="oldDetail">
  11995. <div>正文:</div>
  11996. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  11997. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11998. <div v-else>
  11999. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12000. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12001. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  12002. </div>
  12003. </div>
  12004. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12005. <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>
  12006. <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>
  12007. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12008. </div>
  12009. </div>
  12010. </div>
  12011. </div>
  12012. </div>
  12013. <span slot="footer" class="dialog-footer">
  12014. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12015. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12016. </span>
  12017. </el-dialog>
  12018. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12019. <interVideo
  12020. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12021. :videoJson="videoJson"
  12022. :userid="userid"
  12023. :id="id"
  12024. :courseType="courseType"
  12025. :taskCount="taskCount"
  12026. :toolindex="toolindex"
  12027. :videoType="videoType"
  12028. ></interVideo>
  12029. <UpdateMore
  12030. :dialogVisibleMember.sync="dialogVisibleMember"
  12031. :cList="uploadStudentJuri"
  12032. :userid="userid"
  12033. :searchTN="worksSName2"
  12034. @setPlname="setPlname"
  12035. ></UpdateMore>
  12036. <!-- <wordCloud
  12037. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12038. :data="wordCloudData"
  12039. ></wordCloud> -->
  12040. <el-dialog
  12041. title="词云"
  12042. :visible.sync="dialogVisibleWordCloud"
  12043. width="30%"
  12044. class="dialog_diy"
  12045. :before-close="handleClose">
  12046. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12047. </el-dialog>
  12048. <el-dialog
  12049. title="挑人"
  12050. :visible.sync="dialogVisiblePickPeople"
  12051. width="650px"
  12052. :before-close="handleClose"
  12053. class="dialog_diy"
  12054. center
  12055. >
  12056. <div class="pick_box">
  12057. <div
  12058. class="noWorksName"
  12059. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12060. v-for="(item, index) in uploadStudentJuri"
  12061. :key="index"
  12062. @click="pickStudent(item)"
  12063. >
  12064. {{ item.name }}
  12065. </div>
  12066. </div>
  12067. </el-dialog>
  12068. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12069. :englishVoiceJson='englishVoiceJson'
  12070. :userid="userid"
  12071. :id="id"
  12072. :courseType="courseType"
  12073. :taskCount="taskCount"
  12074. :toolindex="toolindex"
  12075. @selectSWorks="selectSWorks"
  12076. @selectStudent="selectStudent"
  12077. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12078. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12079. :userid="userid"
  12080. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12081. :commentDetail="commentDetail"
  12082. :courseDetail="courseDetail"
  12083. :wScore="wScore"
  12084. :scoreDetail="scoreDetail"
  12085. @selectSWorks="selectSWorks"
  12086. @selectStudent="selectStudent"></checkEnglishVoice>
  12087. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12088. <choseWorksDetailDialog
  12089. ref="choseWorksDetailDialogRef"
  12090. :worksStudentData="worksStudent"
  12091. :noWorksSData="noWorksS"
  12092. :chapInfoListData="chapInfoList"
  12093. :courseType="courseType"
  12094. :taskCount="taskCount"
  12095. :tType="tType"
  12096. :sIsOpen="sIsOpen"
  12097. :courseDetail="courseDetail"
  12098. :groupStudent2="groupStudent"
  12099. :groupStudentUid2="groupStudentUid"
  12100. :oid="oid"
  12101. :org="org"
  12102. @getCourseDetail="getCourseDetail"
  12103. @selectSLook="selectSLook"
  12104. @selectSWorks="selectSWorks"
  12105. @selectStudent="selectStudent"
  12106. @deleteWorks="deleteWorks"
  12107. @openTools="openTools"
  12108. @openWord="openWord"
  12109. @openScore="openScore"
  12110. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12111. />
  12112. <el-dialog
  12113. :visible.sync="confirmOpenDig"
  12114. width="500px"
  12115. :modal="false"
  12116. class="confirmOpenDigCss dialog_diyCopy"
  12117. :before-close="handleClose">
  12118. <div style="display: flex;align-items: center;">
  12119. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  12120. <span>“{{ courseDetail.title }}”开课啦</span>
  12121. </div>
  12122. <div style="margin: 20px 0 35px;">
  12123. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12124. <div>要认真听讲哦~</div>
  12125. </div>
  12126. <div style="text-align: center;">
  12127. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12128. </div>
  12129. </el-dialog>
  12130. </div>
  12131. </template>
  12132. <script>
  12133. import "../../common/aws-sdk-2.235.1.min.js";
  12134. // import pdf from "../components/pdf3";
  12135. import pdf from "../components/vpdf";
  12136. import AskStatic from "../components/askStatic";
  12137. import AskStatic2 from "../components/askStatic2";
  12138. import AnswerData2 from "../components/answerData2";
  12139. import AnswerData from "../components/answerData";
  12140. import EditorBar from "../tools/wangEnduit.vue";
  12141. import Table from "../tools/table.vue";
  12142. import Time from "../tools/time.vue";
  12143. import Mind from "../tools/jsmind.vue";
  12144. import Sunburst from "../tools/sunburst";
  12145. import SeeBoard from "../tools/seeBoard";
  12146. import * as imageConversion from "image-conversion";
  12147. import Audio from "../components/audio.vue";
  12148. import ImgDraw from "../tools/imgDraw/imgDraw";
  12149. import { Empty } from "element-ui";
  12150. import RecordRTC from "recordrtc";
  12151. import interVideo from "../interVideo/index.vue";
  12152. import UpdateMore from "../updateMore/updateMore.vue";
  12153. import wordCloud from "../wordCloud/index.vue";
  12154. import axios from "axios";
  12155. import JSZip from "jszip";
  12156. import FileSaver from "file-saver";
  12157. import onlineWrite from "./commpont/onlineWrite";
  12158. import englishEva from "../components/englishEva";
  12159. import * as Diff from 'diff'
  12160. import EnglishVoice from '../EnglishVoice2/index.vue'
  12161. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  12162. import correctText from '../components/correctText.vue'
  12163. import scoreItem from '../scoreList/scoreItem.vue'
  12164. import scoreZong from '../scoreZong/index.vue'
  12165. import classRoomHelper from '../classRoomHelper/index.vue'
  12166. import MarkdownIt from "markdown-it";
  12167. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  12168. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  12169. import { v4 as uuidv4 } from "uuid";
  12170. var OpenCC = require("opencc-js");
  12171. import choseWordCloud from '../components/choseWordCloud.vue'
  12172. let converter = OpenCC.Converter({
  12173. from: "hk",
  12174. to: "cn"
  12175. });
  12176. const getFile = (url) => {
  12177. return new Promise((resolve, reject) => {
  12178. var credentials = {
  12179. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12180. secretAccessKey: "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",
  12181. }; //秘钥形式的登录上传
  12182. window.AWS.config.update(credentials);
  12183. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12184. let url2 = url;
  12185. let _url2 = "";
  12186. if (
  12187. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12188. ) {
  12189. _url2 = url2.split(
  12190. "https://view.officeapps.live.com/op/view.aspx?src="
  12191. )[1];
  12192. } else {
  12193. _url2 = url2;
  12194. }
  12195. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12196. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12197. var params = {
  12198. Bucket: "ccrb",
  12199. Key: name
  12200. };
  12201. s3.getObject(params, function (err, data) {
  12202. if (err) {
  12203. console.log(err, err.stack)
  12204. resolve({ data: 1 });
  12205. }else {
  12206. resolve({ data: data.Body });
  12207. console.log(data);
  12208. } // sxuccessful response
  12209. });
  12210. // axios({
  12211. // method: "get",
  12212. // url,
  12213. // responseType: "blob",
  12214. // })
  12215. // .then((data) => {
  12216. // resolve({ data: data.data });
  12217. // })
  12218. // .catch((error) => {
  12219. // resolve({ data: 1 });
  12220. // // reject(error.toString());
  12221. // });
  12222. });
  12223. };
  12224. export default {
  12225. components: {
  12226. choseWordCloud,
  12227. EditorBar,
  12228. Time,
  12229. pdf,
  12230. AskStatic,
  12231. AskStatic2,
  12232. Mind,
  12233. Sunburst,
  12234. SeeBoard,
  12235. AnswerData2,
  12236. AnswerData,
  12237. Audio,
  12238. ImgDraw,
  12239. Table,
  12240. interVideo,
  12241. UpdateMore,
  12242. wordCloud,
  12243. onlineWrite,
  12244. englishEva,
  12245. EnglishVoice,
  12246. checkEnglishVoice,
  12247. correctText,
  12248. scoreItem,
  12249. classRoomHelper,
  12250. scoreZong,
  12251. statisticalAnalysis,
  12252. choseWorksDetailDialog
  12253. },
  12254. data() {
  12255. return {
  12256. wordCloudKey: 0,
  12257. bg: null,
  12258. drawShow: false,
  12259. dialogVisible: false,
  12260. dialogVisiblePl: false,
  12261. commentDialogVisible: false,
  12262. dialogVisibleMember: false,
  12263. dialogVisibleWordCloud: false,
  12264. videoVisible: false,
  12265. isStar: false,
  12266. studentEvalDialogVisible: false,
  12267. studentEvalDialogVisibleTeacher: false,
  12268. dialogVisibleSelect: false,
  12269. dialogVisibleSelectTeacher: false,
  12270. dialogVisibleScore: false,
  12271. dialogVisibleENScore: false,
  12272. dialogVisibleSentence: false,
  12273. dialogVisibleSentenceTeacher: false,
  12274. dialogVisibleSentence1: false,
  12275. dialogVisibleWorks: false,
  12276. dialogVisibleTable: false,
  12277. dialogVisibleTableTeacher: false,
  12278. dialogVisibleWord: false,
  12279. dialogVisibleWordTeacher: false,
  12280. dialogVisibleTable2: false,
  12281. dialogVisibleTable3: false,
  12282. dialogVisibleGroupWork: false,
  12283. dialogVisibleUpdateGroup: false,
  12284. dialogVisibleDeleteGroup: false,
  12285. dialogVisibleSname: false,
  12286. dialogVisibleVideo: false,
  12287. dialogVisiblePickPeople: false,
  12288. worksSName: "",
  12289. classJuri: [],
  12290. uploadStudentJuri: [],
  12291. uploadCid: "",
  12292. snameWid: "",
  12293. sStudent: {},
  12294. sTool: "",
  12295. bzText: "",
  12296. commentDetail: [],
  12297. selectAnswer: [],
  12298. videoDetail: {},
  12299. selectJson: {},
  12300. eScore: { eBzText: "", eStar: [] },
  12301. id: this.$route.query.courseId,
  12302. userid: this.$route.query.userid,
  12303. classId: this.$route.query.cid,
  12304. // courseTypeLine: this.$route.query.type,
  12305. oid: this.$route.query.oid,
  12306. org: this.$route.query.org,
  12307. tType: this.$route.query.tType,
  12308. courseType: this.$route.query.type,
  12309. screenType: this.$route.query.screenType,
  12310. tcid2: this.$route.query.tcid,
  12311. tcid: "",
  12312. pptImgUrl: "",
  12313. pptImgUrl1: "",
  12314. commentText: "",
  12315. full: false,
  12316. sIsOpen: false,
  12317. IsLookOpen: false,
  12318. IsFollow: false,
  12319. pzDialog: false,
  12320. contentDialog: false,
  12321. mlDialog: false,
  12322. type: 1,
  12323. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12324. sentenceList1: [],
  12325. tableJson: [],
  12326. tableJsonO: [],
  12327. wordJson: [],
  12328. wordJsonO: [],
  12329. vedio: [],
  12330. text: [],
  12331. textList: [],
  12332. line: [],
  12333. lineList: [],
  12334. chapTools: [],
  12335. chapToolList: [],
  12336. file: [],
  12337. fileC: [],
  12338. vedioTime: [],
  12339. upToolImg: "",
  12340. preTime: 0,
  12341. rateList: {
  12342. ca: 0,
  12343. },
  12344. rateParams: [],
  12345. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12346. studyJuri: [
  12347. {
  12348. content: "",
  12349. cover: [],
  12350. upVedio: [],
  12351. upFile: [],
  12352. },
  12353. ],
  12354. isClose: 0,
  12355. plworkFile: [],
  12356. mr: require("../../assets/vedioPic.png"),
  12357. word: require("../../assets/icon/isWord.png"),
  12358. word2: require("../../assets/icon/word2.png"),
  12359. video: require("../../assets/icon/isVideo.png"),
  12360. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12361. likes: require("../../assets/icon/comment/likes.png"),
  12362. scoreImg: require("../../assets/score.png"),
  12363. courseDetail: {},
  12364. reply: "",
  12365. isSelect: false,
  12366. chapInfo: [],
  12367. chapInfoList: [],
  12368. taskCount: 0,
  12369. imgList: [],
  12370. noImgList: [],
  12371. pzList: [],
  12372. timeWorkList: [],
  12373. PlTextList: [
  12374. "Excellent!",
  12375. "nice!",
  12376. "很有创意!",
  12377. "还不错哦~",
  12378. "继续努力哦~",
  12379. ],
  12380. isClickNav: "",
  12381. navId: "",
  12382. playerOptions: {
  12383. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12384. autoplay: false, //如果true,浏览器准备好时开始回放。
  12385. muted: false, // 默认情况下将会消除任何音频。
  12386. loop: false, // 导致视频一结束就重新开始。
  12387. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12388. language: "zh-CN",
  12389. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12390. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12391. sources: [
  12392. {
  12393. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12394. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12395. },
  12396. ],
  12397. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12398. // poster: dataRes.imgUrl, //你的封面地址
  12399. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12400. controlBar: {
  12401. timeDivider: true, //当前时间和持续时间的分隔符
  12402. durationDisplay: true, //显示持续时间
  12403. remainingTimeDisplay: false, //是否显示剩余时间功能
  12404. fullscreenToggle: true, //全屏按钮
  12405. },
  12406. },
  12407. playerOptions1: {
  12408. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12409. autoplay: false, //如果true,浏览器准备好时开始回放。
  12410. muted: false, // 默认情况下将会消除任何音频。
  12411. loop: false, // 导致视频一结束就重新开始。
  12412. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12413. language: "zh-CN",
  12414. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12415. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12416. sources: [
  12417. {
  12418. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12419. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12420. },
  12421. ],
  12422. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12423. // poster: dataRes.imgUrl, //你的封面地址
  12424. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12425. controlBar: {
  12426. timeDivider: true, //当前时间和持续时间的分隔符
  12427. durationDisplay: true, //显示持续时间
  12428. remainingTimeDisplay: false, //是否显示剩余时间功能
  12429. fullscreenToggle: true, //全屏按钮
  12430. },
  12431. },
  12432. playerO: {},
  12433. noneBtnImg: false,
  12434. proVisible: false,
  12435. proVisible2: false,
  12436. progress: 0,
  12437. isFinishSize: 0,
  12438. isAllSize: 0,
  12439. questionAnswer: "",
  12440. answerQ: "", //问答标题
  12441. rateJson: [],
  12442. wbCount: 0,
  12443. wordCount: 0,
  12444. mindCount: 0,
  12445. askCount: 0,
  12446. noteCount: 0,
  12447. mindNetWorkCount: 0,
  12448. libraryCount: 0,
  12449. workCount: 0,
  12450. timeCount: 0,
  12451. answerCount: 0,
  12452. trainCount: 0,
  12453. evalCount: 0,
  12454. dialogImageUrl: "",
  12455. pictureDialog: false,
  12456. toolTypeList: [],
  12457. dialogVisible1: false,
  12458. dialogVisible2: false,
  12459. dialogVisible3: false,
  12460. dialogVisible6: false,
  12461. dialogVisible4: false,
  12462. isNoHomeWork: false,
  12463. dialogVisible5: false,
  12464. dialogVisible5Teacher: false,
  12465. dialogVisibleChoice: false,
  12466. dialogVisibleChoiceTeacher: false,
  12467. answerDialogVisible: false,
  12468. answerDialogVisibleTeacher: false,
  12469. juriVisible: false,
  12470. timeDialogVisible: false,
  12471. replyDialogVisible: false,
  12472. toolDialogVisible: false,
  12473. engDialogVisible: false,
  12474. engUpdateDialogVisible:false,
  12475. engEvaDialogVisible: false,
  12476. evaEngJson: {
  12477. teacherJson: {},
  12478. studentJson: {},
  12479. message: {},
  12480. },
  12481. isNoUserid:false,
  12482. engListLength:0,
  12483. engWid:"",
  12484. newEnglishList:{
  12485. engTitle:"",
  12486. engText:"",
  12487. },
  12488. newEnglishList1:[],
  12489. oldEnglishJson:{},
  12490. oldEnglishJson1:{},
  12491. englishList1:{},
  12492. englishList:{},
  12493. myAnswerList1:{},
  12494. topHeight:0,
  12495. newEngIndex:-1,
  12496. englishToolIndex:0,
  12497. userMes:{},
  12498. englishToolIndex:0,
  12499. replyIndex: 0,
  12500. replyPid: "",
  12501. radio: [],
  12502. isAsk: false,
  12503. askJson: {
  12504. askCount: 1,
  12505. askTitle: "",
  12506. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12507. },
  12508. testJson: {},
  12509. englishList: {},
  12510. topHeight:0,
  12511. checkJson: [],
  12512. askList: [],
  12513. answerList: [],
  12514. navList: [],
  12515. addPzDialog: false,
  12516. pzConText: "",
  12517. worksStudent: [],
  12518. isCloseList: [],
  12519. workStudent: [],
  12520. groupStudent: [],
  12521. groupStudentUid: [],
  12522. noWorksS: [],
  12523. isWorksS: [],
  12524. noWorksStudent: [],
  12525. toolindex: 0,
  12526. toolDetailIndex: null,
  12527. groupIndex: 0,
  12528. workTypeB: false,
  12529. workTypeC: false,
  12530. isAnswer: false,
  12531. isHovered: false,
  12532. isHovered1: false,
  12533. isHovered2: false,
  12534. commentTagShow:0,
  12535. timer: null,
  12536. timer2: null,
  12537. opertimer: null,
  12538. showType: '',
  12539. fileType: 0,
  12540. showPDF: false,
  12541. noteName: "",
  12542. evaJuri: [],
  12543. evalua: "",
  12544. eTitle: "",
  12545. eName: "",
  12546. eJson: {},
  12547. fid: "", //一级
  12548. sid: "", //二级
  12549. tid: "", //二级
  12550. typeMode: 1,
  12551. eJSONNum: 0,
  12552. Etype: 1,
  12553. data: {
  12554. meta: {
  12555. name: "example",
  12556. author: "dd@163.com",
  12557. version: "0.2",
  12558. },
  12559. format: "node_array",
  12560. data: [{ id: "root", isroot: true, topic: "" }],
  12561. },
  12562. fullDialogVisible: false,
  12563. fulltype: "",
  12564. fullUrl: "",
  12565. commentIndexJson: {},
  12566. Stbodywidth: 0,
  12567. ispzType: 0,
  12568. pzType: 1,
  12569. wScore: 0,
  12570. scoreDetail: "",
  12571. videoStart: false,
  12572. recorder: null,
  12573. groupJson: {},
  12574. islock: false,
  12575. groupJson2: {},
  12576. dialogVisibleGroup: false,
  12577. dialogVisibleGroup2: false,
  12578. updateGroupArray: [],
  12579. updateGroupUser: {},
  12580. deleteGroupUser: [],
  12581. deleteGroupArray: {},
  12582. checkChair: "",
  12583. checkDeleteGroup: [],
  12584. inviteCode: "",
  12585. courseGroupStudent: [],
  12586. courseGroupStudentUid: [],
  12587. courseGroup: {},
  12588. isGroup: false,
  12589. toolIndex: null,
  12590. tool: {},
  12591. isWorkTool: [
  12592. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12593. ], //, 40
  12594. videoJson: {},
  12595. videoType:0,
  12596. toolType: 0,
  12597. checktoolArray: [],
  12598. vChapterData: [],
  12599. isUpdateToolDetail: false,
  12600. isUpdateToolDetail1: false,
  12601. updateToolDetailInner: "",
  12602. checkboxList: [],
  12603. plIndex: "",
  12604. worksSName2: "",
  12605. worksSid: "",
  12606. wordCloudData: [],
  12607. isPickStudent: [],
  12608. pzStype: 1,
  12609. myAnList: {},
  12610. downLoading: false,
  12611. greyType: false,
  12612. correctWord: [],
  12613. EnglishVoiceDialog: false,
  12614. englishVoiceJson: {},
  12615. englishVoiceJsonWork:[],
  12616. scoreList:{
  12617. listdata:[],
  12618. isScoreList:[],
  12619. },
  12620. classRoomHelperWidth: '85px',
  12621. orgArray:[],
  12622. oidArray:[],
  12623. splitScreenData:{
  12624. isOpen:false,
  12625. userId:"",
  12626. uid:"",
  12627. myUid:"",
  12628. loading:false,
  12629. behavior:null,
  12630. },
  12631. confirmOpenDig:false,
  12632. confirmOpenDigData:''
  12633. };
  12634. },
  12635. methods: {
  12636. getAIJ(){
  12637. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12638. let oid = res.data[0];
  12639. let org = res.data[1];
  12640. let oidArray = [];
  12641. let orgArray = [];
  12642. oid.forEach(i=>oidArray.push(i.oid))
  12643. org.forEach(i=>orgArray.push(i.oid))
  12644. this.orgArray = orgArray;
  12645. this.oidArray = oidArray;
  12646. })
  12647. },
  12648. insertMemorandum(_html){//保存行为操作
  12649. //variable
  12650. //btn
  12651. let params = [{
  12652. uid:this.userid,
  12653. courseId:this.id+(this.tcid2?this.tcid2:''),
  12654. content:_html
  12655. }]
  12656. console.log(params)
  12657. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12658. if(res.data==1){
  12659. console.log('保存操作成功')
  12660. }else{
  12661. console.log('保存操作失败')
  12662. }
  12663. }).catch(e=>{
  12664. console.log('保存操作失败')
  12665. console.log(e)
  12666. })
  12667. },
  12668. gx(){
  12669. this.$forceUpdate();
  12670. },
  12671. isUpdateCorrect(t,p){
  12672. if(this.greyType == false){
  12673. this.isUpdateText = t;
  12674. this.greyType = true;
  12675. }else{
  12676. if(p == 1){
  12677. this.newEnglishList.engText = this.isUpdateText;
  12678. }else if(p == 2){
  12679. this.oldEnglishJson1.engText = this.isUpdateText;
  12680. }else if(p == 3){
  12681. this.newEnglishList.engText = this.isUpdateText;
  12682. }else{
  12683. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12684. }
  12685. this.greyType = false
  12686. }
  12687. },
  12688. aiCorrect(t,p){
  12689. let aiText = "";
  12690. const loading = this.$loading.service({
  12691. background: "rgba(255, 255, 255)",
  12692. target: document.querySelectorAll(".loadingText")[0],
  12693. });
  12694. let param = {
  12695. model: "gpt-3.5-turbo",
  12696. temperature: 0,
  12697. max_tokens: 2048,
  12698. top_p: 1,
  12699. frequency_penalty: 0,
  12700. presence_penalty: 0,
  12701. messages: [
  12702. {
  12703. role: "user",
  12704. content:
  12705.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12706. },
  12707. ],
  12708. uid: this.userid,
  12709. stream: false,
  12710. };
  12711. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12712. (res) => {
  12713. if (
  12714. res.data.FunctionResponse &&
  12715. res.data.FunctionResponse.result &&
  12716. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12717. ) {
  12718. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12719. return;
  12720. }
  12721. aiText =
  12722. res.data.FunctionResponse.choices[0].message.content;
  12723. aiText = aiText.replace(/%/g,"%25");
  12724. // let w = "";
  12725. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12726. // for(var k = 0;k<a.length;k++){
  12727. // //diffWordsWithSpace
  12728. // if(a.length > 1){
  12729. // if(a[k].added == true){
  12730. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12731. // }else if(a[k].removed == true){
  12732. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12733. // }else{
  12734. // w += '<span>' + a[k].value + '</span>';
  12735. // }
  12736. // }else{
  12737. // if(p == 1){
  12738. // w = this.newEnglishList.engText;
  12739. // }else if(p == 2){
  12740. // w = this.oldEnglishJson1.engText;
  12741. // }else if(p == 3){
  12742. // w = this.newEnglishList.engText;
  12743. // }else{
  12744. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12745. // }
  12746. // }
  12747. // }
  12748. if(p == 1){
  12749. this.newEnglishList.engText = aiText;
  12750. }else if(p == 2){
  12751. this.oldEnglishJson1.engText = aiText;
  12752. }else if(p == 3){
  12753. this.newEnglishList.engText = aiText;
  12754. }else{
  12755. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12756. }
  12757. loading.close();
  12758. },
  12759. (err) => {
  12760. console.log(err);
  12761. loading.close();
  12762. }
  12763. );
  12764. },
  12765. addToolChoose() {
  12766. if (!this.checktoolArray.length) {
  12767. this.$message.error("请选择要添加的任务");
  12768. return;
  12769. }
  12770. if (
  12771. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12772. this.taskCount
  12773. ].toolChoose[0].tool.length
  12774. ) {
  12775. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12776. this.taskCount
  12777. ].toolChoose[0].tool = this.checktoolArray;
  12778. } else {
  12779. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12780. this.taskCount
  12781. ].toolChoose.push({
  12782. tool: this.checktoolArray,
  12783. toolDetail: "",
  12784. toolType: 0,
  12785. askCount: 1,
  12786. askTitle: "",
  12787. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12788. });
  12789. }
  12790. let params = [
  12791. {
  12792. cid: this.id,
  12793. chapters: JSON.stringify(this.chapInfoList),
  12794. uid: this.userid,
  12795. unitIndex: this.courseType,
  12796. },
  12797. ];
  12798. this.ajax
  12799. .post(this.$store.state.api + "updateWorkNew4", params)
  12800. .then((res) => {
  12801. this.$message({
  12802. message: "添加成功",
  12803. type: "success",
  12804. });
  12805. this.checktoolArray = [];
  12806. this.getCourseDetail(2);
  12807. this.checkBz(
  12808. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12809. this.taskCount
  12810. ].toolChoose.length - 1
  12811. );
  12812. this.toolDialogVisible = false;
  12813. this.refreshCourse();
  12814. this.$forceUpdate();
  12815. })
  12816. .catch((err) => {
  12817. console.error(err);
  12818. });
  12819. },
  12820. checkBz(index) {
  12821. this.isUpdateToolDetail = false;
  12822. this.$forceUpdate();
  12823. setTimeout(() => {
  12824. document.scrollingElement.scrollTop =
  12825. document.querySelectorAll(".filebox")[index].offsetTop +
  12826. document.querySelector(".student_body").offsetTop;
  12827. }, 500);
  12828. },
  12829. updateToolDetail(i, type) {
  12830. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12831. this.toolDetailIndex = i
  12832. this.isUpdateToolDetail1 = true;
  12833. setTimeout(() => {
  12834. this.updateToolDetailInner = JSON.parse(
  12835. JSON.stringify(
  12836. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12837. this.taskCount
  12838. ].toolChoose[i].toolDetail
  12839. )
  12840. );
  12841. document.querySelector(".checkTextArea").focus();
  12842. }, 0);
  12843. } else if((this.isUpdateToolDetail1 && type != 2)){
  12844. // this.toolDetailIndex = i;
  12845. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12846. this.taskCount
  12847. ].toolChoose[i].toolDetail = JSON.parse(
  12848. JSON.stringify(this.updateToolDetailInner)
  12849. );
  12850. let params = [
  12851. {
  12852. cid: this.id,
  12853. chapters: JSON.stringify(this.chapInfoList),
  12854. uid: this.userid,
  12855. unitIndex: this.courseType,
  12856. },
  12857. ];
  12858. this.ajax
  12859. .post(this.$store.state.api + "updateWorkNew4", params)
  12860. .then((res) => {
  12861. this.isUpdateToolDetail1 = false;
  12862. this.$message({
  12863. message: "修改成功",
  12864. type: "success",
  12865. });
  12866. this.toolDetailIndex = null;
  12867. this.updateToolDetailInner = "";
  12868. this.getCourseDetail(2);
  12869. this.$forceUpdate();
  12870. })
  12871. .catch((err) => {
  12872. console.error(err);
  12873. });
  12874. } else if((this.isUpdateToolDetail1 && type == 2)){
  12875. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12876. this.taskCount
  12877. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12878. JSON.stringify(this.updateToolDetailInner)
  12879. );
  12880. let params = [
  12881. {
  12882. cid: this.id,
  12883. chapters: JSON.stringify(this.chapInfoList),
  12884. uid: this.userid,
  12885. unitIndex: this.courseType,
  12886. },
  12887. ];
  12888. this.ajax
  12889. .post(this.$store.state.api + "updateWorkNew4", params)
  12890. .then((res) => {
  12891. this.$message({
  12892. message: "修改成功",
  12893. type: "success",
  12894. });
  12895. this.toolDetailIndex = i;
  12896. this.isUpdateToolDetail1 = true;
  12897. setTimeout(() => {
  12898. this.updateToolDetailInner = JSON.parse(
  12899. JSON.stringify(
  12900. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12901. this.taskCount
  12902. ].toolChoose[i].toolDetail
  12903. )
  12904. );
  12905. document.querySelector(".checkTextArea").focus();
  12906. }, 0);
  12907. this.getCourseDetail(2);
  12908. this.$forceUpdate();
  12909. })
  12910. .catch((err) => {
  12911. console.error(err);
  12912. });
  12913. }
  12914. },
  12915. jumpGj(i, j, k, l) {
  12916. for (var z = 0; z < this.navList.length; z++) {
  12917. for (var q = 0; q < this.navList[z].task.length; q++) {
  12918. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12919. this.navList[z].task[q].tool[w].isTool = false;
  12920. }
  12921. }
  12922. }
  12923. console.log(this.navList);
  12924. this.navList[i].task[j].tool[k].isTool =
  12925. !this.navList[i].task[j].tool[k].isTool;
  12926. var a = document.scrollingElement;
  12927. let target = document.querySelector(`#gj${k}`);
  12928. if (target) {
  12929. // target.scrollIntoView(true);
  12930. // setTimeout(() => {
  12931. // a.scrollTop = a.scrollTop - 150;
  12932. // }, 0);
  12933. target.scrollIntoView();
  12934. setTimeout(()=>{
  12935. let scrollBody = document.querySelector('.body_student').parentElement
  12936. scrollBody.scrollTop = scrollBody.scrollTop - 100
  12937. }, 0);
  12938. }
  12939. this.navId = ""
  12940. let flag = this.courseType == i;
  12941. let flag2 = this.taskCount == j
  12942. if (l) {
  12943. this.courseType = i;
  12944. // this.navId = l;
  12945. this.taskCount = j;
  12946. this.selectPz();
  12947. this.getHomeWork();
  12948. this.getCourseDetail(2);
  12949. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  12950. if(flag){
  12951. if(flag2){
  12952. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12953. }else{
  12954. 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>`)
  12955. }
  12956. }else{
  12957. 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>`)
  12958. }
  12959. }
  12960. // var b = this.$refs["bz" + k][0];
  12961. // a.scrollTop = b.offsetTop;
  12962. },
  12963. addTools2(i) {
  12964. if (i == 4) {
  12965. // this.openTools2(4);
  12966. this.$message.error("暂未开放");
  12967. return;
  12968. }
  12969. if (i == 45) {
  12970. // this.openTools2(45);
  12971. this.$message.error("暂未开放");
  12972. return;
  12973. }
  12974. if (i == 47) {
  12975. // this.openTools2(47);
  12976. this.$message.error("暂未开放");
  12977. return;
  12978. }
  12979. if (i == 49) {
  12980. // this.openTools2(49);
  12981. this.$message.error("暂未开放");
  12982. return;
  12983. }
  12984. if (i == 62) {
  12985. // this.openTools(itemTaskIndex, 62, toolIndex);
  12986. this.$message.error("暂未开放");
  12987. return;
  12988. }
  12989. if (i == 15) {
  12990. // this.openTools(itemTaskIndex, 15, toolIndex);
  12991. this.$message.error("暂未开放");
  12992. return;
  12993. }
  12994. if (i == 40) {
  12995. // this.openTools(itemTaskIndex, 40, toolIndex);
  12996. this.$message.error("暂未开放");
  12997. return;
  12998. }
  12999. if (i == 41) {
  13000. // this.openTools(itemTaskIndex, 41, toolIndex);
  13001. this.$message.error("暂未开放");
  13002. return;
  13003. }
  13004. if (i == 42) {
  13005. // this.openTools(itemTaskIndex, 42, toolIndex);
  13006. this.$message.error("暂未开放");
  13007. return;
  13008. }
  13009. if (this.checktoolArray.length > 0) {
  13010. if (this.checktoolArray.indexOf(i) != -1) {
  13011. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13012. } else {
  13013. this.checktoolArray = [];
  13014. this.checktoolArray.push(i);
  13015. }
  13016. } else {
  13017. this.checktoolArray.push(i);
  13018. }
  13019. this.$forceUpdate();
  13020. },
  13021. jump() {
  13022. window.parent.postMessage({ tools: "43" }, "*");
  13023. },
  13024. getUpdateMore(f, checkboxList, searchTN, index) {
  13025. this.dialogVisibleMember = f;
  13026. this.checkboxList = checkboxList;
  13027. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13028. this.plIndex = index;
  13029. },
  13030. setPlname(a) {
  13031. if (this.plworkFile.length) {
  13032. this.plworkFile[this.plIndex].username = a;
  13033. } else {
  13034. this.worksSName = a;
  13035. }
  13036. this.dialogVisibleMember = false;
  13037. },
  13038. previewImg(url,w) {
  13039. this.$hevueImgPreview(url);
  13040. if(w){
  13041. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13042. }
  13043. },
  13044. checkImg(list) {
  13045. if (!list.length) {
  13046. return;
  13047. }
  13048. this.$hevueImgPreview({
  13049. multiple: true, // 开启多图预览模式
  13050. imgList: list, // 需要预览的多图数组
  13051. });
  13052. },
  13053. change(val) {
  13054. console.log(val);
  13055. },
  13056. goTo(path) {
  13057. this.$router.push(path);
  13058. },
  13059. handlePictureCardPreview(url) {
  13060. this.dialogImageUrl = url;
  13061. this.pictureDialog = true;
  13062. },
  13063. clean(type) {
  13064. if (type == 1) {
  13065. this.studyJuri[0].cover.splice(0, 1);
  13066. } else if (type == 2) {
  13067. this.studyJuri[0].upVedio.splice(0, 1);
  13068. } else {
  13069. this.studyJuri[0].upFile.splice(0, 1);
  13070. }
  13071. },
  13072. clean2(index) {
  13073. this.plworkFile.splice(index, 1);
  13074. },
  13075. handleClose(done) {
  13076. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13077. this.videoDetail.sources[0].src = "";
  13078. }
  13079. this.commentIndexJson = {};
  13080. this.changeSplitScreenBehavior({code:99})
  13081. done();
  13082. },
  13083. fullTools() {
  13084. this.full = !this.full;
  13085. },
  13086. imgChange(file, fileList, type) {
  13087. if (type == 1) {
  13088. var _tmp = this.studyJuri[0].cover;
  13089. } else if (type == 2) {
  13090. var _tmp = this.studyJuri[0].upVedio;
  13091. } else {
  13092. var _tmp = this.studyJuri[0].upFile;
  13093. }
  13094. this.noneBtnImg = _tmp.length >= 1;
  13095. },
  13096. setContent(bool) {
  13097. this.contentDialog = bool;
  13098. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13099. document.querySelector(".workd_media").style.height = "650px";
  13100. } else if (document.querySelector(".workd_media")) {
  13101. document.querySelector(".workd_media").style.height = "auto";
  13102. }
  13103. },
  13104. setContent2(bool) {
  13105. this.mlDialog = bool;
  13106. if (
  13107. bool &&
  13108. this.contentDialog &&
  13109. document.querySelector(".workd_media")
  13110. ) {
  13111. document.querySelector(".workd_media").style.height = "650px";
  13112. } else if (document.querySelector(".workd_media")) {
  13113. document.querySelector(".workd_media").style.height = "auto";
  13114. }
  13115. },
  13116. openToolAll() {
  13117. this.toolDialogVisible = true;
  13118. },
  13119. addImg(e) {
  13120. var el = e.currentTarget;
  13121. // this.$message.success('触发上传')
  13122. el.getElementsByTagName("input")[0].click();
  13123. e.target.value = "";
  13124. },
  13125. addSelectAnswer() {
  13126. let params = [
  13127. {
  13128. uid: this.userid,
  13129. cid: this.id,
  13130. stage: this.courseType,
  13131. task: this.taskCount,
  13132. tool: this.toolindex,
  13133. content: this.selectAnswer.answer,
  13134. type: 7,
  13135. },
  13136. ];
  13137. this.ajax
  13138. .post(this.$store.state.api + "addCourseWorks", params)
  13139. .then((res) => {
  13140. this.$message({
  13141. message: "提交成功",
  13142. type: "success",
  13143. });
  13144. this.dialogVisibleSelect = false;
  13145. // this.selectAnswer = {};
  13146. this.selectSWorks();
  13147. this.selectStudent();
  13148. })
  13149. .catch((err) => {
  13150. this.$message.error("提交失败");
  13151. console.error(err);
  13152. });
  13153. },
  13154. addSelectAnswerTeacher() {
  13155. let params = [
  13156. {
  13157. uid: this.sStudent.userid,
  13158. cid: this.id,
  13159. stage: this.courseType,
  13160. task: this.taskCount,
  13161. tool: this.toolindex,
  13162. content: this.selectAnswer.answer,
  13163. type: 7,
  13164. },
  13165. ];
  13166. this.ajax
  13167. .post(this.$store.state.api + "addCourseWorks", params)
  13168. .then((res) => {
  13169. this.$message({
  13170. message: "提交成功",
  13171. type: "success",
  13172. });
  13173. this.dialogVisibleSelectTeacher = false;
  13174. // this.selectAnswer = {};
  13175. this.selectSWorks();
  13176. this.selectStudent();
  13177. })
  13178. .catch((err) => {
  13179. this.$message.error("提交失败");
  13180. console.error(err);
  13181. });
  13182. },
  13183. addSenWorks() {
  13184. for (var i = 0; i < this.sentenceList.length; i++) {
  13185. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13186. if (
  13187. this.sentenceList[i].chooseSenList[j] == undefined ||
  13188. this.sentenceList[i].chooseSenList[j] == ""
  13189. ) {
  13190. this.$message.error("请将答案填写完整!");
  13191. return;
  13192. }
  13193. }
  13194. }
  13195. let params = [
  13196. {
  13197. uid: this.userid,
  13198. cid: this.id,
  13199. stage: this.courseType,
  13200. task: this.taskCount,
  13201. tool: this.toolindex,
  13202. content: JSON.stringify(this.sentenceList),
  13203. type: 9,
  13204. },
  13205. ];
  13206. this.ajax
  13207. .post(this.$store.state.api + "addCourseWorks", params)
  13208. .then((res) => {
  13209. this.$message({
  13210. message: "提交成功",
  13211. type: "success",
  13212. });
  13213. this.dialogVisibleSentence = false;
  13214. // this.selectAnswer = {};
  13215. this.selectSWorks();
  13216. this.selectStudent();
  13217. })
  13218. .catch((err) => {
  13219. this.$message.error("提交失败");
  13220. console.error(err);
  13221. });
  13222. },
  13223. addSenWorksTeacher() {
  13224. for (var i = 0; i < this.sentenceList.length; i++) {
  13225. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13226. if (
  13227. this.sentenceList[i].chooseSenList[j] == undefined ||
  13228. this.sentenceList[i].chooseSenList[j] == ""
  13229. ) {
  13230. this.$message.error("请将答案填写完整!");
  13231. return;
  13232. }
  13233. }
  13234. }
  13235. let params = [
  13236. {
  13237. uid: this.sStudent.userid,
  13238. cid: this.id,
  13239. stage: this.courseType,
  13240. task: this.taskCount,
  13241. tool: this.toolindex,
  13242. content: JSON.stringify(this.sentenceList),
  13243. type: 9,
  13244. },
  13245. ];
  13246. this.ajax
  13247. .post(this.$store.state.api + "addCourseWorks", params)
  13248. .then((res) => {
  13249. this.$message({
  13250. message: "提交成功",
  13251. type: "success",
  13252. });
  13253. this.dialogVisibleSentenceTeacher = false;
  13254. // this.selectAnswer = {};
  13255. this.selectSWorks();
  13256. this.selectStudent();
  13257. })
  13258. .catch((err) => {
  13259. this.$message.error("提交失败");
  13260. console.error(err);
  13261. });
  13262. },
  13263. returnTableText() {
  13264. this.$confirm("确定还原此模板吗?", "提示", {
  13265. confirmButtonText: "确定",
  13266. cancelButtonText: "取消",
  13267. type: "warning",
  13268. })
  13269. .then(() => {
  13270. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13271. })
  13272. .catch(() => {});
  13273. },
  13274. addTableWorks() {
  13275. let params = [
  13276. {
  13277. uid: this.userid,
  13278. cid: this.id,
  13279. stage: this.courseType,
  13280. task: this.taskCount,
  13281. tool: this.toolindex,
  13282. content: JSON.stringify(this.tableJson),
  13283. type: 10,
  13284. },
  13285. ];
  13286. this.ajax
  13287. .post(this.$store.state.api + "addCourseWorks", params)
  13288. .then((res) => {
  13289. this.$message({
  13290. message: "提交成功",
  13291. type: "success",
  13292. });
  13293. this.dialogVisibleTable = false;
  13294. // this.selectAnswer = {};
  13295. this.selectSWorks();
  13296. this.selectStudent();
  13297. })
  13298. .catch((err) => {
  13299. this.$message.error("提交失败");
  13300. console.error(err);
  13301. });
  13302. },
  13303. tableRowClassName({ row, rowIndex }) {
  13304. if ((rowIndex + 1) % 2 === 0) {
  13305. return "even_row";
  13306. } else {
  13307. return "";
  13308. }
  13309. },
  13310. addTableWorksTeacher() {
  13311. let params = [
  13312. {
  13313. uid: this.sStudent.userid,
  13314. cid: this.id,
  13315. stage: this.courseType,
  13316. task: this.taskCount,
  13317. tool: this.toolindex,
  13318. content: JSON.stringify(this.tableJson),
  13319. type: 10,
  13320. },
  13321. ];
  13322. this.ajax
  13323. .post(this.$store.state.api + "addCourseWorks", params)
  13324. .then((res) => {
  13325. this.$message({
  13326. message: "提交成功",
  13327. type: "success",
  13328. });
  13329. this.dialogVisibleTableTeacher = false;
  13330. // this.selectAnswer = {};
  13331. this.selectSWorks();
  13332. this.selectStudent();
  13333. })
  13334. .catch((err) => {
  13335. this.$message.error("提交失败");
  13336. console.error(err);
  13337. });
  13338. },
  13339. returnWordText() {
  13340. this.$confirm("确定还原此模板吗?", "提示", {
  13341. confirmButtonText: "确定",
  13342. cancelButtonText: "取消",
  13343. type: "warning",
  13344. })
  13345. .then(() => {
  13346. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13347. })
  13348. .catch(() => {});
  13349. },
  13350. addWordWorks() {
  13351. let params = [
  13352. {
  13353. uid: this.userid,
  13354. cid: this.id,
  13355. stage: this.courseType,
  13356. task: this.taskCount,
  13357. tool: this.toolindex,
  13358. content: JSON.stringify(this.wordJson),
  13359. type: 13,
  13360. atool: 52,
  13361. },
  13362. ];
  13363. this.ajax
  13364. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13365. .then((res) => {
  13366. this.$message({
  13367. message: "提交成功",
  13368. type: "success",
  13369. });
  13370. this.dialogVisibleWord = false;
  13371. // this.selectAnswer = {};
  13372. this.selectSWorks();
  13373. this.selectStudent();
  13374. })
  13375. .catch((err) => {
  13376. this.$message.error("提交失败");
  13377. console.error(err);
  13378. });
  13379. },
  13380. addWordWorksTeacher() {
  13381. let params = [
  13382. {
  13383. uid: this.sStudent.userid,
  13384. cid: this.id,
  13385. stage: this.courseType,
  13386. task: this.taskCount,
  13387. tool: this.toolindex,
  13388. content: JSON.stringify(this.wordJson),
  13389. type: 13,
  13390. atool: 52,
  13391. },
  13392. ];
  13393. this.ajax
  13394. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13395. .then((res) => {
  13396. this.$message({
  13397. message: "提交成功",
  13398. type: "success",
  13399. });
  13400. this.dialogVisibleWordTeacher = false;
  13401. // this.selectAnswer = {};
  13402. this.selectSWorks();
  13403. this.selectStudent();
  13404. })
  13405. .catch((err) => {
  13406. this.$message.error("提交失败");
  13407. console.error(err);
  13408. });
  13409. },
  13410. addCourseWorks(i) {
  13411. var typesql;
  13412. if (this.fileType === 0) {
  13413. typesql = 1;
  13414. } else if (this.fileType === 1) {
  13415. typesql = 4;
  13416. } else if (this.fileType === 2) {
  13417. typesql = 5;
  13418. } else if (this.fileType === 3) {
  13419. typesql = 12;
  13420. }
  13421. if (!this.studyJuri[0].cover[0].url) {
  13422. this.$message.error("请上传文件");
  13423. return;
  13424. }
  13425. let params = [
  13426. {
  13427. uid: this.userid,
  13428. cid: this.id,
  13429. stage: this.courseType,
  13430. task: i,
  13431. tool: this.toolindex,
  13432. content: this.studyJuri[0].cover[0].url,
  13433. type: typesql,
  13434. },
  13435. ];
  13436. this.ajax
  13437. .post(this.$store.state.api + "addCourseWorksR", params)
  13438. .then((res) => {
  13439. this.$message({
  13440. message: "提交成功",
  13441. type: "success",
  13442. });
  13443. this.studyJuri[0].cover = [];
  13444. this.dialogVisible = false;
  13445. this.getCourseDetail(2);
  13446. })
  13447. .catch((err) => {
  13448. this.$message.error("提交失败");
  13449. console.error(err);
  13450. });
  13451. },
  13452. addCourseWorksPl(i) {
  13453. let _files = this.plworkFile;
  13454. var c = 1;
  13455. for (var k = 0; k < _files.length; k++) {
  13456. if (!_files[k].username) {
  13457. c = 2;
  13458. }
  13459. }
  13460. if (c == 2) {
  13461. this.$message.error("请填写学生姓名");
  13462. return;
  13463. }
  13464. let params = [
  13465. {
  13466. ateacher: this.userid,
  13467. cid: this.id,
  13468. stage: this.courseType,
  13469. task: i,
  13470. tool: this.toolindex,
  13471. content: JSON.stringify(_files),
  13472. },
  13473. ];
  13474. this.ajax
  13475. .post(this.$store.state.api + "addCourseWorksPl", params)
  13476. .then((res) => {
  13477. this.$message({
  13478. message: "提交成功",
  13479. type: "success",
  13480. });
  13481. this.plworkFile = [];
  13482. this.dialogVisiblePl = false;
  13483. this.getCourseDetail(2);
  13484. })
  13485. .catch((err) => {
  13486. this.$message.error("提交失败");
  13487. console.error(err);
  13488. });
  13489. },
  13490. addCourseWorks2(i) {
  13491. var typesql;
  13492. if (this.fileType === 0) {
  13493. typesql = 0;
  13494. } else if (this.fileType === 1) {
  13495. typesql = 1;
  13496. } else if (this.fileType === 2) {
  13497. typesql = 3;
  13498. } else if (this.fileType === 3) {
  13499. typesql = 12;
  13500. }
  13501. if (!this.studyJuri[0].cover[0].url) {
  13502. this.$message.error("请上传文件");
  13503. return;
  13504. }
  13505. let params = [
  13506. {
  13507. uid: this.userid,
  13508. cid: this.id,
  13509. stage: this.courseType,
  13510. task: i,
  13511. tool: this.toolindex,
  13512. content: JSON.stringify({
  13513. type: typesql,
  13514. groupIndex: this.groupIndex,
  13515. url: this.studyJuri[0].cover[0].url,
  13516. }),
  13517. type: 11,
  13518. atool: 49,
  13519. text: "",
  13520. },
  13521. ];
  13522. this.ajax
  13523. .post(this.$store.state.api + "addCourseWorks5", params)
  13524. .then((res) => {
  13525. this.$message({
  13526. message: "提交成功",
  13527. type: "success",
  13528. });
  13529. this.studyJuri[0].cover = [];
  13530. this.dialogVisibleGroupWork = false;
  13531. this.getCourseDetail(2);
  13532. })
  13533. .catch((err) => {
  13534. this.$message.error("提交失败");
  13535. console.error(err);
  13536. });
  13537. },
  13538. addEnglishWork() {
  13539. this.myAnList = this.$refs['engJson'].myAnswerList;
  13540. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13541. this.$message.error("请输入作文标题和正文!");
  13542. return;
  13543. }
  13544. let params = [
  13545. {
  13546. uid: this.userid,
  13547. cid: this.id,
  13548. stage: this.courseType,
  13549. task: this.taskCount,
  13550. tool: this.englishToolIndex,
  13551. content: JSON.stringify(this.myAnList),
  13552. type: 16,
  13553. atool: 69,
  13554. text: "",
  13555. },
  13556. ];
  13557. this.ajax
  13558. .post(this.$store.state.api + "addCourseWorks5", params)
  13559. .then((res) => {
  13560. this.$message({
  13561. message: "提交成功",
  13562. type: "success",
  13563. });
  13564. this.myAnList = {};
  13565. this.englishList = {};
  13566. this.englishToolIndex = 0;
  13567. this.engDialogVisible = false;
  13568. this.selectSWorks();
  13569. this.selectStudent();
  13570. })
  13571. .catch((err) => {
  13572. this.$message.error("提交失败");
  13573. console.error(err);
  13574. });
  13575. },
  13576. addCourseWorksGong(i, data, tool) {
  13577. let params = [
  13578. {
  13579. uid: this.userid,
  13580. cid: this.id,
  13581. stage: this.courseType,
  13582. task: this.taskCount,
  13583. tool: i,
  13584. content: data,
  13585. type: 12,
  13586. atool: tool,
  13587. text: "",
  13588. },
  13589. ];
  13590. this.ajax
  13591. .post(this.$store.state.api + "addCourseWorks5", params)
  13592. .then((res) => {
  13593. this.$message({
  13594. message: "提交成功",
  13595. type: "success",
  13596. });
  13597. this.studyJuri[0].cover = [];
  13598. this.selectSWorks();
  13599. this.selectStudent();
  13600. })
  13601. .catch((err) => {
  13602. this.$message.error("提交失败");
  13603. console.error(err);
  13604. });
  13605. },
  13606. addCourseWorksGongTeacher(i, data, tool) {
  13607. let params = [
  13608. {
  13609. uid: this.sStudent.userid,
  13610. cid: this.id,
  13611. stage: this.courseType,
  13612. task: this.taskCount,
  13613. tool: i,
  13614. content: data,
  13615. type: 12,
  13616. atool: tool,
  13617. text: "",
  13618. },
  13619. ];
  13620. this.ajax
  13621. .post(this.$store.state.api + "addCourseWorks5", params)
  13622. .then((res) => {
  13623. this.$message({
  13624. message: "提交成功",
  13625. type: "success",
  13626. });
  13627. this.studyJuri[0].cover = [];
  13628. this.dialogVisibleWorks = false;
  13629. this.selectSWorks();
  13630. this.selectStudent();
  13631. })
  13632. .catch((err) => {
  13633. this.$message.error("提交失败");
  13634. console.error(err);
  13635. });
  13636. },
  13637. addCourseWorksGongPl(i, data, tool, type) {
  13638. let params = [
  13639. {
  13640. uid: this.sStudent.userid,
  13641. cid: this.id,
  13642. stage: this.courseType,
  13643. task: this.taskCount,
  13644. tool: i,
  13645. content: data,
  13646. type: type,
  13647. atool: tool,
  13648. text: "",
  13649. },
  13650. ];
  13651. this.ajax
  13652. .post(this.$store.state.api + "addCourseWorks5", params)
  13653. .then((res) => {
  13654. this.$message({
  13655. message: "提交成功",
  13656. type: "success",
  13657. });
  13658. this.studyJuri[0].cover = [];
  13659. this.dialogVisibleWorks = false;
  13660. this.selectSWorks();
  13661. this.selectStudent();
  13662. })
  13663. .catch((err) => {
  13664. this.$message.error("提交失败");
  13665. console.error(err);
  13666. });
  13667. },
  13668. addCourseWorksTeacher(i) {
  13669. var typesql;
  13670. if (this.sTool == 32) {
  13671. this.addCourseWorksGongTeacher(
  13672. this.toolindex,
  13673. this.studyJuri[0].cover[0].url,
  13674. this.sTool
  13675. );
  13676. return;
  13677. }
  13678. if (this.fileType === 0) {
  13679. typesql = 1;
  13680. } else if (this.fileType === 1) {
  13681. typesql = 4;
  13682. } else if (this.fileType === 2) {
  13683. typesql = 5;
  13684. } else if (this.fileType === 3) {
  13685. typesql = 12;
  13686. }
  13687. if (this.sTool == 50) {
  13688. this.addCourseWorksGongPl(
  13689. this.toolindex,
  13690. this.studyJuri[0].cover[0].url,
  13691. this.sTool,
  13692. typesql
  13693. );
  13694. return;
  13695. }
  13696. if (!this.studyJuri[0].cover[0].url) {
  13697. this.$message.error("请上传文件");
  13698. return;
  13699. }
  13700. let params = [
  13701. {
  13702. uid: this.sStudent.userid,
  13703. cid: this.id,
  13704. stage: this.courseType,
  13705. task: i,
  13706. tool: this.toolindex,
  13707. content: this.studyJuri[0].cover[0].url,
  13708. type: typesql,
  13709. ateacher: this.userid,
  13710. },
  13711. ];
  13712. this.ajax
  13713. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13714. .then((res) => {
  13715. this.$message({
  13716. message: "提交成功",
  13717. type: "success",
  13718. });
  13719. this.studyJuri[0].cover = [];
  13720. this.dialogVisibleWorks = false;
  13721. this.getCourseDetail(2);
  13722. })
  13723. .catch((err) => {
  13724. this.$message.error("提交失败");
  13725. console.error(err);
  13726. });
  13727. },
  13728. selectUploadStudent(type) {
  13729. const loading = this.$loading.service({
  13730. background: "rgba(255, 255, 255, 0.7)",
  13731. target: document.body,
  13732. });
  13733. let params = {
  13734. cid: this.uploadCid,
  13735. oid: this.oid,
  13736. cn: "",
  13737. };
  13738. this.ajax
  13739. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13740. .then((res) => {
  13741. loading.close();
  13742. var studentK = [];
  13743. if (this.isWorksS[this.toolindex].length > 0) {
  13744. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13745. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13746. }
  13747. studentK = studentK.join(",");
  13748. }
  13749. this.uploadStudentJuri = res.data[0].filter((el) => {
  13750. return studentK.indexOf(el.userid) == -1;
  13751. });
  13752. if (this.worksSName && this.worksSid) {
  13753. this.uploadStudentJuri.push({
  13754. userid: this.worksSid,
  13755. name: this.worksSName,
  13756. });
  13757. }
  13758. if (type == 1) {
  13759. this.plworkFile = [];
  13760. this.dialogVisibleSname = true;
  13761. } else if (type == 2) {
  13762. this.dialogVisiblePl = true;
  13763. }
  13764. })
  13765. .catch((err) => {
  13766. loading.close();
  13767. console.error(err);
  13768. });
  13769. },
  13770. selectPickStudent() {
  13771. const loading = this.$loading.service({
  13772. background: "rgba(255, 255, 255, 0.7)",
  13773. target: document.body,
  13774. });
  13775. let params = {
  13776. cid: this.uploadCid,
  13777. oid: this.oid,
  13778. cn: "",
  13779. };
  13780. this.ajax
  13781. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13782. .then((res) => {
  13783. loading.close();
  13784. this.uploadStudentJuri = res.data[0];
  13785. this.dialogVisiblePickPeople = true;
  13786. })
  13787. .catch((err) => {
  13788. loading.close();
  13789. console.error(err);
  13790. });
  13791. },
  13792. arrayToArray(arrayo, arrayt) {
  13793. let array1 = arrayo;
  13794. let array2 = arrayt;
  13795. let commonElements = [];
  13796. for (let i = 0; i < array1.length; i++) {
  13797. for (let j = 0; j < array2.length; j++) {
  13798. if (array1[i] === array2[j]) {
  13799. commonElements.push(array1[i]);
  13800. }
  13801. }
  13802. }
  13803. return commonElements;
  13804. },
  13805. selectWorksStudent() {
  13806. let params = {
  13807. oid: this.oid,
  13808. cid: this.courseDetail.juri,
  13809. };
  13810. this.ajax
  13811. .get(this.$store.state.api + "selectWorksStudent", params)
  13812. .then((res) => {
  13813. var a = res.data[0];
  13814. for (var i = 0; i < this.isWorksS.length; i++) {
  13815. this.noWorksS[i] = [];
  13816. var studentK = [];
  13817. if (this.isWorksS[i].length > 0) {
  13818. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13819. studentK.push(this.isWorksS[i][z].uid);
  13820. }
  13821. studentK = studentK.join(",");
  13822. for (var j = 0; j < a.length; j++) {
  13823. if (studentK.indexOf(a[j].userid) == -1) {
  13824. if (this.tcid) {
  13825. // a[j].classid.indexOf(this.tcid) != -1
  13826. if (
  13827. this.arrayToArray(
  13828. a[j].classid.split(","),
  13829. this.tcid.split(",")
  13830. ).length
  13831. ) {
  13832. this.noWorksS[i].push({
  13833. student: a[j].name,
  13834. userid: a[j].userid,
  13835. });
  13836. }
  13837. } else {
  13838. this.noWorksS[i].push({
  13839. student: a[j].name,
  13840. userid: a[j].userid,
  13841. });
  13842. }
  13843. }
  13844. }
  13845. } else {
  13846. for (var k = 0; k < a.length; k++) {
  13847. if (this.tcid) {
  13848. if (
  13849. this.arrayToArray(
  13850. a[k].classid.split(","),
  13851. this.tcid.split(",")
  13852. ).length
  13853. ) {
  13854. this.noWorksS[i].push({
  13855. student: a[k].name,
  13856. userid: a[k].userid,
  13857. });
  13858. }
  13859. } else {
  13860. this.noWorksS[i].push({
  13861. student: a[k].name,
  13862. userid: a[k].userid,
  13863. });
  13864. }
  13865. }
  13866. }
  13867. }
  13868. this.$forceUpdate();
  13869. if (
  13870. Object.keys(this.commentDetail).length &&
  13871. Object.keys(this.commentIndexJson).length &&
  13872. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13873. ) {
  13874. let a = 1;
  13875. let c = this.commentIndexJson;
  13876. if (
  13877. this.commentIndexJson.gindex ||
  13878. this.commentIndexJson.gindex === 0
  13879. ) {
  13880. for (
  13881. var i = 0;
  13882. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13883. i++
  13884. ) {
  13885. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13886. groupA: for (var k = 0; k < _el.length; k++) {
  13887. let el = _el[k];
  13888. if (el.wid == this.commentDetail.wid) {
  13889. a = 2;
  13890. this.commentOther(
  13891. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13892. this.commentIndexJson.toolIndex,
  13893. k,
  13894. this.commentIndexJson.gindex
  13895. );
  13896. break groupA;
  13897. }
  13898. }
  13899. }
  13900. if (a === 1) {
  13901. this.commentDetail = [];
  13902. this.commentIndexJson = {};
  13903. this.commentDialogVisible = false;
  13904. this.$message("此作业已被删除");
  13905. }
  13906. } else {
  13907. if (this.isGroup && this.commentIndexJson.gid) {
  13908. groupA: for (
  13909. var i = 0;
  13910. i < this.courseGroup.group.length;
  13911. i++
  13912. ) {
  13913. let _group = this.courseGroup.group[i];
  13914. if (_group.id == this.commentIndexJson.gid) {
  13915. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13916. for (var k = 0; k < _el2.length; k++) {
  13917. let el2 = _el2[k];
  13918. if (el2.wid == this.commentDetail.wid) {
  13919. a = 2;
  13920. this.commentOther(
  13921. _el2[k],
  13922. this.commentIndexJson.toolIndex,
  13923. k,
  13924. null,
  13925. this.commentIndexJson.gid
  13926. );
  13927. break groupA;
  13928. }
  13929. }
  13930. }
  13931. }
  13932. }
  13933. if (a == 1) {
  13934. for (
  13935. var i = 0;
  13936. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13937. i++
  13938. ) {
  13939. let el =
  13940. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13941. if (el.wid == this.commentDetail.wid) {
  13942. a = 2;
  13943. this.commentOther(
  13944. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13945. this.commentIndexJson.toolIndex,
  13946. i
  13947. );
  13948. break;
  13949. }
  13950. }
  13951. }
  13952. if (a === 1) {
  13953. this.commentDetail = [];
  13954. this.commentIndexJson = {};
  13955. this.commentDialogVisible = false;
  13956. this.$message("此作业已被删除");
  13957. }
  13958. }
  13959. }
  13960. })
  13961. .catch((err) => {
  13962. console.error(err);
  13963. });
  13964. },
  13965. selectStudent() {
  13966. //学生查看自己作业
  13967. let params = {
  13968. uid: this.userid,
  13969. cid: this.id,
  13970. s: this.courseType,
  13971. t: this.taskCount,
  13972. };
  13973. this.ajax
  13974. .get(this.$store.state.api + "selectStudentWorks", params)
  13975. .then((res) => {
  13976. var a =
  13977. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13978. this.taskCount
  13979. ].toolChoose;
  13980. var b = res.data[0];
  13981. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13982. var y = [
  13983. "AVI",
  13984. "NAVI",
  13985. "MPEG",
  13986. "ASF",
  13987. "MOV",
  13988. "WMV",
  13989. "3GP",
  13990. "RM",
  13991. "RMVB",
  13992. "FLV",
  13993. "F4V",
  13994. "H.264",
  13995. "H.265",
  13996. "REAL VIDEO",
  13997. "MKV",
  13998. "WebM",
  13999. "HDDVD",
  14000. "MP4",
  14001. "MPG",
  14002. "M4V",
  14003. "MGV",
  14004. "OGV",
  14005. "QTM",
  14006. "STR",
  14007. "AMC",
  14008. "DVX",
  14009. "EVO",
  14010. "DAT",
  14011. "OGG",
  14012. "OGM",
  14013. ];
  14014. for (var i = 0; i < a.length; i++) {
  14015. this.workStudent[i] = [];
  14016. for (var j = 0; j < b.length; j++) {
  14017. if (i == b[j].tool) {
  14018. if (
  14019. (b[j].type == 1 ||
  14020. b[j].type == 4 ||
  14021. b[j].type == 5 ||
  14022. b[j].type == 6 ||
  14023. b[j].type == 12 ||
  14024. b[j].type == 7) &&
  14025. a[i].tool[0] != 15 &&
  14026. a[i].tool[0] != 4 &&
  14027. a[i].tool[0] != 45 &&
  14028. a[i].tool[0] != 50 &&
  14029. a[i].tool[0] != 32 &&
  14030. a[i].tool[0] != 57 &&
  14031. a[i].tool[0] != 52 &&
  14032. a[i].tool[0] != 69
  14033. ) {
  14034. if (
  14035. c.indexOf(
  14036. b[j].content
  14037. .split(".")
  14038. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14039. ) != -1 &&
  14040. a[i].tool[0] == 16 &&
  14041. b[j].atool != 50
  14042. ) {
  14043. this.workStudent[i].push({
  14044. works: b[j].content,
  14045. sName: b[j].name,
  14046. score: b[j].score,
  14047. img: b[j].img,
  14048. type: 1,
  14049. time: b[j].time,
  14050. userid: b[j].userid,
  14051. wid: b[j].id,
  14052. });
  14053. } else if (
  14054. y.indexOf(
  14055. b[j].content
  14056. .split(".")
  14057. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14058. ) != -1 &&
  14059. a[i].tool[0] == 16 &&
  14060. b[j].atool != 50
  14061. ) {
  14062. this.workStudent[i].push({
  14063. userid: b[j].userid,
  14064. wid: b[j].id,
  14065. works: b[j].content,
  14066. sName: b[j].name,
  14067. score: b[j].score,
  14068. img: b[j].img,
  14069. type: 3,
  14070. time: b[j].time,
  14071. });
  14072. } else if (b[j].type == 6 && b[j].atool != 50) {
  14073. this.workStudent[i].push({
  14074. userid: b[j].userid,
  14075. wid: b[j].id,
  14076. works: b[j].content,
  14077. sName: b[j].name,
  14078. score: b[j].score,
  14079. img: b[j].img,
  14080. type: 4,
  14081. time: b[j].time,
  14082. });
  14083. } else if (b[j].type == 7 && b[j].atool != 50) {
  14084. this.workStudent[i].push({
  14085. userid: b[j].userid,
  14086. wid: b[j].id,
  14087. works: b[j].content,
  14088. sName: b[j].name,
  14089. score: b[j].score,
  14090. img: b[j].img,
  14091. type: 5,
  14092. time: b[j].time,
  14093. });
  14094. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14095. this.workStudent[i].push({
  14096. works: b[j].content,
  14097. sName: b[j].name,
  14098. score: b[j].score,
  14099. img: b[j].img,
  14100. type: 12,
  14101. time: b[j].time,
  14102. userid: b[j].userid,
  14103. wid: b[j].id,
  14104. });
  14105. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14106. this.workStudent[i].push({
  14107. works: b[j].content,
  14108. sName: b[j].name,
  14109. score: b[j].score,
  14110. img: b[j].img,
  14111. type: 0,
  14112. time: b[j].time,
  14113. userid: b[j].userid,
  14114. wid: b[j].id,
  14115. });
  14116. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14117. this.workStudent[i].push({
  14118. works: b[j].content,
  14119. sName: b[j].name,
  14120. score: b[j].score,
  14121. img: b[j].img,
  14122. type: 0,
  14123. time: b[j].time,
  14124. userid: b[j].userid,
  14125. wid: b[j].id,
  14126. });
  14127. }
  14128. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14129. this.workStudent[i].push({
  14130. works: b[j].content,
  14131. sName: b[j].name,
  14132. score: b[j].score,
  14133. img: b[j].img,
  14134. type: 2,
  14135. time: b[j].time,
  14136. userid: b[j].userid,
  14137. wid: b[j].id,
  14138. });
  14139. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14140. //问卷
  14141. this.workStudent[i].push({
  14142. works: b[j].content,
  14143. sName: b[j].name,
  14144. score: b[j].score,
  14145. img: b[j].img,
  14146. type: 2,
  14147. time: b[j].time,
  14148. userid: b[j].userid,
  14149. wid: b[j].id,
  14150. });
  14151. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14152. //选择题
  14153. this.workStudent[i].push({
  14154. works: b[j].content,
  14155. sName: b[j].name,
  14156. score: b[j].score,
  14157. img: b[j].img,
  14158. type: 8,
  14159. time: b[j].time,
  14160. userid: b[j].userid,
  14161. wid: b[j].id,
  14162. });
  14163. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14164. //选择题
  14165. this.workStudent[i].push({
  14166. works: b[j].content,
  14167. sName: b[j].name,
  14168. score: b[j].score,
  14169. img: b[j].img,
  14170. type: 9,
  14171. time: b[j].time,
  14172. userid: b[j].userid,
  14173. wid: b[j].id,
  14174. });
  14175. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14176. //选择题
  14177. this.workStudent[i].push({
  14178. works: b[j].content,
  14179. sName: b[j].name,
  14180. score: b[j].score,
  14181. img: b[j].img,
  14182. type: 10,
  14183. time: b[j].time,
  14184. userid: b[j].userid,
  14185. wid: b[j].id,
  14186. });
  14187. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14188. //选择题
  14189. this.workStudent[i].push({
  14190. works: b[j].content,
  14191. sName: b[j].name,
  14192. score: b[j].score,
  14193. img: b[j].img,
  14194. type: 13,
  14195. time: b[j].time,
  14196. userid: b[j].userid,
  14197. wid: b[j].id,
  14198. });
  14199. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14200. //选择题
  14201. this.workStudent[i].push({
  14202. works: b[j].content,
  14203. sName: b[j].name,
  14204. score: b[j].score,
  14205. img: b[j].img,
  14206. type: 12,
  14207. time: b[j].time,
  14208. userid: b[j].userid,
  14209. wid: b[j].id,
  14210. });
  14211. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14212. //选择题
  14213. this.workStudent[i].push({
  14214. works: b[j].content,
  14215. sName: b[j].name,
  14216. score: b[j].score,
  14217. img: b[j].img,
  14218. type: 12,
  14219. time: b[j].time,
  14220. userid: b[j].userid,
  14221. wid: b[j].id,
  14222. });
  14223. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14224. //选择题
  14225. this.workStudent[i].push({
  14226. works: b[j].content,
  14227. sName: b[j].name,
  14228. score: b[j].score,
  14229. img: b[j].img,
  14230. type: 15,
  14231. time: b[j].time,
  14232. userid: b[j].userid,
  14233. wid: b[j].id,
  14234. });
  14235. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14236. //英语写作
  14237. this.workStudent[i].push({
  14238. works: b[j].content,
  14239. sName: b[j].name,
  14240. score: b[j].score,
  14241. img: b[j].img,
  14242. type: 16,
  14243. time: b[j].time,
  14244. userid: b[j].userid,
  14245. wid: b[j].id,
  14246. aiCode: b[j].aiCode,
  14247. teacherCode: b[j].teacherCode
  14248. });
  14249. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14250. //英语口语
  14251. this.workStudent[i].push({
  14252. works: b[j].content,
  14253. sName: b[j].name,
  14254. score: b[j].score,
  14255. img: b[j].img,
  14256. type: 17,
  14257. time: b[j].time,
  14258. userid: b[j].userid,
  14259. wid: b[j].id,
  14260. });
  14261. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14262. //交互视频
  14263. this.workStudent[i].push({
  14264. works: b[j].content,
  14265. sName: b[j].name,
  14266. score: b[j].score,
  14267. img: b[j].img,
  14268. type: 14,
  14269. time: b[j].time,
  14270. userid: b[j].userid,
  14271. wid: b[j].id,
  14272. });
  14273. }
  14274. }
  14275. }
  14276. }
  14277. })
  14278. .catch((err) => {
  14279. console.error(err);
  14280. });
  14281. },
  14282. openVideo(w) {
  14283. this.videoDetail = {};
  14284. this.playerOptions1.sources[0].src = w.works;
  14285. this.videoDetail = this.playerOptions1;
  14286. this.videoVisible = true;
  14287. },
  14288. isLikes(wid, uid, t, c, isLikes,sName) {
  14289. if (isLikes == false) {
  14290. let params = [
  14291. {
  14292. wid: wid,
  14293. lid: uid,
  14294. t: t,
  14295. c: c,
  14296. },
  14297. ];
  14298. this.ajax
  14299. .post(this.$store.state.api + "insertComment", params)
  14300. .then((res) => {
  14301. this.$message({
  14302. message: "点赞成功",
  14303. type: "success",
  14304. });
  14305. this.selectSWorks();
  14306. this.selectStudent();
  14307. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14308. })
  14309. .catch((err) => {
  14310. this.$message.error("点赞失败");
  14311. console.error(err);
  14312. });
  14313. } else {
  14314. let params = {
  14315. wid: wid,
  14316. lid: uid,
  14317. type: t,
  14318. };
  14319. this.ajax
  14320. .get(this.$store.state.api + "deleteComment", params)
  14321. .then((res) => {
  14322. this.$message({
  14323. message: "取消点赞成功",
  14324. type: "success",
  14325. });
  14326. this.selectSWorks();
  14327. this.selectStudent();
  14328. })
  14329. .catch((err) => {
  14330. console.error(err);
  14331. });
  14332. }
  14333. },
  14334. deleteComment(wid) {
  14335. this.$confirm("确定删除此评论吗?", "提示", {
  14336. confirmButtonText: "确定",
  14337. cancelButtonText: "取消",
  14338. type: "warning",
  14339. })
  14340. .then(() => {
  14341. let params = {
  14342. id: wid,
  14343. };
  14344. this.ajax
  14345. .get(this.$store.state.api + "deleteComment2", params)
  14346. .then((res) => {
  14347. this.$message({
  14348. message: "删除评论成功",
  14349. type: "success",
  14350. });
  14351. this.selectSWorks();
  14352. this.selectStudent();
  14353. })
  14354. .catch((err) => {
  14355. console.error(err);
  14356. });
  14357. })
  14358. .catch(() => {});
  14359. },
  14360. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14361. this.commentIndexJson = {
  14362. toolIndex: toolIndex,
  14363. wIndex: wIndex,
  14364. gindex: gindex,
  14365. gid: gid,
  14366. };
  14367. this.commentDetail = [];
  14368. this.commentDialogVisible = true;
  14369. this.commentDetail = w;
  14370. if (w.works && w.type == 1) {
  14371. // this.pptImgUrl = "";
  14372. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14373. if (
  14374. a.indexOf(
  14375. w.works
  14376. .split(".")
  14377. [w.works.split(".").length - 1].toLocaleUpperCase()
  14378. ) != -1
  14379. ) {
  14380. let _uuurl = await this.checkLink(w.works);
  14381. console.log(_uuurl)
  14382. this.pptImgUrl =
  14383. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14384. this.showPDF = false;
  14385. } else if (
  14386. w.works
  14387. .split(".")
  14388. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14389. ) {
  14390. this.pptImgUrl = w.works;
  14391. this.showPDF = true;
  14392. }
  14393. } else if (w.works && w.type == 3) {
  14394. this.videoDetail = {};
  14395. this.playerOptions1.sources[0].src = w.works;
  14396. this.videoDetail = this.playerOptions1;
  14397. // this.videoVisible = true;
  14398. } else if (w.works && w.type == 4) {
  14399. this.eScore = JSON.parse(w.works);
  14400. this.rateJson =
  14401. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14402. this.taskCount
  14403. ].toolChoose[toolIndex].rateJson;
  14404. } else if (w.works && w.type == 10) {
  14405. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14406. } else if (w.works && w.type == 13) {
  14407. this.wordJson =
  14408. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14409. this.taskCount
  14410. ].toolChoose[toolIndex].wordJson;
  14411. }
  14412. },
  14413. async openScore(w, index) {
  14414. this.wScore = 0;
  14415. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14416. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14417. this.commentDetail = [];
  14418. if(w.type == 17){
  14419. this.dialogVisibleENScore = true;
  14420. }else{
  14421. this.dialogVisibleScore = true;
  14422. }
  14423. this.commentDetail = w;
  14424. if (w.works && w.type == 1) {
  14425. this.pptImgUrl = "";
  14426. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14427. if (
  14428. a.indexOf(
  14429. w.works
  14430. .split(".")
  14431. [w.works.split(".").length - 1].toLocaleUpperCase()
  14432. ) != -1
  14433. ) {
  14434. let _uuurl = await this.checkLink(w.works);
  14435. console.log(_uuurl)
  14436. this.pptImgUrl =
  14437. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14438. this.showPDF = false;
  14439. } else if (
  14440. w.works
  14441. .split(".")
  14442. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14443. ) {
  14444. this.pptImgUrl = w.works;
  14445. this.showPDF = true;
  14446. }
  14447. } else if (w.works && w.type == 3) {
  14448. this.videoDetail = {};
  14449. this.playerOptions1.sources[0].src = w.works;
  14450. this.videoDetail = this.playerOptions1;
  14451. }else if(w.type == 17){
  14452. let englishVoiceJson = {}
  14453. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14454. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14455. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14456. .toolChoose[index].englishVoiceJson
  14457. : {};
  14458. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14459. }
  14460. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14461. },
  14462. addComment(wid, uid, t,detail) {
  14463. if (this.commentText == "") {
  14464. this.$message.error("请输入评论");
  14465. return;
  14466. }
  14467. let params2 = [
  14468. {
  14469. wid: wid,
  14470. lid: uid,
  14471. t: t,
  14472. },
  14473. ];
  14474. this.ajax
  14475. .post(this.$store.state.api + "getComment", params2)
  14476. .then((res) => {
  14477. if (res.data[0].length > 0) {
  14478. this.$message.error("一个作业只能评论一条");
  14479. } else {
  14480. let params = [
  14481. {
  14482. wid: wid,
  14483. lid: uid,
  14484. t: t,
  14485. c: this.commentText,
  14486. },
  14487. ];
  14488. this.ajax
  14489. .post(this.$store.state.api + "insertComment", params)
  14490. .then((res) => {
  14491. this.$message({
  14492. message: "评论成功",
  14493. type: "success",
  14494. });
  14495. this.commentText = "";
  14496. this.selectSWorks();
  14497. this.selectStudent();
  14498. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14499. })
  14500. .catch((err) => {
  14501. this.$message.error("评论失败");
  14502. console.error(err);
  14503. });
  14504. }
  14505. })
  14506. .catch((err) => {
  14507. // this.$message.error("评论失败");
  14508. console.error(err);
  14509. });
  14510. },
  14511. scoreWork(wid,sName) {
  14512. if (this.wScore == 0) {
  14513. this.$message.error("请评分");
  14514. return;
  14515. }
  14516. let params = [
  14517. {
  14518. wid: wid,
  14519. score: JSON.stringify({
  14520. wScore: this.wScore,
  14521. detail: this.scoreDetail,
  14522. }),
  14523. },
  14524. ];
  14525. this.ajax
  14526. .post(this.$store.state.api + "scoreWork", params)
  14527. .then((res) => {
  14528. this.$message({
  14529. message: "评分成功",
  14530. type: "success",
  14531. });
  14532. this.wScore = 0;
  14533. this.scoreDetail = "";
  14534. this.dialogVisibleScore = false;
  14535. this.selectSWorks();
  14536. this.selectStudent();
  14537. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14538. })
  14539. .catch((err) => {
  14540. this.$message.error("评分失败");
  14541. console.error(err);
  14542. });
  14543. },
  14544. openXz(w, i) {
  14545. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14546. .taskJson[this.taskCount].toolChoose[i].selectJson
  14547. ? JSON.parse(
  14548. JSON.stringify(
  14549. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14550. this.taskCount
  14551. ].toolChoose[i].selectJson
  14552. )
  14553. )
  14554. : { url: "", select: [], answer: [] };
  14555. var a = w.works.split(",");
  14556. for (var k = 0; k < a.length; k++) {
  14557. a[k] = parseInt(a[k]);
  14558. }
  14559. this.selectAnswer = { answer: a, stu: w.sName };
  14560. this.isSelect = true;
  14561. this.dialogVisibleSelect = true;
  14562. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14563. },
  14564. openSen(w, i) {
  14565. this.sentenceList1 = JSON.parse(w.works);
  14566. this.sentenceList1.stuName = w.sName;
  14567. this.dialogVisibleSentence1 = true;
  14568. },
  14569. openPj(w, toolindex) {
  14570. this.isStar = true;
  14571. this.eScore = JSON.parse(w);
  14572. this.rateJson =
  14573. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14574. this.taskCount
  14575. ].toolChoose[toolindex].rateJson;
  14576. this.studentEvalDialogVisible = true;
  14577. },
  14578. openEnglishEva(id,i){
  14579. let params = {
  14580. wid: id
  14581. };
  14582. this.ajax
  14583. .get(this.$store.state.api + "selectEngWork", params)
  14584. .then((res) => {
  14585. this.evaEngJson.message = res.data[0][0];
  14586. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14587. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14588. .toolChoose[i].englishList;
  14589. this.engEvaDialogVisible = true;
  14590. })
  14591. .catch((err) => {
  14592. console.error(err);
  14593. });
  14594. },
  14595. deleteWorks(id) {
  14596. this.$confirm("确定删除此作业吗?", "提示", {
  14597. confirmButtonText: "确定",
  14598. cancelButtonText: "取消",
  14599. type: "warning",
  14600. })
  14601. .then(() => {
  14602. let params = [
  14603. {
  14604. id: id,
  14605. },
  14606. ];
  14607. this.ajax
  14608. .post(this.$store.state.api + "deleteCourseWork", params)
  14609. .then((res) => {
  14610. this.$message({
  14611. message: "删除成功",
  14612. type: "success",
  14613. });
  14614. this.selectStudent();
  14615. this.selectSWorks();
  14616. this.selectSLook();
  14617. })
  14618. .catch((err) => {
  14619. this.$message.error("网络异常");
  14620. console.error(err);
  14621. });
  14622. })
  14623. .catch(() => {});
  14624. },
  14625. selectSWorks(gindex) {
  14626. //教师查看全部作业
  14627. let params = {
  14628. cid: this.id,
  14629. s: this.courseType,
  14630. t: this.taskCount,
  14631. };
  14632. this.ajax
  14633. .get(this.$store.state.api + "selectSWorks", params)
  14634. .then((res) => {
  14635. var a =
  14636. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14637. this.taskCount
  14638. ].toolChoose;
  14639. var b = res.data[0];
  14640. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14641. var y = [
  14642. "AVI",
  14643. "NAVI",
  14644. "MPEG",
  14645. "ASF",
  14646. "MOV",
  14647. "WMV",
  14648. "3GP",
  14649. "RM",
  14650. "RMVB",
  14651. "FLV",
  14652. "F4V",
  14653. "H.264",
  14654. "H.265",
  14655. "REAL VIDEO",
  14656. "MKV",
  14657. "WebM",
  14658. "HDDVD",
  14659. "MP4",
  14660. "MPG",
  14661. "M4V",
  14662. "MGV",
  14663. "OGV",
  14664. "QTM",
  14665. "STR",
  14666. "AMC",
  14667. "DVX",
  14668. "EVO",
  14669. "DAT",
  14670. "OGG",
  14671. "OGM",
  14672. ];
  14673. var d = res.data[1];
  14674. var e = res.data[2];
  14675. var f = res.data[3];
  14676. let _worksStudent = [];
  14677. var _worksStudent2 = [];
  14678. for (var i = 0; i < a.length; i++) {
  14679. _worksStudent[i] = [];
  14680. _worksStudent2[i] = [];
  14681. if (
  14682. !this.isCloseList[i] ||
  14683. this.isCloseList[i].isClose == undefined
  14684. ) {
  14685. this.isCloseList[i] = { isClose: 0 };
  14686. }
  14687. this.groupStudent[i] = [];
  14688. this.groupStudentUid[i] = [];
  14689. if (this.isGroup) {
  14690. for (
  14691. var groupI = 0;
  14692. groupI < this.courseGroup.group.length;
  14693. groupI++
  14694. ) {
  14695. this.courseGroup.group[groupI].works[i] = [];
  14696. }
  14697. }
  14698. this.isWorksS[i] = [];
  14699. this.checkJson[i] = [];
  14700. if (a[i].tool[0] == 49) {
  14701. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14702. this.groupStudent[i][gA] = [];
  14703. this.groupStudentUid[i][gA] = [];
  14704. _worksStudent[i][gA] = [];
  14705. _worksStudent2[i][gA] = [];
  14706. this.isCloseList[i][gA] = [];
  14707. for (var g = 0; g < f.length; g++) {
  14708. if (
  14709. f[g].ttype == 2 &&
  14710. this.tcid &&
  14711. this.arrayToArray(
  14712. (f[g].classid ? f[g].classid.split(",") : []),
  14713. this.tcid.split(",")
  14714. ).length == 0
  14715. ) {
  14716. continue;
  14717. }
  14718. let _classId = this.arrayToArray(
  14719. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14720. this.classId ? this.classId.split(",") : []
  14721. )
  14722. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14723. (f[g].classid ? f[g].classid.split(",") : []),
  14724. this.tcid.split(",")
  14725. ).length !== 0 || this.arrayToArray(
  14726. (f[g].classid ? f[g].classid.split(",") : []),
  14727. _classId
  14728. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14729. this.groupStudent[i][gA].push(f[g]);
  14730. this.groupStudentUid[i][gA].push(f[g].userid);
  14731. }
  14732. }
  14733. }
  14734. this.$forceUpdate();
  14735. }
  14736. for (var j = 0; j < b.length; j++) {
  14737. if (
  14738. b[j].ttype == 2 &&
  14739. this.tcid &&
  14740. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14741. .length == 0
  14742. ) {
  14743. continue;
  14744. }
  14745. var likesCount = 0;
  14746. var commentCount = 0;
  14747. var isLikes = false;
  14748. var commentJson = [];
  14749. var likeJson = [];
  14750. var data = b[j];
  14751. if (i == b[j].tool) {
  14752. if (data.type == 2 && a[i].tool[0] == 4) {
  14753. // if(JSON.parse(data.content)[0].anwer){
  14754. var checkL =
  14755. JSON.parse(data.content)[0].anwer instanceof Array
  14756. ? JSON.parse(data.content)[0].anwer
  14757. : JSON.parse(data.content)[0].anwer.split(",");
  14758. for (var z = 0; z < checkL.length; z++) {
  14759. if (!this.checkJson[i][z]) {
  14760. this.checkJson[i].push({
  14761. checkCount: [],
  14762. checkPerson: [],
  14763. rightPerson: [],
  14764. });
  14765. }
  14766. if (!this.checkJson[i][z].checkCount.length) {
  14767. this.checkJson[i][z].checkCount = [];
  14768. let _askItemCount = JSON.parse(data.content)[0].askJson
  14769. .askJson[z].askItem;
  14770. for (var aic = 0; aic < _askItemCount; aic++) {
  14771. this.checkJson[i][z].checkCount.push(0);
  14772. }
  14773. }
  14774. if (checkL[z] instanceof Array) {
  14775. if (
  14776. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14777. checkL[z].sort().join(",")
  14778. ) {
  14779. this.checkJson[i][z].rightPerson.push(data.name);
  14780. }
  14781. for (var q = 0; q < checkL[z].length; q++) {
  14782. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14783. ? this.checkJson[i][z].checkPerson[
  14784. parseInt(checkL[z][q])
  14785. ].push(data.name)
  14786. : (this.checkJson[i][z].checkPerson[
  14787. parseInt(checkL[z][q])
  14788. ] = [data.name]);
  14789. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14790. ? this.checkJson[i][z].checkCount[
  14791. parseInt(checkL[z][q])
  14792. ]++
  14793. : (this.checkJson[i][z].checkCount[
  14794. parseInt(checkL[z][q])
  14795. ] = 1);
  14796. }
  14797. } else {
  14798. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14799. this.checkJson[i][z].rightPerson.push(data.name);
  14800. }
  14801. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14802. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14803. ? this.checkJson[i][z].checkPerson[
  14804. parseInt(checkL[z])
  14805. ].push(data.name)
  14806. : (this.checkJson[i][z].checkPerson[
  14807. parseInt(checkL[z])
  14808. ] = [data.name]);
  14809. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14810. ? this.checkJson[i][z].checkCount[
  14811. parseInt(checkL[z])
  14812. ]++
  14813. : (this.checkJson[i][z].checkCount[
  14814. parseInt(checkL[z])
  14815. ] = 1);
  14816. }
  14817. }
  14818. }
  14819. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14820. var checkL = JSON.parse(data.content)[0].anwer;
  14821. for (var z = 0; z < checkL.length; z++) {
  14822. if (!this.checkJson[i][z]) {
  14823. this.checkJson[i].push({
  14824. checkCount: [],
  14825. checkPerson: [],
  14826. rightPerson: [],
  14827. });
  14828. }
  14829. if (!this.checkJson[i][z].checkCount.length) {
  14830. this.checkJson[i][z].checkCount = [];
  14831. let _askItemCount = JSON.parse(data.content)[0].testJson
  14832. .testJson[z].testItem;
  14833. for (var aic = 0; aic < _askItemCount; aic++) {
  14834. this.checkJson[i][z].checkCount.push(0);
  14835. }
  14836. }
  14837. if (checkL[z] instanceof Array) {
  14838. if (
  14839. JSON.parse(data.content)[0]
  14840. .testJson.testJson[z].answer.sort()
  14841. .join(",") == checkL[z].sort().join(",")
  14842. ) {
  14843. this.checkJson[i][z].rightPerson.push(data.name);
  14844. }
  14845. for (var q = 0; q < checkL[z].length; q++) {
  14846. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14847. ? this.checkJson[i][z].checkPerson[
  14848. parseInt(checkL[z][q])
  14849. ].push(data.name)
  14850. : (this.checkJson[i][z].checkPerson[
  14851. parseInt(checkL[z][q])
  14852. ] = [data.name]);
  14853. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14854. ? this.checkJson[i][z].checkCount[
  14855. parseInt(checkL[z][q])
  14856. ]++
  14857. : (this.checkJson[i][z].checkCount[
  14858. parseInt(checkL[z][q])
  14859. ] = 1);
  14860. }
  14861. } else {
  14862. if (
  14863. JSON.parse(data.content)[0].testJson.testJson[z]
  14864. .answer == checkL[z]
  14865. ) {
  14866. this.checkJson[i][z].rightPerson.push(data.name);
  14867. }
  14868. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14869. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14870. ? this.checkJson[i][z].checkPerson[
  14871. parseInt(checkL[z])
  14872. ].push(data.name)
  14873. : (this.checkJson[i][z].checkPerson[
  14874. parseInt(checkL[z])
  14875. ] = [data.name]);
  14876. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14877. ? this.checkJson[i][z].checkCount[
  14878. parseInt(checkL[z])
  14879. ]++
  14880. : (this.checkJson[i][z].checkCount[
  14881. parseInt(checkL[z])
  14882. ] = 1);
  14883. }
  14884. }
  14885. }
  14886. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14887. var checkL = JSON.parse(data.content);
  14888. for (var z = 0; z < checkL.length; z++) {
  14889. if (!this.checkJson[i][z]) {
  14890. this.checkJson[i].push({
  14891. checkCount: [],
  14892. checkPerson: [],
  14893. rightPerson: [],
  14894. });
  14895. }
  14896. this.checkJson[i][z].checkPerson.push(data.name);
  14897. if (
  14898. checkL[z].chooseSenList.toString() ==
  14899. checkL[z].rightAnswer.toString()
  14900. ) {
  14901. this.checkJson[i][z].rightPerson.push(data.name);
  14902. }
  14903. }
  14904. }
  14905. for (var k = 0; k < d.length; k++) {
  14906. //点赞
  14907. if (d[k].workId == b[j].id) {
  14908. likesCount++;
  14909. likeJson.push(d[k])
  14910. if (d[k].likesId == this.userid) {
  14911. isLikes = true;
  14912. }
  14913. }
  14914. }
  14915. for (var l = 0; l < e.length; l++) {
  14916. //评论
  14917. if (e[l].workId == b[j].id) {
  14918. if (e[l].comment != "") {
  14919. commentCount++;
  14920. commentJson.push({
  14921. commentText: e[l].comment,
  14922. commentTime: e[l].commentTime,
  14923. commentPeople: e[l].commentPeople,
  14924. userid: e[l].userid,
  14925. wid: e[l].id,
  14926. });
  14927. }
  14928. }
  14929. }
  14930. if (
  14931. (b[j].type == 1 ||
  14932. b[j].type == 4 ||
  14933. b[j].type == 5 ||
  14934. b[j].type == 6 ||
  14935. b[j].type == 12 ||
  14936. b[j].type == 7) &&
  14937. a[i].tool[0] != 15 &&
  14938. a[i].tool[0] != 4 &&
  14939. a[i].tool[0] != 45 &&
  14940. a[i].tool[0] != 50 &&
  14941. a[i].tool[0] != 32 &&
  14942. a[i].tool[0] != 57 &&
  14943. a[i].tool[0] != 52
  14944. ) {
  14945. if (
  14946. c.indexOf(
  14947. b[j].content
  14948. .split(".")
  14949. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14950. ) != -1 &&
  14951. a[i].tool[0] == 16 &&
  14952. b[j].atool != 50
  14953. ) {
  14954. let _works = {
  14955. userid: b[j].userid,
  14956. ateacher: b[j].ateacher,
  14957. wid: b[j].id,
  14958. works: b[j].content,
  14959. sName: b[j].name,
  14960. type: 1,
  14961. ttype:b[j].ttype,
  14962. time: b[j].time,
  14963. score: b[j].score,
  14964. img: b[j].img,
  14965. likesCount: likesCount,
  14966. commentCount: commentCount,
  14967. isLikes: isLikes,
  14968. commentJson: commentJson,
  14969. likeJson:likeJson
  14970. };
  14971. if (this.isGroup) {
  14972. let isGw = 1;
  14973. for (
  14974. var groupI = 0;
  14975. groupI < this.courseGroup.group.length;
  14976. groupI++
  14977. ) {
  14978. let gid = this.courseGroup.group[groupI].id;
  14979. if (
  14980. this.courseGroupStudentUid[gid].indexOf(
  14981. b[j].userid
  14982. ) != -1
  14983. ) {
  14984. isGw = 2;
  14985. this.courseGroup.group[groupI].works[i].push(_works);
  14986. break;
  14987. }
  14988. }
  14989. if (isGw == 1) {
  14990. _worksStudent[i].push(_works);
  14991. }
  14992. } else {
  14993. _worksStudent[i].push(_works);
  14994. }
  14995. _worksStudent2[i].push(_works);
  14996. this.isWorksS[i].push({
  14997. uid: b[j].userid,
  14998. sName: b[j].name,
  14999. });
  15000. } else if (
  15001. y.indexOf(
  15002. b[j].content
  15003. .split(".")
  15004. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15005. ) != -1 &&
  15006. a[i].tool[0] == 16 &&
  15007. b[j].atool != 50
  15008. ) {
  15009. let _works = {
  15010. userid: b[j].userid,
  15011. ateacher: b[j].ateacher,
  15012. wid: b[j].id,
  15013. works: b[j].content,
  15014. sName: b[j].name,
  15015. type: 3,
  15016. ttype:b[j].ttype,
  15017. time: b[j].time,
  15018. score: b[j].score,
  15019. img: b[j].img,
  15020. likesCount: likesCount,
  15021. commentCount: commentCount,
  15022. isLikes: isLikes,
  15023. commentJson: commentJson,
  15024. likeJson:likeJson
  15025. };
  15026. if (this.isGroup) {
  15027. let isGw = 1;
  15028. for (
  15029. var groupI = 0;
  15030. groupI < this.courseGroup.group.length;
  15031. groupI++
  15032. ) {
  15033. let gid = this.courseGroup.group[groupI].id;
  15034. if (
  15035. this.courseGroupStudentUid[gid].indexOf(
  15036. b[j].userid
  15037. ) != -1
  15038. ) {
  15039. isGw = 2;
  15040. this.courseGroup.group[groupI].works[i].push(_works);
  15041. break;
  15042. }
  15043. }
  15044. if (isGw == 1) {
  15045. _worksStudent[i].push(_works);
  15046. }
  15047. } else {
  15048. _worksStudent[i].push(_works);
  15049. }
  15050. _worksStudent2[i].push(_works);
  15051. this.isWorksS[i].push({
  15052. uid: b[j].userid,
  15053. sName: b[j].name,
  15054. });
  15055. } else if (b[j].type == 6 && b[j].atool != 50) {
  15056. let _works = {
  15057. userid: b[j].userid,
  15058. ateacher: b[j].ateacher,
  15059. wid: b[j].id,
  15060. works: b[j].content,
  15061. sName: b[j].name,
  15062. type: 4,
  15063. ttype:b[j].ttype,
  15064. time: b[j].time,
  15065. score: b[j].score,
  15066. img: b[j].img,
  15067. likesCount: likesCount,
  15068. commentCount: commentCount,
  15069. isLikes: isLikes,
  15070. commentJson: commentJson,
  15071. likeJson:likeJson
  15072. };
  15073. _worksStudent[i].push(_works);
  15074. _worksStudent2[i].push(_works);
  15075. this.isWorksS[i].push({
  15076. uid: b[j].userid,
  15077. sName: b[j].name,
  15078. });
  15079. } else if (b[j].type == 7 && b[j].atool != 50) {
  15080. let _work = {
  15081. userid: b[j].userid,
  15082. ateacher: b[j].ateacher,
  15083. wid: b[j].id,
  15084. works: b[j].content,
  15085. sName: b[j].name,
  15086. type: 5,
  15087. ttype:b[j].ttype,
  15088. time: b[j].time,
  15089. score: b[j].score,
  15090. img: b[j].img,
  15091. likesCount: likesCount,
  15092. commentCount: commentCount,
  15093. isLikes: isLikes,
  15094. commentJson: commentJson,
  15095. likeJson:likeJson
  15096. };
  15097. _worksStudent[i].push(_work);
  15098. _worksStudent2[i].push(_work);
  15099. this.isWorksS[i].push({
  15100. uid: b[j].userid,
  15101. sName: b[j].name,
  15102. });
  15103. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15104. let _works = {
  15105. userid: b[j].userid,
  15106. ateacher: b[j].ateacher,
  15107. wid: b[j].id,
  15108. works: b[j].content,
  15109. sName: b[j].name,
  15110. type: 12,
  15111. ttype:b[j].ttype,
  15112. time: b[j].time,
  15113. score: b[j].score,
  15114. img: b[j].img,
  15115. likesCount: likesCount,
  15116. commentCount: commentCount,
  15117. isLikes: isLikes,
  15118. commentJson: commentJson,
  15119. likeJson:likeJson
  15120. };
  15121. if (this.isGroup) {
  15122. let isGw = 1;
  15123. for (
  15124. var groupI = 0;
  15125. groupI < this.courseGroup.group.length;
  15126. groupI++
  15127. ) {
  15128. let gid = this.courseGroup.group[groupI].id;
  15129. if (
  15130. this.courseGroupStudentUid[gid].indexOf(
  15131. b[j].userid
  15132. ) != -1
  15133. ) {
  15134. isGw = 2;
  15135. this.courseGroup.group[groupI].works[i].push(_works);
  15136. break;
  15137. }
  15138. }
  15139. if (isGw == 1) {
  15140. _worksStudent[i].push(_works);
  15141. }
  15142. } else {
  15143. _worksStudent[i].push(_works);
  15144. }
  15145. _worksStudent2[i].push(_works);
  15146. this.isWorksS[i].push({
  15147. uid: b[j].userid,
  15148. sName: b[j].name,
  15149. });
  15150. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15151. let _works = {
  15152. userid: b[j].userid,
  15153. ateacher: b[j].ateacher,
  15154. wid: b[j].id,
  15155. works: b[j].content,
  15156. sName: b[j].name,
  15157. type: 0,
  15158. ttype:b[j].ttype,
  15159. time: b[j].time,
  15160. score: b[j].score,
  15161. img: b[j].img,
  15162. likesCount: likesCount,
  15163. commentCount: commentCount,
  15164. isLikes: isLikes,
  15165. commentJson: commentJson,
  15166. likeJson:likeJson
  15167. };
  15168. if (this.isGroup) {
  15169. let isGw = 1;
  15170. for (
  15171. var groupI = 0;
  15172. groupI < this.courseGroup.group.length;
  15173. groupI++
  15174. ) {
  15175. let gid = this.courseGroup.group[groupI].id;
  15176. if (
  15177. this.courseGroupStudentUid[gid].indexOf(
  15178. b[j].userid
  15179. ) != -1
  15180. ) {
  15181. isGw = 2;
  15182. this.courseGroup.group[groupI].works[i].push(_works);
  15183. break;
  15184. }
  15185. }
  15186. if (isGw == 1) {
  15187. _worksStudent[i].push(_works);
  15188. }
  15189. } else {
  15190. _worksStudent[i].push(_works);
  15191. }
  15192. _worksStudent2[i].push(_works);
  15193. this.isWorksS[i].push({
  15194. uid: b[j].userid,
  15195. sName: b[j].name,
  15196. });
  15197. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15198. let _works = {
  15199. userid: b[j].userid,
  15200. ateacher: b[j].ateacher,
  15201. wid: b[j].id,
  15202. works: b[j].content,
  15203. sName: b[j].name,
  15204. type: 0,
  15205. ttype:b[j].ttype,
  15206. time: b[j].time,
  15207. score: b[j].score,
  15208. img: b[j].img,
  15209. likesCount: likesCount,
  15210. commentCount: commentCount,
  15211. isLikes: isLikes,
  15212. commentJson: commentJson,
  15213. likeJson:likeJson
  15214. };
  15215. if (this.isGroup) {
  15216. let isGw = 1;
  15217. for (
  15218. var groupI = 0;
  15219. groupI < this.courseGroup.group.length;
  15220. groupI++
  15221. ) {
  15222. let gid = this.courseGroup.group[groupI].id;
  15223. if (
  15224. this.courseGroupStudentUid[gid].indexOf(
  15225. b[j].userid
  15226. ) != -1
  15227. ) {
  15228. isGw = 2;
  15229. this.courseGroup.group[groupI].works[i].push(_works);
  15230. break;
  15231. }
  15232. }
  15233. if (isGw == 1) {
  15234. _worksStudent[i].push(_works);
  15235. }
  15236. } else {
  15237. _worksStudent[i].push(_works);
  15238. }
  15239. _worksStudent2[i].push(_works);
  15240. this.isWorksS[i].push({
  15241. uid: b[j].userid,
  15242. sName: b[j].name,
  15243. });
  15244. }
  15245. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15246. let _works = {
  15247. userid: b[j].userid,
  15248. ateacher: b[j].ateacher,
  15249. wid: b[j].id,
  15250. works: b[j].content,
  15251. sName: b[j].name,
  15252. type: 2,
  15253. ttype:b[j].ttype,
  15254. time: b[j].time,
  15255. score: b[j].score,
  15256. img: b[j].img,
  15257. likesCount: likesCount,
  15258. commentCount: commentCount,
  15259. isLikes: isLikes,
  15260. commentJson: commentJson,
  15261. likeJson:likeJson
  15262. };
  15263. if (this.isGroup) {
  15264. let isGw = 1;
  15265. for (
  15266. var groupI = 0;
  15267. groupI < this.courseGroup.group.length;
  15268. groupI++
  15269. ) {
  15270. let gid = this.courseGroup.group[groupI].id;
  15271. if (
  15272. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15273. -1
  15274. ) {
  15275. isGw = 2;
  15276. this.courseGroup.group[groupI].works[i].push(_works);
  15277. break;
  15278. }
  15279. }
  15280. if (isGw == 1) {
  15281. _worksStudent[i].push(_works);
  15282. }
  15283. } else {
  15284. _worksStudent[i].push(_works);
  15285. }
  15286. _worksStudent2[i].push(_works);
  15287. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15288. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15289. //问卷
  15290. let _work = {
  15291. userid: b[j].userid,
  15292. ateacher: b[j].ateacher,
  15293. wid: b[j].id,
  15294. works: b[j].content,
  15295. sName: b[j].name,
  15296. type: 2,
  15297. ttype:b[j].ttype,
  15298. time: b[j].time,
  15299. score: b[j].score,
  15300. img: b[j].img,
  15301. likesCount: likesCount,
  15302. commentCount: commentCount,
  15303. isLikes: isLikes,
  15304. commentJson: commentJson,
  15305. likeJson:likeJson
  15306. };
  15307. _worksStudent[i].push(_work);
  15308. _worksStudent2[i].push(_work);
  15309. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15310. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15311. //选择题
  15312. let _work = {
  15313. userid: b[j].userid,
  15314. ateacher: b[j].ateacher,
  15315. wid: b[j].id,
  15316. works: b[j].content,
  15317. sName: b[j].name,
  15318. type: 8,
  15319. ttype:b[j].ttype,
  15320. time: b[j].time,
  15321. score: b[j].score,
  15322. img: b[j].img,
  15323. likesCount: likesCount,
  15324. commentCount: commentCount,
  15325. isLikes: isLikes,
  15326. commentJson: commentJson,
  15327. likeJson:likeJson
  15328. };
  15329. _worksStudent[i].push(_work);
  15330. _worksStudent2[i].push(_work);
  15331. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15332. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15333. //选择题
  15334. let _work = {
  15335. userid: b[j].userid,
  15336. ateacher: b[j].ateacher,
  15337. wid: b[j].id,
  15338. works: b[j].content,
  15339. sName: b[j].name,
  15340. type: 9,
  15341. ttype:b[j].ttype,
  15342. time: b[j].time,
  15343. score: b[j].score,
  15344. img: b[j].img,
  15345. likesCount: likesCount,
  15346. commentCount: commentCount,
  15347. isLikes: isLikes,
  15348. commentJson: commentJson,
  15349. likeJson:likeJson
  15350. };
  15351. _worksStudent[i].push(_work);
  15352. _worksStudent2[i].push(_work);
  15353. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15354. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15355. //选择题
  15356. let _work = {
  15357. userid: b[j].userid,
  15358. ateacher: b[j].ateacher,
  15359. wid: b[j].id,
  15360. works: b[j].content,
  15361. sName: b[j].name,
  15362. type: 10,
  15363. ttype:b[j].ttype,
  15364. time: b[j].time,
  15365. score: b[j].score,
  15366. img: b[j].img,
  15367. likesCount: likesCount,
  15368. commentCount: commentCount,
  15369. isLikes: isLikes,
  15370. commentJson: commentJson,
  15371. likeJson:likeJson
  15372. };
  15373. _worksStudent[i].push(_work);
  15374. _worksStudent2[i].push(_work);
  15375. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15376. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15377. //选择题
  15378. let _work = {
  15379. userid: b[j].userid,
  15380. ateacher: b[j].ateacher,
  15381. wid: b[j].id,
  15382. works: b[j].content,
  15383. sName: b[j].name,
  15384. type: 13,
  15385. ttype:b[j].ttype,
  15386. time: b[j].time,
  15387. score: b[j].score,
  15388. img: b[j].img,
  15389. likesCount: likesCount,
  15390. commentCount: commentCount,
  15391. isLikes: isLikes,
  15392. commentJson: commentJson,
  15393. likeJson:likeJson
  15394. };
  15395. _worksStudent[i].push(_work);
  15396. _worksStudent2[i].push(_work);
  15397. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15398. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15399. //选择题
  15400. let _work = {
  15401. userid: b[j].userid,
  15402. ateacher: b[j].ateacher,
  15403. wid: b[j].id,
  15404. works: b[j].content,
  15405. sName: b[j].name,
  15406. type: 16,
  15407. ttype:b[j].ttype,
  15408. time: b[j].time,
  15409. score: b[j].score,
  15410. img: b[j].img,
  15411. likesCount: likesCount,
  15412. commentCount: commentCount,
  15413. isLikes: isLikes,
  15414. commentJson: commentJson,
  15415. aiCode: b[j].aiCode,
  15416. teacherCode: b[j].teacherCode,
  15417. likeJson:likeJson
  15418. };
  15419. _worksStudent[i].push(_work);
  15420. _worksStudent2[i].push(_work);
  15421. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15422. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15423. //英语口语
  15424. let _work = {
  15425. userid: b[j].userid,
  15426. ateacher: b[j].ateacher,
  15427. wid: b[j].id,
  15428. works: b[j].content,
  15429. sName: b[j].name,
  15430. type: 17,
  15431. ttype:b[j].ttype,
  15432. time: b[j].time,
  15433. score: b[j].score,
  15434. img: b[j].img,
  15435. likesCount: likesCount,
  15436. commentCount: commentCount,
  15437. isLikes: isLikes,
  15438. commentJson: commentJson,
  15439. likeJson:likeJson
  15440. };
  15441. _worksStudent[i].push(_work);
  15442. _worksStudent2[i].push(_work);
  15443. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15444. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15445. //交互视频
  15446. let _work = {
  15447. userid: b[j].userid,
  15448. ateacher: b[j].ateacher,
  15449. wid: b[j].id,
  15450. works: b[j].content,
  15451. sName: b[j].name,
  15452. type: 14,
  15453. ttype:b[j].ttype,
  15454. time: b[j].time,
  15455. score: b[j].score,
  15456. img: b[j].img,
  15457. likesCount: likesCount,
  15458. commentCount: commentCount,
  15459. isLikes: isLikes,
  15460. commentJson: commentJson,
  15461. likeJson:likeJson
  15462. };
  15463. _worksStudent[i].push(_work);
  15464. _worksStudent2[i].push(_work);
  15465. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15466. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15467. let _gindex = JSON.parse(b[j].content);
  15468. if (
  15469. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15470. b[j].userid
  15471. ) != -1
  15472. ) {
  15473. let _work = {
  15474. userid: b[j].userid,
  15475. ateacher: b[j].ateacher,
  15476. wid: b[j].id,
  15477. works: _gindex.url,
  15478. sName: b[j].name,
  15479. type: _gindex.type,
  15480. ttype:b[j].ttype,
  15481. time: b[j].time,
  15482. score: b[j].score,
  15483. img: b[j].img,
  15484. likesCount: likesCount,
  15485. commentCount: commentCount,
  15486. isLikes: isLikes,
  15487. commentJson: commentJson,
  15488. likeJson:likeJson
  15489. };
  15490. _worksStudent[i][_gindex.groupIndex].push(_work);
  15491. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15492. }
  15493. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15494. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15495. let _work = {
  15496. userid: b[j].userid,
  15497. ateacher: b[j].ateacher,
  15498. wid: b[j].id,
  15499. works: b[j].content,
  15500. sName: b[j].name ? b[j].name : b[j].userid,
  15501. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15502. ttype:b[j].ttype,
  15503. time: b[j].time,
  15504. score: b[j].score,
  15505. img: b[j].img,
  15506. likesCount: likesCount,
  15507. commentCount: commentCount,
  15508. isLikes: isLikes,
  15509. commentJson: commentJson,
  15510. likeJson:likeJson
  15511. };
  15512. _worksStudent[i].push(_work);
  15513. _worksStudent2[i].push(_work);
  15514. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15515. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15516. let _work = {
  15517. userid: b[j].userid,
  15518. ateacher: b[j].ateacher,
  15519. wid: b[j].id,
  15520. works: b[j].content,
  15521. sName: b[j].name ? b[j].name : b[j].userid,
  15522. type: 12,
  15523. ttype:b[j].ttype,
  15524. time: b[j].time,
  15525. score: b[j].score,
  15526. img: b[j].img,
  15527. likesCount: likesCount,
  15528. commentCount: commentCount,
  15529. isLikes: isLikes,
  15530. commentJson: commentJson,
  15531. likeJson:likeJson
  15532. };
  15533. _worksStudent[i].push(_work);
  15534. _worksStudent2[i].push(_work);
  15535. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15536. } else if (
  15537. a[i].tool[0] == 57 &&
  15538. b[j].atool == 57 &&
  15539. b[j].type == 12
  15540. ) {
  15541. let _work = {
  15542. userid: b[j].userid,
  15543. ateacher: b[j].ateacher,
  15544. wid: b[j].id,
  15545. works: b[j].content,
  15546. sName: b[j].name ? b[j].name : b[j].userid,
  15547. type: 12,
  15548. ttype:b[j].ttype,
  15549. time: b[j].time,
  15550. score: b[j].score,
  15551. img: b[j].img,
  15552. likesCount: likesCount,
  15553. commentCount: commentCount,
  15554. isLikes: isLikes,
  15555. commentJson: commentJson,
  15556. likeJson:likeJson
  15557. };
  15558. _worksStudent[i].push(_work);
  15559. _worksStudent2[i].push(_work);
  15560. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15561. } else if (
  15562. a[i].tool[0] == 57 &&
  15563. b[j].atool == 57 &&
  15564. b[j].type == 15
  15565. ) {
  15566. let _work = {
  15567. userid: b[j].userid,
  15568. ateacher: b[j].ateacher,
  15569. wid: b[j].id,
  15570. works: b[j].content,
  15571. sName: b[j].name ? b[j].name : b[j].userid,
  15572. type: 15,
  15573. ttype:b[j].ttype,
  15574. time: b[j].time,
  15575. score: b[j].score,
  15576. img: b[j].img,
  15577. likesCount: likesCount,
  15578. commentCount: commentCount,
  15579. isLikes: isLikes,
  15580. commentJson: commentJson,
  15581. likeJson:likeJson
  15582. };
  15583. _worksStudent[i].push(_work);
  15584. _worksStudent2[i].push(_work);
  15585. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15586. }
  15587. }
  15588. }
  15589. if (_worksStudent[i] && _worksStudent[i].length) {
  15590. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15591. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15592. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15593. var scoreA = parseFloat(jscoreA);
  15594. var scoreB = parseFloat(jscoreB);
  15595. if (scoreA == scoreB) {
  15596. return b.likesCount - a.likesCount;
  15597. }
  15598. return scoreB - scoreA;
  15599. });
  15600. if (this.isGroup) {
  15601. for (
  15602. var groupI = 0;
  15603. groupI < this.courseGroup.group.length;
  15604. groupI++
  15605. ) {
  15606. this.courseGroup.group[groupI].works[i] =
  15607. this.courseGroup.group[groupI].works[i].sort(function (
  15608. a,
  15609. b
  15610. ) {
  15611. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15612. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15613. var scoreA = parseFloat(jscoreA);
  15614. var scoreB = parseFloat(jscoreB);
  15615. if (scoreA == scoreB) {
  15616. return b.likesCount - a.likesCount;
  15617. }
  15618. return scoreB - scoreA;
  15619. });
  15620. }
  15621. }
  15622. }
  15623. }
  15624. this.timeWorkList = _worksStudent2;
  15625. for (var i = 0; i < a.length; i++) {
  15626. for (var j = 0; j < b.length; j++) {
  15627. var data = b[j];
  15628. if (i == b[j].tool) {
  15629. if (data.type == 2 || data.type == 8) {
  15630. for (var z = 0; z < this.checkJson[i].length; z++) {
  15631. this.checkJson[i][z].checkPerent = [];
  15632. this.checkJson[i][z].right = Math.round(
  15633. (this.checkJson[i][z].rightPerson.length /
  15634. parseInt(_worksStudent[i].length)) *
  15635. 100
  15636. );
  15637. let aaaa = this.checkJson[i][z];
  15638. for (
  15639. var k = 0;
  15640. k < this.checkJson[i][z].checkCount.length;
  15641. k++
  15642. ) {
  15643. this.checkJson[i][z].checkPerent.push(
  15644. Math.round(
  15645. (this.checkJson[i][z].checkCount[k] /
  15646. parseInt(_worksStudent[i].length)) *
  15647. 100
  15648. )
  15649. );
  15650. }
  15651. }
  15652. } else if (data.type == 9) {
  15653. for (var z = 0; z < this.checkJson[i].length; z++) {
  15654. this.checkJson[i][z].checkPerent = [];
  15655. this.checkJson[i][z].right = Math.round(
  15656. (this.checkJson[i][z].rightPerson.length /
  15657. this.checkJson[i][z].checkPerson.length) *
  15658. 100
  15659. );
  15660. }
  15661. }
  15662. }
  15663. }
  15664. }
  15665. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15666. this.joinGroup(gindex);
  15667. }
  15668. this.worksStudent = _worksStudent;
  15669. this.selectWorksStudent();
  15670. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15671. this.$nextTick(()=>{
  15672. setTimeout(()=>{
  15673. setTimeout(()=>{
  15674. this.panToolHeight('tool-'+ci);
  15675. }, 500)
  15676. }, 0)
  15677. })
  15678. }
  15679. })
  15680. .catch((err) => {
  15681. console.error(err);
  15682. });
  15683. },
  15684. pngToWhiteBg(file) {
  15685. const _file = file;
  15686. let read = new FileReader();
  15687. read.readAsDataURL(file); // 文件转base64
  15688. return new Promise((resolve, reject) => {
  15689. read.onload = (e) => {
  15690. let img = new Image();
  15691. img.src = e.target.result;
  15692. img.onload = async () => {
  15693. // 生成canvas
  15694. let canvas = document.createElement("canvas");
  15695. let context = canvas.getContext("2d");
  15696. // 绘制图片到canvas上
  15697. canvas.width = img.width;
  15698. canvas.height = img.height;
  15699. // 在canvas绘制前填充白色背景
  15700. context.fillStyle = "#fff";
  15701. context.fillRect(0, 0, canvas.width, canvas.height);
  15702. context.drawImage(img, 0, 0);
  15703. let base64 = canvas.toDataURL(file["type"], 1);
  15704. let newFile = this.dataUrlToFile(base64, _file);
  15705. resolve(newFile);
  15706. };
  15707. };
  15708. });
  15709. },
  15710. dataUrlToFile(dataurl, file) {
  15711. let arr = dataurl.split(","),
  15712. mime = arr[0].match(/:(.*?);/)[1],
  15713. bstr = atob(arr[1]),
  15714. n = bstr.length,
  15715. u8arr = new Uint8Array(n);
  15716. while (n--) {
  15717. u8arr[n] = bstr.charCodeAt(n);
  15718. }
  15719. // return new Blob([u8arr], { type: mime });
  15720. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15721. type: mime,
  15722. });
  15723. },
  15724. async beforeUpload1(event, type, i) {
  15725. // this.$message.success('进入上传')
  15726. var file = "";
  15727. if (type == 5) {
  15728. file = event;
  15729. } else {
  15730. file = event.target.files[0];
  15731. }
  15732. var credentials = {
  15733. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15734. secretAccessKey: "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",
  15735. }; //秘钥形式的登录上传
  15736. window.AWS.config.update(credentials);
  15737. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15738. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15739. var _this = this;
  15740. _this.progress = 0;
  15741. _this.proVisible = true;
  15742. _this.isFinishSize = 0;
  15743. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15744. var b = [
  15745. "DOC",
  15746. "DOCX",
  15747. "DOCM",
  15748. "DOTM",
  15749. "DOTX",
  15750. "PPTX",
  15751. "PPSX",
  15752. "PPT",
  15753. "PPS",
  15754. "PPTM",
  15755. "POTM",
  15756. "PPAM",
  15757. "POTX",
  15758. "PPSM",
  15759. ];
  15760. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15761. var photoA = [
  15762. "BMP",
  15763. "GIF",
  15764. "PNG",
  15765. "JPEG",
  15766. "JPEG",
  15767. "JPG",
  15768. "TIF",
  15769. "PCX",
  15770. "TGA",
  15771. "EXIF",
  15772. "FPX",
  15773. "SVG",
  15774. "APNG",
  15775. ];
  15776. // if (
  15777. // b.indexOf(
  15778. // file.name
  15779. // .split(".")
  15780. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15781. // ) != -1
  15782. // ) {
  15783. // if (file.size / 1024 / 1024 > 10) {
  15784. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15785. // return;
  15786. // }
  15787. // } else if (
  15788. // excelA.indexOf(
  15789. // file.name
  15790. // .split(".")
  15791. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15792. // ) != "-1"
  15793. // ) {
  15794. // if (file.size / 1024 / 1024 > 5) {
  15795. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15796. // return;
  15797. // }
  15798. // }
  15799. if (
  15800. photoA.indexOf(
  15801. file.name
  15802. .split(".")
  15803. [file.name.split(".").length - 1].toLocaleUpperCase()
  15804. ) != -1 &&
  15805. type != 4
  15806. ) {
  15807. // const blob = await imageConversion.compress(file, 0.8)
  15808. file = await this.pngToWhiteBg(file);
  15809. const blob = await imageConversion.compressAccurately(file, 256);
  15810. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15811. file = new File([blob], file.name, { type: file.type });
  15812. }
  15813. if (file) {
  15814. var params = {
  15815. Key:
  15816. file.name.split(".")[0] +
  15817. new Date().getTime() +
  15818. "." +
  15819. file.name.split(".")[file.name.split(".").length - 1],
  15820. ContentType: file.type,
  15821. Body: file,
  15822. "Access-Control-Allow-Credentials": "*",
  15823. ACL: "public-read",
  15824. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15825. var options = {
  15826. // partSize: 2048 * 1024 * 1024,
  15827. partSize: 1024 * 1024 * 1024,
  15828. queueSize: 2,
  15829. leavePartsOnError: true,
  15830. };
  15831. bucket
  15832. .upload(params, options)
  15833. .on("httpUploadProgress", function (evt) {
  15834. //这里可以写进度条
  15835. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15836. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15837. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15838. })
  15839. .send(function (err, data) {
  15840. _this.progress = 100;
  15841. _this.isFinishSize = _this.isAllSize;
  15842. setTimeout(() => {
  15843. _this.proVisible = false;
  15844. }, 1000);
  15845. if (err) {
  15846. var a = _this.$refs.upload1.uploadFiles;
  15847. a.splice(a.length - 1, a.length);
  15848. _this.$message.error("上传失败");
  15849. } else {
  15850. // _this.$message.success('上传成功')
  15851. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15852. var c = [
  15853. "AVI",
  15854. "NAVI",
  15855. "MPEG",
  15856. "ASF",
  15857. "MOV",
  15858. "WMV",
  15859. "3GP",
  15860. "RM",
  15861. "RMVB",
  15862. "FLV",
  15863. "F4V",
  15864. "H.264",
  15865. "H.265",
  15866. "REAL VIDEO",
  15867. "MKV",
  15868. "WebM",
  15869. "HDDVD",
  15870. "MP4",
  15871. "MPG",
  15872. "M4V",
  15873. "MGV",
  15874. "OGV",
  15875. "QTM",
  15876. "STR",
  15877. "AMC",
  15878. "DVX",
  15879. "EVO",
  15880. "DAT",
  15881. "OGG",
  15882. "OGM",
  15883. ];
  15884. if (type == 1) {
  15885. _this.studyJuri[0].cover.push({
  15886. name: file.name,
  15887. url: data.Location,
  15888. uid: file.uid,
  15889. });
  15890. if (
  15891. c.indexOf(
  15892. _this.studyJuri[0].cover[0].url
  15893. .split(".")
  15894. [
  15895. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15896. ].toLocaleUpperCase()
  15897. ) != -1
  15898. ) {
  15899. _this.fileType = 2;
  15900. } else if (
  15901. b.indexOf(
  15902. _this.studyJuri[0].cover[0].url
  15903. .split(".")
  15904. [
  15905. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15906. ].toLocaleUpperCase()
  15907. ) != -1
  15908. ) {
  15909. _this.fileType = 1;
  15910. } else if (
  15911. photoA.indexOf(
  15912. _this.studyJuri[0].cover[0].url
  15913. .split(".")
  15914. [
  15915. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15916. ].toLocaleUpperCase()
  15917. ) != -1
  15918. ) {
  15919. _this.fileType = 0;
  15920. } else {
  15921. _this.fileType = 3;
  15922. }
  15923. _this.imgChange(null, null, type);
  15924. } else if (type == 2) {
  15925. _this.upToolImg = data.Location;
  15926. _this.imgChange(null, null, type);
  15927. _this.addCourseWorks(i);
  15928. } else if (type == 4) {
  15929. _this.addPz("3", data.Location);
  15930. } else if (type == 5) {
  15931. _this.addImgDrawImG(data.Location);
  15932. } else if (type == 6) {
  15933. var _ftype = 1;
  15934. if (
  15935. c.indexOf(
  15936. data.Location.split(".")[
  15937. data.Location.split(".").length - 1
  15938. ].toLocaleUpperCase()
  15939. ) != -1
  15940. ) {
  15941. _ftype = 5;
  15942. } else if (
  15943. b.indexOf(
  15944. data.Location.split(".")[
  15945. data.Location.split(".").length - 1
  15946. ].toLocaleUpperCase()
  15947. ) != -1
  15948. ) {
  15949. _ftype = 4;
  15950. } else {
  15951. _ftype = 1;
  15952. }
  15953. _this.plworkFile.push({
  15954. name: file.name,
  15955. url: data.Location,
  15956. uid: file.uid,
  15957. fileType: _ftype,
  15958. username:
  15959. _this.plworkFile.length > 10
  15960. ? _this.plworkFile.length + 1
  15961. : "0" + (_this.plworkFile.length + 1),
  15962. });
  15963. } else if (type == 7) {
  15964. _this.addCourseWorksGong(i, data.Location, 32);
  15965. } else if (type == 8) {
  15966. _this.addCourseWorksGong(i, data.Location, 57);
  15967. }
  15968. _this.imgChange(null, null, type);
  15969. console.log(data.Location);
  15970. // _this.$message.success('上传成功'+data.Location)
  15971. }
  15972. });
  15973. }
  15974. },
  15975. async beforeUpload3(event, type, i) {
  15976. // this.$message.success('进入上传')
  15977. let file = "";
  15978. let cfindex2 = 0;
  15979. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15980. file = event.target.files[cfindex];
  15981. var credentials = {
  15982. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15983. secretAccessKey: "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",
  15984. }; //秘钥形式的登录上传
  15985. window.AWS.config.update(credentials);
  15986. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15987. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15988. var _this = this;
  15989. // _this.progress = 0;
  15990. _this.proVisible2 = true;
  15991. var b = [
  15992. "DOC",
  15993. "DOCX",
  15994. "DOCM",
  15995. "DOTM",
  15996. "DOTX",
  15997. "PPTX",
  15998. "PPSX",
  15999. "PPT",
  16000. "PPS",
  16001. "PPTM",
  16002. "POTM",
  16003. "PPAM",
  16004. "POTX",
  16005. "PPSM",
  16006. ];
  16007. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16008. var photoA = [
  16009. "BMP",
  16010. "GIF",
  16011. "PNG",
  16012. "JPEG",
  16013. "JPG",
  16014. "TIF",
  16015. "PCX",
  16016. "TGA",
  16017. "EXIF",
  16018. "FPX",
  16019. "SVG",
  16020. "APNG",
  16021. ];
  16022. if (
  16023. photoA.indexOf(
  16024. file.name
  16025. .split(".")
  16026. [file.name.split(".").length - 1].toLocaleUpperCase()
  16027. ) != -1 &&
  16028. type != 4
  16029. ) {
  16030. // const blob = await imageConversion.compress(file, 0.8)
  16031. file = await this.pngToWhiteBg(file);
  16032. const blob = await imageConversion.compressAccurately(file, 256);
  16033. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16034. file = new File([blob], file.name, { type: file.type });
  16035. }
  16036. if (file) {
  16037. var params = {
  16038. Key:
  16039. file.name.split(".")[0] +
  16040. new Date().getTime() +
  16041. "." +
  16042. file.name.split(".")[file.name.split(".").length - 1],
  16043. ContentType: file.type,
  16044. Body: file,
  16045. "Access-Control-Allow-Credentials": "*",
  16046. ACL: "public-read",
  16047. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16048. var options = {
  16049. // partSize: 2048 * 1024 * 1024,
  16050. partSize: 1024 * 1024 * 1024,
  16051. queueSize: 2,
  16052. leavePartsOnError: true,
  16053. };
  16054. bucket
  16055. .upload(params, options)
  16056. .on("httpUploadProgress", function (evt) {
  16057. //这里可以写进度条
  16058. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16059. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16060. })
  16061. .send(function (err, data) {
  16062. // _this.progress = 100;
  16063. cfindex2++;
  16064. setTimeout(() => {
  16065. if (
  16066. cfindex2 == event.target.files.length - 1 ||
  16067. cfindex2 > event.target.files.length - 1
  16068. ) {
  16069. _this.proVisible2 = false;
  16070. }
  16071. }, 1000);
  16072. if (err) {
  16073. var a = _this.$refs.upload1.uploadFiles;
  16074. a.splice(a.length - 1, a.length);
  16075. _this.$message.error("上传失败");
  16076. } else {
  16077. // _this.$message.success('上传成功')
  16078. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16079. var c = [
  16080. "AVI",
  16081. "NAVI",
  16082. "MPEG",
  16083. "ASF",
  16084. "MOV",
  16085. "WMV",
  16086. "3GP",
  16087. "RM",
  16088. "RMVB",
  16089. "FLV",
  16090. "F4V",
  16091. "H.264",
  16092. "H.265",
  16093. "REAL VIDEO",
  16094. "MKV",
  16095. "WebM",
  16096. "HDDVD",
  16097. "MP4",
  16098. "MPG",
  16099. "M4V",
  16100. "MGV",
  16101. "OGV",
  16102. "QTM",
  16103. "STR",
  16104. "AMC",
  16105. "DVX",
  16106. "EVO",
  16107. "DAT",
  16108. "OGG",
  16109. "OGM",
  16110. ];
  16111. if (type == 1) {
  16112. _this.studyJuri[0].cover.push({
  16113. name: file.name,
  16114. url: data.Location,
  16115. uid: file.uid,
  16116. });
  16117. if (
  16118. c.indexOf(
  16119. _this.studyJuri[0].cover[0].url
  16120. .split(".")
  16121. [
  16122. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16123. ].toLocaleUpperCase()
  16124. ) != -1
  16125. ) {
  16126. _this.fileType = 2;
  16127. } else if (
  16128. b.indexOf(
  16129. _this.studyJuri[0].cover[0].url
  16130. .split(".")
  16131. [
  16132. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16133. ].toLocaleUpperCase()
  16134. ) != -1
  16135. ) {
  16136. _this.fileType = 1;
  16137. } else {
  16138. _this.fileType = 0;
  16139. }
  16140. _this.imgChange(null, null, type);
  16141. } else if (type == 2) {
  16142. _this.upToolImg = data.Location;
  16143. _this.imgChange(null, null, type);
  16144. _this.addCourseWorks(i);
  16145. } else if (type == 4) {
  16146. _this.addPz("3", data.Location);
  16147. } else if (type == 5) {
  16148. _this.addImgDrawImG(data.Location);
  16149. } else if (type == 6) {
  16150. var _ftype = 1;
  16151. if (
  16152. c.indexOf(
  16153. data.Location.split(".")[
  16154. data.Location.split(".").length - 1
  16155. ].toLocaleUpperCase()
  16156. ) != -1
  16157. ) {
  16158. _ftype = 5;
  16159. } else if (
  16160. b.indexOf(
  16161. data.Location.split(".")[
  16162. data.Location.split(".").length - 1
  16163. ].toLocaleUpperCase()
  16164. ) != -1
  16165. ) {
  16166. _ftype = 4;
  16167. } else {
  16168. _ftype = 1;
  16169. }
  16170. _this.plworkFile.push({
  16171. name: file.name,
  16172. url: data.Location,
  16173. uid: file.uid,
  16174. fileType: _ftype,
  16175. username:
  16176. _this.plworkFile.length + 1 > 9
  16177. ? _this.plworkFile.length + 1
  16178. : "0" + (_this.plworkFile.length + 1),
  16179. });
  16180. }
  16181. _this.imgChange(null, null, type);
  16182. console.log(data.Location);
  16183. // _this.$message.success('上传成功'+data.Location)
  16184. }
  16185. });
  16186. }
  16187. }
  16188. },
  16189. beforeUpload2(event, type) {
  16190. var file = event.target.files[0];
  16191. var credentials = {
  16192. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16193. secretAccessKey: "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",
  16194. }; //秘钥形式的登录上传
  16195. window.AWS.config.update(credentials);
  16196. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16197. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16198. var _this = this;
  16199. _this.progress = 0;
  16200. _this.proVisible = true;
  16201. if (file) {
  16202. var params = {
  16203. Key:
  16204. file.name.split(".")[0] +
  16205. new Date().getTime() +
  16206. "." +
  16207. file.name.split(".")[file.name.split(".").length - 1],
  16208. ContentType: file.type,
  16209. Body: file,
  16210. "Access-Control-Allow-Credentials": "*",
  16211. ACL: "public-read",
  16212. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16213. var options = {
  16214. partSize: 2048 * 1024 * 1024,
  16215. queueSize: 2,
  16216. leavePartsOnError: true,
  16217. };
  16218. bucket
  16219. .upload(params, options)
  16220. .on("httpUploadProgress", function (evt) {
  16221. //这里可以写进度条
  16222. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16223. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16224. })
  16225. .send(function (err, data) {
  16226. _this.progress = 100;
  16227. setTimeout(() => {
  16228. _this.proVisible = false;
  16229. }, 1000);
  16230. if (err) {
  16231. var a = _this.$refs.upload1.uploadFiles;
  16232. a.splice(a.length - 1, a.length);
  16233. _this.$message.error("上传失败");
  16234. } else {
  16235. if (type == 2) {
  16236. _this.studyJuri[0].upVedio.push({
  16237. name: file.name,
  16238. url: data.Location,
  16239. uid: file.uid,
  16240. });
  16241. _this.imgChange(null, null, type);
  16242. } else if (type == 3) {
  16243. _this.studyJuri[0].upFile.push({
  16244. name: file.name,
  16245. url: data.Location,
  16246. uid: file.uid,
  16247. });
  16248. _this.imgChange(null, null, type);
  16249. }
  16250. console.log(data.Location);
  16251. }
  16252. });
  16253. }
  16254. },
  16255. allScrell() {
  16256. window.parent.postMessage({ allScreen: this.screenType }, "*");
  16257. },
  16258. nextOrpreSteps(t) {
  16259. if (this.IsFollow && this.tType == 2) {
  16260. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16261. return;
  16262. }
  16263. var b = this.chapInfoList.length - 1;
  16264. if (t == 0) {
  16265. if (this.courseType == 0) {
  16266. if (this.taskCount == 0) {
  16267. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16268. if (this.IsLookOpen) {
  16269. if (
  16270. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16271. ) {
  16272. if (
  16273. this.courseDetail.userid != this.userid &&
  16274. (!this.courseDetail.course_teacher ||
  16275. (this.courseDetail.course_teacher &&
  16276. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16277. ) {
  16278. this.$message.error("任务未解锁");
  16279. } else {
  16280. this.$message.error("上一任务未解锁");
  16281. }
  16282. return;
  16283. }
  16284. }
  16285. this.navList[this.courseType].isOpen = false;
  16286. this.courseType = b;
  16287. this.taskCount =
  16288. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16289. .length - 1;
  16290. this.navList[this.courseType].isOpen = true;
  16291. } else {
  16292. this.taskCount--;
  16293. }
  16294. } else {
  16295. if (this.taskCount == 0) {
  16296. this.navList[this.courseType].isOpen = false;
  16297. this.courseType--;
  16298. this.taskCount =
  16299. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16300. .length - 1;
  16301. this.navList[this.courseType].isOpen = true;
  16302. } else {
  16303. this.taskCount--;
  16304. }
  16305. }
  16306. } else {
  16307. if (this.courseType == b) {
  16308. if (
  16309. this.taskCount ==
  16310. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16311. 1
  16312. ) {
  16313. this.navList[this.courseType].isOpen = false;
  16314. this.courseType = 0;
  16315. this.taskCount = 0;
  16316. this.navList[this.courseType].isOpen = true;
  16317. } else {
  16318. var bbb = parseInt(this.taskCount) + 1;
  16319. if (
  16320. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16321. .isLook &&
  16322. this.courseDetail.userid != this.userid &&
  16323. (!this.courseDetail.course_teacher ||
  16324. (this.courseDetail.course_teacher &&
  16325. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16326. this.IsLookOpen
  16327. ) {
  16328. this.$message.error("任务未解锁");
  16329. return;
  16330. }
  16331. this.taskCount++;
  16332. if (this.IsLookOpen) {
  16333. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16334. this.taskCount
  16335. ].isLook = true;
  16336. this.addCourseState(3);
  16337. }
  16338. }
  16339. } else {
  16340. if (
  16341. this.taskCount ==
  16342. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16343. 1
  16344. ) {
  16345. var bbb = parseInt(this.courseType) + 1;
  16346. if (
  16347. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16348. this.courseDetail.userid != this.userid &&
  16349. (!this.courseDetail.course_teacher ||
  16350. (this.courseDetail.course_teacher &&
  16351. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16352. this.IsLookOpen
  16353. ) {
  16354. this.$message.error("任务未解锁");
  16355. return;
  16356. }
  16357. this.navList[this.courseType].isOpen = false;
  16358. this.courseType++;
  16359. this.taskCount = 0;
  16360. this.navList[this.courseType].isOpen = true;
  16361. } else {
  16362. var bbb = parseInt(this.taskCount) + 1;
  16363. if (
  16364. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16365. .isLook &&
  16366. this.courseDetail.userid != this.userid &&
  16367. (!this.courseDetail.course_teacher ||
  16368. (this.courseDetail.course_teacher &&
  16369. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16370. this.IsLookOpen
  16371. ) {
  16372. this.$message.error("任务未解锁");
  16373. return;
  16374. }
  16375. this.taskCount++;
  16376. }
  16377. if (this.IsLookOpen) {
  16378. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16379. this.taskCount
  16380. ].isLook = true;
  16381. this.addCourseState(3);
  16382. }
  16383. }
  16384. // if (
  16385. // this.taskCount ==
  16386. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16387. // ) {
  16388. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16389. // } else {
  16390. // this.taskCount++;
  16391. // }
  16392. }
  16393. document.scrollingElement.scrollTop = 0;
  16394. // this.showType = 7;
  16395. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16396. // if (this.vedio[this.taskCount].length > 0) {
  16397. // var a =
  16398. // document.getElementsByClassName("box_course")[this.taskCount]
  16399. // .offsetHeight;
  16400. // document.getElementsByClassName("vedioList")[
  16401. // this.taskCount
  16402. // ].style.height = a + "px";
  16403. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16404. // a - 40 + "px";
  16405. // }
  16406. this.isNoHomeWork = false;
  16407. (this.studyJuri = [
  16408. {
  16409. content: "",
  16410. cover: [],
  16411. upVedio: [],
  16412. upFile: [],
  16413. },
  16414. ]),
  16415. (this.radio = []);
  16416. this.isClickNav = "";
  16417. this.selectPz();
  16418. this.getHomeWork();
  16419. this.getCourseDetail(2);
  16420. this.$forceUpdate();
  16421. },
  16422. openTask(s, n, i) {
  16423. if (this.IsFollow && this.tType == 2) {
  16424. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16425. return;
  16426. }
  16427. if (this.IsLookOpen &&
  16428. this.courseDetail.userid != this.userid &&
  16429. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  16430. if (
  16431. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16432. this.courseDetail.userid != this.userid &&
  16433. (!this.courseDetail.course_teacher ||
  16434. (this.courseDetail.course_teacher &&
  16435. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16436. ) {
  16437. this.$message.error("任务未解锁");
  16438. return;
  16439. }
  16440. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16441. if (
  16442. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16443. .isLook
  16444. ) {
  16445. this.$message.error("上一任务未解锁");
  16446. return;
  16447. }
  16448. } else if (s > this.courseType) {
  16449. if (n > 0) {
  16450. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16451. this.$message.error("上一任务未解锁");
  16452. return;
  16453. }
  16454. } else {
  16455. if (
  16456. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16457. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16458. ].isLook
  16459. ) {
  16460. this.$message.error("上一任务未解锁");
  16461. return;
  16462. }
  16463. }
  16464. }
  16465. }
  16466. if (this.navList[s].task[n].isOpen == true) {
  16467. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16468. return;
  16469. }
  16470. let flag = this.courseType==s;
  16471. this.courseType = s;
  16472. this.navId = i;
  16473. this.taskCount = n;
  16474. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  16475. this.navList[this.courseType].task[this.taskCount].isOpen =
  16476. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16477. if (this.IsLookOpen) {
  16478. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16479. this.taskCount
  16480. ].isLook = true;
  16481. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  16482. this.addCourseState(3,yym);
  16483. }
  16484. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  16485. this.isCloseList[ci].isClose = 0;
  16486. this.isCloseList[ci].isCloseBoolean = false;
  16487. this.$nextTick(()=>{
  16488. setTimeout(()=>{
  16489. setTimeout(()=>{
  16490. this.panToolHeight('tool-'+ci);
  16491. }, 0)
  16492. }, 0)
  16493. })
  16494. }
  16495. // this.showType = 7;
  16496. this.isNoHomeWork = false;
  16497. (this.studyJuri = [
  16498. {
  16499. content: "",
  16500. cover: [],
  16501. upVedio: [],
  16502. upFile: [],
  16503. },
  16504. ]),
  16505. (this.radio = []);
  16506. document.scrollingElement.scrollTop = 0;
  16507. // setTimeout(() => {
  16508. // let a = document.getElementById(i);
  16509. // if (a.offsetTop - 110 == 0) {
  16510. // window.scrollTo(0, 0);
  16511. // } else {
  16512. // window.scrollTo(0, a.offsetTop);
  16513. // }
  16514. // }, 0);
  16515. for (var z = 0; z < this.navList.length; z++) {
  16516. for (var q = 0; q < this.navList[z].task.length; q++) {
  16517. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16518. this.navList[z].task[q].tool[w].isTool = false;
  16519. }
  16520. }
  16521. }
  16522. this.selectPz();
  16523. this.getHomeWork();
  16524. this.getCourseDetail(2);
  16525. if(flag){
  16526. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16527. }else{
  16528. 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>`)
  16529. }
  16530. },
  16531. get(i) {
  16532. if (this.IsFollow && this.tType == 2) {
  16533. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16534. return;
  16535. }
  16536. // for(var k=0;k<this.navList.length;k++){
  16537. // this.navList[k].isOpen = false;
  16538. // }
  16539. // this.navList[i].isOpen = true;
  16540. this.navList[i].isOpen = !this.navList[i].isOpen;
  16541. if (this.navList[i].isOpen) {
  16542. this.openTask(i, 0, i + "-0");
  16543. }
  16544. },
  16545. addQuestion() {
  16546. this.answerList.push({
  16547. answerTitle: this.answerQ,
  16548. answer: this.questionAnswer,
  16549. });
  16550. let params = [
  16551. {
  16552. uid: this.userid,
  16553. cid: this.id,
  16554. stage: this.courseType,
  16555. task: this.taskCount,
  16556. tool: this.toolindex,
  16557. content: JSON.stringify(this.answerList),
  16558. type: 3,
  16559. },
  16560. ];
  16561. this.ajax
  16562. .post(this.$store.state.api + "addCourseWorks", params)
  16563. .then((res) => {
  16564. this.$message({
  16565. message: "提交成功",
  16566. type: "success",
  16567. });
  16568. this.answerList = [];
  16569. this.answerDialogVisible = false;
  16570. this.selectStudent();
  16571. this.selectSWorks();
  16572. this.selectSLook();
  16573. })
  16574. .catch((err) => {
  16575. this.$message.error("提交失败");
  16576. console.error(err);
  16577. });
  16578. },
  16579. addQuestionTeacher() {
  16580. this.answerList.push({
  16581. answerTitle: this.answerQ,
  16582. answer: this.questionAnswer,
  16583. });
  16584. let params = [
  16585. {
  16586. uid: this.sStudent.userid,
  16587. cid: this.id,
  16588. stage: this.courseType,
  16589. task: this.taskCount,
  16590. tool: this.toolindex,
  16591. content: JSON.stringify(this.answerList),
  16592. type: 3,
  16593. ateacher: this.userid,
  16594. },
  16595. ];
  16596. this.ajax
  16597. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16598. .then((res) => {
  16599. this.$message({
  16600. message: "提交成功",
  16601. type: "success",
  16602. });
  16603. this.answerList = [];
  16604. this.questionAnswer = "";
  16605. this.answerDialogVisibleTeacher = false;
  16606. this.selectStudent();
  16607. this.selectSWorks();
  16608. this.selectSLook();
  16609. })
  16610. .catch((err) => {
  16611. this.$message.error("提交失败");
  16612. console.error(err);
  16613. });
  16614. },
  16615. refreshCourse() {
  16616. // window.location.reload();
  16617. this.navList = [];
  16618. this.getCourseDetail(1);
  16619. },
  16620. getCourseDetail(type, gindex) {
  16621. let loading;
  16622. if (type != 2) {
  16623. loading = this.$loading.service({
  16624. background: "rgba(255, 255, 255, 0.7)",
  16625. target: document.querySelector(".student_table"),
  16626. });
  16627. }
  16628. this.downLoading = false
  16629. // this.navList[0].isOpen = false;
  16630. // this.navList[this.courseType].isOpen = true;
  16631. // this.courseType = this.courseTypeLine;
  16632. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16633. let params = {
  16634. courseId: this.id,
  16635. };
  16636. this.ajax
  16637. .get(this.$store.state.api + "selectCourseDetail3", params)
  16638. .then((res) => {
  16639. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  16640. if (type != 2) {
  16641. loading.close();
  16642. if (
  16643. this.courseType >
  16644. JSON.parse(res.data[0][0].chapters).length - 1
  16645. ) {
  16646. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16647. }
  16648. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16649. .chapterInfo[0].taskJson;
  16650. var b = [
  16651. "AVI",
  16652. "NAVI",
  16653. "MPEG",
  16654. "ASF",
  16655. "MOV",
  16656. "WMV",
  16657. "3GP",
  16658. "RM",
  16659. "RMVB",
  16660. "FLV",
  16661. "F4V",
  16662. "H.264",
  16663. "H.265",
  16664. "REAL VIDEO",
  16665. "MKV",
  16666. "WebM",
  16667. "HDDVD",
  16668. "MP4",
  16669. "MPG",
  16670. "M4V",
  16671. "MGV",
  16672. "OGV",
  16673. "QTM",
  16674. "STR",
  16675. "AMC",
  16676. "DVX",
  16677. "EVO",
  16678. "DAT",
  16679. "OGG",
  16680. "OGM",
  16681. "MP3",
  16682. ];
  16683. let _chapterData = [];
  16684. for (var i = 0; i < a.length; i++) {
  16685. var c = a[i].chapterData;
  16686. this.vedio[i] = [];
  16687. this.textList[i] = [];
  16688. this.lineList[i] = [];
  16689. this.chapToolList[i] = [];
  16690. this.file[i] = [];
  16691. this.fileC[i] = [];
  16692. _chapterData[i] = c.filter((el) => {
  16693. return el.type != 12;
  16694. });
  16695. this.fileC[i] = c.filter((el) => {
  16696. return el.type == 12;
  16697. });
  16698. if (this.tType == 2) {
  16699. if (this.fileC[i].length) {
  16700. let yym1 = this.fileC[i].filter(e=>{
  16701. if(!converter(e.name).includes(converter("教案"))){
  16702. return e
  16703. }
  16704. })
  16705. this.fileC[i] = yym1
  16706. }
  16707. }
  16708. // else if (c[j].type == 12) {
  16709. // this.fileC[i].push(c[j]);
  16710. // }
  16711. for (var j = 0; j < c.length; j++) {
  16712. if (c[j].type == 7) {
  16713. this.chapToolList[i].push(c[j]);
  16714. } else if (c[j].type == 8 || c[j].type == 14) {
  16715. this.lineList[i].push(c[j]);
  16716. } else if (c[j].type == 6) {
  16717. this.textList[i].push(c[j]);
  16718. } else {
  16719. if (
  16720. b.indexOf(
  16721. c[j].url
  16722. .split(".")
  16723. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16724. ) != -1
  16725. ) {
  16726. this.vedio[i].push(c[j]);
  16727. } else {
  16728. this.file[i].push(c[j]);
  16729. }
  16730. }
  16731. }
  16732. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16733. d.sources[0].src =
  16734. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16735. this.playerO[i] = d;
  16736. }
  16737. this.courseDetail = res.data[0][0];
  16738. if(this.tType == 2){
  16739. this.tcid = this.arrayToArray(
  16740. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16741. this.classId ? this.classId.split(",") : []
  16742. ).join(",");
  16743. }else{
  16744. this.tcid = this.arrayToArray(
  16745. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16746. this.tcid2 ? this.tcid2.split(",") : []
  16747. ).join(",");
  16748. }
  16749. this.evalua = res.data[0][0].evaId;
  16750. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16751. this.courseType
  16752. ];
  16753. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16754. if (this.tcid && res.data[1].length) {
  16755. let _inviteA = [];
  16756. for (var ik = 0; ik < res.data[1].length; ik++) {
  16757. _inviteA.push({
  16758. cid: res.data[1][ik].classid,
  16759. ic: res.data[1][ik].code,
  16760. });
  16761. }
  16762. for (var ik = 0; ik < _inviteA.length; ik++) {
  16763. if (
  16764. this.arrayToArray(
  16765. _inviteA[ik].cid.split(","),
  16766. this.tcid.split(",")
  16767. ).length
  16768. ) {
  16769. this.inviteCode = _inviteA[ik].ic;
  16770. break;
  16771. }
  16772. }
  16773. }
  16774. for (var l = 0; l < this.chapInfoList.length; l++) {
  16775. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16776. for (var m = 0; m < w.length; m++) {
  16777. w[m].id = l + "-" + m;
  16778. }
  16779. }
  16780. let taskCount = 0;
  16781. if (
  16782. _chapterData[taskCount].length &&
  16783. _chapterData[taskCount][0].type == 2
  16784. ) {
  16785. this.showType = 0;
  16786. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  16787. } else {
  16788. if (_chapterData[taskCount].length > 0) {
  16789. let _url = _chapterData[taskCount][0].url;
  16790. if (
  16791. _chapterData[taskCount][0].type == 8 ||
  16792. _chapterData[taskCount][0].type == 14
  16793. ) {
  16794. this.showType = 2;
  16795. if (
  16796. _url.indexOf("https://") == -1 &&
  16797. _url.indexOf("http://") == -1
  16798. ) {
  16799. _url = "https://" + _url;
  16800. }
  16801. this.pptImgUrl1 = _url;
  16802. } else if (_chapterData[taskCount][0].type == 3) {
  16803. if (
  16804. _url
  16805. .split(".")
  16806. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16807. ) {
  16808. this.showType = 3;
  16809. this.pptImgUrl1 = _url;
  16810. } else if (
  16811. this.isAssetTypeAnImage(
  16812. _url
  16813. .split(".")
  16814. [_url.split(".").length - 1].toLocaleLowerCase()
  16815. )
  16816. ) {
  16817. this.showType = 4;
  16818. this.pptImgUrl1 = _url;
  16819. } else {
  16820. this.showType = 2;
  16821. this.pptImgUrl1 =
  16822. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16823. encodeURIComponent(_url);
  16824. }
  16825. } else if (_chapterData[taskCount][0].type == 13) {
  16826. this.showType = 4;
  16827. this.pptImgUrl1 = _url;
  16828. } else if (_chapterData[taskCount][0].type == 6) {
  16829. this.showType = 1;
  16830. this.text = this.textList[taskCount][0];
  16831. }
  16832. }
  16833. }
  16834. this.isClickNav = 0;
  16835. if (
  16836. !_chapterData[taskCount].length ||
  16837. _chapterData[taskCount][0].type == 12
  16838. ) {
  16839. this.isClickNav = "";
  16840. this.showType = "";
  16841. }
  16842. if (this.tType == 2) {
  16843. _chapterData.forEach((e,i)=>{
  16844. if (e.length) {
  16845. let yym = e.filter(k=>{
  16846. if(!converter(k.name).includes(converter("教案"))){
  16847. return k
  16848. }
  16849. })
  16850. _chapterData[i] = yym
  16851. }
  16852. })
  16853. }
  16854. this.vChapterData = _chapterData;
  16855. } else {
  16856. // this.showType = 0;
  16857. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16858. .chapterInfo[0].taskJson;
  16859. var b = [
  16860. "AVI",
  16861. "NAVI",
  16862. "MPEG",
  16863. "ASF",
  16864. "MOV",
  16865. "WMV",
  16866. "3GP",
  16867. "RM",
  16868. "RMVB",
  16869. "FLV",
  16870. "F4V",
  16871. "H.264",
  16872. "H.265",
  16873. "REAL VIDEO",
  16874. "MKV",
  16875. "WebM",
  16876. "HDDVD",
  16877. "MP4",
  16878. "MPG",
  16879. "M4V",
  16880. "MGV",
  16881. "OGV",
  16882. "QTM",
  16883. "STR",
  16884. "AMC",
  16885. "DVX",
  16886. "EVO",
  16887. "DAT",
  16888. "OGG",
  16889. "OGM",
  16890. "MP3",
  16891. ];
  16892. let _chapterData = [];
  16893. for (var i = 0; i < a.length; i++) {
  16894. var c = a[i].chapterData;
  16895. this.vedio[i] = [];
  16896. this.textList[i] = [];
  16897. this.lineList[i] = [];
  16898. this.chapToolList[i] = [];
  16899. this.file[i] = [];
  16900. this.fileC[i] = [];
  16901. _chapterData[i] = c.filter((el) => {
  16902. return el.type != 12;
  16903. });
  16904. this.fileC[i] = c.filter((el) => {
  16905. return el.type == 12;
  16906. });
  16907. if (this.tType == 2) {
  16908. if (this.fileC[i].length) {
  16909. let yym1 = this.fileC[i].filter(e=>{
  16910. if(!converter(e.name).includes(converter("教案"))){
  16911. return e
  16912. }
  16913. })
  16914. this.fileC[i] = yym1
  16915. }
  16916. }
  16917. for (var j = 0; j < c.length; j++) {
  16918. if (c[j].type == 7) {
  16919. this.chapToolList[i].push(c[j]);
  16920. } else if (c[j].type == 8 || c[j].type == 14) {
  16921. this.lineList[i].push(c[j]);
  16922. } else if (c[j].type == 6) {
  16923. this.textList[i].push(c[j]);
  16924. } else {
  16925. if (
  16926. b.indexOf(
  16927. c[j].url
  16928. .split(".")
  16929. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16930. ) != -1
  16931. ) {
  16932. this.vedio[i].push(c[j]);
  16933. } else {
  16934. this.file[i].push(c[j]);
  16935. }
  16936. }
  16937. }
  16938. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16939. d.sources[0].src =
  16940. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16941. this.playerO[i] = d;
  16942. }
  16943. let taskCount = 0;
  16944. if (
  16945. _chapterData[taskCount].length &&
  16946. _chapterData[taskCount][0].type == 2
  16947. ) {
  16948. // this.showType = 0;
  16949. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  16950. } else {
  16951. if (_chapterData[taskCount].length > 0) {
  16952. let _url = _chapterData[taskCount][0].url;
  16953. if (
  16954. _chapterData[taskCount][0].type == 8 ||
  16955. _chapterData[taskCount][0].type == 14
  16956. ) {
  16957. // this.showType = 2;
  16958. if (
  16959. _url.indexOf("https://") == -1 &&
  16960. _url.indexOf("http://") == -1
  16961. ) {
  16962. _url = "https://" + _url;
  16963. }
  16964. // this.pptImgUrl1 = _url;
  16965. } else if (_chapterData[taskCount][0].type == 3) {
  16966. if (
  16967. _url
  16968. .split(".")
  16969. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16970. ) {
  16971. // this.showType = 3;
  16972. // this.pptImgUrl1 = _url;
  16973. } else if (
  16974. this.isAssetTypeAnImage(
  16975. _url
  16976. .split(".")
  16977. [_url.split(".").length - 1].toLocaleLowerCase()
  16978. )
  16979. ) {
  16980. // this.showType = 4;
  16981. // this.pptImgUrl1 = _url;
  16982. } else {
  16983. // this.showType = 2;
  16984. // this.pptImgUrl1 =
  16985. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  16986. // encodeURIComponent(_url);
  16987. }
  16988. } else if (_chapterData[taskCount][0].type == 13) {
  16989. // this.showType = 4;
  16990. // this.pptImgUrl1 = _url;
  16991. } else if (_chapterData[taskCount][0].type == 6) {
  16992. this.showType = 1;
  16993. this.text = this.textList[taskCount][0];
  16994. }
  16995. }
  16996. }
  16997. this.isClickNav = 0;
  16998. if (
  16999. !_chapterData[taskCount].length ||
  17000. _chapterData[taskCount][0].type == 12
  17001. ) {
  17002. this.isClickNav = "";
  17003. // this.showType = "";
  17004. }
  17005. if (this.tType == 2) {
  17006. _chapterData.forEach((e,i)=>{
  17007. if (e.length) {
  17008. let yym = e.filter(k=>{
  17009. if(!converter(k.name).includes(converter("教案"))){
  17010. return k
  17011. }
  17012. })
  17013. _chapterData[i] = yym
  17014. }
  17015. })
  17016. }
  17017. this.vChapterData = _chapterData;
  17018. this.$forceUpdate();
  17019. }
  17020. // else {
  17021. // this.courseDetail = res.data[0][0];
  17022. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17023. // }
  17024. let _this = this;
  17025. if (_this.timer) {
  17026. clearInterval(_this.timer);
  17027. _this.timer = null;
  17028. }
  17029. if (_this.tcid) {
  17030. _this.getCourseGroup(gindex);
  17031. } else {
  17032. _this.selectSWorks(gindex);
  17033. }
  17034. _this.selectStudent();
  17035. _this.selectSLook();
  17036. _this.getPick();
  17037. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17038. _this.setCTask();
  17039. }
  17040. if (_this.dialogVisibleGroup) {
  17041. _this.groupJson =
  17042. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17043. _this.taskCount
  17044. ].toolChoose[_this.toolindex].groupJson;
  17045. }
  17046. _this.$nextTick(() => {
  17047. setTimeout(() => {
  17048. _this.checkEva();
  17049. }, 1000);
  17050. });
  17051. _this.timer = setInterval(function () {
  17052. // _this.getCourseDetail(2);
  17053. if (_this.tcid) {
  17054. _this.getCourseGroup();
  17055. } else {
  17056. _this.selectSWorks();
  17057. }
  17058. _this.selectStudent();
  17059. _this.selectSLook();
  17060. _this.getPick();
  17061. // _this.getSplitScreenData();//获取分屏数据
  17062. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17063. _this.setCTask();
  17064. }
  17065. if (_this.dialogVisibleGroup) {
  17066. _this.groupJson =
  17067. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17068. _this.taskCount
  17069. ].toolChoose[_this.toolindex].groupJson;
  17070. }
  17071. if (_this.tType == 4 || _this.ispzType == 4) {
  17072. _this.selectPz();
  17073. }
  17074. }, 5000);
  17075. if (_this.timer2 == null) {
  17076. _this.timer2 = setInterval(()=> {
  17077. _this.getSplitScreenData();//获取分屏数据
  17078. }, 5000);
  17079. }
  17080. _this.$nextTick(function () {
  17081. setTimeout(() => {
  17082. // var a =
  17083. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17084. // document.getElementsByClassName("vedioList")[0].style.height =
  17085. // a + "px";
  17086. // document.getElementsByClassName("navBox")[0].style.height =
  17087. // a - 40 + "px";
  17088. // if (_this.vedio[_this.taskCount].length > 0) {
  17089. // _this.vedioTime = [];
  17090. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17091. // _this.vedioTime[i] = document.getElementsByClassName(
  17092. // "vjs-duration-display"
  17093. // )[i].textContent;
  17094. // }
  17095. // }
  17096. }, 1000);
  17097. });
  17098. })
  17099. .catch((err) => {
  17100. loading.close();
  17101. console.error(err);
  17102. });
  17103. },
  17104. getCourseGroup(gindex) {
  17105. let params = {
  17106. cid: this.id,
  17107. classid: this.tcid ? this.tcid : "1",
  17108. };
  17109. this.ajax
  17110. .get(this.$store.state.api + "getCourseGroup", params)
  17111. .then((res) => {
  17112. if (res.data && res.data[0].length) {
  17113. if (!this.isGroup) {
  17114. let courseGroup = JSON.parse(res.data[0][0].group);
  17115. courseGroup.group = courseGroup.group.filter((el) => {
  17116. el.works = [];
  17117. return el;
  17118. });
  17119. if (courseGroup.isopen == 2) {
  17120. this.isGroup = false;
  17121. this.selectSWorks(gindex);
  17122. return;
  17123. }
  17124. this.courseGroup = courseGroup;
  17125. let groupPerson = res.data[1];
  17126. let group = JSON.parse(res.data[0][0].group).group;
  17127. let courseGroupStudent = {};
  17128. let courseGroupStudentUid = {};
  17129. for (var i = 0; i < group.length; i++) {
  17130. courseGroupStudent[group[i].id] = [];
  17131. courseGroupStudentUid[group[i].id] = [];
  17132. for (var j = 0; j < groupPerson.length; j++) {
  17133. if (groupPerson[j].groupCid == group[i].id) {
  17134. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17135. courseGroupStudentUid[group[i].id].push(
  17136. groupPerson[j].userid
  17137. );
  17138. }
  17139. }
  17140. }
  17141. this.courseGroupStudent = courseGroupStudent;
  17142. this.courseGroupStudentUid = courseGroupStudentUid;
  17143. }
  17144. if (this.courseGroup.isopen == 2) {
  17145. this.isGroup = false;
  17146. } else {
  17147. this.isGroup = true;
  17148. }
  17149. this.selectSWorks(gindex);
  17150. } else {
  17151. this.selectSWorks(gindex);
  17152. this.isGroup = false;
  17153. }
  17154. })
  17155. .catch((err) => {
  17156. // this.$message.error("网络不佳");
  17157. console.error(err);
  17158. });
  17159. },
  17160. setOperationTime() {
  17161. let _this = this;
  17162. if (_this.opertimer) {
  17163. clearInterval(_this.opertimer);
  17164. _this.opertimer = null;
  17165. }
  17166. _this.opertimer = setInterval(() => {
  17167. _this.setoTime("600");
  17168. }, 600000);
  17169. },
  17170. setoTime(time) {
  17171. let params = [
  17172. {
  17173. uid: this.userid,
  17174. cid: this.id,
  17175. type: "2",
  17176. time: time,
  17177. },
  17178. ];
  17179. this.ajax
  17180. .post(this.$store.state.api + "addOperationTimeT2", params)
  17181. .then((res) => {})
  17182. .catch((err) => {
  17183. console.error(err);
  17184. });
  17185. },
  17186. addPz(type, content) {
  17187. if (type == "1" && this.pzConText == "") {
  17188. this.$message.error("评论不能为空!");
  17189. return;
  17190. }
  17191. let params = [
  17192. {
  17193. cid: this.id,
  17194. uid: this.userid,
  17195. s: this.courseType,
  17196. t: this.taskCount,
  17197. c: type == "1" ? this.pzConText : content,
  17198. type: type,
  17199. },
  17200. ];
  17201. this.ajax
  17202. .post(this.$store.state.api + "addPz2", params)
  17203. .then((res) => {
  17204. this.$message({
  17205. message: "添加成功",
  17206. type: "success",
  17207. });
  17208. this.pzConText = "";
  17209. this.addPzDialog = false;
  17210. this.selectPz();
  17211. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17212. })
  17213. .catch((err) => {
  17214. this.$message.error("添加失败");
  17215. console.error(err);
  17216. });
  17217. },
  17218. setReplyIndex(id, i) {
  17219. this.replyIndex = i;
  17220. this.replyPid = id;
  17221. this.replyDialogVisible = true;
  17222. },
  17223. addHf() {
  17224. if (this.reply == "") {
  17225. this.$message.error("回复不能为空!");
  17226. return;
  17227. }
  17228. let params = [
  17229. {
  17230. cid: this.id,
  17231. uid: this.userid,
  17232. s: this.courseType,
  17233. t: this.taskCount,
  17234. type: "1",
  17235. ct: 2,
  17236. pid: this.replyPid,
  17237. c: this.reply,
  17238. },
  17239. ];
  17240. this.ajax
  17241. .post(this.$store.state.api + "addHf", params)
  17242. .then((res) => {
  17243. this.reply = "";
  17244. this.$message({
  17245. message: "回复成功",
  17246. type: "success",
  17247. });
  17248. this.replyDialogVisible = false;
  17249. this.selectPz();
  17250. })
  17251. .catch((err) => {
  17252. this.$message.error("回复失败");
  17253. console.error(err);
  17254. });
  17255. },
  17256. deletePz(id) {
  17257. this.$confirm("确定删除此评论吗?", "提示", {
  17258. confirmButtonText: "确定",
  17259. cancelButtonText: "取消",
  17260. type: "warning",
  17261. })
  17262. .then(() => {
  17263. let params = [
  17264. {
  17265. id: id,
  17266. },
  17267. ];
  17268. this.ajax
  17269. .post(this.$store.state.api + "deletePz", params)
  17270. .then((res) => {
  17271. this.$message({
  17272. message: "删除成功",
  17273. type: "success",
  17274. });
  17275. this.selectPz();
  17276. })
  17277. .catch((err) => {
  17278. this.$message.error("网络异常");
  17279. console.error(err);
  17280. });
  17281. })
  17282. .catch(() => {});
  17283. },
  17284. deleteReply(id) {
  17285. this.$confirm("确定删除此回复吗?", "提示", {
  17286. confirmButtonText: "确定",
  17287. cancelButtonText: "取消",
  17288. type: "warning",
  17289. })
  17290. .then(() => {
  17291. let params = [
  17292. {
  17293. id: id,
  17294. },
  17295. ];
  17296. this.ajax
  17297. .post(this.$store.state.api + "deleteReply", params)
  17298. .then((res) => {
  17299. this.$message({
  17300. message: "删除成功",
  17301. type: "success",
  17302. });
  17303. this.selectPz();
  17304. })
  17305. .catch((err) => {
  17306. this.$message.error("网络异常");
  17307. console.error(err);
  17308. });
  17309. })
  17310. .catch(() => {});
  17311. },
  17312. setPz() {
  17313. if (this.ispzType == 4) {
  17314. this.ispzType = 0;
  17315. this.pzDialog = false;
  17316. return;
  17317. }
  17318. this.ispzType = 4;
  17319. this.pzDialog = true;
  17320. this.selectPz();
  17321. },
  17322. selectPz() {
  17323. let params = {
  17324. cid: this.id,
  17325. s: this.courseType,
  17326. t: this.taskCount,
  17327. type: this.pzStype,
  17328. uid: this.userid,
  17329. };
  17330. this.ajax
  17331. .get(this.$store.state.api + "selectPzListType", params)
  17332. .then((res) => {
  17333. this.pzList = res.data[0];
  17334. var a = res.data[1];
  17335. for (var i = 0; i < a.length; i++) {
  17336. for (var j = 0; j < this.pzList.length; j++) {
  17337. if (!this.pzList[j].hfList) {
  17338. this.pzList[j].hfList = [];
  17339. }
  17340. if (a[i].pid == this.pzList[j].id) {
  17341. this.pzList[j].hfList.push(a[i]);
  17342. }
  17343. }
  17344. }
  17345. })
  17346. .catch((err) => {
  17347. console.error(err);
  17348. });
  17349. },
  17350. // selectHf() {
  17351. // let params = {
  17352. // cid: this.id,
  17353. // s: this.courseType,
  17354. // t: this.taskCount,
  17355. // };
  17356. // this.ajax
  17357. // .get(this.$store.state.api + "selectHfList", params)
  17358. // .then((res) => {
  17359. // var a = res.data[0];
  17360. // for (var i = 0; i < a.length; i++) {
  17361. // for (var j = 0; j < this.pzList.length; j++) {
  17362. // if (!this.pzList[i].hfList) {
  17363. // this.pzList[i].hfList = [];
  17364. // }
  17365. // if (a[i].pid == this.pzList[j].id) {
  17366. // this.pzList[i].hfList.push(a[i]);
  17367. // }
  17368. // }
  17369. // }
  17370. // })
  17371. // .catch((err) => {
  17372. // console.error(err);
  17373. // });
  17374. // },
  17375. updateSLook() {
  17376. let params = {
  17377. sopen: this.sIsOpen == false ? 1 : 2,
  17378. cid: this.id,
  17379. };
  17380. this.ajax
  17381. .get(this.$store.state.api + "updateCourseSLook", params)
  17382. .then((res) => {
  17383. if (this.sIsOpen == true) {
  17384. this.$message({
  17385. message: "权限设置成功",
  17386. type: "success",
  17387. });
  17388. } else {
  17389. this.$message({
  17390. message: "权限关闭成功",
  17391. type: "success",
  17392. });
  17393. }
  17394. })
  17395. .catch((err) => {
  17396. console.error(err);
  17397. });
  17398. },
  17399. updateFollow() {
  17400. let params = [
  17401. {
  17402. sopen: this.IsFollow == false ? 1 : 2,
  17403. cid: this.id,
  17404. },
  17405. ];
  17406. this.ajax
  17407. .post(this.$store.state.api + "updateCourseFollow", params)
  17408. .then((res) => {
  17409. if (this.IsFollow == true) {
  17410. this.$message({
  17411. message: "开启成功",
  17412. type: "success",
  17413. });
  17414. } else {
  17415. this.$message({
  17416. message: "关闭成功",
  17417. type: "success",
  17418. });
  17419. }
  17420. this.setCTask();
  17421. })
  17422. .catch((err) => {
  17423. console.error(err);
  17424. });
  17425. },
  17426. setCTask() {
  17427. let params = [
  17428. {
  17429. sopen: this.courseType + "-" + this.taskCount,
  17430. cid: this.id,
  17431. },
  17432. ];
  17433. this.ajax
  17434. .post(this.$store.state.api + "updateCourseFollowC", params)
  17435. .then((res) => {})
  17436. .catch((err) => {
  17437. console.error(err);
  17438. });
  17439. },
  17440. updateLookOpen() {
  17441. let params = [
  17442. {
  17443. sopen: this.IsLookOpen == false ? 1 : 2,
  17444. cid: this.id,
  17445. },
  17446. ];
  17447. this.ajax
  17448. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17449. .then((res) => {
  17450. if (this.IsLookOpen == true) {
  17451. // if (this.courseType != 0 && this.taskCount != 0) {
  17452. // this.openTask(0, 0, "0-0");
  17453. // }
  17454. this.$message({
  17455. message: "权限设置成功",
  17456. type: "success",
  17457. });
  17458. } else {
  17459. this.$message({
  17460. message: "权限关闭成功",
  17461. type: "success",
  17462. });
  17463. }
  17464. this.getCourseState(2);
  17465. })
  17466. .catch((err) => {
  17467. console.error(err);
  17468. });
  17469. },
  17470. selectSLook() {
  17471. let params = {
  17472. cid: this.id,
  17473. };
  17474. this.ajax
  17475. .get(this.$store.state.api + "selectCourseSLook", params)
  17476. .then((res) => {
  17477. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17478. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17479. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17480. if (!this.IsLookOpen) {
  17481. this.setNavList();
  17482. }
  17483. this.getCourseState(1);
  17484. if ((this.IsFollow && this.tType == 2)) {
  17485. this.setContent2(false);
  17486. let _followC = res.data[0][0].followC.split("-");
  17487. if (
  17488. this.courseType != _followC[0] ||
  17489. this.taskCount != _followC[1]
  17490. ) {
  17491. this.navList[this.courseType].isOpen = false;
  17492. this.courseType = _followC[0];
  17493. this.navList[this.courseType].isOpen = true;
  17494. this.taskCount = parseInt(_followC[1]);
  17495. this.navId = res.data[0][0].followC;
  17496. document.scrollingElement.scrollTop = 0;
  17497. this.getCourseDetail(2);
  17498. }
  17499. }
  17500. })
  17501. .catch((err) => {
  17502. console.error(err);
  17503. });
  17504. },
  17505. setNavList() {
  17506. if (this.navList.length == 0) {
  17507. this.navList = [];
  17508. var copyList = [];
  17509. for (var l = 0; l < this.chapInfoList.length; l++) {
  17510. var q = this.chapInfoList[l].dyName;
  17511. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17512. var e;
  17513. copyList.push({
  17514. dyName: q,
  17515. isOpen: l === 0 ? true : false,
  17516. task: [],
  17517. });
  17518. for (var r = 0; r < w.length; r++) {
  17519. e = w[r].task;
  17520. if (this.chapInfoList[l].easy == 1) {
  17521. copyList[l].task.push({
  17522. taskName: q,
  17523. id: l + "-" + r,
  17524. isLook: w[r].isLook,
  17525. isOpen: r === 0 ? true : false,
  17526. tool: [],
  17527. });
  17528. } else {
  17529. copyList[l].task.push({
  17530. taskName: e,
  17531. id: l + "-" + r,
  17532. isLook: w[r].isLook,
  17533. isOpen: r === 0 ? true : false,
  17534. tool: [],
  17535. });
  17536. }
  17537. var t = w[r].toolChoose;
  17538. for (var k = 0; k < t.length; k++) {
  17539. var tool = t[k].tool[0];
  17540. copyList[l].task[r].tool.push({
  17541. tool: tool,
  17542. isTool: false,
  17543. });
  17544. }
  17545. // this.navId = this.navId ? this.navId : l + "-" + r;
  17546. // this.navId = l + "-" + r;
  17547. }
  17548. }
  17549. this.navList = copyList;
  17550. this.navList[0].isOpen = false;
  17551. this.navList[this.courseType].isOpen = true;
  17552. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17553. } else {
  17554. this.setNavList2();
  17555. }
  17556. },
  17557. setNavList2() {
  17558. for (var l = 0; l < this.chapInfoList.length; l++) {
  17559. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17560. for (var r = 0; r < w.length; r++) {
  17561. this.navList[l].task[r].isLook = w[r].isLook;
  17562. }
  17563. }
  17564. if (
  17565. this.IsLookOpen &&
  17566. !this.navList[this.courseType].task[this.taskCount].isLook
  17567. ) {
  17568. this.openTask(0, 0, "0-0");
  17569. }
  17570. this.$forceUpdate();
  17571. },
  17572. getCourseState(type) {
  17573. let params = {
  17574. cid: this.id,
  17575. };
  17576. this.ajax
  17577. .get(this.$store.state.api + "getCourseState", params)
  17578. .then((res) => {
  17579. if (res.data[0].length > 0) {
  17580. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17581. }
  17582. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17583. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  17584. this.setNavList();
  17585. this.$forceUpdate();
  17586. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17587. this.addCourseState(2);
  17588. } else {
  17589. this.addCourseState(1);
  17590. }
  17591. })
  17592. .catch((err) => {
  17593. console.error(err);
  17594. });
  17595. },
  17596. addCourseState(type,val = '') {
  17597. let _state = val ? val : this.chapInfoList;
  17598. // this.courseType this.taskCount
  17599. if (type == 1 || type == 2) {
  17600. for (var i = 0; i < _state.length; i++) {
  17601. let el = _state[i].chapterInfo[0].taskJson;
  17602. for (var j = 0; j < el.length; j++) {
  17603. // if (i == 0 && j == 0) {
  17604. // el[j].isLook = true;
  17605. // } else {
  17606. // el[j].isLook = false;
  17607. // }
  17608. if (
  17609. this.courseType > i ||
  17610. (this.courseType == i && this.taskCount + 1 > j)
  17611. ) {
  17612. el[j].isLook = true;
  17613. } else {
  17614. el[j].isLook = false;
  17615. }
  17616. }
  17617. }
  17618. }
  17619. let params = [
  17620. {
  17621. cid: this.id,
  17622. state: JSON.stringify(_state),
  17623. },
  17624. ];
  17625. this.ajax
  17626. .post(
  17627. this.$store.state.api +
  17628. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17629. params
  17630. )
  17631. .then((res) => {
  17632. if (this.IsLookOpen) {
  17633. this.setNavList();
  17634. }
  17635. if (type == 3 && type == 2) {
  17636. this.getCourseState(1);
  17637. }
  17638. })
  17639. .catch((err) => {
  17640. console.error(err);
  17641. });
  17642. },
  17643. getHomeWork() {
  17644. let params = {
  17645. cid: this.id,
  17646. stage: this.courseType,
  17647. task: this.taskCount,
  17648. uid: this.userid,
  17649. };
  17650. this.ajax
  17651. .get(this.$store.state.api + "selectWork", params)
  17652. .then((res) => {
  17653. if (res.data[0].length > 0) {
  17654. this.studyJuri = JSON.parse(res.data[0][0].content);
  17655. this.isNoHomeWork = true;
  17656. }
  17657. })
  17658. .catch((err) => {
  17659. console.error(err);
  17660. });
  17661. },
  17662. isAssetTypeAnImage(ext) {
  17663. return (
  17664. [
  17665. "png",
  17666. "jpg",
  17667. "jpeg",
  17668. "bmp",
  17669. "gif",
  17670. "webp",
  17671. "psd",
  17672. "svg",
  17673. "tiff",
  17674. ].indexOf(ext) !== -1
  17675. );
  17676. },
  17677. switchVideo(media) {
  17678. this.playerO = {};
  17679. this.playerOptions.poster = "";
  17680. this.playerOptions.sources[0].src = media;
  17681. this.playerO = this.playerOptions;
  17682. },
  17683. onPlayerPlay() {},
  17684. onPlayerTimeupdate(player) {
  17685. let gklog = player.cache_.currentTime; //当前播放的秒数
  17686. let a = player.cache_.duration; //视频的总时长
  17687. let gklog2 = parseInt(gklog);
  17688. // if(gklog2 == '3'){
  17689. // player.pause()
  17690. // setTimeout(()=>{
  17691. // player.currentTime(gklog2+1)
  17692. // player.play()
  17693. // },1000)
  17694. // }
  17695. console.log(" onPlayerTimeupdate!", gklog);
  17696. console.log(" onPlayerTimeupdate!", gklog2);
  17697. },
  17698. lookVedio(u, i) {
  17699. this.isClickNav = "";
  17700. // this.playerOptions.sources[0].src = u;
  17701. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17702. d.sources[0].src = u;
  17703. this.playerO[0] = d;
  17704. this.showType = 0;
  17705. // this.isClickNav = "video" + i;
  17706. this.isClickNav = i;
  17707. this.$forceUpdate();
  17708. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17709. },
  17710. lookText(i, t) {
  17711. this.isClickNav = "";
  17712. // this.text = this.textList[i][t];
  17713. this.text = this.vChapterData[i][t];
  17714. // this.dialogVisible1 = true;
  17715. this.showType = 1;
  17716. // this.isClickNav = "text" + t;
  17717. this.isClickNav = t;
  17718. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17719. },
  17720. lookTools(i, t) {
  17721. this.chapTools = this.chapToolList[i][t];
  17722. this.dialogVisible2 = true;
  17723. },
  17724. async openFile(f) {
  17725. this.pptImgUrl = "";
  17726. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17727. if (
  17728. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17729. -1
  17730. ) {
  17731. let _uuurl = await this.checkLink(f);
  17732. console.log(_uuurl)
  17733. this.pptImgUrl =
  17734. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17735. this.showPDF = false;
  17736. this.dialogVisible3 = true;
  17737. } else if (
  17738. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17739. ) {
  17740. this.pptImgUrl = f;
  17741. this.showPDF = true;
  17742. this.dialogVisible3 = true;
  17743. }
  17744. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17745. },
  17746. openTable(f) {
  17747. this.tableJson = JSON.parse(f.works);
  17748. this.dialogVisibleTable2 = true;
  17749. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17750. },
  17751. openWord(f) {
  17752. this.tableJson = JSON.parse(f.works);
  17753. this.dialogVisibleTable3 = true;
  17754. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17755. },
  17756. doUrl(url, i) {
  17757. this.isClickNav = "";
  17758. this.pptImgUrl1 = "";
  17759. this.showType = 2;
  17760. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17761. url = "https://" + url;
  17762. }
  17763. this.pptImgUrl1 = "";
  17764. setTimeout(() => {
  17765. this.pptImgUrl1 = url;
  17766. }, 500);
  17767. // this.isClickNav = "line" + i;
  17768. this.isClickNav = i;
  17769. this.$forceUpdate();
  17770. },
  17771. checkPhoto(f, i) {
  17772. this.showType = 4;
  17773. this.pptImgUrl1 = f.url;
  17774. this.isClickNav = i;
  17775. this.$forceUpdate();
  17776. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17777. },
  17778. async downFile(f, i) {
  17779. this.isClickNav = "";
  17780. this.pptImgUrl1 = "";
  17781. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17782. if (
  17783. a.indexOf(
  17784. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17785. ) != -1
  17786. ) {
  17787. let _uuurl = await this.checkLink(f.url);
  17788. console.log(_uuurl)
  17789. this.pptImgUrl1 =
  17790. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17791. // this.dialogVisible3 = true;
  17792. this.showType = 2;
  17793. } else if (
  17794. this.isAssetTypeAnImage(
  17795. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17796. )
  17797. ) {
  17798. this.showType = 4;
  17799. this.pptImgUrl1 = f.url;
  17800. } else if (
  17801. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17802. "PDF"
  17803. ) {
  17804. this.pptImgUrl1 = f.url;
  17805. // this.dialogVisible3 = true;
  17806. this.showType = 3;
  17807. } else {
  17808. window.open(this.file[i].url);
  17809. }
  17810. // this.isClickNav = "word" + i;
  17811. this.isClickNav = i;
  17812. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17813. },
  17814. downFileList(i) {
  17815. window.open(this.noImgList[i].url);
  17816. },
  17817. openAddWork() {
  17818. this.dialogVisible = true;
  17819. },
  17820. addBzWorks() {
  17821. let params = [
  17822. {
  17823. uid: this.userid,
  17824. cid: this.id,
  17825. stage: this.courseType,
  17826. task: this.taskCount,
  17827. tool: this.toolindex,
  17828. content: JSON.stringify(this.eScore),
  17829. type: 6,
  17830. },
  17831. ];
  17832. this.ajax
  17833. .post(this.$store.state.api + "addCourseWorks", params)
  17834. .then((res) => {
  17835. this.$message({
  17836. message: "提交成功",
  17837. type: "success",
  17838. });
  17839. this.eScore = { eBzText: "", eStar: [] };
  17840. this.studentEvalDialogVisible = false;
  17841. this.selectSWorks();
  17842. })
  17843. .catch((err) => {
  17844. this.$message.error("提交失败");
  17845. console.error(err);
  17846. });
  17847. },
  17848. addBzWorksTeacher() {
  17849. let params = [
  17850. {
  17851. uid: this.sStudent.userid,
  17852. cid: this.id,
  17853. stage: this.courseType,
  17854. task: this.taskCount,
  17855. tool: this.toolindex,
  17856. content: JSON.stringify(this.eScore),
  17857. type: 6,
  17858. },
  17859. ];
  17860. this.ajax
  17861. .post(this.$store.state.api + "addCourseWorks", params)
  17862. .then((res) => {
  17863. this.$message({
  17864. message: "提交成功",
  17865. type: "success",
  17866. });
  17867. this.eScore = { eBzText: "", eStar: [] };
  17868. this.studentEvalDialogVisibleTeacher = false;
  17869. this.selectSWorks();
  17870. })
  17871. .catch((err) => {
  17872. this.$message.error("提交失败");
  17873. console.error(err);
  17874. });
  17875. },
  17876. addStudentAsk() {
  17877. if (!this.radio.length) {
  17878. this.$message.error("请选择选项");
  17879. return;
  17880. }
  17881. for (var i = 0; i < this.askJson.askCount; i++) {
  17882. if (
  17883. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17884. (this.radio[i] !== 0 && !this.radio[i])
  17885. ) {
  17886. this.$message.error("请选择选项");
  17887. return;
  17888. }
  17889. }
  17890. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17891. let params = [
  17892. {
  17893. uid: this.userid,
  17894. cid: this.id,
  17895. stage: this.courseType,
  17896. task: this.taskCount,
  17897. tool: this.toolindex,
  17898. content: JSON.stringify(this.askList),
  17899. type: 2,
  17900. },
  17901. ];
  17902. this.ajax
  17903. .post(this.$store.state.api + "addCourseWorks", params)
  17904. .then((res) => {
  17905. this.$message({
  17906. message: "提交成功",
  17907. type: "success",
  17908. });
  17909. this.askList = [];
  17910. this.dialogVisible5 = false;
  17911. this.selectStudent();
  17912. this.selectSWorks();
  17913. this.selectSLook();
  17914. })
  17915. .catch((err) => {
  17916. this.$message.error("提交失败");
  17917. console.error(err);
  17918. });
  17919. },
  17920. addStudentAskTeacher() {
  17921. if (!this.radio.length) {
  17922. this.$message.error("请选择选项");
  17923. return;
  17924. }
  17925. for (var i = 0; i < this.askJson.askCount; i++) {
  17926. if (
  17927. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17928. (this.radio[i] !== 0 && !this.radio[i])
  17929. ) {
  17930. this.$message.error("请选择选项");
  17931. return;
  17932. }
  17933. }
  17934. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17935. let params = [
  17936. {
  17937. uid: this.sStudent.userid,
  17938. cid: this.id,
  17939. stage: this.courseType,
  17940. task: this.taskCount,
  17941. tool: this.toolindex,
  17942. content: JSON.stringify(this.askList),
  17943. type: 2,
  17944. },
  17945. ];
  17946. this.ajax
  17947. .post(this.$store.state.api + "addCourseWorks", params)
  17948. .then((res) => {
  17949. this.$message({
  17950. message: "提交成功",
  17951. type: "success",
  17952. });
  17953. this.askList = [];
  17954. this.dialogVisible5Teacher = false;
  17955. this.selectStudent();
  17956. this.selectSWorks();
  17957. this.selectSLook();
  17958. })
  17959. .catch((err) => {
  17960. this.$message.error("提交失败");
  17961. console.error(err);
  17962. });
  17963. },
  17964. addStudentTest() {
  17965. if (!this.radio.length) {
  17966. this.$message.error("请选择选项");
  17967. return;
  17968. }
  17969. for (var i = 0; i < this.testJson.testCount; i++) {
  17970. if (
  17971. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17972. (this.radio[i] !== 0 && !this.radio[i])
  17973. ) {
  17974. this.$message.error("请选择选项");
  17975. return;
  17976. }
  17977. }
  17978. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17979. let params = [
  17980. {
  17981. uid: this.userid,
  17982. cid: this.id,
  17983. stage: this.courseType,
  17984. task: this.taskCount,
  17985. tool: this.toolindex,
  17986. content: JSON.stringify(this.askList),
  17987. type: 8,
  17988. },
  17989. ];
  17990. this.ajax
  17991. .post(this.$store.state.api + "addCourseWorks", params)
  17992. .then((res) => {
  17993. this.$message({
  17994. message: "提交成功",
  17995. type: "success",
  17996. });
  17997. this.askList = [];
  17998. this.dialogVisibleChoice = false;
  17999. this.selectStudent();
  18000. this.selectSWorks();
  18001. this.selectSLook();
  18002. })
  18003. .catch((err) => {
  18004. this.$message.error("提交失败");
  18005. console.error(err);
  18006. });
  18007. },
  18008. addStudentTestTeacher() {
  18009. if (!this.radio.length) {
  18010. this.$message.error("请选择选项");
  18011. return;
  18012. }
  18013. for (var i = 0; i < this.testJson.testCount; i++) {
  18014. if (
  18015. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18016. (this.radio[i] !== 0 && !this.radio[i])
  18017. ) {
  18018. this.$message.error("请选择选项");
  18019. return;
  18020. }
  18021. }
  18022. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18023. let params = [
  18024. {
  18025. uid: this.sStudent.userid,
  18026. cid: this.id,
  18027. stage: this.courseType,
  18028. task: this.taskCount,
  18029. tool: this.toolindex,
  18030. content: JSON.stringify(this.askList),
  18031. type: 8,
  18032. },
  18033. ];
  18034. this.ajax
  18035. .post(this.$store.state.api + "addCourseWorks", params)
  18036. .then((res) => {
  18037. this.$message({
  18038. message: "提交成功",
  18039. type: "success",
  18040. });
  18041. this.askList = [];
  18042. this.dialogVisibleChoiceTeacher = false;
  18043. this.selectStudent();
  18044. this.selectSWorks();
  18045. this.selectSLook();
  18046. })
  18047. .catch((err) => {
  18048. this.$message.error("提交失败");
  18049. console.error(err);
  18050. });
  18051. },
  18052. addWork() {
  18053. if (this.studyJuri[0].content == "") {
  18054. this.$message.error("请将信息填写完整");
  18055. return;
  18056. } else if (this.studyJuri[0].cover.length == 0) {
  18057. this.$message.error("请将信息填写完整");
  18058. return;
  18059. } else if (this.studyJuri[0].upVedio.length == 0) {
  18060. this.$message.error("请将信息填写完整");
  18061. return;
  18062. }
  18063. if (this.isNoHomeWork) {
  18064. this.$confirm(
  18065. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18066. "提示",
  18067. {
  18068. confirmButtonText: "确定",
  18069. cancelButtonText: "取消",
  18070. type: "warning",
  18071. }
  18072. )
  18073. .then(() => {
  18074. let params = [
  18075. {
  18076. uid: this.userid,
  18077. cid: this.id,
  18078. stage: this.courseType,
  18079. task: this.taskCount,
  18080. content: JSON.stringify(this.studyJuri),
  18081. },
  18082. ];
  18083. this.ajax
  18084. .post(this.$store.state.api + "addWorks", params)
  18085. .then((res) => {
  18086. this.$message({
  18087. message: "提交成功",
  18088. type: "success",
  18089. });
  18090. this.isNoHomeWork = true;
  18091. this.dialogVisible = false;
  18092. })
  18093. .catch((err) => {
  18094. this.$message.error("提交失败");
  18095. console.error(err);
  18096. });
  18097. })
  18098. .catch(() => {});
  18099. } else {
  18100. let params = [
  18101. {
  18102. uid: this.userid,
  18103. cid: this.id,
  18104. stage: this.courseType,
  18105. task: this.taskCount,
  18106. content: JSON.stringify(this.studyJuri),
  18107. },
  18108. ];
  18109. this.ajax
  18110. .post(this.$store.state.api + "addWorks", params)
  18111. .then((res) => {
  18112. this.$message({
  18113. message: "提交成功",
  18114. type: "success",
  18115. });
  18116. this.isNoHomeWork = true;
  18117. this.dialogVisible = false;
  18118. })
  18119. .catch((err) => {
  18120. this.$message.error("提交失败");
  18121. console.error(err);
  18122. });
  18123. }
  18124. },
  18125. selectCount() {
  18126. let params = {
  18127. cid: this.id,
  18128. chid: this.courseType,
  18129. uid: this.userid,
  18130. };
  18131. this.ajax
  18132. .get(this.$store.state.api + "selectToolsCount", params)
  18133. .then((res) => {
  18134. for (var i = 0; i < res.data[0].length; i++) {
  18135. if (res.data[0][i].tools == 1) {
  18136. this.wbCount = res.data[0][i].count;
  18137. } else if (res.data[0][i].tools == 2) {
  18138. this.wordCount = res.data[0][i].count;
  18139. } else if (res.data[0][i].tools == 3) {
  18140. this.mindCount = res.data[0][i].count;
  18141. } else if (res.data[0][i].tools == 4) {
  18142. this.askCount = res.data[0][i].count;
  18143. } else if (res.data[0][i].tools == 6) {
  18144. this.noteCount = res.data[0][i].count;
  18145. } else if (res.data[0][i].tools == 7) {
  18146. this.mindNetWorkCount = res.data[0][i].count;
  18147. } else if (res.data[0][i].tools == 8) {
  18148. this.libraryCount = res.data[0][i].count;
  18149. } else if (res.data[0][i].tools == 16) {
  18150. this.workCount = res.data[0][i].count;
  18151. } else if (res.data[0][i].tools == 10) {
  18152. this.timeCount = res.data[0][i].count;
  18153. } else if (res.data[0][i].tools == 15) {
  18154. this.answerCount = res.data[0][i].count;
  18155. } else if (res.data[0][i].tools == 18) {
  18156. this.trainCount = res.data[0][i].count;
  18157. }
  18158. }
  18159. })
  18160. .catch((err) => {
  18161. console.error(err);
  18162. });
  18163. },
  18164. openTools(t, i, index, c, sName,id) {
  18165. var z = JSON.parse(c);
  18166. this.noteName = sName;
  18167. if (t == 4) {
  18168. this.radio = [];
  18169. this.isAnswer = false;
  18170. let b = z[0].anwer;
  18171. this.radio = b;
  18172. this.askJson = z[0].askJson;
  18173. this.isAnswer = true;
  18174. this.dialogVisible5 = true;
  18175. } else if (t == 45) {
  18176. this.radio = [];
  18177. this.isAnswer = false;
  18178. let b = z[0].anwer;
  18179. this.radio = b;
  18180. this.testJson = z[0].testJson;
  18181. this.isAnswer = true;
  18182. this.dialogVisibleChoice = true;
  18183. }else if(t == 69){
  18184. this.oldEnglishJson1 = {}
  18185. this.oldEnglishJson = {}
  18186. this.englishList1 = {}
  18187. this.newEngIndex = -1;
  18188. this.isNoUserid = false;
  18189. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18190. .toolChoose[i].englishList;
  18191. this.oldEnglishJson = z;
  18192. this.engWid = id;
  18193. this.newEnglishList = { engTitle:"",engText:"" }
  18194. this.newEnglishList1 = []
  18195. this.selectEngC(id,z);
  18196. }else if(t == 62){
  18197. this.videoType = 1;
  18198. this.videoJson = {};
  18199. this.videoJson = JSON.parse(c);
  18200. // this.videoJson =
  18201. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18202. // index
  18203. // ].toolChoose[i].videoJson;
  18204. this.dialogVisibleVideo = true;
  18205. }
  18206. // else if (t == 15) {
  18207. // this.answerQ = "";
  18208. // this.questionAnswer = "";
  18209. // this.answerQ = z[0].answerTitle;
  18210. // this.questionAnswer = z[0].answer;
  18211. // this.answerDialogVisible = true;
  18212. // }
  18213. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18214. },
  18215. fastText(p, t) {
  18216. if (t == 1) {
  18217. this.commentText += p;
  18218. } else {
  18219. this.eScore.eBzText += p;
  18220. }
  18221. },
  18222. addTools(t, i, index) {
  18223. var a = 0;
  18224. // this.taskCount = index;
  18225. this.toolindex = i;
  18226. if (t == 1) {
  18227. if (this.wbCount > 0) {
  18228. this.updateCount(this.wbCount, t);
  18229. } else {
  18230. this.wbCount++;
  18231. a = this.wbCount;
  18232. this.toolsCount(a, t);
  18233. }
  18234. window.parent.postMessage(
  18235. {
  18236. tools: "1",
  18237. cid: this.id,
  18238. stage: this.courseType,
  18239. task: this.taskCount,
  18240. tool: i,
  18241. },
  18242. "*"
  18243. );
  18244. } else if (t == 2) {
  18245. if (this.wordCount > 0) {
  18246. this.updateCount(this.wordCount, t);
  18247. } else {
  18248. this.wordCount++;
  18249. a = this.wordCount;
  18250. this.toolsCount(a, t);
  18251. }
  18252. window.parent.postMessage({ tools: "2" }, "*");
  18253. } else if (t == 3) {
  18254. if (this.mindCount > 0) {
  18255. this.updateCount(this.mindCount, t);
  18256. } else {
  18257. this.mindCount++;
  18258. a = this.mindCount;
  18259. this.toolsCount(a, t);
  18260. }
  18261. window.parent.postMessage(
  18262. {
  18263. tools: "3",
  18264. cid: this.id,
  18265. stage: this.courseType,
  18266. task: this.taskCount,
  18267. tool: i,
  18268. },
  18269. "*"
  18270. );
  18271. } else if (t == 4) {
  18272. this.radio = [];
  18273. this.noteName = "";
  18274. this.isAnswer = false;
  18275. if (this.askCount > 0) {
  18276. this.updateCount(this.askCount, t);
  18277. } else {
  18278. this.askCount++;
  18279. a = this.askCount;
  18280. this.toolsCount(a, t);
  18281. }
  18282. if (!this.dialogVisible2) {
  18283. this.askJson.askJson =
  18284. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18285. index
  18286. ].toolChoose[i].askJson;
  18287. this.askJson.askTitle =
  18288. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18289. index
  18290. ].toolChoose[i].askTitle;
  18291. this.askJson.askCount =
  18292. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18293. index
  18294. ].toolChoose[i].askCount;
  18295. } else {
  18296. this.askJson.askJson = this.chapTools.askJson.askJson;
  18297. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18298. this.askJson.askCount = this.chapTools.askJson.askCount;
  18299. }
  18300. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18301. if (this.askJson.askJson[k].type == "2") {
  18302. this.radio.push([]);
  18303. } else {
  18304. this.radio.push("");
  18305. }
  18306. }
  18307. this.dialogVisible5 = true;
  18308. // window.parent.postMessage({ tools: "4" }, "*");
  18309. } else if (t == 45) {
  18310. this.noteName = "";
  18311. this.radio = [];
  18312. this.isAnswer = false;
  18313. if (this.askCount > 0) {
  18314. this.updateCount(this.askCount, t);
  18315. } else {
  18316. this.askCount++;
  18317. a = this.askCount;
  18318. this.toolsCount(a, t);
  18319. }
  18320. this.testJson =
  18321. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18322. index
  18323. ].toolChoose[i].testJson;
  18324. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18325. if (this.testJson.testJson[k].type == "2") {
  18326. this.radio.push([]);
  18327. } else {
  18328. this.radio.push("");
  18329. }
  18330. }
  18331. this.dialogVisibleChoice = true;
  18332. // window.parent.postMessage({ tools: "4" }, "*");
  18333. } else if (t == 5) {
  18334. if (this.scoreCount > 0) {
  18335. this.updateCount(this.scoreCount, t);
  18336. } else {
  18337. this.scoreCount++;
  18338. a = this.scoreCount;
  18339. this.toolsCount(a, t);
  18340. }
  18341. this.dialogVisible4 = true;
  18342. // window.parent.postMessage({ tools: "5" }, "*");
  18343. } else if (t == 6) {
  18344. if (this.noteCount > 0) {
  18345. this.updateCount(this.noteCount, t);
  18346. } else {
  18347. this.noteCount++;
  18348. a = this.noteCount;
  18349. this.toolsCount(a, t);
  18350. }
  18351. window.parent.postMessage(
  18352. {
  18353. tools: "6",
  18354. cid: this.id,
  18355. stage: this.courseType,
  18356. task: this.taskCount,
  18357. tool: i,
  18358. },
  18359. "*"
  18360. );
  18361. } else if (t == 7) {
  18362. if (this.mindNetWorkCount > 0) {
  18363. this.updateCount(this.mindNetWorkCount, t);
  18364. } else {
  18365. this.mindNetWorkCount++;
  18366. a = this.mindNetWorkCount;
  18367. this.toolsCount(a, t);
  18368. }
  18369. window.parent.postMessage(
  18370. {
  18371. tools: "7",
  18372. cid: this.id,
  18373. stage: this.courseType,
  18374. task: this.taskCount,
  18375. tool: i,
  18376. },
  18377. "*"
  18378. );
  18379. } else if (t == 16) {
  18380. if (this.workCount > 0) {
  18381. this.updateCount(this.workCount, t);
  18382. } else {
  18383. this.workCount++;
  18384. a = this.workCount;
  18385. this.toolsCount(a, t);
  18386. }
  18387. this.dialogVisible = true;
  18388. } else if (t == 50) {
  18389. if (this.tType == 2) {
  18390. this.$message.error("不支持学生使用");
  18391. return;
  18392. }
  18393. this.plworkFile = [];
  18394. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18395. if (!this.uploadCid) {
  18396. this.$message.error(
  18397. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18398. );
  18399. return;
  18400. }
  18401. // this.uploadCid =
  18402. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18403. // index
  18404. // ].toolChoose[i].uploadJson[0];
  18405. this.selectUploadStudent(2);
  18406. } else if (t == 8) {
  18407. if (this.libraryCount > 0) {
  18408. this.updateCount(this.libraryCount, t);
  18409. } else {
  18410. this.libraryCount++;
  18411. a = this.libraryCount;
  18412. this.toolsCount(a, t);
  18413. }
  18414. window.parent.postMessage({ tools: "8" }, "*");
  18415. } else if (t == 17) {
  18416. if (this.libraryCount > 0) {
  18417. this.updateCount(this.libraryCount, t);
  18418. } else {
  18419. this.libraryCount++;
  18420. a = this.libraryCount;
  18421. this.toolsCount(a, t);
  18422. }
  18423. window.parent.postMessage({ tools: "17" }, "*");
  18424. } else if (t == 18) {
  18425. if (this.trainCount > 0) {
  18426. this.updateCount(this.trainCount, t);
  18427. } else {
  18428. this.trainCount++;
  18429. a = this.trainCount;
  18430. this.toolsCount(a, t);
  18431. }
  18432. window.parent.postMessage({ tools: "18" }, "*");
  18433. } else if (t == 10) {
  18434. if (this.timeCount > 0) {
  18435. this.updateCount(this.timeCount, t);
  18436. } else {
  18437. this.timeCount++;
  18438. a = this.timeCount;
  18439. this.toolsCount(a, t);
  18440. }
  18441. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18442. .taskJson[index].toolChoose[i].preTime
  18443. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18444. .toolChoose[i].preTime
  18445. : "";
  18446. this.timeDialogVisible = true;
  18447. } else if (t == 15) {
  18448. this.answerQ = "";
  18449. this.questionAnswer = "";
  18450. if (this.answerCount > 0) {
  18451. this.updateCount(this.answerCount, t);
  18452. } else {
  18453. this.answerCount++;
  18454. a = this.answerCount;
  18455. this.toolsCount(a, t);
  18456. }
  18457. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18458. .taskJson[index].toolChoose[i].answerQ
  18459. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18460. .toolChoose[i].answerQ
  18461. : "";
  18462. this.answerDialogVisible = true;
  18463. } else if (t == 21) {
  18464. window.parent.postMessage({ tools: "21" }, "*");
  18465. } else if (t == 22) {
  18466. window.parent.postMessage({ tools: "22" }, "*");
  18467. } else if (t == 23) {
  18468. window.parent.postMessage({ tools: "23" }, "*");
  18469. } else if (t == 24) {
  18470. window.parent.postMessage({ tools: "24" }, "*");
  18471. } else if (t == 25) {
  18472. window.parent.postMessage({ tools: "25" }, "*");
  18473. } else if (t == 31) {
  18474. window.parent.postMessage({ tools: "31" }, "*");
  18475. } else if (t == 28) {
  18476. window.parent.postMessage({ tools: "28" }, "*");
  18477. } else if (t == 37) {
  18478. window.parent.postMessage({ tools: "37" }, "*");
  18479. } else if (t == 38) {
  18480. window.parent.postMessage({ tools: "38" }, "*");
  18481. } else if (t == 39) {
  18482. window.parent.postMessage({ tools: "39" }, "*");
  18483. } else if (t == 32) {
  18484. window.parent.postMessage({ tools: "32" }, "*");
  18485. } else if (t == 66) {
  18486. window.parent.postMessage({ tools: "66" }, "*");
  18487. } else if (t == 67) {
  18488. window.parent.postMessage({ tools: "67" }, "*");
  18489. } else if (t == 68) {
  18490. window.parent.postMessage({ tools: "68" }, "*");
  18491. } else if (t == 57) {
  18492. // window.parent.postMessage({ tools: "57" }, "*");
  18493. window.parent.postMessage(
  18494. {
  18495. tools: "57u",
  18496. cid: this.id,
  18497. stage: this.courseType,
  18498. task: this.taskCount,
  18499. tool: i,
  18500. },
  18501. "*"
  18502. );
  18503. } else if (t == 58) {
  18504. window.parent.postMessage({ tools: "58" }, "*");
  18505. } else if (t == 59) {
  18506. window.parent.postMessage({ tools: "59" }, "*");
  18507. } else if (t == 60) {
  18508. window.parent.postMessage({ tools: "60" }, "*");
  18509. } else if (t == 61) {
  18510. window.parent.postMessage({ tools: "61" }, "*");
  18511. } else if (t == 63) {
  18512. window.parent.postMessage({ tools: "63" }, "*");
  18513. } else if (t == 71) {
  18514. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  18515. // this.$message.error("该工具不可使用");
  18516. // return
  18517. // }
  18518. window.parent.postMessage({ tools: "71" }, "*");
  18519. } else if (t == 72) {
  18520. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  18521. .taskJson[index].toolChoose[i].appJson
  18522. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18523. .toolChoose[i].appJson
  18524. : "";
  18525. if(!item || !item.url){
  18526. this.$message.error("应用连接为空, 请到课程管理中添加");
  18527. return;
  18528. }
  18529. window.parent.postMessage({ tools: "72", data: item }, "*");
  18530. // window.open(item.url, "_blank");
  18531. } else if (t == 69) {
  18532. if (this.worksStudent[i].length) {
  18533. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18534. if (this.userid == this.worksStudent[i][k].userid) {
  18535. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18536. break;
  18537. } else {
  18538. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18539. }
  18540. }
  18541. } else {
  18542. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18543. }
  18544. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18545. .taskJson[index].toolChoose[i].englishList
  18546. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18547. .toolChoose[i].englishList
  18548. : {};
  18549. this.englishToolIndex = i;
  18550. this.myAnList = this.myAnswerList1;
  18551. this.engDialogVisible = true;
  18552. } else if (t == 70) {
  18553. if (this.worksStudent[i].length) {
  18554. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18555. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18556. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18557. break;
  18558. } else {
  18559. this.englishVoiceJsonWork = [];
  18560. }
  18561. }
  18562. } else {
  18563. this.englishVoiceJsonWork = [];
  18564. }
  18565. let englishVoiceJson = {}
  18566. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18567. .taskJson[index].toolChoose[i].englishVoiceJson
  18568. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18569. .toolChoose[i].englishVoiceJson
  18570. : {};
  18571. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18572. this.EnglishVoiceDialog = true;
  18573. } else if (t == 65) {
  18574. if (this.tType == 2) {
  18575. this.$message.error("不支持学生使用");
  18576. return;
  18577. }
  18578. this.uploadCid = this.tcid;
  18579. if (!this.uploadCid) {
  18580. this.$message.error(
  18581. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18582. );
  18583. return;
  18584. }
  18585. this.selectPickStudent();
  18586. } else if (t == 26) {
  18587. window.parent.postMessage(
  18588. {
  18589. tools: "26",
  18590. cid: this.id,
  18591. stage: this.courseType,
  18592. task: this.taskCount,
  18593. tool: i,
  18594. },
  18595. "*"
  18596. );
  18597. } else if (t == 40) {
  18598. if (this.evalCount > 0) {
  18599. this.updateCount(this.evalCount, t);
  18600. } else {
  18601. this.evalCount++;
  18602. a = this.evalCount;
  18603. this.toolsCount(a, t);
  18604. }
  18605. this.eScore = { eBzText: "", eStar: [] };
  18606. if (this.worksStudent[i].length) {
  18607. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18608. if (this.userid == this.worksStudent[i][k].userid) {
  18609. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18610. this.rateJson =
  18611. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18612. index
  18613. ].toolChoose[i].rateJson;
  18614. break;
  18615. } else {
  18616. this.rateJson =
  18617. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18618. index
  18619. ].toolChoose[i].rateJson;
  18620. }
  18621. }
  18622. } else {
  18623. this.rateJson =
  18624. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18625. index
  18626. ].toolChoose[i].rateJson;
  18627. }
  18628. this.isStar = false;
  18629. this.studentEvalDialogVisible = true;
  18630. } else if (t == 41) {
  18631. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18632. .taskJson[index].toolChoose[i].selectJson
  18633. ? JSON.parse(
  18634. JSON.stringify(
  18635. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18636. index
  18637. ].toolChoose[i].selectJson
  18638. )
  18639. )
  18640. : { url: "", select: [], answer: [] };
  18641. if (this.worksStudent[i].length) {
  18642. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18643. if (this.userid == this.worksStudent[i][k].userid) {
  18644. var a = this.worksStudent[i][k].works.split(",");
  18645. for (var ki = 0; ki < a.length; ki++) {
  18646. a[ki] = parseInt(a[ki]);
  18647. }
  18648. this.selectAnswer = {
  18649. answer: a,
  18650. stu: this.worksStudent[i][k].sName,
  18651. };
  18652. break;
  18653. } else {
  18654. this.selectAnswer = { answer: [], stu: "" };
  18655. }
  18656. }
  18657. } else {
  18658. this.selectAnswer = { answer: [], stu: "" };
  18659. }
  18660. this.isSelect = false;
  18661. this.dialogVisibleSelect = true;
  18662. } else if (t == 44) {
  18663. window.parent.postMessage({ tools: "44" }, "*");
  18664. } else if (t == 47) {
  18665. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18666. .taskJson[index].toolChoose[i].sentenceList
  18667. ? JSON.parse(
  18668. JSON.stringify(
  18669. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18670. index
  18671. ].toolChoose[i].sentenceList
  18672. )
  18673. )
  18674. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18675. for (var q = 0; q < this.sentenceList.length; q++) {
  18676. this.sentenceList[q].chooseSenList = [];
  18677. this.sentenceList[q].addChangeSen = [];
  18678. this.sentenceList[q].addChangeSen = JSON.parse(
  18679. JSON.stringify(this.sentenceList[q].addSentence)
  18680. );
  18681. this.sentenceList[q].chooseSenList.length =
  18682. this.sentenceList[q].rightAnswer.length;
  18683. }
  18684. this.dialogVisibleSentence = true;
  18685. } else if (t == 48) {
  18686. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18687. .taskJson[index].toolChoose[i].tableJson
  18688. ? JSON.parse(
  18689. JSON.stringify(
  18690. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18691. index
  18692. ].toolChoose[i].tableJson
  18693. )
  18694. )
  18695. : { text: "" };
  18696. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18697. if (this.worksStudent[i].length) {
  18698. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18699. if (this.userid == this.worksStudent[i][k].userid) {
  18700. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18701. break;
  18702. }
  18703. }
  18704. }
  18705. this.dialogVisibleTable = true;
  18706. } else if (t == 52) {
  18707. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18708. .taskJson[index].toolChoose[i].wordJson
  18709. ? JSON.parse(
  18710. JSON.stringify(
  18711. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18712. index
  18713. ].toolChoose[i].wordJson
  18714. )
  18715. )
  18716. : { text: "" };
  18717. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18718. if (this.worksStudent[i].length) {
  18719. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18720. if (this.userid == this.worksStudent[i][k].userid) {
  18721. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18722. break;
  18723. }
  18724. }
  18725. }
  18726. this.dialogVisibleWord = true;
  18727. } else if (t == 49) {
  18728. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18729. return
  18730. }
  18731. this.groupJson =
  18732. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18733. index
  18734. ].toolChoose[i].groupJson;
  18735. this.islock = this.groupJson.islock == 1 ? true : false;
  18736. this.dialogVisibleGroup = true;
  18737. } else if (t == 62) {
  18738. this.videoType = 0;
  18739. this.videoJson = {};
  18740. this.videoJson =
  18741. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18742. index
  18743. ].toolChoose[i].videoJson;
  18744. this.dialogVisibleVideo = true;
  18745. }
  18746. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18747. },
  18748. teacherWorkSubmit(t, i, index, s) {
  18749. this.sStudent = s;
  18750. this.toolindex = i;
  18751. this.sTool = t;
  18752. if (this.tType !== "1" && this.tType !== "4") {
  18753. return;
  18754. }
  18755. if (t == 16 || t == 32 || t == 50) {
  18756. this.dialogVisibleWorks = true;
  18757. } else if (t == 15) {
  18758. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18759. .taskJson[index].toolChoose[i].answerQ
  18760. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18761. .toolChoose[i].answerQ
  18762. : "";
  18763. this.questionAnswer = "";
  18764. this.answerDialogVisibleTeacher = true; //问答
  18765. } else if (t == 52) {
  18766. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18767. .taskJson[index].toolChoose[i].wordJson
  18768. ? JSON.parse(
  18769. JSON.stringify(
  18770. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18771. index
  18772. ].toolChoose[i].wordJson
  18773. )
  18774. )
  18775. : { text: "" };
  18776. if (this.worksStudent[i].length) {
  18777. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18778. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18779. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18780. break;
  18781. }
  18782. }
  18783. }
  18784. this.dialogVisibleWordTeacher = true; //文档
  18785. } else if (t == 4) {
  18786. this.radio = [];
  18787. this.noteName = "";
  18788. this.isAnswer = false;
  18789. if (this.askCount > 0) {
  18790. this.updateCount(this.askCount, t);
  18791. } else {
  18792. this.askCount++;
  18793. a = this.askCount;
  18794. this.toolsCount(a, t);
  18795. }
  18796. if (!this.dialogVisible2) {
  18797. this.askJson.askJson =
  18798. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18799. index
  18800. ].toolChoose[i].askJson;
  18801. this.askJson.askTitle =
  18802. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18803. index
  18804. ].toolChoose[i].askTitle;
  18805. this.askJson.askCount =
  18806. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18807. index
  18808. ].toolChoose[i].askCount;
  18809. } else {
  18810. this.askJson.askJson = this.chapTools.askJson.askJson;
  18811. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18812. this.askJson.askCount = this.chapTools.askJson.askCount;
  18813. }
  18814. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18815. if (this.askJson.askJson[k].type == "2") {
  18816. this.radio.push([]);
  18817. } else {
  18818. this.radio.push("");
  18819. }
  18820. }
  18821. this.dialogVisible5Teacher = true;
  18822. } else if (t == 45) {
  18823. this.noteName = "";
  18824. this.radio = [];
  18825. this.isAnswer = false;
  18826. if (this.askCount > 0) {
  18827. this.updateCount(this.askCount, t);
  18828. } else {
  18829. this.askCount++;
  18830. a = this.askCount;
  18831. this.toolsCount(a, t);
  18832. }
  18833. this.testJson =
  18834. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18835. index
  18836. ].toolChoose[i].testJson;
  18837. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18838. if (this.testJson.testJson[k].type == "2") {
  18839. this.radio.push([]);
  18840. } else {
  18841. this.radio.push("");
  18842. }
  18843. }
  18844. this.dialogVisibleChoiceTeacher = true;
  18845. } else if (t == 41) {
  18846. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18847. .taskJson[index].toolChoose[i].selectJson
  18848. ? JSON.parse(
  18849. JSON.stringify(
  18850. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18851. index
  18852. ].toolChoose[i].selectJson
  18853. )
  18854. )
  18855. : { url: "", select: [], answer: [] };
  18856. if (this.worksStudent[i].length) {
  18857. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18858. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18859. var a = this.worksStudent[i][k].works.split(",");
  18860. for (var ki = 0; ki < a.length; ki++) {
  18861. a[ki] = parseInt(a[ki]);
  18862. }
  18863. this.selectAnswer = {
  18864. answer: a,
  18865. stu: this.worksStudent[i][k].sName,
  18866. };
  18867. break;
  18868. } else {
  18869. this.selectAnswer = { answer: [], stu: "" };
  18870. }
  18871. }
  18872. } else {
  18873. this.selectAnswer = { answer: [], stu: "" };
  18874. }
  18875. this.isSelect = false;
  18876. this.dialogVisibleSelectTeacher = true;
  18877. } else if (t == 47) {
  18878. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18879. .taskJson[index].toolChoose[i].sentenceList
  18880. ? JSON.parse(
  18881. JSON.stringify(
  18882. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18883. index
  18884. ].toolChoose[i].sentenceList
  18885. )
  18886. )
  18887. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18888. for (var q = 0; q < this.sentenceList.length; q++) {
  18889. this.sentenceList[q].chooseSenList = [];
  18890. this.sentenceList[q].addChangeSen = [];
  18891. this.sentenceList[q].addChangeSen = JSON.parse(
  18892. JSON.stringify(this.sentenceList[q].addSentence)
  18893. );
  18894. this.sentenceList[q].chooseSenList.length =
  18895. this.sentenceList[q].rightAnswer.length;
  18896. }
  18897. this.dialogVisibleSentenceTeacher = true;
  18898. } else if (t == 48) {
  18899. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18900. .taskJson[index].toolChoose[i].tableJson
  18901. ? JSON.parse(
  18902. JSON.stringify(
  18903. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18904. index
  18905. ].toolChoose[i].tableJson
  18906. )
  18907. )
  18908. : { text: "" };
  18909. if (this.worksStudent[i].length) {
  18910. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18911. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18912. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18913. break;
  18914. }
  18915. }
  18916. }
  18917. this.dialogVisibleTableTeacher = true;
  18918. } else if (t == 40) {
  18919. if (this.evalCount > 0) {
  18920. this.updateCount(this.evalCount, t);
  18921. } else {
  18922. this.evalCount++;
  18923. a = this.evalCount;
  18924. this.toolsCount(a, t);
  18925. }
  18926. this.eScore = { eBzText: "", eStar: [] };
  18927. if (this.worksStudent[i].length) {
  18928. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18929. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18930. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18931. this.rateJson =
  18932. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18933. index
  18934. ].toolChoose[i].rateJson;
  18935. break;
  18936. } else {
  18937. this.rateJson =
  18938. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18939. index
  18940. ].toolChoose[i].rateJson;
  18941. }
  18942. }
  18943. } else {
  18944. this.rateJson =
  18945. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18946. index
  18947. ].toolChoose[i].rateJson;
  18948. }
  18949. this.isStar = false;
  18950. this.studentEvalDialogVisibleTeacher = true;
  18951. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18952. window.parent.postMessage(
  18953. {
  18954. tools: t + "teacher",
  18955. cid: this.id,
  18956. stage: this.courseType,
  18957. task: this.taskCount,
  18958. tool: i,
  18959. student: this.sStudent,
  18960. },
  18961. "*"
  18962. );
  18963. }
  18964. },
  18965. openCocoPi(tool, i, uid, uname) {
  18966. let student = {
  18967. userid: uid,
  18968. student: uname,
  18969. };
  18970. if (tool == 57) {
  18971. window.parent.postMessage(
  18972. {
  18973. tools: tool + "teacher",
  18974. cid: this.id,
  18975. stage: this.courseType,
  18976. task: this.taskCount,
  18977. tool: i,
  18978. student: student,
  18979. },
  18980. "*"
  18981. );
  18982. }
  18983. },
  18984. setRightAnswer(s, i, j) {
  18985. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18986. if (
  18987. this.sentenceList[i].chooseSenList[q] == undefined ||
  18988. this.sentenceList[i].chooseSenList[q] == ""
  18989. ) {
  18990. this.sentenceList[i].chooseSenList[q] = s;
  18991. this.sentenceList[i].addChangeSen[j] = "";
  18992. break;
  18993. }
  18994. }
  18995. this.$forceUpdate();
  18996. },
  18997. returnCard(r, i, j) {
  18998. var a = this.sentenceList[i].addSentence.indexOf(r);
  18999. this.sentenceList[i].chooseSenList[j] = "";
  19000. this.sentenceList[i].addChangeSen[a] = r;
  19001. this.$forceUpdate();
  19002. },
  19003. // addSentenceTool() {
  19004. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19005. // this.taskCount
  19006. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19007. // this.sentenceList = [
  19008. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19009. // ];
  19010. // this.dialogVisibleSentence = false;
  19011. // },
  19012. toolsCount(a, t) {
  19013. let params = {
  19014. cid: this.id,
  19015. chid: this.courseType,
  19016. uid: this.userid,
  19017. tid: t,
  19018. count: a,
  19019. };
  19020. this.ajax
  19021. .get(this.$store.state.api + "insertToolsCount", params)
  19022. .then((res) => {
  19023. this.selectCount();
  19024. })
  19025. .catch((err) => {
  19026. console.error(err);
  19027. });
  19028. },
  19029. updateCount(c, t) {
  19030. c++;
  19031. let params = {
  19032. cid: this.id,
  19033. chid: this.courseType,
  19034. uid: this.userid,
  19035. tid: t,
  19036. count: c,
  19037. };
  19038. this.ajax
  19039. .get(this.$store.state.api + "updateToolsCount", params)
  19040. .then((res) => {
  19041. this.selectCount();
  19042. })
  19043. .catch((err) => {
  19044. console.error(err);
  19045. });
  19046. },
  19047. checkEva() {
  19048. if (this.evalua != "") {
  19049. for (var i = 0; i < this.evaJuri.length; i++) {
  19050. if (this.evalua == this.evaJuri[i].id) {
  19051. this.eTitle = this.evaJuri[i].title;
  19052. this.eJson = JSON.parse(this.evaJuri[i].content);
  19053. }
  19054. }
  19055. this.$forceUpdate();
  19056. setTimeout(() => {
  19057. this.setMindData();
  19058. }, 0);
  19059. }
  19060. },
  19061. selectEva() {
  19062. let params = {
  19063. oid: this.oid,
  19064. };
  19065. this.ajax
  19066. .get(this.$store.state.api + "selectAllEvaluation", params)
  19067. .then((res) => {
  19068. this.evaJuri = res.data[0];
  19069. })
  19070. .catch((err) => {
  19071. console.error(err);
  19072. });
  19073. },
  19074. setMindData() {
  19075. this.data.data = [];
  19076. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19077. let _eJson = Object.keys(this.eJson);
  19078. let _e = this.eJson;
  19079. for (let i = 0; i < _eJson.length; i++) {
  19080. let element = _e[_eJson[i]];
  19081. this.data.data.push({
  19082. id: element.id,
  19083. parentid: "root",
  19084. topic: element.name,
  19085. });
  19086. let _eJsonc = Object.keys(element.child);
  19087. let _e2 = element.child;
  19088. for (let j = 0; j < _eJsonc.length; j++) {
  19089. let _ec = _e2[_eJsonc[j]];
  19090. this.data.data.push({
  19091. id: _ec.id,
  19092. parentid: element.id,
  19093. topic: _ec.name,
  19094. });
  19095. let _eJsonz = Object.keys(_ec.child);
  19096. let _e3 = _ec.child;
  19097. for (let z = 0; z < _eJsonz.length; z++) {
  19098. let _ez = _e3[_eJsonz[z]];
  19099. this.data.data.push({
  19100. id: _ez.id,
  19101. parentid: _ec.id,
  19102. topic: _ez.name,
  19103. });
  19104. }
  19105. }
  19106. }
  19107. this.$forceUpdate();
  19108. },
  19109. checkFileFull(type, url) {
  19110. this.fullDialogVisible = true;
  19111. this.fulltype = type;
  19112. this.fullUrl = url;
  19113. },
  19114. async checkFileFull1(t, f) {
  19115. this.fullDialogVisible = true;
  19116. if (t == 6) {
  19117. this.fulltype = 1;
  19118. this.fullUrl = JSON.parse(JSON.stringify(f));
  19119. } else if (t == 8) {
  19120. this.fulltype = 2;
  19121. this.fullUrl = f.url;
  19122. } else if (
  19123. t == 3 &&
  19124. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19125. "PDF"
  19126. ) {
  19127. this.fulltype = 3;
  19128. this.fullUrl = f.url;
  19129. } else if (t == 3) {
  19130. this.fulltype = 2;
  19131. let _uuurl = await this.checkLink(f.url);
  19132. console.log(_uuurl)
  19133. this.fullUrl =
  19134. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19135. }
  19136. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19137. },
  19138. openSname(n, id, i, uid) {
  19139. this.snameWid = id;
  19140. this.worksSName = n;
  19141. this.worksSid = uid == n ? "" : uid;
  19142. this.toolindex = i;
  19143. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19144. if (!this.uploadCid) {
  19145. this.$message.error(
  19146. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19147. );
  19148. return;
  19149. }
  19150. this.selectUploadStudent(1);
  19151. },
  19152. updateName() {
  19153. let params = {
  19154. n: this.worksSName,
  19155. cid: this.snameWid,
  19156. };
  19157. this.ajax
  19158. .get(this.$store.state.api + "updateCourseWorksName", params)
  19159. .then((res) => {
  19160. this.$message({
  19161. message: "修改成功",
  19162. type: "success",
  19163. });
  19164. this.dialogVisibleSname = false;
  19165. this.getCourseDetail(2);
  19166. this.snameWid = "";
  19167. this.worksSName = "";
  19168. })
  19169. .catch((err) => {
  19170. console.error(err);
  19171. });
  19172. },
  19173. downloadFile2(f) {
  19174. // const loading = this.$loading.service({
  19175. // background: "rgba(255, 255, 255, 0.7)",
  19176. // target: document.body,
  19177. // text: "文件加载中...",
  19178. // });
  19179. // let url2 = f.url;
  19180. // let _url2 = "";
  19181. // if (
  19182. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19183. // ) {
  19184. // _url2 = url2.split(
  19185. // "https://view.officeapps.live.com/op/view.aspx?src="
  19186. // )[1];
  19187. // } else {
  19188. // _url2 = url2;
  19189. // }
  19190. // let params = {
  19191. // url: _url2,
  19192. // name: f.name,
  19193. // };
  19194. // this.ajax
  19195. // .get(this.$store.state.api + "download", params)
  19196. // .then((res) => {
  19197. // loading.close();
  19198. // let content = res.data.data.data;
  19199. // let ab = new ArrayBuffer(content.length);
  19200. // let view = new Uint8Array(ab);
  19201. // for (var i = 0; i < content.length; ++i) {
  19202. // view[i] = content[i];
  19203. // }
  19204. // let elink = document.createElement("a");
  19205. // elink.download = f.name;
  19206. // elink.style.display = "none";
  19207. // let blob = new Blob([ab], {
  19208. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19209. // });
  19210. // elink.href = URL.createObjectURL(blob);
  19211. // document.body.appendChild(elink);
  19212. // elink.click();
  19213. // document.body.removeChild(elink);
  19214. // })
  19215. // .catch((err) => {
  19216. // loading.close();
  19217. // console.error(err);
  19218. // });
  19219. var credentials = {
  19220. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19221. secretAccessKey: "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",
  19222. }; //秘钥形式的登录上传
  19223. window.AWS.config.update(credentials);
  19224. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19225. let url2 = f.url;
  19226. let _url2 = "";
  19227. if (
  19228. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19229. ) {
  19230. _url2 = url2.split(
  19231. "https://view.officeapps.live.com/op/view.aspx?src="
  19232. )[1];
  19233. } else {
  19234. _url2 = url2;
  19235. }
  19236. let _this = this;
  19237. _this.downLoading = true
  19238. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19239. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19240. var params = {
  19241. Bucket: "ccrb",
  19242. Key: name
  19243. };
  19244. s3.getObject(params, function (err, data) {
  19245. _this.downLoading = false
  19246. if (err) console.log(err, err.stack); // an error occurred
  19247. else {
  19248. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19249. let a = document.createElement("a");
  19250. a.name = f.name;
  19251. a.href = url;
  19252. a.download = f.name;
  19253. a.click();
  19254. console.log(data);
  19255. } // sxuccessful response
  19256. });
  19257. return;
  19258. let url = f.url;
  19259. let _url = "";
  19260. if (
  19261. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19262. ) {
  19263. _url = url.split(
  19264. "https://view.officeapps.live.com/op/view.aspx?src="
  19265. )[1];
  19266. } else {
  19267. _url = url;
  19268. }
  19269. _this.downLoading = true
  19270. // const loading = _this.$loading.service({
  19271. // background: "rgba(255, 255, 255, 0.7)",
  19272. // target: document.body,
  19273. // text: "文件加载中...",
  19274. // });
  19275. let x = new XMLHttpRequest();
  19276. x.open("GET", _url, true);
  19277. x.responseType = "blob";
  19278. x.onload = function () {
  19279. _this.downLoading = false
  19280. // loading.close();
  19281. let url = window.URL.createObjectURL(new Blob([x.response]));
  19282. let a = document.createElement("a");
  19283. a.name = f.name;
  19284. a.href = url;
  19285. a.download = f.name;
  19286. a.click();
  19287. };
  19288. x.send();
  19289. },
  19290. downloadFile(url) {
  19291. var credentials = {
  19292. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19293. secretAccessKey: "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",
  19294. }; //秘钥形式的登录上传
  19295. window.AWS.config.update(credentials);
  19296. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19297. let url2 = url;
  19298. let _url2 = "";
  19299. if (
  19300. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19301. ) {
  19302. _url2 = url2.split(
  19303. "https://view.officeapps.live.com/op/view.aspx?src="
  19304. )[1];
  19305. } else {
  19306. _url2 = url2;
  19307. }
  19308. const loading2 = this.$loading.service({
  19309. background: "rgba(255, 255, 255, 0.7)",
  19310. target: document.body,
  19311. text: "文件加载中...",
  19312. });
  19313. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19314. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19315. var params = {
  19316. Bucket: "ccrb",
  19317. Key: name
  19318. };
  19319. s3.getObject(params, function (err, data) {
  19320. loading2.close();
  19321. if (err) console.log(err, err.stack); // an error occurred
  19322. else {
  19323. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19324. let a = document.createElement("a");
  19325. a.name = name;
  19326. a.href = url;
  19327. a.download = name;
  19328. a.click();
  19329. console.log(data);
  19330. } // sxuccessful response
  19331. });
  19332. return;
  19333. let _this = this;
  19334. let _url = "";
  19335. if (
  19336. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19337. ) {
  19338. _url = url.split(
  19339. "https://view.officeapps.live.com/op/view.aspx?src="
  19340. )[1];
  19341. } else {
  19342. _url = url;
  19343. }
  19344. const x = new XMLHttpRequest();
  19345. x.open("GET", _url, true);
  19346. x.responseType = "blob";
  19347. // this.downLoading = true
  19348. const loading = _this.$loading.service({
  19349. background: "rgba(255, 255, 255, 0.7)",
  19350. target: document.body,
  19351. text: "文件加载中...",
  19352. });
  19353. // _this.$message.success("文件下载中...");
  19354. x.onload = function (e) {
  19355. this.downLoading = false
  19356. loading.close();
  19357. let content = x.response;
  19358. let elink = document.createElement("a");
  19359. elink.download = decodeURI(
  19360. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19361. );
  19362. elink.style.display = "none";
  19363. let blob = new Blob([content]);
  19364. elink.href = URL.createObjectURL(blob);
  19365. document.body.appendChild(elink);
  19366. elink.click();
  19367. document.body.removeChild(elink);
  19368. };
  19369. x.send();
  19370. },
  19371. openLine(url) {
  19372. window.open(url);
  19373. },
  19374. resize() {
  19375. if (document.getElementsByClassName("box_course").length) {
  19376. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19377. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19378. if (this.showType == 2 || this.showType == 3) {
  19379. document.getElementsByClassName("navBox")[0].style.height =
  19380. a - 40 + 0+ "px";
  19381. } else {
  19382. document.getElementsByClassName("navBox")[0].style.height =
  19383. a - 40 + "px";
  19384. }
  19385. }
  19386. this.Stbodywidth =
  19387. document.getElementsByClassName("student_body").length &&
  19388. document.getElementsByClassName("student_body")[0].offsetWidth;
  19389. },
  19390. closeDraw() {
  19391. this.bg = null;
  19392. this.drawShow = false;
  19393. },
  19394. showPicturePaint(url) {
  19395. let params = {
  19396. img: url,
  19397. };
  19398. this.ajax
  19399. .get(this.$store.state.api + "imgToBase64", params)
  19400. .then((res) => {
  19401. this.drawShow = true;
  19402. this.bg = res.data[0].img;
  19403. })
  19404. .catch((err) => {
  19405. console.error(err);
  19406. });
  19407. },
  19408. addImgDraw(base64) {
  19409. let file = { name: "批注图.png" };
  19410. let img = this.dataUrlToFile(base64, file);
  19411. this.beforeUpload1(img, 5);
  19412. },
  19413. addImgDrawImG(url) {
  19414. // console.log(url);
  19415. let params = [
  19416. {
  19417. wid: this.commentDetail.wid,
  19418. img: url,
  19419. },
  19420. ];
  19421. this.ajax
  19422. .post(this.$store.state.api + "updateCourseWorks", params)
  19423. .then((res) => {
  19424. this.$message({
  19425. message: "提交成功",
  19426. type: "success",
  19427. });
  19428. this.drawShow = false;
  19429. this.bg = "";
  19430. this.selectSWorks();
  19431. this.selectStudent();
  19432. })
  19433. .catch((err) => {
  19434. this.$message.error("提交失败");
  19435. console.error(err);
  19436. });
  19437. },
  19438. deletePicturePaint() {
  19439. this.$confirm("确定删除此批注吗?", "提示", {
  19440. confirmButtonText: "确定",
  19441. cancelButtonText: "取消",
  19442. type: "warning",
  19443. })
  19444. .then(() => {
  19445. let params = [
  19446. {
  19447. wid: this.commentDetail.wid,
  19448. img: "",
  19449. },
  19450. ];
  19451. this.ajax
  19452. .post(this.$store.state.api + "updateCourseWorks", params)
  19453. .then((res) => {
  19454. this.$message({
  19455. message: "删除成功",
  19456. type: "success",
  19457. });
  19458. this.selectSWorks();
  19459. this.selectStudent();
  19460. })
  19461. .catch((err) => {
  19462. this.$message.error("删除失败");
  19463. console.error(err);
  19464. });
  19465. })
  19466. .catch(() => {});
  19467. },
  19468. getAudioVideo(constraintsData) {
  19469. if (navigator.mediaDevices === undefined) {
  19470. navigator.mediaDevices = {};
  19471. }
  19472. if (navigator.mediaDevices.getUserMedia === undefined) {
  19473. navigator.mediaDevices.getUserMedia = function (constraints) {
  19474. // 首先,如果有getUserMedia的话,就获得它
  19475. var getUserMedia =
  19476. navigator.getUserMedia ||
  19477. navigator.webkitGetUserMedia ||
  19478. navigator.mozGetUserMedia ||
  19479. navigator.msGetUserMedia;
  19480. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19481. if (!getUserMedia) {
  19482. return Promise.reject({ code: 404 });
  19483. }
  19484. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19485. return new Promise(function (resolve, reject) {
  19486. getUserMedia.call(navigator, constraints, resolve, reject);
  19487. });
  19488. };
  19489. }
  19490. return navigator.mediaDevices.getUserMedia(constraintsData);
  19491. },
  19492. /**
  19493. * 开始录制
  19494. */
  19495. startRecording(callback) {
  19496. let _function = (screenStream) => {
  19497. this.addStreamStopListener(screenStream, () => {
  19498. console.log("流停止监听");
  19499. this.stopRecording();
  19500. this.$emit("streamStop", {});
  19501. // this.stopRecording();
  19502. });
  19503. var options = {
  19504. type: "video",
  19505. mimeType: "video/webm",
  19506. disableLogs: false,
  19507. getNativeBlob: false, // enable it for longer recordings
  19508. ignoreMutedMedia: false,
  19509. };
  19510. // this.video.srcObject = screenStream;
  19511. this.recorder = RecordRTC(screenStream, options);
  19512. this.recorder.startRecording();
  19513. this.recorder.screen = screenStream;
  19514. this.videoStart = true;
  19515. // callback(true);
  19516. };
  19517. this.getAudioVideo({ audio: true })
  19518. .then((res) => {
  19519. this.captureScreen(_function, true);
  19520. console.log("已点击允许,开启成功");
  19521. })
  19522. .catch((err) => {
  19523. // console.log('浏览器不支持,请更换浏览器')
  19524. // } else {
  19525. this.captureScreen(_function, false);
  19526. console.log("请检查是否存在麦克风");
  19527. });
  19528. },
  19529. /**
  19530. * 停止录制
  19531. */
  19532. stopRecording(callback) {
  19533. this.recorder.stopRecording(() => {
  19534. // this.video.src = this.video.srcObject = null;
  19535. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19536. const url = URL.createObjectURL(this.recorder.getBlob());
  19537. const a = document.createElement("a"); //this.fileName+
  19538. let videoFile = new File(
  19539. [this.recorder.getBlob()],
  19540. this.courseDetail.title + "录屏.mp4",
  19541. {
  19542. type: "video/mp4",
  19543. }
  19544. );
  19545. let downloadUrl = URL.createObjectURL(videoFile);
  19546. if(this.$refs.classRoomHelperRef){
  19547. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19548. }
  19549. document.body.appendChild(a);
  19550. a.style.display = "none";
  19551. a.href = url;
  19552. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19553. a.click();
  19554. this.recorder.screen.stop();
  19555. this.recorder.destroy();
  19556. this.recorder = null;
  19557. this.videoStart = false;
  19558. // callback(false);
  19559. });
  19560. },
  19561. //初始化
  19562. captureScreen(callback, type) {
  19563. if (navigator.getDisplayMedia) {
  19564. //录制结束,文件下载
  19565. navigator
  19566. .getDisplayMedia({
  19567. video: true,
  19568. })
  19569. .then((screenStream) => {
  19570. if (type) {
  19571. navigator.mediaDevices
  19572. .getUserMedia({ audio: true })
  19573. .then((mic) => {
  19574. screenStream.addTrack(mic.getTracks()[0]);
  19575. callback(screenStream);
  19576. });
  19577. } else {
  19578. callback(screenStream);
  19579. }
  19580. })
  19581. .catch(function (error) {
  19582. console.log("error", error);
  19583. });
  19584. } else if (navigator.mediaDevices.getDisplayMedia) {
  19585. navigator.mediaDevices
  19586. .getDisplayMedia({
  19587. video: true,
  19588. })
  19589. .then((screenStream) => {
  19590. if (type) {
  19591. navigator.mediaDevices
  19592. .getUserMedia({ audio: true })
  19593. .then((mic) => {
  19594. screenStream.addTrack(mic.getTracks()[0]);
  19595. callback(screenStream);
  19596. });
  19597. } else {
  19598. callback(screenStream);
  19599. }
  19600. })
  19601. .catch(function (error) {
  19602. console.log("error", error);
  19603. });
  19604. } else {
  19605. var error = "getDisplayMedia API are not supported in this browser.";
  19606. console.log("error", error);
  19607. alert(error);
  19608. }
  19609. },
  19610. //流监听
  19611. addStreamStopListener(stream, callback) {
  19612. stream.addEventListener(
  19613. "ended",
  19614. function () {
  19615. callback();
  19616. callback = function () {};
  19617. },
  19618. false
  19619. );
  19620. stream.addEventListener(
  19621. "inactive",
  19622. function () {
  19623. callback();
  19624. callback = function () {};
  19625. },
  19626. false
  19627. );
  19628. stream.getTracks().forEach(function (track) {
  19629. track.addEventListener(
  19630. "ended",
  19631. function () {
  19632. callback();
  19633. callback = function () {};
  19634. },
  19635. false
  19636. );
  19637. track.addEventListener(
  19638. "inactive",
  19639. function () {
  19640. callback();
  19641. callback = function () {};
  19642. },
  19643. false
  19644. );
  19645. });
  19646. },
  19647. updateGroup() {
  19648. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19649. this.dialogVisibleGroup2 = true;
  19650. },
  19651. numberPan() {
  19652. if (
  19653. /[^\d]/.test(this.groupJson.number) ||
  19654. this.groupJson.number < 2 ||
  19655. this.groupJson.number > 10
  19656. ) {
  19657. this.$message.error("请输入2-10的数字");
  19658. this.groupJson.number = "";
  19659. }
  19660. },
  19661. updateGroupJson() {
  19662. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19663. if (
  19664. this.groupStudentUid[this.toolindex][i].length >
  19665. this.groupJson2.number
  19666. ) {
  19667. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19668. return;
  19669. }
  19670. }
  19671. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19672. this.islock = this.groupJson.islock == 1 ? true : false;
  19673. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19674. this.taskCount
  19675. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19676. let params = [
  19677. {
  19678. cid: this.id,
  19679. chapters: JSON.stringify(this.chapInfoList),
  19680. uid: this.userid,
  19681. unitIndex: this.courseType,
  19682. },
  19683. ];
  19684. this.ajax
  19685. .post(this.$store.state.api + "updateWorkNew4", params)
  19686. .then((res) => {
  19687. this.$message.success("设置成功");
  19688. this.getCourseDetail(2);
  19689. this.dialogVisibleGroup2 = false;
  19690. this.groupJson2 = {};
  19691. this.$forceUpdate();
  19692. })
  19693. .catch((err) => {
  19694. this.$message.error("网络不佳");
  19695. console.error(err);
  19696. });
  19697. },
  19698. lockChair() {
  19699. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19700. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19701. this.updateGroupJson();
  19702. },
  19703. selectGroup(index) {
  19704. this.getCourseDetail(2, index);
  19705. },
  19706. joinGroup(index) {
  19707. if (this.groupJson.islock == 2) {
  19708. this.$message.error("位置已被锁定,无法加入");
  19709. return;
  19710. }
  19711. if (
  19712. this.groupStudent[this.toolindex][index].length >
  19713. this.groupJson.number ||
  19714. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19715. ) {
  19716. this.$message.error("位置已满,无法加入");
  19717. return;
  19718. }
  19719. let params = [
  19720. {
  19721. cid: this.id,
  19722. stage: this.courseType,
  19723. task: this.taskCount,
  19724. tool: this.toolindex,
  19725. g: index,
  19726. uid: this.userid,
  19727. },
  19728. ];
  19729. this.ajax
  19730. .post(this.$store.state.api + "joinGroup", params)
  19731. .then((res) => {
  19732. this.$message.success("加入成功");
  19733. this.getCourseDetail(2);
  19734. })
  19735. .catch((err) => {
  19736. this.$message.error("网络不佳");
  19737. console.error(err);
  19738. });
  19739. },
  19740. exitGroup(id) {
  19741. if (this.groupJson.islock == 2) {
  19742. this.$message.error("位置已被锁定,无法退出");
  19743. return;
  19744. }
  19745. let params = [
  19746. {
  19747. gid: id,
  19748. },
  19749. ];
  19750. this.ajax
  19751. .post(this.$store.state.api + "exitGroup", params)
  19752. .then((res) => {
  19753. this.$message.success("退出成功");
  19754. this.getCourseDetail(2);
  19755. })
  19756. .catch((err) => {
  19757. this.$message.error("网络不佳");
  19758. console.error(err);
  19759. });
  19760. },
  19761. groupUpload(index, task, gindex) {
  19762. this.taskCount = task;
  19763. this.toolindex = index;
  19764. this.groupIndex = gindex;
  19765. this.dialogVisibleGroupWork = true;
  19766. },
  19767. updateGroupChair(user) {
  19768. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19769. el.label = index;
  19770. return index != user.group;
  19771. });
  19772. this.updateGroupUser = user;
  19773. this.dialogVisibleUpdateGroup = true;
  19774. },
  19775. updateChair() {
  19776. if (
  19777. this.groupStudent[this.toolindex][this.checkChair].length >
  19778. this.groupJson.number ||
  19779. this.groupStudent[this.toolindex][this.checkChair].length ==
  19780. this.groupJson.number
  19781. ) {
  19782. this.$message.error("位置已满,无法加入");
  19783. return;
  19784. }
  19785. let params = [
  19786. {
  19787. cid: this.id,
  19788. stage: this.courseType,
  19789. task: this.taskCount,
  19790. tool: this.toolindex,
  19791. g: this.checkChair,
  19792. uid: this.updateGroupUser.userid,
  19793. },
  19794. ];
  19795. this.ajax
  19796. .post(this.$store.state.api + "joinGroup", params)
  19797. .then((res) => {
  19798. this.$message.success("修改成功");
  19799. this.updateGroupUser = {};
  19800. this.checkChair = "";
  19801. this.updateGroupArray = {};
  19802. this.dialogVisibleUpdateGroup = false;
  19803. this.getCourseDetail(2);
  19804. })
  19805. .catch((err) => {
  19806. this.$message.error("网络不佳");
  19807. console.error(err);
  19808. });
  19809. },
  19810. deleteGroupChair(gindex) {
  19811. this.checkDeleteGroup = [];
  19812. this.deleteGroupUser = JSON.parse(
  19813. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19814. );
  19815. this.deleteGroupArray = this.groupJson.group[gindex];
  19816. this.groupIndex = gindex;
  19817. this.dialogVisibleDeleteGroup = true;
  19818. },
  19819. async deleteChair() {
  19820. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19821. const gid =
  19822. this.groupStudent[this.toolindex][this.groupIndex][
  19823. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19824. this.checkDeleteGroup[i]
  19825. )
  19826. ];
  19827. let params = [
  19828. {
  19829. gid: gid.id,
  19830. },
  19831. ];
  19832. var a = await this.deleteChairA(params);
  19833. if (i == this.checkDeleteGroup.length - 1) {
  19834. this.$message.success("退出成功");
  19835. this.dialogVisibleDeleteGroup = false;
  19836. this.deleteGroupUser = [];
  19837. this.deleteGroupArray = {};
  19838. this.groupIndex = "";
  19839. this.checkDeleteGroup = [];
  19840. this.getCourseDetail(2);
  19841. }
  19842. }
  19843. },
  19844. deleteChairA(params) {
  19845. return new Promise((resolve, reject) => {
  19846. this.ajax
  19847. .post(this.$store.state.api + "exitGroup", params)
  19848. .then((res) => {
  19849. resolve(1);
  19850. })
  19851. .catch((err) => {
  19852. this.$message.error("网络不佳");
  19853. console.error(err);
  19854. });
  19855. });
  19856. },
  19857. contract(i) {
  19858. if (this.isCloseList[i].isClose == 0) {
  19859. this.isCloseList[i].isClose = 1;
  19860. } else {
  19861. this.isCloseList[i].isClose = 0;
  19862. }
  19863. this.$forceUpdate();
  19864. },
  19865. openWordCloud(toolindex) {
  19866. this.wordCloudData = '';
  19867. let array = [];
  19868. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19869. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19870. array.push({ name: works });
  19871. }
  19872. if (this.isGroup) {
  19873. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19874. let works = this.courseGroup.group[i].works[toolindex];
  19875. for (var j = 0; j < works.length; j++) {
  19876. let answer = JSON.parse(works[j].works)[0].answer;
  19877. array.push({ name: answer });
  19878. }
  19879. }
  19880. }
  19881. let _result = ''
  19882. array.forEach(e=>{
  19883. _result +=e.name+','
  19884. })
  19885. this.wordCloudData = _result;
  19886. this.dialogVisibleWordCloud = true;
  19887. this.wordCloudKey += 1;
  19888. },
  19889. uploadWorks(i) {
  19890. this.$confirm("确定导出作业吗?", "提示", {
  19891. confirmButtonText: "确定",
  19892. cancelButtonText: "取消",
  19893. type: "warning",
  19894. })
  19895. .then(() => {
  19896. const loading = this.$loading.service({
  19897. background: "rgba(255, 255, 255, 0.7)",
  19898. target: document.body,
  19899. text: "文件加载中...",
  19900. });
  19901. const _worksStudent = this.worksStudent;
  19902. let url = [];
  19903. var counts = {};
  19904. for (var l = 0; l < _worksStudent[i].length; l++) {
  19905. var item = _worksStudent[i][l];
  19906. var name = item.sName;
  19907. if (!counts.hasOwnProperty(name)) {
  19908. counts[name] = 0;
  19909. } else {
  19910. counts[name]++;
  19911. }
  19912. if (counts[name] > 0) {
  19913. item.sName += " (" + counts[name] + ")";
  19914. }
  19915. }
  19916. for (var l = 0; l < _worksStudent[i].length; l++) {
  19917. var item = _worksStudent[i][l];
  19918. if (
  19919. item.works.indexOf(
  19920. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19921. ) !== -1 &&
  19922. item.works.indexOf("img") === -1
  19923. ) {
  19924. url.push({ name: item.sName, url: item.works });
  19925. }
  19926. }
  19927. // var toolList = [
  19928. // { name: "电子白板", tool: 1 },
  19929. // { name: "思维导图", tool: 3 },
  19930. // { name: "协同文档", tool: 6 },
  19931. // { name: "思维网格", tool: 7 },
  19932. // { name: "素材库", tool: 8 },
  19933. // { name: "学习资料", tool: 17 },
  19934. // { name: "便签", tool: 2 },
  19935. // { name: "问卷调查", tool: 4 },
  19936. // { name: "选择题", tool: 45 },
  19937. // { name: "倒计时", tool: 10 },
  19938. // { name: "问答", tool: 15 },
  19939. // { name: "课程设计", tool: 26 },
  19940. // { name: "训练服务器", tool: 18 },
  19941. // { name: "作业提交", tool: 16 },
  19942. // { name: "批量上传", tool: 50 },
  19943. // { name: "AIoT Blockly", tool: 21 },
  19944. // { name: "AI Python", tool: 23 },
  19945. // { name: "AI Blockly", tool: 24 },
  19946. // { name: "目标管理", tool: 25 },
  19947. // { name: "数学画板", tool: 31 },
  19948. // { name: "翻译", tool: 28 },
  19949. // { name: "魔盒识字", tool: 37 },
  19950. // { name: "数学画板", tool: 31 },
  19951. // { name: "24点", tool: 38 },
  19952. // { name: "GeoGebra", tool: 39 },
  19953. // { name: "源码编辑", tool: 32 },
  19954. // { name: "个人评价", tool: 40 },
  19955. // { name: "选择匹配", tool: 41 },
  19956. // { name: "汉字宫", tool: 44 },
  19957. // { name: "排序", tool: 47 },
  19958. // { name: "表格", tool: 48 },
  19959. // { name: "文档", tool: 52 },
  19960. // { name: "学生分组", tool: 49 },
  19961. // { name: "CocoPi", tool: 57 },
  19962. // { name: "模拟驾驶", tool: 58 },
  19963. // { name: "路径搜索", tool: 59 },
  19964. // { name: "深度学习", tool: 60 },
  19965. // { name: "全历史", tool: 61 },
  19966. // { name: "交互视频", tool: 62 },
  19967. // { name: "海龟编程", tool: 63 },
  19968. // { name: "挑人", tool: 65 },
  19969. // { name: "公式编辑", tool: 66 },
  19970. // { name: "分子结构", tool: 67 },
  19971. // { name: "时间轴", tool: 68 },
  19972. // ];
  19973. // var toolName = "";
  19974. // for(var w = 0;w<toolList.length;w++){
  19975. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19976. // toolName = toolList[w].name;
  19977. // }
  19978. // }
  19979. console.log(url);
  19980. this.downLoadAll(url, loading);
  19981. })
  19982. .catch(() => {});
  19983. },
  19984. downLoadAll(url, loading) {
  19985. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19986. const zip = new JSZip();
  19987. const cache = {};
  19988. const promises = [];
  19989. data.forEach((item) => {
  19990. const promise = getFile(item.url).then((data) => {
  19991. if (data.data != 1) {
  19992. // 下载文件, 并存成ArrayBuffer对象
  19993. const file_name =
  19994. item.name +
  19995. "." +
  19996. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19997. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19998. cache[file_name] = data.data;
  19999. }
  20000. });
  20001. promises.push(promise);
  20002. });
  20003. Promise.all(promises).then(() => {
  20004. zip.generateAsync({ type: "blob" }).then((content) => {
  20005. // 生成二进制流
  20006. FileSaver.saveAs(
  20007. content,
  20008. this.courseDetail.title + "-" + "作业提交工具.zip"
  20009. ); // 利用file-saver保存文件 自定义文件名
  20010. setTimeout(() => {
  20011. loading.close();
  20012. }, 2000);
  20013. });
  20014. });
  20015. },
  20016. pickStudent(stu) {
  20017. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20018. return;
  20019. }
  20020. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20021. confirmButtonText: "确定",
  20022. cancelButtonText: "取消",
  20023. type: "warning",
  20024. })
  20025. .then(() => {
  20026. let params = [
  20027. {
  20028. uid: stu.userid,
  20029. cid: this.id,
  20030. stage: this.courseType,
  20031. task: this.taskCount,
  20032. tool: this.toolindex,
  20033. },
  20034. ];
  20035. this.ajax
  20036. .post(this.$store.state.api + "updateCoursePick", params)
  20037. .then((res) => {
  20038. this.$message.success("操作成功");
  20039. this.getPick();
  20040. })
  20041. .catch((err) => {
  20042. this.$message.error("网络不佳");
  20043. console.error(err);
  20044. });
  20045. })
  20046. .catch(() => {});
  20047. },
  20048. selectUser(){
  20049. let params = {
  20050. userid: this.userid,
  20051. };
  20052. this.ajax
  20053. .get(this.$store.state.api + "selectUser", params)
  20054. .then((res) => {
  20055. this.userMes = res.data[0];
  20056. })
  20057. .catch((err) => {
  20058. console.error(err);
  20059. });
  20060. },
  20061. setEngText(i){
  20062. this.newEngIndex = i;
  20063. this.$forceUpdate();
  20064. },
  20065. addCorrect(){
  20066. this.$confirm("你确定提交批改嘛?", "提示", {
  20067. confirmButtonText: "确定",
  20068. showCancelButton: false,
  20069. closeOnClickModal: false,
  20070. type: "warning",
  20071. })
  20072. .then(() => {
  20073. let params = {
  20074. cid: this.id,
  20075. s: parseInt(this.courseType),
  20076. t: this.taskCount,
  20077. tool: this.toolindex,
  20078. wid: this.engWid,
  20079. c: this.userid,
  20080. 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) : "",
  20081. };
  20082. this.ajax
  20083. .get(this.$store.state.api + "addEngC", params)
  20084. .then((res) => {
  20085. this.$message.success("提交成功");
  20086. this.engUpdateDialogVisible = false;
  20087. })
  20088. .catch((err) => {
  20089. console.error(err);
  20090. });
  20091. })
  20092. .catch(() => {});
  20093. },
  20094. selectEngC(id,z){
  20095. let params = {
  20096. workid: id,
  20097. };
  20098. this.ajax
  20099. .get(this.$store.state.api + "selectEngC", params)
  20100. .then((res) => {
  20101. if(res.data[0].length == 0){
  20102. this.newEnglishList.engTitle = z.engTitle;
  20103. this.newEnglishList.engText = z.engText;
  20104. }else{
  20105. var a = res.data[0];
  20106. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20107. if(this.userMes[0].type == 2){
  20108. var snum = 0;
  20109. for(var i = 0;i<a.length;i++){
  20110. if(this.userMes[0].userid == a[i].correct){
  20111. this.newEnglishList = JSON.parse(a[i].cWork);
  20112. snum = 1;
  20113. }
  20114. }
  20115. if(snum == 0){
  20116. this.newEnglishList = { engTitle:"",engText:"" };
  20117. this.newEnglishList.engTitle = z.engTitle;
  20118. this.newEnglishList.engText = z.engText;
  20119. }
  20120. }else if(this.userMes[0].type == 1){
  20121. var num = 0;
  20122. for(var w= 0;w<a.length;w++){
  20123. if(this.userMes[0].userid == a[w].correct){
  20124. num = 1;
  20125. }
  20126. }
  20127. if(num == 0){
  20128. this.isNoUserid = true;
  20129. var c = JSON.parse(JSON.stringify(z));
  20130. this.oldEnglishJson1 = c;
  20131. }else{
  20132. this.isNoUserid = false;
  20133. }
  20134. var b = a.sort((item, index) => {
  20135. console.log(item)
  20136. if (item.correct === this.userMes[0].userid) {
  20137. return -1; // 将a移到前面
  20138. } else if (index.correct === this.userMes[0].userid) {
  20139. return 1; // 将b移到前面
  20140. } else {
  20141. return 0; // 保持默认顺序
  20142. }
  20143. });
  20144. for(var p = 0;p<b.length;p++){
  20145. for(var y = 0;y<ppp.length;y++){
  20146. if(b[p].id == ppp[y].id){
  20147. b[p].cWork = JSON.parse(ppp[y].cWork);
  20148. break
  20149. }
  20150. }
  20151. }
  20152. this.newEnglishList1 = b;
  20153. }
  20154. }
  20155. this.greyType = false;
  20156. setTimeout(() => {
  20157. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20158. if(this.newEnglishList1.length > 0){
  20159. if(this.isNoUserid == true){
  20160. this.engListLength = this.newEnglishList1.length + 1;
  20161. this.newEngIndex = -1;
  20162. }else{
  20163. this.engListLength = this.newEnglishList1.length;
  20164. this.newEngIndex = 0;
  20165. }
  20166. }
  20167. if(this.userMes[0].type == 2){
  20168. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20169. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20170. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20171. }else if(this.newEngIndex == -1){
  20172. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20173. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20174. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20175. }
  20176. }, 500);
  20177. this.engUpdateDialogVisible = true;
  20178. this.$forceUpdate();
  20179. })
  20180. .catch((err) => {
  20181. console.error(err);
  20182. });
  20183. },
  20184. getPick() {
  20185. let params = {
  20186. cid: this.id,
  20187. };
  20188. this.ajax
  20189. .get(this.$store.state.api + "getPick", params)
  20190. .then((res) => {
  20191. let array = [];
  20192. for (var i = 0; i < res.data[0].length; i++) {
  20193. array.push(res.data[0][i].userid);
  20194. }
  20195. this.isPickStudent = array;
  20196. if (array.indexOf(this.userid) !== -1) {
  20197. this.$confirm("你被老师选到啦!", "提示", {
  20198. confirmButtonText: "确定",
  20199. showCancelButton: false,
  20200. closeOnClickModal: false,
  20201. type: "warning",
  20202. })
  20203. .then(() => {
  20204. let pa = [
  20205. {
  20206. uid: this.userid,
  20207. cid: this.id,
  20208. },
  20209. ];
  20210. this.ajax
  20211. .post(this.$store.state.api + "deletePick", pa)
  20212. .then((res) => {
  20213. this.getPick();
  20214. })
  20215. .catch((err) => {
  20216. this.$message.error("网络不佳");
  20217. console.error(err);
  20218. });
  20219. })
  20220. .catch(() => {});
  20221. }
  20222. })
  20223. .catch((err) => {
  20224. this.$message.error("网络不佳");
  20225. console.error(err);
  20226. });
  20227. },
  20228. foldEva() {
  20229. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20230. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20231. } else {
  20232. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20233. setTimeout(() => {
  20234. this.checkEva();
  20235. setTimeout(() => {
  20236. this.checkEva();
  20237. }, 500);
  20238. }, 0);
  20239. }
  20240. this.$forceUpdate();
  20241. },
  20242. panToolHeight(tool) {
  20243. var _tool = document.querySelectorAll('#'+tool)[0]
  20244. var _toolA = _tool ? _tool.offsetHeight : 0
  20245. var _toolC = 0
  20246. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20247. let boolean2 = (_toolA > _toolC) ? true : false
  20248. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20249. this.$forceUpdate();
  20250. },
  20251. async checkLink(url) {
  20252. // console.log(url)
  20253. let _url = url
  20254. try {
  20255. const response = await fetch(url);
  20256. if(!response.ok){
  20257. _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]))
  20258. }
  20259. // console.log(response.ok)
  20260. } catch (error) {
  20261. console.error('Error checking link:', error);
  20262. // console.log(false)
  20263. _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]))
  20264. }
  20265. // console.log(_url)
  20266. return _url
  20267. },
  20268. getScoreList(){
  20269. let params = {
  20270. cid: this.id,
  20271. };
  20272. this.ajax
  20273. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20274. .then((res) => {
  20275. let result = res.data;
  20276. this.scoreList.datalist = result[0];
  20277. this.scoreList.isScoreList = result[1];
  20278. })
  20279. .catch((err) => {
  20280. console.error(err);
  20281. });
  20282. },
  20283. setClassRoomHelperWidth(width){
  20284. this.classRoomHelperWidth = width
  20285. },
  20286. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20287. this.$refs.choseWorksDetailDialogRef.open({
  20288. toolType:tooc,
  20289. tType: this.tType,
  20290. toolIndex: toolIndex
  20291. });
  20292. this.changeSplitScreenBehavior({
  20293. code: 1,
  20294. form: {
  20295. toolType:tooc,
  20296. toolIndex: toolIndex,
  20297. courseType: this.courseType,
  20298. taskCount: this.taskCount,
  20299. type: 0
  20300. }
  20301. });
  20302. },
  20303. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20304. this.$refs.statisticalAnalysisRef.open({
  20305. worksStudent: this.worksStudent[toolIndex],
  20306. tType: this.tType,
  20307. toolIndex: toolIndex
  20308. });
  20309. this.changeSplitScreenBehavior({
  20310. code: 2,
  20311. form: {
  20312. toolType:4,
  20313. courseType: this.courseType,
  20314. taskCount: this.taskCount,
  20315. toolIndex: toolIndex,
  20316. type: 0
  20317. }
  20318. });
  20319. },
  20320. statisticalAnalysisRefresh(toolIndex) {
  20321. this.$refs.statisticalAnalysisRef.refreshData({
  20322. worksStudent: this.worksStudent[toolIndex],
  20323. tType: this.tType,
  20324. toolIndex: toolIndex
  20325. });
  20326. },
  20327. async splitScreenBehavior(type = 0) {
  20328. // return;
  20329. if (this.splitScreenData.loading)
  20330. return this.$message.info("操作过快,请稍等");
  20331. if (type == 0) {
  20332. //关闭分屏
  20333. this.splitScreenData.isOpen = false;
  20334. // this.splitScreenData.userId = "";
  20335. // this.splitScreenData.uid = "";
  20336. this.splitScreenData.behavior = null;
  20337. await this.updateSplitScreenData(1);
  20338. this.$message.success("已关闭分屏模式");
  20339. this.studentFreePreview(false);
  20340. this.OpenJobPreview(false);
  20341. // this.followingMode(false);
  20342. } else if (type == 1) {
  20343. //开启分屏
  20344. this.splitScreenData.isOpen = true;
  20345. this.splitScreenData.userId = this.userid;
  20346. this.splitScreenData.uid = this.splitScreenData.myUid;
  20347. this.splitScreenData.behavior = null;
  20348. let status = await this.updateSplitScreenData(0);
  20349. this.changeSplitScreenBehavior({form:{}})
  20350. if (status == 1) {
  20351. this.$message.success("已开启分屏");
  20352. this.studentFreePreview(true);
  20353. this.OpenJobPreview(true);
  20354. // this.followingMode(true);
  20355. } else {
  20356. this.splitScreenData.isOpen = false;
  20357. this.splitScreenData.userId = "";
  20358. this.splitScreenData.uid = "";
  20359. this.splitScreenData.behavior = null;
  20360. this.$message.success("分屏开启失败");
  20361. }
  20362. }
  20363. },
  20364. enterFullScreen() {
  20365. let element = document.documentElement;
  20366. if (element.requestFullscreen) {
  20367. element.requestFullscreen();
  20368. } else if (element.mozRequestFullScreen) { /* Firefox */
  20369. element.mozRequestFullScreen();
  20370. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  20371. element.webkitRequestFullscreen();
  20372. } else if (element.msRequestFullscreen) { /* IE/Edge */
  20373. element.msRequestFullscreen();
  20374. }
  20375. },
  20376. exitFullScreen() {
  20377. if (document.exitFullscreen) {
  20378. document.exitFullscreen();
  20379. } else if (document.mozCancelFullScreen) { /* Firefox */
  20380. document.mozCancelFullScreen();
  20381. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  20382. document.webkitExitFullscreen();
  20383. } else if (document.msExitFullscreen) { /* IE/Edge */
  20384. document.msExitFullscreen();
  20385. }
  20386. },
  20387. confirmOpen(){
  20388. this.splitScreenData.isOpen = true;
  20389. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  20390. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  20391. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  20392. this.confirmOpenDig = false
  20393. if (!document.fullscreenElement) {
  20394. this.enterFullScreen();
  20395. }
  20396. if (this.timer2) {
  20397. clearInterval(this.timer2);
  20398. this.timer2 = null;
  20399. }
  20400. this.timer2 = setInterval(()=> {
  20401. this.getSplitScreenData();//获取分屏数据
  20402. }, 1000);
  20403. this.$message.success("分屏模式已开启");
  20404. },
  20405. getSplitScreenData() {
  20406. // return;
  20407. // if (this.tType != 1) return;
  20408. let params = {
  20409. cid: this.id
  20410. };
  20411. this.ajax
  20412. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20413. .then(async res => {
  20414. let data = res.data[0][0]["splitScreenData"];
  20415. console.log("获取了分屏数:", data);
  20416. if (data) {
  20417. data = JSON.parse(data);
  20418. if (
  20419. !this.splitScreenData.isOpen &&
  20420. data.isOpen &&
  20421. this.splitScreenData.myUid == data.uid
  20422. ) {
  20423. this.splitScreenData.isOpen = false;
  20424. this.splitScreenData.userId = "";
  20425. this.splitScreenData.uid = "";
  20426. this.splitScreenData.behavior = null;
  20427. await this.updateSplitScreenData(1);
  20428. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20429. this.confirmOpenDig = true
  20430. this.confirmOpenDigData = data
  20431. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20432. this.splitScreenData.isOpen = false;
  20433. this.splitScreenData.userId = "";
  20434. this.splitScreenData.uid = "";
  20435. this.splitScreenData.behavior = null;
  20436. this.$message.error("已结束分屏模式");
  20437. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20438. this.splitScreenData.isOpen = true;
  20439. this.splitScreenData.uid = data.uid;
  20440. this.splitScreenData.userId = data.userId;
  20441. this.splitScreenData.behavior = data.behavior;
  20442. }
  20443. this.doSplitScreenBehavior();
  20444. } else {
  20445. if (this.splitScreenData.isOpen) {
  20446. this.splitScreenData.isOpen = false;
  20447. this.splitScreenData.userId = "";
  20448. this.splitScreenData.uid = "";
  20449. this.splitScreenData.behavior = null;
  20450. this.$message.error("已结束分屏模式");
  20451. if (this.timer2) {
  20452. clearInterval(this.timer2);
  20453. this.timer2 = null;
  20454. }
  20455. this.timer2 = setInterval(()=> {
  20456. this.getSplitScreenData();//获取分屏数据
  20457. }, 5000);
  20458. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  20459. confirmButtonText: '确定', //确认按钮的文字
  20460. showCancelButton: false, //是否显示取消按钮
  20461. showClose: false, //是否显示关闭按钮
  20462. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  20463. type: "warning",
  20464. })
  20465. .then(() => {
  20466. if (document.fullscreenElement) {
  20467. this.exitFullScreen();
  20468. }
  20469. })
  20470. .catch(() => {});
  20471. }
  20472. }
  20473. })
  20474. .catch(e => {
  20475. console.log("获取分屏数出错:", e);
  20476. });
  20477. },
  20478. doSplitScreenBehavior() {
  20479. if (
  20480. this.splitScreenData.isOpen &&
  20481. this.splitScreenData.uid != this.splitScreenData.myUid
  20482. ) {
  20483. let behavior = this.splitScreenData.behavior;
  20484. if (behavior) {
  20485. if (behavior.code === 99) {
  20486. //初始化
  20487. this.fullDialogVisible = false;
  20488. if(this.$refs.choseWorksDetailDialogRef.show){
  20489. this.$refs.choseWorksDetailDialogRef.close();
  20490. }
  20491. if(this.$refs.statisticalAnalysisRef.show){
  20492. this.$refs.statisticalAnalysisRef.close();
  20493. }
  20494. }
  20495. if (behavior.code === 0) {
  20496. //开启内容列表弹窗
  20497. this.checkFileFull1(behavior.form.t, behavior.form.f);
  20498. }else{
  20499. this.fullDialogVisible = false;
  20500. }
  20501. if (behavior.code === 1) {
  20502. //关于选择题的作业详细的操作
  20503. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20504. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20505. this.courseType = behavior.form.courseType;
  20506. this.taskCount = behavior.form.taskCount;
  20507. }
  20508. this.$nextTick(() => {
  20509. if (this.$refs.choseWorksDetailDialogRef.show) {
  20510. //已经打开了
  20511. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  20512. } else {
  20513. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  20514. }
  20515. });
  20516. }else{
  20517. this.$refs.choseWorksDetailDialogRef.close()
  20518. }
  20519. if(behavior.code === 2){
  20520. if(this.$refs.statisticalAnalysisRef.show){
  20521. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20522. }else{
  20523. this.$refs.statisticalAnalysisRef.open({
  20524. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20525. tType: this.tType,
  20526. toolIndex: behavior.form.toolIndex
  20527. });
  20528. }
  20529. }else{
  20530. this.$refs.statisticalAnalysisRef.close();
  20531. }
  20532. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  20533. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  20534. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  20535. if (behavior.form.courseType != this.courseType ||
  20536. behavior.form.taskCount != this.taskCount ||
  20537. behavior.form.toolType != this.toolindex
  20538. ) {
  20539. var a = document.scrollingElement;
  20540. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  20541. if (target) {
  20542. target.scrollIntoView(true);
  20543. setTimeout(()=>{
  20544. let scrollBody = document.querySelector('.body_student').parentElement
  20545. scrollBody.scrollTop = scrollBody.scrollTop - 100
  20546. }, 0);
  20547. // setTimeout(() => {
  20548. // a.scrollTop = 0
  20549. // }, 0);
  20550. }
  20551. }
  20552. if(this.courseType !=behavior.form.courseType){
  20553. this.courseType = behavior.form.courseType;
  20554. }
  20555. if(this.taskCount !=behavior.form.taskCount){
  20556. this.taskCount = behavior.form.taskCount;
  20557. }
  20558. if((behavior.form.toolType || behavior.form.toolType == 0) && (this.toolindex != behavior.form.toolType)){
  20559. this.toolindex = behavior.form.toolType;
  20560. }
  20561. // if(behavior.form.navId){
  20562. // this.navId = behavior.form.navId
  20563. // }
  20564. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  20565. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  20566. console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  20567. this.getCourseDetail()
  20568. }
  20569. this.setContent2(false)
  20570. }
  20571. } else {
  20572. }
  20573. }
  20574. },
  20575. updateSplitScreenData(empty = 0) {
  20576. return new Promise(resolve => {
  20577. if(this.userid!==this.courseDetail.userid){
  20578. if(!this.courseDetail.userid){
  20579. return setTimeout(()=>{
  20580. this.updateSplitScreenData(empty)
  20581. },2000)
  20582. }
  20583. return;
  20584. };
  20585. if (
  20586. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20587. this.splitScreenData.userId == this.userid
  20588. ) {
  20589. this.splitScreenData.loading = true;
  20590. let params = [
  20591. {
  20592. cid: this.id,
  20593. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20594. }
  20595. ];
  20596. this.ajax
  20597. .post(
  20598. this.$store.state.api + "update_courseSplitScreenData",
  20599. params
  20600. )
  20601. .then(res => {
  20602. this.splitScreenData.loading = false;
  20603. if (res.data == 1) {
  20604. resolve(1);
  20605. console.log("修改分屏数据成功");
  20606. }
  20607. })
  20608. .catch(e => {
  20609. this.splitScreenData.loading = false;
  20610. console.log("修改分屏数据失败", e);
  20611. resoleve(0);
  20612. });
  20613. } else if (empty == 2 && this.tType == 1) {
  20614. let params = [
  20615. {
  20616. cid: this.id,
  20617. nData: ""
  20618. }
  20619. ];
  20620. return this.ajax
  20621. .post(
  20622. this.$store.state.api + "update_courseSplitScreenData",
  20623. params
  20624. )
  20625. .then(_ => resolve(1))
  20626. .catch(_ => resolve(0));
  20627. } else {
  20628. return resolve(0);
  20629. }
  20630. });
  20631. },
  20632. changeSplitScreenBehavior(newValue) {
  20633. if (
  20634. this.splitScreenData.isOpen &&
  20635. this.splitScreenData.uid == this.splitScreenData.myUid
  20636. ) {
  20637. let _behavior = null;
  20638. if(!newValue){
  20639. _behavior = {}
  20640. }else{
  20641. _behavior = newValue
  20642. }
  20643. if(_behavior.form){
  20644. _behavior.form.taskCount = this.taskCount;
  20645. _behavior.form.courseType = this.courseType
  20646. }else{
  20647. _behavior.form = {
  20648. taskCount:this.taskCount,
  20649. courseType:this.courseType
  20650. }
  20651. }
  20652. this.splitScreenData.behavior = _behavior;
  20653. this.updateSplitScreenData(0);
  20654. }
  20655. },
  20656. studentFreePreview(flag) {
  20657. this.IsLookOpen = flag;
  20658. this.followingMode(flag)
  20659. this.updateLookOpen();
  20660. },
  20661. OpenJobPreview(flag) {
  20662. this.sIsOpen = flag;
  20663. this.updateSLook();
  20664. },
  20665. followingMode(flag) {
  20666. this.IsFollow = flag;
  20667. this.updateFollow();
  20668. }
  20669. },
  20670. directives: {
  20671. // 使用局部注册指令的方式
  20672. resize: {
  20673. // 指令的名称
  20674. bind(el, binding) {
  20675. // el为绑定的元素,binding为绑定给指令的对象
  20676. let width = "",
  20677. height = "";
  20678. function isReize() {
  20679. const style = document.defaultView.getComputedStyle(el);
  20680. if (width !== style.width || height !== style.height) {
  20681. binding.value(); // 关键
  20682. }
  20683. width = style.width;
  20684. height = style.height;
  20685. }
  20686. el.__vueSetInterval__ = setInterval(isReize, 300);
  20687. },
  20688. unbind(el) {
  20689. clearInterval(el.__vueSetInterval__);
  20690. },
  20691. },
  20692. autoHeight: {
  20693. update(el, binding) {
  20694. const { value } = binding
  20695. if (value && typeof value === 'number') {
  20696. el.style.height = `${value}px`
  20697. } else {
  20698. el.style.height = 'auto'
  20699. }
  20700. },
  20701. componentUpdated(el) {
  20702. el.style.height = `${el.scrollHeight + 5}px`
  20703. },
  20704. },
  20705. },
  20706. beforeDestroy() {
  20707. window.onresize = null;
  20708. clearInterval(this.timer);
  20709. this.timer = null;
  20710. clearInterval(this.timer2);
  20711. this.timer2 = null;
  20712. clearInterval(this.opertimer);
  20713. this.opertimer = null;
  20714. this.updateSplitScreenData(1);
  20715. },
  20716. computed: {
  20717. getHeight(){
  20718. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20719. },
  20720. contentConvent() {
  20721. return function (c) {
  20722. return c
  20723. ? c
  20724. .replaceAll(/\r\n/g, "<br/>")
  20725. .replaceAll(/\n/g, "<br/>")
  20726. .replaceAll(/\s/g, " &nbsp")
  20727. : "";
  20728. };
  20729. },
  20730. MarkdownT() {
  20731. return function (c) {
  20732. let md = new MarkdownIt();
  20733. return c
  20734. ? md.render(c) : "";
  20735. };
  20736. },
  20737. commentRight(){
  20738. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  20739. return "35px";
  20740. }
  20741. return `calc(${this.classRoomHelperWidth} + 5px)`
  20742. // if(this.$refs["classRoomHelperRef"].type==0){
  20743. // return "100px";
  20744. // }else if(this.$refs["classRoomHelperRef"].type==1){
  20745. // return "502px"
  20746. // }else{
  20747. // return "0px"
  20748. // }
  20749. },
  20750. checkUpload() {
  20751. return function () {
  20752. var studentK = [];
  20753. if (this.plworkFile.length > 0) {
  20754. for (var z = 0; z < this.plworkFile.length; z++) {
  20755. studentK.push(this.plworkFile[z].username);
  20756. }
  20757. studentK = studentK.join(",");
  20758. }
  20759. var a = this.uploadStudentJuri.filter((el) => {
  20760. return studentK.indexOf(el.userid) == -1;
  20761. });
  20762. return a;
  20763. };
  20764. },
  20765. getSName() {
  20766. return function (name) {
  20767. var check = name;
  20768. this.uploadStudentJuri.forEach((el) => {
  20769. if (el.userid == check) {
  20770. check = el.name ? el.name : el.username;
  20771. }
  20772. });
  20773. return check;
  20774. };
  20775. },
  20776. getImgList() {
  20777. return function (val) {
  20778. let srcList = []; // 定义一个数组用来接收后面的img地址
  20779. val.replace(
  20780. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  20781. function (match, capture) {
  20782. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  20783. srcList.push(capture);
  20784. }
  20785. );
  20786. return srcList;
  20787. };
  20788. },
  20789. retrnToolHeight(){
  20790. return function (tool) {
  20791. var _tool = document.querySelectorAll('#'+tool)[0]
  20792. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  20793. };
  20794. },
  20795. Correct() {
  20796. return function (c,d) {
  20797. let w = "";
  20798. let a = this.correctWord;
  20799. for(var k = 0;k<a.length;k++){
  20800. //diffWordsWithSpace
  20801. if(a.length > 1){
  20802. if(a[k].added == true){
  20803. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20804. }else if(a[k].removed == true){
  20805. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20806. }else{
  20807. w += '<span>' + a[k].value + '</span>';
  20808. }
  20809. }else{
  20810. w = c
  20811. }
  20812. console.log("👇👇!+++==")
  20813. console.log(w)
  20814. //diffChars方法
  20815. // if(w == ""){
  20816. // if(a.length > 1){
  20817. // if(a[k].added == true){
  20818. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20819. // }else if(a[k].removed == true){
  20820. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20821. // }
  20822. // }else{
  20823. // w = c
  20824. // }
  20825. // }else{
  20826. // if(k == a.length - 1){
  20827. // if(a[k].added == true){
  20828. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20829. // }else if(a[k].removed == true){
  20830. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20831. // }
  20832. // }else{
  20833. // if(a[k].added == true){
  20834. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20835. // }else if(a[k].removed == true){
  20836. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20837. // }
  20838. // }
  20839. // }
  20840. }
  20841. c = w;
  20842. return c;
  20843. };
  20844. },
  20845. },
  20846. mounted() {
  20847. document.body.addEventListener("click", (e) => {
  20848. if (this.isUpdateToolDetail1) {
  20849. this.updateToolDetail(this.toolDetailIndex);
  20850. }
  20851. });
  20852. if (this.screenType == 2) {
  20853. window.parent.postMessage({ allScreen: 4 }, "*");
  20854. } else if (this.screenType == 3) {
  20855. window.parent.postMessage({ allScreen: 5 }, "*");
  20856. } else if (this.screenType == 1) {
  20857. window.parent.postMessage({ allScreen: 6 }, "*");
  20858. }
  20859. this.setOperationTime();
  20860. this.selectEva();
  20861. this.getCourseDetail();
  20862. this.selectCount();
  20863. this.getHomeWork();
  20864. this.selectUser();
  20865. this.getAIJ();
  20866. this.contentDialog = true;
  20867. this.setContent2(true);
  20868. if (this.tType == 4) {
  20869. this.pzDialog = true;
  20870. this.selectPz();
  20871. }
  20872. // 获取评分列表
  20873. this.getScoreList()
  20874. this.updateSplitScreenData(2);
  20875. this.splitScreenData.myUid = uuidv4();
  20876. document.scrollingElement.scrollTop = 0;
  20877. window.addEventListener("resize", () => {
  20878. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20879. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20880. if (this.showType == 2 || this.showType == 3) {
  20881. document.getElementsByClassName("navBox")[0].style.height =
  20882. a - 40 + 0+ "px";
  20883. } else {
  20884. document.getElementsByClassName("navBox")[0].style.height =
  20885. a - 40 + "px";
  20886. }
  20887. });
  20888. let _this = this;
  20889. setTimeout(() => {
  20890. // _this.vedioTime = [];
  20891. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20892. // _this.vedioTime[i] = document.getElementsByClassName(
  20893. // "vjs-duration-display"
  20894. // )[i].textContent;
  20895. // }
  20896. }, 1000);
  20897. },
  20898. };
  20899. </script>
  20900. <style scoped>
  20901. @media screen and (max-width: 1280px) {
  20902. /* .courseIndex > div:first-child(2) {
  20903. width: 15% !important;
  20904. } */
  20905. /* .navText {
  20906. width: 120px !important;
  20907. } */
  20908. .evaCss {
  20909. flex-direction: column !important;
  20910. align-items: center !important;
  20911. }
  20912. .elist_input {
  20913. width: 90% !important;
  20914. }
  20915. .dialog_diy1 >>> .el-dialog {
  20916. width: 100% !important;
  20917. }
  20918. .rightWidthCss {
  20919. width: 100% !important;
  20920. }
  20921. .dialog_diy3 >>> .el-dialog {
  20922. width: 100% !important;
  20923. }
  20924. .addToolCss {
  20925. right: 0 !important;
  20926. width: 100% !important;
  20927. min-width: unset !important;
  20928. }
  20929. }
  20930. .evaCssMax {
  20931. flex-direction: column !important;
  20932. align-items: center !important;
  20933. }
  20934. .dialog_diy >>> .el-dialog {
  20935. margin-top: 10vh !important;
  20936. }
  20937. .body_student {
  20938. width: 77%;
  20939. height: 100%;
  20940. position: absolute;
  20941. left: 22%;
  20942. top: 0;
  20943. }
  20944. .student_head {
  20945. width: 100%;
  20946. margin: 20px auto 0;
  20947. padding-bottom: 20px;
  20948. display: flex;
  20949. flex-direction: column;
  20950. flex-wrap: nowrap;
  20951. align-items: flex-start;
  20952. justify-content: flex-start;
  20953. }
  20954. .pb_left {
  20955. width: 20%;
  20956. margin-right: 10px;
  20957. background: rgb(255, 255, 255);
  20958. position: fixed;
  20959. height: calc(100% - 40px);
  20960. border-radius: 20px;
  20961. padding-bottom: 15px;
  20962. box-sizing: border-box;
  20963. }
  20964. .wheel > img,
  20965. .project > img,
  20966. .star > img,
  20967. .evaluate > img,
  20968. .up_photo > img,
  20969. .chapter_add > img,
  20970. .deleteWord > img,
  20971. .question > img,
  20972. .homework > img {
  20973. width: 100%;
  20974. height: 100%;
  20975. }
  20976. .upCover > img {
  20977. width: 131px;
  20978. height: 69px;
  20979. object-fit: cover;
  20980. }
  20981. .upCover {
  20982. width: calc(100% / 3.5);
  20983. position: relative;
  20984. margin: 0 15px 10px 0;
  20985. display: flex;
  20986. flex-direction: column;
  20987. flex-wrap: nowrap;
  20988. justify-content: center;
  20989. align-content: center;
  20990. align-items: center;
  20991. height: fit-content;
  20992. }
  20993. .upCover2 {
  20994. width: 100%;
  20995. position: relative;
  20996. margin: 0 15px 10px 0;
  20997. display: flex;
  20998. flex-direction: column;
  20999. flex-wrap: nowrap;
  21000. justify-content: center;
  21001. align-content: center;
  21002. align-items: center;
  21003. }
  21004. .upCover2 > img {
  21005. width: 100%;
  21006. height: 90px;
  21007. object-fit: contain;
  21008. }
  21009. .chapter_add {
  21010. width: 120px;
  21011. position: relative;
  21012. text-align: center;
  21013. }
  21014. .isAddThings {
  21015. margin-top: 20px;
  21016. position: relative;
  21017. text-align: center;
  21018. background: #f7f8fa;
  21019. height: 90px;
  21020. width: 90px;
  21021. display: flex;
  21022. flex-direction: column;
  21023. justify-content: center;
  21024. }
  21025. .deleteWord {
  21026. width: 22px;
  21027. height: 22px;
  21028. position: absolute;
  21029. right: -5px;
  21030. top: -5px;
  21031. cursor: pointer;
  21032. }
  21033. .box_course {
  21034. /* width: 60%; */
  21035. width: calc(100% - 300px);
  21036. }
  21037. .wheel {
  21038. width: 100%;
  21039. /* height: 100%; */
  21040. height: 650px;
  21041. }
  21042. .right_box {
  21043. display: flex;
  21044. flex-direction: column;
  21045. margin-left: 30px;
  21046. justify-content: space-around;
  21047. }
  21048. .right_box_title {
  21049. font-size: 23px;
  21050. }
  21051. .people {
  21052. display: flex;
  21053. }
  21054. .student_body {
  21055. width: 100%;
  21056. margin: 0 auto;
  21057. margin-top: 10px;
  21058. padding: 0 0 20px;
  21059. }
  21060. .study_top {
  21061. margin-top: 100px;
  21062. width: 100%;
  21063. height: auto;
  21064. padding-bottom: 20px;
  21065. margin-left: 2px;
  21066. min-height: 90%;
  21067. }
  21068. .study_top .checkbox {
  21069. display: flex;
  21070. align-items: center;
  21071. padding: 15px 0 15px 30px;
  21072. flex: 0 0 auto;
  21073. font-weight: bold;
  21074. border-bottom: 1px solid #eee;
  21075. }
  21076. .study_top .check {
  21077. padding-bottom: 5px;
  21078. text-align: center;
  21079. cursor: pointer;
  21080. height: 30px;
  21081. box-sizing: border-box;
  21082. display: flex;
  21083. }
  21084. .study_top .checked {
  21085. border-bottom: 4px solid #3fc6a0;
  21086. padding-bottom: 5px;
  21087. color: #3fc6a0;
  21088. display: flex;
  21089. height: 35px;
  21090. }
  21091. .study_top .checked > div,
  21092. .study_top .check > div {
  21093. margin-right: 5px;
  21094. }
  21095. .videoTop {
  21096. display: flex;
  21097. flex-direction: row;
  21098. justify-content: space-between;
  21099. background: #fff;
  21100. align-items: center;
  21101. width: 95%;
  21102. padding: 20px;
  21103. }
  21104. .filebox {
  21105. display: flex;
  21106. flex-wrap: wrap;
  21107. flex-direction: column;
  21108. padding: 0 0 5px;
  21109. position: relative;
  21110. }
  21111. .filebox:before {
  21112. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21113. position: absolute;
  21114. top: 20px;
  21115. left: 13px;
  21116. border-left: 2px dotted #cad1dc;
  21117. height: calc(100% - 15px);
  21118. }
  21119. .toolHeng2 > div:last-child::before {
  21120. height: calc(100% - 43px);
  21121. }
  21122. .filebox .tooldetail {
  21123. width: calc(100%);
  21124. margin: 0px 12px;
  21125. padding: 12px;
  21126. line-height: 30px;
  21127. word-break: break-word;
  21128. background: #ffffff;
  21129. border-radius: 8px 8px 8px 8px;
  21130. opacity: 1;
  21131. border: 1px solid #cad1dc;
  21132. overflow:hidden;
  21133. box-sizing:border-box;
  21134. }
  21135. .file {
  21136. display: flex;
  21137. flex-direction: column;
  21138. align-items: center;
  21139. justify-content: center;
  21140. cursor: pointer;
  21141. width: 200px;
  21142. }
  21143. .file div {
  21144. margin-top: 10px;
  21145. width: 150px;
  21146. text-align: center;
  21147. overflow: hidden;
  21148. white-space: nowrap;
  21149. text-overflow: ellipsis;
  21150. }
  21151. .media {
  21152. display: flex;
  21153. flex-direction: column;
  21154. align-items: center;
  21155. justify-content: center;
  21156. margin: 0 20px 20px 0;
  21157. cursor: pointer;
  21158. margin: 12px 0 5px 15px;
  21159. overflow: hidden;
  21160. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21161. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21162. box-sizing: border-box;
  21163. }
  21164. .media img {
  21165. height: 90px;
  21166. width: 160px;
  21167. object-fit: cover;
  21168. }
  21169. .media .title {
  21170. padding: 5px;
  21171. text-align: left;
  21172. width: 100%;
  21173. box-sizing: border-box;
  21174. }
  21175. .media .btn {
  21176. width: 100%;
  21177. height: 35px;
  21178. line-height: 35px;
  21179. color: #fff;
  21180. background: #606060;
  21181. text-align: center;
  21182. overflow: hidden;
  21183. white-space: nowrap;
  21184. text-overflow: ellipsis;
  21185. }
  21186. .detail_content_top {
  21187. width: 100%;
  21188. padding: 25px 0 25px 0;
  21189. }
  21190. .detail_title {
  21191. text-align: center;
  21192. font-size: 24px;
  21193. }
  21194. .detail_time {
  21195. font-size: 13px;
  21196. padding: 15px 0 0 40px;
  21197. }
  21198. .detail_content {
  21199. line-height: 2pc;
  21200. width: 90%;
  21201. margin: 0 auto;
  21202. padding-top: 30px;
  21203. text-indent: 30px;
  21204. overflow: auto;
  21205. height: 200px;
  21206. }
  21207. .score_box >>> .el-rate {
  21208. margin-left: 10px;
  21209. }
  21210. .dialog_change >>> .el-dialog {
  21211. border-radius: 5px;
  21212. }
  21213. .dialog_change >>> .el-dialog__header {
  21214. background: #f2f2f2;
  21215. text-align: center;
  21216. }
  21217. .dialog_change >>> .el-dialog__title {
  21218. line-height: 5px;
  21219. }
  21220. .dialog_change >>> .el-dialog__body {
  21221. background: #fff;
  21222. padding: 10px 20px;
  21223. }
  21224. .score_box {
  21225. display: flex;
  21226. align-items: center;
  21227. margin-bottom: 18px;
  21228. margin-top: 20px;
  21229. }
  21230. .up_photo {
  21231. width: 120px;
  21232. cursor: pointer;
  21233. margin-top: 10px;
  21234. }
  21235. .up_photo2 {
  21236. width: 180px;
  21237. box-sizing: border-box;
  21238. min-width: 180px;
  21239. height: 180px;
  21240. max-height: 180px;
  21241. min-height: 180px;
  21242. cursor: pointer;
  21243. display: flex;
  21244. flex-direction: column;
  21245. align-items: center;
  21246. justify-content: center;
  21247. background: rgb(242, 246, 255);
  21248. /* padding: 25px; */
  21249. margin-bottom: 10px;
  21250. }
  21251. .up_photo2 img {
  21252. width: 50%;
  21253. height: auto;
  21254. }
  21255. .up_photo2 span {
  21256. color: #898989;
  21257. }
  21258. .plworkBox {
  21259. display: flex;
  21260. align-items: center;
  21261. margin-top: 10px;
  21262. flex-wrap: wrap;
  21263. }
  21264. .upload_send {
  21265. margin: 30px auto 30px;
  21266. width: 60%;
  21267. background: #3681fc;
  21268. text-align: center;
  21269. height: 35px;
  21270. line-height: 35px;
  21271. color: #fff;
  21272. border-radius: 5px;
  21273. cursor: pointer;
  21274. }
  21275. .marginT {
  21276. margin-top: 20px;
  21277. }
  21278. .cd_content_steps {
  21279. display: flex;
  21280. width: 90%;
  21281. justify-content: space-around;
  21282. border-top: 1px solid #eeeeee;
  21283. }
  21284. .cd_steps_box {
  21285. display: flex;
  21286. justify-content: center;
  21287. align-items: center;
  21288. flex-direction: column;
  21289. cursor: pointer;
  21290. }
  21291. .first {
  21292. display: flex;
  21293. align-items: center;
  21294. margin: 15px 0 20px 0;
  21295. font-size: 20px;
  21296. }
  21297. .first > div:nth-child(2) {
  21298. font-size: 16px !important;
  21299. padding-left: 10px;
  21300. line-height: 26px;
  21301. box-sizing: border-box;
  21302. }
  21303. .blue_box_one {
  21304. text-align: center;
  21305. color: #fff;
  21306. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  21307. border-radius: 7px;
  21308. margin: 10px;
  21309. cursor: pointer;
  21310. width: 95%;
  21311. height: 45px;
  21312. display: flex;
  21313. flex-direction: row;
  21314. justify-content: flex-start;
  21315. align-items: center;
  21316. }
  21317. .blue_box_one > div:nth-child(1) {
  21318. line-height: 30px;
  21319. margin: 0 5px 0 10px;
  21320. width: 30%;
  21321. min-width: 70px;
  21322. border-radius: 4px;
  21323. }
  21324. .blue_box_one > div:nth-child(2) {
  21325. white-space: nowrap;
  21326. text-overflow: ellipsis;
  21327. overflow: hidden;
  21328. word-break: break-all;
  21329. width: 70%;
  21330. text-align: left;
  21331. margin-right: 10px;
  21332. max-width: calc(100% - 85px);
  21333. }
  21334. .blue_box_one > div:nth-child(2):hover {
  21335. overflow: hidden;
  21336. text-overflow: ellipsis;
  21337. white-space: nowrap;
  21338. cursor: pointer;
  21339. }
  21340. .upFile {
  21341. margin: 0 auto;
  21342. width: 120px;
  21343. background: #3681fc;
  21344. color: #fff;
  21345. height: 30px;
  21346. text-align: center;
  21347. line-height: 30px;
  21348. border-radius: 5px;
  21349. font-size: 14px;
  21350. cursor: pointer;
  21351. }
  21352. .courseTitle {
  21353. width: 85%;
  21354. margin: 10px auto 26px auto;
  21355. display: flex;
  21356. flex-direction: row;
  21357. align-items: center;
  21358. justify-content: space-between;
  21359. text-align: center;
  21360. }
  21361. .courseTitle .ctitle {
  21362. font-size: 20px;
  21363. font-weight: bold;
  21364. color: #0e1e33;
  21365. white-space: nowrap;
  21366. overflow: hidden;
  21367. text-overflow: ellipsis;
  21368. }
  21369. .inviteBox {
  21370. font-size: 14px;
  21371. /* margin-top: 5px; */
  21372. color: #00000099;
  21373. text-align: center;
  21374. }
  21375. .courseTitle >>> .el-tooltip {
  21376. width: 100%;
  21377. white-space: nowrap;
  21378. overflow: hidden;
  21379. text-overflow: ellipsis;
  21380. word-break: break-word;
  21381. }
  21382. .ml {
  21383. margin-left: 20px;
  21384. color: #5b7dba;
  21385. border-left: 3px solid #5b7dba;
  21386. padding-left: 5px;
  21387. font-weight: bold;
  21388. }
  21389. .return {
  21390. width: 2rem;
  21391. height: 2rem;
  21392. cursor: pointer;
  21393. }
  21394. .return > img {
  21395. width: 100%;
  21396. height: 100%;
  21397. }
  21398. .returnBtn {
  21399. width: 86px;
  21400. height: 36px;
  21401. background: #3681fc;
  21402. border-radius: 4px;
  21403. color: #fff;
  21404. text-align: center;
  21405. line-height: 36px;
  21406. margin-right: 20px;
  21407. cursor: pointer;
  21408. font-size: 14px;
  21409. font-weight: 400;
  21410. display: flex;
  21411. flex-direction: row;
  21412. flex-wrap: nowrap;
  21413. align-items: center;
  21414. justify-content: center;
  21415. }
  21416. .reBtnIcon,
  21417. .commentIcon,
  21418. .vedioIcon,
  21419. .vedioIcon1 {
  21420. /* width: 36px; */
  21421. height: 36px;
  21422. border-radius: 4px;
  21423. position: relative;
  21424. /* background: #e0eafb; */
  21425. background: #0061ff;
  21426. cursor: pointer;
  21427. margin-right: 12px;
  21428. display: flex;
  21429. align-items: center;
  21430. padding: 0 10px;
  21431. box-sizing: border-box;
  21432. font-size: 14px;
  21433. color: #fff;
  21434. }
  21435. .reBtnIcon::before,
  21436. .commentIcon::before,
  21437. .vedioIcon::before,
  21438. .vedioIcon1::before {
  21439. content: "";
  21440. display: block;
  21441. background-size: 100% 100%;
  21442. background-repeat: no-repeat;
  21443. width: 20px;
  21444. height: 20px;
  21445. margin-right: 5px;
  21446. /* position: absolute; */
  21447. /* top: 8px;
  21448. left: 8px; */
  21449. }
  21450. .vedioIcon1 {
  21451. background: #f63564;
  21452. }
  21453. .reBtnIcon::before {
  21454. background-image: url("../../assets/icon/newIcons/refresh.png");
  21455. }
  21456. .commentIcon::before {
  21457. background-image: url("../../assets/icon/newIcons/comment.png");
  21458. }
  21459. .vedioIcon::before {
  21460. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21461. }
  21462. .vedioIcon1::before {
  21463. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  21464. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21465. }
  21466. .tool {
  21467. display: flex;
  21468. flex-direction: column;
  21469. flex-wrap: nowrap;
  21470. width: 13%;
  21471. margin: 0 30px;
  21472. align-items: center;
  21473. position: relative;
  21474. padding: 10px 25px;
  21475. cursor: pointer;
  21476. }
  21477. .whiteBIcon {
  21478. width: 150px;
  21479. }
  21480. .whiteBIcon > img {
  21481. width: 100%;
  21482. height: 100%;
  21483. }
  21484. .mask {
  21485. background-color: rgba(0, 0, 0, 0);
  21486. position: fixed;
  21487. top: 0;
  21488. left: 0;
  21489. width: 100%;
  21490. height: 100%;
  21491. z-index: 20000;
  21492. display: flex;
  21493. align-items: center;
  21494. justify-content: center;
  21495. }
  21496. .progressBox {
  21497. width: 500px;
  21498. height: 180px;
  21499. background: #fff;
  21500. border-radius: 10px;
  21501. box-shadow: 0 0 6px 1px #bfbfbf;
  21502. display: flex;
  21503. align-items: center;
  21504. justify-content: center;
  21505. flex-direction: column;
  21506. position: relative;
  21507. color: #6c6c6c;
  21508. }
  21509. .progressBox >>> .el-progress-bar__outer {
  21510. background-color: #d1dfff !important;
  21511. }
  21512. .progressBox .lbox {
  21513. height: 50px;
  21514. font-size: 19px;
  21515. display: flex;
  21516. align-items: center;
  21517. color: #747474;
  21518. }
  21519. .progressBox .lbox img {
  21520. width: 40px;
  21521. margin-right: 20px;
  21522. }
  21523. .closeCss {
  21524. position: absolute;
  21525. top: 8px;
  21526. right: 8px;
  21527. cursor: pointer;
  21528. width: 20px;
  21529. height: 20px;
  21530. }
  21531. .closeCss > img {
  21532. width: 100%;
  21533. height: 100%;
  21534. }
  21535. .uploadVedio {
  21536. display: flex;
  21537. flex-direction: column;
  21538. flex-wrap: nowrap;
  21539. justify-content: center;
  21540. align-items: center;
  21541. margin: 0 15px 10px 0;
  21542. }
  21543. .uploadVedio > img {
  21544. width: 30px;
  21545. height: 30px;
  21546. }
  21547. .uploadVedio > span {
  21548. white-space: nowrap;
  21549. overflow: hidden;
  21550. text-overflow: ellipsis;
  21551. width: 75px;
  21552. margin-top: 7px;
  21553. }
  21554. .picName {
  21555. white-space: nowrap;
  21556. overflow: hidden;
  21557. text-overflow: ellipsis;
  21558. width: 75px;
  21559. margin-top: 7px;
  21560. }
  21561. .new_top {
  21562. display: flex;
  21563. background: #fff;
  21564. flex-direction: row;
  21565. justify-content: flex-start;
  21566. align-items: center;
  21567. height: 60px;
  21568. position: fixed;
  21569. top: 20px;
  21570. left: 22%;
  21571. width: 77%;
  21572. z-index: 999;
  21573. border-radius: 12px 12px 0 0;
  21574. border-bottom: 1px solid #cad1dc;
  21575. padding: 10px 0;
  21576. }
  21577. .new_topFixed {
  21578. width: 100%;
  21579. height: 40px;
  21580. position: fixed;
  21581. top: 0px;
  21582. display: block;
  21583. background: #f2f2f2;
  21584. z-index: 998;
  21585. }
  21586. .before {
  21587. position: absolute;
  21588. background: #c3dad4;
  21589. width: 6px;
  21590. height: 100%;
  21591. }
  21592. .courseIndex {
  21593. display: flex;
  21594. flex-direction: row;
  21595. align-items: center;
  21596. width: calc(100% - 745px);
  21597. }
  21598. .courseIndex > div:nth-child(1) {
  21599. margin: 0 0 0 10px;
  21600. font-size: 20px;
  21601. min-width: 100px;
  21602. font-weight: bold;
  21603. border-left: 4px solid #3363b9;
  21604. height: 32px;
  21605. text-align: center;
  21606. line-height: 35px;
  21607. }
  21608. .courseIndex > div:nth-child(2) {
  21609. font-size: 20px;
  21610. /* width: 300px; */
  21611. max-width: calc(100% - 105px);
  21612. white-space: nowrap;
  21613. overflow: hidden;
  21614. text-overflow: ellipsis;
  21615. }
  21616. .courseIndex > div:nth-child(3) {
  21617. border-bottom: 1px solid #d7d7d7;
  21618. padding-bottom: 5px;
  21619. background: #3681fc;
  21620. width: 55px;
  21621. min-width: 55px;
  21622. border-radius: 5px;
  21623. color: #fff;
  21624. text-align: center;
  21625. height: 20px;
  21626. line-height: 26px;
  21627. font-size: 14px;
  21628. margin: 0 0 0 10px;
  21629. }
  21630. .course_text {
  21631. padding: 20px 0 0 15px;
  21632. text-indent: 30px;
  21633. width: 80%;
  21634. min-height: 20px;
  21635. }
  21636. .vedioList {
  21637. background: #f2f2f2;
  21638. border: 1px solid #ececec;
  21639. /* width: 38.8%; */
  21640. /* width: 300px; */
  21641. width: 100%;
  21642. height: 445px;
  21643. border-radius: 10px;
  21644. overflow: hidden;
  21645. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  21646. }
  21647. .vedioNav {
  21648. margin: 10px 0 0 15px;
  21649. border-bottom: 1px solid #d7d7d7;
  21650. padding-bottom: 5px;
  21651. background: #3681fc;
  21652. width: 55px;
  21653. min-width: 55px;
  21654. border-radius: 5px;
  21655. color: #fff;
  21656. text-align: center;
  21657. height: 20px;
  21658. line-height: 26px;
  21659. font-size: 14px;
  21660. }
  21661. .queTop {
  21662. display: flex;
  21663. padding: 20px 0 20px 30px;
  21664. width: 100%;
  21665. flex-direction: row;
  21666. justify-content: flex-start;
  21667. align-items: center;
  21668. box-sizing: border-box;
  21669. }
  21670. .queTopTitle {
  21671. display: flex;
  21672. flex-direction: row;
  21673. flex-wrap: nowrap;
  21674. align-items: center;
  21675. font-weight: bold;
  21676. font-size: 20px;
  21677. color: rgb(14, 30, 51);
  21678. }
  21679. .queTopTitle::before {
  21680. content: "";
  21681. width: 2px;
  21682. height: 22px;
  21683. background: #3681fc;
  21684. border-radius: 3px;
  21685. display: block;
  21686. margin: 2px 6px 0 0;
  21687. }
  21688. .queTopRight {
  21689. display: flex;
  21690. flex-direction: row;
  21691. flex-wrap: nowrap;
  21692. align-items: center;
  21693. }
  21694. .queTopClose {
  21695. margin-right: 20px;
  21696. cursor: pointer;
  21697. position: relative;
  21698. display: flex;
  21699. }
  21700. .closeImg,
  21701. .openImg {
  21702. width: 25px;
  21703. height: 25px;
  21704. position: absolute;
  21705. left: -20px;
  21706. top: -1px;
  21707. }
  21708. .closeImg > img,
  21709. .openImg > img {
  21710. width: 100%;
  21711. height: 100%;
  21712. }
  21713. .question {
  21714. width: 40px;
  21715. margin-right: 10px;
  21716. margin-top: 7px;
  21717. }
  21718. .queTitle {
  21719. margin-left: 5px;
  21720. font-size: 25px;
  21721. display: flex;
  21722. align-items: center;
  21723. }
  21724. .addEditor {
  21725. width: 100px;
  21726. height: 30px;
  21727. background: #42cda6;
  21728. color: #fff;
  21729. border-radius: 5px;
  21730. text-align: center;
  21731. line-height: 30px;
  21732. box-shadow: 1px 3px 6px 1px #bfbfbf;
  21733. cursor: pointer;
  21734. }
  21735. /* .vedioName {
  21736. cursor: pointer;
  21737. margin: 0px 0px 10px 5px;
  21738. white-space: nowrap;
  21739. overflow: hidden;
  21740. text-overflow: ellipsis;
  21741. width: 100%;
  21742. } */
  21743. .vedioTime {
  21744. width: 35px;
  21745. position: absolute;
  21746. color: #fff;
  21747. bottom: 0px;
  21748. right: 0px;
  21749. text-align: center;
  21750. background: #46411f;
  21751. height: 20px;
  21752. font-size: 14px;
  21753. line-height: 20px;
  21754. }
  21755. .homework {
  21756. width: 200px;
  21757. display: flex;
  21758. flex-direction: column;
  21759. flex-wrap: nowrap;
  21760. align-items: center;
  21761. cursor: pointer;
  21762. }
  21763. .homebox {
  21764. display: flex;
  21765. flex-wrap: wrap;
  21766. flex-direction: row;
  21767. justify-content: flex-start;
  21768. align-items: center;
  21769. padding: 15px 0;
  21770. }
  21771. .isChooseActive {
  21772. color: #3681fc !important;
  21773. font-weight: bold !important;
  21774. }
  21775. .chooseWho {
  21776. display: flex;
  21777. width: 100%;
  21778. flex-direction: row;
  21779. flex-wrap: nowrap;
  21780. justify-content: flex-start;
  21781. padding-bottom: 10px;
  21782. }
  21783. .chooseWho > div {
  21784. cursor: pointer;
  21785. padding-bottom: 10px;
  21786. margin: 0 30px 0 0;
  21787. font-weight: 400;
  21788. color: #0e1e33;
  21789. }
  21790. .addPoint > div > img {
  21791. cursor: pointer;
  21792. width: 85px;
  21793. border-radius: 15px;
  21794. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  21795. }
  21796. .addPoint > div {
  21797. display: flex;
  21798. flex-direction: column;
  21799. flex-wrap: nowrap;
  21800. align-items: center;
  21801. }
  21802. .isBorder > div {
  21803. margin: 0 0 10px 0;
  21804. align-items: flex-start !important;
  21805. }
  21806. .noiframeBox {
  21807. display: flex;
  21808. flex-wrap: wrap;
  21809. }
  21810. .iframeBox iframe {
  21811. width: 100%;
  21812. height: 800px;
  21813. border: none;
  21814. margin-bottom: 20px;
  21815. border: 1px solid #ccc;
  21816. }
  21817. .upload_toolBtn {
  21818. background: #3681fc;
  21819. color: #fff;
  21820. width: 110px;
  21821. text-align: center;
  21822. height: 35px;
  21823. line-height: 35px;
  21824. font-size: 14px;
  21825. border-radius: 5px;
  21826. cursor: pointer;
  21827. position: absolute;
  21828. right: 10px;
  21829. bottom: 0;
  21830. }
  21831. .binfo_input,
  21832. .pj {
  21833. font: inherit;
  21834. color: currentColor;
  21835. width: 100%;
  21836. margin: 0;
  21837. padding: 15px 14px;
  21838. display: block;
  21839. min-width: 0;
  21840. outline: none;
  21841. box-sizing: content-box;
  21842. background: none;
  21843. -webkit-tap-highlight-color: transparent;
  21844. border: 1px solid rgba(0, 0, 0, 0.23);
  21845. border-radius: 4px;
  21846. box-sizing: border-box;
  21847. resize: none;
  21848. }
  21849. .binfo_input:focus-visible {
  21850. border: 1px solid rgba(61, 103, 188);
  21851. }
  21852. .dialog_diy >>> .el-dialog__header,
  21853. .dialog_diy1 >>> .el-dialog__header {
  21854. background: #454545 !important;
  21855. padding: 15px 20px;
  21856. }
  21857. .dialog_diy >>> .el-dialog__title,
  21858. .dialog_diy1 >>> .el-dialog__title {
  21859. color: #fff;
  21860. }
  21861. .dialog_diy >>> .el-dialog__headerbtn,
  21862. .dialog_diy1 >>> .el-dialog__headerbtn {
  21863. top: 19px;
  21864. }
  21865. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21866. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21867. color: #fff;
  21868. }
  21869. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21870. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21871. color: #fff;
  21872. }
  21873. .dialog_diy1 >>> .el-dialog__body {
  21874. padding: 0;
  21875. }
  21876. .dialog_diy >>> .el-dialog__body,
  21877. .dialog_diy >>> .el-dialog__footer,
  21878. .dialog_diy1 >>> .el-dialog__footer {
  21879. background: #fafafa;
  21880. }
  21881. .a_addBox {
  21882. padding: 0 0 0 15px;
  21883. }
  21884. .a_add_box {
  21885. padding: 10px;
  21886. background: #fff;
  21887. margin-bottom: 10px;
  21888. border-radius: 5px;
  21889. box-shadow: 0 0 5px 0 #d5d5d5;
  21890. }
  21891. .a_add_head {
  21892. display: flex;
  21893. align-items: flex-start;
  21894. /* justify-content: space-between; */
  21895. flex-direction: column;
  21896. /* flex-direction: row; */
  21897. margin: 10px 0 20px 0;
  21898. font-size: 18px;
  21899. width: 100%;
  21900. }
  21901. .askIndex {
  21902. background: #3681fc;
  21903. border-radius: 50%;
  21904. color: #fff;
  21905. width: 25px;
  21906. height: 25px;
  21907. min-width: 25px;
  21908. min-height: 25px;
  21909. text-align: center;
  21910. line-height: 25px;
  21911. margin-right: 5px;
  21912. }
  21913. .a_add_head .a_add_head_input {
  21914. width: 300px;
  21915. }
  21916. .a_add_head .a_add_head_div {
  21917. display: flex;
  21918. align-items: center;
  21919. justify-content: space-between;
  21920. }
  21921. .a_add_body {
  21922. display: flex;
  21923. align-items: center;
  21924. }
  21925. .a_add_input {
  21926. display: flex;
  21927. align-items: center;
  21928. flex-wrap: wrap;
  21929. width: 100%;
  21930. }
  21931. .a_add_input >>> .el-radio-group,
  21932. .a_add_input >>> .el-checkbox-group {
  21933. width: 100%;
  21934. }
  21935. .a_add_input >>> .el-radio,
  21936. .a_add_input >>> .el-checkbox {
  21937. display: flex;
  21938. flex-direction: row;
  21939. flex-wrap: nowrap;
  21940. align-items: center;
  21941. padding: 15px 0;
  21942. }
  21943. .a_add_input >>> .el-radio:not(:last-child),
  21944. .a_add_input >>> .el-checkbox:not(:last-child) {
  21945. width: 100%;
  21946. border-bottom: 1px solid #efefef;
  21947. }
  21948. .redioStyle >>> .el-radio__label {
  21949. font-size: 18px;
  21950. }
  21951. .redioStyle >>> .el-radio__label > span,
  21952. .redioStyle >>> .el-checkbox__label > span {
  21953. word-break: break-all;
  21954. white-space: normal;
  21955. }
  21956. .redioStyle >>> .el-checkbox__label {
  21957. font-size: 18px;
  21958. }
  21959. .toolHeng2 {
  21960. width: 100%;
  21961. padding-left: 15px;
  21962. box-sizing: border-box;
  21963. }
  21964. .workNav {
  21965. font-size: 20px;
  21966. font-weight: bold;
  21967. color: #0e1e33;
  21968. display: flex;
  21969. flex-direction: row;
  21970. flex-wrap: nowrap;
  21971. align-items: center;
  21972. padding: 15px 0 15px 0;
  21973. }
  21974. .workNav::before {
  21975. content: "";
  21976. width: 2px;
  21977. height: 22px;
  21978. background: #3681fc;
  21979. border-radius: 3px;
  21980. display: block;
  21981. margin: 2px 6px 0 0;
  21982. }
  21983. .toolHeng {
  21984. display: flex;
  21985. flex-direction: row;
  21986. flex-wrap: wrap;
  21987. justify-content: flex-start;
  21988. align-items: center;
  21989. width: 100%;
  21990. }
  21991. .toolHeng > div {
  21992. padding-left: 20px;
  21993. }
  21994. .isWidth {
  21995. width: 20%;
  21996. }
  21997. .textTitle {
  21998. display: flex;
  21999. flex-direction: row;
  22000. flex-wrap: nowrap;
  22001. align-items: center;
  22002. width: 95%;
  22003. }
  22004. .textTitle >>> .el-form-item__label {
  22005. font-size: 22px;
  22006. color: #918f8f;
  22007. width: 100px;
  22008. }
  22009. .textTitle >>> .el-form-item__content {
  22010. width: calc(100% - 100px);
  22011. }
  22012. .textCss >>> .el-dialog {
  22013. width: 800px !important;
  22014. height: 400px;
  22015. background: #fafafa;
  22016. }
  22017. .textCss >>> .el-dialog__body {
  22018. margin: 55px 8% 0 8%;
  22019. padding: 0 !important;
  22020. }
  22021. .textCss >>> .el-dialog__footer {
  22022. padding-top: 38px;
  22023. }
  22024. .toolsCss >>> .el-dialog__body {
  22025. padding: 20px;
  22026. }
  22027. .lineCss >>> .el-dialog__body {
  22028. display: flex;
  22029. flex-direction: row;
  22030. align-items: center;
  22031. justify-content: center;
  22032. }
  22033. .newNav {
  22034. display: flex;
  22035. flex-direction: row;
  22036. align-items: baseline;
  22037. justify-content: flex-start;
  22038. }
  22039. .navListItem {
  22040. width: calc(100% - 20px);
  22041. height: 50px;
  22042. margin: 0px auto 10px;
  22043. display: flex;
  22044. flex-direction: row;
  22045. flex-wrap: nowrap;
  22046. align-items: center;
  22047. justify-content: space-between;
  22048. background: #f0f4fa;
  22049. border-radius: 6px 6px 6px 6px;
  22050. }
  22051. .navText {
  22052. cursor: pointer;
  22053. white-space: nowrap;
  22054. overflow: hidden;
  22055. text-overflow: ellipsis;
  22056. width: 220px;
  22057. padding: 0 10px;
  22058. font-weight: 400;
  22059. color: #0e1e33;
  22060. }
  22061. .downIcon {
  22062. width: 20px;
  22063. min-width: 20px;
  22064. height: 20px;
  22065. margin-right: 15px;
  22066. cursor: pointer;
  22067. }
  22068. .downIcon > img {
  22069. width: 100%;
  22070. height: 100%;
  22071. }
  22072. .noVedio {
  22073. display: flex;
  22074. flex-direction: row;
  22075. justify-content: center;
  22076. align-content: center;
  22077. }
  22078. .noNavText {
  22079. cursor: pointer;
  22080. margin: 0px 0px 10px 5px;
  22081. width: 112px;
  22082. }
  22083. .listNoVedio {
  22084. margin: 0 0 0 30px;
  22085. width: 97%;
  22086. }
  22087. .video-player >>> .video-js {
  22088. height: 100%;
  22089. }
  22090. .hangVedioList {
  22091. width: 90% !important;
  22092. height: 150px !important;
  22093. margin: 20px 0 0 30px;
  22094. }
  22095. .hangVedio {
  22096. width: 100%;
  22097. height: 170px !important;
  22098. align-items: flex-start !important;
  22099. }
  22100. .hangHand {
  22101. height: 150px !important;
  22102. }
  22103. .twoChild {
  22104. width: 95%;
  22105. margin: 10px;
  22106. border-radius: 5px;
  22107. background: #f2f2f2;
  22108. display: flex;
  22109. flex-direction: column;
  22110. flex-wrap: nowrap;
  22111. justify-content: flex-start;
  22112. align-items: flex-start;
  22113. transition: all 0.5s;
  22114. overflow: hidden;
  22115. height: 0;
  22116. background: #e7f3ff;
  22117. }
  22118. .twoChild > div:nth-child(1) {
  22119. margin-top: 5px;
  22120. }
  22121. .navChild {
  22122. width: 100%;
  22123. cursor: pointer;
  22124. margin-bottom: 10px;
  22125. position: relative;
  22126. }
  22127. .navChild img {
  22128. position: absolute;
  22129. right: 11px;
  22130. width: 15px;
  22131. top: 50%;
  22132. transform: translateY(-50%);
  22133. }
  22134. .navActive,
  22135. .toolActive {
  22136. height: auto !important;
  22137. overflow: auto !important;
  22138. /* padding-bottom: 16px; */
  22139. }
  22140. .toolActive {
  22141. padding: 0;
  22142. }
  22143. .navTask {
  22144. display: flex;
  22145. flex-direction: row;
  22146. flex-wrap: nowrap;
  22147. align-items: center;
  22148. align-content: flex-start;
  22149. height: 40px;
  22150. justify-content: flex-start;
  22151. padding: 0 10px;
  22152. width: 100%;
  22153. box-sizing: border-box;
  22154. }
  22155. .navTaskname {
  22156. white-space: nowrap;
  22157. text-overflow: ellipsis;
  22158. overflow: hidden;
  22159. word-break: break-all;
  22160. padding-left: 5px;
  22161. }
  22162. .openTaskActive {
  22163. /* background-color: #e0eafb !important;
  22164. color: #0061ff; */
  22165. color:#fff;
  22166. background: rgb(55, 129, 252) !important;
  22167. }
  22168. .iframeName {
  22169. margin: 5px 0;
  22170. border-left: 4px solid #41c4a4;
  22171. padding-left: 4px;
  22172. }
  22173. .toolTitle {
  22174. margin: 0px 0px 20px;
  22175. font-size: 20px;
  22176. font-weight: 500;
  22177. border-left: 4px solid #41c4a4;
  22178. padding-left: 4px;
  22179. }
  22180. .cru_selectBox {
  22181. overflow: auto;
  22182. width: 95%;
  22183. margin: 17px auto 0;
  22184. height: calc(100% - 40px - 21px - 20px - 17px);
  22185. background: #fff;
  22186. border-radius: 8px;
  22187. }
  22188. .cru_selectBox::-webkit-scrollbar,
  22189. .study_top::-webkit-scrollbar,
  22190. .textContent::-webkit-scrollbar {
  22191. /*滚动条整体样式*/
  22192. width: 6px;
  22193. /*高宽分别对应横竖滚动条的尺寸*/
  22194. height: 6px;
  22195. }
  22196. /*定义滚动条轨道 内阴影+圆角*/
  22197. .cru_selectBox::-webkit-scrollbar-track,
  22198. .study_top::-webkit-scrollbar-track,
  22199. .textContent::-webkit-scrollbar {
  22200. border-radius: 10px;
  22201. background-color: #b8bdc9;
  22202. }
  22203. /*定义滑块 内阴影+圆角*/
  22204. .cru_selectBox::-webkit-scrollbar-thumb,
  22205. .study_top::-webkit-scrollbar-thumb,
  22206. .textContent::-webkit-scrollbar-thumb {
  22207. border-radius: 10px;
  22208. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22209. background-color: #2c5ab3;
  22210. }
  22211. .vedioBox {
  22212. border-radius: 0 0 20px 20px;
  22213. background: #fff;
  22214. overflow: auto;
  22215. }
  22216. .taskBox {
  22217. width: 98%;
  22218. background: #f0f4fa;
  22219. margin: 10px auto;
  22220. padding: 0 10px;
  22221. border-radius: 4px;
  22222. box-sizing: border-box;
  22223. }
  22224. .vedioTaskBox {
  22225. width: 100%;
  22226. display: flex;
  22227. flex-direction: row;
  22228. flex-wrap: nowrap;
  22229. align-items: flex-start;
  22230. position: relative;
  22231. }
  22232. .toolBox {
  22233. margin: 15px 0 0 25px;
  22234. display: flex;
  22235. position: relative;
  22236. padding: 18px 20px;
  22237. border-top-left-radius: 5px;
  22238. border-top-right-radius: 5px;
  22239. width: 90%;
  22240. }
  22241. .btnAll {
  22242. position: absolute;
  22243. right: 0;
  22244. display: flex;
  22245. flex-direction: row;
  22246. flex-wrap: nowrap;
  22247. align-items: center;
  22248. }
  22249. .btnLeft,
  22250. .btnRight {
  22251. display: flex;
  22252. flex-direction: row;
  22253. flex-wrap: nowrap;
  22254. align-items: center;
  22255. padding: 5px 0;
  22256. }
  22257. .btnLeft {
  22258. border-right: 1px solid #cad1dc;
  22259. }
  22260. .btnLeft > .custom-tooltip {
  22261. background: #3681fc;
  22262. color: #fff;
  22263. }
  22264. .last:hover {
  22265. background: #3383fa !important;
  22266. color: #fff;
  22267. border: 1px solid #3383fa !important;
  22268. }
  22269. .last,
  22270. .returnBtn1 {
  22271. width: 90px;
  22272. height: 36px;
  22273. background: #ffffff;
  22274. border-radius: 4px;
  22275. border: 1px solid #0061ff;
  22276. color: #0061ff;
  22277. cursor: pointer;
  22278. display: flex;
  22279. flex-direction: row;
  22280. flex-wrap: nowrap;
  22281. align-items: center;
  22282. justify-content: center;
  22283. margin-left: 12px;
  22284. }
  22285. .returnBtn1 {
  22286. background: #f0f4fa;
  22287. border-radius: 4px;
  22288. border: 1px solid #cad1dc;
  22289. margin: 0 12px;
  22290. }
  22291. .lastImg {
  22292. min-width: 15px;
  22293. width: 15px;
  22294. height: 15px;
  22295. display: flex;
  22296. }
  22297. .lastText {
  22298. padding: 0 5px 0 5px;
  22299. box-sizing: border-box;
  22300. font-size: 14px;
  22301. }
  22302. .lastImg > img {
  22303. width: 100%;
  22304. height: 100%;
  22305. }
  22306. /* .vedioTimeBox {
  22307. display: flex;
  22308. flex-direction: row;
  22309. align-items: center;
  22310. flex-wrap: nowrap;
  22311. position: relative;
  22312. } */
  22313. .navBox {
  22314. background: #fff;
  22315. height: calc(100% - 40px);
  22316. overflow-y: auto;
  22317. overflow-x: hidden;
  22318. }
  22319. .worksBox {
  22320. margin: 0 0 10px 25px;
  22321. border-bottom: 1px solid #eeeeee;
  22322. padding: 18px 20px;
  22323. border-radius: 4px;
  22324. width: 90%;
  22325. }
  22326. .worksBTitle {
  22327. font-size: 20px;
  22328. padding-bottom: 15px;
  22329. border-bottom: 1px solid #eeeeee;
  22330. display: flex;
  22331. align-items: center;
  22332. }
  22333. .greenBox {
  22334. width: 5px;
  22335. height: 30px;
  22336. background: #63b6fa;
  22337. margin-right: 5px;
  22338. }
  22339. .worksDetailBox {
  22340. display: flex;
  22341. width: 100%;
  22342. flex-direction: row;
  22343. flex-wrap: wrap;
  22344. align-items: flex-end;
  22345. justify-content: flex-start;
  22346. padding: 15px 5px;
  22347. box-sizing: border-box;
  22348. }
  22349. .works {
  22350. display: flex;
  22351. flex-direction: column;
  22352. flex-wrap: nowrap;
  22353. align-items: flex-start;
  22354. justify-content: flex-start;
  22355. align-content: center;
  22356. max-width: 240px;
  22357. width: calc(100% / 3 - 10px);
  22358. height: auto;
  22359. margin-right: 10px;
  22360. margin-bottom: 10px;
  22361. overflow: hidden;
  22362. height: 140px;
  22363. box-shadow: 0 0 6px 1px #dfdada;
  22364. border-radius: 15px;
  22365. }
  22366. .workImg {
  22367. width: 100%;
  22368. /* height: calc(100% - 40px); */
  22369. height: 105px;
  22370. position: relative;
  22371. }
  22372. .workImg > img {
  22373. width: 100%;
  22374. height: 100%;
  22375. object-fit: contain;
  22376. cursor: pointer;
  22377. }
  22378. .worksName {
  22379. height: 40px;
  22380. line-height: 40px;
  22381. display: flex;
  22382. width: 100%;
  22383. flex-direction: row;
  22384. flex-wrap: nowrap;
  22385. justify-content: space-between;
  22386. align-items: center;
  22387. margin: 0 0 0 10px;
  22388. }
  22389. .worksName > div:nth-child(1) {
  22390. width: 110px;
  22391. white-space: nowrap;
  22392. overflow: hidden;
  22393. text-overflow: ellipsis;
  22394. }
  22395. .worksName > div:nth-child(2) {
  22396. color: #b7b4b5;
  22397. }
  22398. .noWorksS {
  22399. padding: 15px 0;
  22400. display: flex;
  22401. flex-direction: row;
  22402. flex-wrap: wrap;
  22403. align-items: center;
  22404. justify-content: flex-start;
  22405. }
  22406. .noWorksName,
  22407. .isWorksName,
  22408. .isWorksName2 {
  22409. background: #ddebf8;
  22410. color: #000;
  22411. width: 90px;
  22412. height: 25px;
  22413. text-align: center;
  22414. line-height: 25px;
  22415. border-radius: 4px;
  22416. margin: 10px 15px 10px 0;
  22417. white-space: nowrap;
  22418. overflow: hidden;
  22419. padding: 5px;
  22420. text-overflow: ellipsis;
  22421. cursor: pointer;
  22422. border: 1px solid #ddebf8;
  22423. }
  22424. .noWorksName {
  22425. background: #fff;
  22426. color: #0061ff;
  22427. border: 1px solid #0061ff;
  22428. }
  22429. .noWorksName > span{
  22430. max-width: 100%;
  22431. display: block;
  22432. overflow: hidden;
  22433. text-overflow: ellipsis;
  22434. white-space: nowrap;
  22435. }
  22436. .isWorksName2 {
  22437. width: 100px;
  22438. height: 40px;
  22439. line-height: 40px;
  22440. position: relative;
  22441. background: #dae6f9;
  22442. }
  22443. .isWorksName {
  22444. background: #e7ebf1 !important;
  22445. width: 100px;
  22446. height: 40px;
  22447. line-height: 40px;
  22448. position: relative;
  22449. color: #acb4bf;
  22450. border: 1px solid #cad1dc !important;
  22451. }
  22452. .isSelectName,
  22453. .noWorksName:hover {
  22454. background: #3383fa !important;
  22455. color: #fff !important;
  22456. border: 1px solid #3383fa !important;
  22457. }
  22458. .title {
  22459. background: #1e5cc9;
  22460. /* width: 98%; */
  22461. height: 45px;
  22462. color: #fff;
  22463. line-height: 45px;
  22464. padding-left: 20px;
  22465. box-sizing: border-box;
  22466. }
  22467. .textBox {
  22468. font-size: 20px;
  22469. width: 90%;
  22470. display: flex;
  22471. flex-direction: column;
  22472. align-items: center;
  22473. margin: 20px auto 0;
  22474. max-height: calc(100% - 75px);
  22475. overflow: auto;
  22476. }
  22477. .textContent {
  22478. font-size: 18px;
  22479. width: 95%;
  22480. max-width: 95%;
  22481. }
  22482. .answerBg {
  22483. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  22484. background-size: 100% 100%;
  22485. width: 100%;
  22486. height: 100%;
  22487. color: #fff;
  22488. text-align: center;
  22489. display: flex;
  22490. flex-direction: column;
  22491. flex-wrap: nowrap;
  22492. align-items: center;
  22493. position: relative;
  22494. justify-content: center;
  22495. }
  22496. .answerBg > div:nth-child(1) {
  22497. /* font-size: 22px;
  22498. padding: 25px 0 10px; */
  22499. }
  22500. .answerContent {
  22501. width: 215px;
  22502. max-height: 60px;
  22503. word-break: break-all;
  22504. text-align: center;
  22505. /* white-space: nowrap; */
  22506. overflow: hidden;
  22507. text-overflow: ellipsis;
  22508. /* padding: 23px 0 0; */
  22509. -webkit-line-clamp: 3;
  22510. -webkit-box-orient: vertical;
  22511. display: -webkit-box;
  22512. font-size: 15px;
  22513. cursor: pointer;
  22514. }
  22515. .elist_input_box {
  22516. display: flex;
  22517. align-items: flex-start;
  22518. flex-wrap: nowrap;
  22519. padding: 10px 0 15px 30px;
  22520. flex-direction: column;
  22521. }
  22522. .elist_input {
  22523. /* width: 40%; */
  22524. width: 45%;
  22525. margin: 20px;
  22526. }
  22527. .elist_input .elist_input_box input {
  22528. font: inherit;
  22529. color: currentColor;
  22530. width: 200px;
  22531. padding: 8px 14px;
  22532. display: block;
  22533. min-width: 0;
  22534. outline: none;
  22535. border: 1px solid rgba(0, 0, 0, 0.23);
  22536. border-radius: 4px;
  22537. box-sizing: border-box;
  22538. background: #fff;
  22539. margin: 0 20px 0 0;
  22540. }
  22541. .elist_input .elist_input_box span {
  22542. height: 36px;
  22543. line-height: 36px;
  22544. color: rgb(82, 82, 82);
  22545. }
  22546. .elist_input .elist_input_box .remove {
  22547. height: 20px;
  22548. width: 20px;
  22549. background-size: 100% 100%;
  22550. background-position: unset;
  22551. margin-left: 5px;
  22552. }
  22553. .elist_input_box >>> .el-rate {
  22554. display: flex;
  22555. height: 36px;
  22556. align-items: center;
  22557. }
  22558. .elist_input_box .elist_inptu_text {
  22559. min-height: 50px;
  22560. /* width: 500px;
  22561. max-height: 150px; */
  22562. width: 100%;
  22563. line-height: 50px;
  22564. color: rgb(82, 82, 82);
  22565. overflow: auto;
  22566. text-indent: 5px;
  22567. background: #f7f6f9;
  22568. border-radius: 10px;
  22569. }
  22570. .elist_input_box .elist_inptu_text input {
  22571. width: 500px;
  22572. }
  22573. .elist_input_box >>> .el-rate__icon {
  22574. font-size: 24px;
  22575. }
  22576. .isClick {
  22577. background: #4d9def;
  22578. }
  22579. .bzBox {
  22580. display: flex;
  22581. flex-direction: row;
  22582. align-items: center;
  22583. }
  22584. .bzBox .yCss {
  22585. width: 7px;
  22586. height: 7px;
  22587. background: #fff;
  22588. margin: 0 16px 0 6px;
  22589. border-radius: 50%;
  22590. border: 5px solid #3681fc;
  22591. z-index: 99;
  22592. }
  22593. .bzBox > div:nth-child(2) {
  22594. font-size: 18px;
  22595. font-weight: bold;
  22596. color: #0e1e33;
  22597. }
  22598. .navTitile {
  22599. padding: 0 0px 0 15px;
  22600. font-size: 16px;
  22601. font-weight: bold;
  22602. color: #0e1e33;
  22603. height: 40px;
  22604. line-height: 40px;
  22605. }
  22606. .isTypeOne {
  22607. width: 240px;
  22608. height: 170px;
  22609. /* border: 1px solid #f8f8f8; */
  22610. border-radius: 10px;
  22611. box-shadow: 0 0 6px 1px #dfdada;
  22612. }
  22613. .e_add_top {
  22614. display: flex;
  22615. justify-content: space-between;
  22616. padding: 10px 20px;
  22617. border-radius: 3px;
  22618. background: #fff;
  22619. }
  22620. .e_add_title2 {
  22621. display: flex;
  22622. align-items: center;
  22623. }
  22624. .e_add_title2 span {
  22625. width: 40px;
  22626. }
  22627. .e_add_title {
  22628. display: flex;
  22629. align-items: center;
  22630. color: #b8b8b8;
  22631. font-size: 18px;
  22632. position: relative;
  22633. height: 40px;
  22634. }
  22635. .e_add_title span {
  22636. margin-right: 10px;
  22637. }
  22638. .e_add_title .el_input {
  22639. width: 300px;
  22640. }
  22641. .e_add_title >>> .el-input__inner {
  22642. width: 400px;
  22643. }
  22644. .e_add_btn {
  22645. }
  22646. .e_add_content {
  22647. display: flex;
  22648. width: 100%;
  22649. max-width: 650px;
  22650. height: 550px;
  22651. }
  22652. .e_add_list {
  22653. background: #fff;
  22654. height: 500px;
  22655. width: 210px;
  22656. position: relative;
  22657. margin: 15px 5px 0 0;
  22658. flex-shrink: 0;
  22659. display: flex;
  22660. flex-direction: column;
  22661. }
  22662. .e_add_list_title {
  22663. font-size: 20px;
  22664. width: 100%;
  22665. box-sizing: border-box;
  22666. padding: 15px 40px;
  22667. text-align: center;
  22668. border-bottom: 1px solid #eaeaea;
  22669. position: relative;
  22670. display: flex;
  22671. align-items: center;
  22672. justify-content: center;
  22673. height: 57px;
  22674. background: #f6f6f6;
  22675. }
  22676. .e_add_list_title span {
  22677. overflow: hidden;
  22678. white-space: nowrap;
  22679. text-overflow: ellipsis;
  22680. }
  22681. .e_add_list_title img {
  22682. position: absolute;
  22683. right: 15px;
  22684. width: 25px;
  22685. cursor: pointer;
  22686. top: 50%;
  22687. transform: translateY(-50%);
  22688. }
  22689. .e_add_list_body {
  22690. height: calc(100% - 187px);
  22691. overflow: auto;
  22692. }
  22693. .e_add_list_child {
  22694. width: 100%;
  22695. display: flex;
  22696. align-items: center;
  22697. justify-content: center;
  22698. position: relative;
  22699. box-sizing: border-box;
  22700. padding: 15px 40px;
  22701. text-align: center;
  22702. }
  22703. .e_add_list_child span {
  22704. overflow: hidden;
  22705. white-space: nowrap;
  22706. text-overflow: ellipsis;
  22707. cursor: pointer;
  22708. }
  22709. .e_add_list_child img {
  22710. position: absolute;
  22711. right: 10px;
  22712. width: 21px;
  22713. cursor: pointer;
  22714. top: 50%;
  22715. transform: translateY(-50%);
  22716. }
  22717. .e_add_list_child + .e_add_list_child {
  22718. border-top: 1px solid #eaeaea;
  22719. }
  22720. .e_add_list_child .active {
  22721. color: #409eff;
  22722. }
  22723. .e_add_list_btn {
  22724. position: absolute;
  22725. bottom: 0;
  22726. height: 50px;
  22727. background: rgb(120, 120, 254);
  22728. width: 100%;
  22729. color: #fff;
  22730. font-size: 16px;
  22731. text-align: center;
  22732. line-height: 50px;
  22733. cursor: pointer;
  22734. }
  22735. .e_add_list_detail {
  22736. position: absolute;
  22737. bottom: 0;
  22738. height: 130px;
  22739. background: rgb(120, 120, 254);
  22740. width: 100%;
  22741. color: #fff;
  22742. font-size: 16px;
  22743. display: flex;
  22744. align-items: center;
  22745. justify-content: center;
  22746. }
  22747. .e_add_list_detail textarea {
  22748. height: 90%;
  22749. width: 95%;
  22750. border: none;
  22751. resize: none;
  22752. outline: none;
  22753. padding: 5px;
  22754. box-sizing: border-box;
  22755. }
  22756. .e_add_list_pbox {
  22757. width: 100%;
  22758. max-width: 650px;
  22759. /* height: 600px; */
  22760. }
  22761. .e_add_list_pbox_title {
  22762. height: 50px;
  22763. background: #fff;
  22764. display: flex;
  22765. align-items: center;
  22766. width: 100%;
  22767. box-sizing: border-box;
  22768. padding: 0 20px;
  22769. }
  22770. .type_title {
  22771. font-size: 18px;
  22772. font-weight: 700;
  22773. }
  22774. .type_content {
  22775. font-size: 16px;
  22776. /* margin-left: 30px; */
  22777. }
  22778. .type_content span + span {
  22779. margin-left: 20px;
  22780. }
  22781. .type_content span {
  22782. cursor: pointer;
  22783. padding-bottom: 5px;
  22784. box-sizing: border-box;
  22785. }
  22786. .type_content .active {
  22787. color: #409eff;
  22788. border-bottom: 2px solid #409eff;
  22789. }
  22790. .e_add_list_pbox_content {
  22791. height: calc(100% - 50px);
  22792. display: flex;
  22793. align-items: center;
  22794. width: 100%;
  22795. background: #fff;
  22796. }
  22797. .evaCss {
  22798. display: flex;
  22799. flex-direction: row;
  22800. flex-wrap: nowrap;
  22801. align-items: flex-start;
  22802. padding: 0 0 20px;
  22803. }
  22804. .cru_line {
  22805. position: absolute;
  22806. bottom: 0px;
  22807. transition: all 0.5s;
  22808. left: 0px;
  22809. width: 125px;
  22810. margin-left: -25px;
  22811. }
  22812. .isNoMessage {
  22813. width: 20%;
  22814. margin: 25% auto 0;
  22815. }
  22816. .isNoMessage > img {
  22817. width: 100%;
  22818. height: 100%;
  22819. }
  22820. .fullStyle >>> .el-dialog__body {
  22821. height: 100% !important;
  22822. }
  22823. .fullStyle >>> .el-dialog,
  22824. .fullStyle {
  22825. width: 100% !important;
  22826. max-width: 100% !important;
  22827. height: 100% !important;
  22828. margin: 0 !important;
  22829. }
  22830. .full_diy >>> .el-dialog {
  22831. margin: 0 !important;
  22832. height: 100%;
  22833. padding: 4px;
  22834. }
  22835. .full_diy >>> .el-dialog__body {
  22836. height: calc(100% - 100px);
  22837. }
  22838. .full_diy2 >>> .el-dialog__body {
  22839. height: calc(100% - 50px);
  22840. padding: 0;
  22841. }
  22842. .switchCss {
  22843. /* width: 100%; */
  22844. display: flex;
  22845. flex-direction: row;
  22846. flex-wrap: nowrap;
  22847. align-items: center;
  22848. /* justify-content: center; */
  22849. }
  22850. .isClickNav {
  22851. /* color: #499eef; */
  22852. color: #000;
  22853. }
  22854. .commentImg {
  22855. width: 25px;
  22856. height: 25px;
  22857. cursor: pointer;
  22858. }
  22859. .commentImg > img {
  22860. width: 100%;
  22861. height: 100%;
  22862. }
  22863. .comment {
  22864. background: #f9f9f9;
  22865. border-radius: 0 0 4px 4px;
  22866. display: flex;
  22867. flex-direction: row;
  22868. flex-wrap: nowrap;
  22869. align-items: center;
  22870. justify-content: flex-end;
  22871. height: 35px;
  22872. }
  22873. .commentList {
  22874. display: flex;
  22875. flex-direction: row;
  22876. flex-wrap: nowrap;
  22877. align-items: center;
  22878. justify-content: center;
  22879. align-content: center;
  22880. /* margin-left: 15px; */
  22881. /* margin-left: 8px; */
  22882. }
  22883. .scoreImg {
  22884. width: 17px;
  22885. height: 17px;
  22886. }
  22887. .studentDetail {
  22888. display: flex;
  22889. flex-direction: row;
  22890. flex-wrap: nowrap;
  22891. /* align-items: center; */
  22892. align-items: flex-start;
  22893. }
  22894. .tx {
  22895. width: 50px;
  22896. }
  22897. .tx > img {
  22898. width: 100%;
  22899. height: 100%;
  22900. }
  22901. .nameAndTime {
  22902. display: flex;
  22903. flex-direction: column;
  22904. flex-wrap: nowrap;
  22905. align-items: flex-start;
  22906. margin-left: 10px;
  22907. }
  22908. .worksAnswer {
  22909. color: #4078dd;
  22910. margin: 10px 0;
  22911. font-size: 16px;
  22912. position: relative;
  22913. }
  22914. .worksAnswer > img {
  22915. width: 500px;
  22916. height: 300px;
  22917. object-fit: contain;
  22918. margin: 0 auto;
  22919. display: block;
  22920. }
  22921. .commentTop {
  22922. border-bottom: 1px solid #eaeaea;
  22923. padding-bottom: 10px;
  22924. }
  22925. .commentBox {
  22926. padding-top: 15px;
  22927. }
  22928. .pl {
  22929. font-size: 18px;
  22930. }
  22931. .plPerson {
  22932. width: 100%;
  22933. }
  22934. .plName {
  22935. display: flex;
  22936. flex-direction: row;
  22937. flex-wrap: nowrap;
  22938. align-items: baseline;
  22939. color: #78787a;
  22940. width: 100%;
  22941. }
  22942. .deleteComment {
  22943. cursor: pointer;
  22944. margin-left: auto;
  22945. color: #237ade;
  22946. }
  22947. .plContent {
  22948. margin-top: 5px;
  22949. }
  22950. .evalCss {
  22951. background: #fff;
  22952. font-size: 18px;
  22953. }
  22954. .nav {
  22955. color: #9d9d9d;
  22956. padding: 5px 0 15px 20px;
  22957. }
  22958. .middleBox {
  22959. padding: 5px 0 15px 20px;
  22960. }
  22961. .pfBox {
  22962. padding-bottom: 30px;
  22963. }
  22964. .nameAndrate {
  22965. display: flex;
  22966. flex-direction: row;
  22967. flex-wrap: nowrap;
  22968. align-items: center;
  22969. padding-bottom: 10px;
  22970. height: 30px;
  22971. line-height: 30px;
  22972. }
  22973. .nameAndrate > div {
  22974. margin-left: 10px;
  22975. color: #000;
  22976. height: 30px;
  22977. }
  22978. .nameAndrate >>> .el-rate__icon {
  22979. font-size: 28px !important;
  22980. }
  22981. .pfBox > div:nth-child(2) {
  22982. background: #f7f6f9;
  22983. width: 400px;
  22984. min-height: 45px;
  22985. border-radius: 10px;
  22986. font-size: 16px;
  22987. display: flex;
  22988. flex-wrap: wrap;
  22989. align-items: center;
  22990. padding: 10px 20px;
  22991. box-sizing: border-box;
  22992. color: #000;
  22993. }
  22994. .bz {
  22995. display: flex;
  22996. flex-direction: row;
  22997. flex-wrap: nowrap;
  22998. align-items: flex-start;
  22999. }
  23000. .bz > div {
  23001. padding: 0 10px;
  23002. }
  23003. .select_box2_title {
  23004. background: #fff;
  23005. border-radius: 5px;
  23006. padding: 15px 10px;
  23007. box-sizing: border-box;
  23008. margin-bottom: 10px;
  23009. display: flex;
  23010. flex-direction: row;
  23011. flex-wrap: nowrap;
  23012. align-items: center;
  23013. }
  23014. .select_box2_title > div:nth-child(2) {
  23015. margin-left: 10px;
  23016. color: #c4c4c4;
  23017. }
  23018. .select_box2_box {
  23019. display: flex;
  23020. height: 500px;
  23021. }
  23022. .select_box2_img {
  23023. width: calc(100% - 310px);
  23024. height: 100%;
  23025. overflow: auto;
  23026. background: #fff;
  23027. border-radius: 5px;
  23028. }
  23029. .select_box2_img img {
  23030. width: 100%;
  23031. }
  23032. .select_box2_answer {
  23033. background: #fff;
  23034. margin-left: 10px;
  23035. border-radius: 5px;
  23036. width: 300px;
  23037. overflow: auto;
  23038. height: 90%;
  23039. display: flex;
  23040. flex-direction: column;
  23041. align-items: flex-start;
  23042. padding-top: 10px;
  23043. box-sizing: border-box;
  23044. position: relative;
  23045. }
  23046. .select_answer_title {
  23047. padding: 0 0 15px 20px;
  23048. color: #c4c4c4;
  23049. }
  23050. .select_box2_answer_box {
  23051. margin: 0 0 10px 20px;
  23052. width: 85%;
  23053. display: flex;
  23054. flex-direction: row;
  23055. flex-wrap: nowrap;
  23056. align-items: center;
  23057. }
  23058. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23059. color: #000;
  23060. }
  23061. .upAnswerCss {
  23062. position: absolute;
  23063. bottom: 15px;
  23064. right: 15px;
  23065. }
  23066. .upAnswerCss >>> .el-button {
  23067. width: 95px;
  23068. height: 35px;
  23069. line-height: 35px;
  23070. padding: 0;
  23071. }
  23072. .rightWidthCss {
  23073. width: 60%;
  23074. display: flex;
  23075. flex-direction: row;
  23076. align-items: flex-start;
  23077. }
  23078. .rightAnswer {
  23079. display: flex;
  23080. flex-direction: row;
  23081. flex-wrap: nowrap;
  23082. align-items: center;
  23083. color: red;
  23084. margin-bottom: 31px;
  23085. }
  23086. .rightAnswerCss {
  23087. display: flex;
  23088. flex-direction: column;
  23089. flex-wrap: nowrap;
  23090. padding-top: 60px;
  23091. }
  23092. .blueCss {
  23093. color: #767de1;
  23094. margin-left: 10px;
  23095. }
  23096. .redCss {
  23097. color: red;
  23098. }
  23099. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23100. color: rgb(0 123 255) !important;
  23101. }
  23102. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23103. color: rgb(0 123 255) !important;
  23104. }
  23105. .zuoyeYulan {
  23106. padding-top: 0;
  23107. font-size: 18px;
  23108. display: flex;
  23109. align-items: flex-end;
  23110. }
  23111. .buttonA {
  23112. margin-left: 10px;
  23113. padding: 0;
  23114. }
  23115. .displayBox {
  23116. margin-bottom: 10px;
  23117. display: block;
  23118. border-bottom: 3px solid #eee;
  23119. display: flex;
  23120. align-items: center;
  23121. }
  23122. .easy_comment {
  23123. width: calc(100% - 90px);
  23124. margin-left: 10px;
  23125. display: flex;
  23126. flex-wrap: wrap;
  23127. }
  23128. .easy_comment > div {
  23129. border: 1px solid #4a4a4a;
  23130. color: #666;
  23131. border-radius: 15px;
  23132. padding: 5px 10px;
  23133. font-size: 16px;
  23134. margin-bottom: 10px;
  23135. margin-right: 5px;
  23136. cursor: pointer;
  23137. }
  23138. .easy_comment div:hover {
  23139. border: 1px solid #f7ba2a;
  23140. color: #c69217;
  23141. }
  23142. .xuan_right_box {
  23143. padding: 10px 0;
  23144. background: #f0f4fa;
  23145. margin: 0 15px 0 25px;
  23146. border-bottom-left-radius: 5px;
  23147. border-bottom-right-radius: 5px;
  23148. width: 91.5%;
  23149. }
  23150. .tool_right_box {
  23151. display: flex;
  23152. align-items: center;
  23153. }
  23154. .tool_right_box + .tool_right_box {
  23155. margin-top: 10px;
  23156. }
  23157. .right_box_xuan {
  23158. border-radius: 5px;
  23159. padding: 5px;
  23160. margin-left: 10px;
  23161. min-width: 85px;
  23162. background: #fff;
  23163. color: #0061ff;
  23164. border: 1px solid #0061ff;
  23165. font-size: 14px;
  23166. }
  23167. .pButton:hover {
  23168. opacity: 1 !important;
  23169. }
  23170. .pButton {
  23171. position: fixed;
  23172. text-align: center;
  23173. cursor: pointer;
  23174. z-index: 999;
  23175. right: 20px;
  23176. top: 110px;
  23177. width: 50px;
  23178. height: 50px;
  23179. display: flex;
  23180. align-items: center;
  23181. justify-content: center;
  23182. border-radius: 5px;
  23183. }
  23184. .pzClass {
  23185. width: calc(100% - 340px);
  23186. }
  23187. .newDialogCss {
  23188. /* position: fixed;
  23189. right: 5%;
  23190. top: 50%;
  23191. width: 340px;
  23192. transform: translateY(-50%);
  23193. height: 60%;
  23194. box-shadow: 0px 0 8px 0px #555555;
  23195. border-radius: 15px;
  23196. z-index: 999; */
  23197. position: fixed;
  23198. right: 20px;
  23199. top: 101px;
  23200. width: 330px;
  23201. height: calc(100% - 80px);
  23202. z-index: 999;
  23203. background: #fff;
  23204. border-top-right-radius: 0px;
  23205. border-bottom-right-radius: 0px;
  23206. overflow: hidden;
  23207. }
  23208. .newDialogCss>.scoreList{
  23209. width:100%;
  23210. height:100%;
  23211. box-sizing:border-box;
  23212. padding:10px 15px;
  23213. overflow:auto;
  23214. padding-bottom:80px;
  23215. }
  23216. .pzTop {
  23217. color: #fff;
  23218. background: #000;
  23219. display: flex;
  23220. flex-direction: row;
  23221. flex-wrap: nowrap;
  23222. align-items: center;
  23223. justify-content: space-between;
  23224. height: 40px;
  23225. border-radius: 15px 15px 0 0;
  23226. user-select: none;
  23227. }
  23228. .pzTop2 .checkbox {
  23229. display: flex;
  23230. align-items: center;
  23231. padding: 5px 10px;
  23232. flex: 0 0 auto;
  23233. font-weight: bold;
  23234. border-bottom: 1px solid #eee;
  23235. justify-content: space-between;
  23236. }
  23237. .checkbox>.cb-tabList{
  23238. display:flex;
  23239. align-items:center;
  23240. }
  23241. .cb-tabList>div{
  23242. margin-right:20px;
  23243. font-weight:400;
  23244. cursor:pointer;
  23245. }
  23246. .cb-tabList>.cb-tabItem{
  23247. color:#1684FC;
  23248. position:relative;
  23249. }
  23250. .cb-tabItem::after{
  23251. content:"";
  23252. width:100%;
  23253. height:2px;
  23254. background:#1684FC;
  23255. position:absolute;
  23256. bottom:-5px;
  23257. left:0
  23258. }
  23259. .pzTop2 .check {
  23260. text-align: center;
  23261. cursor: pointer;
  23262. box-sizing: border-box;
  23263. display: flex;
  23264. }
  23265. .pzTop2 img {
  23266. width: 25px;
  23267. cursor: pointer;
  23268. }
  23269. .pzTop > div:nth-child(1) {
  23270. padding-left: 10px;
  23271. }
  23272. .pzTop > div:nth-child(2) {
  23273. width: 15px;
  23274. height: 15px;
  23275. padding-right: 10px;
  23276. cursor: pointer;
  23277. }
  23278. .pzTop > div:nth-child(2) > img {
  23279. width: 100%;
  23280. height: 100%;
  23281. }
  23282. .pzBox,
  23283. .noPzBox {
  23284. height: calc(100% - 60px);
  23285. /* background: #ededed; */
  23286. background: #fff;
  23287. /* border-radius: 0 0 15px 15px; */
  23288. }
  23289. .noPzBox {
  23290. display: flex;
  23291. flex-direction: column;
  23292. flex-wrap: nowrap;
  23293. justify-content: center;
  23294. align-items: center;
  23295. }
  23296. .pzList {
  23297. background: #f7f7f7;
  23298. width: 90%;
  23299. margin: 0 auto 15px;
  23300. border-radius: 5px;
  23301. }
  23302. .pzNavTop {
  23303. display: flex;
  23304. flex-direction: row;
  23305. flex-wrap: nowrap;
  23306. padding: 10px 10px 0 10px;
  23307. align-items: center;
  23308. }
  23309. .pzDelete {
  23310. cursor: pointer;
  23311. margin-left: auto;
  23312. font-size: 14px;
  23313. color: #afafaf;
  23314. }
  23315. .pzNavTop > div:nth-child(1) {
  23316. background: #3760af;
  23317. width: 35px;
  23318. height: 35px;
  23319. color: #fff;
  23320. text-align: center;
  23321. line-height: 35px;
  23322. border-radius: 50%;
  23323. font-size: 14px;
  23324. }
  23325. .pzNavTop > div:nth-child(2) {
  23326. font-size: 18px;
  23327. color: #959595;
  23328. margin-left: 5px;
  23329. }
  23330. .pzContent {
  23331. padding: 10px;
  23332. word-break: break-word;
  23333. }
  23334. .pzContent audio {
  23335. width: 100%;
  23336. }
  23337. .pzContent audio::-webkit-media-controls-panel {
  23338. background: #fff;
  23339. }
  23340. .pzContent >>> img {
  23341. max-width: 100%;
  23342. }
  23343. .pzListBox {
  23344. padding-top: 15px;
  23345. height: calc(100% - 110px);
  23346. overflow: auto;
  23347. }
  23348. .addPzButton {
  23349. position: relative;
  23350. margin-top: 3px;
  23351. width: 100%;
  23352. }
  23353. .addPzButton .img1 {
  23354. position: absolute;
  23355. top: 50%;
  23356. right: 25px;
  23357. transform: translateY(-50%);
  23358. height: 100%;
  23359. display: flex;
  23360. align-items: center;
  23361. }
  23362. .addPzButton .img1 div {
  23363. display: flex;
  23364. }
  23365. .addPzButton .img1 div img {
  23366. width: 28px;
  23367. margin-left: 10px;
  23368. cursor: pointer;
  23369. }
  23370. .addPzButton .img1 div span {
  23371. font-size: 14px;
  23372. margin: 4px 0 0 3px;
  23373. color: #afafaf;
  23374. }
  23375. .addPz {
  23376. background: #4b79ce;
  23377. width: 100px;
  23378. color: #fff;
  23379. font-size: 12px;
  23380. height: 30px;
  23381. margin: 0 auto;
  23382. text-align: center;
  23383. line-height: 30px;
  23384. border-radius: 10px;
  23385. cursor: pointer;
  23386. }
  23387. .addDialogCss {
  23388. position: fixed;
  23389. width: 600px;
  23390. height: 70%;
  23391. min-height: 450px;
  23392. box-shadow: 0px 0 8px 0px #555555;
  23393. border-radius: 15px;
  23394. z-index: 999;
  23395. left: 50%;
  23396. top: 50%;
  23397. margin: -18% 0 0 -300px;
  23398. }
  23399. .teacherPz {
  23400. display: flex;
  23401. flex-direction: row;
  23402. align-items: center;
  23403. flex-wrap: nowrap;
  23404. }
  23405. .teacherPzImg {
  23406. width: 30px;
  23407. height: 30px;
  23408. }
  23409. .teacherPzImg > img {
  23410. width: 100%;
  23411. height: 100%;
  23412. }
  23413. .addPzBox {
  23414. height: calc(100% - 40px);
  23415. background: #ededed;
  23416. border-bottom-left-radius: 15px;
  23417. border-bottom-right-radius: 15px;
  23418. }
  23419. .pzAudioClass {
  23420. margin: 15px 14px;
  23421. background: #fff;
  23422. height: 100%;
  23423. display: flex;
  23424. justify-content: center;
  23425. align-items: center;
  23426. }
  23427. .pzConText {
  23428. width: 95%;
  23429. height: 100%;
  23430. margin: 10px auto 0;
  23431. border: none;
  23432. background: #fff;
  23433. border-radius: 0px;
  23434. }
  23435. .pzConText >>> .text {
  23436. height: calc(100% - 82px);
  23437. }
  23438. .addTextCss {
  23439. background: #4b79ce;
  23440. width: 80px;
  23441. height: 30px;
  23442. text-align: center;
  23443. color: #fff;
  23444. line-height: 30px;
  23445. border-radius: 10px;
  23446. margin: 10px auto 0;
  23447. cursor: pointer;
  23448. }
  23449. .pzConText:focus-visible {
  23450. border: none !important;
  23451. }
  23452. .maxWidth {
  23453. width: 1000px;
  23454. }
  23455. .noPz {
  23456. width: 150px;
  23457. margin: 0 auto 20%;
  23458. }
  23459. .noPz > img {
  23460. width: 100%;
  23461. height: 100%;
  23462. }
  23463. .timeAndReply {
  23464. display: flex;
  23465. flex-direction: row;
  23466. flex-wrap: nowrap;
  23467. justify-content: space-between;
  23468. align-items: center;
  23469. font-size: 14px;
  23470. box-sizing: border-box;
  23471. padding: 0 10px 10px 0px;
  23472. }
  23473. .timeAndReply .time {
  23474. color: #bfbfbf;
  23475. padding: 0 0 0 10px;
  23476. box-sizing: border-box;
  23477. }
  23478. .timeAndReply > div:last-child {
  23479. cursor: pointer;
  23480. color: #777;
  23481. }
  23482. /* table 样式 */
  23483. .cont >>> table {
  23484. border-top: 1px solid #ccc;
  23485. border-left: 1px solid #ccc;
  23486. }
  23487. .cont >>> table td,
  23488. .cont >>> table th {
  23489. border-bottom: 1px solid #ccc;
  23490. border-right: 1px solid #ccc;
  23491. /* padding: 20px 5px; */
  23492. padding: 5px 10px;
  23493. max-width: 0px;
  23494. height: 30px;
  23495. vertical-align: baseline;
  23496. box-sizing: border-box;
  23497. }
  23498. .cont >>> table th {
  23499. border-bottom: 2px solid #ccc;
  23500. text-align: center;
  23501. }
  23502. /* blockquote 样式 */
  23503. .cont >>> blockquote {
  23504. display: block;
  23505. border-left: 8px solid #d0e5f2;
  23506. padding: 5px 10px;
  23507. margin: 10px 0;
  23508. line-height: 1.4;
  23509. font-size: 100%;
  23510. background-color: #f1f1f1;
  23511. }
  23512. /* code 样式 */
  23513. .cont >>> code {
  23514. display: inline-block;
  23515. /* *display: inline; */
  23516. zoom: 1;
  23517. background-color: #f1f1f1;
  23518. border-radius: 3px;
  23519. padding: 3px 5px;
  23520. margin: 0 3px;
  23521. }
  23522. .cont >>> pre code {
  23523. display: block;
  23524. }
  23525. /* ul ol 样式 */
  23526. .cont >>> ul,
  23527. ol {
  23528. margin: 10px 0 10px 20px;
  23529. }
  23530. .addPzCheck {
  23531. display: flex;
  23532. flex-direction: row;
  23533. flex-wrap: nowrap;
  23534. padding: 10px 15px 0;
  23535. }
  23536. .addPzCheck span {
  23537. cursor: pointer;
  23538. padding-bottom: 5px;
  23539. font-weight: bold;
  23540. }
  23541. .addPzCheck span + span {
  23542. margin-left: 10px;
  23543. }
  23544. .addPzCheck .isChooseActive {
  23545. color: #3e88f4;
  23546. border-bottom: 2px solid #2f80f3;
  23547. }
  23548. /* code 样式 */
  23549. .cont {
  23550. /* -webkit-user-modify: read-write; */
  23551. overflow-wrap: break-word;
  23552. -webkit-line-break: after-white-space;
  23553. word-break: break-word;
  23554. white-space: pre-line;
  23555. }
  23556. .scoreBox,
  23557. .scoreDetailBox {
  23558. display: flex;
  23559. align-items: center;
  23560. justify-content: flex-start;
  23561. margin-top: 20px;
  23562. font-size: 18px;
  23563. width: 100%;
  23564. }
  23565. .scoreBox .t,
  23566. .scoreDetailBox .t {
  23567. margin-right: 10px;
  23568. width: 100px;
  23569. text-align: right;
  23570. }
  23571. .scoreDetailBox {
  23572. align-items: flex-start;
  23573. }
  23574. .scoreDetailBox >>> .el-textarea {
  23575. width: calc(100% - 200px);
  23576. }
  23577. .scoreBox >>> .el-input {
  23578. width: 130px;
  23579. font-size: 38px;
  23580. }
  23581. .scoreBox >>> .el-input__inner {
  23582. height: 60px;
  23583. }
  23584. .answerScore {
  23585. position: absolute;
  23586. top: 10px;
  23587. right: 10px;
  23588. background: #0000008f;
  23589. border-radius: 5px;
  23590. padding: 3px 5px;
  23591. font-size: 14px;
  23592. color: #fff;
  23593. cursor: pointer;
  23594. }
  23595. .open_box .switch_box {
  23596. width: 100%;
  23597. margin: 0 auto;
  23598. display: flex;
  23599. justify-content: space-between;
  23600. }
  23601. .open_box .switch_box + .switch_box {
  23602. margin-top: 10px;
  23603. }
  23604. .deleteImg,.deleteImg1 {
  23605. width: 25px !important;
  23606. height: 25px !important;
  23607. cursor: pointer;
  23608. position: absolute;
  23609. top: 10px;
  23610. right: 10px;
  23611. }
  23612. .deleteImg2 {
  23613. width: 23px !important;
  23614. height: 23px !important;
  23615. top: 5px;
  23616. right: 5px;
  23617. }
  23618. .deleteImg1{
  23619. width: 23px !important;
  23620. height: 23px !important;
  23621. top: 5px !important;
  23622. right: 30px !important;
  23623. }
  23624. .rightW {
  23625. right: 40px;
  23626. }
  23627. .drawPBox {
  23628. display: flex;
  23629. flex-direction: column;
  23630. position: relative;
  23631. }
  23632. .drawPBox span {
  23633. font-size: 18px;
  23634. color: #606266;
  23635. padding-bottom: 10px;
  23636. margin: 10px 0;
  23637. border-bottom: 1px solid #eaeaea;
  23638. }
  23639. .drawPBox img {
  23640. width: 500px;
  23641. height: 300px;
  23642. object-fit: contain;
  23643. cursor: pointer;
  23644. margin: 0 auto;
  23645. }
  23646. .sentenBox {
  23647. background: #fff;
  23648. height: 450px;
  23649. overflow: auto;
  23650. background-image: url("../../assets/icon/conSentences/stuBg.png");
  23651. background-position: 102%;
  23652. background-repeat: no-repeat;
  23653. background-size: 60%;
  23654. }
  23655. .addSen {
  23656. background: #409efe;
  23657. width: 90px;
  23658. color: #fff;
  23659. height: 35px;
  23660. text-align: center;
  23661. line-height: 35px;
  23662. border-radius: 5px;
  23663. float: right;
  23664. margin: 10px 20px 0 0;
  23665. cursor: pointer;
  23666. }
  23667. .sentenTop {
  23668. display: flex;
  23669. flex-direction: row;
  23670. flex-wrap: nowrap;
  23671. align-items: center;
  23672. padding: 55px 0 0 20px;
  23673. box-sizing: border-box;
  23674. }
  23675. .sentenTop > div:nth-child(2) {
  23676. width: 300px;
  23677. margin: 0 15px;
  23678. }
  23679. .sentenTop > div:nth-child(3) {
  23680. background: #409efe;
  23681. color: #fff;
  23682. width: 65px;
  23683. height: 35px;
  23684. text-align: center;
  23685. line-height: 35px;
  23686. border-radius: 5px;
  23687. cursor: pointer;
  23688. }
  23689. .cardList,
  23690. .cardList1 {
  23691. padding: 10px 0 10px 0;
  23692. display: flex;
  23693. flex-direction: row;
  23694. flex-wrap: wrap;
  23695. align-items: center;
  23696. box-sizing: border-box;
  23697. border-bottom: 1px solid #f4f4f4;
  23698. width: 98%;
  23699. margin: 0 auto;
  23700. min-width: 60%;
  23701. max-width: 85%;
  23702. }
  23703. .cardList1 {
  23704. padding: 10px 0 10px 10px !important;
  23705. margin: 0 !important;
  23706. }
  23707. .cardBox {
  23708. display: flex;
  23709. flex-direction: row;
  23710. flex-wrap: wrap;
  23711. align-items: center;
  23712. align-content: center;
  23713. }
  23714. .cardBox > div {
  23715. margin-bottom: 10px;
  23716. }
  23717. .isCard,
  23718. .isChooseCard,
  23719. .noCard,
  23720. .isCard1 {
  23721. min-width: 130px;
  23722. width: auto;
  23723. height: 60px;
  23724. text-align: center;
  23725. line-height: 60px;
  23726. font-size: 20px;
  23727. cursor: pointer;
  23728. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  23729. background-size: cover;
  23730. transition: all 2s;
  23731. margin-right: 20px;
  23732. background-size: 100% 100%;
  23733. padding: 0 20px;
  23734. box-sizing: border-box;
  23735. }
  23736. .isCard > div,
  23737. .noCard > div,
  23738. .isCard1 > div {
  23739. white-space: nowrap;
  23740. overflow: hidden;
  23741. text-overflow: ellipsis;
  23742. width: 100%;
  23743. margin: 0 auto;
  23744. }
  23745. .noCard {
  23746. background-image: none;
  23747. }
  23748. .isCard1 {
  23749. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  23750. }
  23751. .isChooseCard {
  23752. background-image: none;
  23753. border: 1px dashed #b9b9b9;
  23754. border-radius: 10px;
  23755. }
  23756. .card {
  23757. width: 130px;
  23758. height: 60px;
  23759. }
  23760. .card > img {
  23761. width: 100%;
  23762. height: 100%;
  23763. }
  23764. .rightCardBox {
  23765. margin: 10px 0 0 10px;
  23766. }
  23767. .rightCardBox > div:nth-child(1) {
  23768. margin-bottom: 10px;
  23769. }
  23770. .cardCss {
  23771. display: flex;
  23772. flex-direction: column;
  23773. flex-wrap: nowrap;
  23774. align-items: center;
  23775. border-bottom: 3px solid #b4c3d3;
  23776. padding: 0 0 5px 0;
  23777. margin-right: 10px;
  23778. }
  23779. .cardCss > div:nth-child(2) {
  23780. background: #5b7b9d;
  23781. color: #fff;
  23782. width: 20px;
  23783. height: 20px;
  23784. border-radius: 50%;
  23785. text-align: center;
  23786. line-height: 20px;
  23787. }
  23788. .isWrong {
  23789. display: flex;
  23790. flex-direction: row;
  23791. flex-wrap: nowrap;
  23792. align-content: center;
  23793. align-items: center;
  23794. }
  23795. .answerRight {
  23796. width: 25%;
  23797. }
  23798. .isTj {
  23799. display: flex;
  23800. flex-direction: row;
  23801. flex-wrap: nowrap;
  23802. align-items: center;
  23803. }
  23804. .isTj > div:nth-child(2) {
  23805. color: #727070;
  23806. margin-left: 10px;
  23807. }
  23808. .isTjImg {
  23809. width: 30px;
  23810. height: 30px;
  23811. }
  23812. .isTjImg > img {
  23813. width: 100%;
  23814. height: 100%;
  23815. }
  23816. .cardAnswerBox {
  23817. font-size: 18px;
  23818. width: 97%;
  23819. border: 5px;
  23820. padding: 0;
  23821. border-radius: 5px;
  23822. margin: 10px auto;
  23823. word-break: break-word;
  23824. }
  23825. .w_name {
  23826. margin-bottom: 10px;
  23827. }
  23828. .w_name span {
  23829. font-size: 16px;
  23830. }
  23831. .w_teachert {
  23832. width: 50px !important;
  23833. position: absolute;
  23834. height: auto !important;
  23835. z-index: 10;
  23836. right: 25px;
  23837. top: -25px;
  23838. }
  23839. .group_workBox {
  23840. }
  23841. .group_workBox + .group_workBox {
  23842. margin-top: 20px;
  23843. }
  23844. .group_box {
  23845. padding-bottom: 20px;
  23846. border-bottom: 2px solid #f0f0f0;
  23847. margin-top: 10px;
  23848. }
  23849. .group_title {
  23850. display: flex;
  23851. align-items: center;
  23852. justify-content: space-between;
  23853. width: 95%;
  23854. }
  23855. .group_name {
  23856. background-image: url(../../assets/icon/groupN.png);
  23857. width: 220px;
  23858. background-size: 100% 100%;
  23859. height: 67px;
  23860. padding: 0 20px 0 43px;
  23861. box-sizing: border-box;
  23862. line-height: 63px;
  23863. color: #fff;
  23864. overflow: hidden;
  23865. white-space: nowrap;
  23866. text-overflow: ellipsis;
  23867. }
  23868. .group_work {
  23869. width: 100%;
  23870. padding: 0 10px;
  23871. box-sizing: border-box;
  23872. display: flex;
  23873. flex-wrap: wrap;
  23874. }
  23875. .g_d_box {
  23876. display: flex;
  23877. flex-flow: wrap;
  23878. justify-content: space-around;
  23879. }
  23880. .g_d_box .isChair {
  23881. background-image: url(../../assets/avatar.png) !important;
  23882. }
  23883. .g_d_group {
  23884. width: 500px;
  23885. margin-bottom: 80px;
  23886. }
  23887. .g_d_group_chair {
  23888. display: flex;
  23889. align-items: center;
  23890. justify-content: center;
  23891. }
  23892. .g_d_group_chair > div + div {
  23893. margin-left: 30px;
  23894. }
  23895. .g_d_group_chair > div,
  23896. .g_d_group_chair2 > div {
  23897. display: flex;
  23898. flex-direction: column;
  23899. align-items: center;
  23900. }
  23901. .g_d_group_chair > div > span:nth-child(1),
  23902. .g_d_group_chair2 > div > span:nth-child(1) {
  23903. background-image: url(../../assets/icon/chair.png);
  23904. width: 50px;
  23905. height: 50px;
  23906. display: block;
  23907. background-size: 100% 100%;
  23908. }
  23909. .g_d_group_tableBox {
  23910. display: flex;
  23911. align-items: center;
  23912. justify-content: center;
  23913. }
  23914. .g_d_group_chair2 {
  23915. display: flex;
  23916. flex-direction: column;
  23917. align-items: center;
  23918. justify-content: center;
  23919. }
  23920. .g_d_group_chair2 > div + div {
  23921. margin-top: 10px;
  23922. }
  23923. .g_d_group_table {
  23924. background-image: url(../../assets/icon/groupBg.png);
  23925. width: 354px;
  23926. height: 196px;
  23927. background-size: 100% 100%;
  23928. display: flex;
  23929. align-items: center;
  23930. justify-content: center;
  23931. flex-direction: column;
  23932. color: #fff;
  23933. }
  23934. .g_d_group_table > div:nth-child(1) {
  23935. font-size: 24px;
  23936. margin-bottom: 5px;
  23937. }
  23938. .g_d_group_table > div:nth-child(2) div {
  23939. cursor: pointer;
  23940. background: #2e77bf;
  23941. padding: 4px 10px;
  23942. border-radius: 5px;
  23943. }
  23944. .groupBox {
  23945. }
  23946. .groupContent + .groupContent {
  23947. margin-top: 30px;
  23948. }
  23949. .groupTitle {
  23950. font-size: 24px;
  23951. color: rgb(80, 80, 80);
  23952. margin-bottom: 20px;
  23953. }
  23954. .groupName {
  23955. display: flex;
  23956. align-items: center;
  23957. }
  23958. .groupn {
  23959. font-size: 15px;
  23960. margin-right: 10px;
  23961. }
  23962. .groupName + .groupName {
  23963. margin-top: 15px;
  23964. }
  23965. .groupBtn {
  23966. margin-left: 10px;
  23967. }
  23968. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23969. text-align: left;
  23970. }
  23971. .g_d_btnBox {
  23972. display: flex;
  23973. justify-content: flex-end;
  23974. align-items: center;
  23975. margin-bottom: 20px;
  23976. }
  23977. .updateChair {
  23978. position: relative;
  23979. }
  23980. .updateChairBtn {
  23981. position: absolute;
  23982. width: 50px;
  23983. height: 50px;
  23984. overflow: hidden;
  23985. /* display: flex; */
  23986. align-items: center;
  23987. justify-content: center;
  23988. background: #00000087;
  23989. color: #fff;
  23990. border-radius: 50px;
  23991. display: none;
  23992. cursor: pointer;
  23993. }
  23994. .updateChair:hover .updateChairBtn {
  23995. display: flex;
  23996. }
  23997. .group_staic_box {
  23998. display: flex;
  23999. padding: 30px 40px 10px;
  24000. flex-wrap: wrap;
  24001. }
  24002. .group_staic {
  24003. /* width: 50%; */
  24004. margin-bottom: 20px;
  24005. display: flex;
  24006. align-items: center;
  24007. }
  24008. .group_staic span:nth-child(1) {
  24009. width: 150px;
  24010. text-align: right;
  24011. margin-right: 15px;
  24012. }
  24013. .group_staic span:nth-child(2) {
  24014. background: rgb(0 123 255);
  24015. color: #fff;
  24016. border-radius: 5px;
  24017. padding: 5px;
  24018. }
  24019. .codeFileBox {
  24020. height: 300px;
  24021. background: #fff;
  24022. display: flex;
  24023. align-items: center;
  24024. justify-content: center;
  24025. }
  24026. .codeFileBox img {
  24027. width: 200px;
  24028. margin: 0;
  24029. height: auto;
  24030. }
  24031. .codeFileBox div {
  24032. background: rgb(80, 142, 226);
  24033. color: #fff;
  24034. padding: 10px 20px;
  24035. border-radius: 25px;
  24036. cursor: pointer;
  24037. margin-left: 15px;
  24038. }
  24039. .radioBox {
  24040. display: flex;
  24041. flex-direction: column;
  24042. flex-wrap: nowrap;
  24043. align-items: flex-start;
  24044. }
  24045. .radioBox > div {
  24046. margin: 10px 0 0 10px;
  24047. }
  24048. /* .radioBox >>> .el-radio__input,
  24049. .radioBox >>> .el-checkbox__inner {
  24050. margin-left: 10px;
  24051. } */
  24052. .radioBox >>> .el-radio__label,
  24053. .radioBox >>> .el-checkbox__label {
  24054. display: flex;
  24055. align-items: center;
  24056. width: 100%;
  24057. }
  24058. .radioBox >>> .el-radio__label > span {
  24059. width: 100%;
  24060. display: -webkit-box;
  24061. overflow: hidden;
  24062. white-space: normal !important;
  24063. text-overflow: ellipsis;
  24064. word-wrap: break-word;
  24065. }
  24066. .inImg {
  24067. width: 100px;
  24068. cursor: pointer;
  24069. }
  24070. .inImg > img {
  24071. width: 100%;
  24072. height: 100%;
  24073. object-fit: cover;
  24074. }
  24075. .timuImgBox {
  24076. margin: 10px 0;
  24077. display: flex;
  24078. flex-direction: column;
  24079. flex-wrap: wrap;
  24080. align-items: flex-start;
  24081. }
  24082. .timuImg {
  24083. width: 150px;
  24084. margin: 5px 0;
  24085. cursor: pointer;
  24086. }
  24087. .timuImg > img {
  24088. width: 100%;
  24089. height: 100%;
  24090. object-fit: cover;
  24091. }
  24092. .worksTop {
  24093. display: flex;
  24094. flex-direction: row;
  24095. align-items: flex-end;
  24096. }
  24097. .worksTitle {
  24098. display: flex;
  24099. flex-direction: row;
  24100. flex-wrap: nowrap;
  24101. align-items: center;
  24102. }
  24103. .worksTitle::before,
  24104. .worksTop::before {
  24105. content: "";
  24106. display: block;
  24107. width: 3px;
  24108. height: 20px;
  24109. background: #0061ff;
  24110. border-radius: 3px;
  24111. margin: 0 5px 0 0;
  24112. }
  24113. .corOpen {
  24114. margin: 0 0 0 10px;
  24115. font-size: 14px;
  24116. cursor: pointer;
  24117. color: #505050;
  24118. }
  24119. .corOpen:hover {
  24120. color: #499eef;
  24121. }
  24122. .navCorOpenBox {
  24123. display: flex;
  24124. flex-direction: row;
  24125. align-items: center;
  24126. justify-content: space-between;
  24127. height: 55px;
  24128. background: #ffffff;
  24129. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24130. border-radius: 8px 8px 0px 0px;
  24131. z-index: 9;
  24132. position: relative;
  24133. }
  24134. .navCorOpen {
  24135. padding-right: 15px;
  24136. cursor: pointer;
  24137. width: 45px;
  24138. display: flex;
  24139. }
  24140. .navCorOpen > img {
  24141. width: 100%;
  24142. height: 100%;
  24143. }
  24144. .mlImg {
  24145. width: 40px !important;
  24146. min-width: 40px;
  24147. cursor: pointer;
  24148. transform: rotate(180deg);
  24149. }
  24150. .mlImg > img {
  24151. width: 100%;
  24152. height: 100%;
  24153. }
  24154. .navLeftCss {
  24155. width: 100% !important;
  24156. left: 0 !important;
  24157. }
  24158. .isContentCss {
  24159. width: 100% !important;
  24160. }
  24161. .isAllWidth {
  24162. width: 100% !important;
  24163. }
  24164. .group_switch {
  24165. margin-right: 10px;
  24166. height: 30px;
  24167. display: flex;
  24168. align-items: center;
  24169. }
  24170. .group_switch > span {
  24171. margin-right: 5px;
  24172. }
  24173. .fileC_box {
  24174. padding-top: 15px;
  24175. }
  24176. .fileC_box > .fileC_title {
  24177. padding: 10px 5px 14px 10px;
  24178. border-top: 1px solid #cad1dc;
  24179. font-size: 14px;
  24180. font-weight: 400;
  24181. color: #cad1dc;
  24182. width: calc(100% - 20px);
  24183. margin: 0 auto;
  24184. box-sizing: border-box;
  24185. }
  24186. .pl_select_box {
  24187. height: 40px;
  24188. line-height: 40px;
  24189. width: 100%;
  24190. cursor: pointer;
  24191. padding: 0 20px;
  24192. box-sizing: border-box;
  24193. border-radius: 5px;
  24194. border: 1px solid #d6d6d6;
  24195. white-space: nowrap;
  24196. overflow: hidden;
  24197. text-overflow: ellipsis;
  24198. background: #fff;
  24199. text-align: left;
  24200. }
  24201. .newButton {
  24202. width: 102px;
  24203. height: 36px;
  24204. background: #e7ebf1;
  24205. border-radius: 4px;
  24206. color: #0e1e33;
  24207. font-weight: 400;
  24208. font-size: 14px;
  24209. border: none;
  24210. float: right;
  24211. margin-left: 10px;
  24212. }
  24213. .el-table >>> .even_row {
  24214. background-color: #f0f4fa;
  24215. }
  24216. .stageBoxCss,
  24217. .stageBoxIsCss {
  24218. display: flex;
  24219. flex-direction: row;
  24220. flex-wrap: nowrap;
  24221. align-items: center;
  24222. height: 50px;
  24223. border-bottom: 1px solid #e2f5fc;
  24224. cursor: pointer;
  24225. width: 100%;
  24226. }
  24227. .stageBoxIsCss {
  24228. background: #0061ff;
  24229. color: #fff;
  24230. border-radius: 8px;
  24231. }
  24232. .closeTri,
  24233. .closeTri1 {
  24234. min-width: 15px;
  24235. width: 15px;
  24236. height: 15px;
  24237. }
  24238. .closeTri1 {
  24239. padding-left: 10px;
  24240. cursor: pointer;
  24241. }
  24242. .closeTri > img,
  24243. .closeTri1 > img {
  24244. width: 100%;
  24245. height: 100%;
  24246. /* transition: all .5s; */
  24247. }
  24248. .noToolBlue {
  24249. min-width: 10px;
  24250. width: 10px;
  24251. height: 10px;
  24252. background: #0061ff;
  24253. border-radius: 50%;
  24254. margin-left: 13px;
  24255. }
  24256. .stageChild,
  24257. .toolChild {
  24258. height: 0;
  24259. overflow: hidden;
  24260. transition: all 0.5s;
  24261. }
  24262. .toolChild {
  24263. /* margin: 0 0 0 17px;
  24264. padding: 0 0 0 20px;
  24265. border-left: 1px solid #d7d7d7; */
  24266. }
  24267. .toolChild > div + div{
  24268. margin-top:5px;
  24269. }
  24270. .gjCss {
  24271. display: flex;
  24272. flex-direction: row;
  24273. flex-wrap: nowrap;
  24274. align-items: center;
  24275. padding: 10px 0 10px 40px;
  24276. box-sizing: border-box;
  24277. font-size: 14px;
  24278. cursor: pointer;
  24279. border-radius:5px;
  24280. }
  24281. .toolChild > div {
  24282. position: relative;
  24283. width: 100%;
  24284. }
  24285. .toolChild > div::before {
  24286. /* content: "";
  24287. width: 15px;
  24288. height: 1px;
  24289. background: #cad1dc;
  24290. position: absolute;
  24291. top: 24px;
  24292. left: -20px;
  24293. display: block; */
  24294. }
  24295. .isGjCss {
  24296. /* color: #0061ff; */
  24297. color:#fff;
  24298. background: rgb(55, 129, 252);
  24299. /* background-color: #e0eafb !important;
  24300. color: #0061ff !important; */
  24301. }
  24302. .navItem {
  24303. background: #ffffff;
  24304. border-radius: 4px;
  24305. width: 100%;
  24306. margin: 10px auto;
  24307. position: relative;
  24308. height: 40px;
  24309. display: flex;
  24310. flex-direction: row;
  24311. flex-wrap: nowrap;
  24312. align-items: center;
  24313. }
  24314. .navItemList {
  24315. display: flex;
  24316. flex-direction: row;
  24317. flex-wrap: nowrap;
  24318. align-items: center;
  24319. padding: 0 13px;
  24320. cursor: pointer;
  24321. width: calc(100% - 60px);
  24322. height: 100%;
  24323. }
  24324. .navItemList > div:first-child {
  24325. min-width: 60px;
  24326. }
  24327. .navItemList > div:last-child {
  24328. width: calc(100% - 80px);
  24329. white-space: nowrap;
  24330. overflow: hidden;
  24331. text-overflow: ellipsis;
  24332. word-break: break-word;
  24333. }
  24334. /* .isItemList > div {
  24335. color: #fff !important;
  24336. } */
  24337. .tool_work_box {
  24338. width: 100%;
  24339. padding: 0 37px 0;
  24340. box-sizing: border-box;
  24341. }
  24342. .tool_box {
  24343. width: 100%;
  24344. padding: 0 0 0 20px;
  24345. }
  24346. .tool_type_box {
  24347. display: flex;
  24348. flex-direction: row;
  24349. align-items: baseline;
  24350. flex-wrap: nowrap;
  24351. justify-content: flex-start;
  24352. position: relative;
  24353. }
  24354. .toolSort {
  24355. display: flex;
  24356. flex-direction: row;
  24357. flex-wrap: wrap;
  24358. justify-content: flex-start;
  24359. align-items: flex-start;
  24360. padding: 0 0 15px 0;
  24361. }
  24362. .toolSort > div {
  24363. margin: 0 10px 0 0;
  24364. width: 135px;
  24365. box-sizing: border-box;
  24366. border: 2px solid transparent;
  24367. }
  24368. .tools {
  24369. width: 100%;
  24370. display: flex;
  24371. flex-direction: column;
  24372. flex-wrap: nowrap;
  24373. align-items: flex-start;
  24374. }
  24375. .whiteBIcon {
  24376. width: fit-content;
  24377. cursor: pointer;
  24378. display: flex;
  24379. flex-direction: column;
  24380. flex-wrap: nowrap;
  24381. align-items: center;
  24382. font-size: 14px;
  24383. }
  24384. .tool:hover {
  24385. border: 2px solid #a5c7ff;
  24386. border-radius: 5px;
  24387. }
  24388. .whiteBIcon > img {
  24389. width: 65px;
  24390. height: 100%;
  24391. }
  24392. .whiteBIcon > img {
  24393. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  24394. border-radius: 15px;
  24395. }
  24396. .check {
  24397. /* width: 20px;
  24398. height: 20px; */
  24399. cursor: pointer;
  24400. margin: 10px 0;
  24401. position: absolute;
  24402. right: 2px;
  24403. top: -5px;
  24404. }
  24405. .noChoose,
  24406. .isChoose {
  24407. width: 15px;
  24408. height: 15px;
  24409. border-radius: 50%;
  24410. border: 1px solid #adadad;
  24411. }
  24412. .isChoose {
  24413. border: 4px solid #0363ff !important;
  24414. width: 10px;
  24415. height: 10px;
  24416. }
  24417. .isToolChoose {
  24418. border: 2px solid #5394ff !important;
  24419. border-radius: 5px;
  24420. box-shadow: 0 0 6px 0px #5394ff;
  24421. }
  24422. .checkDiv {
  24423. display: flex;
  24424. align-items: center;
  24425. }
  24426. .checkDiv span {
  24427. margin-left: 5px;
  24428. color: #858585;
  24429. }
  24430. .check img {
  24431. width: 20px;
  24432. height: 20px;
  24433. }
  24434. .lockTaskIcon {
  24435. width: 20px;
  24436. height: 20px;
  24437. position: absolute;
  24438. right: 10px;
  24439. top: 10px;
  24440. }
  24441. .lockTaskIcon > img {
  24442. width: 100%;
  24443. height: 100%;
  24444. }
  24445. .pick_box {
  24446. display: flex;
  24447. align-items: flex-start;
  24448. flex-wrap: wrap;
  24449. }
  24450. .selectBox {
  24451. width: 110px;
  24452. margin-left: 10px;
  24453. margin: 0 10px 0 auto;
  24454. }
  24455. .selectBox >>> .el-input__inner {
  24456. height: 30px;
  24457. line-height: 30px;
  24458. }
  24459. .selectBox >>> .el-input__icon {
  24460. line-height: 30px;
  24461. }
  24462. .sentenceTitle {
  24463. display: flex;
  24464. flex-direction: row;
  24465. flex-wrap: nowrap;
  24466. align-items: center;
  24467. }
  24468. .sentenceTitle::before {
  24469. content: attr(index);
  24470. background: #3681fc;
  24471. border-radius: 50%;
  24472. color: #fff;
  24473. width: 25px;
  24474. height: 25px;
  24475. min-width: 25px;
  24476. min-height: 25px;
  24477. text-align: center;
  24478. line-height: 25px;
  24479. margin-right: 5px;
  24480. }
  24481. .hfBox {
  24482. padding: 10px;
  24483. box-sizing: border-box;
  24484. }
  24485. .whoReplyWho {
  24486. display: flex;
  24487. flex-direction: row;
  24488. flex-wrap: nowrap;
  24489. align-items: baseline;
  24490. justify-content: flex-start;
  24491. }
  24492. .hfBottom {
  24493. display: flex;
  24494. flex-direction: row;
  24495. flex-wrap: nowrap;
  24496. align-items: center;
  24497. justify-content: space-between;
  24498. font-size: 14px;
  24499. }
  24500. .deleteHfItem {
  24501. cursor: pointer;
  24502. width: 20px;
  24503. height: 20px;
  24504. }
  24505. .deleteHfItem > img {
  24506. width: 100%;
  24507. height: 100%;
  24508. }
  24509. .whoReplyWho > .hfImg {
  24510. width: 12px;
  24511. height: 12px;
  24512. margin: 0 5px;
  24513. }
  24514. .whoReplyWho > .hfImg > img {
  24515. width: 100%;
  24516. height: 100%;
  24517. }
  24518. .hfContent {
  24519. padding-top: 10px;
  24520. box-sizing: border-box;
  24521. display: -webkit-box;
  24522. overflow: hidden;
  24523. white-space: normal !important;
  24524. text-overflow: ellipsis;
  24525. word-wrap: break-word;
  24526. -webkit-box-orient: vertical;
  24527. }
  24528. .hfTime {
  24529. text-align: left;
  24530. box-sizing: border-box;
  24531. padding: 10px 0 10px 0px;
  24532. color: #bfbfbf;
  24533. font-size: 14px;
  24534. }
  24535. .btnAllNT {
  24536. position: fixed;
  24537. bottom: 100px;
  24538. right: 40px;
  24539. z-index: 999;
  24540. display: flex;
  24541. flex-direction: row;
  24542. }
  24543. .btnAllNT > img {
  24544. cursor: pointer;
  24545. width: 80px;
  24546. }
  24547. .toolMask {
  24548. position: fixed;
  24549. width: 100%;
  24550. height: 100%;
  24551. background: #3f3c3c;
  24552. opacity: 0.5;
  24553. top: 0;
  24554. left: 0;
  24555. z-index: 999;
  24556. }
  24557. .addToolCss {
  24558. position: fixed;
  24559. z-index: 999;
  24560. background: #fff;
  24561. right: 5%;
  24562. bottom: 18%;
  24563. min-width: 1035px;
  24564. min-height: 300px;
  24565. border-radius: 10px;
  24566. box-shadow: 0 0 8px 1px #b2b2b2;
  24567. }
  24568. .toolTop {
  24569. display: flex;
  24570. flex-direction: row;
  24571. flex-wrap: nowrap;
  24572. justify-content: space-between;
  24573. align-items: center;
  24574. padding: 20px;
  24575. }
  24576. .toolTop > div:nth-child(2) {
  24577. width: 15px;
  24578. height: 15px;
  24579. padding-right: 10px;
  24580. cursor: pointer;
  24581. }
  24582. .toolTop > div:nth-child(2) > img {
  24583. width: 100%;
  24584. height: 100%;
  24585. }
  24586. .fullStyle>>>.el-dialog__body {
  24587. height: calc(100% - 125px) !important;
  24588. box-sizing: border-box;
  24589. padding: 30px 0 !important;
  24590. background: #fff !important;
  24591. }
  24592. .fullStyle>>>.el-dialog {
  24593. width: 100% !important;
  24594. max-width: 100% !important;
  24595. height: 100% !important;
  24596. margin: 0 !important;
  24597. }
  24598. .fullStyle {
  24599. width: 100% !important;
  24600. max-width: 100% !important;
  24601. height: 100% !important;
  24602. margin: 0 auto !important;
  24603. }
  24604. .fullStyle>>>.el-dialog__footer{
  24605. background: #fff !important;
  24606. }
  24607. .engUpBox {
  24608. width: 100%;
  24609. height: 100%;
  24610. }
  24611. .engTitle,
  24612. .engText {
  24613. display: flex;
  24614. flex-direction: row;
  24615. flex-wrap: nowrap;
  24616. align-items: flex-start;
  24617. padding: 0 20px 20px 20px;
  24618. box-sizing: border-box;
  24619. }
  24620. .engTitle > .div:first-child,
  24621. .engText > div:first-child {
  24622. min-width: 75px;
  24623. }
  24624. .correctBox{
  24625. width: 100%;
  24626. display: flex;
  24627. flex-direction: row;
  24628. flex-wrap: nowrap;
  24629. align-items: flex-start;
  24630. }
  24631. .oldBox{
  24632. width: 50%;
  24633. height: 100%;
  24634. display: flex;
  24635. flex-direction: column;
  24636. flex-wrap: nowrap;
  24637. align-items: center;
  24638. border-top: 1px solid #d9d9d9;
  24639. border-left: 1px solid #d9d9d9;
  24640. border-right: 1px solid #d9d9d9;
  24641. }
  24642. .oldBox>div:first-child{
  24643. width: 100%;
  24644. text-align: center;
  24645. background: #d9d9d9;
  24646. height: 35px;
  24647. line-height: 35px;
  24648. font-weight: bold;
  24649. }
  24650. .oldText{
  24651. width: 100%;
  24652. height: calc(100% - 35px);
  24653. overflow: auto;
  24654. margin: 10px 0;
  24655. display: flex;
  24656. flex-direction: column;
  24657. flex-wrap: nowrap;
  24658. align-content: center;
  24659. align-items: center;
  24660. }
  24661. .detailBox{
  24662. width: 50%;
  24663. padding: 10px;
  24664. background: #f6f6f6;
  24665. border-radius: 5px;
  24666. }
  24667. .oldDetail,.oldDetail1{
  24668. padding-bottom: 30px;
  24669. }
  24670. .oldImg{
  24671. width:30px;
  24672. height: 30px;
  24673. }
  24674. .oldImg>img{
  24675. width: 100%;
  24676. height: 100%;
  24677. }
  24678. .allName{
  24679. min-width: 200px;
  24680. white-space: nowrap;
  24681. overflow: hidden;
  24682. text-overflow: ellipsis;
  24683. word-break: break-word;
  24684. cursor: pointer;
  24685. text-align: center;
  24686. border: 1px solid #bcc2cc;
  24687. box-sizing: border-box;
  24688. }
  24689. .engUpTop{
  24690. max-height: 300px;
  24691. overflow: auto;
  24692. }
  24693. .isUpdateToolDetailClass{
  24694. padding: 0 !important;
  24695. }
  24696. .isUpdateToolDetailClass textarea{
  24697. padding:12px;
  24698. font-size: 16px;
  24699. min-height:100%;
  24700. width: 100%;
  24701. box-sizing:border-box;
  24702. outline: none;
  24703. border:none;
  24704. line-height: 30px;
  24705. resize: none;
  24706. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  24707. color: #838383;
  24708. }
  24709. .show_taskD {
  24710. min-width: fit-content;
  24711. margin-left: 10px;
  24712. display: flex;
  24713. align-items: center;
  24714. font-size: 14px;
  24715. cursor: pointer;
  24716. color: #717c8d;
  24717. }
  24718. .show_taskD > img {
  24719. width: 15px;
  24720. margin-right: 5px;
  24721. transition: 0.2s all;
  24722. transform: rotate(-90deg);
  24723. }
  24724. .show_taskD.show > img {
  24725. transform: rotate(0deg);
  24726. }
  24727. .dialog_diyCopy >>> .el-dialog__header {
  24728. display: none !important;
  24729. }
  24730. .dialog_diyCopy >>> .el-dialog__body {
  24731. padding: 0 !important;
  24732. height: 100% !important;
  24733. }
  24734. .confirmOpenDigCss > div{
  24735. font-size: 14px;
  24736. color: rgba(0, 0, 0, 0.6);
  24737. }
  24738. .confirmOpenDigCss >>> .el-dialog{
  24739. border-radius: 6px;
  24740. }
  24741. .confirmOpenDigCss >>> .el-dialog__body{
  24742. padding: 25px !important;
  24743. }
  24744. .confirmOpenDigCss > span{
  24745. font-size: 16px;
  24746. font-weight: 600;
  24747. color: rgba(0, 0, 0, 0.8);
  24748. }
  24749. .correctCss{
  24750. position: absolute;
  24751. bottom: -70px;
  24752. background: #409eff;
  24753. color: #fff;
  24754. }
  24755. div::-webkit-scrollbar {
  24756. width: 10px;
  24757. height: 6px;
  24758. }
  24759. </style>