studyStudent.vue 871 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 极简模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <!-- <div class="btnAllNT">
  16. <img
  17. v-if="
  18. courseDetail.userid == userid ||
  19. (courseDetail.course_teacher &&
  20. courseDetail.course_teacher.indexOf(userid) != -1)
  21. "
  22. src="../../assets/icon/learn/addTool.png"
  23. @click="openToolAll"
  24. style="position: relative"
  25. />
  26. <img
  27. src="../../assets/icon/learn/last.png"
  28. @click="nextOrpreSteps(0)"
  29. />
  30. <img
  31. src="../../assets/icon/learn/next.png"
  32. @click="nextOrpreSteps(1)"
  33. />
  34. <img
  35. src="../../assets/icon/learn/return.png"
  36. @click.stop="
  37. goTo(
  38. '/courseDetail?userid=' +
  39. userid +
  40. '&oid=' +
  41. oid +
  42. '&org=' +
  43. org +
  44. '&cid=' +
  45. classId +
  46. '&courseId=' +
  47. id +
  48. '&tType=' +
  49. tType +
  50. '&screenType=' +
  51. screenType
  52. )
  53. "
  54. />
  55. </div> -->
  56. <div
  57. class="pButton"
  58. style="left: 0; top: 140px"
  59. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  60. @click="setContent2(true)"
  61. >
  62. <!-- 批 , getCourseDetail()-->
  63. <img
  64. src="../../assets/icon/newIcons/isRight.png"
  65. style="width: 45px"
  66. alt=""
  67. />
  68. </div>
  69. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  70. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  71. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  72. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  73. <div
  74. style="
  75. max-width: calc(100% - 40px);
  76. width: auto;
  77. white-space: nowrap;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. word-break: break-word;
  81. display: block;
  82. "
  83. >
  84. <el-tooltip
  85. effect="light"
  86. :content="courseDetail.title"
  87. placement="top"
  88. >
  89. <div class="ctitle">
  90. {{ courseDetail.title }}
  91. </div>
  92. </el-tooltip>
  93. </div>
  94. <el-tooltip effect="light" content="收缩" placement="top">
  95. <div class="mlImg" @click="setContent2(false)">
  96. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  97. </div>
  98. </el-tooltip>
  99. </div>
  100. <div
  101. class="inviteBox"
  102. v-if="tcid && inviteCode"
  103. style="padding: 0 0 8px 0"
  104. >
  105. <div>
  106. <span>随机码:{{ inviteCode }}</span>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="cru_selectBox">
  111. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen && !nav.isLook
  160. ? 'calc(100% - 75px)'
  161. : 'auto',
  162. }"
  163. >
  164. {{ nav.taskName }}
  165. </div>
  166. </el-tooltip>
  167. </div>
  168. <div class="lockTaskIcon">
  169. <img
  170. src="../../assets/lock.png"
  171. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  172. courseDetail.course_teacher.indexOf(userid) ==-1"
  173. alt=""
  174. />
  175. </div>
  176. </div>
  177. <div
  178. v-if="nav.tool[0].tool != undefined"
  179. class="toolChild"
  180. :class="{ toolActive: nav.isOpen }"
  181. >
  182. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  183. <div
  184. class="gjCss"
  185. :class="{
  186. isGjCss: t.isTool,
  187. }"
  188. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  189. >
  190. <div>工具{{ toolIndex2 + 1 }}:</div>
  191. <div v-if="t.tool == 58">模拟驾驶</div>
  192. <div v-if="t.tool == 59">路径搜索</div>
  193. <div v-if="t.tool == 60">深度学习</div>
  194. <div v-if="t.tool == 10">倒计时</div>
  195. <div v-if="t.tool == 65">挑人</div>
  196. <div v-if="t.tool == 7">思维网格</div>
  197. <div v-if="t.tool == 1">电子白板</div>
  198. <div v-if="t.tool == 52">文档</div>
  199. <div v-if="t.tool == 3">思维导图</div>
  200. <div v-if="t.tool == 48">表格</div>
  201. <div v-if="t.tool == 49">学生分组</div>
  202. <div v-if="t.tool == 4">问卷调查</div>
  203. <div v-if="t.tool == 45">选择题</div>
  204. <div v-if="t.tool == 15">问答</div>
  205. <div v-if="t.tool == 16">作业提交</div>
  206. <div v-if="t.tool == 50">批量上传</div>
  207. <div v-if="t.tool == 41">选择匹配</div>
  208. <div v-if="t.tool == 47">排序</div>
  209. <div v-if="t.tool == 40">个人评价</div>
  210. <div v-if="t.tool == 18">训练平台</div>
  211. <div v-if="t.tool == 21">AIoT Blockly</div>
  212. <div v-if="t.tool == 23">AI Python</div>
  213. <div v-if="t.tool == 24">AI Blockly</div>
  214. <div v-if="t.tool == 32">源码编辑</div>
  215. <div v-if="t.tool == 57">CocoPi</div>
  216. <div v-if="t.tool == 63">海龟编程</div>
  217. <div v-if="t.tool == 28">翻译</div>
  218. <div v-if="t.tool == 31">数字画板</div>
  219. <div v-if="t.tool == 39">GeoGebra</div>
  220. <div v-if="t.tool == 66">公式编辑</div>
  221. <div v-if="t.tool == 67">分子结构</div>
  222. <div v-if="t.tool == 68">时间轴</div>
  223. <div v-if="t.tool == 69">英语写作</div>
  224. <div v-if="t.tool == 70">英语口语</div>
  225. <div v-if="t.tool == 25">目标管理</div>
  226. <div v-if="t.tool == 26">课程设计</div>
  227. <div v-if="t.tool == 62">交互视频</div>
  228. <div v-if="t.tool == 71">AI智能体</div>
  229. <div v-if="t.tool == 72">应用中心</div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. <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' }">
  239. <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>
  240. <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' }">
  241. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) && !['2'].includes(tType) ? '100%' : 'calc(100% - 745px)'}">
  242. <div>任务{{ taskCount + 1 }}</div>
  243. <el-tooltip
  244. effect="light"
  245. :content="
  246. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  247. "
  248. placement="top"
  249. >
  250. <div>
  251. {{
  252. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  253. .task
  254. }}
  255. </div>
  256. </el-tooltip>
  257. </div>
  258. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  259. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid) || ['2'].includes(tType)">
  260. <div class="btnLeft">
  261. <el-tooltip effect="light" content="刷新" placement="top">
  262. <div class="reBtnIcon" @click="refreshCourse">
  263. <span>刷新</span>
  264. </div>
  265. </el-tooltip>
  266. <el-tooltip effect="light" content="评论" placement="top">
  267. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  268. <span>评论</span>
  269. </div>
  270. </el-tooltip>
  271. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  272. <el-tooltip effect="light" content="录制" placement="top">
  273. <div class="vedioIcon" @click="startRecording">
  274. <span>录制</span>
  275. </div>
  276. </el-tooltip>
  277. </div>
  278. <div v-else-if="tType == 1 || tType == 4">
  279. <el-tooltip effect="light" content="下载" placement="top">
  280. <div class="vedioIcon1" @click="stopRecording">
  281. <span>下载</span>
  282. </div>
  283. </el-tooltip>
  284. </div>
  285. </div>
  286. <div class="btnRight">
  287. <div
  288. class="last"
  289. @click="nextOrpreSteps(0)"
  290. v-if="!(IsFollow && tType == 2)"
  291. @mouseover="isHovered = true"
  292. @mouseout="isHovered = false"
  293. >
  294. <div class="lastImg">
  295. <img
  296. :src="
  297. isHovered
  298. ? require('../../assets/icon/newIcons/whiteLast.png')
  299. : require('../../assets/icon/newIcons/last.png')
  300. "
  301. alt=""
  302. />
  303. </div>
  304. <div class="lastText">上一步</div>
  305. </div>
  306. <div
  307. class="last"
  308. @click="nextOrpreSteps(1)"
  309. v-if="!(IsFollow && tType == 2)"
  310. @mouseover="isHovered1 = true"
  311. @mouseout="isHovered1 = false"
  312. >
  313. <div class="lastText">下一步</div>
  314. <div class="lastImg">
  315. <img
  316. :src="
  317. isHovered1
  318. ? require('../../assets/icon/newIcons/whiteNext.png')
  319. : require('../../assets/icon/newIcons/next.png')
  320. "
  321. alt=""
  322. />
  323. </div>
  324. </div>
  325. <div
  326. class="last"
  327. @click="juriVisible = true"
  328. v-if="tType == 1"
  329. @mouseover="isHovered2 = true"
  330. @mouseout="isHovered2 = false"
  331. >
  332. <div class="lastImg">
  333. <img
  334. :src="
  335. isHovered2
  336. ? require('../../assets/icon/newIcons/whiteLock.png')
  337. : require('../../assets/icon/newIcons/lock.png')
  338. "
  339. alt=""
  340. />
  341. </div>
  342. <div class="lastText">权限</div>
  343. </div>
  344. <div
  345. class="returnBtn1 returnIcon"
  346. @click.stop="
  347. goTo(
  348. '/courseDetail?userid=' +
  349. userid +
  350. '&oid=' +
  351. oid +
  352. '&org=' +
  353. org +
  354. '&cid=' +
  355. classId +
  356. '&courseId=' +
  357. id +
  358. '&tType=' +
  359. tType +
  360. '&screenType=' +
  361. screenType
  362. )
  363. "
  364. >
  365. <div class="lastImg">
  366. <img src="../../assets/icon/newIcon/return.png" alt="" />
  367. </div>
  368. <div class="lastText" style="color: #000">返回</div>
  369. </div>
  370. </div>
  371. <!-- <div
  372. class="returnBtn lockIcon"
  373. @click="juriVisible = true"
  374. v-if="tType == 1"
  375. >
  376. 权限
  377. </div>
  378. <div
  379. class="returnBtn vedioIcon"
  380. @click="startRecording"
  381. v-if="!videoStart && (tType == 1 || tType == 4)"
  382. >
  383. 录制
  384. </div>
  385. <div
  386. class="returnBtn"
  387. @click="stopRecording"
  388. v-else-if="tType == 1 || tType == 4"
  389. style="background: #ee5255"
  390. >
  391. 下载
  392. </div>
  393. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  394. 评论
  395. </div>
  396. <div
  397. class="returnBtn"
  398. @click="nextOrpreSteps(0)"
  399. v-if="!(IsFollow && tType == 2)"
  400. >
  401. 上一步
  402. </div>
  403. <div
  404. class="returnBtn"
  405. @click="nextOrpreSteps(1)"
  406. v-if="!(IsFollow && tType == 2)"
  407. >
  408. 下一步
  409. </div>
  410. <div class="returnBtn" @click="refreshCourse">刷新</div>
  411. <div
  412. class="returnBtn returnIcon"
  413. @click.stop="
  414. goTo(
  415. '/courseDetail?userid=' +
  416. userid +
  417. '&oid=' +
  418. oid +
  419. '&org=' +
  420. org +
  421. '&cid=' +
  422. classId +
  423. '&courseId=' +
  424. id +
  425. '&tType=' +
  426. tType +
  427. '&screenType=' +
  428. screenType
  429. )
  430. "
  431. >
  432. 返回
  433. </div> -->
  434. </div>
  435. </div>
  436. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  437. .taskDetail3 && -->
  438. <div
  439. class="isNoMessage"
  440. v-if="
  441. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  442. .chapterData.length == 0 &&
  443. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  444. .toolChoose[0].tool.length == 0 &&
  445. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .taskDetail == '' &&
  447. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .eList &&
  449. !(
  450. courseDetail.userid == userid ||
  451. (courseDetail.course_teacher &&
  452. courseDetail.course_teacher.indexOf(userid) != -1)
  453. )
  454. "
  455. >
  456. <img src="../../assets/icon/isNoMessage.png" alt />
  457. </div>
  458. <div class="study_top" :class="{ pzClass: pzDialog }">
  459. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  460. .taskDetail3 || -->
  461. <div
  462. class="vedioBox"
  463. v-if="
  464. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  465. .taskDetail != '' ||
  466. vChapterData[0].length > 0 ||
  467. fileC[0].length > 0
  468. "
  469. style="border-radius: 0 0 20px 20px"
  470. >
  471. <!-- <div
  472. class="taskBox"
  473. v-if="
  474. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  475. .taskDetail3
  476. "
  477. >
  478. <div
  479. style="
  480. display: flex;
  481. flex-wrap: nowrap;
  482. flex-direction: column;
  483. position: relative;
  484. "
  485. >
  486. <div
  487. style="
  488. padding: 15px 0;
  489. line-height: 29px;
  490. font-size: 18px;
  491. color: #0e1e33;
  492. "
  493. class="cont"
  494. v-if="
  495. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  496. .taskDetail3 != ''
  497. "
  498. v-html="
  499. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  500. .taskDetail3
  501. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  502. taskCount
  503. ].taskDetail3)
  504. : '暂无描述'
  505. "
  506. ></div>
  507. </div>
  508. </div> -->
  509. <div
  510. class="taskBox"
  511. v-if="
  512. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  513. .taskDetail != ''
  514. "
  515. >
  516. <div
  517. style="
  518. display: flex;
  519. flex-wrap: nowrap;
  520. flex-direction: column;
  521. position: relative;
  522. "
  523. >
  524. <div
  525. style="
  526. padding: 15px 0;
  527. line-height: 29px;
  528. font-size: 18px;
  529. color: #0e1e33;
  530. "
  531. class="cont"
  532. v-if="
  533. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  534. .taskDetail != ''
  535. "
  536. v-html="
  537. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  538. .taskDetail
  539. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  540. taskCount
  541. ].taskDetail
  542. : '暂无描述'
  543. "
  544. ></div>
  545. </div>
  546. </div>
  547. <div
  548. class="student_head"
  549. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  550. >
  551. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  552. <div
  553. :class="
  554. contentDialog == false
  555. ? 'box_course isContentCss'
  556. : 'box_course'
  557. "
  558. v-if="
  559. vChapterData.length > 0 &&
  560. vChapterData[0] &&
  561. showType !== ''
  562. "
  563. >
  564. <div class="wheel" style="height: auto" v-if="showType === 0">
  565. <div
  566. class="workd_media"
  567. style="height: 650px; width: calc(100% - 50px)"
  568. >
  569. <video-player
  570. class="video-player vjs-custom-skin"
  571. :class="contentDialog == false ? 'isAllWidth' : ''"
  572. :playsinline="true"
  573. :options="playerO[0]"
  574. @play="onPlayerPlay($event)"
  575. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  576. ></video-player>
  577. </div>
  578. </div>
  579. <div
  580. class="wheel"
  581. v-if="showType == 1"
  582. style="
  583. box-shadow: 0 0 6px 1px #f2f2f2;
  584. width: 95%;
  585. margin: 0 auto;
  586. background: #f1f1f1;
  587. "
  588. >
  589. <div class="title">查看文档</div>
  590. <el-form class="textBox">
  591. <el-form-item class="textTitle">
  592. <div style="font-size: 22px">
  593. {{ text.name }}
  594. </div>
  595. </el-form-item>
  596. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  597. <div v-html="text.url" class="textContent cont"></div>
  598. </el-form>
  599. </div>
  600. <div
  601. class="wheel"
  602. v-if="
  603. pptImgUrl1.indexOf(
  604. 'https://view.officeapps.live.com/op/view.aspx?src='
  605. ) != -1 && showType == 2
  606. "
  607. style="width: 95%; margin: 0 auto"
  608. >
  609. <iframe
  610. style="width: 100%; height: 100%; border: none"
  611. :src="pptImgUrl1"
  612. ></iframe>
  613. </div>
  614. <div
  615. class="wheel"
  616. v-else-if="showType == 2"
  617. style="width: 95%; margin: 0 auto"
  618. >
  619. <iframe
  620. style="width: 100%; height: 100%; border: none"
  621. v-if="pptImgUrl1.indexOf('knowledge.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('cloud.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('app.cocorobo.cn')!=-1"
  622. :src="pptImgUrl1"
  623. ></iframe>
  624. <iframe
  625. style="width: 100%; height: 100%; border: none"
  626. security="restricted"
  627. v-else
  628. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  629. :src="pptImgUrl1"
  630. ></iframe>
  631. </div>
  632. <div
  633. class="wheel"
  634. v-if="showType == 3"
  635. style="width: 95%; margin: 0 auto"
  636. >
  637. <pdf
  638. :pdfUrl="pptImgUrl1"
  639. style="width: 100%; height: 100%; overflow: auto"
  640. ></pdf>
  641. </div>
  642. <div
  643. class="wheel"
  644. v-if="showType == 4"
  645. style="width: 95%; margin: 0 auto"
  646. >
  647. <el-image
  648. :src="pptImgUrl1"
  649. fit="contain"
  650. style="width: 100%; height: 100%; cursor: pointer"
  651. @click="previewImg(pptImgUrl1)"
  652. ></el-image>
  653. </div>
  654. </div>
  655. <div
  656. class="pButton"
  657. style="position: absolute; right: 20px; top: 0; z-index: 998"
  658. v-if="!contentDialog"
  659. @click="setContent(true)"
  660. >
  661. <!-- 批 -->
  662. <img
  663. src="../../assets/icon/newIcons/isLeft.png"
  664. style="width: 45px"
  665. alt=""
  666. />
  667. </div>
  668. <div
  669. v-if="contentDialog == true"
  670. :style="{
  671. width:
  672. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  673. showType === ''
  674. ? 'calc(100%)'
  675. : '300px',
  676. margin:
  677. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  678. showType === ''
  679. ? '0 15px'
  680. : '0 15px 0 0',
  681. }"
  682. >
  683. <div
  684. class="vedioList"
  685. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  686. style="height: 650px"
  687. >
  688. <div class="navCorOpenBox">
  689. <div class="navTitile">内容列表:</div>
  690. <div class="navCorOpen" @click="setContent(false)">
  691. <img
  692. src="../../assets/icon/newIcons/isRight.png"
  693. alt=""
  694. />
  695. </div>
  696. </div>
  697. <div class="navBox">
  698. <div
  699. v-show="
  700. vChapterData[0].length > 0 || fileC[0].length > 0
  701. "
  702. style="padding: 10px 0 25px 0"
  703. >
  704. <div
  705. class="vedioTimeBox"
  706. v-for="(vitem, vindex) in vChapterData[0]"
  707. :key="vindex + '1'"
  708. >
  709. <div class="navListItem" v-if="vitem.type == 2">
  710. <div
  711. @click="lookVedio(vitem.url, vindex)"
  712. class="navText"
  713. :class="isClickNav == vindex ? 'isClickNav' : ''"
  714. >
  715. <span v-if="vitem.text">{{ vitem.text }}-</span
  716. >{{ vitem.name }}
  717. </div>
  718. <div class="downIcon" @click="downloadFile2(vitem)">
  719. <img
  720. src="../../assets/icon/newIcon/down.png"
  721. alt
  722. />
  723. </div>
  724. </div>
  725. <div class="navListItem" v-if="vitem.type == 6">
  726. <div
  727. @click="lookText(0, vindex)"
  728. class="navText"
  729. :class="isClickNav == vindex ? 'isClickNav' : ''"
  730. >
  731. {{ vitem.name }}.doc
  732. </div>
  733. <div
  734. class="downIcon"
  735. @click="checkFileFull1(vitem.type, vitem)"
  736. >
  737. <img
  738. src="../../assets/icon/newIcon/allScreen.png"
  739. alt
  740. />
  741. </div>
  742. </div>
  743. <div
  744. class="navListItem"
  745. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  746. >
  747. <div
  748. @click="doUrl(vitem.url, vindex)"
  749. class="navText"
  750. :class="isClickNav == vindex ? 'isClickNav' : ''"
  751. >
  752. {{ vitem.title ? vitem.title : vitem.url }}
  753. </div>
  754. <div
  755. class="downIcon"
  756. @click="checkFileFull1(vitem.type, vitem)"
  757. >
  758. <img
  759. src="../../assets/icon/newIcon/allScreen.png"
  760. alt
  761. />
  762. </div>
  763. </div>
  764. <div class="navListItem" v-if="vitem.type == 3">
  765. <div
  766. @click="downFile(vitem, vindex)"
  767. class="navText"
  768. :class="isClickNav == vindex ? 'isClickNav' : ''"
  769. >
  770. <span v-if="vitem.text">{{ vitem.text }}-</span
  771. >{{ vitem.name }}
  772. </div>
  773. <div
  774. class="downIcon"
  775. @click="checkFileFull1(vitem.type, vitem)"
  776. >
  777. <img
  778. src="../../assets/icon/newIcon/allScreen.png"
  779. alt
  780. />
  781. </div>
  782. <div class="downIcon" @click="downloadFile2(vitem)">
  783. <img
  784. src="../../assets/icon/newIcon/down.png"
  785. alt
  786. />
  787. </div>
  788. </div>
  789. <div class="navListItem" v-if="vitem.type == 12">
  790. <div class="navText" @click="downloadFile2(vitem)">
  791. <span v-if="vitem.text">{{ vitem.text }}-</span
  792. >{{ vitem.name }}
  793. </div>
  794. <div
  795. class="downIcon"
  796. @click="checkFileFull1(vitem.type, vitem)"
  797. >
  798. <img
  799. src="../../assets/icon/newIcon/allScreen.png"
  800. alt
  801. />
  802. </div>
  803. <div class="downIcon" @click="downloadFile2(vitem)">
  804. <img
  805. src="../../assets/icon/newIcon/down.png"
  806. alt
  807. />
  808. </div>
  809. </div>
  810. <div class="navListItem" v-if="vitem.type == 13">
  811. <div
  812. class="navText"
  813. @click="checkPhoto(vitem, vindex)"
  814. :class="isClickNav == vindex ? 'isClickNav' : ''"
  815. >
  816. {{ vitem.name }}
  817. </div>
  818. <div class="downIcon" @click="downloadFile2(vitem)">
  819. <img
  820. src="../../assets/icon/newIcon/down.png"
  821. alt
  822. />
  823. </div>
  824. </div>
  825. </div>
  826. <div class="fileC_box" v-if="fileC[0].length > 0">
  827. <div class="fileC_title">以下文件不支持预览</div>
  828. <div
  829. class="vedioTimeBox"
  830. v-for="(vitem, vindex) in fileC[0]"
  831. :key="vindex + '1'"
  832. >
  833. <div class="navListItem" v-if="vitem.type == 12">
  834. <div class="navText" style="color: #acb4bf">
  835. <span v-if="vitem.text">{{ vitem.text }}-</span
  836. >{{ vitem.name }}
  837. </div>
  838. <div
  839. class="downIcon"
  840. @click="downloadFile2(vitem)"
  841. >
  842. <img
  843. src="../../assets/icon/newIcon/down.png"
  844. alt
  845. />
  846. </div>
  847. </div>
  848. </div>
  849. </div>
  850. </div>
  851. </div>
  852. </div>
  853. </div>
  854. </div>
  855. <div style="width: calc(100% - 315px)">
  856. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  857. <!-- <el-button
  858. type="primary"
  859. class="newButton"
  860. @click="checkFileFull(showType, pptImgUrl1)"
  861. >全屏查看</el-button
  862. >
  863. <el-button
  864. type="primary"
  865. class="newButton"
  866. @click="downloadFile(pptImgUrl1)"
  867. v-if="showType != 2"
  868. >文件下载</el-button
  869. > -->
  870. <el-button
  871. v-if="
  872. showType == 2 &&
  873. pptImgUrl1.indexOf(
  874. 'https://view.officeapps.live.com/op/view.aspx?src='
  875. ) == -1
  876. "
  877. type="primary"
  878. class="newButton"
  879. @click="openLine(pptImgUrl1)"
  880. >打开链接
  881. </el-button>
  882. </div>
  883. <!-- <div
  884. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  885. v-if="showType == 1"
  886. >
  887. <el-button
  888. type="primary"
  889. class="newButton"
  890. @click="checkFileFull(showType, text)"
  891. >全屏查看</el-button
  892. >
  893. </div> -->
  894. </div>
  895. </div>
  896. </div>
  897. <div class="student_body" v-resize="resize">
  898. <div
  899. class="vedioBox"
  900. :style="{
  901. borderRadius:
  902. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  903. .taskDetail == '' &&
  904. vChapterData[taskCount].length == 0 &&
  905. fileC[taskCount].length == 0
  906. ? '0 0 20px 20px'
  907. : '20px',
  908. }"
  909. v-if="
  910. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  911. .toolChoose[0].tool &&
  912. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  913. .toolChoose[0].tool.length > 0
  914. "
  915. >
  916. <div
  917. class="toolHeng2"
  918. style="position: relative"
  919. v-if="
  920. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  921. .toolChoose[0].tool &&
  922. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  923. .toolChoose[0].tool.length &&
  924. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  925. .toolChoose[0].tool.length > 0
  926. "
  927. >
  928. <div class="workNav">工作区</div>
  929. <div
  930. class="filebox"
  931. style="flex-wrap: nowrap"
  932. v-for="(tool, toolIndex) in chapInfoList[courseType]
  933. .chapterInfo[0].taskJson[taskCount].toolChoose"
  934. :key="toolIndex"
  935. >
  936. <div class="bzBox">
  937. <div class="yCss"></div>
  938. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  939. 工具{{ toolIndex + 1 }}
  940. </div>
  941. <div
  942. v-if="timeWorkList[toolIndex].length > 0"
  943. style="margin: 0 0 0 10px"
  944. >
  945. {{
  946. timeWorkList[toolIndex][0].time
  947. ? "时间:" + timeWorkList[toolIndex][0].time
  948. : ""
  949. }}
  950. </div>
  951. </div>
  952. <div class="toolBox">
  953. <div>
  954. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  955. :key="indexTool"-->
  956. <!-- <div class="iframeBox">
  957. <div
  958. class="addPoint isBorder"
  959. v-for="(tooC, toolCIndex) in tool.tool"
  960. :key="toolCIndex"
  961. >
  962. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  963. <div
  964. class="iframeName"
  965. >
  966. 电子白板
  967. </div>
  968. <iframe
  969. src="https://iwb.cocorobo.cn/"
  970. ref="whiteBoard"
  971. ></iframe>
  972. </div>
  973. </div>
  974. </div>-->
  975. <div class="noiframeBox">
  976. <div
  977. class="addPoint"
  978. v-for="(tooC, toolCIndex) in tool.tool"
  979. :key="toolCIndex"
  980. >
  981. <div v-if="tooC == 1">
  982. <img
  983. src="../../assets/icon/secondToolList/whiteBoard.png"
  984. alt
  985. @click="addTools(tooC, toolIndex, taskCount)"
  986. />
  987. <div style="margin: 5px 0">电子白板</div>
  988. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  989. style="position: absolute;right: 33px;top: -30px;">
  990. 分析
  991. </div>
  992. </div>
  993. <div v-if="tooC == 3">
  994. <img
  995. src="../../assets/icon/secondToolList/mindMapping.png"
  996. alt
  997. @click="addTools(tooC, toolIndex, taskCount)"
  998. />
  999. <div style="margin: 5px 0">思维导图</div>
  1000. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1001. style="position: absolute;right: 33px;top: -30px;">
  1002. 分析
  1003. </div>
  1004. </div>
  1005. <div v-if="tooC == 6">
  1006. <img
  1007. src="../../assets/icon/secondToolList/doc.png"
  1008. alt
  1009. @click="addTools(tooC, toolIndex, taskCount)"
  1010. />
  1011. <div style="margin: 5px 0">协同文档</div>
  1012. </div>
  1013. <div v-if="tooC == 7">
  1014. <img
  1015. src="../../assets/icon/secondToolList/mindNetwork.png"
  1016. alt
  1017. @click="addTools(tooC, toolIndex, taskCount)"
  1018. />
  1019. <div style="margin: 5px 0">思维网格</div>
  1020. <!-- && worksStudent[toolIndex].length>0 -->
  1021. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1022. style="position: absolute;right: 33px;top: -30px;">
  1023. 分析
  1024. </div>
  1025. </div>
  1026. <div v-if="tooC == 8">
  1027. <img
  1028. src="../../assets/icon/secondToolList/library.png"
  1029. alt
  1030. @click="addTools(tooC, toolIndex, taskCount)"
  1031. />
  1032. <div style="margin: 5px 0">素材库</div>
  1033. </div>
  1034. <div v-if="tooC == 17">
  1035. <img
  1036. src="../../assets/icon/secondToolList/library.png"
  1037. alt
  1038. @click="addTools(tooC, toolIndex, taskCount)"
  1039. />
  1040. <div style="margin: 5px 0">学习资料</div>
  1041. </div>
  1042. <div v-if="tooC == 2">
  1043. <img
  1044. @click="addTools(tooC, toolIndex, taskCount)"
  1045. src="../../assets/icon/secondToolList/note.png"
  1046. alt
  1047. />
  1048. <div style="margin: 5px 0">便签</div>
  1049. </div>
  1050. <div v-if="tooC == 4">
  1051. <img
  1052. @click="addTools(tooC, toolIndex, taskCount)"
  1053. src="../../assets/icon/thirdToolList/ask.png"
  1054. alt
  1055. />
  1056. <div style="margin: 5px 0">问卷调查</div>
  1057. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1058. style="position: absolute;right: 153px;top: -30px;">
  1059. 分析
  1060. </div>
  1061. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1062. style="position: absolute;right: 33px;top: -30px;">
  1063. 统计分析
  1064. </div>
  1065. </div>
  1066. <div v-if="tooC == 45">
  1067. <img
  1068. @click="addTools(tooC, toolIndex, taskCount)"
  1069. src="../../assets/icon/thirdToolList/choose.png"
  1070. alt
  1071. />
  1072. <div style="margin: 5px 0">选择题</div>
  1073. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1074. style="position: absolute;right: 33px;top: -30px;">
  1075. 分析
  1076. </div>
  1077. </div>
  1078. <!-- <div v-if="tooC == 5">
  1079. <img
  1080. @click="addTools(tooC, toolIndex, taskCount)"
  1081. src="../../assets/icon/thirdToolList/score.png"
  1082. alt
  1083. />
  1084. <div style="margin: 5px 0">量规评分</div>
  1085. </div> -->
  1086. <div v-if="tooC == 10">
  1087. <img
  1088. @click="addTools(tooC, toolIndex, taskCount)"
  1089. src="../../assets/icon/thirdToolList/time.png"
  1090. alt
  1091. />
  1092. <div style="margin: 5px 0">倒计时</div>
  1093. </div>
  1094. <div v-if="tooC == 15">
  1095. <img
  1096. @click="addTools(tooC, toolIndex, taskCount)"
  1097. src="../../assets/icon/thirdToolList/answer.png"
  1098. alt
  1099. />
  1100. <div style="margin: 5px 0">问答</div>
  1101. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1102. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1103. 分析
  1104. </div>
  1105. </div>
  1106. <div v-if="tooC == 26">
  1107. <img
  1108. @click="addTools(tooC, toolIndex, taskCount)"
  1109. src="../../assets/icon/thirdToolList/courseDesign.png"
  1110. alt
  1111. />
  1112. <div style="margin: 5px 0">课程设计</div>
  1113. </div>
  1114. <div v-if="tooC == 18">
  1115. <img
  1116. @click="addTools(tooC, toolIndex, taskCount)"
  1117. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1118. alt
  1119. />
  1120. <div style="margin: 5px 0">训练服务器</div>
  1121. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1122. style="position: absolute;right: 33px;top: -30px;">
  1123. 分析
  1124. </div>
  1125. </div>
  1126. <div v-if="tooC == 16">
  1127. <img
  1128. @click="addTools(tooC, toolIndex, taskCount)"
  1129. src="../../assets/icon/thirdToolList/work.png"
  1130. alt
  1131. />
  1132. <div style="margin: 5px 0">作业提交</div>
  1133. </div>
  1134. <div v-if="tooC == 50">
  1135. <img
  1136. @click="addTools(tooC, toolIndex, taskCount)"
  1137. src="../../assets/icon/thirdToolList/plwork.png"
  1138. alt
  1139. />
  1140. <div style="margin: 5px 0">批量上传</div>
  1141. </div>
  1142. <div v-if="tooC == 21">
  1143. <img
  1144. @click="addTools(tooC, toolIndex, taskCount)"
  1145. src="../../assets/icon/fourthToolList/program.png"
  1146. alt
  1147. />
  1148. <div style="margin: 5px 0">AIoT Blockly</div>
  1149. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1150. style="position: absolute;right: 33px;top: -30px;">
  1151. 分析
  1152. </div>
  1153. </div>
  1154. <!-- <div v-if="tooC == 22">
  1155. <img
  1156. @click="addTools(tooC, toolIndex, taskCount)"
  1157. src="../../assets/icon/fourthToolList/program.png"
  1158. alt
  1159. />
  1160. <div style="margin: 5px 0">AI体验</div>
  1161. </div> -->
  1162. <div v-if="tooC == 23">
  1163. <img
  1164. @click="addTools(tooC, toolIndex, taskCount)"
  1165. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1166. alt
  1167. />
  1168. <div style="margin: 5px 0">AI Python</div>
  1169. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1170. style="position: absolute;right: 33px;top: -30px;">
  1171. 分析
  1172. </div>
  1173. </div>
  1174. <div v-if="tooC == 24">
  1175. <img
  1176. @click="addTools(tooC, toolIndex, taskCount)"
  1177. src="../../assets/icon/fourthToolList/AIprogram.png"
  1178. alt
  1179. />
  1180. <div style="margin: 5px 0">AI Blockly</div>
  1181. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1182. style="position: absolute;right: 33px;top: -30px;">
  1183. 分析
  1184. </div>
  1185. </div>
  1186. <div v-if="tooC == 25">
  1187. <img
  1188. @click="addTools(tooC, toolIndex, taskCount)"
  1189. src="../../assets/icon/thirdToolList/evalua.png"
  1190. alt
  1191. />
  1192. <div style="margin: 5px 0">目标管理</div>
  1193. </div>
  1194. <div v-if="tooC == 31">
  1195. <img
  1196. @click="addTools(tooC, toolIndex, taskCount)"
  1197. src="../../assets/icon/secondToolList/networkPanel.png"
  1198. alt
  1199. />
  1200. <div style="margin: 5px 0">数学画板</div>
  1201. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1202. style="position: absolute;right: 33px;top: -30px;">
  1203. 分析
  1204. </div>
  1205. </div>
  1206. <div v-if="tooC == 28">
  1207. <img
  1208. @click="addTools(tooC, toolIndex, taskCount)"
  1209. src="../../assets/icon/secondToolList/translation.png"
  1210. alt
  1211. />
  1212. <div style="margin: 5px 0">翻译</div>
  1213. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1214. style="position: absolute;right: 33px;top: -30px;">
  1215. 分析
  1216. </div>
  1217. </div>
  1218. <div v-if="tooC == 37">
  1219. <img
  1220. @click="addTools(tooC, toolIndex, taskCount)"
  1221. src="../../assets/icon/secondToolList/mohe.png"
  1222. alt
  1223. />
  1224. <div style="margin: 5px 0">魔盒识字</div>
  1225. </div>
  1226. <div v-if="tooC == 38">
  1227. <img
  1228. @click="addTools(tooC, toolIndex, taskCount)"
  1229. src="../../assets/icon/secondToolList/24game.png"
  1230. alt
  1231. />
  1232. <div style="margin: 5px 0">24点</div>
  1233. </div>
  1234. <div v-if="tooC == 39">
  1235. <img
  1236. @click="addTools(tooC, toolIndex, taskCount)"
  1237. src="../../assets/icon/secondToolList/GeoGebra.png"
  1238. alt
  1239. />
  1240. <div style="margin: 5px 0">GeoGebra</div>
  1241. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1242. style="position: absolute;right: 33px;top: -30px;">
  1243. 分析
  1244. </div>
  1245. </div>
  1246. <div v-if="tooC == 32">
  1247. <img
  1248. @click="addTools(tooC, toolIndex, taskCount)"
  1249. src="../../assets/icon/thirdToolList/code.png"
  1250. alt
  1251. />
  1252. <div style="margin: 5px 0">源码编辑</div>
  1253. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1254. style="position: absolute;right: 153px;top: -42px;">
  1255. 分析
  1256. </div>
  1257. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1258. style="position: absolute;left: 110px;bottom: 30px;">
  1259. 上传文件
  1260. <input type="file" accept="*" style="display: none"
  1261. @change="beforeUpload1($event, 7, toolIndex)" />
  1262. </div> -->
  1263. </div>
  1264. <div v-if="tooC == 40">
  1265. <img
  1266. @click="addTools(tooC, toolIndex, taskCount)"
  1267. src="../../assets/icon/secondToolList/eval.png"
  1268. alt
  1269. />
  1270. <div style="margin: 5px 0">个人评价</div>
  1271. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1272. style="position: absolute;right: 33px;top: -30px;">
  1273. 分析
  1274. </div>
  1275. </div>
  1276. <div v-if="tooC == 41">
  1277. <img
  1278. @click="addTools(tooC, toolIndex, taskCount)"
  1279. src="../../assets/icon/thirdToolList/select.png"
  1280. alt
  1281. />
  1282. <div style="margin: 5px 0">选择匹配</div>
  1283. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1284. style="position: absolute;right: 33px;top: -30px;">
  1285. 分析
  1286. </div>
  1287. </div>
  1288. <div v-if="tooC == 44">
  1289. <img
  1290. @click="addTools(tooC, toolIndex, taskCount)"
  1291. src="../../assets/icon/thirdToolList/hanClass.png"
  1292. alt
  1293. />
  1294. <div style="margin: 5px 0">汉字宫</div>
  1295. </div>
  1296. <div v-if="tooC == 47">
  1297. <img
  1298. @click="addTools(tooC, toolIndex, taskCount)"
  1299. src="../../assets/icon/fourthToolList/conSentences.png"
  1300. alt
  1301. />
  1302. <div style="margin: 5px 0">排序</div>
  1303. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1304. style="position: absolute;right: 33px;top: -30px;">
  1305. 分析
  1306. </div>
  1307. </div>
  1308. <div v-if="tooC == 48">
  1309. <img
  1310. @click="addTools(tooC, toolIndex, taskCount)"
  1311. src="../../assets/icon/fourthToolList/table.png"
  1312. alt
  1313. />
  1314. <div style="margin: 5px 0">表格</div>
  1315. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1316. style="position: absolute;right: 33px;top: -30px;">
  1317. 分析
  1318. </div>
  1319. </div>
  1320. <div v-if="tooC == 52">
  1321. <img
  1322. @click="addTools(tooC, toolIndex, taskCount)"
  1323. src="../../assets/icon/fourthToolList/text.png"
  1324. alt
  1325. />
  1326. <div style="margin: 5px 0">文档</div>
  1327. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1328. style="position: absolute;right: 33px;top: -30px;">
  1329. 分析
  1330. </div>
  1331. </div>
  1332. <div v-if="tooC == 49">
  1333. <img
  1334. @click="addTools(tooC, toolIndex, taskCount)"
  1335. src="../../assets/icon/fourthToolList/group.png"
  1336. alt
  1337. />
  1338. <div style="margin: 5px 0">学生分组</div>
  1339. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1340. style="position: absolute;right: 33px;top: -30px;">
  1341. 分析
  1342. </div>
  1343. </div>
  1344. <div v-if="tooC == 57">
  1345. <img
  1346. @click="addTools(tooC, toolIndex, taskCount)"
  1347. src="../../assets/icon/fourthToolList/cocopi.png"
  1348. alt
  1349. />
  1350. <div style="margin: 5px 0">CocoPi</div>
  1351. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1352. style="position: absolute;right: 33px;top: -30px;">
  1353. 分析
  1354. </div>
  1355. </div>
  1356. <div v-if="tooC == 58">
  1357. <img
  1358. @click="addTools(tooC, toolIndex, taskCount)"
  1359. src="../../assets/icon/fourthToolList/car.png"
  1360. alt
  1361. />
  1362. <div style="margin: 5px 0">模拟驾驶</div>
  1363. </div>
  1364. <div v-if="tooC == 59">
  1365. <img
  1366. @click="addTools(tooC, toolIndex, taskCount)"
  1367. src="../../assets/icon/fourthToolList/lineSearch.png"
  1368. alt
  1369. />
  1370. <div style="margin: 5px 0">路径搜索</div>
  1371. </div>
  1372. <div v-if="tooC == 60">
  1373. <img
  1374. @click="addTools(tooC, toolIndex, taskCount)"
  1375. src="../../assets/icon/fourthToolList/deepLearning.png"
  1376. alt
  1377. />
  1378. <div style="margin: 5px 0">深度学习</div>
  1379. </div>
  1380. <div v-if="tooC == 61">
  1381. <img
  1382. @click="addTools(tooC, toolIndex, taskCount)"
  1383. src="../../assets/icon/fourthToolList/allHistory.png"
  1384. alt
  1385. />
  1386. <div style="margin: 5px 0">全历史</div>
  1387. </div>
  1388. <div v-if="tooC == 62">
  1389. <img
  1390. @click="addTools(tooC, toolIndex, taskCount)"
  1391. src="../../assets/icon/fourthToolList/interVideo.png"
  1392. alt
  1393. />
  1394. <div style="margin: 5px 0">交互视频</div>
  1395. </div>
  1396. <div v-if="tooC == 63">
  1397. <img
  1398. @click="addTools(tooC, toolIndex, taskCount)"
  1399. src="../../assets/icon/fourthToolList/Wood.png"
  1400. alt
  1401. />
  1402. <div style="margin: 5px 0">海龟编程</div>
  1403. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1404. style="position: absolute;right: 33px;top: -30px;">
  1405. 分析
  1406. </div>
  1407. </div>
  1408. <div v-if="tooC == 71">
  1409. <img
  1410. @click="addTools(tooC, toolIndex, taskCount)"
  1411. src="../../assets/icon/fourthToolList/chatgpt.png"
  1412. alt
  1413. />
  1414. <div style="margin: 5px 0">AI智能体</div>
  1415. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1416. style="position: absolute;right: 33px;top: -30px;">
  1417. 分析
  1418. </div>
  1419. </div>
  1420. <div v-if="tooC == 72">
  1421. <img
  1422. style="height: 85px;object-fit: cover;"
  1423. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1424. @click="addTools(tooC, toolIndex, taskCount)"
  1425. :src="tool.appJson.json.icon"
  1426. alt
  1427. />
  1428. <img
  1429. v-else
  1430. @click="addTools(tooC, toolIndex, taskCount)"
  1431. src="../../assets/icon/firstToolList/appStore.png"
  1432. alt
  1433. />
  1434. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1435. <!-- content to trigger tooltip here -->
  1436. <div class="Ovh">
  1437. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1438. </div>
  1439. </el-tooltip>
  1440. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1441. style="position: absolute;right: 33px;top: -30px;">
  1442. 分析
  1443. </div>
  1444. </div>
  1445. <div v-if="tooC == 65">
  1446. <img
  1447. @click="addTools(tooC, toolIndex, taskCount)"
  1448. src="../../assets/icon/firstToolList/pickPeople.png"
  1449. alt
  1450. />
  1451. <div style="margin: 5px 0">挑人</div>
  1452. </div>
  1453. <div v-if="tooC == 66">
  1454. <img
  1455. @click="addTools(tooC, toolIndex, taskCount)"
  1456. src="../../assets/icon/secondToolList/formulaEdi.png"
  1457. alt
  1458. />
  1459. <div style="margin: 5px 0">公式编辑</div>
  1460. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1461. style="position: absolute;right: 33px;top: -30px;">
  1462. 分析
  1463. </div>
  1464. </div>
  1465. <div v-if="tooC == 67">
  1466. <img
  1467. @click="addTools(tooC, toolIndex, taskCount)"
  1468. src="../../assets/icon/secondToolList/molStr.png"
  1469. alt
  1470. />
  1471. <div style="margin: 5px 0">分子结构</div>
  1472. </div>
  1473. <div v-if="tooC == 68">
  1474. <img
  1475. @click="addTools(tooC, toolIndex, taskCount)"
  1476. src="../../assets/icon/secondToolList/timeAxis.png"
  1477. alt
  1478. />
  1479. <div style="margin: 5px 0">时间轴</div>
  1480. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1481. style="position: absolute;right: 33px;top: -30px;">
  1482. 分析
  1483. </div> -->
  1484. </div>
  1485. <div v-if="tooC == 69">
  1486. <img
  1487. @click="addTools(tooC, toolIndex, taskCount)"
  1488. src="../../assets/icon/secondToolList/english.png"
  1489. alt
  1490. />
  1491. <div style="margin: 5px 0">英语写作</div>
  1492. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1493. style="position: absolute;right: 33px;top: -30px;">
  1494. 分析
  1495. </div>
  1496. </div>
  1497. <div v-if="tooC == 70">
  1498. <img
  1499. @click="addTools(tooC, toolIndex, taskCount)"
  1500. src="../../assets/icon/thirdToolList/englishVoice.png"
  1501. alt
  1502. />
  1503. <div style="margin: 5px 0">英语口语</div>
  1504. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1505. style="position: absolute;right: 33px;top: -30px;">
  1506. 分析
  1507. </div>
  1508. </div>
  1509. </div>
  1510. </div>
  1511. </div>
  1512. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1513. <!-- <div class="toolTitle">工具描述</div> -->
  1514. <!-- @click.stop="updateToolDetail(toolIndex, 2)" 点击开启修改-->
  1515. <div style="height:100%;"
  1516. v-html="contentConvent(tool.toolDetail)"
  1517. v-if="toolDetailIndex != toolIndex"
  1518. ></div>
  1519. <div v-else @click.stop="" style="height:100%;">
  1520. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1521. </div>
  1522. </div>
  1523. <el-button
  1524. type="primary"
  1525. v-if="tool.tool[0] == 32"
  1526. style="position: absolute; right: 30px; top: -45px"
  1527. @click="addImg($event)"
  1528. >上传作业<input
  1529. type="file"
  1530. accept="*"
  1531. style="display: none"
  1532. @change="beforeUpload1($event, 7, toolIndex)"
  1533. /></el-button>
  1534. <el-button
  1535. type="primary"
  1536. v-if="tool.tool[0] == 15"
  1537. style="position: absolute; right: 30px; top: -45px"
  1538. @click="openWordCloud(toolIndex)"
  1539. >生成词云</el-button
  1540. >
  1541. <el-button
  1542. type="primary"
  1543. v-if="
  1544. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1 && tType==1
  1545. "
  1546. style="position: absolute; right: 30px; top: -45px"
  1547. @click="uploadWorks(toolIndex)"
  1548. >导出作业</el-button
  1549. >
  1550. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1551. position: absolute;
  1552. right: 30px;
  1553. transform: translateY(-130%);
  1554. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1555. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1556. </div>
  1557. <div
  1558. v-if="
  1559. tType &&
  1560. tType == 2 &&
  1561. !sIsOpen &&
  1562. tool.tool.indexOf(16) != -1
  1563. "
  1564. class="worksBox"
  1565. >
  1566. <div
  1567. class="zuoyeYulan"
  1568. v-if="workStudent[toolIndex].length > 0"
  1569. >
  1570. <span class="worksTitle">作业预览</span>
  1571. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1572. </div>
  1573. <div
  1574. class="worksDetailBox"
  1575. v-if="workStudent[toolIndex].length > 0"
  1576. >
  1577. <div
  1578. class="works"
  1579. style="
  1580. width: 200px;
  1581. height: 140px;
  1582. margin: 10px 10px 10px 0;
  1583. box-shadow: 0 0 6px 1px #dfdada;
  1584. "
  1585. v-for="(w, wIndex) in workStudent[toolIndex]"
  1586. :key="wIndex"
  1587. >
  1588. <div class="workImg" v-if="w.type == 0">
  1589. <img
  1590. :src="w.works"
  1591. @click="previewImg(w.works,w)"
  1592. alt
  1593. />
  1594. <div
  1595. class="answerScore"
  1596. v-if="w.score"
  1597. @click.stop="openScore(w)"
  1598. :class="{
  1599. rightW:
  1600. w.userid == userid || tType == 1 || tType == 4,
  1601. }"
  1602. >
  1603. {{ JSON.parse(w.score).wScore }}分
  1604. </div>
  1605. <div
  1606. class="answerScore"
  1607. @click.stop="openScore(w)"
  1608. v-else-if="courseDetail.userid == userid"
  1609. :class="{
  1610. rightW:
  1611. w.userid == userid || tType == 1 || tType == 4,
  1612. }"
  1613. >
  1614. 评分
  1615. </div>
  1616. <img
  1617. class="deleteImg"
  1618. src="../../assets/deleteworks.png"
  1619. v-if="
  1620. w.userid == userid || tType == 1 || tType == 4
  1621. "
  1622. @click.stop="deleteWorks(w.wid)"
  1623. alt
  1624. />
  1625. </div>
  1626. <div class="workImg" v-if="w.type == 1">
  1627. <img :src="word" @click="openFile(w.works)" alt />
  1628. <div
  1629. class="answerScore"
  1630. v-if="w.score"
  1631. @click.stop="openScore(w)"
  1632. :class="{
  1633. rightW:
  1634. w.userid == userid || tType == 1 || tType == 4,
  1635. }"
  1636. >
  1637. {{ JSON.parse(w.score).wScore }}分
  1638. </div>
  1639. <div
  1640. class="answerScore"
  1641. @click.stop="openScore(w)"
  1642. v-else-if="courseDetail.userid == userid"
  1643. :class="{
  1644. rightW:
  1645. w.userid == userid || tType == 1 || tType == 4,
  1646. }"
  1647. >
  1648. 评分
  1649. </div>
  1650. <img
  1651. class="deleteImg"
  1652. src="../../assets/deleteworks.png"
  1653. v-if="
  1654. w.userid == userid || tType == 1 || tType == 4
  1655. "
  1656. @click.stop="deleteWorks(w.wid)"
  1657. alt
  1658. />
  1659. </div>
  1660. <div class="workImg" v-if="w.type == 3">
  1661. <img
  1662. style="cursor: pointer"
  1663. :src="video"
  1664. @click="openVideo(w)"
  1665. alt
  1666. />
  1667. <div
  1668. class="answerScore"
  1669. v-if="w.score"
  1670. @click.stop="openScore(w)"
  1671. :class="{
  1672. rightW:
  1673. w.userid == userid || tType == 1 || tType == 4,
  1674. }"
  1675. >
  1676. {{ JSON.parse(w.score).wScore }}分
  1677. </div>
  1678. <div
  1679. class="answerScore"
  1680. @click.stop="openScore(w)"
  1681. v-else-if="courseDetail.userid == userid"
  1682. :class="{
  1683. rightW:
  1684. w.userid == userid || tType == 1 || tType == 4,
  1685. }"
  1686. >
  1687. 评分
  1688. </div>
  1689. <img
  1690. class="deleteImg"
  1691. src="../../assets/deleteworks.png"
  1692. v-if="
  1693. w.userid == userid || tType == 1 || tType == 4
  1694. "
  1695. @click.stop="deleteWorks(w.wid)"
  1696. alt
  1697. />
  1698. </div>
  1699. <div class="workImg" v-if="w.type == 12">
  1700. <img
  1701. style="cursor: pointer"
  1702. :src="word2"
  1703. @click="downloadFile(w.works)"
  1704. alt
  1705. />
  1706. <div
  1707. class="answerScore"
  1708. v-if="w.score"
  1709. @click.stop="openScore(w)"
  1710. :class="{
  1711. rightW:
  1712. w.userid == userid || tType == 1 || tType == 4,
  1713. }"
  1714. >
  1715. {{ JSON.parse(w.score).wScore }}分
  1716. </div>
  1717. <div
  1718. class="answerScore"
  1719. @click.stop="openScore(w)"
  1720. v-else-if="courseDetail.userid == userid"
  1721. :class="{
  1722. rightW:
  1723. w.userid == userid || tType == 1 || tType == 4,
  1724. }"
  1725. >
  1726. 评分
  1727. </div>
  1728. <img
  1729. class="deleteImg"
  1730. src="../../assets/deleteworks.png"
  1731. v-if="
  1732. w.userid == userid || tType == 1 || tType == 4
  1733. "
  1734. @click.stop="deleteWorks(w.wid)"
  1735. alt
  1736. />
  1737. </div>
  1738. <div class="worksName">
  1739. <div>{{ w.sName }}</div>
  1740. </div>
  1741. </div>
  1742. </div>
  1743. </div>
  1744. <div
  1745. v-if="
  1746. tType &&
  1747. tType == 2 &&
  1748. !sIsOpen &&
  1749. tool.tool.indexOf(32) != -1
  1750. "
  1751. class="worksBox"
  1752. >
  1753. <div
  1754. class="zuoyeYulan"
  1755. v-if="workStudent[toolIndex].length > 0"
  1756. >
  1757. <span class="worksTitle">作业预览</span>
  1758. </div>
  1759. <div
  1760. class="worksDetailBox"
  1761. v-if="workStudent[toolIndex].length > 0"
  1762. >
  1763. <div
  1764. class="works"
  1765. style="
  1766. width: 200px;
  1767. height: 140px;
  1768. margin: 10px 10px 10px 0;
  1769. box-shadow: 0 0 6px 1px #dfdada;
  1770. "
  1771. v-for="(w, wIndex) in workStudent[toolIndex]"
  1772. :key="wIndex"
  1773. >
  1774. <div class="workImg">
  1775. <img
  1776. :src="word2"
  1777. @click="downloadFile(w.works)"
  1778. alt
  1779. />
  1780. <div
  1781. class="answerScore"
  1782. v-if="w.score"
  1783. @click.stop="openScore(w)"
  1784. :class="{
  1785. rightW:
  1786. w.userid == userid || tType == 1 || tType == 4,
  1787. }"
  1788. >
  1789. {{ JSON.parse(w.score).wScore }}分
  1790. </div>
  1791. <div
  1792. class="answerScore"
  1793. @click.stop="openScore(w)"
  1794. v-else-if="courseDetail.userid == userid"
  1795. :class="{
  1796. rightW:
  1797. w.userid == userid || tType == 1 || tType == 4,
  1798. }"
  1799. >
  1800. 评分
  1801. </div>
  1802. <img
  1803. class="deleteImg"
  1804. src="../../assets/deleteworks.png"
  1805. v-if="
  1806. w.userid == userid || tType == 1 || tType == 4
  1807. "
  1808. @click.stop="deleteWorks(w.wid)"
  1809. alt
  1810. />
  1811. </div>
  1812. <div class="worksName">
  1813. <div>{{ w.sName }}</div>
  1814. </div>
  1815. </div>
  1816. </div>
  1817. </div>
  1818. <div
  1819. v-if="
  1820. tType &&
  1821. tType == 2 &&
  1822. !sIsOpen &&
  1823. tool.tool.indexOf(57) != -1
  1824. "
  1825. class="worksBox"
  1826. >
  1827. <div
  1828. class="zuoyeYulan"
  1829. v-if="workStudent[toolIndex].length > 0"
  1830. >
  1831. <span class="worksTitle">作业预览</span>
  1832. </div>
  1833. <div
  1834. class="worksDetailBox"
  1835. v-if="workStudent[toolIndex].length > 0"
  1836. >
  1837. <div
  1838. class="works"
  1839. style="
  1840. width: 200px;
  1841. height: 140px;
  1842. margin: 10px 10px 10px 0;
  1843. box-shadow: 0 0 6px 1px #dfdada;
  1844. "
  1845. v-for="(w, wIndex) in workStudent[toolIndex]"
  1846. :key="wIndex"
  1847. >
  1848. <div class="workImg">
  1849. <img
  1850. :src="word2"
  1851. @click="downloadFile(w.works)"
  1852. v-if="w.type == 12"
  1853. alt
  1854. />
  1855. <img
  1856. :src="word2"
  1857. @click="
  1858. openCocoPi(57, toolIndex, w.userid, w.sName)
  1859. "
  1860. v-else-if="w.type == 15"
  1861. alt
  1862. />
  1863. <div
  1864. class="answerScore"
  1865. v-if="w.score"
  1866. @click.stop="openScore(w)"
  1867. :class="{
  1868. rightW:
  1869. w.userid == userid || tType == 1 || tType == 4,
  1870. }"
  1871. >
  1872. {{ JSON.parse(w.score).wScore }}分
  1873. </div>
  1874. <div
  1875. class="answerScore"
  1876. @click.stop="openScore(w)"
  1877. v-else-if="courseDetail.userid == userid"
  1878. :class="{
  1879. rightW:
  1880. w.userid == userid || tType == 1 || tType == 4,
  1881. }"
  1882. >
  1883. 评分
  1884. </div>
  1885. <img
  1886. class="deleteImg"
  1887. src="../../assets/deleteworks.png"
  1888. v-if="
  1889. w.userid == userid || tType == 1 || tType == 4
  1890. "
  1891. @click.stop="deleteWorks(w.wid)"
  1892. alt
  1893. />
  1894. </div>
  1895. <div class="worksName">
  1896. <div>{{ w.sName }}</div>
  1897. </div>
  1898. </div>
  1899. </div>
  1900. </div>
  1901. <div
  1902. v-if="
  1903. tType &&
  1904. tType == 2 &&
  1905. !sIsOpen &&
  1906. tool.tool.indexOf(4) != -1
  1907. "
  1908. class="worksBox"
  1909. >
  1910. <div
  1911. class="zuoyeYulan"
  1912. v-if="workStudent[toolIndex].length > 0"
  1913. >
  1914. <span class="worksTitle">作业预览</span>
  1915. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1916. </div>
  1917. <div
  1918. class="worksDetailBox"
  1919. v-if="workStudent[toolIndex].length > 0"
  1920. >
  1921. <div
  1922. class="isWorksName2"
  1923. v-for="(w, wIndex) in workStudent[toolIndex]"
  1924. :key="wIndex"
  1925. @click="
  1926. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1927. "
  1928. >
  1929. {{ w.sName }}
  1930. <img
  1931. class="deleteImg deleteImg2"
  1932. src="../../assets/deleteworks.png"
  1933. v-if="w.userid == userid || tType == 1 || tType == 4"
  1934. @click.stop="deleteWorks(w.wid)"
  1935. alt
  1936. />
  1937. </div>
  1938. <!-- <div
  1939. class="works"
  1940. style="
  1941. width: 200px;
  1942. height: 140px;
  1943. border-radius: 10px;
  1944. box-shadow: 0 0 6px 1px #dfdada;
  1945. overflow: hidden;
  1946. "
  1947. v-for="(w, wIndex) in workStudent[toolIndex]"
  1948. :key="wIndex"
  1949. >
  1950. <div class="workImg">
  1951. <img
  1952. src="../../assets/icon/works/noImg.png"
  1953. @click="
  1954. openTools(
  1955. 4,
  1956. toolIndex,
  1957. taskCount,
  1958. w.works,
  1959. w.sName
  1960. )
  1961. "
  1962. alt
  1963. />
  1964. </div>
  1965. <div class="worksName">
  1966. <div>{{ w.sName }}</div>
  1967. <div>{{ w.time }}</div>
  1968. </div>
  1969. </div> -->
  1970. </div>
  1971. </div>
  1972. <div
  1973. v-if="
  1974. tType &&
  1975. ((tType == 2 && sIsOpen == true) ||
  1976. tType == 1 ||
  1977. tType == 4) &&
  1978. tool.tool.indexOf(62) != -1
  1979. "
  1980. class="worksBox"
  1981. >
  1982. <div
  1983. class="zuoyeYulan"
  1984. v-if="
  1985. worksStudent.length &&
  1986. worksStudent[toolIndex].length > 0
  1987. "
  1988. >
  1989. <div class="worksTop">
  1990. <div>作业预览</div>
  1991. <div
  1992. class="corOpen"
  1993. @click="contract(toolIndex)"
  1994. v-if="
  1995. (isCloseList[toolIndex].isCloseBoolean) &&
  1996. isCloseList[toolIndex].isClose == 0
  1997. "
  1998. >
  1999. 折叠
  2000. </div>
  2001. <div
  2002. class="corOpen"
  2003. @click="contract(toolIndex)"
  2004. v-if="isCloseList[toolIndex].isClose == 1"
  2005. >
  2006. 展开
  2007. </div>
  2008. </div>
  2009. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2010. </div>
  2011. <div>
  2012. <div
  2013. :id="'tool-' + toolIndex"
  2014. :style="{
  2015. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2016. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2017. }"
  2018. class="worksDetailBox"
  2019. v-if="
  2020. worksStudent.length &&
  2021. worksStudent[toolIndex].length > 0
  2022. "
  2023. >
  2024. <div
  2025. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2026. :key="wIndex"
  2027. class="isWorksName2"
  2028. @click="
  2029. openTools(
  2030. 62,
  2031. toolIndex,
  2032. taskCount,
  2033. w.works,
  2034. w.sName
  2035. )
  2036. "
  2037. >
  2038. {{ w.sName }}
  2039. <img
  2040. class="deleteImg deleteImg2"
  2041. src="../../assets/deleteworks.png"
  2042. v-if="
  2043. w.userid == userid || tType == 1 || tType == 4
  2044. "
  2045. @click.stop="deleteWorks(w.wid)"
  2046. alt
  2047. />
  2048. </div>
  2049. </div>
  2050. </div>
  2051. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2052. 未提交
  2053. </div>
  2054. <div
  2055. class="noWorksS"
  2056. v-if="noWorksS && noWorksS[toolIndex].length"
  2057. >
  2058. <div
  2059. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2060. :key="sIndex"
  2061. class="noWorksName"
  2062. >
  2063. <el-tooltip effect="dark" :content="s.student" placement="top">
  2064. <span>{{ s.student }}</span>
  2065. </el-tooltip>
  2066. </div>
  2067. </div>
  2068. </div>
  2069. <div
  2070. v-if="
  2071. tType &&
  2072. tType == 2 &&
  2073. !sIsOpen &&
  2074. tool.tool.indexOf(62) != -1
  2075. "
  2076. class="worksBox"
  2077. >
  2078. <div
  2079. class="zuoyeYulan"
  2080. v-if="workStudent[toolIndex].length > 0"
  2081. >
  2082. <span class="worksTitle">作业预览</span>
  2083. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2084. </div>
  2085. <div
  2086. class="worksDetailBox"
  2087. v-if="workStudent[toolIndex].length > 0"
  2088. >
  2089. <div
  2090. class="isWorksName2"
  2091. v-for="(w, wIndex) in workStudent[toolIndex]"
  2092. :key="wIndex"
  2093. @click="
  2094. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2095. "
  2096. >
  2097. {{ w.sName }}
  2098. <img
  2099. class="deleteImg deleteImg2"
  2100. src="../../assets/deleteworks.png"
  2101. v-if="w.userid == userid || tType == 1 || tType == 4"
  2102. @click.stop="deleteWorks(w.wid)"
  2103. alt
  2104. />
  2105. </div>
  2106. </div>
  2107. </div>
  2108. <div
  2109. v-if="
  2110. tType &&
  2111. tType == 2 &&
  2112. !sIsOpen &&
  2113. tool.tool.indexOf(45) != -1
  2114. "
  2115. class="worksBox"
  2116. >
  2117. <div
  2118. class="zuoyeYulan"
  2119. v-if="workStudent[toolIndex].length > 0"
  2120. >
  2121. <span class="worksTitle">作业预览</span>
  2122. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2123. </div>
  2124. <div
  2125. class="worksDetailBox"
  2126. v-if="workStudent[toolIndex].length > 0"
  2127. >
  2128. <div
  2129. class="isWorksName2"
  2130. v-for="(w, wIndex) in workStudent[toolIndex]"
  2131. :key="wIndex"
  2132. @click="
  2133. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2134. "
  2135. >
  2136. {{ w.sName }}
  2137. <img
  2138. class="deleteImg deleteImg2"
  2139. src="../../assets/deleteworks.png"
  2140. v-if="w.userid == userid || tType == 1 || tType == 4"
  2141. @click.stop="deleteWorks(w.wid)"
  2142. alt
  2143. />
  2144. </div>
  2145. </div>
  2146. </div>
  2147. <div
  2148. v-if="
  2149. tType &&
  2150. tType == 2 &&
  2151. !sIsOpen &&
  2152. tool.tool.indexOf(69) != -1
  2153. "
  2154. class="worksBox"
  2155. >
  2156. <div
  2157. class="zuoyeYulan"
  2158. v-if="workStudent[toolIndex].length > 0"
  2159. >
  2160. <span class="worksTitle">作业预览</span>
  2161. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2162. </div>
  2163. <div
  2164. class="worksDetailBox"
  2165. v-if="workStudent[toolIndex].length > 0"
  2166. >
  2167. <div
  2168. class="isWorksName2"
  2169. v-for="(w, wIndex) in workStudent[toolIndex]"
  2170. :key="wIndex"
  2171. @click="
  2172. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2173. "
  2174. >
  2175. {{ w.sName }}
  2176. <img
  2177. class="deleteImg deleteImg2"
  2178. src="../../assets/deleteworks.png"
  2179. v-if="w.userid == userid || tType == 1 || tType == 4"
  2180. @click.stop="deleteWorks(w.wid)"
  2181. alt
  2182. />
  2183. </div>
  2184. </div>
  2185. </div>
  2186. <div
  2187. v-if="
  2188. tType &&
  2189. tType == 2 &&
  2190. !sIsOpen &&
  2191. tool.tool.indexOf(15) != -1
  2192. "
  2193. class="worksBox"
  2194. >
  2195. <div
  2196. class="zuoyeYulan"
  2197. v-if="workStudent[toolIndex].length > 0"
  2198. >
  2199. <span class="worksTitle">作业预览</span>
  2200. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2201. </div>
  2202. <div
  2203. class="worksDetailBox"
  2204. v-if="workStudent[toolIndex].length > 0"
  2205. >
  2206. <div
  2207. class="works"
  2208. v-for="(w, wIndex) in workStudent[toolIndex]"
  2209. :key="wIndex"
  2210. >
  2211. <div class="workImg">
  2212. <!-- <img
  2213. src="../../assets/icon/works/noImg.png"
  2214. @click="openTools(15, toolIndex, taskCount, w.works)"
  2215. alt=""
  2216. />-->
  2217. <div class="answerBg">
  2218. <!-- <div>{{ w.sName }}</div> -->
  2219. <el-tooltip
  2220. class="item"
  2221. effect="light"
  2222. :content="JSON.parse(w.works)[0].answer"
  2223. placement="top"
  2224. >
  2225. <div class="answerContent">
  2226. {{ JSON.parse(w.works)[0].answer }}
  2227. </div>
  2228. </el-tooltip>
  2229. <div
  2230. class="answerScore"
  2231. v-if="w.score"
  2232. @click.stop="openScore(w)"
  2233. :class="{
  2234. rightW:
  2235. w.userid == userid ||
  2236. tType == 1 ||
  2237. tType == 4,
  2238. }"
  2239. >
  2240. {{ JSON.parse(w.score).wScore }}分
  2241. </div>
  2242. <div
  2243. class="answerScore"
  2244. @click.stop="openScore(w)"
  2245. v-else-if="courseDetail.userid == userid"
  2246. :class="{
  2247. rightW:
  2248. w.userid == userid ||
  2249. tType == 1 ||
  2250. tType == 4,
  2251. }"
  2252. >
  2253. 评分
  2254. </div>
  2255. <img
  2256. class="deleteImg"
  2257. src="../../assets/deleteworks.png"
  2258. v-if="
  2259. w.userid == userid || tType == 1 || tType == 4
  2260. "
  2261. @click.stop="deleteWorks(w.wid)"
  2262. alt
  2263. />
  2264. </div>
  2265. <div class="comment">
  2266. <div class="worksName">
  2267. <div>{{ w.sName }}</div>
  2268. </div>
  2269. </div>
  2270. </div>
  2271. </div>
  2272. </div>
  2273. </div>
  2274. <div
  2275. v-if="
  2276. tType &&
  2277. tType == 2 &&
  2278. !sIsOpen &&
  2279. tool.tool.indexOf(1) != -1
  2280. "
  2281. class="worksBox"
  2282. >
  2283. <div
  2284. class="zuoyeYulan"
  2285. v-if="workStudent[toolIndex].length > 0"
  2286. >
  2287. <span class="worksTitle">作业预览</span>
  2288. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2289. </div>
  2290. <div
  2291. class="worksDetailBox"
  2292. v-if="workStudent[toolIndex].length > 0"
  2293. >
  2294. <div
  2295. class="works"
  2296. style="
  2297. width: 200px;
  2298. height: 140px;
  2299. margin: 10px 10px 10px 0;
  2300. box-shadow: 0 0 6px 1px #dfdada;
  2301. "
  2302. v-for="(w, wIndex) in workStudent[toolIndex]"
  2303. :key="wIndex"
  2304. >
  2305. <div class="workImg">
  2306. <img
  2307. :src="w.works"
  2308. @click="previewImg(w.works,w)"
  2309. alt
  2310. />
  2311. <div
  2312. class="answerScore"
  2313. v-if="w.score"
  2314. @click.stop="openScore(w)"
  2315. :class="{
  2316. rightW:
  2317. w.userid == userid || tType == 1 || tType == 4,
  2318. }"
  2319. >
  2320. {{ JSON.parse(w.score).wScore }}分
  2321. </div>
  2322. <div
  2323. class="answerScore"
  2324. @click.stop="openScore(w)"
  2325. v-else-if="courseDetail.userid == userid"
  2326. :class="{
  2327. rightW:
  2328. w.userid == userid || tType == 1 || tType == 4,
  2329. }"
  2330. >
  2331. 评分
  2332. </div>
  2333. <img
  2334. class="deleteImg"
  2335. src="../../assets/deleteworks.png"
  2336. v-if="
  2337. w.userid == userid || tType == 1 || tType == 4
  2338. "
  2339. @click.stop="deleteWorks(w.wid)"
  2340. alt
  2341. />
  2342. </div>
  2343. <div class="worksName">
  2344. <div>{{ w.sName }}</div>
  2345. </div>
  2346. </div>
  2347. </div>
  2348. </div>
  2349. <div
  2350. v-if="
  2351. tType &&
  2352. tType == 2 &&
  2353. !sIsOpen &&
  2354. tool.tool.indexOf(3) != -1
  2355. "
  2356. class="worksBox"
  2357. >
  2358. <div
  2359. class="zuoyeYulan"
  2360. v-if="workStudent[toolIndex].length > 0"
  2361. >
  2362. <span class="worksTitle">作业预览</span>
  2363. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2364. </div>
  2365. <div
  2366. class="worksDetailBox"
  2367. v-if="workStudent[toolIndex].length > 0"
  2368. >
  2369. <div
  2370. class="works"
  2371. style="
  2372. width: 200px;
  2373. height: 140px;
  2374. margin: 10px 10px 10px 0;
  2375. box-shadow: 0 0 6px 1px #dfdada;
  2376. "
  2377. v-for="(w, wIndex) in workStudent[toolIndex]"
  2378. :key="wIndex"
  2379. >
  2380. <div class="workImg">
  2381. <img
  2382. :src="w.works"
  2383. @click="previewImg(w.works,w)"
  2384. alt
  2385. />
  2386. <div
  2387. class="answerScore"
  2388. v-if="w.score"
  2389. @click.stop="openScore(w)"
  2390. :class="{
  2391. rightW:
  2392. w.userid == userid || tType == 1 || tType == 4,
  2393. }"
  2394. >
  2395. {{ JSON.parse(w.score).wScore }}分
  2396. </div>
  2397. <div
  2398. class="answerScore"
  2399. @click.stop="openScore(w)"
  2400. v-else-if="courseDetail.userid == userid"
  2401. :class="{
  2402. rightW:
  2403. w.userid == userid || tType == 1 || tType == 4,
  2404. }"
  2405. >
  2406. 评分
  2407. </div>
  2408. <img
  2409. class="deleteImg"
  2410. src="../../assets/deleteworks.png"
  2411. v-if="
  2412. w.userid == userid || tType == 1 || tType == 4
  2413. "
  2414. @click.stop="deleteWorks(w.wid)"
  2415. alt
  2416. />
  2417. </div>
  2418. <div class="worksName">
  2419. <div>{{ w.sName }}</div>
  2420. </div>
  2421. </div>
  2422. </div>
  2423. </div>
  2424. <div
  2425. v-if="
  2426. tType &&
  2427. tType == 2 &&
  2428. !sIsOpen &&
  2429. tool.tool.indexOf(6) != -1
  2430. "
  2431. class="worksBox"
  2432. >
  2433. <div
  2434. class="zuoyeYulan"
  2435. v-if="workStudent[toolIndex].length > 0"
  2436. >
  2437. <span class="worksTitle">作业预览</span>
  2438. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2439. </div>
  2440. <div
  2441. class="worksDetailBox"
  2442. v-if="workStudent[toolIndex].length > 0"
  2443. >
  2444. <div
  2445. class="works"
  2446. style="
  2447. width: 200px;
  2448. height: 140px;
  2449. margin: 10px 10px 10px 0;
  2450. box-shadow: 0 0 6px 1px #dfdada;
  2451. "
  2452. v-for="(w, wIndex) in workStudent[toolIndex]"
  2453. :key="wIndex"
  2454. >
  2455. <div class="workImg">
  2456. <img
  2457. :src="w.works"
  2458. @click="previewImg(w.works,w)"
  2459. alt
  2460. />
  2461. <div
  2462. class="answerScore"
  2463. v-if="w.score"
  2464. @click.stop="openScore(w)"
  2465. :class="{
  2466. rightW:
  2467. w.userid == userid || tType == 1 || tType == 4,
  2468. }"
  2469. >
  2470. {{ JSON.parse(w.score).wScore }}分
  2471. </div>
  2472. <div
  2473. class="answerScore"
  2474. @click.stop="openScore(w)"
  2475. v-else-if="courseDetail.userid == userid"
  2476. :class="{
  2477. rightW:
  2478. w.userid == userid || tType == 1 || tType == 4,
  2479. }"
  2480. >
  2481. 评分
  2482. </div>
  2483. <img
  2484. class="deleteImg"
  2485. src="../../assets/deleteworks.png"
  2486. v-if="
  2487. w.userid == userid || tType == 1 || tType == 4
  2488. "
  2489. @click.stop="deleteWorks(w.wid)"
  2490. alt
  2491. />
  2492. </div>
  2493. <div class="worksName">
  2494. <div>{{ w.sName }}</div>
  2495. </div>
  2496. </div>
  2497. </div>
  2498. </div>
  2499. <div
  2500. v-if="
  2501. tType &&
  2502. tType == 2 &&
  2503. !sIsOpen &&
  2504. tool.tool.indexOf(7) != -1
  2505. "
  2506. class="worksBox"
  2507. >
  2508. <div
  2509. class="zuoyeYulan"
  2510. v-if="workStudent[toolIndex].length > 0"
  2511. >
  2512. <span class="worksTitle">作业预览</span>
  2513. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2514. </div>
  2515. <div
  2516. class="worksDetailBox"
  2517. v-if="workStudent[toolIndex].length > 0"
  2518. >
  2519. <div
  2520. class="works"
  2521. style="
  2522. width: 200px;
  2523. height: 140px;
  2524. margin: 10px 10px 10px 0;
  2525. box-shadow: 0 0 6px 1px #dfdada;
  2526. "
  2527. v-for="(w, wIndex) in workStudent[toolIndex]"
  2528. :key="wIndex"
  2529. >
  2530. <div class="workImg">
  2531. <img
  2532. :src="w.works"
  2533. @click="previewImg(w.works,w)"
  2534. alt
  2535. />
  2536. <div
  2537. class="answerScore"
  2538. v-if="w.score"
  2539. @click.stop="openScore(w)"
  2540. :class="{
  2541. rightW:
  2542. w.userid == userid || tType == 1 || tType == 4,
  2543. }"
  2544. >
  2545. {{ JSON.parse(w.score).wScore }}分
  2546. </div>
  2547. <div
  2548. class="answerScore"
  2549. @click.stop="openScore(w)"
  2550. v-else-if="courseDetail.userid == userid"
  2551. :class="{
  2552. rightW:
  2553. w.userid == userid || tType == 1 || tType == 4,
  2554. }"
  2555. >
  2556. 评分
  2557. </div>
  2558. <img
  2559. class="deleteImg"
  2560. src="../../assets/deleteworks.png"
  2561. v-if="
  2562. w.userid == userid || tType == 1 || tType == 4
  2563. "
  2564. @click.stop="deleteWorks(w.wid)"
  2565. alt
  2566. />
  2567. </div>
  2568. <div class="worksName">
  2569. <div>{{ w.sName }}</div>
  2570. </div>
  2571. </div>
  2572. </div>
  2573. </div>
  2574. <div
  2575. v-if="
  2576. tType &&
  2577. tType == 2 &&
  2578. !sIsOpen &&
  2579. tool.tool.indexOf(26) != -1
  2580. "
  2581. class="worksBox"
  2582. >
  2583. <div
  2584. class="zuoyeYulan"
  2585. v-if="workStudent[toolIndex].length > 0"
  2586. >
  2587. <span class="worksTitle">作业预览</span>
  2588. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2589. </div>
  2590. <div
  2591. class="worksDetailBox"
  2592. v-if="workStudent[toolIndex].length > 0"
  2593. >
  2594. <div
  2595. class="works"
  2596. style="
  2597. width: 200px;
  2598. height: 140px;
  2599. margin: 10px 10px 10px 0;
  2600. box-shadow: 0 0 6px 1px #dfdada;
  2601. "
  2602. v-for="(w, wIndex) in workStudent[toolIndex]"
  2603. :key="wIndex"
  2604. >
  2605. <div class="workImg">
  2606. <img
  2607. :src="w.works"
  2608. @click="previewImg(w.works,w)"
  2609. alt
  2610. />
  2611. <img
  2612. class="deleteImg"
  2613. src="../../assets/deleteworks.png"
  2614. v-if="
  2615. w.userid == userid || tType == 1 || tType == 4
  2616. "
  2617. @click.stop="deleteWorks(w.wid)"
  2618. alt
  2619. />
  2620. </div>
  2621. <div class="worksName">
  2622. <div>{{ w.sName }}</div>
  2623. </div>
  2624. </div>
  2625. </div>
  2626. </div>
  2627. <div
  2628. v-if="
  2629. tType &&
  2630. ((tType == 2 && sIsOpen == true) ||
  2631. tType == 1 ||
  2632. tType == 4) &&
  2633. tool.tool.indexOf(16) != -1
  2634. "
  2635. class="worksBox"
  2636. >
  2637. <div
  2638. class="zuoyeYulan"
  2639. v-if="
  2640. (worksStudent.length &&
  2641. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2642. "
  2643. >
  2644. <div class="worksTop">
  2645. <div>作业预览</div>
  2646. <div
  2647. class="corOpen"
  2648. @click="contract(toolIndex)"
  2649. v-if="
  2650. (isCloseList[toolIndex].isCloseBoolean) &&
  2651. isCloseList[toolIndex].isClose == 0
  2652. "
  2653. >
  2654. 折叠
  2655. </div>
  2656. <div
  2657. class="corOpen"
  2658. @click="contract(toolIndex)"
  2659. v-if="isCloseList[toolIndex].isClose == 1"
  2660. >
  2661. 展开
  2662. </div>
  2663. </div>
  2664. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2665. </div>
  2666. <div
  2667. class="group_workBox"
  2668. v-for="(g, gindex) in courseGroup.group"
  2669. :key="gindex"
  2670. >
  2671. <div class="group_box">
  2672. <div class="group_title">
  2673. <el-tooltip
  2674. class="item"
  2675. effect="light"
  2676. :content="g.name"
  2677. placement="top"
  2678. >
  2679. <div class="group_name">{{ g.name }}</div>
  2680. </el-tooltip>
  2681. </div>
  2682. <div
  2683. class="group_work"
  2684. v-if="
  2685. g.works &&
  2686. g.works.length &&
  2687. g.works[toolIndex].length
  2688. "
  2689. >
  2690. <div
  2691. class="works"
  2692. style="
  2693. width: 200px;
  2694. height: 140px;
  2695. margin: 10px 10px 10px 0;
  2696. border-radius: 15px;
  2697. box-shadow: 0 0 6px 1px #dfdada;
  2698. "
  2699. v-for="(w, wIndex) in g.works[toolIndex]"
  2700. :key="wIndex"
  2701. :class="w.type == 1 ? 'isTypeOne' : ''"
  2702. >
  2703. <div class="workImg" v-if="w.type == 0">
  2704. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2705. <img
  2706. :src="w.works"
  2707. @click="previewImg(w.works,w)"
  2708. alt
  2709. />
  2710. <div
  2711. class="answerScore"
  2712. v-if="w.score"
  2713. @click.stop="openScore(w)"
  2714. :class="{
  2715. rightW:
  2716. w.userid == userid ||
  2717. tType == 1 ||
  2718. tType == 4 ||
  2719. w.ateacher == userid,
  2720. }"
  2721. >
  2722. {{ JSON.parse(w.score).wScore }}分
  2723. </div>
  2724. <div
  2725. class="answerScore"
  2726. @click.stop="openScore(w)"
  2727. v-else-if="courseDetail.userid == userid"
  2728. :class="{
  2729. rightW:
  2730. w.userid == userid ||
  2731. tType == 1 ||
  2732. tType == 4 ||
  2733. w.ateacher == userid,
  2734. }"
  2735. >
  2736. 评分
  2737. </div>
  2738. <img
  2739. class="deleteImg"
  2740. src="../../assets/deleteworks.png"
  2741. v-if="
  2742. w.userid == userid || tType == 1 || tType == 4
  2743. "
  2744. @click.stop="deleteWorks(w.wid)"
  2745. alt
  2746. />
  2747. </div>
  2748. <div class="workImg" v-if="w.type == 1">
  2749. <img :src="word" @click="openFile(w.works)" alt />
  2750. <!-- @click="openFile(w.works)" -->
  2751. <div
  2752. class="answerScore"
  2753. v-if="w.score"
  2754. @click.stop="openScore(w)"
  2755. :class="{
  2756. rightW:
  2757. w.userid == userid ||
  2758. tType == 1 ||
  2759. tType == 4 ||
  2760. w.ateacher == userid,
  2761. }"
  2762. >
  2763. {{ JSON.parse(w.score).wScore }}分
  2764. </div>
  2765. <div
  2766. class="answerScore"
  2767. @click.stop="openScore(w)"
  2768. v-else-if="courseDetail.userid == userid"
  2769. :class="{
  2770. rightW:
  2771. w.userid == userid ||
  2772. tType == 1 ||
  2773. tType == 4 ||
  2774. w.ateacher == userid,
  2775. }"
  2776. >
  2777. 评分
  2778. </div>
  2779. <img
  2780. class="deleteImg"
  2781. src="../../assets/deleteworks.png"
  2782. v-if="
  2783. w.userid == userid || tType == 1 || tType == 4
  2784. "
  2785. @click.stop="deleteWorks(w.wid)"
  2786. alt
  2787. />
  2788. </div>
  2789. <div class="workImg" v-if="w.type == 3">
  2790. <img
  2791. style="cursor: pointer"
  2792. :src="video"
  2793. @click="openVideo(w)"
  2794. alt
  2795. />
  2796. <!-- @click="openVideo(w.works)" -->
  2797. <div
  2798. class="answerScore"
  2799. v-if="w.score"
  2800. @click.stop="openScore(w)"
  2801. :class="{
  2802. rightW:
  2803. w.userid == userid ||
  2804. tType == 1 ||
  2805. tType == 4 ||
  2806. w.ateacher == userid,
  2807. }"
  2808. >
  2809. {{ JSON.parse(w.score).wScore }}分
  2810. </div>
  2811. <div
  2812. class="answerScore"
  2813. @click.stop="openScore(w)"
  2814. v-else-if="courseDetail.userid == userid"
  2815. :class="{
  2816. rightW:
  2817. w.userid == userid ||
  2818. tType == 1 ||
  2819. tType == 4 ||
  2820. w.ateacher == userid,
  2821. }"
  2822. >
  2823. 评分
  2824. </div>
  2825. <img
  2826. class="deleteImg"
  2827. src="../../assets/deleteworks.png"
  2828. v-if="
  2829. w.userid == userid || tType == 1 || tType == 4
  2830. "
  2831. @click.stop="deleteWorks(w.wid)"
  2832. alt
  2833. />
  2834. </div>
  2835. <div class="workImg" v-if="w.type == 12">
  2836. <img
  2837. style="cursor: pointer"
  2838. :src="word2"
  2839. @click="downloadFile(w.works)"
  2840. alt
  2841. />
  2842. <!-- @click="openVideo(w.works)" -->
  2843. <div
  2844. class="answerScore"
  2845. v-if="w.score"
  2846. @click.stop="openScore(w)"
  2847. :class="{
  2848. rightW:
  2849. w.userid == userid ||
  2850. tType == 1 ||
  2851. tType == 4 ||
  2852. w.ateacher == userid,
  2853. }"
  2854. >
  2855. {{ JSON.parse(w.score).wScore }}分
  2856. </div>
  2857. <div
  2858. class="answerScore"
  2859. @click.stop="openScore(w)"
  2860. v-else-if="courseDetail.userid == userid"
  2861. :class="{
  2862. rightW:
  2863. w.userid == userid ||
  2864. tType == 1 ||
  2865. tType == 4 ||
  2866. w.ateacher == userid,
  2867. }"
  2868. >
  2869. 评分
  2870. </div>
  2871. <img
  2872. class="deleteImg"
  2873. src="../../assets/deleteworks.png"
  2874. v-if="
  2875. w.userid == userid || tType == 1 || tType == 4
  2876. "
  2877. @click.stop="deleteWorks(w.wid)"
  2878. alt
  2879. />
  2880. </div>
  2881. <div class="comment" style="min-width: 200px">
  2882. <div class="worksName">
  2883. <div>{{ w.sName }}</div>
  2884. </div>
  2885. <div class="commentList">
  2886. <div class="commentList">
  2887. <div
  2888. class="commentImg"
  2889. @click="
  2890. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2891. "
  2892. >
  2893. <img
  2894. :src="w.isLikes == true ? likes : noLikes"
  2895. alt=""
  2896. />
  2897. </div>
  2898. <div>{{ w.likesCount }}</div>
  2899. </div>
  2900. <div
  2901. class="commentList"
  2902. style="margin-right: 15px"
  2903. >
  2904. <div
  2905. class="commentImg"
  2906. @click="
  2907. commentOther(
  2908. w,
  2909. toolIndex,
  2910. wIndex,
  2911. null,
  2912. g.id
  2913. )
  2914. "
  2915. >
  2916. <img
  2917. src="../../assets/icon/comment/comment.png"
  2918. alt=""
  2919. />
  2920. </div>
  2921. <div>{{ w.commentCount }}</div>
  2922. </div>
  2923. </div>
  2924. </div>
  2925. </div>
  2926. </div>
  2927. <div class="group_work" v-else>暂无提交作业</div>
  2928. </div>
  2929. </div>
  2930. <div
  2931. :id="'tool-' + toolIndex"
  2932. :style="{
  2933. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2934. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2935. }"
  2936. class="worksDetailBox"
  2937. v-if="
  2938. worksStudent.length &&
  2939. worksStudent[toolIndex].length > 0
  2940. "
  2941. >
  2942. <div
  2943. class="works"
  2944. style="
  2945. width: 200px;
  2946. height: 140px;
  2947. margin: 10px 10px 10px 0;
  2948. border-radius: 15px;
  2949. box-shadow: 0 0 6px 1px #dfdada;
  2950. "
  2951. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2952. :key="wIndex"
  2953. :class="w.type == 1 ? 'isTypeOne' : ''"
  2954. >
  2955. <div class="workImg" v-if="w.type == 0">
  2956. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2957. <img
  2958. :src="w.works"
  2959. @click="previewImg(w.works,w)"
  2960. alt
  2961. />
  2962. <div
  2963. class="answerScore"
  2964. v-if="w.score"
  2965. @click.stop="openScore(w)"
  2966. :class="{
  2967. rightW:
  2968. w.userid == userid ||
  2969. tType == 1 ||
  2970. tType == 4 ||
  2971. w.ateacher == userid,
  2972. }"
  2973. >
  2974. {{ JSON.parse(w.score).wScore }}分
  2975. </div>
  2976. <div
  2977. class="answerScore"
  2978. @click.stop="openScore(w)"
  2979. v-else-if="courseDetail.userid == userid"
  2980. :class="{
  2981. rightW:
  2982. w.userid == userid ||
  2983. tType == 1 ||
  2984. tType == 4 ||
  2985. w.ateacher == userid,
  2986. }"
  2987. >
  2988. 评分
  2989. </div>
  2990. <img
  2991. class="deleteImg"
  2992. src="../../assets/deleteworks.png"
  2993. v-if="
  2994. w.userid == userid || tType == 1 || tType == 4
  2995. "
  2996. @click.stop="deleteWorks(w.wid)"
  2997. alt
  2998. />
  2999. </div>
  3000. <div class="workImg" v-if="w.type == 1">
  3001. <img :src="word" @click="openFile(w.works)" alt />
  3002. <!-- @click="openFile(w.works)" -->
  3003. <div
  3004. class="answerScore"
  3005. v-if="w.score"
  3006. @click.stop="openScore(w)"
  3007. :class="{
  3008. rightW:
  3009. w.userid == userid ||
  3010. tType == 1 ||
  3011. tType == 4 ||
  3012. w.ateacher == userid,
  3013. }"
  3014. >
  3015. {{ JSON.parse(w.score).wScore }}分
  3016. </div>
  3017. <div
  3018. class="answerScore"
  3019. @click.stop="openScore(w)"
  3020. v-else-if="courseDetail.userid == userid"
  3021. :class="{
  3022. rightW:
  3023. w.userid == userid ||
  3024. tType == 1 ||
  3025. tType == 4 ||
  3026. w.ateacher == userid,
  3027. }"
  3028. >
  3029. 评分
  3030. </div>
  3031. <img
  3032. class="deleteImg"
  3033. src="../../assets/deleteworks.png"
  3034. v-if="
  3035. w.userid == userid || tType == 1 || tType == 4
  3036. "
  3037. @click.stop="deleteWorks(w.wid)"
  3038. alt
  3039. />
  3040. </div>
  3041. <div class="workImg" v-if="w.type == 3">
  3042. <img
  3043. style="cursor: pointer"
  3044. :src="video"
  3045. @click="openVideo(w)"
  3046. alt
  3047. />
  3048. <!-- @click="openVideo(w.works)" -->
  3049. <div
  3050. class="answerScore"
  3051. v-if="w.score"
  3052. @click.stop="openScore(w)"
  3053. :class="{
  3054. rightW:
  3055. w.userid == userid ||
  3056. tType == 1 ||
  3057. tType == 4 ||
  3058. w.ateacher == userid,
  3059. }"
  3060. >
  3061. {{ JSON.parse(w.score).wScore }}分
  3062. </div>
  3063. <div
  3064. class="answerScore"
  3065. @click.stop="openScore(w)"
  3066. v-else-if="courseDetail.userid == userid"
  3067. :class="{
  3068. rightW:
  3069. w.userid == userid ||
  3070. tType == 1 ||
  3071. tType == 4 ||
  3072. w.ateacher == userid,
  3073. }"
  3074. >
  3075. 评分
  3076. </div>
  3077. <img
  3078. class="deleteImg"
  3079. src="../../assets/deleteworks.png"
  3080. v-if="
  3081. w.userid == userid || tType == 1 || tType == 4
  3082. "
  3083. @click.stop="deleteWorks(w.wid)"
  3084. alt
  3085. />
  3086. </div>
  3087. <div class="workImg" v-if="w.type == 12">
  3088. <img
  3089. style="cursor: pointer"
  3090. :src="word2"
  3091. @click="downloadFile(w.works)"
  3092. alt
  3093. />
  3094. <!-- @click="openVideo(w.works)" -->
  3095. <div
  3096. class="answerScore"
  3097. v-if="w.score"
  3098. @click.stop="openScore(w)"
  3099. :class="{
  3100. rightW:
  3101. w.userid == userid ||
  3102. tType == 1 ||
  3103. tType == 4 ||
  3104. w.ateacher == userid,
  3105. }"
  3106. >
  3107. {{ JSON.parse(w.score).wScore }}分
  3108. </div>
  3109. <div
  3110. class="answerScore"
  3111. @click.stop="openScore(w)"
  3112. v-else-if="courseDetail.userid == userid"
  3113. :class="{
  3114. rightW:
  3115. w.userid == userid ||
  3116. tType == 1 ||
  3117. tType == 4 ||
  3118. w.ateacher == userid,
  3119. }"
  3120. >
  3121. 评分
  3122. </div>
  3123. <img
  3124. class="deleteImg"
  3125. src="../../assets/deleteworks.png"
  3126. v-if="
  3127. w.userid == userid || tType == 1 || tType == 4
  3128. "
  3129. @click.stop="deleteWorks(w.wid)"
  3130. alt
  3131. />
  3132. </div>
  3133. <div class="comment" style="min-width: 200px">
  3134. <div class="worksName">
  3135. <div>{{ w.sName }}</div>
  3136. </div>
  3137. <div class="commentList">
  3138. <div class="commentList">
  3139. <div
  3140. class="commentImg"
  3141. @click="
  3142. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3143. "
  3144. >
  3145. <img
  3146. :src="w.isLikes == true ? likes : noLikes"
  3147. alt=""
  3148. />
  3149. </div>
  3150. <div>{{ w.likesCount }}</div>
  3151. </div>
  3152. <div class="commentList" style="margin-right: 15px">
  3153. <div
  3154. class="commentImg"
  3155. @click="commentOther(w, toolIndex, wIndex)"
  3156. >
  3157. <img
  3158. src="../../assets/icon/comment/comment.png"
  3159. alt=""
  3160. />
  3161. </div>
  3162. <div>{{ w.commentCount }}</div>
  3163. </div>
  3164. </div>
  3165. </div>
  3166. </div>
  3167. </div>
  3168. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3169. 未提交
  3170. </div>
  3171. <div
  3172. class="noWorksS"
  3173. v-if="noWorksS && noWorksS[toolIndex].length"
  3174. >
  3175. <div
  3176. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3177. :key="sIndex"
  3178. class="noWorksName"
  3179. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3180. >
  3181. <el-tooltip effect="dark" :content="s.student" placement="top">
  3182. <span>{{ s.student }}</span>
  3183. </el-tooltip>
  3184. </div>
  3185. </div>
  3186. </div>
  3187. <div
  3188. v-if="
  3189. tType &&
  3190. ((tType == 2 && sIsOpen == true) ||
  3191. tType == 1 ||
  3192. tType == 4) &&
  3193. tool.tool.indexOf(70) != -1
  3194. "
  3195. class="worksBox"
  3196. >
  3197. <div
  3198. class="zuoyeYulan"
  3199. v-if="
  3200. (worksStudent.length &&
  3201. worksStudent[toolIndex].length > 0)
  3202. "
  3203. >
  3204. <div class="worksTop">
  3205. <div>作业预览</div>
  3206. <div
  3207. class="corOpen"
  3208. @click="contract(toolIndex)"
  3209. v-if="
  3210. (isCloseList[toolIndex].isCloseBoolean) &&
  3211. isCloseList[toolIndex].isClose == 0
  3212. "
  3213. >
  3214. 折叠
  3215. </div>
  3216. <div
  3217. class="corOpen"
  3218. @click="contract(toolIndex)"
  3219. v-if="isCloseList[toolIndex].isClose == 1"
  3220. >
  3221. 展开
  3222. </div>
  3223. </div>
  3224. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3225. </div>
  3226. <div
  3227. :id="'tool-' + toolIndex"
  3228. :style="{
  3229. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3230. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3231. }"
  3232. class="worksDetailBox"
  3233. v-if="
  3234. worksStudent.length &&
  3235. worksStudent[toolIndex].length > 0
  3236. "
  3237. >
  3238. <div
  3239. class="works"
  3240. style="
  3241. width: 200px;
  3242. height: 140px;
  3243. margin: 10px 10px 10px 0;
  3244. border-radius: 15px;
  3245. box-shadow: 0 0 6px 1px #dfdada;
  3246. "
  3247. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3248. :key="wIndex"
  3249. :class="w.type == 1 ? 'isTypeOne' : ''"
  3250. >
  3251. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3252. <img :src="word" alt />
  3253. <img
  3254. class="deleteImg"
  3255. src="../../assets/deleteworks.png"
  3256. v-if="
  3257. w.userid == userid || tType == 1 || tType == 4
  3258. "
  3259. @click.stop="deleteWorks(w.wid)"
  3260. alt
  3261. />
  3262. </div>
  3263. <div class="comment" style="min-width: 200px">
  3264. <div class="worksName">
  3265. <div>{{ w.sName }}</div>
  3266. </div>
  3267. </div>
  3268. </div>
  3269. </div>
  3270. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3271. 未提交
  3272. </div>
  3273. <div
  3274. class="noWorksS"
  3275. v-if="noWorksS && noWorksS[toolIndex].length"
  3276. >
  3277. <div
  3278. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3279. :key="sIndex"
  3280. class="noWorksName"
  3281. >
  3282. <el-tooltip effect="dark" :content="s.student" placement="top">
  3283. <span>{{ s.student }}</span>
  3284. </el-tooltip>
  3285. </div>
  3286. </div>
  3287. </div>
  3288. <div
  3289. v-if="
  3290. tType &&
  3291. tType == 2 &&
  3292. !sIsOpen &&
  3293. tool.tool.indexOf(70) != -1
  3294. "
  3295. class="worksBox"
  3296. >
  3297. <div
  3298. class="zuoyeYulan"
  3299. v-if="workStudent[toolIndex].length > 0"
  3300. >
  3301. <span class="worksTitle">作业预览</span>
  3302. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3303. </div>
  3304. <div
  3305. class="worksDetailBox"
  3306. v-if="workStudent[toolIndex].length > 0"
  3307. >
  3308. <div
  3309. class="works"
  3310. style="
  3311. width: 200px;
  3312. height: 140px;
  3313. margin: 10px 10px 10px 0;
  3314. box-shadow: 0 0 6px 1px #dfdada;
  3315. "
  3316. v-for="(w, wIndex) in workStudent[toolIndex]"
  3317. :key="wIndex"
  3318. >
  3319. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3320. <img :src="word" alt />
  3321. <img
  3322. class="deleteImg"
  3323. src="../../assets/deleteworks.png"
  3324. v-if="
  3325. w.userid == userid || tType == 1 || tType == 4
  3326. "
  3327. @click.stop="deleteWorks(w.wid)"
  3328. alt
  3329. />
  3330. </div>
  3331. <div class="worksName">
  3332. <div>{{ w.sName }}</div>
  3333. </div>
  3334. </div>
  3335. </div>
  3336. </div>
  3337. <div
  3338. v-if="
  3339. tType &&
  3340. ((tType == 2 && sIsOpen == true) ||
  3341. tType == 1 ||
  3342. tType == 4) &&
  3343. tool.tool.indexOf(32) != -1
  3344. "
  3345. class="worksBox"
  3346. >
  3347. <div
  3348. class="zuoyeYulan"
  3349. v-if="
  3350. worksStudent.length &&
  3351. worksStudent[toolIndex].length > 0
  3352. "
  3353. >
  3354. <div class="worksTop">
  3355. <div>作业预览</div>
  3356. <div
  3357. class="corOpen"
  3358. @click="contract(toolIndex)"
  3359. v-if="
  3360. (isCloseList[toolIndex].isCloseBoolean) &&
  3361. isCloseList[toolIndex].isClose == 0
  3362. "
  3363. >
  3364. 折叠
  3365. </div>
  3366. <div
  3367. class="corOpen"
  3368. @click="contract(toolIndex)"
  3369. v-if="isCloseList[toolIndex].isClose == 1"
  3370. >
  3371. 展开
  3372. </div>
  3373. </div>
  3374. </div>
  3375. <div
  3376. :id="'tool-' + toolIndex"
  3377. :style="{
  3378. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3379. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3380. }"
  3381. class="worksDetailBox"
  3382. v-if="
  3383. worksStudent.length &&
  3384. worksStudent[toolIndex].length > 0
  3385. "
  3386. >
  3387. <div
  3388. class="works"
  3389. style="
  3390. width: 200px;
  3391. height: 140px;
  3392. margin: 10px 10px 10px 0;
  3393. border-radius: 15px;
  3394. box-shadow: 0 0 6px 1px #dfdada;
  3395. "
  3396. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3397. :key="wIndex"
  3398. :class="w.type == 1 ? 'isTypeOne' : ''"
  3399. >
  3400. <div class="workImg">
  3401. <img
  3402. :src="word2"
  3403. @click="downloadFile(w.works)"
  3404. alt
  3405. />
  3406. <div
  3407. class="answerScore"
  3408. v-if="w.score"
  3409. @click.stop="openScore(w)"
  3410. :class="{
  3411. rightW:
  3412. w.userid == userid ||
  3413. tType == 1 ||
  3414. tType == 4 ||
  3415. w.ateacher == userid,
  3416. }"
  3417. >
  3418. {{ JSON.parse(w.score).wScore }}分
  3419. </div>
  3420. <div
  3421. class="answerScore"
  3422. @click.stop="openScore(w)"
  3423. v-else-if="courseDetail.userid == userid"
  3424. :class="{
  3425. rightW:
  3426. w.userid == userid ||
  3427. tType == 1 ||
  3428. tType == 4 ||
  3429. w.ateacher == userid,
  3430. }"
  3431. >
  3432. 评分
  3433. </div>
  3434. <img
  3435. class="deleteImg"
  3436. src="../../assets/deleteworks.png"
  3437. v-if="
  3438. w.userid == userid || tType == 1 || tType == 4
  3439. "
  3440. @click.stop="deleteWorks(w.wid)"
  3441. alt
  3442. />
  3443. </div>
  3444. <div class="comment" style="min-width: 200px">
  3445. <div class="worksName">
  3446. <div>{{ w.sName }}</div>
  3447. </div>
  3448. <div class="commentList">
  3449. <div class="commentList">
  3450. <div
  3451. class="commentImg"
  3452. @click="
  3453. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3454. "
  3455. >
  3456. <img
  3457. :src="w.isLikes == true ? likes : noLikes"
  3458. alt=""
  3459. />
  3460. </div>
  3461. <div>{{ w.likesCount }}</div>
  3462. </div>
  3463. <div class="commentList" style="margin-right: 15px">
  3464. <div
  3465. class="commentImg"
  3466. @click="commentOther(w, toolIndex, wIndex)"
  3467. >
  3468. <img
  3469. src="../../assets/icon/comment/comment.png"
  3470. alt=""
  3471. />
  3472. </div>
  3473. <div>{{ w.commentCount }}</div>
  3474. </div>
  3475. </div>
  3476. </div>
  3477. </div>
  3478. </div>
  3479. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3480. 未提交
  3481. </div>
  3482. <div
  3483. class="noWorksS"
  3484. v-if="noWorksS && noWorksS[toolIndex].length"
  3485. >
  3486. <div
  3487. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3488. :key="sIndex"
  3489. class="noWorksName"
  3490. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3491. >
  3492. <el-tooltip effect="dark" :content="s.student" placement="top">
  3493. <span>{{ s.student }}</span>
  3494. </el-tooltip>
  3495. </div>
  3496. </div>
  3497. </div>
  3498. <div
  3499. v-if="
  3500. tType &&
  3501. ((tType == 2 && sIsOpen == true) ||
  3502. tType == 1 ||
  3503. tType == 4) &&
  3504. tool.tool.indexOf(57) != -1
  3505. "
  3506. class="worksBox"
  3507. >
  3508. <div
  3509. class="zuoyeYulan"
  3510. v-if="
  3511. worksStudent.length &&
  3512. worksStudent[toolIndex].length > 0
  3513. "
  3514. >
  3515. <div class="worksTop">
  3516. <div>作业预览</div>
  3517. <div
  3518. class="corOpen"
  3519. @click="contract(toolIndex)"
  3520. v-if="
  3521. (isCloseList[toolIndex].isCloseBoolean) &&
  3522. isCloseList[toolIndex].isClose == 0
  3523. "
  3524. >
  3525. 折叠
  3526. </div>
  3527. <div
  3528. class="corOpen"
  3529. @click="contract(toolIndex)"
  3530. v-if="isCloseList[toolIndex].isClose == 1"
  3531. >
  3532. 展开
  3533. </div>
  3534. </div>
  3535. </div>
  3536. <div
  3537. :id="'tool-' + toolIndex"
  3538. :style="{
  3539. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3540. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3541. }"
  3542. class="worksDetailBox"
  3543. v-if="
  3544. worksStudent.length &&
  3545. worksStudent[toolIndex].length > 0
  3546. "
  3547. >
  3548. <div
  3549. class="works"
  3550. style="
  3551. width: 200px;
  3552. height: 140px;
  3553. margin: 10px 10px 10px 0;
  3554. border-radius: 15px;
  3555. box-shadow: 0 0 6px 1px #dfdada;
  3556. "
  3557. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3558. :key="wIndex"
  3559. :class="w.type == 1 ? 'isTypeOne' : ''"
  3560. >
  3561. <div class="workImg">
  3562. <img
  3563. :src="word2"
  3564. @click="downloadFile(w.works)"
  3565. v-if="w.type == 12"
  3566. alt
  3567. />
  3568. <img
  3569. :src="word2"
  3570. @click="
  3571. openCocoPi(57, toolIndex, w.userid, w.sName)
  3572. "
  3573. v-else-if="w.type == 15"
  3574. alt
  3575. />
  3576. <div
  3577. class="answerScore"
  3578. v-if="w.score"
  3579. @click.stop="openScore(w)"
  3580. :class="{
  3581. rightW:
  3582. w.userid == userid ||
  3583. tType == 1 ||
  3584. tType == 4 ||
  3585. w.ateacher == userid,
  3586. }"
  3587. >
  3588. {{ JSON.parse(w.score).wScore }}分
  3589. </div>
  3590. <div
  3591. class="answerScore"
  3592. @click.stop="openScore(w)"
  3593. v-else-if="courseDetail.userid == userid"
  3594. :class="{
  3595. rightW:
  3596. w.userid == userid ||
  3597. tType == 1 ||
  3598. tType == 4 ||
  3599. w.ateacher == userid,
  3600. }"
  3601. >
  3602. 评分
  3603. </div>
  3604. <img
  3605. class="deleteImg"
  3606. src="../../assets/deleteworks.png"
  3607. v-if="
  3608. w.userid == userid || tType == 1 || tType == 4
  3609. "
  3610. @click.stop="deleteWorks(w.wid)"
  3611. alt
  3612. />
  3613. </div>
  3614. <div class="comment" style="min-width: 200px">
  3615. <div class="worksName">
  3616. <div>{{ w.sName }}</div>
  3617. </div>
  3618. <div class="commentList">
  3619. <div class="commentList">
  3620. <div
  3621. class="commentImg"
  3622. @click="
  3623. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3624. "
  3625. >
  3626. <img
  3627. :src="w.isLikes == true ? likes : noLikes"
  3628. alt=""
  3629. />
  3630. </div>
  3631. <div>{{ w.likesCount }}</div>
  3632. </div>
  3633. <div class="commentList" style="margin-right: 15px">
  3634. <div
  3635. class="commentImg"
  3636. @click="commentOther(w, toolIndex, wIndex)"
  3637. >
  3638. <img
  3639. src="../../assets/icon/comment/comment.png"
  3640. alt=""
  3641. />
  3642. </div>
  3643. <div>{{ w.commentCount }}</div>
  3644. </div>
  3645. </div>
  3646. </div>
  3647. </div>
  3648. </div>
  3649. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3650. 未提交
  3651. </div>
  3652. <div
  3653. class="noWorksS"
  3654. v-if="noWorksS && noWorksS[toolIndex].length"
  3655. >
  3656. <div
  3657. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3658. :key="sIndex"
  3659. class="noWorksName"
  3660. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3661. >
  3662. <el-tooltip effect="dark" :content="s.student" placement="top">
  3663. <span>{{ s.student }}</span>
  3664. </el-tooltip>
  3665. </div>
  3666. </div>
  3667. </div>
  3668. <div
  3669. v-if="
  3670. tType &&
  3671. ((tType == 2 && sIsOpen == true) ||
  3672. tType == 1 ||
  3673. tType == 4) &&
  3674. tool.tool.indexOf(72) != -1
  3675. "
  3676. class="worksBox"
  3677. >
  3678. <div
  3679. class="zuoyeYulan"
  3680. v-if="
  3681. worksStudent.length &&
  3682. worksStudent[toolIndex].length > 0
  3683. "
  3684. >
  3685. <div class="worksTop">
  3686. <div>作业预览</div>
  3687. <div
  3688. class="corOpen"
  3689. @click="contract(toolIndex)"
  3690. v-if="
  3691. isCloseList[toolIndex].isCloseBoolean &&
  3692. isCloseList[toolIndex].isClose == 0
  3693. "
  3694. >
  3695. 折叠
  3696. </div>
  3697. <div
  3698. class="corOpen"
  3699. @click="contract(toolIndex)"
  3700. v-if="isCloseList[toolIndex].isClose == 1"
  3701. >
  3702. 展开
  3703. </div>
  3704. </div>
  3705. </div>
  3706. <div
  3707. :id="'tool-' + toolIndex"
  3708. :style="{
  3709. height:
  3710. isCloseList[toolIndex].isClose == 1
  3711. ? retrnToolHeight('tool-' + toolIndex)
  3712. : 'auto',
  3713. overflow:
  3714. isCloseList[toolIndex].isClose == 1
  3715. ? 'hidden'
  3716. : 'unset'
  3717. }"
  3718. class="worksDetailBox"
  3719. v-if="
  3720. worksStudent.length &&
  3721. worksStudent[toolIndex].length > 0
  3722. "
  3723. >
  3724. <div
  3725. class="works"
  3726. style="
  3727. width: 200px;
  3728. height: 140px;
  3729. margin: 10px 10px 10px 0;
  3730. border-radius: 15px;
  3731. box-shadow: 0 0 6px 1px #dfdada;
  3732. "
  3733. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3734. :key="wIndex"
  3735. :class="w.type == 1 ? 'isTypeOne' : ''"
  3736. >
  3737. <div class="workImg">
  3738. <!-- <img
  3739. :src="word2"
  3740. @click="downloadFile(w.works)"
  3741. v-if="w.type == 12"
  3742. alt
  3743. /> -->
  3744. <img
  3745. :src="word2"
  3746. @click="
  3747. openCocoFlow(w)
  3748. "
  3749. alt
  3750. />
  3751. <div
  3752. class="answerScore"
  3753. v-if="w.score"
  3754. @click.stop="openScore(w)"
  3755. :class="{
  3756. rightW:
  3757. w.userid == userid ||
  3758. tType == 1 ||
  3759. tType == 4 ||
  3760. w.ateacher == userid
  3761. }"
  3762. >
  3763. {{ JSON.parse(w.score).wScore }}分
  3764. </div>
  3765. <div
  3766. class="answerScore"
  3767. @click.stop="openScore(w)"
  3768. v-else-if="
  3769. courseDetail.userid == userid &&
  3770. courseDetail.state != 5 &&
  3771. chapInfoList[courseType].chapterInfo[0]
  3772. .taskJson[taskCount].eList &&
  3773. chapInfoList[courseType].chapterInfo[0]
  3774. .taskJson[taskCount].eList.length
  3775. "
  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="comment" style="min-width: 200px">
  3797. <div class="worksName">
  3798. <div>{{ w.sName }}</div>
  3799. </div>
  3800. <div class="commentList">
  3801. <div class="commentList">
  3802. <div
  3803. class="commentImg"
  3804. @click="
  3805. isLikes(
  3806. w.wid,
  3807. userid,
  3808. 1,
  3809. null,
  3810. w.isLikes,
  3811. w.sName
  3812. )
  3813. "
  3814. >
  3815. <img
  3816. :src="w.isLikes == true ? likes : noLikes"
  3817. alt=""
  3818. />
  3819. </div>
  3820. <div>{{ w.likesCount }}</div>
  3821. </div>
  3822. <div class="commentList" style="margin-right: 15px">
  3823. <div
  3824. class="commentImg"
  3825. @click="commentOther(w, toolIndex, wIndex)"
  3826. >
  3827. <img
  3828. src="../../assets/icon/comment/comment.png"
  3829. alt=""
  3830. />
  3831. </div>
  3832. <div>{{ w.commentCount }}</div>
  3833. </div>
  3834. </div>
  3835. </div>
  3836. </div>
  3837. </div>
  3838. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3839. 未提交
  3840. </div>
  3841. <div
  3842. class="noWorksS"
  3843. v-if="noWorksS && noWorksS[toolIndex].length"
  3844. >
  3845. <div
  3846. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3847. :key="sIndex"
  3848. class="noWorksName"
  3849. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  3850. >
  3851. <el-tooltip
  3852. effect="dark"
  3853. :content="s.student"
  3854. placement="top"
  3855. >
  3856. <span>{{ s.student }}</span>
  3857. </el-tooltip>
  3858. </div>
  3859. </div>
  3860. </div>
  3861. <div
  3862. v-if="
  3863. tType &&
  3864. tType == 2 &&
  3865. !sIsOpen &&
  3866. tool.tool.indexOf(72) != -1
  3867. "
  3868. class="worksBox"
  3869. >
  3870. <div
  3871. class="zuoyeYulan"
  3872. v-if="workStudent[toolIndex].length > 0"
  3873. >
  3874. <span class="worksTitle">作业预览</span>
  3875. </div>
  3876. <div
  3877. class="worksDetailBox"
  3878. v-if="workStudent[toolIndex].length > 0"
  3879. >
  3880. <div
  3881. class="works"
  3882. style="
  3883. width: 200px;
  3884. height: 140px;
  3885. margin: 10px 10px 10px 0;
  3886. box-shadow: 0 0 6px 1px #dfdada;
  3887. "
  3888. v-for="(w, wIndex) in workStudent[toolIndex]"
  3889. :key="wIndex"
  3890. >
  3891. <div class="workImg">
  3892. <!-- <img
  3893. :src="word2"
  3894. @click="downloadFile(w.works)"
  3895. v-if="w.type == 12"
  3896. alt
  3897. /> -->
  3898. <img
  3899. :src="word2"
  3900. @click="
  3901. openCocoFlow(w)
  3902. "
  3903. alt
  3904. />
  3905. <div
  3906. class="answerScore"
  3907. v-if="w.score"
  3908. @click.stop="openScore(w)"
  3909. :class="{
  3910. rightW:
  3911. w.userid == userid || tType == 1 || tType == 4
  3912. }"
  3913. >
  3914. {{ JSON.parse(w.score).wScore }}分
  3915. </div>
  3916. <div
  3917. class="answerScore"
  3918. @click.stop="openScore(w)"
  3919. v-else-if="courseDetail.userid == userid"
  3920. :class="{
  3921. rightW:
  3922. w.userid == userid || tType == 1 || tType == 4
  3923. }"
  3924. >
  3925. 评分
  3926. </div>
  3927. <img
  3928. class="deleteImg"
  3929. src="../../assets/deleteworks.png"
  3930. v-if="
  3931. w.userid == userid || tType == 1 || tType == 4
  3932. "
  3933. @click.stop="deleteWorks(w.wid)"
  3934. alt
  3935. />
  3936. </div>
  3937. <div class="worksName">
  3938. <div>{{ w.sName }}</div>
  3939. </div>
  3940. </div>
  3941. </div>
  3942. </div>
  3943. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3944. <div
  3945. class="zuoyeYulan"
  3946. v-if="
  3947. worksStudent.length &&
  3948. worksStudent[toolIndex].length > 0
  3949. "
  3950. >
  3951. <span class="worksTitle">作业预览</span>
  3952. <div
  3953. class="corOpen"
  3954. @click="contract(toolIndex)"
  3955. v-if="
  3956. (isCloseList[toolIndex].isCloseBoolean) &&
  3957. isCloseList[toolIndex].isClose == 0
  3958. "
  3959. >
  3960. 折叠
  3961. </div>
  3962. <div
  3963. class="corOpen"
  3964. @click="contract(toolIndex)"
  3965. v-if="isCloseList[toolIndex].isClose == 1"
  3966. >
  3967. 展开
  3968. </div>
  3969. </div>
  3970. <div
  3971. :id="'tool-' + toolIndex"
  3972. :style="{
  3973. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3974. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3975. }"
  3976. class="worksDetailBox"
  3977. v-if="
  3978. worksStudent.length &&
  3979. worksStudent[toolIndex].length > 0
  3980. "
  3981. >
  3982. <div
  3983. class="works"
  3984. style="
  3985. width: 200px;
  3986. height: 140px;
  3987. margin: 10px 10px 10px 0;
  3988. border-radius: 15px;
  3989. box-shadow: 0 0 6px 1px #dfdada;
  3990. "
  3991. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3992. :key="wIndex"
  3993. :class="w.type == 1 ? 'isTypeOne' : ''"
  3994. >
  3995. <div class="workImg" v-if="w.type == 0">
  3996. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3997. <img
  3998. :src="w.works"
  3999. @click="previewImg(w.works,w)"
  4000. alt
  4001. />
  4002. <div
  4003. class="answerScore"
  4004. v-if="w.score"
  4005. @click.stop="openScore(w)"
  4006. :class="{
  4007. rightW:
  4008. w.userid == userid ||
  4009. tType == 1 ||
  4010. tType == 4 ||
  4011. w.ateacher == userid,
  4012. }"
  4013. >
  4014. {{ JSON.parse(w.score).wScore }}分
  4015. </div>
  4016. <div
  4017. class="answerScore"
  4018. @click.stop="openScore(w)"
  4019. v-else-if="courseDetail.userid == userid"
  4020. :class="{
  4021. rightW:
  4022. w.userid == userid ||
  4023. tType == 1 ||
  4024. tType == 4 ||
  4025. w.ateacher == userid,
  4026. }"
  4027. >
  4028. 评分
  4029. </div>
  4030. <img
  4031. class="deleteImg"
  4032. src="../../assets/deleteworks.png"
  4033. v-if="
  4034. w.userid == userid || tType == 1 || tType == 4
  4035. "
  4036. @click.stop="deleteWorks(w.wid)"
  4037. alt
  4038. />
  4039. </div>
  4040. <div
  4041. class="workImg"
  4042. style="cursor: pointer"
  4043. v-if="w.type == 1"
  4044. >
  4045. <img :src="word" @click="openFile(w.works)" alt />
  4046. <!-- @click="openFile(w.works)" -->
  4047. <div
  4048. class="answerScore"
  4049. v-if="w.score"
  4050. @click.stop="openScore(w)"
  4051. :class="{
  4052. rightW:
  4053. w.userid == userid ||
  4054. tType == 1 ||
  4055. tType == 4 ||
  4056. w.ateacher == userid,
  4057. }"
  4058. >
  4059. {{ JSON.parse(w.score).wScore }}分
  4060. </div>
  4061. <div
  4062. class="answerScore"
  4063. @click.stop="openScore(w)"
  4064. v-else-if="courseDetail.userid == userid"
  4065. :class="{
  4066. rightW:
  4067. w.userid == userid ||
  4068. tType == 1 ||
  4069. tType == 4 ||
  4070. w.ateacher == userid,
  4071. }"
  4072. >
  4073. 评分
  4074. </div>
  4075. <img
  4076. class="deleteImg"
  4077. src="../../assets/deleteworks.png"
  4078. v-if="
  4079. w.userid == userid || tType == 1 || tType == 4
  4080. "
  4081. @click.stop="deleteWorks(w.wid)"
  4082. alt
  4083. />
  4084. </div>
  4085. <div class="workImg" v-if="w.type == 3">
  4086. <img
  4087. style="cursor: pointer"
  4088. :src="video"
  4089. @click="openVideo(w)"
  4090. alt
  4091. />
  4092. <!-- @click="openVideo(w.works)" -->
  4093. <div
  4094. class="answerScore"
  4095. v-if="w.score"
  4096. @click.stop="openScore(w)"
  4097. :class="{
  4098. rightW:
  4099. w.userid == userid ||
  4100. tType == 1 ||
  4101. tType == 4 ||
  4102. w.ateacher == userid,
  4103. }"
  4104. >
  4105. {{ JSON.parse(w.score).wScore }}分
  4106. </div>
  4107. <div
  4108. class="answerScore"
  4109. @click.stop="openScore(w)"
  4110. v-else-if="courseDetail.userid == userid"
  4111. :class="{
  4112. rightW:
  4113. w.userid == userid ||
  4114. tType == 1 ||
  4115. tType == 4 ||
  4116. w.ateacher == userid,
  4117. }"
  4118. >
  4119. 评分
  4120. </div>
  4121. <img
  4122. class="deleteImg"
  4123. src="../../assets/deleteworks.png"
  4124. v-if="
  4125. w.userid == userid || tType == 1 || tType == 4
  4126. "
  4127. @click.stop="deleteWorks(w.wid)"
  4128. alt
  4129. />
  4130. </div>
  4131. <div class="comment" style="min-width: 200px">
  4132. <div class="worksName">
  4133. <div
  4134. style="cursor: pointer"
  4135. @click="
  4136. openSname(w.sName, w.wid, toolIndex, w.userid)
  4137. "
  4138. >
  4139. {{ w.sName }}
  4140. </div>
  4141. </div>
  4142. <div class="commentList">
  4143. <div class="commentList">
  4144. <div
  4145. class="commentImg"
  4146. @click="
  4147. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4148. "
  4149. >
  4150. <img
  4151. :src="w.isLikes == true ? likes : noLikes"
  4152. alt=""
  4153. />
  4154. </div>
  4155. <div>{{ w.likesCount }}</div>
  4156. </div>
  4157. <div class="commentList" style="margin-right: 15px">
  4158. <div
  4159. class="commentImg"
  4160. @click="commentOther(w, toolIndex, wIndex)"
  4161. >
  4162. <img
  4163. src="../../assets/icon/comment/comment.png"
  4164. alt=""
  4165. />
  4166. </div>
  4167. <div>{{ w.commentCount }}</div>
  4168. </div>
  4169. </div>
  4170. </div>
  4171. </div>
  4172. </div>
  4173. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4174. 未提交
  4175. </div>
  4176. <div
  4177. class="noWorksS"
  4178. v-if="noWorksS && noWorksS[toolIndex].length"
  4179. >
  4180. <div
  4181. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4182. :key="sIndex"
  4183. class="noWorksName"
  4184. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4185. >
  4186. <el-tooltip effect="dark" :content="s.student" placement="top">
  4187. <span>{{ s.student }}</span>
  4188. </el-tooltip>
  4189. </div>
  4190. </div>
  4191. </div>
  4192. <div
  4193. v-if="
  4194. tType &&
  4195. ((tType == 2 && sIsOpen == true) ||
  4196. tType == 1 ||
  4197. tType == 4) &&
  4198. tool.tool.indexOf(4) != -1 &&
  4199. (tool.askJson[0].answer ||
  4200. tool.askJson[0].answer === 0) &&
  4201. checkJson[toolIndex].length
  4202. "
  4203. class="xuan_right_box"
  4204. >
  4205. <div
  4206. class="tool_right_box"
  4207. v-for="(item, index) in tool.askJson"
  4208. :key="index"
  4209. >
  4210. <div style="width: calc(100% - 30px);">
  4211. <el-tooltip
  4212. effect="light"
  4213. :content="index + 1 + '、' + item.askstitle"
  4214. placement="top"
  4215. popper-class="text_tooltip"
  4216. >
  4217. <div
  4218. style="
  4219. width: calc(100% - 130px);
  4220. display: block;
  4221. white-space: nowrap;
  4222. overflow: hidden;
  4223. text-overflow: ellipsis;
  4224. word-break: break-word;
  4225. cursor: pointer;
  4226. "
  4227. >
  4228. {{ index + 1 + "、" + item.askstitle }}
  4229. </div>
  4230. </el-tooltip>
  4231. </div>
  4232. <div class="right_box_xuan">
  4233. <span>正确率</span>
  4234. <span>{{
  4235. (checkJson[toolIndex][index].right
  4236. ? checkJson[toolIndex][index].right
  4237. : 0) + "%"
  4238. }}</span>
  4239. </div>
  4240. </div>
  4241. </div>
  4242. <div
  4243. class="xuan_right_box"
  4244. style="background: unset; padding: 0 10px"
  4245. v-if="
  4246. tType &&
  4247. ((tType == 2 && sIsOpen == true) ||
  4248. tType == 1 ||
  4249. tType == 4) &&
  4250. tool.tool.indexOf(4) != -1
  4251. "
  4252. >
  4253. <AskStatic
  4254. v-if="
  4255. worksStudent.length &&
  4256. worksStudent[toolIndex].length > 0
  4257. "
  4258. :askJSON="tool"
  4259. :checkJson="checkJson[toolIndex]"
  4260. ></AskStatic>
  4261. </div>
  4262. <div
  4263. v-if="
  4264. tType &&
  4265. ((tType == 2 && sIsOpen == true) ||
  4266. tType == 1 ||
  4267. tType == 4) &&
  4268. tool.tool.indexOf(4) != -1
  4269. "
  4270. class="worksBox"
  4271. >
  4272. <div
  4273. class="zuoyeYulan"
  4274. v-if="
  4275. worksStudent.length &&
  4276. worksStudent[toolIndex].length > 0
  4277. "
  4278. >
  4279. <div class="worksTop">
  4280. <div>作业预览</div>
  4281. <div
  4282. class="corOpen"
  4283. @click="contract(toolIndex)"
  4284. v-if="
  4285. (isCloseList[toolIndex].isCloseBoolean) &&
  4286. isCloseList[toolIndex].isClose == 0
  4287. "
  4288. >
  4289. 折叠
  4290. </div>
  4291. <div
  4292. class="corOpen"
  4293. @click="contract(toolIndex)"
  4294. v-if="isCloseList[toolIndex].isClose == 1"
  4295. >
  4296. 展开
  4297. </div>
  4298. </div>
  4299. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4300. </div>
  4301. <div>
  4302. <div
  4303. :id="'tool-' + toolIndex"
  4304. :style="{
  4305. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4306. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4307. }"
  4308. class="worksDetailBox"
  4309. v-if="
  4310. worksStudent.length &&
  4311. worksStudent[toolIndex].length > 0
  4312. "
  4313. >
  4314. <div
  4315. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4316. :key="wIndex"
  4317. class="isWorksName2"
  4318. @click="
  4319. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4320. "
  4321. >
  4322. {{ w.sName }}
  4323. <img
  4324. class="deleteImg deleteImg2"
  4325. src="../../assets/deleteworks.png"
  4326. v-if="
  4327. w.userid == userid || tType == 1 || tType == 4
  4328. "
  4329. @click.stop="deleteWorks(w.wid)"
  4330. alt
  4331. />
  4332. </div>
  4333. <!-- <div class="works" style="
  4334. width: 200px;
  4335. height: 140px;
  4336. border-radius: 10px;
  4337. box-shadow: 0 0 6px 1px #dfdada;
  4338. overflow: hidden;
  4339. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4340. <div class="workImg">
  4341. <img src="../../assets/icon/works/noImg.png" @click="
  4342. openTools(
  4343. 4,
  4344. toolIndex,
  4345. taskCount,
  4346. w.works,
  4347. w.sName
  4348. )
  4349. " alt />
  4350. </div>
  4351. <div class="worksName">
  4352. <div>{{ w.sName }}</div>
  4353. <div>{{ w.time }}</div>
  4354. </div>
  4355. </div> -->
  4356. </div>
  4357. </div>
  4358. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4359. 未提交
  4360. </div>
  4361. <div
  4362. class="noWorksS"
  4363. v-if="noWorksS && noWorksS[toolIndex].length"
  4364. >
  4365. <div
  4366. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4367. :key="sIndex"
  4368. class="noWorksName"
  4369. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4370. >
  4371. <el-tooltip effect="dark" :content="s.student" placement="top">
  4372. <span>{{ s.student }}</span>
  4373. </el-tooltip>
  4374. </div>
  4375. </div>
  4376. </div>
  4377. <div
  4378. v-if="
  4379. tType &&
  4380. ((tType == 2 && sIsOpen == true) ||
  4381. tType == 1 ||
  4382. tType == 4) &&
  4383. tool.tool.indexOf(45) != -1 &&
  4384. (tool.testJson.testJson[0].answer ||
  4385. tool.testJson.testJson[0].answer === 0) &&
  4386. checkJson[toolIndex].length
  4387. "
  4388. class="xuan_right_box"
  4389. >
  4390. <div
  4391. class="tool_right_box"
  4392. v-for="(item, index) in tool.testJson.testJson"
  4393. :key="index"
  4394. >
  4395. <div class="right_box_xuan" style="margin-right: 10px">
  4396. <span>正确率</span>
  4397. <span>{{
  4398. (checkJson[toolIndex][index].right
  4399. ? checkJson[toolIndex][index].right
  4400. : 0) + "%"
  4401. }}</span>
  4402. </div>
  4403. <div style="width: calc(100% - 30px);">
  4404. <el-tooltip
  4405. effect="light"
  4406. :content="index + 1 + '、' + item.teststitle"
  4407. placement="top"
  4408. popper-class="text_tooltip"
  4409. >
  4410. <div
  4411. style="
  4412. width: calc(100% - 130px);
  4413. display: block;
  4414. white-space: nowrap;
  4415. overflow: hidden;
  4416. text-overflow: ellipsis;
  4417. word-break: break-word;
  4418. cursor: pointer;
  4419. "
  4420. >
  4421. {{ index + 1 + "、" + item.teststitle }}
  4422. </div>
  4423. </el-tooltip>
  4424. </div>
  4425. </div>
  4426. </div>
  4427. <div
  4428. class="xuan_right_box"
  4429. style="background: unset; padding: 0 10px; width: 91.5%"
  4430. v-if="
  4431. tType &&
  4432. ((tType == 2 && sIsOpen == true) ||
  4433. tType == 1 ||
  4434. tType == 4) &&
  4435. tool.tool.indexOf(45) != -1
  4436. "
  4437. >
  4438. <AskStatic2
  4439. v-if="
  4440. worksStudent.length &&
  4441. worksStudent[toolIndex].length > 0
  4442. "
  4443. :askJSON="tool"
  4444. :checkJson="checkJson[toolIndex]"
  4445. ></AskStatic2>
  4446. </div>
  4447. <div
  4448. v-if="
  4449. tType &&
  4450. ((tType == 2 && sIsOpen == true) ||
  4451. tType == 1 ||
  4452. tType == 4) &&
  4453. tool.tool.indexOf(45) != -1
  4454. "
  4455. class="worksBox"
  4456. >
  4457. <div
  4458. class="zuoyeYulan"
  4459. v-if="
  4460. worksStudent.length &&
  4461. worksStudent[toolIndex].length > 0
  4462. "
  4463. >
  4464. <div class="worksTop">
  4465. <div>作业预览</div>
  4466. <div
  4467. class="corOpen"
  4468. @click="contract(toolIndex)"
  4469. v-if="
  4470. (isCloseList[toolIndex].isCloseBoolean) &&
  4471. isCloseList[toolIndex].isClose == 0
  4472. "
  4473. >
  4474. 折叠
  4475. </div>
  4476. <div
  4477. class="corOpen"
  4478. @click="contract(toolIndex)"
  4479. v-if="isCloseList[toolIndex].isClose == 1"
  4480. >
  4481. 展开
  4482. </div>
  4483. </div>
  4484. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4485. </div>
  4486. <div>
  4487. <div
  4488. :id="'tool-' + toolIndex"
  4489. :style="{
  4490. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4491. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4492. }"
  4493. class="worksDetailBox"
  4494. v-if="
  4495. worksStudent.length &&
  4496. worksStudent[toolIndex].length > 0
  4497. "
  4498. >
  4499. <div
  4500. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4501. :key="wIndex"
  4502. class="isWorksName2"
  4503. @click="
  4504. openTools(
  4505. 45,
  4506. toolIndex,
  4507. taskCount,
  4508. w.works,
  4509. w.sName
  4510. )
  4511. "
  4512. >
  4513. {{ w.sName }}
  4514. <img
  4515. class="deleteImg deleteImg2"
  4516. src="../../assets/deleteworks.png"
  4517. v-if="
  4518. w.userid == userid || tType == 1 || tType == 4
  4519. "
  4520. @click.stop="deleteWorks(w.wid)"
  4521. alt
  4522. />
  4523. </div>
  4524. </div>
  4525. </div>
  4526. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4527. 未提交
  4528. </div>
  4529. <div
  4530. class="noWorksS"
  4531. v-if="noWorksS && noWorksS[toolIndex].length"
  4532. >
  4533. <div
  4534. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4535. :key="sIndex"
  4536. class="noWorksName"
  4537. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4538. >
  4539. <el-tooltip effect="dark" :content="s.student" placement="top">
  4540. <span>{{ s.student }}</span>
  4541. </el-tooltip>
  4542. </div>
  4543. </div>
  4544. </div>
  4545. <div
  4546. v-if="
  4547. tType &&
  4548. ((tType == 2 && sIsOpen == true) ||
  4549. tType == 1 ||
  4550. tType == 4) &&
  4551. tool.tool.indexOf(69) != -1
  4552. "
  4553. class="worksBox"
  4554. >
  4555. <div
  4556. class="zuoyeYulan"
  4557. v-if="
  4558. worksStudent.length &&
  4559. worksStudent[toolIndex].length > 0
  4560. "
  4561. >
  4562. <div class="worksTop">
  4563. <div>作业预览</div>
  4564. <div
  4565. class="corOpen"
  4566. @click="contract(toolIndex)"
  4567. v-if="
  4568. (isCloseList[toolIndex].isCloseBoolean) &&
  4569. isCloseList[toolIndex].isClose == 0
  4570. "
  4571. >
  4572. 折叠
  4573. </div>
  4574. <div
  4575. class="corOpen"
  4576. @click="contract(toolIndex)"
  4577. v-if="isCloseList[toolIndex].isClose == 1"
  4578. >
  4579. 展开
  4580. </div>
  4581. </div>
  4582. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4583. </div>
  4584. <div>
  4585. <div
  4586. :id="'tool-' + toolIndex"
  4587. :style="{
  4588. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4589. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4590. }"
  4591. class="worksDetailBox"
  4592. v-if="
  4593. worksStudent.length &&
  4594. worksStudent[toolIndex].length > 0
  4595. "
  4596. >
  4597. <div
  4598. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4599. :key="wIndex"
  4600. class="isWorksName2"
  4601. style="width: 160px;height: 65px;line-height: 65px;"
  4602. @click="
  4603. openTools(
  4604. 69,
  4605. toolIndex,
  4606. taskCount,
  4607. w.works,
  4608. w.sName,
  4609. w.wid
  4610. )
  4611. "
  4612. >
  4613. {{ w.sName }}
  4614. <img
  4615. class="deleteImg1"
  4616. src="../../assets/evaEnglish.png"
  4617. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4618. alt
  4619. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4620. />
  4621. <img
  4622. class="deleteImg deleteImg2"
  4623. src="../../assets/deleteworks.png"
  4624. v-if="
  4625. w.userid == userid || tType == 1 || tType == 4
  4626. "
  4627. @click.stop="deleteWorks(w.wid)"
  4628. alt
  4629. />
  4630. </div>
  4631. </div>
  4632. </div>
  4633. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4634. 未提交
  4635. </div>
  4636. <div
  4637. class="noWorksS"
  4638. v-if="noWorksS && noWorksS[toolIndex].length"
  4639. >
  4640. <div
  4641. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4642. :key="sIndex"
  4643. class="noWorksName"
  4644. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4645. >
  4646. <el-tooltip effect="dark" :content="s.student" placement="top">
  4647. <span>{{ s.student }}</span>
  4648. </el-tooltip>
  4649. </div>
  4650. </div>
  4651. </div>
  4652. <div
  4653. v-if="
  4654. tType &&
  4655. ((tType == 2 && sIsOpen == true) ||
  4656. tType == 1 ||
  4657. tType == 4) &&
  4658. tool.tool.indexOf(15) != -1
  4659. "
  4660. class="worksBox"
  4661. >
  4662. <div
  4663. class="zuoyeYulan"
  4664. v-if="
  4665. (worksStudent.length &&
  4666. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4667. "
  4668. >
  4669. <div class="worksTop">
  4670. <div>作业预览</div>
  4671. <div
  4672. class="corOpen"
  4673. @click="contract(toolIndex)"
  4674. v-if="
  4675. (isCloseList[toolIndex].isCloseBoolean) &&
  4676. isCloseList[toolIndex].isClose == 0
  4677. "
  4678. >
  4679. 折叠
  4680. </div>
  4681. <div
  4682. class="corOpen"
  4683. @click="contract(toolIndex)"
  4684. v-if="isCloseList[toolIndex].isClose == 1"
  4685. >
  4686. 展开
  4687. </div>
  4688. </div>
  4689. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4690. </div>
  4691. <div
  4692. class="group_workBox"
  4693. v-for="(g, gindex) in courseGroup.group"
  4694. :key="gindex"
  4695. >
  4696. <div class="group_box">
  4697. <div class="group_title">
  4698. <el-tooltip
  4699. class="item"
  4700. effect="light"
  4701. :content="g.name"
  4702. placement="top"
  4703. >
  4704. <div class="group_name">{{ g.name }}</div>
  4705. </el-tooltip>
  4706. </div>
  4707. <div
  4708. class="group_work"
  4709. v-if="
  4710. g.works &&
  4711. g.works.length &&
  4712. g.works[toolIndex].length
  4713. "
  4714. >
  4715. <div
  4716. class="works"
  4717. v-for="(w, wIndex) in g.works[toolIndex]"
  4718. :key="wIndex"
  4719. >
  4720. <div
  4721. class="workImg"
  4722. style="
  4723. border-radius: 15px;
  4724. box-shadow: 0px 0px 5px 5px #eee;
  4725. "
  4726. >
  4727. <div
  4728. class="answerBg"
  4729. style="border-radius: 15px 15px 0 0"
  4730. @click="
  4731. commentOther(w, toolIndex, wIndex, null, g.id)
  4732. "
  4733. >
  4734. <div class="answerContent">
  4735. {{ JSON.parse(w.works)[0].answer }}
  4736. </div>
  4737. <div
  4738. class="answerScore"
  4739. v-if="w.score"
  4740. @click.stop="openScore(w)"
  4741. :class="{
  4742. rightW:
  4743. w.userid == userid ||
  4744. tType == 1 ||
  4745. tType == 4,
  4746. }"
  4747. >
  4748. {{ JSON.parse(w.score).wScore }}分
  4749. </div>
  4750. <div
  4751. class="answerScore"
  4752. @click.stop="openScore(w)"
  4753. v-else-if="courseDetail.userid == userid"
  4754. :class="{
  4755. rightW:
  4756. w.userid == userid ||
  4757. tType == 1 ||
  4758. tType == 4,
  4759. }"
  4760. >
  4761. 评分
  4762. </div>
  4763. <img
  4764. class="deleteImg"
  4765. src="../../assets/deleteworks.png"
  4766. v-if="
  4767. w.userid == userid ||
  4768. tType == 1 ||
  4769. tType == 4
  4770. "
  4771. @click.stop="deleteWorks(w.wid)"
  4772. alt
  4773. />
  4774. </div>
  4775. <div class="comment">
  4776. <div class="worksName">
  4777. <div>{{ w.sName }}</div>
  4778. </div>
  4779. <div class="commentList">
  4780. <div
  4781. class="commentImg"
  4782. @click="
  4783. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4784. "
  4785. >
  4786. <img
  4787. :src="w.isLikes == true ? likes : noLikes"
  4788. alt=""
  4789. />
  4790. </div>
  4791. <div>{{ w.likesCount }}</div>
  4792. </div>
  4793. <div
  4794. class="commentList"
  4795. style="margin-right: 15px"
  4796. >
  4797. <div
  4798. class="commentImg"
  4799. @click="
  4800. commentOther(
  4801. w,
  4802. toolIndex,
  4803. wIndex,
  4804. null,
  4805. g.id
  4806. )
  4807. "
  4808. >
  4809. <img
  4810. src="../../assets/icon/comment/comment.png"
  4811. alt=""
  4812. />
  4813. </div>
  4814. <div>{{ w.commentCount }}</div>
  4815. </div>
  4816. </div>
  4817. </div>
  4818. </div>
  4819. </div>
  4820. <div class="group_work" v-else>暂无提交作业</div>
  4821. </div>
  4822. </div>
  4823. <div
  4824. :id="'tool-' + toolIndex"
  4825. :style="{
  4826. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4827. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4828. }"
  4829. class="worksDetailBox"
  4830. v-if="
  4831. worksStudent.length &&
  4832. worksStudent[toolIndex].length > 0
  4833. "
  4834. >
  4835. <div
  4836. class="works"
  4837. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4838. :key="wIndex"
  4839. >
  4840. <div
  4841. class="workImg"
  4842. style="
  4843. border-radius: 15px;
  4844. box-shadow: 0px 0px 5px 5px #eee;
  4845. "
  4846. >
  4847. <!-- <img
  4848. src="../../assets/icon/works/noImg.png"
  4849. @click="openTools(15, toolIndex, taskCount, w.works)"
  4850. alt=""
  4851. />-->
  4852. <div
  4853. class="answerBg"
  4854. style="border-radius: 15px 15px 0 0"
  4855. @click="commentOther(w, toolIndex, wIndex)"
  4856. >
  4857. <!-- <div>{{ w.sName }}</div> -->
  4858. <div class="answerContent">
  4859. {{ JSON.parse(w.works)[0].answer }}
  4860. </div>
  4861. <div
  4862. class="answerScore"
  4863. v-if="w.score"
  4864. @click.stop="openScore(w)"
  4865. :class="{
  4866. rightW:
  4867. w.userid == userid ||
  4868. tType == 1 ||
  4869. tType == 4,
  4870. }"
  4871. >
  4872. {{ JSON.parse(w.score).wScore }}分
  4873. </div>
  4874. <div
  4875. class="answerScore"
  4876. @click.stop="openScore(w)"
  4877. v-else-if="courseDetail.userid == userid"
  4878. :class="{
  4879. rightW:
  4880. w.userid == userid ||
  4881. tType == 1 ||
  4882. tType == 4,
  4883. }"
  4884. >
  4885. 评分
  4886. </div>
  4887. <img
  4888. class="deleteImg"
  4889. src="../../assets/deleteworks.png"
  4890. v-if="
  4891. w.userid == userid || tType == 1 || tType == 4
  4892. "
  4893. @click.stop="deleteWorks(w.wid)"
  4894. alt
  4895. />
  4896. </div>
  4897. <div class="comment">
  4898. <div class="worksName">
  4899. <div>{{ w.sName }}</div>
  4900. </div>
  4901. <div class="commentList">
  4902. <div
  4903. class="commentImg"
  4904. @click="
  4905. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4906. "
  4907. >
  4908. <img
  4909. :src="w.isLikes == true ? likes : noLikes"
  4910. alt=""
  4911. />
  4912. </div>
  4913. <div>{{ w.likesCount }}</div>
  4914. </div>
  4915. <div class="commentList" style="margin-right: 15px">
  4916. <div
  4917. class="commentImg"
  4918. @click="commentOther(w, toolIndex, wIndex)"
  4919. >
  4920. <img
  4921. src="../../assets/icon/comment/comment.png"
  4922. alt=""
  4923. />
  4924. </div>
  4925. <div>{{ w.commentCount }}</div>
  4926. </div>
  4927. </div>
  4928. </div>
  4929. </div>
  4930. </div>
  4931. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4932. 未提交
  4933. </div>
  4934. <div
  4935. class="noWorksS"
  4936. v-if="noWorksS && noWorksS[toolIndex].length"
  4937. >
  4938. <div
  4939. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4940. :key="sIndex"
  4941. class="noWorksName"
  4942. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4943. >
  4944. <el-tooltip effect="dark" :content="s.student" placement="top">
  4945. <span>{{ s.student }}</span>
  4946. </el-tooltip>
  4947. </div>
  4948. </div>
  4949. </div>
  4950. <div
  4951. v-if="
  4952. tType &&
  4953. ((tType == 2 && sIsOpen == true) ||
  4954. tType == 1 ||
  4955. tType == 4) &&
  4956. tool.tool.indexOf(1) != -1
  4957. "
  4958. class="worksBox"
  4959. >
  4960. <div
  4961. class="zuoyeYulan"
  4962. v-if="
  4963. (worksStudent.length &&
  4964. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4965. "
  4966. >
  4967. <div class="worksTop">
  4968. <div>作业预览</div>
  4969. <div
  4970. class="corOpen"
  4971. @click="contract(toolIndex)"
  4972. v-if="
  4973. (isCloseList[toolIndex].isCloseBoolean) &&
  4974. isCloseList[toolIndex].isClose == 0
  4975. "
  4976. >
  4977. 折叠
  4978. </div>
  4979. <div
  4980. class="corOpen"
  4981. @click="contract(toolIndex)"
  4982. v-if="isCloseList[toolIndex].isClose == 1"
  4983. >
  4984. 展开
  4985. </div>
  4986. </div>
  4987. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4988. </div>
  4989. <div
  4990. class="group_workBox"
  4991. v-for="(g, gindex) in courseGroup.group"
  4992. :key="gindex"
  4993. >
  4994. <div class="group_box">
  4995. <div class="group_title">
  4996. <el-tooltip
  4997. class="item"
  4998. effect="light"
  4999. :content="g.name"
  5000. placement="top"
  5001. >
  5002. <div class="group_name">{{ g.name }}</div>
  5003. </el-tooltip>
  5004. </div>
  5005. <div
  5006. class="group_work"
  5007. v-if="
  5008. g.works &&
  5009. g.works.length &&
  5010. g.works[toolIndex].length
  5011. "
  5012. >
  5013. <div
  5014. class="works"
  5015. style="
  5016. width: 200px;
  5017. height: 140px;
  5018. margin: 10px 10px 10px 0;
  5019. border-radius: 15px;
  5020. box-shadow: 0 0 6px 1px #dfdada;
  5021. "
  5022. v-for="(w, wIndex) in g.works[toolIndex]"
  5023. :key="wIndex"
  5024. :class="w.type == 1 ? 'isTypeOne' : ''"
  5025. >
  5026. <div class="workImg">
  5027. <img
  5028. :src="w.works"
  5029. @click="previewImg(w.works,w)"
  5030. alt
  5031. />
  5032. <div
  5033. class="answerScore"
  5034. v-if="w.score"
  5035. @click.stop="openScore(w)"
  5036. :class="{
  5037. rightW:
  5038. w.userid == userid ||
  5039. tType == 1 ||
  5040. tType == 4,
  5041. }"
  5042. >
  5043. {{ JSON.parse(w.score).wScore }}分
  5044. </div>
  5045. <div
  5046. class="answerScore"
  5047. @click.stop="openScore(w)"
  5048. v-else-if="courseDetail.userid == userid"
  5049. :class="{
  5050. rightW:
  5051. w.userid == userid ||
  5052. tType == 1 ||
  5053. tType == 4,
  5054. }"
  5055. >
  5056. 评分
  5057. </div>
  5058. <img
  5059. class="deleteImg"
  5060. src="../../assets/deleteworks.png"
  5061. v-if="
  5062. w.userid == userid || tType == 1 || tType == 4
  5063. "
  5064. @click.stop="deleteWorks(w.wid)"
  5065. alt
  5066. />
  5067. </div>
  5068. <div class="comment" style="min-width: 200px">
  5069. <div class="worksName">
  5070. <div>{{ w.sName }}</div>
  5071. </div>
  5072. <div class="commentList">
  5073. <div class="commentList">
  5074. <div
  5075. class="commentImg"
  5076. @click="
  5077. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5078. "
  5079. >
  5080. <img
  5081. :src="w.isLikes == true ? likes : noLikes"
  5082. alt=""
  5083. />
  5084. </div>
  5085. <div>{{ w.likesCount }}</div>
  5086. </div>
  5087. <div
  5088. class="commentList"
  5089. style="margin-right: 15px"
  5090. >
  5091. <div
  5092. class="commentImg"
  5093. @click="
  5094. commentOther(
  5095. w,
  5096. toolIndex,
  5097. wIndex,
  5098. null,
  5099. g.id
  5100. )
  5101. "
  5102. >
  5103. <img
  5104. src="../../assets/icon/comment/comment.png"
  5105. alt=""
  5106. />
  5107. </div>
  5108. <div>{{ w.commentCount }}</div>
  5109. </div>
  5110. </div>
  5111. </div>
  5112. </div>
  5113. </div>
  5114. <div class="group_work" v-else>暂无提交作业</div>
  5115. </div>
  5116. </div>
  5117. <div
  5118. :id="'tool-' + toolIndex"
  5119. :style="{
  5120. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5121. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5122. }"
  5123. class="worksDetailBox"
  5124. v-if="
  5125. worksStudent.length &&
  5126. worksStudent[toolIndex].length > 0
  5127. "
  5128. >
  5129. <div
  5130. class="works"
  5131. style="
  5132. width: 200px;
  5133. height: 140px;
  5134. margin: 10px 10px 10px 0;
  5135. border-radius: 15px;
  5136. box-shadow: 0 0 6px 1px #dfdada;
  5137. "
  5138. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5139. :key="wIndex"
  5140. >
  5141. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5142. <div class="workImg">
  5143. <img
  5144. :src="w.works"
  5145. @click="previewImg(w.works,w)"
  5146. alt
  5147. />
  5148. <div
  5149. class="answerScore"
  5150. v-if="w.score"
  5151. @click.stop="openScore(w)"
  5152. :class="{
  5153. rightW:
  5154. w.userid == userid || tType == 1 || tType == 4,
  5155. }"
  5156. >
  5157. {{ JSON.parse(w.score).wScore }}分
  5158. </div>
  5159. <div
  5160. class="answerScore"
  5161. @click.stop="openScore(w)"
  5162. v-else-if="courseDetail.userid == userid"
  5163. :class="{
  5164. rightW:
  5165. w.userid == userid || tType == 1 || tType == 4,
  5166. }"
  5167. >
  5168. 评分
  5169. </div>
  5170. <img
  5171. class="deleteImg"
  5172. src="../../assets/deleteworks.png"
  5173. v-if="
  5174. w.userid == userid || tType == 1 || tType == 4
  5175. "
  5176. @click.stop="deleteWorks(w.wid)"
  5177. alt
  5178. />
  5179. </div>
  5180. <div class="comment" style="min-width: 200px">
  5181. <div class="worksName">
  5182. <div>{{ w.sName }}</div>
  5183. </div>
  5184. <div class="commentList">
  5185. <div class="commentList">
  5186. <div
  5187. class="commentImg"
  5188. @click="
  5189. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5190. "
  5191. >
  5192. <img
  5193. :src="w.isLikes == true ? likes : noLikes"
  5194. alt=""
  5195. />
  5196. </div>
  5197. <div>{{ w.likesCount }}</div>
  5198. </div>
  5199. <div class="commentList" style="margin-right: 15px">
  5200. <div
  5201. class="commentImg"
  5202. @click="commentOther(w, toolIndex, wIndex)"
  5203. >
  5204. <img
  5205. src="../../assets/icon/comment/comment.png"
  5206. alt=""
  5207. />
  5208. </div>
  5209. <div>{{ w.commentCount }}</div>
  5210. </div>
  5211. </div>
  5212. </div>
  5213. </div>
  5214. </div>
  5215. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5216. 未提交
  5217. </div>
  5218. <div
  5219. class="noWorksS"
  5220. v-if="noWorksS && noWorksS[toolIndex].length"
  5221. >
  5222. <div
  5223. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5224. :key="sIndex"
  5225. class="noWorksName"
  5226. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5227. >
  5228. <el-tooltip effect="dark" :content="s.student" placement="top">
  5229. <span>{{ s.student }}</span>
  5230. </el-tooltip>
  5231. </div>
  5232. </div>
  5233. </div>
  5234. <div
  5235. v-if="
  5236. tType &&
  5237. ((tType == 2 && sIsOpen == true) ||
  5238. tType == 1 ||
  5239. tType == 4) &&
  5240. tool.tool.indexOf(3) != -1
  5241. "
  5242. class="worksBox"
  5243. >
  5244. <div
  5245. class="zuoyeYulan"
  5246. v-if="
  5247. (worksStudent.length &&
  5248. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5249. "
  5250. >
  5251. <div class="worksTop">
  5252. <div>作业预览</div>
  5253. <div
  5254. class="corOpen"
  5255. @click="contract(toolIndex)"
  5256. v-if="
  5257. (isCloseList[toolIndex].isCloseBoolean) &&
  5258. isCloseList[toolIndex].isClose == 0
  5259. "
  5260. >
  5261. 折叠
  5262. </div>
  5263. <div
  5264. class="corOpen"
  5265. @click="contract(toolIndex)"
  5266. v-if="isCloseList[toolIndex].isClose == 1"
  5267. >
  5268. 展开
  5269. </div>
  5270. </div>
  5271. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5272. </div>
  5273. <div
  5274. class="group_workBox"
  5275. v-for="(g, gindex) in courseGroup.group"
  5276. :key="gindex"
  5277. >
  5278. <div class="group_box">
  5279. <div class="group_title">
  5280. <el-tooltip
  5281. class="item"
  5282. effect="light"
  5283. :content="g.name"
  5284. placement="top"
  5285. >
  5286. <div class="group_name">{{ g.name }}</div>
  5287. </el-tooltip>
  5288. </div>
  5289. <div
  5290. class="group_work"
  5291. v-if="
  5292. g.works &&
  5293. g.works.length &&
  5294. g.works[toolIndex].length
  5295. "
  5296. >
  5297. <div
  5298. class="works"
  5299. style="
  5300. width: 200px;
  5301. height: 140px;
  5302. margin: 10px 10px 10px 0;
  5303. border-radius: 15px;
  5304. box-shadow: 0 0 6px 1px #dfdada;
  5305. "
  5306. v-for="(w, wIndex) in g.works[toolIndex]"
  5307. :key="wIndex"
  5308. :class="w.type == 1 ? 'isTypeOne' : ''"
  5309. >
  5310. <div class="workImg">
  5311. <img
  5312. :src="w.works"
  5313. @click="previewImg(w.works,w)"
  5314. alt
  5315. />
  5316. <div
  5317. class="answerScore"
  5318. v-if="w.score"
  5319. @click.stop="openScore(w)"
  5320. :class="{
  5321. rightW:
  5322. w.userid == userid ||
  5323. tType == 1 ||
  5324. tType == 4,
  5325. }"
  5326. >
  5327. {{ JSON.parse(w.score).wScore }}分
  5328. </div>
  5329. <div
  5330. class="answerScore"
  5331. @click.stop="openScore(w)"
  5332. v-else-if="courseDetail.userid == userid"
  5333. :class="{
  5334. rightW:
  5335. w.userid == userid ||
  5336. tType == 1 ||
  5337. tType == 4,
  5338. }"
  5339. >
  5340. 评分
  5341. </div>
  5342. <img
  5343. class="deleteImg"
  5344. src="../../assets/deleteworks.png"
  5345. v-if="
  5346. w.userid == userid || tType == 1 || tType == 4
  5347. "
  5348. @click.stop="deleteWorks(w.wid)"
  5349. alt
  5350. />
  5351. </div>
  5352. <div class="comment" style="min-width: 200px">
  5353. <div class="worksName">
  5354. <div>{{ w.sName }}</div>
  5355. </div>
  5356. <div class="commentList">
  5357. <div class="commentList">
  5358. <div
  5359. class="commentImg"
  5360. @click="
  5361. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5362. "
  5363. >
  5364. <img
  5365. :src="w.isLikes == true ? likes : noLikes"
  5366. alt=""
  5367. />
  5368. </div>
  5369. <div>{{ w.likesCount }}</div>
  5370. </div>
  5371. <div
  5372. class="commentList"
  5373. style="margin-right: 15px"
  5374. >
  5375. <div
  5376. class="commentImg"
  5377. @click="
  5378. commentOther(
  5379. w,
  5380. toolIndex,
  5381. wIndex,
  5382. null,
  5383. g.id
  5384. )
  5385. "
  5386. >
  5387. <img
  5388. src="../../assets/icon/comment/comment.png"
  5389. alt=""
  5390. />
  5391. </div>
  5392. <div>{{ w.commentCount }}</div>
  5393. </div>
  5394. </div>
  5395. </div>
  5396. </div>
  5397. </div>
  5398. <div class="group_work" v-else>暂无提交作业</div>
  5399. </div>
  5400. </div>
  5401. <div
  5402. :id="'tool-' + toolIndex"
  5403. :style="{
  5404. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5405. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5406. }"
  5407. class="worksDetailBox"
  5408. v-if="
  5409. worksStudent.length &&
  5410. worksStudent[toolIndex].length > 0
  5411. "
  5412. >
  5413. <div
  5414. class="works"
  5415. style="
  5416. width: 200px;
  5417. height: 140px;
  5418. margin: 10px 10px 10px 0;
  5419. border-radius: 15px;
  5420. box-shadow: 0 0 6px 1px #dfdada;
  5421. "
  5422. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5423. :key="wIndex"
  5424. >
  5425. <!-- @click="previewImg(w.works)" -->
  5426. <div class="workImg">
  5427. <img
  5428. :src="w.works"
  5429. @click="previewImg(w.works,w)"
  5430. alt
  5431. />
  5432. <div
  5433. class="answerScore"
  5434. v-if="w.score"
  5435. @click.stop="openScore(w)"
  5436. :class="{
  5437. rightW:
  5438. w.userid == userid || tType == 1 || tType == 4,
  5439. }"
  5440. >
  5441. {{ JSON.parse(w.score).wScore }}分
  5442. </div>
  5443. <div
  5444. class="answerScore"
  5445. @click.stop="openScore(w)"
  5446. v-else-if="courseDetail.userid == userid"
  5447. :class="{
  5448. rightW:
  5449. w.userid == userid || tType == 1 || tType == 4,
  5450. }"
  5451. >
  5452. 评分
  5453. </div>
  5454. <img
  5455. class="deleteImg"
  5456. src="../../assets/deleteworks.png"
  5457. v-if="
  5458. w.userid == userid || tType == 1 || tType == 4
  5459. "
  5460. @click.stop="deleteWorks(w.wid)"
  5461. alt
  5462. />
  5463. </div>
  5464. <div class="comment" style="min-width: 200px">
  5465. <div class="worksName">
  5466. <div>{{ w.sName }}</div>
  5467. </div>
  5468. <div class="commentList">
  5469. <div class="commentList">
  5470. <div
  5471. class="commentImg"
  5472. @click="
  5473. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5474. "
  5475. >
  5476. <img
  5477. :src="w.isLikes == true ? likes : noLikes"
  5478. alt=""
  5479. />
  5480. </div>
  5481. <div>{{ w.likesCount }}</div>
  5482. </div>
  5483. <div class="commentList" style="margin-right: 15px">
  5484. <div
  5485. class="commentImg"
  5486. @click="commentOther(w, toolIndex, wIndex)"
  5487. >
  5488. <img
  5489. src="../../assets/icon/comment/comment.png"
  5490. alt=""
  5491. />
  5492. </div>
  5493. <div>{{ w.commentCount }}</div>
  5494. </div>
  5495. </div>
  5496. </div>
  5497. </div>
  5498. </div>
  5499. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5500. 未提交
  5501. </div>
  5502. <div
  5503. class="noWorksS"
  5504. v-if="noWorksS && noWorksS[toolIndex].length"
  5505. >
  5506. <div
  5507. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5508. :key="sIndex"
  5509. class="noWorksName"
  5510. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5511. >
  5512. <el-tooltip effect="dark" :content="s.student" placement="top">
  5513. <span>{{ s.student }}</span>
  5514. </el-tooltip>
  5515. </div>
  5516. </div>
  5517. </div>
  5518. <div
  5519. v-if="
  5520. tType &&
  5521. ((tType == 2 && sIsOpen == true) ||
  5522. tType == 1 ||
  5523. tType == 4) &&
  5524. tool.tool.indexOf(6) != -1
  5525. "
  5526. class="worksBox"
  5527. >
  5528. <div
  5529. class="zuoyeYulan"
  5530. v-if="
  5531. (worksStudent.length &&
  5532. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5533. "
  5534. >
  5535. <div class="worksTop">
  5536. <div>作业预览</div>
  5537. <div
  5538. class="corOpen"
  5539. @click="contract(toolIndex)"
  5540. v-if="
  5541. (isCloseList[toolIndex].isCloseBoolean) &&
  5542. isCloseList[toolIndex].isClose == 0
  5543. "
  5544. >
  5545. 折叠
  5546. </div>
  5547. <div
  5548. class="corOpen"
  5549. @click="contract(toolIndex)"
  5550. v-if="isCloseList[toolIndex].isClose == 1"
  5551. >
  5552. 展开
  5553. </div>
  5554. </div>
  5555. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5556. </div>
  5557. <div
  5558. class="group_workBox"
  5559. v-for="(g, gindex) in courseGroup.group"
  5560. :key="gindex"
  5561. >
  5562. <div class="group_box">
  5563. <div class="group_title">
  5564. <el-tooltip
  5565. class="item"
  5566. effect="light"
  5567. :content="g.name"
  5568. placement="top"
  5569. >
  5570. <div class="group_name">{{ g.name }}</div>
  5571. </el-tooltip>
  5572. </div>
  5573. <div
  5574. class="group_work"
  5575. v-if="
  5576. g.works &&
  5577. g.works.length &&
  5578. g.works[toolIndex].length
  5579. "
  5580. >
  5581. <div
  5582. class="works"
  5583. style="
  5584. width: 200px;
  5585. height: 140px;
  5586. margin: 10px 10px 10px 0;
  5587. border-radius: 15px;
  5588. box-shadow: 0 0 6px 1px #dfdada;
  5589. "
  5590. v-for="(w, wIndex) in g.works[toolIndex]"
  5591. :key="wIndex"
  5592. :class="w.type == 1 ? 'isTypeOne' : ''"
  5593. >
  5594. <div class="workImg">
  5595. <img
  5596. :src="w.works"
  5597. @click="previewImg(w.works,w)"
  5598. alt
  5599. />
  5600. <div
  5601. class="answerScore"
  5602. v-if="w.score"
  5603. @click.stop="openScore(w)"
  5604. :class="{
  5605. rightW:
  5606. w.userid == userid ||
  5607. tType == 1 ||
  5608. tType == 4,
  5609. }"
  5610. >
  5611. {{ JSON.parse(w.score).wScore }}分
  5612. </div>
  5613. <div
  5614. class="answerScore"
  5615. @click.stop="openScore(w)"
  5616. v-else-if="courseDetail.userid == userid"
  5617. :class="{
  5618. rightW:
  5619. w.userid == userid ||
  5620. tType == 1 ||
  5621. tType == 4,
  5622. }"
  5623. >
  5624. 评分
  5625. </div>
  5626. <img
  5627. class="deleteImg"
  5628. src="../../assets/deleteworks.png"
  5629. v-if="
  5630. w.userid == userid || tType == 1 || tType == 4
  5631. "
  5632. @click.stop="deleteWorks(w.wid)"
  5633. alt
  5634. />
  5635. </div>
  5636. <div class="comment" style="min-width: 200px">
  5637. <div class="worksName">
  5638. <div>{{ w.sName }}</div>
  5639. </div>
  5640. <div class="commentList">
  5641. <div class="commentList">
  5642. <div
  5643. class="commentImg"
  5644. @click="
  5645. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5646. "
  5647. >
  5648. <img
  5649. :src="w.isLikes == true ? likes : noLikes"
  5650. alt=""
  5651. />
  5652. </div>
  5653. <div>{{ w.likesCount }}</div>
  5654. </div>
  5655. <div
  5656. class="commentList"
  5657. style="margin-right: 15px"
  5658. >
  5659. <div
  5660. class="commentImg"
  5661. @click="
  5662. commentOther(
  5663. w,
  5664. toolIndex,
  5665. wIndex,
  5666. null,
  5667. g.id
  5668. )
  5669. "
  5670. >
  5671. <img
  5672. src="../../assets/icon/comment/comment.png"
  5673. alt=""
  5674. />
  5675. </div>
  5676. <div>{{ w.commentCount }}</div>
  5677. </div>
  5678. </div>
  5679. </div>
  5680. </div>
  5681. </div>
  5682. <div class="group_work" v-else>暂无提交作业</div>
  5683. </div>
  5684. </div>
  5685. <div
  5686. :id="'tool-' + toolIndex"
  5687. :style="{
  5688. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5689. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5690. }"
  5691. class="worksDetailBox"
  5692. v-if="
  5693. worksStudent.length &&
  5694. worksStudent[toolIndex].length > 0
  5695. "
  5696. >
  5697. <div
  5698. class="works"
  5699. style="
  5700. width: 200px;
  5701. height: 140px;
  5702. margin: 10px 10px 10px 0;
  5703. border-radius: 15px;
  5704. box-shadow: 0 0 6px 1px #dfdada;
  5705. "
  5706. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5707. :key="wIndex"
  5708. >
  5709. <!-- @click="previewImg(w.works)" -->
  5710. <div class="workImg">
  5711. <img
  5712. :src="w.works"
  5713. @click="previewImg(w.works,w)"
  5714. alt
  5715. />
  5716. <div
  5717. class="answerScore"
  5718. v-if="w.score"
  5719. @click.stop="openScore(w)"
  5720. :class="{
  5721. rightW:
  5722. w.userid == userid || tType == 1 || tType == 4,
  5723. }"
  5724. >
  5725. {{ JSON.parse(w.score).wScore }}分
  5726. </div>
  5727. <div
  5728. class="answerScore"
  5729. @click.stop="openScore(w)"
  5730. v-else-if="courseDetail.userid == userid"
  5731. :class="{
  5732. rightW:
  5733. w.userid == userid || tType == 1 || tType == 4,
  5734. }"
  5735. >
  5736. 评分
  5737. </div>
  5738. <img
  5739. class="deleteImg"
  5740. src="../../assets/deleteworks.png"
  5741. v-if="
  5742. w.userid == userid || tType == 1 || tType == 4
  5743. "
  5744. @click.stop="deleteWorks(w.wid)"
  5745. alt
  5746. />
  5747. </div>
  5748. <div class="comment" style="min-width: 200px">
  5749. <div class="worksName">
  5750. <div>{{ w.sName }}</div>
  5751. </div>
  5752. <div class="commentList">
  5753. <div class="commentList">
  5754. <div
  5755. class="commentImg"
  5756. @click="
  5757. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5758. "
  5759. >
  5760. <img
  5761. :src="w.isLikes == true ? likes : noLikes"
  5762. alt=""
  5763. />
  5764. </div>
  5765. <div>{{ w.likesCount }}</div>
  5766. </div>
  5767. <div class="commentList" style="margin-right: 15px">
  5768. <div
  5769. class="commentImg"
  5770. @click="commentOther(w, toolIndex, wIndex)"
  5771. >
  5772. <img
  5773. src="../../assets/icon/comment/comment.png"
  5774. alt=""
  5775. />
  5776. </div>
  5777. <div>{{ w.commentCount }}</div>
  5778. </div>
  5779. </div>
  5780. </div>
  5781. </div>
  5782. </div>
  5783. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5784. 未提交
  5785. </div>
  5786. <div
  5787. class="noWorksS"
  5788. v-if="noWorksS && noWorksS[toolIndex].length"
  5789. >
  5790. <div
  5791. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5792. :key="sIndex"
  5793. class="noWorksName"
  5794. >
  5795. <el-tooltip effect="dark" :content="s.student" placement="top">
  5796. <span>{{ s.student }}</span>
  5797. </el-tooltip>
  5798. </div>
  5799. </div>
  5800. </div>
  5801. <div
  5802. v-if="
  5803. tType &&
  5804. ((tType == 2 && sIsOpen == true) ||
  5805. tType == 1 ||
  5806. tType == 4) &&
  5807. tool.tool.indexOf(7) != -1
  5808. "
  5809. class="worksBox"
  5810. >
  5811. <div
  5812. class="zuoyeYulan"
  5813. v-if="
  5814. (worksStudent.length &&
  5815. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5816. "
  5817. >
  5818. <div class="worksTop">
  5819. <div>作业预览</div>
  5820. <div
  5821. class="corOpen"
  5822. @click="contract(toolIndex)"
  5823. v-if="
  5824. (isCloseList[toolIndex].isCloseBoolean) &&
  5825. isCloseList[toolIndex].isClose == 0
  5826. "
  5827. >
  5828. 折叠
  5829. </div>
  5830. <div
  5831. class="corOpen"
  5832. @click="contract(toolIndex)"
  5833. v-if="isCloseList[toolIndex].isClose == 1"
  5834. >
  5835. 展开
  5836. </div>
  5837. </div>
  5838. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5839. </div>
  5840. <div
  5841. class="group_workBox"
  5842. v-for="(g, gindex) in courseGroup.group"
  5843. :key="gindex"
  5844. >
  5845. <div class="group_box">
  5846. <div class="group_title">
  5847. <el-tooltip
  5848. class="item"
  5849. effect="light"
  5850. :content="g.name"
  5851. placement="top"
  5852. >
  5853. <div class="group_name">{{ g.name }}</div>
  5854. </el-tooltip>
  5855. </div>
  5856. <div
  5857. class="group_work"
  5858. v-if="
  5859. g.works &&
  5860. g.works.length &&
  5861. g.works[toolIndex].length
  5862. "
  5863. >
  5864. <div
  5865. class="works"
  5866. style="
  5867. width: 200px;
  5868. height: 140px;
  5869. margin: 10px 10px 10px 0;
  5870. border-radius: 15px;
  5871. box-shadow: 0 0 6px 1px #dfdada;
  5872. "
  5873. v-for="(w, wIndex) in g.works[toolIndex]"
  5874. :key="wIndex"
  5875. :class="w.type == 1 ? 'isTypeOne' : ''"
  5876. >
  5877. <div class="workImg">
  5878. <img
  5879. :src="w.works"
  5880. @click="previewImg(w.works,w)"
  5881. alt
  5882. />
  5883. <div
  5884. class="answerScore"
  5885. v-if="w.score"
  5886. @click.stop="openScore(w)"
  5887. :class="{
  5888. rightW:
  5889. w.userid == userid ||
  5890. tType == 1 ||
  5891. tType == 4,
  5892. }"
  5893. >
  5894. {{ JSON.parse(w.score).wScore }}分
  5895. </div>
  5896. <div
  5897. class="answerScore"
  5898. @click.stop="openScore(w)"
  5899. v-else-if="courseDetail.userid == userid"
  5900. :class="{
  5901. rightW:
  5902. w.userid == userid ||
  5903. tType == 1 ||
  5904. tType == 4,
  5905. }"
  5906. >
  5907. 评分
  5908. </div>
  5909. <img
  5910. class="deleteImg"
  5911. src="../../assets/deleteworks.png"
  5912. v-if="
  5913. w.userid == userid || tType == 1 || tType == 4
  5914. "
  5915. @click.stop="deleteWorks(w.wid)"
  5916. alt
  5917. />
  5918. </div>
  5919. <div class="comment" style="min-width: 200px">
  5920. <div class="worksName">
  5921. <div>{{ w.sName }}</div>
  5922. </div>
  5923. <div class="commentList">
  5924. <div class="commentList">
  5925. <div
  5926. class="commentImg"
  5927. @click="
  5928. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5929. "
  5930. >
  5931. <img
  5932. :src="w.isLikes == true ? likes : noLikes"
  5933. alt=""
  5934. />
  5935. </div>
  5936. <div>{{ w.likesCount }}</div>
  5937. </div>
  5938. <div
  5939. class="commentList"
  5940. style="margin-right: 15px"
  5941. >
  5942. <div
  5943. class="commentImg"
  5944. @click="
  5945. commentOther(
  5946. w,
  5947. toolIndex,
  5948. wIndex,
  5949. null,
  5950. g.id
  5951. )
  5952. "
  5953. >
  5954. <img
  5955. src="../../assets/icon/comment/comment.png"
  5956. alt=""
  5957. />
  5958. </div>
  5959. <div>{{ w.commentCount }}</div>
  5960. </div>
  5961. </div>
  5962. </div>
  5963. </div>
  5964. </div>
  5965. <div class="group_work" v-else>暂无提交作业</div>
  5966. </div>
  5967. </div>
  5968. <div
  5969. :id="'tool-' + toolIndex"
  5970. :style="{
  5971. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5972. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5973. }"
  5974. class="worksDetailBox"
  5975. v-if="
  5976. worksStudent.length &&
  5977. worksStudent[toolIndex].length > 0
  5978. "
  5979. >
  5980. <div
  5981. class="works"
  5982. style="
  5983. width: 200px;
  5984. height: 140px;
  5985. margin: 10px 10px 10px 0;
  5986. border-radius: 15px;
  5987. box-shadow: 0 0 6px 1px #dfdada;
  5988. "
  5989. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5990. :key="wIndex"
  5991. >
  5992. <!-- @click="previewImg(w.works)" -->
  5993. <div class="workImg">
  5994. <img
  5995. :src="w.works"
  5996. @click="previewImg(w.works,w)"
  5997. alt
  5998. />
  5999. <div
  6000. class="answerScore"
  6001. v-if="w.score"
  6002. @click.stop="openScore(w)"
  6003. :class="{
  6004. rightW:
  6005. w.userid == userid || tType == 1 || tType == 4,
  6006. }"
  6007. >
  6008. {{ JSON.parse(w.score).wScore }}分
  6009. </div>
  6010. <div
  6011. class="answerScore"
  6012. @click.stop="openScore(w)"
  6013. v-else-if="courseDetail.userid == userid"
  6014. :class="{
  6015. rightW:
  6016. w.userid == userid || tType == 1 || tType == 4,
  6017. }"
  6018. >
  6019. 评分
  6020. </div>
  6021. <img
  6022. class="deleteImg"
  6023. src="../../assets/deleteworks.png"
  6024. v-if="
  6025. w.userid == userid || tType == 1 || tType == 4
  6026. "
  6027. @click.stop="deleteWorks(w.wid)"
  6028. alt
  6029. />
  6030. </div>
  6031. <div class="comment" style="min-width: 200px">
  6032. <div class="worksName">
  6033. <div>{{ w.sName }}</div>
  6034. </div>
  6035. <div class="commentList">
  6036. <div class="commentList">
  6037. <div
  6038. class="commentImg"
  6039. @click="
  6040. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6041. "
  6042. >
  6043. <img
  6044. :src="w.isLikes == true ? likes : noLikes"
  6045. alt=""
  6046. />
  6047. </div>
  6048. <div>{{ w.likesCount }}</div>
  6049. </div>
  6050. <div class="commentList" style="margin-right: 15px">
  6051. <div
  6052. class="commentImg"
  6053. @click="commentOther(w, toolIndex, wIndex)"
  6054. >
  6055. <img
  6056. src="../../assets/icon/comment/comment.png"
  6057. alt=""
  6058. />
  6059. </div>
  6060. <div>{{ w.commentCount }}</div>
  6061. </div>
  6062. </div>
  6063. </div>
  6064. </div>
  6065. </div>
  6066. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6067. 未提交
  6068. </div>
  6069. <div
  6070. class="noWorksS"
  6071. v-if="noWorksS && noWorksS[toolIndex].length"
  6072. >
  6073. <div
  6074. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6075. :key="sIndex"
  6076. class="noWorksName"
  6077. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6078. >
  6079. <el-tooltip effect="dark" :content="s.student" placement="top">
  6080. <span>{{ s.student }}</span>
  6081. </el-tooltip>
  6082. </div>
  6083. </div>
  6084. </div>
  6085. <div
  6086. v-if="
  6087. tType &&
  6088. ((tType == 2 && sIsOpen == true) ||
  6089. tType == 1 ||
  6090. tType == 4) &&
  6091. tool.tool.indexOf(26) != -1
  6092. "
  6093. class="worksBox"
  6094. >
  6095. <div
  6096. class="zuoyeYulan"
  6097. v-if="
  6098. worksStudent.length &&
  6099. worksStudent[toolIndex].length > 0
  6100. "
  6101. >
  6102. <div class="worksTop">
  6103. <div>作业预览</div>
  6104. <div
  6105. class="corOpen"
  6106. @click="contract(toolIndex)"
  6107. v-if="
  6108. (isCloseList[toolIndex].isCloseBoolean) &&
  6109. isCloseList[toolIndex].isClose == 0
  6110. "
  6111. >
  6112. 折叠
  6113. </div>
  6114. <div
  6115. class="corOpen"
  6116. @click="contract(toolIndex)"
  6117. v-if="isCloseList[toolIndex].isClose == 1"
  6118. >
  6119. 展开
  6120. </div>
  6121. </div>
  6122. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6123. </div>
  6124. <div
  6125. :id="'tool-' + toolIndex"
  6126. :style="{
  6127. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6128. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6129. }"
  6130. class="worksDetailBox"
  6131. v-if="
  6132. worksStudent.length &&
  6133. worksStudent[toolIndex].length > 0
  6134. "
  6135. >
  6136. <div
  6137. class="works"
  6138. style="width: 240px; height: 140px; overflow: hidden"
  6139. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6140. :key="wIndex"
  6141. :class="w.type == 1 ? 'isTypeOne' : ''"
  6142. >
  6143. <div class="workImg" v-if="w.type == 0">
  6144. <img
  6145. :src="w.works"
  6146. @click="previewImg(w.works,w)"
  6147. alt
  6148. />
  6149. <img
  6150. class="deleteImg"
  6151. src="../../assets/deleteworks.png"
  6152. v-if="
  6153. w.userid == userid || tType == 1 || tType == 4
  6154. "
  6155. @click.stop="deleteWorks(w.wid)"
  6156. alt
  6157. />
  6158. </div>
  6159. <div class="workImg" v-if="w.type == 1">
  6160. <img :src="word" @click="openFile(w.works)" alt />
  6161. <img
  6162. class="deleteImg"
  6163. src="../../assets/deleteworks.png"
  6164. v-if="
  6165. w.userid == userid || tType == 1 || tType == 4
  6166. "
  6167. @click.stop="deleteWorks(w.wid)"
  6168. alt
  6169. />
  6170. </div>
  6171. <div class="worksName">
  6172. <div>{{ w.sName }}</div>
  6173. </div>
  6174. </div>
  6175. </div>
  6176. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6177. 未提交
  6178. </div>
  6179. <div
  6180. class="noWorksS"
  6181. v-if="noWorksS && noWorksS[toolIndex].length"
  6182. >
  6183. <div
  6184. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6185. :key="sIndex"
  6186. class="noWorksName"
  6187. >
  6188. <el-tooltip effect="dark" :content="s.student" placement="top">
  6189. <span>{{ s.student }}</span>
  6190. </el-tooltip>
  6191. </div>
  6192. </div>
  6193. </div>
  6194. <div
  6195. v-if="
  6196. tType &&
  6197. ((tType == 2 && sIsOpen == true) ||
  6198. tType == 1 ||
  6199. tType == 4) &&
  6200. tool.tool.indexOf(40) != -1
  6201. "
  6202. class="worksBox"
  6203. >
  6204. <div
  6205. class="zuoyeYulan"
  6206. v-if="
  6207. worksStudent.length &&
  6208. worksStudent[toolIndex].length > 0
  6209. "
  6210. >
  6211. <div class="worksTop">
  6212. <div>作业预览</div>
  6213. <div
  6214. class="corOpen"
  6215. @click="contract(toolIndex)"
  6216. v-if="
  6217. (isCloseList[toolIndex].isCloseBoolean) &&
  6218. isCloseList[toolIndex].isClose == 0
  6219. "
  6220. >
  6221. 折叠
  6222. </div>
  6223. <div
  6224. class="corOpen"
  6225. @click="contract(toolIndex)"
  6226. v-if="isCloseList[toolIndex].isClose == 1"
  6227. >
  6228. 展开
  6229. </div>
  6230. </div>
  6231. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6232. </div>
  6233. <div
  6234. :id="'tool-' + toolIndex"
  6235. :style="{
  6236. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6237. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6238. }"
  6239. class="worksDetailBox"
  6240. v-if="
  6241. worksStudent.length &&
  6242. worksStudent[toolIndex].length > 0
  6243. "
  6244. >
  6245. <div
  6246. class="works"
  6247. style="
  6248. width: 200px;
  6249. height: 140px;
  6250. margin: 10px 10px 10px 0;
  6251. border-radius: 15px;
  6252. box-shadow: 0 0 6px 1px #dfdada;
  6253. "
  6254. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6255. :key="wIndex"
  6256. :class="w.type == 1 ? 'isTypeOne' : ''"
  6257. >
  6258. <div class="workImg">
  6259. <img
  6260. src="../../assets/icon/works/noImg.png"
  6261. @click="openPj(w.works, toolIndex)"
  6262. alt
  6263. />
  6264. <img
  6265. class="deleteImg"
  6266. src="../../assets/deleteworks.png"
  6267. v-if="
  6268. w.userid == userid || tType == 1 || tType == 4
  6269. "
  6270. @click.stop="deleteWorks(w.wid)"
  6271. alt
  6272. />
  6273. </div>
  6274. <div class="comment" style="min-width: 200px">
  6275. <div class="worksName">
  6276. <div>{{ w.sName }}</div>
  6277. </div>
  6278. <div class="commentList">
  6279. <div class="commentList">
  6280. <div
  6281. class="commentImg"
  6282. @click="
  6283. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6284. "
  6285. >
  6286. <img
  6287. :src="w.isLikes == true ? likes : noLikes"
  6288. alt=""
  6289. />
  6290. </div>
  6291. <div>{{ w.likesCount }}</div>
  6292. </div>
  6293. <div class="commentList" style="margin-right: 15px">
  6294. <div
  6295. class="commentImg"
  6296. @click="commentOther(w, toolIndex, wIndex)"
  6297. >
  6298. <img
  6299. src="../../assets/icon/comment/comment.png"
  6300. alt=""
  6301. />
  6302. </div>
  6303. <div>{{ w.commentCount }}</div>
  6304. </div>
  6305. </div>
  6306. </div>
  6307. </div>
  6308. </div>
  6309. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6310. 未提交
  6311. </div>
  6312. <div
  6313. class="noWorksS"
  6314. v-if="noWorksS && noWorksS[toolIndex].length"
  6315. >
  6316. <div
  6317. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6318. :key="sIndex"
  6319. class="noWorksName"
  6320. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6321. >
  6322. <el-tooltip effect="dark" :content="s.student" placement="top">
  6323. <span>{{ s.student }}</span>
  6324. </el-tooltip>
  6325. </div>
  6326. </div>
  6327. </div>
  6328. <div
  6329. v-if="
  6330. tType &&
  6331. tType == 2 &&
  6332. !sIsOpen &&
  6333. tool.tool.indexOf(40) != -1
  6334. "
  6335. class="worksBox"
  6336. >
  6337. <div
  6338. class="zuoyeYulan"
  6339. v-if="workStudent[toolIndex].length > 0"
  6340. >
  6341. <span class="worksTitle">作业预览</span>
  6342. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6343. </div>
  6344. <div
  6345. class="worksDetailBox"
  6346. v-if="workStudent[toolIndex].length > 0"
  6347. >
  6348. <div
  6349. class="works"
  6350. style="
  6351. width: 200px;
  6352. height: 140px;
  6353. margin: 10px 10px 10px 0;
  6354. "
  6355. v-for="(w, wIndex) in workStudent[toolIndex]"
  6356. :key="wIndex"
  6357. >
  6358. <div class="workImg">
  6359. <img
  6360. src="../../assets/icon/works/noImg.png"
  6361. @click="openPj(w.works, toolIndex)"
  6362. alt
  6363. />
  6364. <img
  6365. class="deleteImg"
  6366. src="../../assets/deleteworks.png"
  6367. v-if="
  6368. w.userid == userid || tType == 1 || tType == 4
  6369. "
  6370. @click.stop="deleteWorks(w.wid)"
  6371. alt
  6372. />
  6373. </div>
  6374. <div class="worksName">
  6375. <div>{{ w.sName }}</div>
  6376. </div>
  6377. </div>
  6378. </div>
  6379. </div>
  6380. <div
  6381. v-if="
  6382. tType &&
  6383. ((tType == 2 && sIsOpen == true) ||
  6384. tType == 1 ||
  6385. tType == 4) &&
  6386. tool.tool.indexOf(41) != -1
  6387. "
  6388. >
  6389. <AnswerData2
  6390. v-if="
  6391. worksStudent.length &&
  6392. worksStudent[toolIndex].length > 0
  6393. "
  6394. :problemJson="tool.selectJson.answer"
  6395. :people="worksStudent[toolIndex]"
  6396. ></AnswerData2>
  6397. </div>
  6398. <div
  6399. v-if="
  6400. tType &&
  6401. ((tType == 2 && sIsOpen == true) ||
  6402. tType == 1 ||
  6403. tType == 4) &&
  6404. tool.tool.indexOf(41) != -1
  6405. "
  6406. class="worksBox"
  6407. >
  6408. <div
  6409. class="zuoyeYulan"
  6410. v-if="
  6411. worksStudent.length &&
  6412. worksStudent[toolIndex].length > 0
  6413. "
  6414. >
  6415. <div class="worksTop">
  6416. <div>作业预览</div>
  6417. <div
  6418. class="corOpen"
  6419. @click="contract(toolIndex)"
  6420. v-if="
  6421. (isCloseList[toolIndex].isCloseBoolean) &&
  6422. isCloseList[toolIndex].isClose == 0
  6423. "
  6424. >
  6425. 折叠
  6426. </div>
  6427. <div
  6428. class="corOpen"
  6429. @click="contract(toolIndex)"
  6430. v-if="isCloseList[toolIndex].isClose == 1"
  6431. >
  6432. 展开
  6433. </div>
  6434. </div>
  6435. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6436. </div>
  6437. <div
  6438. :id="'tool-' + toolIndex"
  6439. :style="{
  6440. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6441. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6442. }"
  6443. class="worksDetailBox"
  6444. v-if="
  6445. worksStudent.length &&
  6446. worksStudent[toolIndex].length > 0
  6447. "
  6448. >
  6449. <div
  6450. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6451. :key="wIndex"
  6452. class="isWorksName2"
  6453. @click="openXz(w, toolIndex)"
  6454. >
  6455. {{ w.sName }}
  6456. <img
  6457. class="deleteImg deleteImg2"
  6458. src="../../assets/deleteworks.png"
  6459. v-if="w.userid == userid || tType == 1 || tType == 4"
  6460. @click.stop="deleteWorks(w.wid)"
  6461. alt
  6462. />
  6463. </div>
  6464. <!-- <div
  6465. class="works"
  6466. style="
  6467. width: 200px;
  6468. height: 140px;
  6469. margin: 10px 10px 10px 0;
  6470. border-radius: 15px;
  6471. box-shadow: 0 0 6px 1px #dfdada;
  6472. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6473. :class="w.type == 5 ? 'isTypeOne' : ''">
  6474. <div class="workImg">
  6475. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6476. </div>
  6477. <div class="worksName">
  6478. <div>{{ w.sName }}</div>
  6479. </div>
  6480. </div> -->
  6481. </div>
  6482. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6483. 未提交
  6484. </div>
  6485. <div
  6486. class="noWorksS"
  6487. v-if="noWorksS && noWorksS[toolIndex].length"
  6488. >
  6489. <div
  6490. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6491. :key="sIndex"
  6492. class="noWorksName"
  6493. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6494. >
  6495. <el-tooltip effect="dark" :content="s.student" placement="top">
  6496. <span>{{ s.student }}</span>
  6497. </el-tooltip>
  6498. </div>
  6499. </div>
  6500. </div>
  6501. <div
  6502. v-if="
  6503. tType &&
  6504. tType == 2 &&
  6505. !sIsOpen &&
  6506. tool.tool.indexOf(41) != -1
  6507. "
  6508. class="worksBox"
  6509. >
  6510. <div
  6511. class="zuoyeYulan"
  6512. v-if="workStudent[toolIndex].length > 0"
  6513. >
  6514. <span class="worksTitle">作业预览</span>
  6515. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6516. </div>
  6517. <div
  6518. class="worksDetailBox"
  6519. v-if="workStudent[toolIndex].length > 0"
  6520. >
  6521. <div
  6522. class="works"
  6523. style="
  6524. width: 200px;
  6525. height: 140px;
  6526. margin: 10px 10px 10px 0;
  6527. "
  6528. v-for="(w, wIndex) in workStudent[toolIndex]"
  6529. :key="wIndex"
  6530. >
  6531. <div class="workImg">
  6532. <img
  6533. src="../../assets/icon/works/noImg.png"
  6534. @click="openXz(w, toolIndex)"
  6535. alt
  6536. />
  6537. <img
  6538. class="deleteImg"
  6539. src="../../assets/deleteworks.png"
  6540. v-if="
  6541. w.userid == userid || tType == 1 || tType == 4
  6542. "
  6543. @click.stop="deleteWorks(w.wid)"
  6544. alt
  6545. />
  6546. </div>
  6547. <div class="worksName">
  6548. <div>{{ w.sName }}</div>
  6549. </div>
  6550. </div>
  6551. </div>
  6552. </div>
  6553. <div v-if="false" class="xuan_right_box">
  6554. <div
  6555. class="tool_right_box"
  6556. v-for="(item, index) in tool.sentenceList"
  6557. :key="index"
  6558. >
  6559. <div>
  6560. <span
  6561. style="word-break: break-all; white-space: normal"
  6562. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6563. >
  6564. </div>
  6565. <div class="right_box_xuan">
  6566. <span>正确率</span>
  6567. <span>{{
  6568. (checkJson[toolIndex][index].right
  6569. ? checkJson[toolIndex][index].right
  6570. : 0) + "%"
  6571. }}</span>
  6572. </div>
  6573. <div class="right_box_xuan">
  6574. <span>答对人数</span>
  6575. <span>{{
  6576. checkJson[toolIndex][index].rightPerson.length
  6577. }}</span>
  6578. </div>
  6579. </div>
  6580. </div>
  6581. <div
  6582. v-if="
  6583. tType &&
  6584. ((tType == 2 && sIsOpen == true) ||
  6585. tType == 1 ||
  6586. tType == 4) &&
  6587. tool.tool.indexOf(47) != -1
  6588. "
  6589. >
  6590. <AnswerData
  6591. v-if="
  6592. checkJson[toolIndex].length &&
  6593. (tool.sentenceList || tool.sentenceList.length > 0)
  6594. "
  6595. :people="checkJson[toolIndex]"
  6596. ></AnswerData>
  6597. </div>
  6598. <div
  6599. v-if="
  6600. tType &&
  6601. tType == 2 &&
  6602. !sIsOpen &&
  6603. tool.tool.indexOf(47) != -1
  6604. "
  6605. class="worksBox"
  6606. >
  6607. <div
  6608. class="zuoyeYulan"
  6609. v-if="workStudent[toolIndex].length > 0"
  6610. >
  6611. <span class="worksTitle">作业预览</span>
  6612. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6613. </div>
  6614. <div
  6615. class="worksDetailBox"
  6616. v-if="workStudent[toolIndex].length > 0"
  6617. >
  6618. <div
  6619. class="works"
  6620. style="
  6621. width: 200px;
  6622. height: 140px;
  6623. margin: 10px 10px 10px 0;
  6624. "
  6625. v-for="(w, wIndex) in workStudent[toolIndex]"
  6626. :key="wIndex"
  6627. >
  6628. <!-- @click="openXz(w, toolIndex)" -->
  6629. <div class="workImg" @click="openSen(w, toolIndex)">
  6630. <img src="../../assets/icon/works/noImg.png" alt />
  6631. <img
  6632. class="deleteImg"
  6633. src="../../assets/deleteworks.png"
  6634. v-if="
  6635. w.userid == userid || tType == 1 || tType == 4
  6636. "
  6637. @click.stop="deleteWorks(w.wid)"
  6638. alt
  6639. />
  6640. </div>
  6641. <div class="worksName">
  6642. <div>
  6643. {{ w.sName }}
  6644. </div>
  6645. </div>
  6646. </div>
  6647. </div>
  6648. </div>
  6649. <div
  6650. v-if="
  6651. tType &&
  6652. ((tType == 2 && sIsOpen == true) ||
  6653. tType == 1 ||
  6654. tType == 4) &&
  6655. tool.tool.indexOf(47) != -1
  6656. "
  6657. class="worksBox"
  6658. >
  6659. <div
  6660. class="zuoyeYulan"
  6661. v-if="
  6662. worksStudent.length &&
  6663. worksStudent[toolIndex].length > 0
  6664. "
  6665. >
  6666. <div class="worksTop">
  6667. <div>作业预览</div>
  6668. <div
  6669. class="corOpen"
  6670. @click="contract(toolIndex)"
  6671. v-if="
  6672. (isCloseList[toolIndex].isCloseBoolean) &&
  6673. isCloseList[toolIndex].isClose == 0
  6674. "
  6675. >
  6676. 折叠
  6677. </div>
  6678. <div
  6679. class="corOpen"
  6680. @click="contract(toolIndex)"
  6681. v-if="isCloseList[toolIndex].isClose == 1"
  6682. >
  6683. 展开
  6684. </div>
  6685. </div>
  6686. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6687. </div>
  6688. <div
  6689. :id="'tool-' + toolIndex"
  6690. :style="{
  6691. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6692. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6693. }"
  6694. class="worksDetailBox"
  6695. v-if="
  6696. worksStudent.length &&
  6697. worksStudent[toolIndex].length > 0
  6698. "
  6699. >
  6700. <!-- @click="openXz(w, toolIndex)" -->
  6701. <div
  6702. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6703. :key="wIndex"
  6704. class="isWorksName2"
  6705. @click="openSen(w, toolIndex)"
  6706. >
  6707. {{ w.sName }}
  6708. <img
  6709. class="deleteImg deleteImg2"
  6710. src="../../assets/deleteworks.png"
  6711. v-if="w.userid == userid || tType == 1 || tType == 4"
  6712. @click.stop="deleteWorks(w.wid)"
  6713. alt
  6714. />
  6715. </div>
  6716. </div>
  6717. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6718. 未提交
  6719. </div>
  6720. <div
  6721. class="noWorksS"
  6722. v-if="noWorksS && noWorksS[toolIndex].length"
  6723. >
  6724. <div
  6725. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6726. :key="sIndex"
  6727. class="noWorksName"
  6728. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6729. >
  6730. <el-tooltip effect="dark" :content="s.student" placement="top">
  6731. <span>{{ s.student }}</span>
  6732. </el-tooltip>
  6733. </div>
  6734. </div>
  6735. </div>
  6736. <div
  6737. v-if="
  6738. tType &&
  6739. ((tType == 2 && sIsOpen == true) ||
  6740. tType == 1 ||
  6741. tType == 4) &&
  6742. tool.tool.indexOf(48) != -1
  6743. "
  6744. class="worksBox"
  6745. >
  6746. <div
  6747. class="zuoyeYulan"
  6748. v-if="
  6749. worksStudent.length &&
  6750. worksStudent[toolIndex].length > 0
  6751. "
  6752. >
  6753. <div class="worksTop">
  6754. <div>作业预览</div>
  6755. <div
  6756. class="corOpen"
  6757. @click="contract(toolIndex)"
  6758. v-if="
  6759. (isCloseList[toolIndex].isCloseBoolean) &&
  6760. isCloseList[toolIndex].isClose == 0
  6761. "
  6762. >
  6763. 折叠
  6764. </div>
  6765. <div
  6766. class="corOpen"
  6767. @click="contract(toolIndex)"
  6768. v-if="isCloseList[toolIndex].isClose == 1"
  6769. >
  6770. 展开
  6771. </div>
  6772. </div>
  6773. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6774. </div>
  6775. <div
  6776. :id="'tool-' + toolIndex"
  6777. :style="{
  6778. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6779. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6780. }"
  6781. class="worksDetailBox"
  6782. v-if="
  6783. worksStudent.length &&
  6784. worksStudent[toolIndex].length > 0
  6785. "
  6786. >
  6787. <div
  6788. class="works"
  6789. style="
  6790. width: 200px;
  6791. height: 140px;
  6792. margin: 10px 10px 10px 0;
  6793. border-radius: 15px;
  6794. box-shadow: 0 0 6px 1px #dfdada;
  6795. "
  6796. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6797. :key="wIndex"
  6798. :class="w.type == 1 ? 'isTypeOne' : ''"
  6799. >
  6800. <div class="workImg">
  6801. <img :src="word" @click="openTable(w)" alt />
  6802. <!-- @click="openFile(w.works)" -->
  6803. <div
  6804. class="answerScore"
  6805. v-if="w.score"
  6806. @click.stop="openScore(w)"
  6807. :class="{
  6808. rightW:
  6809. w.userid == userid ||
  6810. tType == 1 ||
  6811. tType == 4 ||
  6812. w.ateacher == userid,
  6813. }"
  6814. >
  6815. {{ JSON.parse(w.score).wScore }}分
  6816. </div>
  6817. <div
  6818. class="answerScore"
  6819. @click.stop="openScore(w)"
  6820. v-else-if="courseDetail.userid == userid"
  6821. :class="{
  6822. rightW:
  6823. w.userid == userid ||
  6824. tType == 1 ||
  6825. tType == 4 ||
  6826. w.ateacher == userid,
  6827. }"
  6828. >
  6829. 评分
  6830. </div>
  6831. <img
  6832. class="deleteImg"
  6833. src="../../assets/deleteworks.png"
  6834. v-if="
  6835. w.userid == userid || tType == 1 || tType == 4
  6836. "
  6837. @click.stop="deleteWorks(w.wid)"
  6838. alt
  6839. />
  6840. </div>
  6841. <div class="comment" style="min-width: 200px">
  6842. <div class="worksName">
  6843. <div>{{ w.sName }}</div>
  6844. </div>
  6845. <div class="commentList">
  6846. <div class="commentList">
  6847. <div
  6848. class="commentImg"
  6849. @click="
  6850. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6851. "
  6852. >
  6853. <img
  6854. :src="w.isLikes == true ? likes : noLikes"
  6855. alt=""
  6856. />
  6857. </div>
  6858. <div>{{ w.likesCount }}</div>
  6859. </div>
  6860. <div class="commentList" style="margin-right: 15px">
  6861. <div
  6862. class="commentImg"
  6863. @click="commentOther(w, toolIndex, wIndex)"
  6864. >
  6865. <img
  6866. src="../../assets/icon/comment/comment.png"
  6867. alt=""
  6868. />
  6869. </div>
  6870. <div>{{ w.commentCount }}</div>
  6871. </div>
  6872. </div>
  6873. </div>
  6874. </div>
  6875. </div>
  6876. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6877. 未提交
  6878. </div>
  6879. <div
  6880. class="noWorksS"
  6881. v-if="noWorksS && noWorksS[toolIndex].length"
  6882. >
  6883. <div
  6884. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6885. :key="sIndex"
  6886. class="noWorksName"
  6887. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6888. >
  6889. <el-tooltip effect="dark" :content="s.student" placement="top">
  6890. <span>{{ s.student }}</span>
  6891. </el-tooltip>
  6892. </div>
  6893. </div>
  6894. </div>
  6895. <div
  6896. v-if="
  6897. tType &&
  6898. tType == 2 &&
  6899. !sIsOpen &&
  6900. tool.tool.indexOf(48) != -1
  6901. "
  6902. class="worksBox"
  6903. >
  6904. <div
  6905. class="zuoyeYulan"
  6906. v-if="workStudent[toolIndex].length > 0"
  6907. >
  6908. <span class="worksTitle">作业预览</span>
  6909. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6910. </div>
  6911. <div
  6912. class="worksDetailBox"
  6913. v-if="workStudent[toolIndex].length > 0"
  6914. >
  6915. <div
  6916. class="works"
  6917. style="
  6918. width: 200px;
  6919. height: 140px;
  6920. margin: 10px 10px 10px 0;
  6921. box-shadow: 0 0 6px 1px #dfdada;
  6922. "
  6923. v-for="(w, wIndex) in workStudent[toolIndex]"
  6924. :key="wIndex"
  6925. >
  6926. <div class="workImg">
  6927. <img :src="word" @click="openTable(w)" alt />
  6928. <div
  6929. class="answerScore"
  6930. v-if="w.score"
  6931. @click.stop="openScore(w)"
  6932. :class="{
  6933. rightW:
  6934. w.userid == userid || tType == 1 || tType == 4,
  6935. }"
  6936. >
  6937. {{ JSON.parse(w.score).wScore }}分
  6938. </div>
  6939. <div
  6940. class="answerScore"
  6941. @click.stop="openScore(w)"
  6942. v-else-if="courseDetail.userid == userid"
  6943. :class="{
  6944. rightW:
  6945. w.userid == userid || tType == 1 || tType == 4,
  6946. }"
  6947. >
  6948. 评分
  6949. </div>
  6950. <img
  6951. class="deleteImg"
  6952. src="../../assets/deleteworks.png"
  6953. v-if="
  6954. w.userid == userid || tType == 1 || tType == 4
  6955. "
  6956. @click.stop="deleteWorks(w.wid)"
  6957. alt
  6958. />
  6959. </div>
  6960. <div class="worksName">
  6961. <div>{{ w.sName }}</div>
  6962. </div>
  6963. </div>
  6964. </div>
  6965. </div>
  6966. <div
  6967. v-if="
  6968. tType &&
  6969. ((tType == 2 && sIsOpen == true) ||
  6970. tType == 1 ||
  6971. tType == 4) &&
  6972. tool.tool.indexOf(52) != -1
  6973. "
  6974. class="worksBox"
  6975. >
  6976. <div
  6977. class="zuoyeYulan"
  6978. v-if="
  6979. worksStudent.length &&
  6980. worksStudent[toolIndex].length > 0
  6981. "
  6982. >
  6983. <div class="worksTop">
  6984. <div>作业预览</div>
  6985. <div
  6986. class="corOpen"
  6987. @click="contract(toolIndex)"
  6988. v-if="
  6989. (isCloseList[toolIndex].isCloseBoolean) &&
  6990. isCloseList[toolIndex].isClose == 0
  6991. "
  6992. >
  6993. 折叠
  6994. </div>
  6995. <div
  6996. class="corOpen"
  6997. @click="contract(toolIndex)"
  6998. v-if="isCloseList[toolIndex].isClose == 1"
  6999. >
  7000. 展开
  7001. </div>
  7002. </div>
  7003. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7004. </div>
  7005. <div
  7006. :id="'tool-' + toolIndex"
  7007. :style="{
  7008. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7009. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7010. }"
  7011. class="worksDetailBox"
  7012. v-if="
  7013. worksStudent.length &&
  7014. worksStudent[toolIndex].length > 0
  7015. "
  7016. >
  7017. <div
  7018. class="works"
  7019. style="
  7020. width: 200px;
  7021. height: 140px;
  7022. margin: 10px 10px 10px 0;
  7023. border-radius: 15px;
  7024. box-shadow: 0 0 6px 1px #dfdada;
  7025. "
  7026. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7027. :key="wIndex"
  7028. :class="w.type == 1 ? 'isTypeOne' : ''"
  7029. >
  7030. <div class="workImg">
  7031. <img :src="word" @click="openWord(w)" alt />
  7032. <!-- @click="openFile(w.works)" -->
  7033. <div
  7034. class="answerScore"
  7035. v-if="w.score"
  7036. @click.stop="openScore(w)"
  7037. :class="{
  7038. rightW:
  7039. w.userid == userid ||
  7040. tType == 1 ||
  7041. tType == 4 ||
  7042. w.ateacher == userid,
  7043. }"
  7044. >
  7045. {{ JSON.parse(w.score).wScore }}分
  7046. </div>
  7047. <div
  7048. class="answerScore"
  7049. @click.stop="openScore(w)"
  7050. v-else-if="courseDetail.userid == userid"
  7051. :class="{
  7052. rightW:
  7053. w.userid == userid ||
  7054. tType == 1 ||
  7055. tType == 4 ||
  7056. w.ateacher == userid,
  7057. }"
  7058. >
  7059. 评分
  7060. </div>
  7061. <img
  7062. class="deleteImg"
  7063. src="../../assets/deleteworks.png"
  7064. v-if="
  7065. w.userid == userid || tType == 1 || tType == 4
  7066. "
  7067. @click.stop="deleteWorks(w.wid)"
  7068. alt
  7069. />
  7070. </div>
  7071. <div class="comment" style="min-width: 200px">
  7072. <div class="worksName">
  7073. <div>{{ w.sName }}</div>
  7074. </div>
  7075. <div class="commentList">
  7076. <div class="commentList">
  7077. <div
  7078. class="commentImg"
  7079. @click="
  7080. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7081. "
  7082. >
  7083. <img
  7084. :src="w.isLikes == true ? likes : noLikes"
  7085. alt=""
  7086. />
  7087. </div>
  7088. <div>{{ w.likesCount }}</div>
  7089. </div>
  7090. <div class="commentList" style="margin-right: 15px">
  7091. <div
  7092. class="commentImg"
  7093. @click="commentOther(w, toolIndex, wIndex)"
  7094. >
  7095. <img
  7096. src="../../assets/icon/comment/comment.png"
  7097. alt=""
  7098. />
  7099. </div>
  7100. <div>{{ w.commentCount }}</div>
  7101. </div>
  7102. </div>
  7103. </div>
  7104. </div>
  7105. </div>
  7106. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7107. 未提交
  7108. </div>
  7109. <div
  7110. class="noWorksS"
  7111. v-if="noWorksS && noWorksS[toolIndex].length"
  7112. >
  7113. <div
  7114. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7115. :key="sIndex"
  7116. class="noWorksName"
  7117. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7118. >
  7119. <el-tooltip effect="dark" :content="s.student" placement="top">
  7120. <span>{{ s.student }}</span>
  7121. </el-tooltip>
  7122. </div>
  7123. </div>
  7124. </div>
  7125. <div
  7126. v-if="
  7127. tType &&
  7128. tType == 2 &&
  7129. !sIsOpen &&
  7130. tool.tool.indexOf(52) != -1
  7131. "
  7132. class="worksBox"
  7133. >
  7134. <div
  7135. class="zuoyeYulan"
  7136. v-if="workStudent[toolIndex].length > 0"
  7137. >
  7138. <span class="worksTitle">作业预览</span>
  7139. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7140. </div>
  7141. <div
  7142. class="worksDetailBox"
  7143. v-if="workStudent[toolIndex].length > 0"
  7144. >
  7145. <div
  7146. class="works"
  7147. style="
  7148. width: 200px;
  7149. height: 140px;
  7150. margin: 10px 10px 10px 0;
  7151. box-shadow: 0 0 6px 1px #dfdada;
  7152. "
  7153. v-for="(w, wIndex) in workStudent[toolIndex]"
  7154. :key="wIndex"
  7155. >
  7156. <div class="workImg">
  7157. <img :src="word" @click="openWord(w)" alt />
  7158. <div
  7159. class="answerScore"
  7160. v-if="w.score"
  7161. @click.stop="openScore(w)"
  7162. :class="{
  7163. rightW:
  7164. w.userid == userid || tType == 1 || tType == 4,
  7165. }"
  7166. >
  7167. {{ JSON.parse(w.score).wScore }}分
  7168. </div>
  7169. <div
  7170. class="answerScore"
  7171. @click.stop="openScore(w)"
  7172. v-else-if="courseDetail.userid == userid"
  7173. :class="{
  7174. rightW:
  7175. w.userid == userid || tType == 1 || tType == 4,
  7176. }"
  7177. >
  7178. 评分
  7179. </div>
  7180. <img
  7181. class="deleteImg"
  7182. src="../../assets/deleteworks.png"
  7183. v-if="
  7184. w.userid == userid || tType == 1 || tType == 4
  7185. "
  7186. @click.stop="deleteWorks(w.wid)"
  7187. alt
  7188. />
  7189. </div>
  7190. <div class="worksName">
  7191. <div>{{ w.sName }}</div>
  7192. </div>
  7193. </div>
  7194. </div>
  7195. </div>
  7196. <div
  7197. v-if="tool.tool.indexOf(49) != -1"
  7198. class="xuan_right_box"
  7199. style="margin: 0 15px 0 25px; width: 93%"
  7200. >
  7201. <div
  7202. v-if="courseDetail.userid == userid"
  7203. style="
  7204. display: flex;
  7205. justify-content: flex-end;
  7206. margin-right: 10px;
  7207. "
  7208. >
  7209. <el-button
  7210. type="primary"
  7211. size="small"
  7212. @click="addTools(49, toolIndex, taskCount)"
  7213. >分组设置</el-button
  7214. >
  7215. </div>
  7216. <div
  7217. v-if="groupStudentUid[toolIndex]"
  7218. class="group_staic_box"
  7219. >
  7220. <div
  7221. v-for="(gp, gd) in tool.groupJson.group"
  7222. :key="gd"
  7223. class="group_staic"
  7224. >
  7225. <span> {{ gp.name }}</span>
  7226. <span>
  7227. 目前人数{{
  7228. groupStudentUid[toolIndex][gd].length
  7229. }}人</span
  7230. >
  7231. </div>
  7232. </div>
  7233. </div>
  7234. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7235. <div
  7236. class="zuoyeYulan"
  7237. v-if="
  7238. worksStudent.length &&
  7239. worksStudent[toolIndex].length > 0
  7240. "
  7241. >
  7242. <span class="worksTitle">作业预览</span>
  7243. </div>
  7244. <div>
  7245. <div
  7246. class="group_workBox"
  7247. v-for="(g, gindex) in tool.groupJson.group"
  7248. :key="gindex"
  7249. >
  7250. <div
  7251. class="group_box"
  7252. v-if="
  7253. groupStudentUid[toolIndex] &&
  7254. worksStudent[toolIndex] &&
  7255. (worksStudent[toolIndex][gindex].length ||
  7256. groupStudentUid[toolIndex][gindex].indexOf(
  7257. userid
  7258. ) != -1)
  7259. "
  7260. >
  7261. <div class="group_title">
  7262. <el-tooltip
  7263. class="item"
  7264. effect="light"
  7265. :content="g.name"
  7266. placement="top"
  7267. >
  7268. <div class="group_name">{{ g.name }}</div>
  7269. </el-tooltip>
  7270. <el-button
  7271. type="primary"
  7272. v-if="
  7273. groupStudentUid[toolIndex][gindex].indexOf(
  7274. userid
  7275. ) != -1
  7276. "
  7277. @click="groupUpload(toolIndex, taskCount, gindex)"
  7278. >上传作业</el-button
  7279. >
  7280. </div>
  7281. <div class="group_work">
  7282. <div
  7283. class="works"
  7284. style="
  7285. width: 200px;
  7286. height: 140px;
  7287. margin: 10px 10px 10px 0;
  7288. border-radius: 15px;
  7289. box-shadow: 0 0 6px 1px #dfdada;
  7290. "
  7291. v-for="(w, wIndex) in worksStudent[toolIndex][
  7292. gindex
  7293. ]"
  7294. :key="wIndex"
  7295. :class="w.type == 1 ? 'isTypeOne' : ''"
  7296. >
  7297. <div class="workImg" v-if="w.type == 0">
  7298. <img
  7299. :src="w.works"
  7300. @click="previewImg(w.works,w)"
  7301. alt
  7302. />
  7303. <div
  7304. class="answerScore"
  7305. v-if="w.score"
  7306. @click.stop="openScore(w)"
  7307. :class="{
  7308. rightW:
  7309. w.userid == userid ||
  7310. tType == 1 ||
  7311. tType == 4 ||
  7312. w.ateacher == userid,
  7313. }"
  7314. >
  7315. {{ JSON.parse(w.score).wScore }}分
  7316. </div>
  7317. <div
  7318. class="answerScore"
  7319. @click.stop="openScore(w)"
  7320. v-else-if="courseDetail.userid == userid"
  7321. :class="{
  7322. rightW:
  7323. w.userid == userid ||
  7324. tType == 1 ||
  7325. tType == 4 ||
  7326. w.ateacher == userid,
  7327. }"
  7328. >
  7329. 评分
  7330. </div>
  7331. <img
  7332. class="deleteImg"
  7333. src="../../assets/deleteworks.png"
  7334. v-if="
  7335. w.userid == userid ||
  7336. tType == 1 ||
  7337. tType == 4
  7338. "
  7339. @click.stop="deleteWorks(w.wid)"
  7340. alt
  7341. />
  7342. </div>
  7343. <div class="workImg" v-if="w.type == 1">
  7344. <img
  7345. :src="word"
  7346. @click="openFile(w.works)"
  7347. alt
  7348. />
  7349. <!-- @click="openFile(w.works)" -->
  7350. <div
  7351. class="answerScore"
  7352. v-if="w.score"
  7353. @click.stop="openScore(w)"
  7354. :class="{
  7355. rightW:
  7356. w.userid == userid ||
  7357. tType == 1 ||
  7358. tType == 4 ||
  7359. w.ateacher == userid,
  7360. }"
  7361. >
  7362. {{ JSON.parse(w.score).wScore }}分
  7363. </div>
  7364. <div
  7365. class="answerScore"
  7366. @click.stop="openScore(w)"
  7367. v-else-if="courseDetail.userid == userid"
  7368. :class="{
  7369. rightW:
  7370. w.userid == userid ||
  7371. tType == 1 ||
  7372. tType == 4 ||
  7373. w.ateacher == userid,
  7374. }"
  7375. >
  7376. 评分
  7377. </div>
  7378. <img
  7379. class="deleteImg"
  7380. src="../../assets/deleteworks.png"
  7381. v-if="
  7382. w.userid == userid ||
  7383. tType == 1 ||
  7384. tType == 4
  7385. "
  7386. @click.stop="deleteWorks(w.wid)"
  7387. alt
  7388. />
  7389. </div>
  7390. <div class="workImg" v-if="w.type == 3">
  7391. <img
  7392. style="cursor: pointer"
  7393. :src="video"
  7394. @click="openVideo(w)"
  7395. alt
  7396. />
  7397. <!-- @click="openVideo(w.works)" -->
  7398. <div
  7399. class="answerScore"
  7400. v-if="w.score"
  7401. @click.stop="openScore(w)"
  7402. :class="{
  7403. rightW:
  7404. w.userid == userid ||
  7405. tType == 1 ||
  7406. tType == 4 ||
  7407. w.ateacher == userid,
  7408. }"
  7409. >
  7410. {{ JSON.parse(w.score).wScore }}分
  7411. </div>
  7412. <div
  7413. class="answerScore"
  7414. @click.stop="openScore(w)"
  7415. v-else-if="courseDetail.userid == userid"
  7416. :class="{
  7417. rightW:
  7418. w.userid == userid ||
  7419. tType == 1 ||
  7420. tType == 4 ||
  7421. w.ateacher == userid,
  7422. }"
  7423. >
  7424. 评分
  7425. </div>
  7426. <img
  7427. class="deleteImg"
  7428. src="../../assets/deleteworks.png"
  7429. v-if="
  7430. w.userid == userid ||
  7431. tType == 1 ||
  7432. tType == 4
  7433. "
  7434. @click.stop="deleteWorks(w.wid)"
  7435. alt
  7436. />
  7437. </div>
  7438. <div class="workImg" v-if="w.type == 12">
  7439. <img
  7440. style="cursor: pointer"
  7441. :src="word2"
  7442. @click="downloadFile(w.works)"
  7443. alt
  7444. />
  7445. <!-- @click="openVideo(w.works)" -->
  7446. <div
  7447. class="answerScore"
  7448. v-if="w.score"
  7449. @click.stop="openScore(w)"
  7450. :class="{
  7451. rightW:
  7452. w.userid == userid ||
  7453. tType == 1 ||
  7454. tType == 4 ||
  7455. w.ateacher == userid,
  7456. }"
  7457. >
  7458. {{ JSON.parse(w.score).wScore }}分
  7459. </div>
  7460. <div
  7461. class="answerScore"
  7462. @click.stop="openScore(w)"
  7463. v-else-if="courseDetail.userid == userid"
  7464. :class="{
  7465. rightW:
  7466. w.userid == userid ||
  7467. tType == 1 ||
  7468. tType == 4 ||
  7469. w.ateacher == userid,
  7470. }"
  7471. >
  7472. 评分
  7473. </div>
  7474. <img
  7475. class="deleteImg"
  7476. src="../../assets/deleteworks.png"
  7477. v-if="
  7478. w.userid == userid ||
  7479. tType == 1 ||
  7480. tType == 4
  7481. "
  7482. @click.stop="deleteWorks(w.wid)"
  7483. alt
  7484. />
  7485. </div>
  7486. <div class="comment" style="min-width: 200px">
  7487. <div class="worksName">
  7488. <div>{{ w.sName }}</div>
  7489. </div>
  7490. <div class="commentList">
  7491. <div class="commentList">
  7492. <div
  7493. class="commentImg"
  7494. @click="
  7495. isLikes(
  7496. w.wid,
  7497. userid,
  7498. 1,
  7499. null,
  7500. w.isLikes,
  7501. w.sName
  7502. )
  7503. "
  7504. >
  7505. <img
  7506. :src="
  7507. w.isLikes == true ? likes : noLikes
  7508. "
  7509. alt=""
  7510. />
  7511. </div>
  7512. <div>{{ w.likesCount }}</div>
  7513. </div>
  7514. <div
  7515. class="commentList"
  7516. style="margin-right: 15px"
  7517. >
  7518. <div
  7519. class="commentImg"
  7520. @click="
  7521. commentOther(
  7522. w,
  7523. toolIndex,
  7524. wIndex,
  7525. gindex
  7526. )
  7527. "
  7528. >
  7529. <img
  7530. src="../../assets/icon/comment/comment.png"
  7531. alt=""
  7532. />
  7533. </div>
  7534. <div>{{ w.commentCount }}</div>
  7535. </div>
  7536. </div>
  7537. </div>
  7538. </div>
  7539. </div>
  7540. </div>
  7541. </div>
  7542. </div>
  7543. </div>
  7544. </div>
  7545. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7546. 上传文件
  7547. <input
  7548. type="file"
  7549. accept="image/png, image/gif, image/jpeg"
  7550. style="display: none"
  7551. @change="beforeUpload1($event, 2, index)"
  7552. />
  7553. </div>-->
  7554. </div>
  7555. </div>
  7556. <!-- <div
  7557. class="vedioBox"
  7558. style="margin-top: 10px"
  7559. v-if="
  7560. courseDetail.userid == userid ||
  7561. (courseDetail.course_teacher &&
  7562. courseDetail.course_teacher.indexOf(userid) != -1)
  7563. "
  7564. :style="{
  7565. borderRadius:
  7566. !(
  7567. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7568. .toolChoose[0].tool &&
  7569. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7570. .toolChoose[0].tool.length > 0
  7571. ) &&
  7572. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7573. .taskDetail == '' &&
  7574. vChapterData[taskCount].length == 0 &&
  7575. fileC[taskCount].length == 0
  7576. ? '0 0 20px 20px'
  7577. : '20px',
  7578. }"
  7579. >
  7580. <div
  7581. class="queTop"
  7582. @click="isClose = !isClose"
  7583. style="
  7584. padding: 15px 0 15px 37px;
  7585. justify-content: space-between;
  7586. "
  7587. >
  7588. <div class="queTopTitle">新增工具</div>
  7589. <div class="queTopRight">
  7590. <div class="queTopClose" v-if="isClose == 0">
  7591. 展开
  7592. <div class="closeImg">
  7593. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7594. </div>
  7595. </div>
  7596. <div class="queTopClose" v-if="isClose == 1">
  7597. 折叠
  7598. <div class="openImg">
  7599. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7600. </div>
  7601. </div>
  7602. <el-button
  7603. style="margin: 0 30px 0 auto"
  7604. type="primary"
  7605. size="small"
  7606. v-if="isClose == 1 && checktoolArray.length > 0"
  7607. @click.stop="addToolChoose"
  7608. >确定</el-button
  7609. >
  7610. </div>
  7611. </div>
  7612. <div
  7613. class="tool_work_box"
  7614. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7615. >
  7616. <div class="tool_box">
  7617. <div class="tool_type_box">
  7618. <div class="chooseWho">
  7619. <div
  7620. :class="toolType == 0 ? 'isChooseActive' : ''"
  7621. @click="(toolType = 0), $forceUpdate()"
  7622. >
  7623. 互动类
  7624. </div>
  7625. <div
  7626. :class="toolType == 1 ? 'isChooseActive' : ''"
  7627. @click="(toolType = 1), $forceUpdate()"
  7628. >
  7629. 思维类
  7630. </div>
  7631. <div
  7632. :class="toolType == 2 ? 'isChooseActive' : ''"
  7633. @click="(toolType = 2), $forceUpdate()"
  7634. >
  7635. 测评类
  7636. </div>
  7637. <div
  7638. :class="toolType == 3 ? 'isChooseActive' : ''"
  7639. @click="(toolType = 3), $forceUpdate()"
  7640. >
  7641. 编程类
  7642. </div>
  7643. <div
  7644. :class="toolType == 5 ? 'isChooseActive' : ''"
  7645. @click="(toolType = 5), $forceUpdate()"
  7646. >
  7647. 学科类
  7648. </div>
  7649. </div>
  7650. </div>
  7651. <div>
  7652. <div class="toolSort" v-if="toolType == 0">
  7653. <div class="tool">
  7654. <div class="whiteBIcon" @click="addTools2(10)">
  7655. <img
  7656. src="../../assets/icon/thirdToolList/time.png"
  7657. alt
  7658. />
  7659. <div style="margin: 5px 0">倒计时</div>
  7660. </div>
  7661. <div class="check" @click="addTools2(10)">
  7662. <img
  7663. src="../../assets/icon/checkNo.png"
  7664. alt
  7665. v-if="checktoolArray.indexOf(10) == -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(65)">
  7676. <img
  7677. src="../../assets/icon/firstToolList/pickPeople.png"
  7678. alt
  7679. />
  7680. <div style="margin: 5px 0">挑人</div>
  7681. </div>
  7682. <div class="check" @click="addTools2(65)">
  7683. <img
  7684. src="../../assets/icon/checkNo.png"
  7685. alt
  7686. v-if="checktoolArray.indexOf(65) == -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>
  7696. <div class="toolSort" v-if="toolType == 1">
  7697. <div class="tool">
  7698. <div class="whiteBIcon" @click="addTools2(7)">
  7699. <img
  7700. src="../../assets/icon/secondToolList/mindNetwork.png"
  7701. alt
  7702. />
  7703. <div style="margin: 5px 0">思维网格</div>
  7704. </div>
  7705. <div class="check" @click="addTools2(7)">
  7706. <img
  7707. src="../../assets/icon/checkNo.png"
  7708. alt
  7709. v-if="checktoolArray.indexOf(7) == -1"
  7710. />
  7711. <div class="checkDiv" v-else>
  7712. <img src="../../assets/icon/checkedIs.png" alt /><span
  7713. >已选择</span
  7714. >
  7715. </div>
  7716. </div>
  7717. </div>
  7718. <div class="tool">
  7719. <div class="whiteBIcon" @click="addTools2(1)">
  7720. <img
  7721. src="../../assets/icon/secondToolList/whiteBoard.png"
  7722. alt
  7723. />
  7724. <div style="margin: 5px 0">电子白板</div>
  7725. </div>
  7726. <div class="check" @click="addTools2(1)">
  7727. <img
  7728. src="../../assets/icon/checkNo.png"
  7729. alt
  7730. v-if="checktoolArray.indexOf(1) == -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(52)">
  7741. <img
  7742. src="../../assets/icon/fourthToolList/text.png"
  7743. alt
  7744. />
  7745. <div style="margin: 5px 0">文档</div>
  7746. </div>
  7747. <div class="check" @click="addTools2(52)">
  7748. <img
  7749. src="../../assets/icon/checkNo.png"
  7750. alt
  7751. v-if="checktoolArray.indexOf(52) == -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(3)">
  7762. <img
  7763. src="../../assets/icon/secondToolList/mindMapping.png"
  7764. alt
  7765. />
  7766. <div style="margin: 5px 0">思维导图</div>
  7767. </div>
  7768. <div class="check" @click="addTools2(3)">
  7769. <img
  7770. src="../../assets/icon/checkNo.png"
  7771. alt
  7772. v-if="checktoolArray.indexOf(3) == -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(48)">
  7783. <img
  7784. src="../../assets/icon/fourthToolList/table.png"
  7785. alt
  7786. />
  7787. <div style="margin: 5px 0">表格</div>
  7788. </div>
  7789. <div class="check" @click="addTools2(48)">
  7790. <img
  7791. src="../../assets/icon/checkNo.png"
  7792. alt
  7793. v-if="checktoolArray.indexOf(48) == -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>
  7803. <div class="toolSort" v-if="toolType == 6">
  7804. <div v-show="tooC == 49">
  7805. <img
  7806. @click="addTools(tooC, toolIndex, taskCount)"
  7807. src="../../assets/icon/fourthToolList/group.png"
  7808. alt
  7809. />
  7810. <div style="margin: 5px 0">学生分组</div>
  7811. </div>
  7812. </div>
  7813. <div class="toolSort" v-if="toolType == 2">
  7814. <div class="tool">
  7815. <div class="whiteBIcon" @click="addTools2(16)">
  7816. <img
  7817. src="../../assets/icon/thirdToolList/work.png"
  7818. alt
  7819. />
  7820. <div style="margin: 5px 0">作业提交</div>
  7821. </div>
  7822. <div class="check" @click="addTools2(16)">
  7823. <img
  7824. src="../../assets/icon/checkNo.png"
  7825. alt
  7826. v-if="checktoolArray.indexOf(16) == -1"
  7827. />
  7828. <div class="checkDiv" v-else>
  7829. <img src="../../assets/icon/checkedIs.png" alt /><span
  7830. >已选择</span
  7831. >
  7832. </div>
  7833. </div>
  7834. </div>
  7835. <div class="tool">
  7836. <div class="whiteBIcon" @click="addTools2(50)">
  7837. <img
  7838. src="../../assets/icon/thirdToolList/plwork.png"
  7839. alt
  7840. />
  7841. <div style="margin: 5px 0">批量上传</div>
  7842. </div>
  7843. <div class="check" @click="addTools2(50)">
  7844. <img
  7845. src="../../assets/icon/checkNo.png"
  7846. alt
  7847. v-if="checktoolArray.indexOf(50) == -1"
  7848. />
  7849. <div class="checkDiv" v-else>
  7850. <img src="../../assets/icon/checkedIs.png" alt /><span
  7851. >已选择</span
  7852. >
  7853. </div>
  7854. </div>
  7855. </div>
  7856. </div>
  7857. <div class="toolSort" v-if="toolType == 3">
  7858. <div class="tool">
  7859. <div class="whiteBIcon" @click="addTools2(18)">
  7860. <img
  7861. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7862. alt
  7863. />
  7864. <div style="margin: 5px 0">训练平台</div>
  7865. </div>
  7866. <div class="check" @click="addTools2(18)">
  7867. <img
  7868. src="../../assets/icon/checkNo.png"
  7869. alt
  7870. v-if="checktoolArray.indexOf(18) == -1"
  7871. />
  7872. <div class="checkDiv" v-else>
  7873. <img src="../../assets/icon/checkedIs.png" alt /><span
  7874. >已选择</span
  7875. >
  7876. </div>
  7877. </div>
  7878. </div>
  7879. <div class="tool">
  7880. <div class="whiteBIcon" @click="addTools2(21)">
  7881. <img
  7882. src="../../assets/icon/fourthToolList/program.png"
  7883. alt
  7884. />
  7885. <div style="margin: 5px 0">AIoT Blockly</div>
  7886. </div>
  7887. <div class="check" @click="addTools2(21)">
  7888. <img
  7889. src="../../assets/icon/checkNo.png"
  7890. alt
  7891. v-if="checktoolArray.indexOf(21) == -1"
  7892. />
  7893. <div class="checkDiv" v-else>
  7894. <img src="../../assets/icon/checkedIs.png" alt /><span
  7895. >已选择</span
  7896. >
  7897. </div>
  7898. </div>
  7899. </div>
  7900. <div class="tool">
  7901. <div class="whiteBIcon" @click="addTools2(23)">
  7902. <img
  7903. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7904. alt
  7905. />
  7906. <div style="margin: 5px 0">AI Python</div>
  7907. </div>
  7908. <div class="check" @click="addTools2(23)">
  7909. <img
  7910. src="../../assets/icon/checkNo.png"
  7911. alt
  7912. v-if="checktoolArray.indexOf(23) == -1"
  7913. />
  7914. <div class="checkDiv" v-else>
  7915. <img src="../../assets/icon/checkedIs.png" alt /><span
  7916. >已选择</span
  7917. >
  7918. </div>
  7919. </div>
  7920. </div>
  7921. <div class="tool">
  7922. <div class="whiteBIcon" @click="addTools2(24)">
  7923. <img
  7924. src="../../assets/icon/fourthToolList/AIprogram.png"
  7925. alt
  7926. />
  7927. <div style="margin: 5px 0">AI Blockly</div>
  7928. </div>
  7929. <div class="check" @click="addTools2(24)">
  7930. <img
  7931. src="../../assets/icon/checkNo.png"
  7932. alt
  7933. v-if="checktoolArray.indexOf(24) == -1"
  7934. />
  7935. <div class="checkDiv" v-else>
  7936. <img src="../../assets/icon/checkedIs.png" alt /><span
  7937. >已选择</span
  7938. >
  7939. </div>
  7940. </div>
  7941. </div>
  7942. <div class="tool">
  7943. <div class="whiteBIcon" @click="addTools2(32)">
  7944. <img
  7945. src="../../assets/icon/thirdToolList/code.png"
  7946. alt
  7947. />
  7948. <div style="margin: 5px 0">源码编辑</div>
  7949. </div>
  7950. <div class="check" @click="addTools2(32)">
  7951. <img
  7952. src="../../assets/icon/checkNo.png"
  7953. alt
  7954. v-if="checktoolArray.indexOf(32) == -1"
  7955. />
  7956. <div class="checkDiv" v-else>
  7957. <img src="../../assets/icon/checkedIs.png" alt /><span
  7958. >已选择</span
  7959. >
  7960. </div>
  7961. </div>
  7962. </div>
  7963. <div class="tool">
  7964. <div class="whiteBIcon" @click="addTools2(57)">
  7965. <img
  7966. src="../../assets/icon/fourthToolList/cocopi.png"
  7967. alt
  7968. />
  7969. <div style="margin: 5px 0">CocoPi</div>
  7970. </div>
  7971. <div class="check" @click="addTools2(57)">
  7972. <img
  7973. src="../../assets/icon/checkNo.png"
  7974. alt
  7975. v-if="checktoolArray.indexOf(57) == -1"
  7976. />
  7977. <div class="checkDiv" v-else>
  7978. <img src="../../assets/icon/checkedIs.png" alt /><span
  7979. >已选择</span
  7980. >
  7981. </div>
  7982. </div>
  7983. </div>
  7984. <div class="tool">
  7985. <div class="whiteBIcon" @click="addTools2(63)">
  7986. <img
  7987. src="../../assets/icon/fourthToolList/Wood.png"
  7988. alt
  7989. />
  7990. <div style="margin: 5px 0">海龟编程</div>
  7991. </div>
  7992. <div class="check" @click="addTools2(63)">
  7993. <img
  7994. src="../../assets/icon/checkNo.png"
  7995. alt
  7996. v-if="checktoolArray.indexOf(63) == -1"
  7997. />
  7998. <div class="checkDiv" v-else>
  7999. <img src="../../assets/icon/checkedIs.png" alt /><span
  8000. >已选择</span
  8001. >
  8002. </div>
  8003. </div>
  8004. </div>
  8005. </div>
  8006. <div class="toolSort" v-if="toolType == 5">
  8007. <div class="tool">
  8008. <div class="whiteBIcon" @click="addTools2(28)">
  8009. <img
  8010. src="../../assets/icon/secondToolList/translation.png"
  8011. alt
  8012. />
  8013. <div style="margin: 5px 0">翻译</div>
  8014. </div>
  8015. <div class="check" @click="addTools2(28)">
  8016. <img
  8017. src="../../assets/icon/checkNo.png"
  8018. alt
  8019. v-if="checktoolArray.indexOf(28) == -1"
  8020. />
  8021. <div class="checkDiv" v-else>
  8022. <img src="../../assets/icon/checkedIs.png" alt /><span
  8023. >已选择</span
  8024. >
  8025. </div>
  8026. </div>
  8027. </div>
  8028. <div class="tool">
  8029. <div class="whiteBIcon" @click="addTools2(31)">
  8030. <img
  8031. src="../../assets/icon/secondToolList/networkPanel.png"
  8032. alt
  8033. />
  8034. <div style="margin: 5px 0">数字画板</div>
  8035. </div>
  8036. <div class="check" @click="addTools2(31)">
  8037. <img
  8038. src="../../assets/icon/checkNo.png"
  8039. alt
  8040. v-if="checktoolArray.indexOf(31) == -1"
  8041. />
  8042. <div class="checkDiv" v-else>
  8043. <img src="../../assets/icon/checkedIs.png" alt /><span
  8044. >已选择</span
  8045. >
  8046. </div>
  8047. </div>
  8048. </div>
  8049. <div class="tool">
  8050. <div class="whiteBIcon" @click="addTools2(39)">
  8051. <img
  8052. src="../../assets/icon/secondToolList/GeoGebra.png"
  8053. alt
  8054. />
  8055. <div style="margin: 5px 0">GeoGebra</div>
  8056. </div>
  8057. <div class="check" @click="addTools2(39)">
  8058. <img
  8059. src="../../assets/icon/checkNo.png"
  8060. alt
  8061. v-if="checktoolArray.indexOf(39) == -1"
  8062. />
  8063. <div class="checkDiv" v-else>
  8064. <img src="../../assets/icon/checkedIs.png" alt /><span
  8065. >已选择</span
  8066. >
  8067. </div>
  8068. </div>
  8069. </div>
  8070. <div class="tool">
  8071. <div class="whiteBIcon" @click="addTools2(66)">
  8072. <img
  8073. src="../../assets/icon/secondToolList/formulaEdi.png"
  8074. alt
  8075. />
  8076. <div style="margin: 5px 0">公式编辑</div>
  8077. </div>
  8078. <div class="check" @click="addTools2(66)">
  8079. <img
  8080. src="../../assets/icon/checkNo.png"
  8081. alt
  8082. v-if="checktoolArray.indexOf(66) == -1"
  8083. />
  8084. <div class="checkDiv" v-else>
  8085. <img src="../../assets/icon/checkedIs.png" alt /><span
  8086. >已选择</span
  8087. >
  8088. </div>
  8089. </div>
  8090. </div>
  8091. <div class="tool">
  8092. <div class="whiteBIcon" @click="addTools2(67)">
  8093. <img
  8094. src="../../assets/icon/secondToolList/molStr.png"
  8095. alt
  8096. />
  8097. <div style="margin: 5px 0">分子结构</div>
  8098. </div>
  8099. <div class="check" @click="addTools2(67)">
  8100. <img
  8101. src="../../assets/icon/checkNo.png"
  8102. alt
  8103. v-if="checktoolArray.indexOf(67) == -1"
  8104. />
  8105. <div class="checkDiv" v-else>
  8106. <img src="../../assets/icon/checkedIs.png" alt /><span
  8107. >已选择</span
  8108. >
  8109. </div>
  8110. </div>
  8111. </div>
  8112. <div class="tool">
  8113. <div class="whiteBIcon" @click="addTools2(68)">
  8114. <img
  8115. src="../../assets/icon/secondToolList/timeAxis.png"
  8116. alt
  8117. />
  8118. <div style="margin: 5px 0">时间轴</div>
  8119. </div>
  8120. <div class="check" @click="addTools2(68)">
  8121. <img
  8122. src="../../assets/icon/checkNo.png"
  8123. alt
  8124. v-if="checktoolArray.indexOf(68) == -1"
  8125. />
  8126. <div class="checkDiv" v-else>
  8127. <img src="../../assets/icon/checkedIs.png" alt /><span
  8128. >已选择</span
  8129. >
  8130. </div>
  8131. </div>
  8132. </div>
  8133. </div>
  8134. <div class="toolSort" v-if="toolType == 7">
  8135. <div class="tool">
  8136. <div class="whiteBIcon" @click="addTools2(40)">
  8137. <img
  8138. src="../../assets/icon/secondToolList/eval.png"
  8139. alt
  8140. />
  8141. <div style="margin: 5px 0">个人评价</div>
  8142. </div>
  8143. <div class="check" @click="addTools2(40)">
  8144. <img
  8145. src="../../assets/icon/checkNo.png"
  8146. alt
  8147. v-if="checktoolArray.indexOf(40) == -1"
  8148. />
  8149. <div class="checkDiv" v-else>
  8150. <img src="../../assets/icon/checkedIs.png" alt /><span
  8151. >已选择</span
  8152. >
  8153. </div>
  8154. </div>
  8155. </div>
  8156. </div>
  8157. <div class="toolSort" v-if="toolType == 4">
  8158. <div class="tool">
  8159. <div class="whiteBIcon" @click="addTools2(26)">
  8160. <img
  8161. src="../../assets/icon/thirdToolList/courseDesign.png"
  8162. alt
  8163. />
  8164. <div style="margin: 5px 0">课程设计</div>
  8165. </div>
  8166. <div class="check" @click="addTools2(26)">
  8167. <img
  8168. src="../../assets/icon/checkNo.png"
  8169. alt
  8170. v-if="checktoolArray.indexOf(26) == -1"
  8171. />
  8172. <div class="checkDiv" v-else>
  8173. <img src="../../assets/icon/checkedIs.png" alt /><span
  8174. >已选择</span
  8175. >
  8176. </div>
  8177. </div>
  8178. </div>
  8179. <div class="tool">
  8180. <div class="whiteBIcon" @click="addTools2(25)">
  8181. <img
  8182. src="../../assets/icon/thirdToolList/evalua.png"
  8183. alt
  8184. />
  8185. <div style="margin: 5px 0">目标管理</div>
  8186. </div>
  8187. <div class="check" @click="addTools2(25)">
  8188. <img
  8189. src="../../assets/icon/checkNo.png"
  8190. alt
  8191. v-if="checktoolArray.indexOf(25) == -1"
  8192. />
  8193. <div class="checkDiv" v-else>
  8194. <img src="../../assets/icon/checkedIs.png" alt /><span
  8195. >已选择</span
  8196. >
  8197. </div>
  8198. </div>
  8199. </div>
  8200. </div>
  8201. </div>
  8202. </div>
  8203. </div>
  8204. </div> -->
  8205. <div
  8206. class="vedioBox"
  8207. style="margin-top: 10px; border-radius: 20px"
  8208. v-if="
  8209. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8210. .eList &&
  8211. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8212. .eList.length &&
  8213. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8214. .eList.length > 0 &&
  8215. tType != 2
  8216. "
  8217. >
  8218. <div
  8219. class="queTop"
  8220. style="
  8221. font-size: 20px;
  8222. padding: 15px 0 15px 37px;
  8223. font-weight: bold;
  8224. "
  8225. >
  8226. <!-- <div class="question" style="width: 30px">
  8227. <img src="../assets/icon/toolIcon.png" alt />
  8228. </div>
  8229. <div class="queTitle">
  8230. <div>工具</div>
  8231. </div>-->
  8232. 评一评
  8233. </div>
  8234. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8235. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  8236. <el-table
  8237. :data="
  8238. chapInfoList[courseType].chapterInfo[0].taskJson[
  8239. taskCount
  8240. ].eList
  8241. "
  8242. :header-cell-style="{ background: '#F0F4FA' }"
  8243. :row-class-name="tableRowClassName"
  8244. border
  8245. stripe
  8246. style="width: 100%"
  8247. >
  8248. <el-table-column
  8249. label="评价名称"
  8250. align="center"
  8251. >
  8252. <template slot-scope="scope"
  8253. ><div>{{ scope.row.value }}</div></template
  8254. >
  8255. </el-table-column>
  8256. <el-table-column
  8257. label="评价描述"
  8258. align="center"
  8259. >
  8260. <template slot-scope="scope"
  8261. ><div>
  8262. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  8263. </div></template
  8264. >
  8265. </el-table-column>
  8266. <el-table-column label="目标" align="center">
  8267. <template slot-scope="scope"
  8268. ><div>
  8269. {{
  8270. scope.row.target
  8271. ? scope.row.target[scope.row.target.length - 1]
  8272. : "-"
  8273. }}
  8274. </div></template
  8275. ></el-table-column
  8276. >
  8277. </el-table>
  8278. <!-- <div
  8279. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8280. .chapterInfo[0].taskJson[taskCount].eList"
  8281. :key="eIndex"
  8282. class="elist_input_box"
  8283. >
  8284. <div style="width: 95%">
  8285. <div
  8286. style="
  8287. display: flex;
  8288. flex-direction: row;
  8289. flex-wrap: nowrap;
  8290. align-items: center;
  8291. "
  8292. >
  8293. <div style="max-width: calc(100% - 285px)">
  8294. <span>{{ eItem.value }}</span>
  8295. </div>
  8296. <div
  8297. style="
  8298. padding-left: 25px;
  8299. display: flex;
  8300. flex-direction: row;
  8301. align-items: center;
  8302. "
  8303. >
  8304. <el-rate
  8305. v-model="eItem.score"
  8306. :colors="colors"
  8307. disabled
  8308. ></el-rate>
  8309. </div>
  8310. </div>
  8311. <div class="elist_inptu_text" style="padding-left: 10px">
  8312. <span v-if="eItem.detail != ''">{{
  8313. eItem.detail
  8314. }}</span>
  8315. <span v-else style="color: #b2b1b3; font-size: 14px"
  8316. >暂无描述...</span
  8317. >
  8318. </div>
  8319. </div>
  8320. </div> -->
  8321. </div>
  8322. <div
  8323. v-if="evalua"
  8324. style="
  8325. border: 1px solid #e5e5e5;
  8326. max-width: 650px;
  8327. width: 100%;
  8328. margin-top: 20px;
  8329. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8330. "
  8331. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8332. >
  8333. <div class="e_add_top">
  8334. <div class="e_add_title" style="width: 100%">
  8335. <!-- <span>目标管理名称</span> -->
  8336. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8337. <img
  8338. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8339. src="../../assets/line.png"
  8340. class="cru_line"
  8341. style="
  8342. width: 125px;
  8343. height: 20px;
  8344. bottom: -10px;
  8345. left: 5px;
  8346. "
  8347. />
  8348. <!-- <el-input
  8349. v-model="eTitle"
  8350. placeholder="请输入名称"
  8351. @change="setMindData"
  8352. ></el-input>-->
  8353. <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>
  8354. <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>
  8355. </div>
  8356. </div>
  8357. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8358. <div class="e_add_list_pbox">
  8359. <div class="e_add_list_pbox_title">
  8360. <!-- <span class="type_title">切换模式</span> -->
  8361. <div class="type_content">
  8362. <span
  8363. :class="{ active: typeMode == 1 }"
  8364. @click="typeMode = 1"
  8365. >目标树</span
  8366. >
  8367. <span
  8368. :class="{ active: typeMode == 2 }"
  8369. @click="typeMode = 2"
  8370. >目标罗盘</span
  8371. >
  8372. <!-- <span
  8373. :class="{ active: typeMode == 3 }"
  8374. @click="typeMode = 3"
  8375. >目标看板</span
  8376. > -->
  8377. </div>
  8378. </div>
  8379. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8380. <Mind
  8381. :showBar="false"
  8382. :mindData="data"
  8383. style="width: 100%"
  8384. v-show="typeMode == 1"
  8385. ></Mind>
  8386. <Sunburst
  8387. :Josn="eJson"
  8388. :num="eJSONNum"
  8389. style="width: 100%"
  8390. v-if="typeMode == 2"
  8391. ></Sunburst>
  8392. <SeeBoard
  8393. :Josn="eJson"
  8394. :num="eJSONNum"
  8395. :ename="eTitle"
  8396. style="width: 100%"
  8397. v-if="typeMode == 3"
  8398. >
  8399. </SeeBoard>
  8400. </div>
  8401. </div>
  8402. </div>
  8403. </div>
  8404. </div>
  8405. </div>
  8406. <!-- <div
  8407. class="project_box"
  8408. style="margin-top: 15px; padding-bottom: 30px"
  8409. >
  8410. <div
  8411. style="
  8412. display: flex;
  8413. flex-wrap: nowrap;
  8414. flex-direction: column;
  8415. position: relative;
  8416. "
  8417. >
  8418. <div class="queTop">
  8419. <div class="question">
  8420. <img src="../../assets/icon/homeWork.png" alt="" />
  8421. </div>
  8422. <div class="queTitle">
  8423. <div>作业提交<span>(提交图文视频等)</span></div>
  8424. <div>:任务:{{ task.task }}</div>
  8425. </div>
  8426. </div>
  8427. <div class="ediBottom">
  8428. <div
  8429. class="addEditor"
  8430. style="margin-top: 23px"
  8431. @click="openAddWork"
  8432. v-if="!isNoHomeWork"
  8433. >
  8434. 选择文件
  8435. </div>
  8436. <div
  8437. class="addEditor"
  8438. style="margin-top: 23px"
  8439. @click="openAddWork"
  8440. v-else
  8441. >
  8442. 已提交
  8443. </div>
  8444. </div>
  8445. </div>
  8446. </div>-->
  8447. </div>
  8448. </div>
  8449. <el-dialog
  8450. title="作业提交"
  8451. :visible.sync="dialogVisible"
  8452. :append-to-body="true"
  8453. width="500px"
  8454. :before-close="handleClose"
  8455. class="dialog_change"
  8456. >
  8457. <div class="marginT">
  8458. <div>上传文件</div>
  8459. <div
  8460. class="chapter_add"
  8461. @click="addImg($event)"
  8462. v-if="studyJuri[0].cover.length == 0"
  8463. >
  8464. <div class="up_photo">
  8465. <img src="../../assets/icon/uploadImg.png" alt />
  8466. </div>
  8467. <!-- <input
  8468. type="file"
  8469. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8470. style="display: none"
  8471. @change="beforeUpload1($event, 1)"
  8472. /> -->
  8473. <input
  8474. type="file"
  8475. accept="*"
  8476. style="display: none"
  8477. @change="beforeUpload1($event, 1)"
  8478. />
  8479. <!-- <input
  8480. type="file"
  8481. accept="image/*"
  8482. capture="camera"
  8483. style="display: none"
  8484. @change="beforeUpload1($event, 1)"
  8485. /> -->
  8486. </div>
  8487. <div
  8488. class="chapter_add"
  8489. style="
  8490. display: flex;
  8491. width: 100%;
  8492. flex-direction: row;
  8493. flex-wrap: wrap;
  8494. justify-content: flex-start;
  8495. padding: 15px 0;
  8496. "
  8497. v-if="studyJuri[0].cover.length > 0"
  8498. >
  8499. <div class="upCover">
  8500. <img
  8501. :src="studyJuri[0].cover[0].url"
  8502. alt
  8503. v-if="fileType == 0"
  8504. />
  8505. <img :src="word" alt v-else-if="fileType == 1" />
  8506. <img :src="video" alt v-else-if="fileType == 2" />
  8507. <img :src="word2" alt v-else-if="fileType == 3" />
  8508. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8509. <div class="deleteWord" @click="clean(1)">
  8510. <img src="../../assets/icon/deleteWorks.png" alt />
  8511. </div>
  8512. </div>
  8513. </div>
  8514. </div>
  8515. <div
  8516. class="upload_send"
  8517. @click="addCourseWorks(taskCount)"
  8518. v-if="!proVisible"
  8519. >
  8520. 提交
  8521. </div>
  8522. </el-dialog>
  8523. </div>
  8524. </div>
  8525. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8526. <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(
  8527. '/courseDetail?userid=' +
  8528. userid +
  8529. '&oid=' +
  8530. oid +
  8531. '&org=' +
  8532. org +
  8533. '&cid=' +
  8534. classId +
  8535. '&courseId=' +
  8536. id +
  8537. '&tType=' +
  8538. tType +
  8539. '&screenType=' +
  8540. screenType
  8541. )"></classRoomHelper>
  8542. <div
  8543. class="pButton"
  8544. @click="(pzDialog = true), selectPz()"
  8545. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8546. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8547. >
  8548. <!-- 批 -->
  8549. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8550. </div>
  8551. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8552. <div class="pzTop2">
  8553. <!-- <div>评论</div>
  8554. <div @click="pzDialog = false">
  8555. <img src="../../assets/close1.png" alt="" />
  8556. </div> -->
  8557. <div class="checkbox">
  8558. <!-- <div class="check" style="font-size: 25px; position: unset">
  8559. 评论
  8560. </div> -->
  8561. <div class="cb-tabList">
  8562. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8563. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8564. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8565. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8566. </div>
  8567. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8568. <el-option label="时间降序" :value="1"></el-option>
  8569. <el-option label="时间升序" :value="2"></el-option>
  8570. <el-option label="我的评课" :value="3"></el-option>
  8571. </el-select>
  8572. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8573. </div>
  8574. </div>
  8575. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8576. <div class="pzListBox" v-if="pzList && pzList.length">
  8577. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8578. <div class="pzNavTop">
  8579. <div>评</div>
  8580. <div>
  8581. {{
  8582. pz.username && pz.username.length > 5
  8583. ? pz.username.substring(0, 5) + "..."
  8584. : pz.username
  8585. }}的评论
  8586. </div>
  8587. <div
  8588. class="pzDelete"
  8589. v-if="pz.userid == userid"
  8590. @click="deletePz(pz.id)"
  8591. >
  8592. 删除
  8593. </div>
  8594. </div>
  8595. <div
  8596. @click="checkImg(getImgList(pz.content))"
  8597. class="pzContent cont"
  8598. v-html="pz.content"
  8599. v-if="pz.type == '1'"
  8600. ></div>
  8601. <div class="pzContent" v-if="pz.type == '2'">
  8602. <audio :src="pz.content" controls="controls" ref="audio">
  8603. Your browser does not support the audio element.
  8604. </audio>
  8605. </div>
  8606. <div class="pzContent" v-if="pz.type == '3'">
  8607. <img
  8608. :src="pz.content"
  8609. style="width: 90%; margin: 0 auto; display: block"
  8610. @click="previewImg(pz.content)"
  8611. />
  8612. </div>
  8613. <div class="timeAndReply">
  8614. <div class="time">
  8615. {{ pz.time }}
  8616. </div>
  8617. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8618. </div>
  8619. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8620. <div
  8621. v-for="(h, hIndex) in pz.hfList"
  8622. :key="hIndex"
  8623. class="hfItem"
  8624. >
  8625. <div class="whoReplyWho">
  8626. <div class="hfName">{{ h.username }}</div>
  8627. <div class="hfImg">
  8628. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8629. </div>
  8630. <div class="hfName">{{ pz.username }}</div>
  8631. </div>
  8632. <div class="hfContent" v-html="h.content"></div>
  8633. <div class="hfBottom">
  8634. <div class="hfTime">{{ h.time }}</div>
  8635. <div
  8636. class="deleteHfItem"
  8637. @click="deleteReply(h.id)"
  8638. v-if="userid == h.userid"
  8639. >
  8640. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8641. </div>
  8642. </div>
  8643. </div>
  8644. </div>
  8645. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8646. <div class="replyInput">
  8647. <el-input v-model="reply[pzIndex]"></el-input>
  8648. </div>
  8649. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8650. </div> -->
  8651. </div>
  8652. </div>
  8653. <div class="noPz" v-else>
  8654. <img src="../../assets/icon/noPz.png" alt="" />
  8655. </div>
  8656. <div class="addPzButton">
  8657. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8658. 添加评论
  8659. </div>
  8660. <!-- <div class="img1">
  8661. <div @click="(addPzDialog = true), (pzType = 2)">
  8662. <img src="../../assets/audio.png" /><span>音频</span>
  8663. </div>
  8664. </div> -->
  8665. </div>
  8666. </div>
  8667. <div class="scoreList" v-if="commentTagShow==1">
  8668. <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"/>
  8669. </div>
  8670. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8671. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8672. </div>
  8673. </div>
  8674. <div
  8675. v-if="toolDialogVisible == true"
  8676. class="toolMask"
  8677. @click="toolDialogVisible = false"
  8678. ></div>
  8679. <div v-if="toolDialogVisible == true" class="addToolCss">
  8680. <div class="toolTop">
  8681. <div style="font-weight: bold">新增工具</div>
  8682. <div @click="toolDialogVisible = false">
  8683. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8684. </div>
  8685. </div>
  8686. <div class="tool_box">
  8687. <div class="tool_type_box">
  8688. <div class="chooseWho">
  8689. <div
  8690. :class="toolType == 0 ? 'isChooseActive' : ''"
  8691. @click="(toolType = 0), $forceUpdate()"
  8692. >
  8693. 互动类
  8694. </div>
  8695. <div
  8696. :class="toolType == 1 ? 'isChooseActive' : ''"
  8697. @click="(toolType = 1), $forceUpdate()"
  8698. >
  8699. 思维类
  8700. </div>
  8701. <div
  8702. :class="toolType == 2 ? 'isChooseActive' : ''"
  8703. @click="(toolType = 2), $forceUpdate()"
  8704. >
  8705. 测评类
  8706. </div>
  8707. <div
  8708. :class="toolType == 3 ? 'isChooseActive' : ''"
  8709. @click="(toolType = 3), $forceUpdate()"
  8710. >
  8711. 编程类
  8712. </div>
  8713. <div
  8714. :class="toolType == 5 ? 'isChooseActive' : ''"
  8715. @click="(toolType = 5), $forceUpdate()"
  8716. >
  8717. 学科类
  8718. </div>
  8719. </div>
  8720. </div>
  8721. <div>
  8722. <div class="toolSort" v-if="toolType == 0">
  8723. <div
  8724. class="tool"
  8725. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8726. @click="addTools2(10)"
  8727. >
  8728. <div class="whiteBIcon">
  8729. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8730. <div style="margin: 5px 0">倒计时</div>
  8731. </div>
  8732. <div class="check">
  8733. <div
  8734. v-if="checktoolArray.indexOf(10) == -1"
  8735. class="noChoose"
  8736. ></div>
  8737. <div v-else class="isChoose"></div>
  8738. </div>
  8739. </div>
  8740. <div
  8741. class="tool"
  8742. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8743. @click="addTools2(65)"
  8744. >
  8745. <div class="whiteBIcon">
  8746. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8747. <div style="margin: 5px 0">挑人</div>
  8748. </div>
  8749. <div class="check">
  8750. <div
  8751. v-if="checktoolArray.indexOf(65) == -1"
  8752. class="noChoose"
  8753. ></div>
  8754. <div v-else class="isChoose"></div>
  8755. </div>
  8756. </div>
  8757. </div>
  8758. <div class="toolSort" v-if="toolType == 1">
  8759. <div
  8760. class="tool"
  8761. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8762. @click="addTools2(7)"
  8763. >
  8764. <div class="whiteBIcon">
  8765. <img
  8766. src="../../assets/icon/secondToolList/mindNetwork.png"
  8767. alt
  8768. />
  8769. <div style="margin: 5px 0">思维网格</div>
  8770. </div>
  8771. <div class="check">
  8772. <div
  8773. v-if="checktoolArray.indexOf(7) == -1"
  8774. class="noChoose"
  8775. ></div>
  8776. <div v-else class="isChoose"></div>
  8777. </div>
  8778. </div>
  8779. <div
  8780. class="tool"
  8781. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8782. @click="addTools2(1)"
  8783. >
  8784. <div class="whiteBIcon">
  8785. <img
  8786. src="../../assets/icon/secondToolList/whiteBoard.png"
  8787. alt
  8788. />
  8789. <div style="margin: 5px 0">电子白板</div>
  8790. </div>
  8791. <div class="check">
  8792. <div
  8793. v-if="checktoolArray.indexOf(1) == -1"
  8794. class="noChoose"
  8795. ></div>
  8796. <div v-else class="isChoose"></div>
  8797. </div>
  8798. </div>
  8799. <div
  8800. class="tool"
  8801. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8802. @click="addTools2(52)"
  8803. >
  8804. <div class="whiteBIcon">
  8805. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8806. <div style="margin: 5px 0">文档</div>
  8807. </div>
  8808. <div class="check">
  8809. <div
  8810. v-if="checktoolArray.indexOf(52) == -1"
  8811. class="noChoose"
  8812. ></div>
  8813. <div v-else class="isChoose"></div>
  8814. </div>
  8815. </div>
  8816. <div
  8817. class="tool"
  8818. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8819. @click="addTools2(3)"
  8820. >
  8821. <div class="whiteBIcon">
  8822. <img
  8823. src="../../assets/icon/secondToolList/mindMapping.png"
  8824. alt
  8825. />
  8826. <div style="margin: 5px 0">思维导图</div>
  8827. </div>
  8828. <div class="check">
  8829. <div
  8830. v-if="checktoolArray.indexOf(3) == -1"
  8831. class="noChoose"
  8832. ></div>
  8833. <div v-else class="isChoose"></div>
  8834. </div>
  8835. </div>
  8836. <div
  8837. class="tool"
  8838. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8839. @click="addTools2(48)"
  8840. >
  8841. <div class="whiteBIcon">
  8842. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8843. <div style="margin: 5px 0">表格</div>
  8844. </div>
  8845. <div class="check">
  8846. <div
  8847. v-if="checktoolArray.indexOf(48) == -1"
  8848. class="noChoose"
  8849. ></div>
  8850. <div v-else class="isChoose"></div>
  8851. </div>
  8852. </div>
  8853. </div>
  8854. <div class="toolSort" v-if="toolType == 6">
  8855. <div v-show="tooC == 49">
  8856. <img
  8857. @click="addTools(tooC, toolIndex, taskCount)"
  8858. src="../../assets/icon/fourthToolList/group.png"
  8859. alt
  8860. />
  8861. <div style="margin: 5px 0">学生分组</div>
  8862. </div>
  8863. </div>
  8864. <div class="toolSort" v-if="toolType == 2">
  8865. <div
  8866. class="tool"
  8867. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8868. @click="addTools2(16)"
  8869. >
  8870. <div class="whiteBIcon">
  8871. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8872. <div style="margin: 5px 0">作业提交</div>
  8873. </div>
  8874. <div class="check">
  8875. <div
  8876. v-if="checktoolArray.indexOf(16) == -1"
  8877. class="noChoose"
  8878. ></div>
  8879. <div v-else class="isChoose"></div>
  8880. </div>
  8881. </div>
  8882. <div
  8883. class="tool"
  8884. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8885. @click="addTools2(50)"
  8886. >
  8887. <div class="whiteBIcon">
  8888. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8889. <div style="margin: 5px 0">批量上传</div>
  8890. </div>
  8891. <div class="check">
  8892. <div
  8893. v-if="checktoolArray.indexOf(50) == -1"
  8894. class="noChoose"
  8895. ></div>
  8896. <div v-else class="isChoose"></div>
  8897. </div>
  8898. </div>
  8899. </div>
  8900. <div class="toolSort" v-if="toolType == 3">
  8901. <div
  8902. class="tool"
  8903. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8904. @click="addTools2(18)"
  8905. >
  8906. <div class="whiteBIcon">
  8907. <img
  8908. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8909. alt
  8910. />
  8911. <div style="margin: 5px 0">训练平台</div>
  8912. </div>
  8913. <div class="check">
  8914. <div
  8915. v-if="checktoolArray.indexOf(18) == -1"
  8916. class="noChoose"
  8917. ></div>
  8918. <div v-else class="isChoose"></div>
  8919. </div>
  8920. </div>
  8921. <div
  8922. class="tool"
  8923. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8924. @click="addTools2(21)"
  8925. >
  8926. <div class="whiteBIcon">
  8927. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8928. <div style="margin: 5px 0">AIoT Blockly</div>
  8929. </div>
  8930. <div class="check">
  8931. <div
  8932. v-if="checktoolArray.indexOf(21) == -1"
  8933. class="noChoose"
  8934. ></div>
  8935. <div v-else class="isChoose"></div>
  8936. </div>
  8937. </div>
  8938. <div
  8939. class="tool"
  8940. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8941. @click="addTools2(23)"
  8942. >
  8943. <div class="whiteBIcon">
  8944. <img
  8945. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8946. alt
  8947. />
  8948. <div style="margin: 5px 0">AI Python</div>
  8949. </div>
  8950. <div class="check">
  8951. <div
  8952. v-if="checktoolArray.indexOf(23) == -1"
  8953. class="noChoose"
  8954. ></div>
  8955. <div v-else class="isChoose"></div>
  8956. </div>
  8957. </div>
  8958. <div
  8959. class="tool"
  8960. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8961. @click="addTools2(24)"
  8962. >
  8963. <div class="whiteBIcon">
  8964. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8965. <div style="margin: 5px 0">AI Blockly</div>
  8966. </div>
  8967. <div class="check">
  8968. <div
  8969. v-if="checktoolArray.indexOf(24) == -1"
  8970. class="noChoose"
  8971. ></div>
  8972. <div v-else class="isChoose"></div>
  8973. </div>
  8974. </div>
  8975. <div
  8976. class="tool"
  8977. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8978. @click="addTools2(32)"
  8979. >
  8980. <div class="whiteBIcon">
  8981. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8982. <div style="margin: 5px 0">源码编辑</div>
  8983. </div>
  8984. <div class="check">
  8985. <div
  8986. v-if="checktoolArray.indexOf(32) == -1"
  8987. class="noChoose"
  8988. ></div>
  8989. <div v-else class="isChoose"></div>
  8990. </div>
  8991. </div>
  8992. <div
  8993. class="tool"
  8994. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8995. @click="addTools2(57)"
  8996. >
  8997. <div class="whiteBIcon">
  8998. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8999. <div style="margin: 5px 0">CocoPi</div>
  9000. </div>
  9001. <div class="check">
  9002. <div
  9003. v-if="checktoolArray.indexOf(57) == -1"
  9004. class="noChoose"
  9005. ></div>
  9006. <div v-else class="isChoose"></div>
  9007. </div>
  9008. </div>
  9009. <div
  9010. class="tool"
  9011. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9012. @click="addTools2(63)"
  9013. >
  9014. <div class="whiteBIcon">
  9015. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  9016. <div style="margin: 5px 0">海龟编程</div>
  9017. </div>
  9018. <div class="check">
  9019. <div
  9020. v-if="checktoolArray.indexOf(63) == -1"
  9021. class="noChoose"
  9022. ></div>
  9023. <div v-else class="isChoose"></div>
  9024. </div>
  9025. </div>
  9026. <div
  9027. class="tool"
  9028. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  9029. @click="addTools2(71)"
  9030. >
  9031. <div class="whiteBIcon">
  9032. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  9033. <div style="margin: 5px 0">AI智能体</div>
  9034. </div>
  9035. <div class="check">
  9036. <div
  9037. v-if="checktoolArray.indexOf(71) == -1"
  9038. class="noChoose"
  9039. ></div>
  9040. <div v-else class="isChoose"></div>
  9041. </div>
  9042. </div>
  9043. </div>
  9044. <div class="toolSort" v-if="toolType == 7">
  9045. <div
  9046. class="tool"
  9047. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9048. @click="addTools2(40)"
  9049. >
  9050. <div class="whiteBIcon">
  9051. <img src="../../assets/icon/secondToolList/eval.png" alt />
  9052. <div style="margin: 5px 0">个人评价</div>
  9053. </div>
  9054. <div class="check">
  9055. <div
  9056. v-if="checktoolArray.indexOf(40) == -1"
  9057. class="noChoose"
  9058. ></div>
  9059. <div v-else class="isChoose"></div>
  9060. </div>
  9061. </div>
  9062. </div>
  9063. <div class="toolSort" v-if="toolType == 5">
  9064. <div
  9065. class="tool"
  9066. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9067. @click="addTools2(28)"
  9068. >
  9069. <div class="whiteBIcon">
  9070. <img
  9071. src="../../assets/icon/secondToolList/translation.png"
  9072. alt
  9073. />
  9074. <div style="margin: 5px 0">翻译</div>
  9075. </div>
  9076. <div class="check">
  9077. <div
  9078. v-if="checktoolArray.indexOf(28) == -1"
  9079. class="noChoose"
  9080. ></div>
  9081. <div v-else class="isChoose"></div>
  9082. </div>
  9083. </div>
  9084. <div
  9085. class="tool"
  9086. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9087. @click="addTools2(31)"
  9088. >
  9089. <div class="whiteBIcon">
  9090. <img
  9091. src="../../assets/icon/secondToolList/networkPanel.png"
  9092. alt
  9093. />
  9094. <div style="margin: 5px 0">数字画板</div>
  9095. </div>
  9096. <div class="check">
  9097. <div
  9098. v-if="checktoolArray.indexOf(31) == -1"
  9099. class="noChoose"
  9100. ></div>
  9101. <div v-else class="isChoose"></div>
  9102. </div>
  9103. </div>
  9104. <div
  9105. class="tool"
  9106. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9107. @click="addTools2(39)"
  9108. >
  9109. <div class="whiteBIcon">
  9110. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  9111. <div style="margin: 5px 0">GeoGebra</div>
  9112. </div>
  9113. <div class="check">
  9114. <div
  9115. v-if="checktoolArray.indexOf(39) == -1"
  9116. class="noChoose"
  9117. ></div>
  9118. <div v-else class="isChoose"></div>
  9119. </div>
  9120. </div>
  9121. <div
  9122. class="tool"
  9123. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9124. @click="addTools2(66)"
  9125. >
  9126. <div class="whiteBIcon">
  9127. <img
  9128. src="../../assets/icon/secondToolList/formulaEdi.png"
  9129. alt
  9130. />
  9131. <div style="margin: 5px 0">公式编辑</div>
  9132. </div>
  9133. <div class="check">
  9134. <div
  9135. v-if="checktoolArray.indexOf(66) == -1"
  9136. class="noChoose"
  9137. ></div>
  9138. <div v-else class="isChoose"></div>
  9139. </div>
  9140. </div>
  9141. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9142. <div class="whiteBIcon" @click="addTools2(67)">
  9143. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  9144. <div style="margin: 5px 0">分子结构</div>
  9145. </div>
  9146. <div class="check" @click="addTools2(67)">
  9147. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9148. <div v-else class="isChoose"></div>
  9149. </div>
  9150. </div> -->
  9151. <div
  9152. class="tool"
  9153. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9154. @click="addTools2(68)"
  9155. >
  9156. <div class="whiteBIcon">
  9157. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  9158. <div style="margin: 5px 0">时间轴</div>
  9159. </div>
  9160. <div class="check">
  9161. <div
  9162. v-if="checktoolArray.indexOf(68) == -1"
  9163. class="noChoose"
  9164. ></div>
  9165. <div v-else class="isChoose"></div>
  9166. </div>
  9167. </div>
  9168. <!-- <div
  9169. class="tool"
  9170. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9171. @click="addTools2(69)"
  9172. >
  9173. <div class="whiteBIcon">
  9174. <img src="../../assets/icon/secondToolList/english.png" alt />
  9175. <div style="margin: 5px 0">英语写作</div>
  9176. </div>
  9177. <div class="check">
  9178. <div
  9179. v-if="checktoolArray.indexOf(69) == -1"
  9180. class="noChoose"
  9181. ></div>
  9182. <div v-else class="isChoose"></div>
  9183. </div>
  9184. </div> -->
  9185. </div>
  9186. <div class="toolSort" v-if="toolType == 4">
  9187. <div
  9188. class="tool"
  9189. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9190. @click="addTools2(26)"
  9191. >
  9192. <div class="whiteBIcon">
  9193. <img
  9194. src="../../assets/icon/thirdToolList/courseDesign.png"
  9195. alt
  9196. />
  9197. <div style="margin: 5px 0">课程设计</div>
  9198. </div>
  9199. <div class="check">
  9200. <div
  9201. v-if="checktoolArray.indexOf(26) == -1"
  9202. class="noChoose"
  9203. ></div>
  9204. <div v-else class="isChoose"></div>
  9205. </div>
  9206. </div>
  9207. <div
  9208. class="tool"
  9209. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9210. @click="addTools2(25)"
  9211. >
  9212. <div class="whiteBIcon">
  9213. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  9214. <div style="margin: 5px 0">目标管理</div>
  9215. </div>
  9216. <div class="check">
  9217. <div
  9218. v-if="checktoolArray.indexOf(25) == -1"
  9219. class="noChoose"
  9220. ></div>
  9221. <div v-else class="isChoose"></div>
  9222. </div>
  9223. </div>
  9224. </div>
  9225. </div>
  9226. </div>
  9227. <span
  9228. slot="footer"
  9229. class="dialog-footer"
  9230. style="display: block; text-align: center; padding: 0 0 10px 0"
  9231. >
  9232. <el-button @click="toolDialogVisible = false">取 消</el-button>
  9233. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  9234. </span>
  9235. </div>
  9236. <div
  9237. v-if="replyDialogVisible == true"
  9238. class="addDialogCss"
  9239. v-el-drag-dialog
  9240. >
  9241. <div class="pzTop">
  9242. <div class="teacherPz">
  9243. <div class="teacherPzImg">
  9244. <img src="../../assets/icon/teacherPz.png" alt="" />
  9245. </div>
  9246. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9247. </div>
  9248. <div @click="replyDialogVisible = false">
  9249. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9250. </div>
  9251. </div>
  9252. <div class="addPzBox">
  9253. <!-- <div class="addPzCheck">
  9254. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9255. >文本</span
  9256. >
  9257. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9258. >音频</span
  9259. >
  9260. </div> -->
  9261. <div style="height: calc(100% - 50px)">
  9262. <editor-bar
  9263. class="binfo_input pzConText"
  9264. style="width: 100% !important; margin: 0 auto"
  9265. placeholder="请输入回复描述"
  9266. v-model="reply"
  9267. @change="change"
  9268. ></editor-bar>
  9269. </div>
  9270. <div class="addTextCss" @click="addHf">确定</div>
  9271. </div>
  9272. </div>
  9273. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9274. <div class="pzTop">
  9275. <div class="teacherPz">
  9276. <div class="teacherPzImg">
  9277. <img src="../../assets/icon/teacherPz.png" alt="" />
  9278. </div>
  9279. <div style="margin-left: 10px; height: 25px">教师评论</div>
  9280. </div>
  9281. <div @click="addPzDialog = false">
  9282. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9283. </div>
  9284. </div>
  9285. <div class="addPzBox">
  9286. <div class="addPzCheck">
  9287. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9288. >文本</span
  9289. >
  9290. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9291. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9292. >音频</span
  9293. >
  9294. </div>
  9295. <div style="height: calc(100% - 95px)">
  9296. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9297. v-if="pzType == 1"></textarea> -->
  9298. <editor-bar
  9299. class="binfo_input pzConText"
  9300. style="width: 100% !important"
  9301. placeholder="请输入任务描述"
  9302. v-model="pzConText"
  9303. @change="change"
  9304. v-if="pzType == 1"
  9305. ></editor-bar>
  9306. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9307. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9308. <div @click="addImg($event)">
  9309. <el-button type="primary">上传图片</el-button>
  9310. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9311. @change="beforeUpload1($event, 4)" />
  9312. </div>
  9313. </div> -->
  9314. </div>
  9315. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9316. 确定
  9317. </div>
  9318. </div>
  9319. </div>
  9320. <div v-if="proVisible" class="mask">
  9321. <div class="progressBox">
  9322. <!-- <div id="closePro" class="closeCss">
  9323. <img src="../../assets/icon/close.png" alt />
  9324. </div> -->
  9325. <div class="lbox">
  9326. <img src="../../assets/loading.gif" />上传中,请稍后
  9327. </div>
  9328. <div style="margin-bottom: 10px">
  9329. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9330. </div>
  9331. <el-progress
  9332. :text-inside="true"
  9333. :stroke-width="20"
  9334. :percentage="progress"
  9335. style="width: 80%"
  9336. ></el-progress>
  9337. </div>
  9338. </div>
  9339. <div v-if="proVisible2" class="mask">
  9340. <div class="progressBox">
  9341. <div class="lbox">
  9342. <img src="../../assets/loading.gif" />上传中,请稍后
  9343. </div>
  9344. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9345. </div>
  9346. </div>
  9347. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9348. <img width="100%" :src="dialogImageUrl" alt />
  9349. </el-dialog>
  9350. <el-dialog
  9351. :title="noteName != '' ? noteName : '查看问卷'"
  9352. :visible.sync="dialogVisible5"
  9353. :append-to-body="true"
  9354. width="1000px"
  9355. :before-close="handleClose"
  9356. class="dialog_diy dialog_diy3"
  9357. >
  9358. <div>
  9359. <div
  9360. class="a_add_title"
  9361. style="
  9362. display: flex;
  9363. flex-direction: row;
  9364. align-items: center;
  9365. justify-content: center;
  9366. "
  9367. >
  9368. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9369. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9370. </div>
  9371. <div class="a_addBox">
  9372. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9373. 题目内容
  9374. </div>
  9375. <div
  9376. class="a_add_box"
  9377. v-for="(item1, index1) in askJson.askCount"
  9378. :key="index1"
  9379. >
  9380. <div class="a_add_head">
  9381. <div style="display: flex">
  9382. <span class="askIndex"> {{ index1 + 1 }}</span>
  9383. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9384. </div>
  9385. <img
  9386. v-if="askJson.askJson[index1].img"
  9387. :src="askJson.askJson[index1].img"
  9388. style="height: 300px; margin-top: 10px; max-width: 100%"
  9389. />
  9390. </div>
  9391. <div class="a_add_body">
  9392. <div class="a_add_input">
  9393. <el-radio-group
  9394. v-model="radio[index1]"
  9395. v-if="
  9396. askJson.askJson[index1].type == '1' ||
  9397. !askJson.askJson[index1].type
  9398. "
  9399. >
  9400. <el-radio
  9401. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9402. .checkList"
  9403. :key="checkIndex"
  9404. :label="checkIndex"
  9405. :disabled="isAnswer"
  9406. class="redioStyle"
  9407. ><span v-html="item2"></span
  9408. ></el-radio>
  9409. </el-radio-group>
  9410. <el-checkbox-group
  9411. v-model="radio[index1]"
  9412. v-if="askJson.askJson[index1].type == '2'"
  9413. >
  9414. <el-checkbox
  9415. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9416. .checkList"
  9417. :key="checkIndex1"
  9418. :label="checkIndex1"
  9419. :disabled="isAnswer"
  9420. class="redioStyle"
  9421. ><span v-html="item2"></span>
  9422. </el-checkbox>
  9423. </el-checkbox-group>
  9424. </div>
  9425. </div>
  9426. </div>
  9427. </div>
  9428. </div>
  9429. <span slot="footer" class="dialog-footer">
  9430. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9431. >取 消</el-button
  9432. >
  9433. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9434. >确 定</el-button
  9435. >
  9436. </span>
  9437. </el-dialog>
  9438. <el-dialog
  9439. :title="noteName != '' ? noteName : '查看问卷'"
  9440. :visible.sync="dialogVisible5Teacher"
  9441. :append-to-body="true"
  9442. width="1000px"
  9443. :before-close="handleClose"
  9444. class="dialog_diy dialog_diy3"
  9445. >
  9446. <div>
  9447. <div class="w_name">
  9448. 学生姓名:<span>{{ sStudent.student }}</span>
  9449. </div>
  9450. <div
  9451. class="a_add_title"
  9452. style="
  9453. display: flex;
  9454. flex-direction: row;
  9455. align-items: center;
  9456. justify-content: center;
  9457. "
  9458. >
  9459. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9460. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9461. </div>
  9462. <div class="a_addBox">
  9463. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9464. 题目内容
  9465. </div>
  9466. <div
  9467. class="a_add_box"
  9468. v-for="(item1, index1) in askJson.askCount"
  9469. :key="index1"
  9470. >
  9471. <div class="a_add_head">
  9472. <div style="display: flex">
  9473. <span class="askIndex">{{ index1 + 1 }}</span>
  9474. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9475. </div>
  9476. <img
  9477. v-if="askJson.askJson[index1].img"
  9478. :src="askJson.askJson[index1].img"
  9479. style="height: 300px; margin-top: 10px; max-width: 100%"
  9480. />
  9481. </div>
  9482. <div class="a_add_body">
  9483. <div class="a_add_input">
  9484. <el-radio-group
  9485. v-model="radio[index1]"
  9486. v-if="
  9487. askJson.askJson[index1].type == '1' ||
  9488. !askJson.askJson[index1].type
  9489. "
  9490. >
  9491. <el-radio
  9492. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9493. .checkList"
  9494. :key="checkIndex"
  9495. :label="checkIndex"
  9496. :disabled="isAnswer"
  9497. class="redioStyle"
  9498. ><span v-html="item2"></span
  9499. ></el-radio>
  9500. </el-radio-group>
  9501. <el-checkbox-group
  9502. v-model="radio[index1]"
  9503. v-if="askJson.askJson[index1].type == '2'"
  9504. >
  9505. <el-checkbox
  9506. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9507. .checkList"
  9508. :key="checkIndex1"
  9509. :label="checkIndex1"
  9510. :disabled="isAnswer"
  9511. class="redioStyle"
  9512. ><span v-html="item2"></span>
  9513. </el-checkbox>
  9514. </el-checkbox-group>
  9515. </div>
  9516. </div>
  9517. </div>
  9518. </div>
  9519. </div>
  9520. <span slot="footer" class="dialog-footer">
  9521. <el-button
  9522. @click="dialogVisible5Teacher = false"
  9523. v-show="noteName == ''"
  9524. >取 消</el-button
  9525. >
  9526. <el-button
  9527. type="primary"
  9528. @click="addStudentAskTeacher"
  9529. v-show="noteName == ''"
  9530. >确 定</el-button
  9531. >
  9532. </span>
  9533. </el-dialog>
  9534. <el-dialog
  9535. :title="noteName != '' ? noteName : '查看选择题'"
  9536. :visible.sync="dialogVisibleChoice"
  9537. :append-to-body="true"
  9538. width="1000px"
  9539. :before-close="handleClose"
  9540. class="dialog_diy dialog_diy3"
  9541. >
  9542. <div>
  9543. <!-- <div class="a_add_title" style="
  9544. display: flex;
  9545. flex-direction: row;
  9546. align-items: center;
  9547. justify-content: center;
  9548. ">
  9549. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9550. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9551. </div> -->
  9552. <div class="a_addBox">
  9553. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9554. 题目内容
  9555. </div>
  9556. <div
  9557. class="a_add_box"
  9558. v-for="(item1, index1) in testJson.testCount"
  9559. :key="index1"
  9560. >
  9561. <div class="a_add_head">
  9562. <div style="display: flex">
  9563. <span class="askIndex">{{ index1 + 1 }}</span>
  9564. <div
  9565. v-if="testJson.testJson[index1].type == '1'"
  9566. style="margin-right: 5px; min-width: 70px"
  9567. >
  9568. (单选题)
  9569. </div>
  9570. <div
  9571. v-if="testJson.testJson[index1].type == '2'"
  9572. style="margin-right: 5px; min-width: 70px"
  9573. >
  9574. (多选题)
  9575. </div>
  9576. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9577. </div>
  9578. <img
  9579. v-if="testJson.testJson[index1].img"
  9580. :src="testJson.testJson[index1].img"
  9581. style="height: 300px; margin-top: 10px; max-width: 100%"
  9582. />
  9583. </div>
  9584. <div
  9585. class="timuImgBox"
  9586. v-if="
  9587. testJson.testJson[index1].timuList &&
  9588. testJson.testJson[index1].timuList.length
  9589. "
  9590. >
  9591. <div
  9592. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9593. :key="tIndex"
  9594. class="timuImg"
  9595. @click.stop="previewImg(timg.src)"
  9596. >
  9597. <img :src="timg.src" alt="" />
  9598. </div>
  9599. </div>
  9600. <div class="a_add_body">
  9601. <div class="a_add_input">
  9602. <el-radio-group
  9603. v-model="radio[index1]"
  9604. v-if="testJson.testJson[index1].type == '1'"
  9605. >
  9606. <div class="radioBox">
  9607. <el-radio
  9608. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9609. .checkList"
  9610. :key="checkIndex"
  9611. :label="checkIndex"
  9612. :disabled="isAnswer"
  9613. class="redioStyle"
  9614. >
  9615. <div
  9616. style="margin-right: 10px"
  9617. v-if="item2 && item2.imgType && item2.imgType == 1"
  9618. >
  9619. <div class="inImg" @click.stop="previewImg(item2.src)">
  9620. <img :src="item2.src" alt="" />
  9621. </div>
  9622. </div>
  9623. <span v-else v-html="item2"></span>
  9624. </el-radio>
  9625. </div>
  9626. </el-radio-group>
  9627. <el-checkbox-group
  9628. v-model="radio[index1]"
  9629. v-if="testJson.testJson[index1].type == '2'"
  9630. >
  9631. <div class="radioBox">
  9632. <el-checkbox
  9633. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9634. .checkList"
  9635. :key="checkIndex"
  9636. :label="checkIndex"
  9637. :disabled="isAnswer"
  9638. class="redioStyle"
  9639. >
  9640. <div
  9641. style="margin-right: 10px"
  9642. v-if="item2 && item2.imgType && item2.imgType == 1"
  9643. >
  9644. <div class="inImg" @click.stop="previewImg(item2.src)">
  9645. <img :src="item2.src" alt="" />
  9646. </div>
  9647. </div>
  9648. <span v-else v-html="item2"></span>
  9649. </el-checkbox>
  9650. </div>
  9651. </el-checkbox-group>
  9652. </div>
  9653. </div>
  9654. </div>
  9655. </div>
  9656. </div>
  9657. <span slot="footer" class="dialog-footer">
  9658. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9659. >取 消</el-button
  9660. >
  9661. <el-button
  9662. type="primary"
  9663. @click="addStudentTest"
  9664. v-show="noteName == ''"
  9665. >确 定</el-button
  9666. >
  9667. </span>
  9668. </el-dialog>
  9669. <el-dialog
  9670. :title="noteName != '' ? noteName : '查看选择题'"
  9671. :visible.sync="dialogVisibleChoiceTeacher"
  9672. :append-to-body="true"
  9673. width="1000px"
  9674. :before-close="handleClose"
  9675. class="dialog_diy dialog_diy3"
  9676. >
  9677. <div>
  9678. <div class="w_name">
  9679. 学生姓名:<span>{{ sStudent.student }}</span>
  9680. </div>
  9681. <div class="a_addBox">
  9682. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9683. 题目内容
  9684. </div>
  9685. <div
  9686. class="a_add_box"
  9687. v-for="(item1, index1) in testJson.testCount"
  9688. :key="index1"
  9689. >
  9690. <div class="a_add_head">
  9691. <div style="display: flex">
  9692. <span class="askIndex">{{ index1 + 1 }}</span>
  9693. <div
  9694. v-if="testJson.testJson[index1].type == '1'"
  9695. style="margin-right: 5px; min-width: 70px"
  9696. >
  9697. (单选题)
  9698. </div>
  9699. <div
  9700. v-if="testJson.testJson[index1].type == '2'"
  9701. style="margin-right: 5px; min-width: 70px"
  9702. >
  9703. (多选题)
  9704. </div>
  9705. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9706. </div>
  9707. <img
  9708. v-if="testJson.testJson[index1].img"
  9709. :src="testJson.testJson[index1].img"
  9710. style="height: 300px; margin-top: 10px; max-width: 100%"
  9711. />
  9712. </div>
  9713. <div
  9714. class="timuImgBox"
  9715. v-if="
  9716. testJson.testJson[index1].timuList &&
  9717. testJson.testJson[index1].timuList.length
  9718. "
  9719. >
  9720. <div
  9721. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9722. :key="tIndex"
  9723. class="timuImg"
  9724. @click.stop="previewImg(timg.src)"
  9725. >
  9726. <img :src="timg.src" alt="" />
  9727. </div>
  9728. </div>
  9729. <div class="a_add_body">
  9730. <div class="a_add_input">
  9731. <el-radio-group
  9732. v-model="radio[index1]"
  9733. v-if="testJson.testJson[index1].type == '1'"
  9734. >
  9735. <div class="radioBox">
  9736. <el-radio
  9737. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9738. .checkList"
  9739. :key="checkIndex"
  9740. :label="checkIndex"
  9741. :disabled="isAnswer"
  9742. class="redioStyle"
  9743. >
  9744. <div
  9745. style="margin-right: 10px"
  9746. v-if="item2 && item2.imgType && item2.imgType == 1"
  9747. >
  9748. <div class="inImg" @click.stop="previewImg(item2.src)">
  9749. <img :src="item2.src" alt="" />
  9750. </div>
  9751. </div>
  9752. <span v-else v-html="item2"></span>
  9753. </el-radio>
  9754. </div>
  9755. </el-radio-group>
  9756. <el-checkbox-group
  9757. v-model="radio[index1]"
  9758. v-if="testJson.testJson[index1].type == '2'"
  9759. >
  9760. <div class="radioBox">
  9761. <el-checkbox
  9762. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9763. .checkList"
  9764. :key="checkIndex"
  9765. :label="checkIndex"
  9766. :disabled="isAnswer"
  9767. class="redioStyle"
  9768. >
  9769. <div
  9770. style="margin-right: 10px"
  9771. v-if="item2 && item2.imgType && item2.imgType == 1"
  9772. >
  9773. <div class="inImg" @click.stop="previewImg(item2.src)">
  9774. <img :src="item2.src" alt="" />
  9775. </div>
  9776. </div>
  9777. <span v-else v-html="item2"></span>
  9778. </el-checkbox>
  9779. </div>
  9780. </el-checkbox-group>
  9781. </div>
  9782. </div>
  9783. </div>
  9784. </div>
  9785. </div>
  9786. <span slot="footer" class="dialog-footer">
  9787. <el-button
  9788. @click="dialogVisibleChoiceTeacher = false"
  9789. v-show="noteName == ''"
  9790. >取 消</el-button
  9791. >
  9792. <el-button
  9793. type="primary"
  9794. @click="addStudentTestTeacher"
  9795. v-show="noteName == ''"
  9796. >确 定</el-button
  9797. >
  9798. </span>
  9799. </el-dialog>
  9800. <el-dialog
  9801. title="查看富文本"
  9802. :visible.sync="dialogVisible1"
  9803. :append-to-body="true"
  9804. width="500px"
  9805. :before-close="handleClose"
  9806. class="dialog_diy textCss"
  9807. >
  9808. <el-form style="font-size: 20px">
  9809. <el-form-item label="文本标题" class="textTitle">
  9810. <div style="font-size: 20px">{{ text.name }}</div>
  9811. </el-form-item>
  9812. <div>富文本内容</div>
  9813. <div
  9814. v-html="text.url"
  9815. style="font-size: 18px; padding: 40px 0 0 0"
  9816. ></div>
  9817. </el-form>
  9818. <span slot="footer" class="dialog-footer">
  9819. <el-button type="primary" @click="dialogVisible1 = false"
  9820. >确定</el-button
  9821. >
  9822. </span>
  9823. </el-dialog>
  9824. <el-dialog
  9825. title="文件预览"
  9826. :visible.sync="dialogVisible3"
  9827. width="50%"
  9828. :before-close="handleClose"
  9829. class="dialog_diy"
  9830. :class="{ fullStyle: full }"
  9831. >
  9832. <div slot="title" class="header-title">
  9833. <div style="color: #fff">文件预览</div>
  9834. <div style="position: absolute; top: 19px; right: 50px">
  9835. <img
  9836. src="../../assets/full.png"
  9837. style="height: 16px; cursor: pointer"
  9838. alt=""
  9839. @click="fullTools"
  9840. />
  9841. </div>
  9842. </div>
  9843. <pdf
  9844. v-if="showPDF"
  9845. :pdfUrl="pptImgUrl"
  9846. style="width: 100%; height: 520px; overflow: auto"
  9847. :class="{ fullStyle: full }"
  9848. ></pdf>
  9849. <iframe
  9850. v-else
  9851. :src="pptImgUrl"
  9852. frameborder="0"
  9853. width="100%"
  9854. height="600"
  9855. :class="{ fullStyle: full }"
  9856. ></iframe>
  9857. </el-dialog>
  9858. <el-dialog
  9859. title="文件预览"
  9860. :visible.sync="dialogVisible6"
  9861. width="50%"
  9862. :before-close="handleClose"
  9863. class="dialog_diy"
  9864. >
  9865. <iframe
  9866. :src="pptImgUrl1"
  9867. frameborder="0"
  9868. width="100%"
  9869. height="600"
  9870. ></iframe>
  9871. </el-dialog>
  9872. <el-dialog
  9873. title="提示"
  9874. :visible.sync="dialogVisible4"
  9875. :append-to-body="true"
  9876. width="800px"
  9877. :before-close="handleClose"
  9878. class="dialog_diy notice"
  9879. >
  9880. <div>此功能暂未开放!</div>
  9881. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9882. </el-dialog>
  9883. <el-dialog
  9884. title="问答"
  9885. :visible.sync="answerDialogVisible"
  9886. :append-to-body="true"
  9887. width="800px"
  9888. :before-close="handleClose"
  9889. class="dialog_diy"
  9890. >
  9891. <div>
  9892. <div
  9893. style="
  9894. display: flex;
  9895. flex-wrap: nowrap;
  9896. flex-direction: column;
  9897. position: relative;
  9898. "
  9899. >
  9900. <div class="queTop" style="padding: 20px 0 20px 0">
  9901. <div class="question">
  9902. <img src="../../assets/icon/question.png" alt />
  9903. </div>
  9904. <div class="queTitle">
  9905. <div style="width: 90px; min-width: 90px">提问:</div>
  9906. <div>{{ answerQ }}</div>
  9907. </div>
  9908. </div>
  9909. <div class="ediBottom">
  9910. <textarea
  9911. rows="6"
  9912. class="binfo_input"
  9913. cols
  9914. style="width: 95%; height: 120px"
  9915. v-model="questionAnswer"
  9916. ></textarea>
  9917. </div>
  9918. </div>
  9919. </div>
  9920. <div slot="footer">
  9921. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9922. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9923. </div>
  9924. </el-dialog>
  9925. <el-dialog
  9926. title="问答"
  9927. :visible.sync="answerDialogVisibleTeacher"
  9928. :append-to-body="true"
  9929. width="800px"
  9930. :before-close="handleClose"
  9931. class="dialog_diy"
  9932. >
  9933. <div>
  9934. <div class="w_name">
  9935. 学生姓名:<span>{{ sStudent.student }}</span>
  9936. </div>
  9937. <div
  9938. style="
  9939. display: flex;
  9940. flex-wrap: nowrap;
  9941. flex-direction: column;
  9942. position: relative;
  9943. "
  9944. >
  9945. <div class="queTop" style="padding: 20px 0 20px 0">
  9946. <div class="question">
  9947. <img src="../../assets/icon/question.png" alt />
  9948. </div>
  9949. <div class="queTitle">
  9950. <div style="width: 90px; min-width: 90px">提问:</div>
  9951. <div>{{ answerQ }}</div>
  9952. </div>
  9953. </div>
  9954. <div class="ediBottom">
  9955. <textarea
  9956. rows="6"
  9957. class="binfo_input"
  9958. cols
  9959. style="width: 95%; height: 120px"
  9960. v-model="questionAnswer"
  9961. ></textarea>
  9962. </div>
  9963. </div>
  9964. </div>
  9965. <div slot="footer">
  9966. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9967. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9968. </div>
  9969. </el-dialog>
  9970. <el-dialog
  9971. title="倒计时"
  9972. :visible.sync="timeDialogVisible"
  9973. :append-to-body="true"
  9974. width="800px"
  9975. :before-close="handleClose"
  9976. class="dialog_diy"
  9977. >
  9978. <div>
  9979. <div style="margin-bottom: 20px; color: #999">
  9980. 提示:点击“+”或“-”修改倒计时时长。
  9981. </div>
  9982. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9983. </div>
  9984. <div slot="footer">
  9985. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9986. </div>
  9987. </el-dialog>
  9988. <el-dialog
  9989. title="权限设置"
  9990. :visible.sync="juriVisible"
  9991. :append-to-body="true"
  9992. width="400px"
  9993. :before-close="handleClose"
  9994. class="dialog_diy"
  9995. >
  9996. <div>
  9997. <div class="open_box">
  9998. <div class="switch_box">
  9999. <span>允许学生查看所有作业</span>
  10000. <el-switch
  10001. v-model="sIsOpen"
  10002. active-text=""
  10003. class="switchCss"
  10004. @change="updateSLook"
  10005. ></el-switch>
  10006. </div>
  10007. <div
  10008. class="switch_box"
  10009. v-if="
  10010. (courseDetail.userid == userid ||
  10011. (courseDetail.course_teacher &&
  10012. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  10013. "
  10014. >
  10015. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10016. <span>禁止学生查看阶段</span>
  10017. <el-switch
  10018. v-model="IsLookOpen"
  10019. active-text=""
  10020. class="switchCss"
  10021. @change="updateLookOpen"
  10022. ></el-switch>
  10023. </div>
  10024. <div class="switch_box" v-if="courseDetail.userid == userid">
  10025. <span>开启跟随模式</span>
  10026. <el-switch
  10027. v-model="IsFollow"
  10028. active-text=""
  10029. class="switchCss"
  10030. @change="updateFollow"
  10031. ></el-switch>
  10032. </div>
  10033. </div>
  10034. </div>
  10035. <div slot="footer">
  10036. <el-button
  10037. style="background: #409efe; color: #fff"
  10038. @click="juriVisible = false"
  10039. >关 闭</el-button
  10040. >
  10041. </div>
  10042. </el-dialog>
  10043. <el-dialog
  10044. title="查看视频"
  10045. :visible.sync="videoVisible"
  10046. :append-to-body="true"
  10047. width="1000px"
  10048. :before-close="handleClose"
  10049. class="dialog_diy1"
  10050. >
  10051. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10052. <video-player
  10053. class="video-player vjs-custom-skin"
  10054. :playsinline="true"
  10055. :options="videoDetail"
  10056. @play="onPlayerPlay($event)"
  10057. style="width: 100%; height: 100%"
  10058. ></video-player>
  10059. </div>
  10060. <div slot="footer">
  10061. <el-button
  10062. style="background: #409efe; color: #fff"
  10063. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10064. >
  10065. 关 闭</el-button
  10066. >
  10067. </div>
  10068. </el-dialog>
  10069. <el-dialog
  10070. title="查看详情"
  10071. :visible.sync="commentDialogVisible"
  10072. :append-to-body="true"
  10073. width="800px"
  10074. :before-close="handleClose"
  10075. class="dialog_diy"
  10076. >
  10077. <div class="commentTop">
  10078. <div class="studentDetail">
  10079. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10080. <div class="nameAndTime">
  10081. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10082. <div>{{ commentDetail.time }}</div>
  10083. </div>
  10084. <div
  10085. class="returnBtn"
  10086. style="margin-left: auto; width: 80px"
  10087. v-if="
  10088. commentDetail.works &&
  10089. commentDetail.type == 0 &&
  10090. (tType == 1 || tType == 4)
  10091. "
  10092. @click="
  10093. showPicturePaint(
  10094. commentDetail.img ? commentDetail.img : commentDetail.works
  10095. )
  10096. "
  10097. >
  10098. 教师批注
  10099. </div>
  10100. </div>
  10101. <div
  10102. class="worksAnswer"
  10103. v-if="commentDetail.works && commentDetail.type == 2"
  10104. >
  10105. {{ JSON.parse(commentDetail.works)[0].answer }}
  10106. </div>
  10107. <div
  10108. class="worksAnswer"
  10109. v-if="commentDetail.works && commentDetail.type == 1"
  10110. >
  10111. <img
  10112. src="../../assets/teacherWork.png"
  10113. v-if="commentDetail.ateacher"
  10114. class="w_teachert"
  10115. />
  10116. <pdf
  10117. v-if="showPDF"
  10118. :pdfUrl="pptImgUrl"
  10119. style="width: 100%; height: 520px; overflow: auto"
  10120. :class="{ fullStyle: full }"
  10121. ></pdf>
  10122. <iframe
  10123. v-else
  10124. :src="pptImgUrl"
  10125. frameborder="0"
  10126. width="100%"
  10127. height="600"
  10128. :class="{ fullStyle: full }"
  10129. ></iframe>
  10130. </div>
  10131. <div
  10132. class="worksAnswer"
  10133. v-if="commentDetail.works && commentDetail.type == 0"
  10134. >
  10135. <img
  10136. src="../../assets/teacherWork.png"
  10137. v-if="commentDetail.ateacher"
  10138. class="w_teachert"
  10139. style="right: 105px"
  10140. />
  10141. <img
  10142. :src="commentDetail.works"
  10143. alt=""
  10144. @click="previewImg(commentDetail.works)"
  10145. />
  10146. </div>
  10147. <div
  10148. class="worksAnswer"
  10149. v-if="commentDetail.works && commentDetail.type == 3"
  10150. >
  10151. <img
  10152. src="../../assets/teacherWork.png"
  10153. v-if="commentDetail.ateacher"
  10154. class="w_teachert"
  10155. />
  10156. <video-player
  10157. class="video-player vjs-custom-skin"
  10158. :playsinline="true"
  10159. :options="videoDetail"
  10160. @play="onPlayerPlay($event)"
  10161. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10162. ></video-player>
  10163. </div>
  10164. <div
  10165. class="worksAnswer"
  10166. v-if="commentDetail.works && commentDetail.type == 10"
  10167. >
  10168. <div class="cont" v-html="commentDetail.works.text"></div>
  10169. </div>
  10170. <div
  10171. class="worksAnswer codeFileBox"
  10172. v-if="commentDetail.works && commentDetail.type == 12"
  10173. @click="downloadFile(commentDetail.works)"
  10174. >
  10175. <img src="../../assets/icon/codeFile.png" />
  10176. <div>点击下载文件</div>
  10177. </div>
  10178. <div
  10179. class="worksAnswer codeFileBox"
  10180. v-if="commentDetail.works && commentDetail.type == 15"
  10181. @click="
  10182. openCocoPi(
  10183. 57,
  10184. commentIndexJson.toolIndex,
  10185. commentDetail.userid,
  10186. commentDetail.sName
  10187. )
  10188. "
  10189. >
  10190. <img src="../../assets/icon/codeFile.png" />
  10191. <div>点击打开CocoPi</div>
  10192. </div>
  10193. <div
  10194. class="worksAnswer"
  10195. v-if="commentDetail.works && commentDetail.type == 13"
  10196. >
  10197. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10198. </div>
  10199. <div
  10200. class="worksAnswer"
  10201. v-if="commentDetail.works && commentDetail.type == 4"
  10202. >
  10203. <div class="evalCss">
  10204. <div class="nav">请选择星星进行评分</div>
  10205. <div class="middleBox" v-if="eScore.eStar">
  10206. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10207. <div class="nameAndrate">
  10208. <div>{{ e.value }}</div>
  10209. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10210. </div>
  10211. <div v-if="e.detail">{{ e.detail }}</div>
  10212. </div>
  10213. <div class="bz">
  10214. <textarea
  10215. disabled
  10216. rows="4"
  10217. class="pj"
  10218. style="
  10219. padding: 10px 5px;
  10220. width: 70%;
  10221. background: #f7f6f9;
  10222. font-size: 14px;
  10223. text-indent: 10px;
  10224. color: #000;
  10225. "
  10226. cols
  10227. v-model="eScore.eBzText"
  10228. placeholder="请输入评价内容..."
  10229. ></textarea>
  10230. </div>
  10231. </div>
  10232. </div>
  10233. </div>
  10234. <div class="comment">
  10235. <div class="commentList">
  10236. <div class="commentImg">
  10237. <img
  10238. @click="
  10239. isLikes(
  10240. commentDetail.wid,
  10241. userid,
  10242. 1,
  10243. null,
  10244. commentDetail.isLikes,
  10245. commentDetail.sName
  10246. )
  10247. "
  10248. :src="commentDetail.isLikes == true ? likes : noLikes"
  10249. alt=""
  10250. />
  10251. </div>
  10252. <div>{{ commentDetail.likesCount }}</div>
  10253. </div>
  10254. <div class="commentList">
  10255. <div class="commentImg">
  10256. <img src="../../assets/icon/comment/comment.png" alt="" />
  10257. </div>
  10258. <div>{{ commentDetail.commentCount }}</div>
  10259. </div>
  10260. </div>
  10261. <div class="drawPBox" v-if="commentDetail.img">
  10262. <span>教师批注</span>
  10263. <img
  10264. :src="commentDetail.img"
  10265. alt=""
  10266. @click="previewImg(commentDetail.img)"
  10267. />
  10268. <span
  10269. class="deleteImg"
  10270. v-if="tType == 1 || tType == 4"
  10271. @click.stop="deletePicturePaint(commentDetail.wid)"
  10272. style="
  10273. font-size: 14px;
  10274. width: auto !important;
  10275. color: #b4b4b4;
  10276. top: unset;
  10277. bottom: 0;
  10278. border: none;
  10279. padding: 0;
  10280. height: auto !important;
  10281. margin: 0;
  10282. "
  10283. >删除</span
  10284. >
  10285. </div>
  10286. </div>
  10287. <div class="commentBox">
  10288. <div class="pl">评论:</div>
  10289. <div style="max-height: 200px; overflow: auto">
  10290. <div
  10291. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10292. style="padding: 10px 0 0 0"
  10293. >
  10294. <div
  10295. class="studentDetail"
  10296. style="padding-top: 10px"
  10297. v-for="(co, coIndex) in commentDetail.commentJson"
  10298. :key="coIndex"
  10299. >
  10300. <div class="tx" style="min-width: 50px">
  10301. <img src="../../assets/avatar.png" alt="" />
  10302. </div>
  10303. <div class="plPerson">
  10304. <div class="plName">
  10305. <div>{{ co.commentPeople }}</div>
  10306. <div style="margin-left: 5px">
  10307. {{ co.commentTime }}
  10308. </div>
  10309. <div
  10310. class="deleteComment"
  10311. v-if="userid == co.userid"
  10312. @click="deleteComment(co.wid)"
  10313. >
  10314. 删除
  10315. </div>
  10316. </div>
  10317. <div class="plContent">{{ co.commentText }}</div>
  10318. </div>
  10319. </div>
  10320. </div>
  10321. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10322. </div>
  10323. </div>
  10324. <div style="margin-top: 10px">
  10325. <div class="displayBox">
  10326. <div
  10327. style="
  10328. color: #556db4;
  10329. font-size: 14px;
  10330. font-weight: bold;
  10331. padding-bottom: 10px;
  10332. "
  10333. >
  10334. 评价
  10335. </div>
  10336. <div class="easy_comment" v-if="false">
  10337. <div
  10338. v-for="(p, pIndex) in PlTextList"
  10339. :key="pIndex"
  10340. @click="fastText(p, 1)"
  10341. >
  10342. {{ p }}
  10343. </div>
  10344. </div>
  10345. </div>
  10346. <div>
  10347. <textarea
  10348. rows="3"
  10349. class="pj"
  10350. style="padding: 10px 5px"
  10351. cols
  10352. v-model="commentText"
  10353. placeholder="请输入评论"
  10354. ></textarea>
  10355. </div>
  10356. </div>
  10357. <div slot="footer">
  10358. <el-button
  10359. @click="
  10360. (commentDialogVisible = false),
  10361. (commentIndexJson = {}),
  10362. videoDetail.sources && videoDetail.sources[0]
  10363. ? (videoDetail.sources[0].src = '')
  10364. : ''
  10365. "
  10366. >取 消</el-button
  10367. >
  10368. <el-button
  10369. type="primary"
  10370. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10371. >确 定</el-button
  10372. >
  10373. </div>
  10374. </el-dialog>
  10375. <el-dialog
  10376. title="查看文档"
  10377. :visible.sync="fullDialogVisible"
  10378. :append-to-body="true"
  10379. width="100%"
  10380. :before-close="handleClose"
  10381. :show-close="false"
  10382. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  10383. >
  10384. <div slot="title" class="header-title">
  10385. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  10386. <div v-else style="color: #fff">查看文档</div>
  10387. <div
  10388. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  10389. style="
  10390. cursor: pointer;
  10391. position: absolute;
  10392. top: 20px;
  10393. right: 20px;
  10394. color: #fff;
  10395. "
  10396. >
  10397. 退出全屏
  10398. </div>
  10399. </div>
  10400. <div style="height: 100%;position: relative;">
  10401. <el-button
  10402. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  10403. size="medium"
  10404. type="primary"
  10405. @click="
  10406. () => {
  10407. (fullDialogVisible = false),
  10408. changeSplitScreenBehavior({ code: 99 });
  10409. }
  10410. "
  10411. style="
  10412. cursor: pointer;
  10413. position: absolute;
  10414. top: 10px;
  10415. right: 20px;
  10416. color: #fff;
  10417. "
  10418. >
  10419. 退出全屏
  10420. </el-button>
  10421. <div
  10422. class="wheel"
  10423. v-if="
  10424. (fulltype == 2 || fulltype == 4) &&
  10425. fullUrl.indexOf(
  10426. 'https://view.officeapps.live.com/op/view.aspx?src='
  10427. ) != -1
  10428. "
  10429. style="width: 100%;height:100%; margin: 0 auto"
  10430. >
  10431. <iframe
  10432. style="width: 100%; height: 100%; border: none"
  10433. :src="fullUrl"
  10434. ></iframe>
  10435. </div>
  10436. <iframe
  10437. style="width: 100%; height: 100%; border: none"
  10438. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1) || fullUrl.indexOf('app.cocorobo.cn')!=-1"
  10439. :src="fullUrl"
  10440. ></iframe>
  10441. <iframe
  10442. style="width: 100%; height: 100%; border: none"
  10443. security="restricted"
  10444. v-else-if="(fulltype == 2 || fulltype == 4)"
  10445. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10446. :src="fullUrl"
  10447. ></iframe>
  10448. <pdf
  10449. v-else-if="fulltype == 3"
  10450. :pdfUrl="fullUrl"
  10451. style="width: 100%; height: 100%; overflow: auto"
  10452. ></pdf>
  10453. <div
  10454. class="wheel"
  10455. v-if="fulltype == 1"
  10456. style="
  10457. box-shadow: 0 0 6px 1px #f2f2f2;
  10458. height:100%;
  10459. width: 100%;
  10460. background: #f1f1f1;
  10461. "
  10462. >
  10463. <div class="title" style="width: 100%; box-sizing: border-box">
  10464. 查看文档
  10465. </div>
  10466. <el-form class="textBox" style="height: 90%">
  10467. <el-form-item class="textTitle">
  10468. <div style="font-size: 22px">
  10469. {{ fullUrl.name }}
  10470. </div>
  10471. </el-form-item>
  10472. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10473. <div
  10474. v-html="fullUrl.url"
  10475. class="textContent"
  10476. style="height: auto"
  10477. ></div>
  10478. </el-form>
  10479. </div>
  10480. </div>
  10481. <!-- <div slot="footer">
  10482. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10483. </div> -->
  10484. </el-dialog>
  10485. <el-dialog
  10486. title="个人评价"
  10487. :visible.sync="studentEvalDialogVisible"
  10488. :append-to-body="true"
  10489. width="800px"
  10490. :before-close="handleClose"
  10491. class="dialog_diy"
  10492. >
  10493. <div class="evalCss">
  10494. <div class="nav">请选择星星进行评分</div>
  10495. <div class="middleBox" v-if="eScore.eStar">
  10496. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10497. <div class="nameAndrate">
  10498. <div>{{ e.value }}</div>
  10499. <el-rate
  10500. v-model="eScore.eStar[eIndex]"
  10501. :disabled="isStar"
  10502. ></el-rate>
  10503. </div>
  10504. <div v-if="e.detail">{{ e.detail }}</div>
  10505. </div>
  10506. <div class="easy_comment" v-if="false">
  10507. <div
  10508. v-for="(p, pIndex) in PlTextList"
  10509. :key="pIndex"
  10510. @click="fastText(p, 2)"
  10511. >
  10512. {{ p }}
  10513. </div>
  10514. </div>
  10515. <div class="bz">
  10516. <textarea
  10517. :disabled="isStar"
  10518. rows="4"
  10519. class="pj"
  10520. style="
  10521. padding: 10px 5px;
  10522. width: 70%;
  10523. background: #f7f6f9;
  10524. font-size: 14px;
  10525. text-indent: 10px;
  10526. "
  10527. cols
  10528. v-model="eScore.eBzText"
  10529. placeholder="请输入评价内容..."
  10530. ></textarea>
  10531. </div>
  10532. </div>
  10533. </div>
  10534. <div slot="footer">
  10535. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10536. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10537. >确 定</el-button
  10538. >
  10539. </div>
  10540. </el-dialog>
  10541. <el-dialog
  10542. title="个人评价"
  10543. :visible.sync="studentEvalDialogVisibleTeacher"
  10544. :append-to-body="true"
  10545. width="800px"
  10546. :before-close="handleClose"
  10547. class="dialog_diy"
  10548. >
  10549. <div class="w_name">
  10550. 学生姓名:<span>{{ sStudent.student }}</span>
  10551. </div>
  10552. <div class="evalCss">
  10553. <div class="nav">请选择星星进行评分</div>
  10554. <div class="middleBox" v-if="eScore.eStar">
  10555. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10556. <div class="nameAndrate">
  10557. <div>{{ e.value }}</div>
  10558. <el-rate
  10559. v-model="eScore.eStar[eIndex]"
  10560. :disabled="isStar"
  10561. ></el-rate>
  10562. </div>
  10563. <div v-if="e.detail">{{ e.detail }}</div>
  10564. </div>
  10565. <div class="easy_comment" v-if="false">
  10566. <div
  10567. v-for="(p, pIndex) in PlTextList"
  10568. :key="pIndex"
  10569. @click="fastText(p, 2)"
  10570. >
  10571. {{ p }}
  10572. </div>
  10573. </div>
  10574. <div class="bz">
  10575. <textarea
  10576. :disabled="isStar"
  10577. rows="4"
  10578. class="pj"
  10579. style="
  10580. padding: 10px 5px;
  10581. width: 70%;
  10582. background: #f7f6f9;
  10583. font-size: 14px;
  10584. text-indent: 10px;
  10585. "
  10586. cols
  10587. v-model="eScore.eBzText"
  10588. placeholder="请输入评价内容..."
  10589. ></textarea>
  10590. </div>
  10591. </div>
  10592. </div>
  10593. <div slot="footer">
  10594. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10595. >取 消</el-button
  10596. >
  10597. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10598. >确 定</el-button
  10599. >
  10600. </div>
  10601. </el-dialog>
  10602. <el-dialog
  10603. title="选择匹配"
  10604. :visible.sync="dialogVisibleSelect"
  10605. :append-to-body="true"
  10606. width="90%"
  10607. :before-close="handleClose"
  10608. class="dialog_diy dialog_diy3"
  10609. >
  10610. <div v-if="selectJson">
  10611. <div class="select_box2">
  10612. <div class="select_box2_title">
  10613. <div>选择匹配</div>
  10614. <div>请选择对应的答案进行答题!</div>
  10615. </div>
  10616. <div class="select_box2_box">
  10617. <div class="select_box2_img">
  10618. <img
  10619. :src="selectJson.url"
  10620. @click="previewImg(selectJson.url)"
  10621. alt=""
  10622. />
  10623. </div>
  10624. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10625. <div style="padding-top: 15px">
  10626. <div class="select_answer_title" v-if="isSelect">
  10627. {{ selectAnswer.stu }}
  10628. </div>
  10629. <div class="select_answer_title" v-else>
  10630. 根据题目选择对应答案
  10631. </div>
  10632. <div
  10633. class="select_box2_answer_box"
  10634. v-for="(item2, checkIndex) in selectJson.select"
  10635. :key="checkIndex"
  10636. >
  10637. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10638. <el-select
  10639. :disabled="isSelect"
  10640. v-model="selectAnswer.answer[checkIndex]"
  10641. placeholder="请选择正确答案"
  10642. >
  10643. <el-option
  10644. v-for="(e, eIndex) in selectJson.select"
  10645. :key="eIndex"
  10646. :label="e"
  10647. :value="eIndex"
  10648. >
  10649. </el-option>
  10650. </el-select>
  10651. </div>
  10652. </div>
  10653. <div
  10654. class="rightAnswerCss"
  10655. v-if="isSelect && (tType == 1 || tType == 4)"
  10656. >
  10657. <div
  10658. v-for="(a, aIndex) in selectJson.answer"
  10659. :key="aIndex"
  10660. class="rightAnswer"
  10661. >
  10662. <div
  10663. v-if="selectAnswer.answer[aIndex] === a"
  10664. style="color: #767de1"
  10665. >
  10666. 回答正确
  10667. </div>
  10668. <div v-else>回答错误</div>
  10669. <div
  10670. style="margin-left: 10px"
  10671. v-if="selectAnswer.answer[aIndex] !== a"
  10672. >
  10673. 正确答案:
  10674. </div>
  10675. <div
  10676. :class="
  10677. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10678. "
  10679. >
  10680. {{ selectJson.select[a] }}
  10681. </div>
  10682. </div>
  10683. </div>
  10684. </div>
  10685. <div class="upAnswerCss">
  10686. <el-button
  10687. type="primary"
  10688. @click="addSelectAnswer"
  10689. v-if="!isSelect"
  10690. >提交答案</el-button
  10691. >
  10692. </div>
  10693. </div>
  10694. </div>
  10695. </div>
  10696. </el-dialog>
  10697. <el-dialog
  10698. title="选择匹配"
  10699. :visible.sync="dialogVisibleSelectTeacher"
  10700. :append-to-body="true"
  10701. width="90%"
  10702. :before-close="handleClose"
  10703. class="dialog_diy dialog_diy3"
  10704. >
  10705. <div v-if="selectJson">
  10706. <div class="w_name">
  10707. 学生姓名:<span>{{ sStudent.student }}</span>
  10708. </div>
  10709. <div class="select_box2">
  10710. <div class="select_box2_title">
  10711. <div>选择匹配</div>
  10712. <div>请选择对应的答案进行答题!</div>
  10713. </div>
  10714. <div class="select_box2_box">
  10715. <div class="select_box2_img">
  10716. <img
  10717. :src="selectJson.url"
  10718. @click="previewImg(selectJson.url)"
  10719. alt=""
  10720. />
  10721. </div>
  10722. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10723. <div style="padding-top: 15px">
  10724. <div class="select_answer_title" v-if="isSelect">
  10725. {{ selectAnswer.stu }}
  10726. </div>
  10727. <div class="select_answer_title" v-else>
  10728. 根据题目选择对应答案
  10729. </div>
  10730. <div
  10731. class="select_box2_answer_box"
  10732. v-for="(item2, checkIndex) in selectJson.select"
  10733. :key="checkIndex"
  10734. >
  10735. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10736. <el-select
  10737. :disabled="isSelect"
  10738. v-model="selectAnswer.answer[checkIndex]"
  10739. placeholder="请选择正确答案"
  10740. >
  10741. <el-option
  10742. v-for="(e, eIndex) in selectJson.select"
  10743. :key="eIndex"
  10744. :label="e"
  10745. :value="eIndex"
  10746. >
  10747. </el-option>
  10748. </el-select>
  10749. </div>
  10750. </div>
  10751. <div
  10752. class="rightAnswerCss"
  10753. v-if="isSelect && (tType == 1 || tType == 4)"
  10754. >
  10755. <div
  10756. v-for="(a, aIndex) in selectJson.answer"
  10757. :key="aIndex"
  10758. class="rightAnswer"
  10759. >
  10760. <div
  10761. v-if="selectAnswer.answer[aIndex] === a"
  10762. style="color: #767de1"
  10763. >
  10764. 回答正确
  10765. </div>
  10766. <div v-else>回答错误</div>
  10767. <div
  10768. style="margin-left: 10px"
  10769. v-if="selectAnswer.answer[aIndex] !== a"
  10770. >
  10771. 正确答案:
  10772. </div>
  10773. <div
  10774. :class="
  10775. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10776. "
  10777. >
  10778. {{ selectJson.select[a] }}
  10779. </div>
  10780. </div>
  10781. </div>
  10782. </div>
  10783. <div class="upAnswerCss">
  10784. <el-button
  10785. type="primary"
  10786. @click="addSelectAnswerTeacher"
  10787. v-if="!isSelect"
  10788. >提交答案</el-button
  10789. >
  10790. </div>
  10791. </div>
  10792. </div>
  10793. </div>
  10794. </el-dialog>
  10795. <el-dialog
  10796. title="教师评分"
  10797. :visible.sync="dialogVisibleScore"
  10798. :append-to-body="true"
  10799. width="800px"
  10800. :before-close="handleClose"
  10801. class="dialog_diy"
  10802. >
  10803. <div>
  10804. <div class="studentDetail">
  10805. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10806. <div class="nameAndTime">
  10807. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10808. <div>{{ commentDetail.time }}</div>
  10809. </div>
  10810. </div>
  10811. <div
  10812. class="worksAnswer"
  10813. v-if="commentDetail.works && commentDetail.type == 2"
  10814. >
  10815. {{ JSON.parse(commentDetail.works)[0].answer }}
  10816. </div>
  10817. <div
  10818. class="worksAnswer"
  10819. v-if="commentDetail.works && commentDetail.type == 1"
  10820. >
  10821. <pdf
  10822. v-if="showPDF"
  10823. :pdfUrl="pptImgUrl"
  10824. style="width: 100%; height: 520px; overflow: auto"
  10825. :class="{ fullStyle: full }"
  10826. ></pdf>
  10827. <iframe
  10828. v-else
  10829. :src="pptImgUrl"
  10830. frameborder="0"
  10831. width="100%"
  10832. height="600"
  10833. :class="{ fullStyle: full }"
  10834. ></iframe>
  10835. </div>
  10836. <div
  10837. class="worksAnswer"
  10838. v-if="commentDetail.works && commentDetail.type == 0"
  10839. >
  10840. <img
  10841. :src="commentDetail.works"
  10842. alt=""
  10843. @click="previewImg(commentDetail.works)"
  10844. />
  10845. </div>
  10846. <div
  10847. class="worksAnswer"
  10848. v-if="commentDetail.works && commentDetail.type == 3"
  10849. >
  10850. <video-player
  10851. class="video-player vjs-custom-skin"
  10852. :playsinline="true"
  10853. :options="videoDetail"
  10854. @play="onPlayerPlay($event)"
  10855. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10856. ></video-player>
  10857. </div>
  10858. <div
  10859. class="worksAnswer codeFileBox"
  10860. v-if="commentDetail.works && commentDetail.type == 12"
  10861. @click="downloadFile(commentDetail.works)"
  10862. >
  10863. <img src="../../assets/icon/codeFile.png" />
  10864. <div>点击下载文件</div>
  10865. </div>
  10866. <div
  10867. class="worksAnswer codeFileBox"
  10868. v-if="commentDetail.works && commentDetail.type == 15"
  10869. @click="
  10870. openCocoPi(
  10871. 57,
  10872. commentIndexJson.toolIndex,
  10873. commentDetail.userid,
  10874. commentDetail.sName
  10875. )
  10876. "
  10877. >
  10878. <img src="../../assets/icon/codeFile.png" />
  10879. <div>点击打开CocoPi</div>
  10880. </div>
  10881. <div
  10882. class="worksAnswer"
  10883. v-if="commentDetail.works && commentDetail.type == 13"
  10884. >
  10885. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10886. </div>
  10887. <div class="scoreBox">
  10888. <span class="t">请输入分数</span>
  10889. <el-input-number
  10890. :disabled="courseDetail.userid != userid"
  10891. v-model="wScore"
  10892. :controls="false"
  10893. :min="0"
  10894. :max="100"
  10895. ></el-input-number>
  10896. </div>
  10897. <div class="scoreDetailBox">
  10898. <span class="t">评分评论</span>
  10899. <el-input
  10900. type="textarea"
  10901. :rows="5"
  10902. :disabled="courseDetail.userid != userid"
  10903. resize="none"
  10904. v-model="scoreDetail"
  10905. placeholder="请输入对学生的评价"
  10906. >
  10907. </el-input>
  10908. </div>
  10909. </div>
  10910. <span slot="footer" class="dialog-footer">
  10911. <el-button
  10912. @click="
  10913. (dialogVisibleScore = false),
  10914. (commentIndexJson = {}),
  10915. videoDetail.sources && videoDetail.sources[0]
  10916. ? (videoDetail.sources[0].src = '')
  10917. : ''
  10918. "
  10919. >取 消</el-button
  10920. >
  10921. <el-button
  10922. type="primary"
  10923. v-if="courseDetail.userid == userid"
  10924. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10925. >确 定
  10926. </el-button>
  10927. </span>
  10928. </el-dialog>
  10929. <el-dialog
  10930. title="排序"
  10931. :visible.sync="dialogVisibleSentence"
  10932. :append-to-body="true"
  10933. width="1000px"
  10934. :before-close="handleClose"
  10935. class="dialog_diy dialog_diy3"
  10936. >
  10937. <div>
  10938. <div class="sentenBox">
  10939. <div
  10940. v-for="(st, stIndex) in sentenceList"
  10941. :key="stIndex"
  10942. style="padding-bottom: 20px"
  10943. >
  10944. <div
  10945. style="padding: 15px 0 10px 20px"
  10946. class="sentenceTitle"
  10947. :index="stIndex + 1"
  10948. >
  10949. 题目{{ stIndex + 1 }}:请选择正确顺序
  10950. </div>
  10951. <div class="cardList" v-if="st.chooseSenList">
  10952. <div class="cardBox">
  10953. <div
  10954. v-for="(r, rIndex) in st.chooseSenList"
  10955. :key="rIndex"
  10956. @click="returnCard(r, stIndex, rIndex)"
  10957. >
  10958. <el-tooltip
  10959. class="item"
  10960. effect="light"
  10961. :content="r"
  10962. placement="top"
  10963. v-if="r != '' && r != undefined"
  10964. >
  10965. <div
  10966. :class="{
  10967. isCard: r,
  10968. isChooseCard: r == '' || r == undefined,
  10969. }"
  10970. >
  10971. <div>{{ r }}</div>
  10972. </div>
  10973. </el-tooltip>
  10974. <div
  10975. :class="{
  10976. isCard: r,
  10977. isChooseCard: r == '' || r == undefined,
  10978. }"
  10979. v-else
  10980. >
  10981. <div>{{ r }}</div>
  10982. </div>
  10983. </div>
  10984. </div>
  10985. </div>
  10986. <div class="cardList" v-if="st.addChangeSen">
  10987. <div class="cardBox">
  10988. <div
  10989. v-for="(s, sIndex) in st.addChangeSen"
  10990. :key="sIndex"
  10991. @click="setRightAnswer(s, stIndex, sIndex)"
  10992. >
  10993. <el-tooltip
  10994. class="item"
  10995. effect="light"
  10996. :content="s"
  10997. placement="top"
  10998. v-if="s != '' && s != undefined"
  10999. >
  11000. <div
  11001. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11002. >
  11003. <div>{{ s }}</div>
  11004. </div>
  11005. </el-tooltip>
  11006. <div
  11007. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11008. v-else
  11009. >
  11010. <div>{{ s }}</div>
  11011. </div>
  11012. </div>
  11013. </div>
  11014. </div>
  11015. </div>
  11016. </div>
  11017. </div>
  11018. <span slot="footer" class="dialog-footer">
  11019. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11020. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11021. </span>
  11022. </el-dialog>
  11023. <el-dialog
  11024. title="排序"
  11025. :visible.sync="dialogVisibleSentenceTeacher"
  11026. :append-to-body="true"
  11027. width="1000px"
  11028. :before-close="handleClose"
  11029. class="dialog_diy dialog_diy3"
  11030. >
  11031. <div>
  11032. <div class="w_name">
  11033. 学生姓名:<span>{{ sStudent.student }}</span>
  11034. </div>
  11035. <div class="sentenBox">
  11036. <div
  11037. v-for="(st, stIndex) in sentenceList"
  11038. :key="stIndex"
  11039. style="padding-bottom: 20px"
  11040. >
  11041. <div
  11042. style="padding: 15px 0 10px 20px"
  11043. class="sentenceTitle"
  11044. :index="stIndex + 1"
  11045. >
  11046. 题目{{ stIndex + 1 }}:请选择正确顺序
  11047. </div>
  11048. <div class="cardList" v-if="st.chooseSenList">
  11049. <div class="cardBox">
  11050. <div
  11051. v-for="(r, rIndex) in st.chooseSenList"
  11052. :key="rIndex"
  11053. @click="returnCard(r, stIndex, rIndex)"
  11054. >
  11055. <el-tooltip
  11056. class="item"
  11057. effect="light"
  11058. :content="r"
  11059. placement="top"
  11060. v-if="r != '' && r != undefined"
  11061. >
  11062. <div
  11063. :class="{
  11064. isCard: r,
  11065. isChooseCard: r == '' || r == undefined,
  11066. }"
  11067. >
  11068. <div>{{ r }}</div>
  11069. </div>
  11070. </el-tooltip>
  11071. <div
  11072. :class="{
  11073. isCard: r,
  11074. isChooseCard: r == '' || r == undefined,
  11075. }"
  11076. v-else
  11077. >
  11078. <div>{{ r }}</div>
  11079. </div>
  11080. </div>
  11081. </div>
  11082. </div>
  11083. <div class="cardList" v-if="st.addChangeSen">
  11084. <div class="cardBox">
  11085. <div
  11086. v-for="(s, sIndex) in st.addChangeSen"
  11087. :key="sIndex"
  11088. @click="setRightAnswer(s, stIndex, sIndex)"
  11089. >
  11090. <el-tooltip
  11091. class="item"
  11092. effect="light"
  11093. :content="s"
  11094. placement="top"
  11095. v-if="s != '' && s != undefined"
  11096. >
  11097. <div
  11098. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11099. >
  11100. <div>{{ s }}</div>
  11101. </div>
  11102. </el-tooltip>
  11103. <div
  11104. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11105. v-else
  11106. >
  11107. <div>{{ s }}</div>
  11108. </div>
  11109. </div>
  11110. </div>
  11111. </div>
  11112. </div>
  11113. </div>
  11114. </div>
  11115. <span slot="footer" class="dialog-footer">
  11116. <el-button @click="dialogVisibleSentenceTeacher = false"
  11117. >取 消</el-button
  11118. >
  11119. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11120. </span>
  11121. </el-dialog>
  11122. <el-dialog
  11123. title="排序"
  11124. :visible.sync="dialogVisibleSentence1"
  11125. :append-to-body="true"
  11126. width="1000px"
  11127. :before-close="handleClose"
  11128. class="dialog_diy dialog_diy3"
  11129. >
  11130. <div>
  11131. <div class="sentenBox">
  11132. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11133. {{ sentenceList1.stuName }}的作业
  11134. </div>
  11135. <div
  11136. v-for="(st, stIndex) in sentenceList1"
  11137. :key="stIndex"
  11138. style="padding-bottom: 20px"
  11139. >
  11140. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11141. 第{{ stIndex + 1 }}题
  11142. </div>
  11143. <div class="isWrong">
  11144. <div class="cardList1" v-if="st.chooseSenList">
  11145. <div class="cardBox">
  11146. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11147. <el-tooltip
  11148. class="item"
  11149. effect="light"
  11150. :content="s"
  11151. placement="top"
  11152. >
  11153. <div class="isCard">
  11154. <div>{{ s }}</div>
  11155. </div>
  11156. </el-tooltip>
  11157. </div>
  11158. </div>
  11159. <div class="cardAnswerBox">
  11160. 组成句子:{{ st.chooseSenList.join(" ") }}
  11161. </div>
  11162. </div>
  11163. <div v-if="tType == 2" class="isTj">
  11164. <div class="isTjImg">
  11165. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11166. </div>
  11167. <div>已提交</div>
  11168. </div>
  11169. <div
  11170. class="answerRight isTj"
  11171. v-if="
  11172. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11173. (tType == 1 || tType == 4)
  11174. "
  11175. >
  11176. <div class="isTjImg">
  11177. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11178. </div>
  11179. <div>回答正确</div>
  11180. </div>
  11181. <div
  11182. class="answerRight isTj"
  11183. v-if="
  11184. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11185. (tType == 1 || tType == 4)
  11186. "
  11187. >
  11188. <div class="isTjImg">
  11189. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  11190. </div>
  11191. <div>回答错误</div>
  11192. </div>
  11193. </div>
  11194. <div
  11195. v-if="
  11196. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11197. (tType == 1 || tType == 4)
  11198. "
  11199. >
  11200. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11201. <div
  11202. class="cardList"
  11203. v-if="st.rightAnswer"
  11204. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11205. >
  11206. <div class="cardBox">
  11207. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11208. <el-tooltip
  11209. class="item"
  11210. effect="light"
  11211. :content="r"
  11212. placement="top"
  11213. >
  11214. <div class="isCard1">
  11215. <div>{{ r }}</div>
  11216. </div>
  11217. </el-tooltip>
  11218. </div>
  11219. </div>
  11220. <div class="cardAnswerBox">
  11221. 组成句子:{{ st.rightAnswer.join(" ") }}
  11222. </div>
  11223. </div>
  11224. </div>
  11225. </div>
  11226. </div>
  11227. </div>
  11228. <span slot="footer" class="dialog-footer">
  11229. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11230. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11231. >确 定</el-button
  11232. >
  11233. </span>
  11234. </el-dialog>
  11235. <el-dialog
  11236. title="教师提交作业"
  11237. :visible.sync="dialogVisibleWorks"
  11238. :append-to-body="true"
  11239. width="500px"
  11240. :before-close="handleClose"
  11241. class="dialog_change"
  11242. >
  11243. <div class="marginT">
  11244. <div class="w_name">
  11245. 学生姓名:<span>{{ sStudent.student }}</span>
  11246. </div>
  11247. <div>上传文件</div>
  11248. <div
  11249. class="chapter_add"
  11250. @click="addImg($event)"
  11251. v-if="studyJuri[0].cover.length == 0"
  11252. >
  11253. <div class="up_photo">
  11254. <img src="../../assets/uploadImg2.png" alt />
  11255. </div>
  11256. <!-- <input
  11257. type="file"
  11258. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11259. style="display: none"
  11260. @change="beforeUpload1($event, 1)"
  11261. /> -->
  11262. <input
  11263. type="file"
  11264. accept="*"
  11265. style="display: none"
  11266. @change="beforeUpload1($event, 1)"
  11267. />
  11268. </div>
  11269. <!-- capture="camera" -->
  11270. <div
  11271. class="chapter_add"
  11272. style="
  11273. display: flex;
  11274. width: 100%;
  11275. flex-direction: row;
  11276. flex-wrap: wrap;
  11277. justify-content: flex-start;
  11278. padding: 15px 0;
  11279. "
  11280. v-if="studyJuri[0].cover.length > 0"
  11281. >
  11282. <div class="upCover">
  11283. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11284. <img :src="word" alt v-else-if="fileType == 1" />
  11285. <img :src="video" alt v-else-if="fileType == 2" />
  11286. <img :src="word2" alt v-else-if="fileType == 3" />
  11287. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11288. <div class="deleteWord" @click="clean(1)">
  11289. <img src="../../assets/icon/deleteWorks.png" alt />
  11290. </div>
  11291. </div>
  11292. </div>
  11293. </div>
  11294. <div
  11295. class="upload_send"
  11296. @click="addCourseWorksTeacher(taskCount)"
  11297. v-if="!proVisible"
  11298. >
  11299. 提交
  11300. </div>
  11301. </el-dialog>
  11302. <ImgDraw
  11303. :drawShow="drawShow"
  11304. @closeDraw="closeDraw"
  11305. @addImgDraw="addImgDraw"
  11306. :bg="bg"
  11307. ></ImgDraw>
  11308. <el-dialog
  11309. title="表格"
  11310. :visible.sync="dialogVisibleTable"
  11311. :append-to-body="true"
  11312. width="95%"
  11313. :before-close="handleClose"
  11314. class="dialog_diy"
  11315. >
  11316. <el-form>
  11317. <div
  11318. style="
  11319. display: flex;
  11320. align-items: center;
  11321. justify-content: space-between;
  11322. "
  11323. >
  11324. <span>表格内容</span>
  11325. <el-button type="primary" size="small" @click="returnTableText"
  11326. >还原模板</el-button
  11327. >
  11328. </div>
  11329. <Table
  11330. v-model="tableJson.text"
  11331. @change="change"
  11332. v-if="dialogVisibleTable"
  11333. ></Table>
  11334. </el-form>
  11335. <span slot="footer" class="dialog-footer">
  11336. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11337. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11338. </span>
  11339. </el-dialog>
  11340. <el-dialog
  11341. title="表格"
  11342. :visible.sync="dialogVisibleTableTeacher"
  11343. :append-to-body="true"
  11344. width="95%"
  11345. :before-close="handleClose"
  11346. class="dialog_diy"
  11347. >
  11348. <el-form>
  11349. <div class="w_name">
  11350. 学生姓名:<span>{{ sStudent.student }}</span>
  11351. </div>
  11352. <div>表格内容</div>
  11353. <Table
  11354. v-model="tableJson.text"
  11355. @change="change"
  11356. v-if="dialogVisibleTableTeacher"
  11357. ></Table>
  11358. </el-form>
  11359. <span slot="footer" class="dialog-footer">
  11360. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11361. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11362. </span>
  11363. </el-dialog>
  11364. <el-dialog
  11365. title="文档"
  11366. :visible.sync="dialogVisibleWord"
  11367. :append-to-body="true"
  11368. width="95%"
  11369. :before-close="handleClose"
  11370. class="dialog_diy"
  11371. >
  11372. <el-form>
  11373. <div
  11374. style="
  11375. display: flex;
  11376. align-items: center;
  11377. justify-content: space-between;
  11378. "
  11379. >
  11380. <span>文档内容</span>
  11381. <el-button type="primary" size="small" @click="returnWordText"
  11382. >还原模板</el-button
  11383. >
  11384. </div>
  11385. <editor-bar
  11386. v-model="wordJson.text"
  11387. v-if="dialogVisibleWord"
  11388. ></editor-bar>
  11389. </el-form>
  11390. <span slot="footer" class="dialog-footer">
  11391. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11392. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11393. </span>
  11394. </el-dialog>
  11395. <el-dialog
  11396. title="文档"
  11397. :visible.sync="dialogVisibleWordTeacher"
  11398. :append-to-body="true"
  11399. width="95%"
  11400. :before-close="handleClose"
  11401. class="dialog_diy"
  11402. >
  11403. <el-form>
  11404. <div class="w_name">
  11405. 学生姓名:<span>{{ sStudent.student }}</span>
  11406. </div>
  11407. <div>文档内容</div>
  11408. <editor-bar
  11409. v-model="wordJson.text"
  11410. v-if="dialogVisibleWordTeacher"
  11411. ></editor-bar>
  11412. </el-form>
  11413. <span slot="footer" class="dialog-footer">
  11414. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11415. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11416. </span>
  11417. </el-dialog>
  11418. <el-dialog
  11419. title="表格"
  11420. :visible.sync="dialogVisibleTable2"
  11421. :append-to-body="true"
  11422. width="95%"
  11423. :before-close="handleClose"
  11424. class="dialog_diy"
  11425. >
  11426. <el-form>
  11427. <div class="cont" v-html="tableJson.text"></div>
  11428. </el-form>
  11429. <span slot="footer" class="dialog-footer">
  11430. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11431. </span>
  11432. </el-dialog>
  11433. <el-dialog
  11434. title="文档"
  11435. :visible.sync="dialogVisibleTable3"
  11436. :append-to-body="true"
  11437. width="95%"
  11438. :before-close="handleClose"
  11439. class="dialog_diy"
  11440. >
  11441. <el-form>
  11442. <div class="cont" v-html="tableJson.text"></div>
  11443. </el-form>
  11444. <span slot="footer" class="dialog-footer">
  11445. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11446. </span>
  11447. </el-dialog>
  11448. <el-dialog
  11449. title="分组设置"
  11450. :visible.sync="dialogVisibleGroup"
  11451. :append-to-body="true"
  11452. width="95%"
  11453. :before-close="handleClose"
  11454. class="dialog_diy"
  11455. >
  11456. <div v-if="dialogVisibleGroup">
  11457. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11458. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11459. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11460. </div>
  11461. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11462. @click="lockChair">
  11463. 锁定位置
  11464. </div>
  11465. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11466. 解锁位置
  11467. </div> -->
  11468. <div class="group_switch">
  11469. <span>开放选座</span>
  11470. <el-switch
  11471. v-model="islock"
  11472. active-text=""
  11473. class="switchCss"
  11474. @change="lockChair"
  11475. ></el-switch>
  11476. </div>
  11477. <div
  11478. type="primary"
  11479. @click="updateGroup"
  11480. class="returnBtn"
  11481. style="background-color: #225bc7"
  11482. >
  11483. 分组设置
  11484. </div>
  11485. </div>
  11486. <div>
  11487. <div
  11488. class="g_d_box"
  11489. v-if="groupJson.group && groupStudent[toolindex]"
  11490. >
  11491. <div
  11492. class="g_d_group"
  11493. v-for="(g, gindex) in groupJson.group"
  11494. :key="gindex"
  11495. >
  11496. <div class="g_d_group_chair">
  11497. <div v-if="groupJson.number > 1">
  11498. <span
  11499. :class="{
  11500. isChair:
  11501. groupStudent[toolindex][gindex] &&
  11502. groupStudent[toolindex][gindex][0],
  11503. updateChair:
  11504. courseDetail.userid == userid &&
  11505. groupStudent[toolindex][gindex] &&
  11506. groupStudent[toolindex][gindex][0] &&
  11507. groupJson.islock == 2,
  11508. }"
  11509. ><span
  11510. class="updateChairBtn"
  11511. @click="
  11512. updateGroupChair(
  11513. groupStudent[toolindex][gindex] &&
  11514. groupStudent[toolindex][gindex][0]
  11515. )
  11516. "
  11517. >修改</span
  11518. ></span
  11519. ><span>{{
  11520. groupStudent[toolindex][gindex] &&
  11521. groupStudent[toolindex][gindex][0]
  11522. ? groupStudent[toolindex][gindex] &&
  11523. groupStudent[toolindex][gindex][0].name
  11524. : "空位置"
  11525. }}</span>
  11526. </div>
  11527. <div v-if="groupJson.number > 4">
  11528. <span
  11529. :class="{
  11530. isChair:
  11531. groupStudent[toolindex][gindex] &&
  11532. groupStudent[toolindex][gindex][4],
  11533. updateChair:
  11534. courseDetail.userid == userid &&
  11535. groupStudent[toolindex][gindex] &&
  11536. groupStudent[toolindex][gindex][4] &&
  11537. groupJson.islock == 2,
  11538. }"
  11539. ><span
  11540. class="updateChairBtn"
  11541. @click="
  11542. updateGroupChair(
  11543. groupStudent[toolindex][gindex] &&
  11544. groupStudent[toolindex][gindex][4]
  11545. )
  11546. "
  11547. >修改</span
  11548. ></span
  11549. ><span>{{
  11550. groupStudent[toolindex][gindex] &&
  11551. groupStudent[toolindex][gindex][4]
  11552. ? groupStudent[toolindex][gindex] &&
  11553. groupStudent[toolindex][gindex][4].name
  11554. : "空位置"
  11555. }}</span>
  11556. </div>
  11557. <div v-if="groupJson.number > 8">
  11558. <span
  11559. :class="{
  11560. isChair:
  11561. groupStudent[toolindex][gindex] &&
  11562. groupStudent[toolindex][gindex][8],
  11563. updateChair:
  11564. courseDetail.userid == userid &&
  11565. groupStudent[toolindex][gindex] &&
  11566. groupStudent[toolindex][gindex][8] &&
  11567. groupJson.islock == 2,
  11568. }"
  11569. ><span
  11570. class="updateChairBtn"
  11571. @click="
  11572. updateGroupChair(
  11573. groupStudent[toolindex][gindex] &&
  11574. groupStudent[toolindex][gindex][8]
  11575. )
  11576. "
  11577. >修改</span
  11578. ></span
  11579. ><span>{{
  11580. groupStudent[toolindex][gindex] &&
  11581. groupStudent[toolindex][gindex][8]
  11582. ? groupStudent[toolindex][gindex] &&
  11583. groupStudent[toolindex][gindex][8].name
  11584. : "空位置"
  11585. }}</span>
  11586. </div>
  11587. </div>
  11588. <div class="g_d_group_tableBox">
  11589. <div class="g_d_group_chair2">
  11590. <div v-if="groupJson.number > 2">
  11591. <span
  11592. :class="{
  11593. isChair:
  11594. groupStudent[toolindex][gindex] &&
  11595. groupStudent[toolindex][gindex][2],
  11596. updateChair:
  11597. courseDetail.userid == userid &&
  11598. groupStudent[toolindex][gindex] &&
  11599. groupStudent[toolindex][gindex][2] &&
  11600. groupJson.islock == 2,
  11601. }"
  11602. ><span
  11603. class="updateChairBtn"
  11604. @click="
  11605. updateGroupChair(
  11606. groupStudent[toolindex][gindex] &&
  11607. groupStudent[toolindex][gindex][2]
  11608. )
  11609. "
  11610. >修改</span
  11611. ></span
  11612. ><span>{{
  11613. groupStudent[toolindex][gindex] &&
  11614. groupStudent[toolindex][gindex][2]
  11615. ? groupStudent[toolindex][gindex] &&
  11616. groupStudent[toolindex][gindex][2].name
  11617. : "空位置"
  11618. }}</span>
  11619. </div>
  11620. <div v-if="groupJson.number > 6">
  11621. <span
  11622. :class="{
  11623. isChair:
  11624. groupStudent[toolindex][gindex] &&
  11625. groupStudent[toolindex][gindex][6],
  11626. updateChair:
  11627. courseDetail.userid == userid &&
  11628. groupStudent[toolindex][gindex] &&
  11629. groupStudent[toolindex][gindex][6] &&
  11630. groupJson.islock == 2,
  11631. }"
  11632. ><span
  11633. class="updateChairBtn"
  11634. @click="
  11635. updateGroupChair(
  11636. groupStudent[toolindex][gindex] &&
  11637. groupStudent[toolindex][gindex][6]
  11638. )
  11639. "
  11640. >修改</span
  11641. ></span
  11642. ><span>{{
  11643. groupStudent[toolindex][gindex] &&
  11644. groupStudent[toolindex][gindex][6]
  11645. ? groupStudent[toolindex][gindex] &&
  11646. groupStudent[toolindex][gindex][6].name
  11647. : "空位置"
  11648. }}</span>
  11649. </div>
  11650. </div>
  11651. <div class="g_d_group_table">
  11652. <div>
  11653. {{ g.name }}
  11654. </div>
  11655. <div>
  11656. <div
  11657. v-if="
  11658. courseDetail.userid == userid && groupJson.islock == 2
  11659. "
  11660. @click="deleteGroupChair(gindex)"
  11661. >
  11662. 移除组员
  11663. </div>
  11664. <div
  11665. @click="selectGroup(gindex)"
  11666. v-else-if="
  11667. groupStudentUid[toolindex] &&
  11668. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11669. "
  11670. >
  11671. 加入分组
  11672. </div>
  11673. <div
  11674. @click="
  11675. exitGroup(
  11676. groupStudent[toolindex][gindex] &&
  11677. groupStudent[toolindex][gindex][
  11678. groupStudentUid[toolindex][gindex].indexOf(userid)
  11679. ].id
  11680. )
  11681. "
  11682. v-else-if="
  11683. groupStudentUid[toolindex] &&
  11684. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11685. "
  11686. >
  11687. 退出分组
  11688. </div>
  11689. </div>
  11690. </div>
  11691. <div class="g_d_group_chair2">
  11692. <div v-if="groupJson.number > 3">
  11693. <span
  11694. :class="{
  11695. isChair:
  11696. groupStudent[toolindex][gindex] &&
  11697. groupStudent[toolindex][gindex][3],
  11698. updateChair:
  11699. courseDetail.userid == userid &&
  11700. groupStudent[toolindex][gindex] &&
  11701. groupStudent[toolindex][gindex][3] &&
  11702. groupJson.islock == 2,
  11703. }"
  11704. ><span
  11705. class="updateChairBtn"
  11706. @click="
  11707. updateGroupChair(
  11708. groupStudent[toolindex][gindex] &&
  11709. groupStudent[toolindex][gindex][3]
  11710. )
  11711. "
  11712. >修改</span
  11713. ></span
  11714. ><span>{{
  11715. groupStudent[toolindex][gindex] &&
  11716. groupStudent[toolindex][gindex][3]
  11717. ? groupStudent[toolindex][gindex] &&
  11718. groupStudent[toolindex][gindex][3].name
  11719. : "空位置"
  11720. }}</span>
  11721. </div>
  11722. <div v-if="groupJson.number > 7">
  11723. <span
  11724. :class="{
  11725. isChair:
  11726. groupStudent[toolindex][gindex] &&
  11727. groupStudent[toolindex][gindex][7],
  11728. updateChair:
  11729. courseDetail.userid == userid &&
  11730. groupStudent[toolindex][gindex] &&
  11731. groupStudent[toolindex][gindex][7] &&
  11732. groupJson.islock == 2,
  11733. }"
  11734. ><span
  11735. class="updateChairBtn"
  11736. @click="
  11737. updateGroupChair(
  11738. groupStudent[toolindex][gindex] &&
  11739. groupStudent[toolindex][gindex][7]
  11740. )
  11741. "
  11742. >修改</span
  11743. ></span
  11744. ><span>{{
  11745. groupStudent[toolindex][gindex] &&
  11746. groupStudent[toolindex][gindex][7]
  11747. ? groupStudent[toolindex][gindex] &&
  11748. groupStudent[toolindex][gindex][7].name
  11749. : "空位置"
  11750. }}</span>
  11751. </div>
  11752. </div>
  11753. </div>
  11754. <div class="g_d_group_chair">
  11755. <div v-if="groupJson.number > 1">
  11756. <span
  11757. :class="{
  11758. isChair:
  11759. groupStudent[toolindex][gindex] &&
  11760. groupStudent[toolindex][gindex][1],
  11761. updateChair:
  11762. courseDetail.userid == userid &&
  11763. groupStudent[toolindex][gindex] &&
  11764. groupStudent[toolindex][gindex][1] &&
  11765. groupJson.islock == 2,
  11766. }"
  11767. ><span
  11768. class="updateChairBtn"
  11769. @click="
  11770. updateGroupChair(
  11771. groupStudent[toolindex][gindex] &&
  11772. groupStudent[toolindex][gindex][1]
  11773. )
  11774. "
  11775. >修改</span
  11776. ></span
  11777. ><span>{{
  11778. groupStudent[toolindex][gindex] &&
  11779. groupStudent[toolindex][gindex][1]
  11780. ? groupStudent[toolindex][gindex] &&
  11781. groupStudent[toolindex][gindex][1].name
  11782. : "空位置"
  11783. }}</span>
  11784. </div>
  11785. <div v-if="groupJson.number > 5">
  11786. <span
  11787. :class="{
  11788. isChair:
  11789. groupStudent[toolindex][gindex] &&
  11790. groupStudent[toolindex][gindex][5],
  11791. updateChair:
  11792. courseDetail.userid == userid &&
  11793. groupStudent[toolindex][gindex] &&
  11794. groupStudent[toolindex][gindex][5] &&
  11795. groupJson.islock == 2,
  11796. }"
  11797. ><span
  11798. class="updateChairBtn"
  11799. @click="
  11800. updateGroupChair(
  11801. groupStudent[toolindex][gindex] &&
  11802. groupStudent[toolindex][gindex][5]
  11803. )
  11804. "
  11805. >修改</span
  11806. ></span
  11807. ><span>{{
  11808. groupStudent[toolindex][gindex] &&
  11809. groupStudent[toolindex][gindex][5]
  11810. ? groupStudent[toolindex][gindex] &&
  11811. groupStudent[toolindex][gindex][5].name
  11812. : "空位置"
  11813. }}</span>
  11814. </div>
  11815. <div v-if="groupJson.number > 9">
  11816. <span
  11817. :class="{
  11818. isChair:
  11819. groupStudent[toolindex][gindex] &&
  11820. groupStudent[toolindex][gindex][9],
  11821. updateChair:
  11822. courseDetail.userid == userid &&
  11823. groupStudent[toolindex][gindex] &&
  11824. groupStudent[toolindex][gindex][9] &&
  11825. groupJson.islock == 2,
  11826. }"
  11827. ><span
  11828. class="updateChairBtn"
  11829. @click="
  11830. updateGroupChair(
  11831. groupStudent[toolindex][gindex] &&
  11832. groupStudent[toolindex][gindex][9]
  11833. )
  11834. "
  11835. >修改</span
  11836. ></span
  11837. ><span>{{
  11838. groupStudent[toolindex][gindex] &&
  11839. groupStudent[toolindex][gindex][9]
  11840. ? groupStudent[toolindex][gindex] &&
  11841. groupStudent[toolindex][gindex][9].name
  11842. : "空位置"
  11843. }}</span>
  11844. </div>
  11845. </div>
  11846. </div>
  11847. </div>
  11848. </div>
  11849. </div>
  11850. <span slot="footer" class="dialog-footer">
  11851. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11852. </span>
  11853. </el-dialog>
  11854. <el-dialog
  11855. title="分组设置"
  11856. :visible.sync="dialogVisibleGroup2"
  11857. :append-to-body="true"
  11858. width="650px"
  11859. :before-close="handleClose"
  11860. class="dialog_diy"
  11861. >
  11862. <div class="groupBox">
  11863. <div v-if="groupJson2.group" class="groupContent">
  11864. <div class="groupTitle">请设置小组数量及名称</div>
  11865. <div
  11866. v-for="(item, index) in groupJson2.group"
  11867. :key="index"
  11868. class="groupName"
  11869. >
  11870. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11871. <el-input
  11872. v-model="item.name"
  11873. placeholder="请输入名称..."
  11874. style="width: 250px"
  11875. ></el-input>
  11876. <!-- <div class="groupBtn">
  11877. <el-button type="primary" size="small" @click="addGroup(index)">
  11878. 添加</el-button>
  11879. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11880. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11881. </div> -->
  11882. </div>
  11883. </div>
  11884. <div class="groupContent">
  11885. <div class="groupTitle">请设置每组人数</div>
  11886. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11887. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11888. <el-input
  11889. v-model="groupJson2.number"
  11890. style="width: 150px"
  11891. placeholder="请输入2-10的数字"
  11892. @change="numberPan"
  11893. ></el-input>
  11894. </div>
  11895. </div>
  11896. <span slot="footer" class="dialog-footer">
  11897. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11898. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11899. </span>
  11900. </el-dialog>
  11901. <el-dialog
  11902. title="作业提交"
  11903. :visible.sync="dialogVisibleGroupWork"
  11904. :append-to-body="true"
  11905. width="500px"
  11906. :before-close="handleClose"
  11907. class="dialog_change"
  11908. >
  11909. <div class="marginT">
  11910. <div>上传文件</div>
  11911. <div
  11912. class="chapter_add"
  11913. @click="addImg($event)"
  11914. v-if="studyJuri[0].cover.length == 0"
  11915. >
  11916. <div class="up_photo">
  11917. <img src="../../assets/icon/uploadImg.png" alt />
  11918. </div>
  11919. <!-- <input
  11920. type="file"
  11921. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11922. style="display: none"
  11923. @change="beforeUpload1($event, 1)"
  11924. /> -->
  11925. <input
  11926. type="file"
  11927. accept="*"
  11928. style="display: none"
  11929. @change="beforeUpload1($event, 1)"
  11930. />
  11931. </div>
  11932. <!-- capture="camera" -->
  11933. <div
  11934. class="chapter_add"
  11935. style="
  11936. display: flex;
  11937. width: 100%;
  11938. flex-direction: row;
  11939. flex-wrap: wrap;
  11940. justify-content: flex-start;
  11941. padding: 15px 0;
  11942. "
  11943. v-if="studyJuri[0].cover.length > 0"
  11944. >
  11945. <div class="upCover">
  11946. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11947. <img :src="word" alt v-else-if="fileType == 1" />
  11948. <img :src="video" alt v-else-if="fileType == 2" />
  11949. <img :src="word2" alt v-else-if="fileType == 3" />
  11950. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11951. <div class="deleteWord" @click="clean(1)">
  11952. <img src="../../assets/icon/deleteWorks.png" alt />
  11953. </div>
  11954. </div>
  11955. </div>
  11956. </div>
  11957. <div
  11958. class="upload_send"
  11959. @click="addCourseWorks2(taskCount)"
  11960. v-if="!proVisible"
  11961. >
  11962. 提交
  11963. </div>
  11964. </el-dialog>
  11965. <el-dialog
  11966. title="修改分组"
  11967. :visible.sync="dialogVisibleUpdateGroup"
  11968. :append-to-body="true"
  11969. width="350px"
  11970. :before-close="handleClose"
  11971. class="dialog_diy"
  11972. >
  11973. <div>
  11974. <h2>
  11975. {{ this.updateGroupUser.name }}
  11976. </h2>
  11977. <div style="color: rgb(171 171 171); margin-top: 10px">
  11978. 请选择要进入的分组
  11979. </div>
  11980. <el-radio-group v-model="checkChair">
  11981. <el-radio
  11982. style="display: block; margin-top: 20px"
  11983. v-for="(item, index) in updateGroupArray"
  11984. :label="item.label"
  11985. :key="index"
  11986. >{{ item.name }}</el-radio
  11987. >
  11988. </el-radio-group>
  11989. </div>
  11990. <span slot="footer" class="dialog-footer">
  11991. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11992. <el-button type="primary" @click="updateChair">确定</el-button>
  11993. </span>
  11994. </el-dialog>
  11995. <el-dialog
  11996. title="移除组员"
  11997. :visible.sync="dialogVisibleDeleteGroup"
  11998. :append-to-body="true"
  11999. width="350px"
  12000. :before-close="handleClose"
  12001. class="dialog_diy"
  12002. >
  12003. <div>
  12004. <h2>
  12005. {{ this.deleteGroupArray.name }}
  12006. </h2>
  12007. <div style="color: rgb(171 171 171); margin-top: 10px">
  12008. 请选择要删除的组员
  12009. </div>
  12010. <el-checkbox-group v-model="checkDeleteGroup">
  12011. <el-checkbox
  12012. style="display: flex; margin-top: 20px"
  12013. v-for="(item, index) in deleteGroupUser"
  12014. :label="item.userid"
  12015. :key="index"
  12016. >{{ item.name }}</el-checkbox
  12017. >
  12018. </el-checkbox-group>
  12019. </div>
  12020. <span slot="footer" class="dialog-footer">
  12021. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12022. <el-button type="primary" @click="deleteChair">确定</el-button>
  12023. </span>
  12024. </el-dialog>
  12025. <el-dialog
  12026. title="批量上传"
  12027. :visible.sync="dialogVisiblePl"
  12028. :append-to-body="true"
  12029. width="700px"
  12030. :before-close="handleClose"
  12031. class="dialog_change"
  12032. >
  12033. <div class="marginT">
  12034. <div class="plworkBox">
  12035. <div
  12036. class="chapter_add"
  12037. style="
  12038. display: flex;
  12039. width: 150px;
  12040. flex-direction: row;
  12041. flex-wrap: wrap;
  12042. justify-content: flex-start;
  12043. margin: 0 10px 10px 0;
  12044. "
  12045. v-for="(item, index) in plworkFile"
  12046. :key="index"
  12047. >
  12048. <div class="upCover2">
  12049. <img
  12050. :src="item.url"
  12051. alt
  12052. v-if="item.fileType == 1"
  12053. @click="previewImg(item.url)"
  12054. />
  12055. <img :src="word" alt v-else-if="item.fileType == 4" />
  12056. <img :src="video" alt v-else />
  12057. <!-- <span class="picName">{{ item.name }}</span> -->
  12058. <!-- <el-input
  12059. v-model="item.username"
  12060. placeholder="请输入学生名字"
  12061. style="margin-top: 10px"
  12062. ></el-input> -->
  12063. <div
  12064. class="pl_select_box"
  12065. @click="
  12066. getUpdateMore(true, checkUpload(), item.username, index)
  12067. "
  12068. >
  12069. {{ getSName(item.username) }}
  12070. </div>
  12071. <!-- <el-select
  12072. style="margin-top: 10px"
  12073. v-model="item.username"
  12074. filterable
  12075. allow-create
  12076. placeholder="请选择学生"
  12077. >
  12078. <el-option
  12079. v-for="item1 in checkUpload()"
  12080. :key="item1.userid"
  12081. :label="item1.name ? item1.name : item1.username"
  12082. :value="item1.userid"
  12083. >
  12084. </el-option>
  12085. </el-select> -->
  12086. <div class="deleteWord" @click="clean2(index)">
  12087. <img src="../../assets/icon/deleteWorks.png" alt />
  12088. </div>
  12089. </div>
  12090. </div>
  12091. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12092. <div class="up_photo2">
  12093. <img src="../../assets/icon/plwork.png" alt />
  12094. <span>点击上传文件</span>
  12095. </div>
  12096. <input
  12097. type="file"
  12098. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12099. multiple="multiple"
  12100. style="display: none"
  12101. @change="beforeUpload3($event, 6)"
  12102. />
  12103. </div>
  12104. </div>
  12105. </div>
  12106. <!-- capture="camera" -->
  12107. <div
  12108. class="upload_send"
  12109. @click="addCourseWorksPl(taskCount)"
  12110. v-if="!proVisible2"
  12111. >
  12112. 提交
  12113. </div>
  12114. </el-dialog>
  12115. <el-dialog
  12116. title="修改名称"
  12117. :visible.sync="dialogVisibleSname"
  12118. width="500px"
  12119. :before-close="handleClose"
  12120. class="dialog_diy"
  12121. center
  12122. >
  12123. <div
  12124. style="
  12125. text-align: center;
  12126. display: flex;
  12127. align-items: center;
  12128. justify-content: center;
  12129. "
  12130. >
  12131. <span class="tian1">名称</span>
  12132. <div
  12133. class="pl_select_box"
  12134. style="margin-left: 10px; width: 200px"
  12135. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12136. >
  12137. {{ getSName(worksSName) }}
  12138. </div>
  12139. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12140. placeholder="请选择学生">
  12141. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12142. :value="item.userid">
  12143. </el-option>
  12144. </el-select> -->
  12145. <!-- <el-input
  12146. v-model="worksSName"
  12147. style="width: 250px; margin: 15px 0px"
  12148. ></el-input> -->
  12149. </div>
  12150. <span slot="footer" class="dialog-footer">
  12151. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12152. <el-button type="primary" @click="updateName">确 定</el-button>
  12153. </span>
  12154. </el-dialog>
  12155. <el-dialog
  12156. title="英语写作"
  12157. :visible.sync="engDialogVisible"
  12158. :append-to-body="true"
  12159. width="800px"
  12160. :before-close="handleClose"
  12161. class="dialog_diy"
  12162. >
  12163. <onlineWrite
  12164. v-if="engDialogVisible"
  12165. :englishList="englishList"
  12166. :myAnswerList1="myAnswerList1"
  12167. ref="engJson"
  12168. ></onlineWrite>
  12169. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12170. <el-button @click="engDialogVisible = false">取 消</el-button>
  12171. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12172. </span>
  12173. </el-dialog>
  12174. <el-dialog
  12175. title="英语写作"
  12176. :visible.sync="engUpdateDialogVisible"
  12177. :append-to-body="true"
  12178. width="800px"
  12179. :before-close="handleClose"
  12180. class="dialog_diy fullStyle"
  12181. >
  12182. <div class="engUpBox">
  12183. <div class="engUpTop">
  12184. <div class="engTitle">
  12185. <div>作文题目:</div>
  12186. <div>{{ englishList1.engTitle }}</div>
  12187. </div>
  12188. <div class="engText">
  12189. <div>作文内容:</div>
  12190. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12191. </div>
  12192. </div>
  12193. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12194. <div class="oldBox">
  12195. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12196. <div class="oldText">
  12197. <div class="detailBox">
  12198. <div class="oldDetail">
  12199. <div>标题:</div>
  12200. <div>{{ oldEnglishJson.engTitle }} </div>
  12201. </div>
  12202. <div class="oldDetail1">
  12203. <div>正文:</div>
  12204. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12205. </div>
  12206. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12207. <div>图片:</div>
  12208. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12209. </div>
  12210. </div>
  12211. </div>
  12212. </div>
  12213. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12214. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12215. <div class="oldText">
  12216. <div class="detailBox" style="position: relative;">
  12217. <div class="oldDetail">
  12218. <div>标题:</div>
  12219. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12220. <div v-else v-html="newEnglishList.engTitle"></div>
  12221. </div>
  12222. <div class="oldDetail">
  12223. <div>正文:</div>
  12224. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12225. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12226. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12227. </div>
  12228. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12229. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12230. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12231. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12232. </div>
  12233. </div>
  12234. </div>
  12235. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12236. <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">
  12237. <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>
  12238. <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>
  12239. </div>
  12240. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12241. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12242. <div class="detailBox" style="position: relative;">
  12243. <div class="oldDetail">
  12244. <div>标题:</div>
  12245. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12246. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12247. </div>
  12248. <div class="oldDetail">
  12249. <div>正文:</div>
  12250. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12251. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12252. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  12253. </div>
  12254. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12255. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12256. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12257. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12258. </div>
  12259. </div>
  12260. <div class="oldText" v-else-if="newEngIndex == -1">
  12261. <div class="detailBox" style="position: relative;">
  12262. <div class="oldDetail">
  12263. <div>标题:</div>
  12264. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12265. <div v-else v-html="newEnglishList.engTitle"></div>
  12266. </div>
  12267. <div class="oldDetail">
  12268. <div>正文:</div>
  12269. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12270. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12271. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  12272. </div>
  12273. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12274. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12275. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12276. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12277. </div>
  12278. </div>
  12279. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  12280. <div class="detailBox" style="position: relative;">
  12281. <div class="oldDetail">
  12282. <div>标题:</div>
  12283. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12284. <div v-else>
  12285. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  12286. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12287. </div>
  12288. </div>
  12289. <div class="oldDetail">
  12290. <div>正文:</div>
  12291. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  12292. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12293. <div v-else>
  12294. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12295. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12296. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  12297. </div>
  12298. </div>
  12299. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12300. <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>
  12301. <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>
  12302. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12303. </div>
  12304. </div>
  12305. </div>
  12306. </div>
  12307. </div>
  12308. <span slot="footer" class="dialog-footer">
  12309. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12310. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12311. </span>
  12312. </el-dialog>
  12313. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12314. <interVideo
  12315. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12316. :videoJson="videoJson"
  12317. :userid="userid"
  12318. :id="id"
  12319. :courseType="courseType"
  12320. :taskCount="taskCount"
  12321. :toolindex="toolindex"
  12322. :videoType="videoType"
  12323. ></interVideo>
  12324. <UpdateMore
  12325. :dialogVisibleMember.sync="dialogVisibleMember"
  12326. :cList="uploadStudentJuri"
  12327. :userid="userid"
  12328. :searchTN="worksSName2"
  12329. @setPlname="setPlname"
  12330. ></UpdateMore>
  12331. <!-- <wordCloud
  12332. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12333. :data="wordCloudData"
  12334. ></wordCloud> -->
  12335. <el-dialog
  12336. title="词云"
  12337. :visible.sync="dialogVisibleWordCloud"
  12338. width="30%"
  12339. class="dialog_diy"
  12340. :before-close="handleClose">
  12341. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  12342. </el-dialog>
  12343. <el-dialog
  12344. title="挑人"
  12345. :visible.sync="dialogVisiblePickPeople"
  12346. width="650px"
  12347. :before-close="handleClose"
  12348. class="dialog_diy"
  12349. center
  12350. >
  12351. <div class="pick_box">
  12352. <div
  12353. class="noWorksName"
  12354. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12355. v-for="(item, index) in uploadStudentJuri"
  12356. :key="index"
  12357. @click="pickStudent(item)"
  12358. >
  12359. {{ item.name }}
  12360. </div>
  12361. </div>
  12362. </el-dialog>
  12363. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12364. :englishVoiceJson='englishVoiceJson'
  12365. :userid="userid"
  12366. :id="id"
  12367. :courseType="courseType"
  12368. :taskCount="taskCount"
  12369. :toolindex="toolindex"
  12370. @selectSWorks="selectSWorks"
  12371. @selectStudent="selectStudent"
  12372. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12373. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12374. :userid="userid"
  12375. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12376. :commentDetail="commentDetail"
  12377. :courseDetail="courseDetail"
  12378. :wScore="wScore"
  12379. :scoreDetail="scoreDetail"
  12380. @selectSWorks="selectSWorks"
  12381. @selectStudent="selectStudent"></checkEnglishVoice>
  12382. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  12383. <choseWorksDetailDialog
  12384. ref="choseWorksDetailDialogRef"
  12385. :worksStudentData="worksStudent"
  12386. :noWorksSData="noWorksS"
  12387. :chapInfoListData="chapInfoList"
  12388. :courseType="courseType"
  12389. :taskCount="taskCount"
  12390. :tType="tType"
  12391. :sIsOpen="sIsOpen"
  12392. :courseDetail="courseDetail"
  12393. :groupStudent2="groupStudent"
  12394. :groupStudentUid2="groupStudentUid"
  12395. :oid="oid"
  12396. :org="org"
  12397. @getCourseDetail="getCourseDetail"
  12398. @selectSLook="selectSLook"
  12399. @selectSWorks="selectSWorks"
  12400. @selectStudent="selectStudent"
  12401. @deleteWorks="deleteWorks"
  12402. @openTools="openTools"
  12403. @openWord="openWord"
  12404. @openScore="openScore"
  12405. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  12406. />
  12407. <el-dialog
  12408. :visible.sync="confirmOpenDig"
  12409. width="500px"
  12410. :modal="false"
  12411. class="confirmOpenDigCss dialog_diyCopy"
  12412. :before-close="handleClose">
  12413. <div style="display: flex;align-items: center;">
  12414. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  12415. <span>“{{ courseDetail.title }}”开课啦</span>
  12416. </div>
  12417. <div style="margin: 20px 0 35px;">
  12418. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  12419. <div>要认真听讲哦~</div>
  12420. </div>
  12421. <div style="text-align: center;">
  12422. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  12423. </div>
  12424. </el-dialog>
  12425. <appStoreC ref="appStoreC"
  12426. :sStudent="sStudent"
  12427. :courseType="courseType"
  12428. :taskCount="taskCount"
  12429. :toolindex="toolindex"
  12430. @selectSWorks="selectSWorks"
  12431. @selectStudent="selectStudent"
  12432. ></appStoreC>
  12433. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  12434. </div>
  12435. </template>
  12436. <script>
  12437. import "../../common/aws-sdk-2.235.1.min.js";
  12438. // import pdf from "../components/pdf3";
  12439. import pdf from "../components/vpdf";
  12440. import AskStatic from "../components/askStatic";
  12441. import AskStatic2 from "../components/askStatic2";
  12442. import AnswerData2 from "../components/answerData2";
  12443. import AnswerData from "../components/answerData";
  12444. import EditorBar from "../tools/wangEnduit.vue";
  12445. import Table from "../tools/table.vue";
  12446. import Time from "../tools/time.vue";
  12447. import Mind from "../tools/jsmind.vue";
  12448. import Sunburst from "../tools/sunburst";
  12449. import SeeBoard from "../tools/seeBoard";
  12450. import * as imageConversion from "image-conversion";
  12451. import Audio from "../components/audio.vue";
  12452. import ImgDraw from "../tools/imgDraw/imgDraw";
  12453. import { Empty } from "element-ui";
  12454. import RecordRTC from "recordrtc";
  12455. import interVideo from "../interVideo/index.vue";
  12456. import UpdateMore from "../updateMore/updateMore.vue";
  12457. import wordCloud from "../wordCloud/index.vue";
  12458. import axios from "axios";
  12459. import JSZip from "jszip";
  12460. import FileSaver from "file-saver";
  12461. import onlineWrite from "./commpont/onlineWrite";
  12462. import englishEva from "../components/englishEva";
  12463. import * as Diff from 'diff'
  12464. import EnglishVoice from '../EnglishVoice2/index.vue'
  12465. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  12466. import correctText from '../components/correctText.vue'
  12467. import scoreItem from '../scoreList/scoreItem.vue'
  12468. import scoreZong from '../scoreZong/index.vue'
  12469. import classRoomHelper from '../classRoomHelper/index.vue'
  12470. import MarkdownIt from "markdown-it";
  12471. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  12472. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  12473. import { v4 as uuidv4 } from "uuid";
  12474. var OpenCC = require("opencc-js");
  12475. import choseWordCloud from '../components/choseWordCloud.vue'
  12476. import appStoreC from "../components/appStoreC.vue";
  12477. import cocoFlowDia from "../components/cocoFlowDia.vue";
  12478. import { myMixin } from "@/mixins/mixin.js"
  12479. import { tools as toolsList } from "@/common/tools2.js";
  12480. let converter = OpenCC.Converter({
  12481. from: "hk",
  12482. to: "cn"
  12483. });
  12484. const getFile = (url) => {
  12485. return new Promise((resolve, reject) => {
  12486. var credentials = {
  12487. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12488. secretAccessKey: "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",
  12489. }; //秘钥形式的登录上传
  12490. window.AWS.config.update(credentials);
  12491. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12492. let url2 = url;
  12493. let _url2 = "";
  12494. if (
  12495. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12496. ) {
  12497. _url2 = url2.split(
  12498. "https://view.officeapps.live.com/op/view.aspx?src="
  12499. )[1];
  12500. } else {
  12501. _url2 = url2;
  12502. }
  12503. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12504. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12505. var params = {
  12506. Bucket: "ccrb",
  12507. Key: name
  12508. };
  12509. s3.getObject(params, function (err, data) {
  12510. if (err) {
  12511. console.log(err, err.stack)
  12512. resolve({ data: 1 });
  12513. }else {
  12514. resolve({ data: data.Body });
  12515. console.log(data);
  12516. } // sxuccessful response
  12517. });
  12518. // axios({
  12519. // method: "get",
  12520. // url,
  12521. // responseType: "blob",
  12522. // })
  12523. // .then((data) => {
  12524. // resolve({ data: data.data });
  12525. // })
  12526. // .catch((error) => {
  12527. // resolve({ data: 1 });
  12528. // // reject(error.toString());
  12529. // });
  12530. });
  12531. };
  12532. export default {
  12533. mixins: [ myMixin ],
  12534. components: {
  12535. choseWordCloud,
  12536. EditorBar,
  12537. Time,
  12538. pdf,
  12539. AskStatic,
  12540. AskStatic2,
  12541. Mind,
  12542. Sunburst,
  12543. SeeBoard,
  12544. AnswerData2,
  12545. AnswerData,
  12546. Audio,
  12547. ImgDraw,
  12548. Table,
  12549. interVideo,
  12550. UpdateMore,
  12551. wordCloud,
  12552. onlineWrite,
  12553. englishEva,
  12554. EnglishVoice,
  12555. checkEnglishVoice,
  12556. correctText,
  12557. scoreItem,
  12558. classRoomHelper,
  12559. scoreZong,
  12560. statisticalAnalysis,
  12561. choseWorksDetailDialog,
  12562. appStoreC,
  12563. cocoFlowDia
  12564. },
  12565. data() {
  12566. return {
  12567. toolsList: toolsList,
  12568. wordCloudKey: 0,
  12569. bg: null,
  12570. drawShow: false,
  12571. dialogVisible: false,
  12572. dialogVisiblePl: false,
  12573. commentDialogVisible: false,
  12574. dialogVisibleMember: false,
  12575. dialogVisibleWordCloud: false,
  12576. videoVisible: false,
  12577. isStar: false,
  12578. studentEvalDialogVisible: false,
  12579. studentEvalDialogVisibleTeacher: false,
  12580. dialogVisibleSelect: false,
  12581. dialogVisibleSelectTeacher: false,
  12582. dialogVisibleScore: false,
  12583. dialogVisibleENScore: false,
  12584. dialogVisibleSentence: false,
  12585. dialogVisibleSentenceTeacher: false,
  12586. dialogVisibleSentence1: false,
  12587. dialogVisibleWorks: false,
  12588. dialogVisibleTable: false,
  12589. dialogVisibleTableTeacher: false,
  12590. dialogVisibleWord: false,
  12591. dialogVisibleWordTeacher: false,
  12592. dialogVisibleTable2: false,
  12593. dialogVisibleTable3: false,
  12594. dialogVisibleGroupWork: false,
  12595. dialogVisibleUpdateGroup: false,
  12596. dialogVisibleDeleteGroup: false,
  12597. dialogVisibleSname: false,
  12598. dialogVisibleVideo: false,
  12599. dialogVisiblePickPeople: false,
  12600. worksSName: "",
  12601. classJuri: [],
  12602. uploadStudentJuri: [],
  12603. uploadCid: "",
  12604. snameWid: "",
  12605. sStudent: {},
  12606. sTool: "",
  12607. bzText: "",
  12608. commentDetail: [],
  12609. selectAnswer: [],
  12610. videoDetail: {},
  12611. selectJson: {},
  12612. eScore: { eBzText: "", eStar: [] },
  12613. id: this.$route.query.courseId,
  12614. userid: this.$route.query.userid,
  12615. classId: this.$route.query.cid,
  12616. // courseTypeLine: this.$route.query.type,
  12617. oid: this.$route.query.oid,
  12618. org: this.$route.query.org,
  12619. tType: this.$route.query.tType,
  12620. courseType: this.$route.query.type,
  12621. screenType: this.$route.query.screenType,
  12622. tcid2: this.$route.query.tcid,
  12623. tcid: "",
  12624. pptImgUrl: "",
  12625. pptImgUrl1: "",
  12626. commentText: "",
  12627. full: false,
  12628. sIsOpen: false,
  12629. IsLookOpen: false,
  12630. IsFollow: false,
  12631. pzDialog: false,
  12632. contentDialog: false,
  12633. mlDialog: false,
  12634. type: 1,
  12635. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12636. sentenceList1: [],
  12637. tableJson: [],
  12638. tableJsonO: [],
  12639. wordJson: [],
  12640. wordJsonO: [],
  12641. vedio: [],
  12642. text: [],
  12643. textList: [],
  12644. line: [],
  12645. lineList: [],
  12646. chapTools: [],
  12647. chapToolList: [],
  12648. file: [],
  12649. fileC: [],
  12650. vedioTime: [],
  12651. upToolImg: "",
  12652. preTime: 0,
  12653. rateList: {
  12654. ca: 0,
  12655. },
  12656. rateParams: [],
  12657. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12658. studyJuri: [
  12659. {
  12660. content: "",
  12661. cover: [],
  12662. upVedio: [],
  12663. upFile: [],
  12664. },
  12665. ],
  12666. isClose: 0,
  12667. plworkFile: [],
  12668. mr: require("../../assets/vedioPic.png"),
  12669. word: require("../../assets/icon/isWord.png"),
  12670. word2: require("../../assets/icon/word2.png"),
  12671. video: require("../../assets/icon/isVideo.png"),
  12672. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12673. likes: require("../../assets/icon/comment/likes.png"),
  12674. scoreImg: require("../../assets/score.png"),
  12675. courseDetail: {},
  12676. reply: "",
  12677. isSelect: false,
  12678. chapInfo: [],
  12679. chapInfoList: [],
  12680. taskCount: 0,
  12681. imgList: [],
  12682. noImgList: [],
  12683. pzList: [],
  12684. timeWorkList: [],
  12685. PlTextList: [
  12686. "Excellent!",
  12687. "nice!",
  12688. "很有创意!",
  12689. "还不错哦~",
  12690. "继续努力哦~",
  12691. ],
  12692. isClickNav: "",
  12693. navId: "",
  12694. playerOptions: {
  12695. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12696. autoplay: false, //如果true,浏览器准备好时开始回放。
  12697. muted: false, // 默认情况下将会消除任何音频。
  12698. loop: false, // 导致视频一结束就重新开始。
  12699. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12700. language: "zh-CN",
  12701. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12702. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12703. sources: [
  12704. {
  12705. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12706. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12707. },
  12708. ],
  12709. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12710. // poster: dataRes.imgUrl, //你的封面地址
  12711. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12712. controlBar: {
  12713. timeDivider: true, //当前时间和持续时间的分隔符
  12714. durationDisplay: true, //显示持续时间
  12715. remainingTimeDisplay: false, //是否显示剩余时间功能
  12716. fullscreenToggle: true, //全屏按钮
  12717. },
  12718. },
  12719. playerOptions1: {
  12720. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12721. autoplay: false, //如果true,浏览器准备好时开始回放。
  12722. muted: false, // 默认情况下将会消除任何音频。
  12723. loop: false, // 导致视频一结束就重新开始。
  12724. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12725. language: "zh-CN",
  12726. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12727. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12728. sources: [
  12729. {
  12730. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12731. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12732. },
  12733. ],
  12734. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12735. // poster: dataRes.imgUrl, //你的封面地址
  12736. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12737. controlBar: {
  12738. timeDivider: true, //当前时间和持续时间的分隔符
  12739. durationDisplay: true, //显示持续时间
  12740. remainingTimeDisplay: false, //是否显示剩余时间功能
  12741. fullscreenToggle: true, //全屏按钮
  12742. },
  12743. },
  12744. playerO: {},
  12745. noneBtnImg: false,
  12746. proVisible: false,
  12747. proVisible2: false,
  12748. progress: 0,
  12749. isFinishSize: 0,
  12750. isAllSize: 0,
  12751. questionAnswer: "",
  12752. answerQ: "", //问答标题
  12753. rateJson: [],
  12754. wbCount: 0,
  12755. wordCount: 0,
  12756. mindCount: 0,
  12757. askCount: 0,
  12758. noteCount: 0,
  12759. mindNetWorkCount: 0,
  12760. libraryCount: 0,
  12761. workCount: 0,
  12762. timeCount: 0,
  12763. answerCount: 0,
  12764. trainCount: 0,
  12765. evalCount: 0,
  12766. dialogImageUrl: "",
  12767. pictureDialog: false,
  12768. toolTypeList: [],
  12769. dialogVisible1: false,
  12770. dialogVisible2: false,
  12771. dialogVisible3: false,
  12772. dialogVisible6: false,
  12773. dialogVisible4: false,
  12774. isNoHomeWork: false,
  12775. dialogVisible5: false,
  12776. dialogVisible5Teacher: false,
  12777. dialogVisibleChoice: false,
  12778. dialogVisibleChoiceTeacher: false,
  12779. answerDialogVisible: false,
  12780. answerDialogVisibleTeacher: false,
  12781. juriVisible: false,
  12782. timeDialogVisible: false,
  12783. replyDialogVisible: false,
  12784. toolDialogVisible: false,
  12785. engDialogVisible: false,
  12786. engUpdateDialogVisible:false,
  12787. engEvaDialogVisible: false,
  12788. evaEngJson: {
  12789. teacherJson: {},
  12790. studentJson: {},
  12791. message: {},
  12792. },
  12793. isNoUserid:false,
  12794. engListLength:0,
  12795. engWid:"",
  12796. newEnglishList:{
  12797. engTitle:"",
  12798. engText:"",
  12799. },
  12800. newEnglishList1:[],
  12801. oldEnglishJson:{},
  12802. oldEnglishJson1:{},
  12803. englishList1:{},
  12804. englishList:{},
  12805. myAnswerList1:{},
  12806. topHeight:0,
  12807. newEngIndex:-1,
  12808. englishToolIndex:0,
  12809. userMes:{},
  12810. englishToolIndex:0,
  12811. replyIndex: 0,
  12812. replyPid: "",
  12813. radio: [],
  12814. isAsk: false,
  12815. askJson: {
  12816. askCount: 1,
  12817. askTitle: "",
  12818. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12819. },
  12820. testJson: {},
  12821. englishList: {},
  12822. topHeight:0,
  12823. checkJson: [],
  12824. askList: [],
  12825. answerList: [],
  12826. navList: [],
  12827. addPzDialog: false,
  12828. pzConText: "",
  12829. worksStudent: [],
  12830. isCloseList: [],
  12831. workStudent: [],
  12832. groupStudent: [],
  12833. groupStudentUid: [],
  12834. noWorksS: [],
  12835. isWorksS: [],
  12836. noWorksStudent: [],
  12837. toolindex: 0,
  12838. toolDetailIndex: null,
  12839. groupIndex: 0,
  12840. workTypeB: false,
  12841. workTypeC: false,
  12842. isAnswer: false,
  12843. isHovered: false,
  12844. isHovered1: false,
  12845. isHovered2: false,
  12846. commentTagShow:0,
  12847. timer: null,
  12848. timer2: null,
  12849. opertimer: null,
  12850. showType: '',
  12851. fileType: 0,
  12852. showPDF: false,
  12853. noteName: "",
  12854. evaJuri: [],
  12855. evalua: "",
  12856. eTitle: "",
  12857. eName: "",
  12858. eJson: {},
  12859. fid: "", //一级
  12860. sid: "", //二级
  12861. tid: "", //二级
  12862. typeMode: 1,
  12863. eJSONNum: 0,
  12864. Etype: 1,
  12865. data: {
  12866. meta: {
  12867. name: "example",
  12868. author: "dd@163.com",
  12869. version: "0.2",
  12870. },
  12871. format: "node_array",
  12872. data: [{ id: "root", isroot: true, topic: "" }],
  12873. },
  12874. fullDialogVisible: false,
  12875. fulltype: "",
  12876. fullUrl: "",
  12877. commentIndexJson: {},
  12878. Stbodywidth: 0,
  12879. ispzType: 0,
  12880. pzType: 1,
  12881. wScore: 0,
  12882. scoreDetail: "",
  12883. videoStart: false,
  12884. recorder: null,
  12885. groupJson: {},
  12886. islock: false,
  12887. groupJson2: {},
  12888. dialogVisibleGroup: false,
  12889. dialogVisibleGroup2: false,
  12890. updateGroupArray: [],
  12891. updateGroupUser: {},
  12892. deleteGroupUser: [],
  12893. deleteGroupArray: {},
  12894. checkChair: "",
  12895. checkDeleteGroup: [],
  12896. inviteCode: "",
  12897. courseGroupStudent: [],
  12898. courseGroupStudentUid: [],
  12899. courseGroup: {},
  12900. isGroup: false,
  12901. toolIndex: null,
  12902. tool: {},
  12903. isWorkTool: [
  12904. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12905. ], //, 40
  12906. videoJson: {},
  12907. videoType:0,
  12908. toolType: 0,
  12909. checktoolArray: [],
  12910. vChapterData: [],
  12911. isUpdateToolDetail: false,
  12912. isUpdateToolDetail1: false,
  12913. updateToolDetailInner: "",
  12914. checkboxList: [],
  12915. plIndex: "",
  12916. worksSName2: "",
  12917. worksSid: "",
  12918. wordCloudData: [],
  12919. isPickStudent: [],
  12920. pzStype: 1,
  12921. myAnList: {},
  12922. downLoading: false,
  12923. greyType: false,
  12924. correctWord: [],
  12925. EnglishVoiceDialog: false,
  12926. englishVoiceJson: {},
  12927. englishVoiceJsonWork:[],
  12928. scoreList:{
  12929. listdata:[],
  12930. isScoreList:[],
  12931. },
  12932. classRoomHelperWidth: '85px',
  12933. orgArray:[],
  12934. oidArray:[],
  12935. splitScreenData:{
  12936. isOpen:false,
  12937. userId:"",
  12938. uid:"",
  12939. myUid:"",
  12940. loading:false,
  12941. behavior:null,
  12942. },
  12943. confirmOpenDig:false,
  12944. confirmOpenDigData:''
  12945. };
  12946. },
  12947. methods: {
  12948. //查看应用中心作业
  12949. openCocoFlow(w){
  12950. this.$refs.cocoFlowDiaRef.openAppWork(w)
  12951. },
  12952. getAIJ(){
  12953. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12954. let oid = res.data[0];
  12955. let org = res.data[1];
  12956. let oidArray = [];
  12957. let orgArray = [];
  12958. oid.forEach(i=>oidArray.push(i.oid))
  12959. org.forEach(i=>orgArray.push(i.oid))
  12960. this.orgArray = orgArray;
  12961. this.oidArray = oidArray;
  12962. })
  12963. },
  12964. insertMemorandum(_html){//保存行为操作
  12965. //variable
  12966. //btn
  12967. let params = [{
  12968. uid:this.userid,
  12969. courseId:this.id+(this.tcid2?this.tcid2:''),
  12970. content:_html
  12971. }]
  12972. console.log(params)
  12973. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12974. if(res.data==1){
  12975. console.log('保存操作成功')
  12976. }else{
  12977. console.log('保存操作失败')
  12978. }
  12979. }).catch(e=>{
  12980. console.log('保存操作失败')
  12981. console.log(e)
  12982. })
  12983. },
  12984. gx(){
  12985. this.$forceUpdate();
  12986. },
  12987. isUpdateCorrect(t,p){
  12988. if(this.greyType == false){
  12989. this.isUpdateText = t;
  12990. this.greyType = true;
  12991. }else{
  12992. if(p == 1){
  12993. this.newEnglishList.engText = this.isUpdateText;
  12994. }else if(p == 2){
  12995. this.oldEnglishJson1.engText = this.isUpdateText;
  12996. }else if(p == 3){
  12997. this.newEnglishList.engText = this.isUpdateText;
  12998. }else{
  12999. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  13000. }
  13001. this.greyType = false
  13002. }
  13003. },
  13004. aiCorrect(t,p){
  13005. let aiText = "";
  13006. const loading = this.$loading.service({
  13007. background: "rgba(255, 255, 255)",
  13008. target: document.querySelectorAll(".loadingText")[0],
  13009. });
  13010. let param = {
  13011. model: "gpt-3.5-turbo",
  13012. temperature: 0,
  13013. max_tokens: 2048,
  13014. top_p: 1,
  13015. frequency_penalty: 0,
  13016. presence_penalty: 0,
  13017. messages: [
  13018. {
  13019. role: "user",
  13020. content:
  13021.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13022. },
  13023. ],
  13024. uid: this.userid,
  13025. stream: false,
  13026. };
  13027. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13028. (res) => {
  13029. if (
  13030. res.data.FunctionResponse &&
  13031. res.data.FunctionResponse.result &&
  13032. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13033. ) {
  13034. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13035. return;
  13036. }
  13037. aiText =
  13038. res.data.FunctionResponse.choices[0].message.content;
  13039. aiText = aiText.replace(/%/g,"%25");
  13040. // let w = "";
  13041. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13042. // for(var k = 0;k<a.length;k++){
  13043. // //diffWordsWithSpace
  13044. // if(a.length > 1){
  13045. // if(a[k].added == true){
  13046. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13047. // }else if(a[k].removed == true){
  13048. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13049. // }else{
  13050. // w += '<span>' + a[k].value + '</span>';
  13051. // }
  13052. // }else{
  13053. // if(p == 1){
  13054. // w = this.newEnglishList.engText;
  13055. // }else if(p == 2){
  13056. // w = this.oldEnglishJson1.engText;
  13057. // }else if(p == 3){
  13058. // w = this.newEnglishList.engText;
  13059. // }else{
  13060. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13061. // }
  13062. // }
  13063. // }
  13064. if(p == 1){
  13065. this.newEnglishList.engText = aiText;
  13066. }else if(p == 2){
  13067. this.oldEnglishJson1.engText = aiText;
  13068. }else if(p == 3){
  13069. this.newEnglishList.engText = aiText;
  13070. }else{
  13071. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13072. }
  13073. loading.close();
  13074. },
  13075. (err) => {
  13076. console.log(err);
  13077. loading.close();
  13078. }
  13079. );
  13080. },
  13081. addToolChoose() {
  13082. if (!this.checktoolArray.length) {
  13083. this.$message.error("请选择要添加的任务");
  13084. return;
  13085. }
  13086. if (
  13087. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13088. this.taskCount
  13089. ].toolChoose[0].tool.length
  13090. ) {
  13091. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13092. this.taskCount
  13093. ].toolChoose[0].tool = this.checktoolArray;
  13094. } else {
  13095. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13096. this.taskCount
  13097. ].toolChoose.push({
  13098. tool: this.checktoolArray,
  13099. toolDetail: "",
  13100. toolType: 0,
  13101. askCount: 1,
  13102. askTitle: "",
  13103. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13104. });
  13105. }
  13106. let params = [
  13107. {
  13108. cid: this.id,
  13109. chapters: JSON.stringify(this.chapInfoList),
  13110. uid: this.userid,
  13111. unitIndex: this.courseType,
  13112. },
  13113. ];
  13114. this.ajax
  13115. .post(this.$store.state.api + "updateWorkNew4", params)
  13116. .then((res) => {
  13117. this.$message({
  13118. message: "添加成功",
  13119. type: "success",
  13120. });
  13121. this.checktoolArray = [];
  13122. this.getCourseDetail(2);
  13123. this.checkBz(
  13124. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13125. this.taskCount
  13126. ].toolChoose.length - 1
  13127. );
  13128. this.toolDialogVisible = false;
  13129. this.refreshCourse();
  13130. this.$forceUpdate();
  13131. })
  13132. .catch((err) => {
  13133. console.error(err);
  13134. });
  13135. },
  13136. checkBz(index) {
  13137. this.isUpdateToolDetail = false;
  13138. this.$forceUpdate();
  13139. setTimeout(() => {
  13140. document.scrollingElement.scrollTop =
  13141. document.querySelectorAll(".filebox")[index].offsetTop +
  13142. document.querySelector(".student_body").offsetTop;
  13143. }, 500);
  13144. },
  13145. updateToolDetail(i, type) {
  13146. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13147. this.toolDetailIndex = i
  13148. this.isUpdateToolDetail1 = true;
  13149. setTimeout(() => {
  13150. this.updateToolDetailInner = JSON.parse(
  13151. JSON.stringify(
  13152. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13153. this.taskCount
  13154. ].toolChoose[i].toolDetail
  13155. )
  13156. );
  13157. document.querySelector(".checkTextArea").focus();
  13158. }, 0);
  13159. } else if((this.isUpdateToolDetail1 && type != 2)){
  13160. // this.toolDetailIndex = i;
  13161. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13162. this.taskCount
  13163. ].toolChoose[i].toolDetail = JSON.parse(
  13164. JSON.stringify(this.updateToolDetailInner)
  13165. );
  13166. let params = [
  13167. {
  13168. cid: this.id,
  13169. chapters: JSON.stringify(this.chapInfoList),
  13170. uid: this.userid,
  13171. unitIndex: this.courseType,
  13172. },
  13173. ];
  13174. this.ajax
  13175. .post(this.$store.state.api + "updateWorkNew4", params)
  13176. .then((res) => {
  13177. this.isUpdateToolDetail1 = false;
  13178. this.$message({
  13179. message: "修改成功",
  13180. type: "success",
  13181. });
  13182. this.toolDetailIndex = null;
  13183. this.updateToolDetailInner = "";
  13184. this.getCourseDetail(2);
  13185. this.$forceUpdate();
  13186. })
  13187. .catch((err) => {
  13188. console.error(err);
  13189. });
  13190. } else if((this.isUpdateToolDetail1 && type == 2)){
  13191. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13192. this.taskCount
  13193. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  13194. JSON.stringify(this.updateToolDetailInner)
  13195. );
  13196. let params = [
  13197. {
  13198. cid: this.id,
  13199. chapters: JSON.stringify(this.chapInfoList),
  13200. uid: this.userid,
  13201. unitIndex: this.courseType,
  13202. },
  13203. ];
  13204. this.ajax
  13205. .post(this.$store.state.api + "updateWorkNew4", params)
  13206. .then((res) => {
  13207. this.$message({
  13208. message: "修改成功",
  13209. type: "success",
  13210. });
  13211. this.toolDetailIndex = i;
  13212. this.isUpdateToolDetail1 = true;
  13213. setTimeout(() => {
  13214. this.updateToolDetailInner = JSON.parse(
  13215. JSON.stringify(
  13216. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13217. this.taskCount
  13218. ].toolChoose[i].toolDetail
  13219. )
  13220. );
  13221. document.querySelector(".checkTextArea").focus();
  13222. }, 0);
  13223. this.getCourseDetail(2);
  13224. this.$forceUpdate();
  13225. })
  13226. .catch((err) => {
  13227. console.error(err);
  13228. });
  13229. }
  13230. },
  13231. jumpGj(i, j, k, l) {
  13232. for (var z = 0; z < this.navList.length; z++) {
  13233. for (var q = 0; q < this.navList[z].task.length; q++) {
  13234. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  13235. this.navList[z].task[q].tool[w].isTool = false;
  13236. }
  13237. }
  13238. }
  13239. console.log(this.navList);
  13240. this.navList[i].task[j].tool[k].isTool =
  13241. !this.navList[i].task[j].tool[k].isTool;
  13242. var a = document.scrollingElement;
  13243. let target = document.querySelector(`#gj${k}`);
  13244. if (target) {
  13245. // target.scrollIntoView(true);
  13246. // setTimeout(() => {
  13247. // a.scrollTop = a.scrollTop - 150;
  13248. // }, 0);
  13249. target.scrollIntoView();
  13250. setTimeout(()=>{
  13251. let scrollBody = document.querySelector('.body_student').parentElement
  13252. scrollBody.scrollTop = scrollBody.scrollTop - 100
  13253. }, 0);
  13254. }
  13255. this.navId = ""
  13256. let flag = this.courseType == i;
  13257. let flag2 = this.taskCount == j
  13258. if (l) {
  13259. this.courseType = i;
  13260. // this.navId = l;
  13261. this.taskCount = j;
  13262. this.selectPz();
  13263. this.getHomeWork();
  13264. this.getCourseDetail(2);
  13265. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  13266. if(flag){
  13267. if(flag2){
  13268. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  13269. }else{
  13270. 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>`)
  13271. }
  13272. }else{
  13273. 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>`)
  13274. }
  13275. }
  13276. // var b = this.$refs["bz" + k][0];
  13277. // a.scrollTop = b.offsetTop;
  13278. },
  13279. addTools2(i) {
  13280. if (i == 4) {
  13281. // this.openTools2(4);
  13282. this.$message.error("暂未开放");
  13283. return;
  13284. }
  13285. if (i == 45) {
  13286. // this.openTools2(45);
  13287. this.$message.error("暂未开放");
  13288. return;
  13289. }
  13290. if (i == 47) {
  13291. // this.openTools2(47);
  13292. this.$message.error("暂未开放");
  13293. return;
  13294. }
  13295. if (i == 49) {
  13296. // this.openTools2(49);
  13297. this.$message.error("暂未开放");
  13298. return;
  13299. }
  13300. if (i == 62) {
  13301. // this.openTools(itemTaskIndex, 62, toolIndex);
  13302. this.$message.error("暂未开放");
  13303. return;
  13304. }
  13305. if (i == 15) {
  13306. // this.openTools(itemTaskIndex, 15, toolIndex);
  13307. this.$message.error("暂未开放");
  13308. return;
  13309. }
  13310. if (i == 40) {
  13311. // this.openTools(itemTaskIndex, 40, toolIndex);
  13312. this.$message.error("暂未开放");
  13313. return;
  13314. }
  13315. if (i == 41) {
  13316. // this.openTools(itemTaskIndex, 41, toolIndex);
  13317. this.$message.error("暂未开放");
  13318. return;
  13319. }
  13320. if (i == 42) {
  13321. // this.openTools(itemTaskIndex, 42, toolIndex);
  13322. this.$message.error("暂未开放");
  13323. return;
  13324. }
  13325. if (this.checktoolArray.length > 0) {
  13326. if (this.checktoolArray.indexOf(i) != -1) {
  13327. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  13328. } else {
  13329. this.checktoolArray = [];
  13330. this.checktoolArray.push(i);
  13331. }
  13332. } else {
  13333. this.checktoolArray.push(i);
  13334. }
  13335. this.$forceUpdate();
  13336. },
  13337. jump() {
  13338. window.topU.postMessage({ tools: "43" }, "*");
  13339. },
  13340. getUpdateMore(f, checkboxList, searchTN, index) {
  13341. this.dialogVisibleMember = f;
  13342. this.checkboxList = checkboxList;
  13343. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  13344. this.plIndex = index;
  13345. },
  13346. setPlname(a) {
  13347. if (this.plworkFile.length) {
  13348. this.plworkFile[this.plIndex].username = a;
  13349. } else {
  13350. this.worksSName = a;
  13351. }
  13352. this.dialogVisibleMember = false;
  13353. },
  13354. previewImg(url,w) {
  13355. this.$hevueImgPreview(url);
  13356. if(w){
  13357. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  13358. }
  13359. },
  13360. checkImg(list) {
  13361. if (!list.length) {
  13362. return;
  13363. }
  13364. this.$hevueImgPreview({
  13365. multiple: true, // 开启多图预览模式
  13366. imgList: list, // 需要预览的多图数组
  13367. });
  13368. },
  13369. change(val) {
  13370. console.log(val);
  13371. },
  13372. goTo(path) {
  13373. this.$router.push(path);
  13374. },
  13375. handlePictureCardPreview(url) {
  13376. this.dialogImageUrl = url;
  13377. this.pictureDialog = true;
  13378. },
  13379. clean(type) {
  13380. if (type == 1) {
  13381. this.studyJuri[0].cover.splice(0, 1);
  13382. } else if (type == 2) {
  13383. this.studyJuri[0].upVedio.splice(0, 1);
  13384. } else {
  13385. this.studyJuri[0].upFile.splice(0, 1);
  13386. }
  13387. },
  13388. clean2(index) {
  13389. this.plworkFile.splice(index, 1);
  13390. },
  13391. handleClose(done) {
  13392. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  13393. this.videoDetail.sources[0].src = "";
  13394. }
  13395. this.commentIndexJson = {};
  13396. this.changeSplitScreenBehavior({code:99})
  13397. done();
  13398. },
  13399. fullTools() {
  13400. this.full = !this.full;
  13401. },
  13402. imgChange(file, fileList, type) {
  13403. if (type == 1) {
  13404. var _tmp = this.studyJuri[0].cover;
  13405. } else if (type == 2) {
  13406. var _tmp = this.studyJuri[0].upVedio;
  13407. } else {
  13408. var _tmp = this.studyJuri[0].upFile;
  13409. }
  13410. this.noneBtnImg = _tmp.length >= 1;
  13411. },
  13412. setContent(bool) {
  13413. this.contentDialog = bool;
  13414. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  13415. document.querySelector(".workd_media").style.height = "650px";
  13416. } else if (document.querySelector(".workd_media")) {
  13417. document.querySelector(".workd_media").style.height = "auto";
  13418. }
  13419. },
  13420. setContent2(bool) {
  13421. this.mlDialog = bool;
  13422. if (
  13423. bool &&
  13424. this.contentDialog &&
  13425. document.querySelector(".workd_media")
  13426. ) {
  13427. document.querySelector(".workd_media").style.height = "650px";
  13428. } else if (document.querySelector(".workd_media")) {
  13429. document.querySelector(".workd_media").style.height = "auto";
  13430. }
  13431. },
  13432. openToolAll() {
  13433. this.toolDialogVisible = true;
  13434. },
  13435. addImg(e) {
  13436. var el = e.currentTarget;
  13437. // this.$message.success('触发上传')
  13438. el.getElementsByTagName("input")[0].click();
  13439. e.target.value = "";
  13440. },
  13441. addSelectAnswer() {
  13442. let params = [
  13443. {
  13444. uid: this.userid,
  13445. cid: this.id,
  13446. stage: this.courseType,
  13447. task: this.taskCount,
  13448. tool: this.toolindex,
  13449. content: this.selectAnswer.answer,
  13450. type: 7,
  13451. },
  13452. ];
  13453. this.ajax
  13454. .post(this.$store.state.api + "addCourseWorks", params)
  13455. .then((res) => {
  13456. this.$message({
  13457. message: "提交成功",
  13458. type: "success",
  13459. });
  13460. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  13461. this.dialogVisibleSelect = false;
  13462. // this.selectAnswer = {};
  13463. this.selectSWorks();
  13464. this.selectStudent();
  13465. })
  13466. .catch((err) => {
  13467. this.$message.error("提交失败");
  13468. console.error(err);
  13469. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  13470. });
  13471. },
  13472. addSelectAnswerTeacher() {
  13473. let params = [
  13474. {
  13475. uid: this.sStudent.userid,
  13476. cid: this.id,
  13477. stage: this.courseType,
  13478. task: this.taskCount,
  13479. tool: this.toolindex,
  13480. content: this.selectAnswer.answer,
  13481. type: 7,
  13482. },
  13483. ];
  13484. this.ajax
  13485. .post(this.$store.state.api + "addCourseWorks", params)
  13486. .then((res) => {
  13487. this.$message({
  13488. message: "提交成功",
  13489. type: "success",
  13490. });
  13491. this.dialogVisibleSelectTeacher = false;
  13492. // this.selectAnswer = {};
  13493. this.selectSWorks();
  13494. this.selectStudent();
  13495. })
  13496. .catch((err) => {
  13497. this.$message.error("提交失败");
  13498. console.error(err);
  13499. });
  13500. },
  13501. addSenWorks() {
  13502. for (var i = 0; i < this.sentenceList.length; i++) {
  13503. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13504. if (
  13505. this.sentenceList[i].chooseSenList[j] == undefined ||
  13506. this.sentenceList[i].chooseSenList[j] == ""
  13507. ) {
  13508. this.$message.error("请将答案填写完整!");
  13509. return;
  13510. }
  13511. }
  13512. }
  13513. let params = [
  13514. {
  13515. uid: this.userid,
  13516. cid: this.id,
  13517. stage: this.courseType,
  13518. task: this.taskCount,
  13519. tool: this.toolindex,
  13520. content: JSON.stringify(this.sentenceList),
  13521. type: 9,
  13522. },
  13523. ];
  13524. this.ajax
  13525. .post(this.$store.state.api + "addCourseWorks", params)
  13526. .then((res) => {
  13527. this.$message({
  13528. message: "提交成功",
  13529. type: "success",
  13530. });
  13531. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  13532. this.dialogVisibleSentence = false;
  13533. // this.selectAnswer = {};
  13534. this.selectSWorks();
  13535. this.selectStudent();
  13536. })
  13537. .catch((err) => {
  13538. this.$message.error("提交失败");
  13539. console.error(err);
  13540. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  13541. });
  13542. },
  13543. addSenWorksTeacher() {
  13544. for (var i = 0; i < this.sentenceList.length; i++) {
  13545. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13546. if (
  13547. this.sentenceList[i].chooseSenList[j] == undefined ||
  13548. this.sentenceList[i].chooseSenList[j] == ""
  13549. ) {
  13550. this.$message.error("请将答案填写完整!");
  13551. return;
  13552. }
  13553. }
  13554. }
  13555. let params = [
  13556. {
  13557. uid: this.sStudent.userid,
  13558. cid: this.id,
  13559. stage: this.courseType,
  13560. task: this.taskCount,
  13561. tool: this.toolindex,
  13562. content: JSON.stringify(this.sentenceList),
  13563. type: 9,
  13564. },
  13565. ];
  13566. this.ajax
  13567. .post(this.$store.state.api + "addCourseWorks", params)
  13568. .then((res) => {
  13569. this.$message({
  13570. message: "提交成功",
  13571. type: "success",
  13572. });
  13573. this.dialogVisibleSentenceTeacher = false;
  13574. // this.selectAnswer = {};
  13575. this.selectSWorks();
  13576. this.selectStudent();
  13577. })
  13578. .catch((err) => {
  13579. this.$message.error("提交失败");
  13580. console.error(err);
  13581. });
  13582. },
  13583. returnTableText() {
  13584. this.$confirm("确定还原此模板吗?", "提示", {
  13585. confirmButtonText: "确定",
  13586. cancelButtonText: "取消",
  13587. type: "warning",
  13588. })
  13589. .then(() => {
  13590. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13591. })
  13592. .catch(() => {});
  13593. },
  13594. addTableWorks() {
  13595. let params = [
  13596. {
  13597. uid: this.userid,
  13598. cid: this.id,
  13599. stage: this.courseType,
  13600. task: this.taskCount,
  13601. tool: this.toolindex,
  13602. content: JSON.stringify(this.tableJson),
  13603. type: 10,
  13604. },
  13605. ];
  13606. this.ajax
  13607. .post(this.$store.state.api + "addCourseWorks", params)
  13608. .then((res) => {
  13609. this.$message({
  13610. message: "提交成功",
  13611. type: "success",
  13612. });
  13613. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  13614. this.dialogVisibleTable = false;
  13615. // this.selectAnswer = {};
  13616. this.selectSWorks();
  13617. this.selectStudent();
  13618. })
  13619. .catch((err) => {
  13620. this.$message.error("提交失败");
  13621. console.error(err);
  13622. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  13623. });
  13624. },
  13625. tableRowClassName({ row, rowIndex }) {
  13626. if ((rowIndex + 1) % 2 === 0) {
  13627. return "even_row";
  13628. } else {
  13629. return "";
  13630. }
  13631. },
  13632. addTableWorksTeacher() {
  13633. let params = [
  13634. {
  13635. uid: this.sStudent.userid,
  13636. cid: this.id,
  13637. stage: this.courseType,
  13638. task: this.taskCount,
  13639. tool: this.toolindex,
  13640. content: JSON.stringify(this.tableJson),
  13641. type: 10,
  13642. },
  13643. ];
  13644. this.ajax
  13645. .post(this.$store.state.api + "addCourseWorks", params)
  13646. .then((res) => {
  13647. this.$message({
  13648. message: "提交成功",
  13649. type: "success",
  13650. });
  13651. this.dialogVisibleTableTeacher = false;
  13652. // this.selectAnswer = {};
  13653. this.selectSWorks();
  13654. this.selectStudent();
  13655. })
  13656. .catch((err) => {
  13657. this.$message.error("提交失败");
  13658. console.error(err);
  13659. });
  13660. },
  13661. returnWordText() {
  13662. this.$confirm("确定还原此模板吗?", "提示", {
  13663. confirmButtonText: "确定",
  13664. cancelButtonText: "取消",
  13665. type: "warning",
  13666. })
  13667. .then(() => {
  13668. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13669. })
  13670. .catch(() => {});
  13671. },
  13672. addWordWorks() {
  13673. let params = [
  13674. {
  13675. uid: this.userid,
  13676. cid: this.id,
  13677. stage: this.courseType,
  13678. task: this.taskCount,
  13679. tool: this.toolindex,
  13680. content: JSON.stringify(this.wordJson),
  13681. type: 13,
  13682. atool: 52,
  13683. },
  13684. ];
  13685. this.ajax
  13686. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13687. .then((res) => {
  13688. this.$message({
  13689. message: "提交成功",
  13690. type: "success",
  13691. });
  13692. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  13693. this.dialogVisibleWord = false;
  13694. // this.selectAnswer = {};
  13695. this.selectSWorks();
  13696. this.selectStudent();
  13697. })
  13698. .catch((err) => {
  13699. this.$message.error("提交失败");
  13700. console.error(err);
  13701. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  13702. });
  13703. },
  13704. addWordWorksTeacher() {
  13705. let params = [
  13706. {
  13707. uid: this.sStudent.userid,
  13708. cid: this.id,
  13709. stage: this.courseType,
  13710. task: this.taskCount,
  13711. tool: this.toolindex,
  13712. content: JSON.stringify(this.wordJson),
  13713. type: 13,
  13714. atool: 52,
  13715. },
  13716. ];
  13717. this.ajax
  13718. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13719. .then((res) => {
  13720. this.$message({
  13721. message: "提交成功",
  13722. type: "success",
  13723. });
  13724. this.dialogVisibleWordTeacher = false;
  13725. // this.selectAnswer = {};
  13726. this.selectSWorks();
  13727. this.selectStudent();
  13728. })
  13729. .catch((err) => {
  13730. this.$message.error("提交失败");
  13731. console.error(err);
  13732. });
  13733. },
  13734. addCourseWorks(i) {
  13735. var typesql;
  13736. if (this.fileType === 0) {
  13737. typesql = 1;
  13738. } else if (this.fileType === 1) {
  13739. typesql = 4;
  13740. } else if (this.fileType === 2) {
  13741. typesql = 5;
  13742. } else if (this.fileType === 3) {
  13743. typesql = 12;
  13744. }
  13745. if (!this.studyJuri[0].cover[0].url) {
  13746. this.$message.error("请上传文件");
  13747. return;
  13748. }
  13749. let params = [
  13750. {
  13751. uid: this.userid,
  13752. cid: this.id,
  13753. stage: this.courseType,
  13754. task: i,
  13755. tool: this.toolindex,
  13756. content: this.studyJuri[0].cover[0].url,
  13757. type: typesql,
  13758. },
  13759. ];
  13760. this.ajax
  13761. .post(this.$store.state.api + "addCourseWorksR", params)
  13762. .then((res) => {
  13763. this.$message({
  13764. message: "提交成功",
  13765. type: "success",
  13766. });
  13767. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  13768. this.studyJuri[0].cover = [];
  13769. this.dialogVisible = false;
  13770. this.getCourseDetail(2);
  13771. })
  13772. .catch((err) => {
  13773. this.$message.error("提交失败");
  13774. console.error(err);
  13775. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  13776. });
  13777. },
  13778. addCourseWorksPl(i) {
  13779. let _files = this.plworkFile;
  13780. var c = 1;
  13781. for (var k = 0; k < _files.length; k++) {
  13782. if (!_files[k].username) {
  13783. c = 2;
  13784. }
  13785. }
  13786. if (c == 2) {
  13787. this.$message.error("请填写学生姓名");
  13788. return;
  13789. }
  13790. let params = [
  13791. {
  13792. ateacher: this.userid,
  13793. cid: this.id,
  13794. stage: this.courseType,
  13795. task: i,
  13796. tool: this.toolindex,
  13797. content: JSON.stringify(_files),
  13798. },
  13799. ];
  13800. this.ajax
  13801. .post(this.$store.state.api + "addCourseWorksPl", params)
  13802. .then((res) => {
  13803. this.$message({
  13804. message: "提交成功",
  13805. type: "success",
  13806. });
  13807. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  13808. this.plworkFile = [];
  13809. this.dialogVisiblePl = false;
  13810. this.getCourseDetail(2);
  13811. })
  13812. .catch((err) => {
  13813. this.$message.error("提交失败");
  13814. console.error(err);
  13815. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  13816. });
  13817. },
  13818. addCourseWorks2(i) {
  13819. var typesql;
  13820. if (this.fileType === 0) {
  13821. typesql = 0;
  13822. } else if (this.fileType === 1) {
  13823. typesql = 1;
  13824. } else if (this.fileType === 2) {
  13825. typesql = 3;
  13826. } else if (this.fileType === 3) {
  13827. typesql = 12;
  13828. }
  13829. if (!this.studyJuri[0].cover[0].url) {
  13830. this.$message.error("请上传文件");
  13831. return;
  13832. }
  13833. let params = [
  13834. {
  13835. uid: this.userid,
  13836. cid: this.id,
  13837. stage: this.courseType,
  13838. task: i,
  13839. tool: this.toolindex,
  13840. content: JSON.stringify({
  13841. type: typesql,
  13842. groupIndex: this.groupIndex,
  13843. url: this.studyJuri[0].cover[0].url,
  13844. }),
  13845. type: 11,
  13846. atool: 49,
  13847. text: "",
  13848. },
  13849. ];
  13850. this.ajax
  13851. .post(this.$store.state.api + "addCourseWorks5", params)
  13852. .then((res) => {
  13853. this.$message({
  13854. message: "提交成功",
  13855. type: "success",
  13856. });
  13857. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13858. type: typesql,
  13859. groupIndex: this.groupIndex,
  13860. url: this.studyJuri[0].cover[0].url,
  13861. }),type: "course_tool_sub" }, "success")
  13862. this.studyJuri[0].cover = [];
  13863. this.dialogVisibleGroupWork = false;
  13864. this.getCourseDetail(2);
  13865. })
  13866. .catch((err) => {
  13867. this.$message.error("提交失败");
  13868. console.error(err);
  13869. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  13870. type: typesql,
  13871. groupIndex: this.groupIndex,
  13872. url: this.studyJuri[0].cover[0].url,
  13873. }),type: "course_tool_sub" }, err)
  13874. });
  13875. },
  13876. addEnglishWork() {
  13877. this.myAnList = this.$refs['engJson'].myAnswerList;
  13878. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13879. this.$message.error("请输入作文标题和正文!");
  13880. return;
  13881. }
  13882. let params = [
  13883. {
  13884. uid: this.userid,
  13885. cid: this.id,
  13886. stage: this.courseType,
  13887. task: this.taskCount,
  13888. tool: this.englishToolIndex,
  13889. content: JSON.stringify(this.myAnList),
  13890. type: 16,
  13891. atool: 69,
  13892. text: "",
  13893. },
  13894. ];
  13895. this.ajax
  13896. .post(this.$store.state.api + "addCourseWorks5", params)
  13897. .then((res) => {
  13898. this.$message({
  13899. message: "提交成功",
  13900. type: "success",
  13901. });
  13902. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  13903. data: JSON.stringify(this.myAnList),
  13904. type: "course_tool_sub" }, "success")
  13905. this.myAnList = {};
  13906. this.englishList = {};
  13907. this.englishToolIndex = 0;
  13908. this.engDialogVisible = false;
  13909. this.selectSWorks();
  13910. this.selectStudent();
  13911. })
  13912. .catch((err) => {
  13913. this.$message.error("提交失败");
  13914. console.error(err);
  13915. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  13916. data: JSON.stringify(this.myAnList),
  13917. type: "course_tool_sub" }, err)
  13918. });
  13919. },
  13920. addCourseWorksGong(i, data, tool) {
  13921. let params = [
  13922. {
  13923. uid: this.userid,
  13924. cid: this.id,
  13925. stage: this.courseType,
  13926. task: this.taskCount,
  13927. tool: i,
  13928. content: data,
  13929. type: 12,
  13930. atool: tool,
  13931. text: "",
  13932. },
  13933. ];
  13934. this.ajax
  13935. .post(this.$store.state.api + "addCourseWorks5", params)
  13936. .then((res) => {
  13937. this.$message({
  13938. message: "提交成功",
  13939. type: "success",
  13940. });
  13941. this.studyJuri[0].cover = [];
  13942. this.selectSWorks();
  13943. this.selectStudent();
  13944. })
  13945. .catch((err) => {
  13946. this.$message.error("提交失败");
  13947. console.error(err);
  13948. });
  13949. },
  13950. addCourseWorksGongTeacher(i, data, tool) {
  13951. let params = [
  13952. {
  13953. uid: this.sStudent.userid,
  13954. cid: this.id,
  13955. stage: this.courseType,
  13956. task: this.taskCount,
  13957. tool: i,
  13958. content: data,
  13959. type: 12,
  13960. atool: tool,
  13961. text: "",
  13962. },
  13963. ];
  13964. this.ajax
  13965. .post(this.$store.state.api + "addCourseWorks5", params)
  13966. .then((res) => {
  13967. this.$message({
  13968. message: "提交成功",
  13969. type: "success",
  13970. });
  13971. this.studyJuri[0].cover = [];
  13972. this.dialogVisibleWorks = false;
  13973. this.selectSWorks();
  13974. this.selectStudent();
  13975. })
  13976. .catch((err) => {
  13977. this.$message.error("提交失败");
  13978. console.error(err);
  13979. });
  13980. },
  13981. addCourseWorksGongPl(i, data, tool, type) {
  13982. let params = [
  13983. {
  13984. uid: this.sStudent.userid,
  13985. cid: this.id,
  13986. stage: this.courseType,
  13987. task: this.taskCount,
  13988. tool: i,
  13989. content: data,
  13990. type: type,
  13991. atool: tool,
  13992. text: "",
  13993. },
  13994. ];
  13995. this.ajax
  13996. .post(this.$store.state.api + "addCourseWorks5", params)
  13997. .then((res) => {
  13998. this.$message({
  13999. message: "提交成功",
  14000. type: "success",
  14001. });
  14002. this.studyJuri[0].cover = [];
  14003. this.dialogVisibleWorks = false;
  14004. this.selectSWorks();
  14005. this.selectStudent();
  14006. })
  14007. .catch((err) => {
  14008. this.$message.error("提交失败");
  14009. console.error(err);
  14010. });
  14011. },
  14012. addCourseWorksTeacher(i) {
  14013. var typesql;
  14014. if (this.sTool == 32) {
  14015. this.addCourseWorksGongTeacher(
  14016. this.toolindex,
  14017. this.studyJuri[0].cover[0].url,
  14018. this.sTool
  14019. );
  14020. return;
  14021. }
  14022. if (this.fileType === 0) {
  14023. typesql = 1;
  14024. } else if (this.fileType === 1) {
  14025. typesql = 4;
  14026. } else if (this.fileType === 2) {
  14027. typesql = 5;
  14028. } else if (this.fileType === 3) {
  14029. typesql = 12;
  14030. }
  14031. if (this.sTool == 50) {
  14032. this.addCourseWorksGongPl(
  14033. this.toolindex,
  14034. this.studyJuri[0].cover[0].url,
  14035. this.sTool,
  14036. typesql
  14037. );
  14038. return;
  14039. }
  14040. if (!this.studyJuri[0].cover[0].url) {
  14041. this.$message.error("请上传文件");
  14042. return;
  14043. }
  14044. let params = [
  14045. {
  14046. uid: this.sStudent.userid,
  14047. cid: this.id,
  14048. stage: this.courseType,
  14049. task: i,
  14050. tool: this.toolindex,
  14051. content: this.studyJuri[0].cover[0].url,
  14052. type: typesql,
  14053. ateacher: this.userid,
  14054. },
  14055. ];
  14056. this.ajax
  14057. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14058. .then((res) => {
  14059. this.$message({
  14060. message: "提交成功",
  14061. type: "success",
  14062. });
  14063. this.studyJuri[0].cover = [];
  14064. this.dialogVisibleWorks = false;
  14065. this.getCourseDetail(2);
  14066. })
  14067. .catch((err) => {
  14068. this.$message.error("提交失败");
  14069. console.error(err);
  14070. });
  14071. },
  14072. selectUploadStudent(type) {
  14073. const loading = this.$loading.service({
  14074. background: "rgba(255, 255, 255, 0.7)",
  14075. target: document.body,
  14076. });
  14077. let params = {
  14078. cid: this.uploadCid,
  14079. oid: this.oid,
  14080. cn: "",
  14081. };
  14082. this.ajax
  14083. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14084. .then((res) => {
  14085. loading.close();
  14086. var studentK = [];
  14087. if (this.isWorksS[this.toolindex].length > 0) {
  14088. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14089. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14090. }
  14091. studentK = studentK.join(",");
  14092. }
  14093. this.uploadStudentJuri = res.data[0].filter((el) => {
  14094. return studentK.indexOf(el.userid) == -1;
  14095. });
  14096. if (this.worksSName && this.worksSid) {
  14097. this.uploadStudentJuri.push({
  14098. userid: this.worksSid,
  14099. name: this.worksSName,
  14100. });
  14101. }
  14102. if (type == 1) {
  14103. this.plworkFile = [];
  14104. this.dialogVisibleSname = true;
  14105. } else if (type == 2) {
  14106. this.dialogVisiblePl = true;
  14107. }
  14108. })
  14109. .catch((err) => {
  14110. loading.close();
  14111. console.error(err);
  14112. });
  14113. },
  14114. selectPickStudent() {
  14115. const loading = this.$loading.service({
  14116. background: "rgba(255, 255, 255, 0.7)",
  14117. target: document.body,
  14118. });
  14119. let params = {
  14120. cid: this.uploadCid,
  14121. oid: this.oid,
  14122. cn: "",
  14123. };
  14124. this.ajax
  14125. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14126. .then((res) => {
  14127. loading.close();
  14128. this.uploadStudentJuri = res.data[0];
  14129. this.dialogVisiblePickPeople = true;
  14130. })
  14131. .catch((err) => {
  14132. loading.close();
  14133. console.error(err);
  14134. });
  14135. },
  14136. arrayToArray(arrayo, arrayt) {
  14137. let array1 = arrayo;
  14138. let array2 = arrayt;
  14139. let commonElements = [];
  14140. for (let i = 0; i < array1.length; i++) {
  14141. for (let j = 0; j < array2.length; j++) {
  14142. if (array1[i] === array2[j]) {
  14143. commonElements.push(array1[i]);
  14144. }
  14145. }
  14146. }
  14147. return commonElements;
  14148. },
  14149. selectWorksStudent() {
  14150. let params = {
  14151. oid: this.oid,
  14152. cid: this.courseDetail.juri,
  14153. };
  14154. this.ajax
  14155. .get(this.$store.state.api + "selectWorksStudent", params)
  14156. .then((res) => {
  14157. var a = res.data[0];
  14158. for (var i = 0; i < this.isWorksS.length; i++) {
  14159. this.noWorksS[i] = [];
  14160. var studentK = [];
  14161. if (this.isWorksS[i].length > 0) {
  14162. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14163. studentK.push(this.isWorksS[i][z].uid);
  14164. }
  14165. studentK = studentK.join(",");
  14166. for (var j = 0; j < a.length; j++) {
  14167. if (studentK.indexOf(a[j].userid) == -1) {
  14168. if (this.tcid) {
  14169. // a[j].classid.indexOf(this.tcid) != -1
  14170. if (
  14171. this.arrayToArray(
  14172. a[j].classid.split(","),
  14173. this.tcid.split(",")
  14174. ).length
  14175. ) {
  14176. this.noWorksS[i].push({
  14177. student: a[j].name,
  14178. userid: a[j].userid,
  14179. });
  14180. }
  14181. } else {
  14182. this.noWorksS[i].push({
  14183. student: a[j].name,
  14184. userid: a[j].userid,
  14185. });
  14186. }
  14187. }
  14188. }
  14189. } else {
  14190. for (var k = 0; k < a.length; k++) {
  14191. if (this.tcid) {
  14192. if (
  14193. this.arrayToArray(
  14194. a[k].classid.split(","),
  14195. this.tcid.split(",")
  14196. ).length
  14197. ) {
  14198. this.noWorksS[i].push({
  14199. student: a[k].name,
  14200. userid: a[k].userid,
  14201. });
  14202. }
  14203. } else {
  14204. this.noWorksS[i].push({
  14205. student: a[k].name,
  14206. userid: a[k].userid,
  14207. });
  14208. }
  14209. }
  14210. }
  14211. }
  14212. this.$forceUpdate();
  14213. if (
  14214. Object.keys(this.commentDetail).length &&
  14215. Object.keys(this.commentIndexJson).length &&
  14216. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14217. ) {
  14218. let a = 1;
  14219. let c = this.commentIndexJson;
  14220. if (
  14221. this.commentIndexJson.gindex ||
  14222. this.commentIndexJson.gindex === 0
  14223. ) {
  14224. for (
  14225. var i = 0;
  14226. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14227. i++
  14228. ) {
  14229. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  14230. groupA: for (var k = 0; k < _el.length; k++) {
  14231. let el = _el[k];
  14232. if (el.wid == this.commentDetail.wid) {
  14233. a = 2;
  14234. this.commentOther(
  14235. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  14236. this.commentIndexJson.toolIndex,
  14237. k,
  14238. this.commentIndexJson.gindex
  14239. );
  14240. break groupA;
  14241. }
  14242. }
  14243. }
  14244. if (a === 1) {
  14245. this.commentDetail = [];
  14246. this.commentIndexJson = {};
  14247. this.commentDialogVisible = false;
  14248. this.$message("此作业已被删除");
  14249. }
  14250. } else {
  14251. if (this.isGroup && this.commentIndexJson.gid) {
  14252. groupA: for (
  14253. var i = 0;
  14254. i < this.courseGroup.group.length;
  14255. i++
  14256. ) {
  14257. let _group = this.courseGroup.group[i];
  14258. if (_group.id == this.commentIndexJson.gid) {
  14259. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  14260. for (var k = 0; k < _el2.length; k++) {
  14261. let el2 = _el2[k];
  14262. if (el2.wid == this.commentDetail.wid) {
  14263. a = 2;
  14264. this.commentOther(
  14265. _el2[k],
  14266. this.commentIndexJson.toolIndex,
  14267. k,
  14268. null,
  14269. this.commentIndexJson.gid
  14270. );
  14271. break groupA;
  14272. }
  14273. }
  14274. }
  14275. }
  14276. }
  14277. if (a == 1) {
  14278. for (
  14279. var i = 0;
  14280. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  14281. i++
  14282. ) {
  14283. let el =
  14284. this.worksStudent[this.commentIndexJson.toolIndex][i];
  14285. if (el.wid == this.commentDetail.wid) {
  14286. a = 2;
  14287. this.commentOther(
  14288. this.worksStudent[this.commentIndexJson.toolIndex][i],
  14289. this.commentIndexJson.toolIndex,
  14290. i
  14291. );
  14292. break;
  14293. }
  14294. }
  14295. }
  14296. if (a === 1) {
  14297. this.commentDetail = [];
  14298. this.commentIndexJson = {};
  14299. this.commentDialogVisible = false;
  14300. this.$message("此作业已被删除");
  14301. }
  14302. }
  14303. }
  14304. })
  14305. .catch((err) => {
  14306. console.error(err);
  14307. });
  14308. },
  14309. selectStudent() {
  14310. //学生查看自己作业
  14311. let params = {
  14312. uid: this.userid,
  14313. cid: this.id,
  14314. s: this.courseType,
  14315. t: this.taskCount,
  14316. };
  14317. this.ajax
  14318. .get(this.$store.state.api + "selectStudentWorks", params)
  14319. .then((res) => {
  14320. var a =
  14321. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14322. this.taskCount
  14323. ].toolChoose;
  14324. var b = res.data[0];
  14325. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14326. var y = [
  14327. "AVI",
  14328. "NAVI",
  14329. "MPEG",
  14330. "ASF",
  14331. "MOV",
  14332. "WMV",
  14333. "3GP",
  14334. "RM",
  14335. "RMVB",
  14336. "FLV",
  14337. "F4V",
  14338. "H.264",
  14339. "H.265",
  14340. "REAL VIDEO",
  14341. "MKV",
  14342. "WebM",
  14343. "HDDVD",
  14344. "MP4",
  14345. "MPG",
  14346. "M4V",
  14347. "MGV",
  14348. "OGV",
  14349. "QTM",
  14350. "STR",
  14351. "AMC",
  14352. "DVX",
  14353. "EVO",
  14354. "DAT",
  14355. "OGG",
  14356. "OGM",
  14357. ];
  14358. for (var i = 0; i < a.length; i++) {
  14359. this.workStudent[i] = [];
  14360. for (var j = 0; j < b.length; j++) {
  14361. if (i == b[j].tool) {
  14362. if (
  14363. (b[j].type == 1 ||
  14364. b[j].type == 4 ||
  14365. b[j].type == 5 ||
  14366. b[j].type == 6 ||
  14367. b[j].type == 12 ||
  14368. b[j].type == 7) &&
  14369. a[i].tool[0] != 15 &&
  14370. a[i].tool[0] != 4 &&
  14371. a[i].tool[0] != 45 &&
  14372. a[i].tool[0] != 50 &&
  14373. a[i].tool[0] != 32 &&
  14374. a[i].tool[0] != 57 &&
  14375. a[i].tool[0] != 52 &&
  14376. a[i].tool[0] != 69
  14377. ) {
  14378. if (
  14379. c.indexOf(
  14380. b[j].content
  14381. .split(".")
  14382. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14383. ) != -1 &&
  14384. a[i].tool[0] == 16 &&
  14385. b[j].atool != 50
  14386. ) {
  14387. this.workStudent[i].push({
  14388. works: b[j].content,
  14389. sName: b[j].name,
  14390. score: b[j].score,
  14391. img: b[j].img,
  14392. type: 1,
  14393. time: b[j].time,
  14394. userid: b[j].userid,
  14395. wid: b[j].id,
  14396. });
  14397. } else if (
  14398. y.indexOf(
  14399. b[j].content
  14400. .split(".")
  14401. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14402. ) != -1 &&
  14403. a[i].tool[0] == 16 &&
  14404. b[j].atool != 50
  14405. ) {
  14406. this.workStudent[i].push({
  14407. userid: b[j].userid,
  14408. wid: b[j].id,
  14409. works: b[j].content,
  14410. sName: b[j].name,
  14411. score: b[j].score,
  14412. img: b[j].img,
  14413. type: 3,
  14414. time: b[j].time,
  14415. });
  14416. } else if (b[j].type == 6 && b[j].atool != 50) {
  14417. this.workStudent[i].push({
  14418. userid: b[j].userid,
  14419. wid: b[j].id,
  14420. works: b[j].content,
  14421. sName: b[j].name,
  14422. score: b[j].score,
  14423. img: b[j].img,
  14424. type: 4,
  14425. time: b[j].time,
  14426. });
  14427. } else if (b[j].type == 7 && b[j].atool != 50) {
  14428. this.workStudent[i].push({
  14429. userid: b[j].userid,
  14430. wid: b[j].id,
  14431. works: b[j].content,
  14432. sName: b[j].name,
  14433. score: b[j].score,
  14434. img: b[j].img,
  14435. type: 5,
  14436. time: b[j].time,
  14437. });
  14438. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14439. this.workStudent[i].push({
  14440. works: b[j].content,
  14441. sName: b[j].name,
  14442. score: b[j].score,
  14443. img: b[j].img,
  14444. type: 12,
  14445. time: b[j].time,
  14446. userid: b[j].userid,
  14447. wid: b[j].id,
  14448. });
  14449. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14450. this.workStudent[i].push({
  14451. works: b[j].content,
  14452. sName: b[j].name,
  14453. score: b[j].score,
  14454. img: b[j].img,
  14455. type: 0,
  14456. time: b[j].time,
  14457. userid: b[j].userid,
  14458. wid: b[j].id,
  14459. });
  14460. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14461. this.workStudent[i].push({
  14462. works: b[j].content,
  14463. sName: b[j].name,
  14464. score: b[j].score,
  14465. img: b[j].img,
  14466. type: 0,
  14467. time: b[j].time,
  14468. userid: b[j].userid,
  14469. wid: b[j].id,
  14470. });
  14471. }
  14472. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14473. this.workStudent[i].push({
  14474. works: b[j].content,
  14475. sName: b[j].name,
  14476. score: b[j].score,
  14477. img: b[j].img,
  14478. type: 2,
  14479. time: b[j].time,
  14480. userid: b[j].userid,
  14481. wid: b[j].id,
  14482. });
  14483. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  14484. this.workStudent[i].push({
  14485. works: b[j].content,
  14486. sName: b[j].name,
  14487. score: b[j].score,
  14488. img: b[j].img,
  14489. type: 20,
  14490. time: b[j].time,
  14491. userid: b[j].userid,
  14492. wid: b[j].id,
  14493. });
  14494. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14495. //问卷
  14496. this.workStudent[i].push({
  14497. works: b[j].content,
  14498. sName: b[j].name,
  14499. score: b[j].score,
  14500. img: b[j].img,
  14501. type: 2,
  14502. time: b[j].time,
  14503. userid: b[j].userid,
  14504. wid: b[j].id,
  14505. });
  14506. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14507. //选择题
  14508. this.workStudent[i].push({
  14509. works: b[j].content,
  14510. sName: b[j].name,
  14511. score: b[j].score,
  14512. img: b[j].img,
  14513. type: 8,
  14514. time: b[j].time,
  14515. userid: b[j].userid,
  14516. wid: b[j].id,
  14517. });
  14518. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14519. //选择题
  14520. this.workStudent[i].push({
  14521. works: b[j].content,
  14522. sName: b[j].name,
  14523. score: b[j].score,
  14524. img: b[j].img,
  14525. type: 9,
  14526. time: b[j].time,
  14527. userid: b[j].userid,
  14528. wid: b[j].id,
  14529. });
  14530. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14531. //选择题
  14532. this.workStudent[i].push({
  14533. works: b[j].content,
  14534. sName: b[j].name,
  14535. score: b[j].score,
  14536. img: b[j].img,
  14537. type: 10,
  14538. time: b[j].time,
  14539. userid: b[j].userid,
  14540. wid: b[j].id,
  14541. });
  14542. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14543. //选择题
  14544. this.workStudent[i].push({
  14545. works: b[j].content,
  14546. sName: b[j].name,
  14547. score: b[j].score,
  14548. img: b[j].img,
  14549. type: 13,
  14550. time: b[j].time,
  14551. userid: b[j].userid,
  14552. wid: b[j].id,
  14553. });
  14554. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14555. //选择题
  14556. this.workStudent[i].push({
  14557. works: b[j].content,
  14558. sName: b[j].name,
  14559. score: b[j].score,
  14560. img: b[j].img,
  14561. type: 12,
  14562. time: b[j].time,
  14563. userid: b[j].userid,
  14564. wid: b[j].id,
  14565. });
  14566. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14567. //选择题
  14568. this.workStudent[i].push({
  14569. works: b[j].content,
  14570. sName: b[j].name,
  14571. score: b[j].score,
  14572. img: b[j].img,
  14573. type: 12,
  14574. time: b[j].time,
  14575. userid: b[j].userid,
  14576. wid: b[j].id,
  14577. });
  14578. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14579. //选择题
  14580. this.workStudent[i].push({
  14581. works: b[j].content,
  14582. sName: b[j].name,
  14583. score: b[j].score,
  14584. img: b[j].img,
  14585. type: 15,
  14586. time: b[j].time,
  14587. userid: b[j].userid,
  14588. wid: b[j].id,
  14589. });
  14590. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14591. //英语写作
  14592. this.workStudent[i].push({
  14593. works: b[j].content,
  14594. sName: b[j].name,
  14595. score: b[j].score,
  14596. img: b[j].img,
  14597. type: 16,
  14598. time: b[j].time,
  14599. userid: b[j].userid,
  14600. wid: b[j].id,
  14601. aiCode: b[j].aiCode,
  14602. teacherCode: b[j].teacherCode
  14603. });
  14604. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14605. //英语口语
  14606. this.workStudent[i].push({
  14607. works: b[j].content,
  14608. sName: b[j].name,
  14609. score: b[j].score,
  14610. img: b[j].img,
  14611. type: 17,
  14612. time: b[j].time,
  14613. userid: b[j].userid,
  14614. wid: b[j].id,
  14615. });
  14616. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14617. //交互视频
  14618. this.workStudent[i].push({
  14619. works: b[j].content,
  14620. sName: b[j].name,
  14621. score: b[j].score,
  14622. img: b[j].img,
  14623. type: 14,
  14624. time: b[j].time,
  14625. userid: b[j].userid,
  14626. wid: b[j].id,
  14627. });
  14628. }
  14629. }
  14630. }
  14631. }
  14632. })
  14633. .catch((err) => {
  14634. console.error(err);
  14635. });
  14636. },
  14637. openVideo(w) {
  14638. this.videoDetail = {};
  14639. this.playerOptions1.sources[0].src = w.works;
  14640. this.videoDetail = this.playerOptions1;
  14641. this.videoVisible = true;
  14642. },
  14643. isLikes(wid, uid, t, c, isLikes,sName) {
  14644. if (isLikes == false) {
  14645. let params = [
  14646. {
  14647. wid: wid,
  14648. lid: uid,
  14649. t: t,
  14650. c: c,
  14651. },
  14652. ];
  14653. this.ajax
  14654. .post(this.$store.state.api + "insertComment", params)
  14655. .then((res) => {
  14656. this.$message({
  14657. message: "点赞成功",
  14658. type: "success",
  14659. });
  14660. this.selectSWorks();
  14661. this.selectStudent();
  14662. if(this.tType!=2){
  14663. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14664. }
  14665. })
  14666. .catch((err) => {
  14667. this.$message.error("点赞失败");
  14668. console.error(err);
  14669. });
  14670. } else {
  14671. let params = {
  14672. wid: wid,
  14673. lid: uid,
  14674. type: t,
  14675. };
  14676. this.ajax
  14677. .get(this.$store.state.api + "deleteComment", params)
  14678. .then((res) => {
  14679. this.$message({
  14680. message: "取消点赞成功",
  14681. type: "success",
  14682. });
  14683. this.selectSWorks();
  14684. this.selectStudent();
  14685. })
  14686. .catch((err) => {
  14687. console.error(err);
  14688. });
  14689. }
  14690. },
  14691. deleteComment(wid) {
  14692. this.$confirm("确定删除此评论吗?", "提示", {
  14693. confirmButtonText: "确定",
  14694. cancelButtonText: "取消",
  14695. type: "warning",
  14696. })
  14697. .then(() => {
  14698. let params = {
  14699. id: wid,
  14700. };
  14701. this.ajax
  14702. .get(this.$store.state.api + "deleteComment2", params)
  14703. .then((res) => {
  14704. this.$message({
  14705. message: "删除评论成功",
  14706. type: "success",
  14707. });
  14708. this.selectSWorks();
  14709. this.selectStudent();
  14710. })
  14711. .catch((err) => {
  14712. console.error(err);
  14713. });
  14714. })
  14715. .catch(() => {});
  14716. },
  14717. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14718. this.commentIndexJson = {
  14719. toolIndex: toolIndex,
  14720. wIndex: wIndex,
  14721. gindex: gindex,
  14722. gid: gid,
  14723. };
  14724. this.commentDetail = [];
  14725. this.commentDialogVisible = true;
  14726. this.commentDetail = w;
  14727. if (w.works && w.type == 1) {
  14728. // this.pptImgUrl = "";
  14729. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14730. if (
  14731. a.indexOf(
  14732. w.works
  14733. .split(".")
  14734. [w.works.split(".").length - 1].toLocaleUpperCase()
  14735. ) != -1
  14736. ) {
  14737. let _uuurl = await this.checkLink(w.works);
  14738. console.log(_uuurl)
  14739. this.pptImgUrl =
  14740. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14741. this.showPDF = false;
  14742. } else if (
  14743. w.works
  14744. .split(".")
  14745. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14746. ) {
  14747. this.pptImgUrl = w.works;
  14748. this.showPDF = true;
  14749. }
  14750. } else if (w.works && w.type == 3) {
  14751. this.videoDetail = {};
  14752. this.playerOptions1.sources[0].src = w.works;
  14753. this.videoDetail = this.playerOptions1;
  14754. // this.videoVisible = true;
  14755. } else if (w.works && w.type == 4) {
  14756. this.eScore = JSON.parse(w.works);
  14757. this.rateJson =
  14758. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14759. this.taskCount
  14760. ].toolChoose[toolIndex].rateJson;
  14761. } else if (w.works && w.type == 10) {
  14762. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14763. } else if (w.works && w.type == 13) {
  14764. this.wordJson =
  14765. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14766. this.taskCount
  14767. ].toolChoose[toolIndex].wordJson;
  14768. }
  14769. },
  14770. async openScore(w, index) {
  14771. this.wScore = 0;
  14772. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14773. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14774. this.commentDetail = [];
  14775. if(w.type == 17){
  14776. this.dialogVisibleENScore = true;
  14777. }else{
  14778. this.dialogVisibleScore = true;
  14779. }
  14780. this.commentDetail = w;
  14781. if (w.works && w.type == 1) {
  14782. this.pptImgUrl = "";
  14783. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14784. if (
  14785. a.indexOf(
  14786. w.works
  14787. .split(".")
  14788. [w.works.split(".").length - 1].toLocaleUpperCase()
  14789. ) != -1
  14790. ) {
  14791. let _uuurl = await this.checkLink(w.works);
  14792. console.log(_uuurl)
  14793. this.pptImgUrl =
  14794. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14795. this.showPDF = false;
  14796. } else if (
  14797. w.works
  14798. .split(".")
  14799. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14800. ) {
  14801. this.pptImgUrl = w.works;
  14802. this.showPDF = true;
  14803. }
  14804. } else if (w.works && w.type == 3) {
  14805. this.videoDetail = {};
  14806. this.playerOptions1.sources[0].src = w.works;
  14807. this.videoDetail = this.playerOptions1;
  14808. }else if(w.type == 17){
  14809. let englishVoiceJson = {}
  14810. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14811. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14812. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14813. .toolChoose[index].englishVoiceJson
  14814. : {};
  14815. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14816. }
  14817. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14818. },
  14819. addComment(wid, uid, t,detail) {
  14820. if (this.commentText == "") {
  14821. this.$message.error("请输入评论");
  14822. return;
  14823. }
  14824. let params2 = [
  14825. {
  14826. wid: wid,
  14827. lid: uid,
  14828. t: t,
  14829. },
  14830. ];
  14831. this.ajax
  14832. .post(this.$store.state.api + "getComment", params2)
  14833. .then((res) => {
  14834. if (res.data[0].length > 0) {
  14835. this.$message.error("一个作业只能评论一条");
  14836. } else {
  14837. let params = [
  14838. {
  14839. wid: wid,
  14840. lid: uid,
  14841. t: t,
  14842. c: this.commentText,
  14843. },
  14844. ];
  14845. this.ajax
  14846. .post(this.$store.state.api + "insertComment", params)
  14847. .then((res) => {
  14848. this.$message({
  14849. message: "评论成功",
  14850. type: "success",
  14851. });
  14852. this.commentText = "";
  14853. this.selectSWorks();
  14854. this.selectStudent();
  14855. if(this.tType!=2){
  14856. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14857. }
  14858. })
  14859. .catch((err) => {
  14860. this.$message.error("评论失败");
  14861. console.error(err);
  14862. });
  14863. }
  14864. })
  14865. .catch((err) => {
  14866. // this.$message.error("评论失败");
  14867. console.error(err);
  14868. });
  14869. },
  14870. scoreWork(wid,sName) {
  14871. if (this.wScore == 0) {
  14872. this.$message.error("请评分");
  14873. return;
  14874. }
  14875. let params = [
  14876. {
  14877. wid: wid,
  14878. score: JSON.stringify({
  14879. wScore: this.wScore,
  14880. detail: this.scoreDetail,
  14881. }),
  14882. },
  14883. ];
  14884. this.ajax
  14885. .post(this.$store.state.api + "scoreWork", params)
  14886. .then((res) => {
  14887. this.$message({
  14888. message: "评分成功",
  14889. type: "success",
  14890. });
  14891. this.wScore = 0;
  14892. this.scoreDetail = "";
  14893. this.dialogVisibleScore = false;
  14894. this.selectSWorks();
  14895. this.selectStudent();
  14896. if(this.tType!=2){
  14897. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14898. }
  14899. })
  14900. .catch((err) => {
  14901. this.$message.error("评分失败");
  14902. console.error(err);
  14903. });
  14904. },
  14905. openXz(w, i) {
  14906. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14907. .taskJson[this.taskCount].toolChoose[i].selectJson
  14908. ? JSON.parse(
  14909. JSON.stringify(
  14910. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14911. this.taskCount
  14912. ].toolChoose[i].selectJson
  14913. )
  14914. )
  14915. : { url: "", select: [], answer: [] };
  14916. var a = w.works.split(",");
  14917. for (var k = 0; k < a.length; k++) {
  14918. a[k] = parseInt(a[k]);
  14919. }
  14920. this.selectAnswer = { answer: a, stu: w.sName };
  14921. this.isSelect = true;
  14922. this.dialogVisibleSelect = true;
  14923. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14924. },
  14925. openSen(w, i) {
  14926. this.sentenceList1 = JSON.parse(w.works);
  14927. this.sentenceList1.stuName = w.sName;
  14928. this.dialogVisibleSentence1 = true;
  14929. },
  14930. openPj(w, toolindex) {
  14931. this.isStar = true;
  14932. this.eScore = JSON.parse(w);
  14933. this.rateJson =
  14934. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14935. this.taskCount
  14936. ].toolChoose[toolindex].rateJson;
  14937. this.studentEvalDialogVisible = true;
  14938. },
  14939. openEnglishEva(id,i){
  14940. let params = {
  14941. wid: id
  14942. };
  14943. this.ajax
  14944. .get(this.$store.state.api + "selectEngWork", params)
  14945. .then((res) => {
  14946. this.evaEngJson.message = res.data[0][0];
  14947. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14948. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14949. .toolChoose[i].englishList;
  14950. this.engEvaDialogVisible = true;
  14951. })
  14952. .catch((err) => {
  14953. console.error(err);
  14954. });
  14955. },
  14956. deleteWorks(id) {
  14957. this.$confirm("确定删除此作业吗?", "提示", {
  14958. confirmButtonText: "确定",
  14959. cancelButtonText: "取消",
  14960. type: "warning",
  14961. })
  14962. .then(() => {
  14963. let params = [
  14964. {
  14965. id: id,
  14966. },
  14967. ];
  14968. this.ajax
  14969. .post(this.$store.state.api + "deleteCourseWork", params)
  14970. .then((res) => {
  14971. this.$message({
  14972. message: "删除成功",
  14973. type: "success",
  14974. });
  14975. this.selectStudent();
  14976. this.selectSWorks();
  14977. this.selectSLook();
  14978. })
  14979. .catch((err) => {
  14980. this.$message.error("网络异常");
  14981. console.error(err);
  14982. });
  14983. })
  14984. .catch(() => {});
  14985. },
  14986. selectSWorks(gindex) {
  14987. //教师查看全部作业
  14988. let params = {
  14989. cid: this.id,
  14990. s: this.courseType,
  14991. t: this.taskCount,
  14992. };
  14993. this.ajax
  14994. .get(this.$store.state.api + "selectSWorks", params)
  14995. .then((res) => {
  14996. var a =
  14997. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14998. this.taskCount
  14999. ].toolChoose;
  15000. var b = res.data[0];
  15001. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15002. var y = [
  15003. "AVI",
  15004. "NAVI",
  15005. "MPEG",
  15006. "ASF",
  15007. "MOV",
  15008. "WMV",
  15009. "3GP",
  15010. "RM",
  15011. "RMVB",
  15012. "FLV",
  15013. "F4V",
  15014. "H.264",
  15015. "H.265",
  15016. "REAL VIDEO",
  15017. "MKV",
  15018. "WebM",
  15019. "HDDVD",
  15020. "MP4",
  15021. "MPG",
  15022. "M4V",
  15023. "MGV",
  15024. "OGV",
  15025. "QTM",
  15026. "STR",
  15027. "AMC",
  15028. "DVX",
  15029. "EVO",
  15030. "DAT",
  15031. "OGG",
  15032. "OGM",
  15033. ];
  15034. var d = res.data[1];
  15035. var e = res.data[2];
  15036. var f = res.data[3];
  15037. let _worksStudent = [];
  15038. var _worksStudent2 = [];
  15039. for (var i = 0; i < a.length; i++) {
  15040. _worksStudent[i] = [];
  15041. _worksStudent2[i] = [];
  15042. if (
  15043. !this.isCloseList[i] ||
  15044. this.isCloseList[i].isClose == undefined
  15045. ) {
  15046. this.isCloseList[i] = { isClose: 0 };
  15047. }
  15048. this.groupStudent[i] = [];
  15049. this.groupStudentUid[i] = [];
  15050. if (this.isGroup) {
  15051. for (
  15052. var groupI = 0;
  15053. groupI < this.courseGroup.group.length;
  15054. groupI++
  15055. ) {
  15056. this.courseGroup.group[groupI].works[i] = [];
  15057. }
  15058. }
  15059. this.isWorksS[i] = [];
  15060. this.checkJson[i] = [];
  15061. if (a[i].tool[0] == 49) {
  15062. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15063. this.groupStudent[i][gA] = [];
  15064. this.groupStudentUid[i][gA] = [];
  15065. _worksStudent[i][gA] = [];
  15066. _worksStudent2[i][gA] = [];
  15067. this.isCloseList[i][gA] = [];
  15068. for (var g = 0; g < f.length; g++) {
  15069. if (
  15070. f[g].ttype == 2 &&
  15071. this.tcid &&
  15072. this.arrayToArray(
  15073. (f[g].classid ? f[g].classid.split(",") : []),
  15074. this.tcid.split(",")
  15075. ).length == 0
  15076. ) {
  15077. continue;
  15078. }
  15079. let _classId = this.arrayToArray(
  15080. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15081. this.classId ? this.classId.split(",") : []
  15082. )
  15083. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15084. (f[g].classid ? f[g].classid.split(",") : []),
  15085. this.tcid.split(",")
  15086. ).length !== 0 || this.arrayToArray(
  15087. (f[g].classid ? f[g].classid.split(",") : []),
  15088. _classId
  15089. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15090. this.groupStudent[i][gA].push(f[g]);
  15091. this.groupStudentUid[i][gA].push(f[g].userid);
  15092. }
  15093. }
  15094. }
  15095. this.$forceUpdate();
  15096. }
  15097. for (var j = 0; j < b.length; j++) {
  15098. if (
  15099. b[j].ttype == 2 &&
  15100. this.tcid &&
  15101. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15102. .length == 0
  15103. ) {
  15104. continue;
  15105. }
  15106. var likesCount = 0;
  15107. var commentCount = 0;
  15108. var isLikes = false;
  15109. var commentJson = [];
  15110. var likeJson = [];
  15111. var data = b[j];
  15112. if (i == b[j].tool) {
  15113. if (data.type == 2 && a[i].tool[0] == 4) {
  15114. // if(JSON.parse(data.content)[0].anwer){
  15115. var checkL =
  15116. JSON.parse(data.content)[0].anwer instanceof Array
  15117. ? JSON.parse(data.content)[0].anwer
  15118. : JSON.parse(data.content)[0].anwer.split(",");
  15119. for (var z = 0; z < checkL.length; z++) {
  15120. if (!this.checkJson[i][z]) {
  15121. this.checkJson[i].push({
  15122. checkCount: [],
  15123. checkPerson: [],
  15124. rightPerson: [],
  15125. });
  15126. }
  15127. if (!this.checkJson[i][z].checkCount.length) {
  15128. this.checkJson[i][z].checkCount = [];
  15129. let _askItemCount = JSON.parse(data.content)[0].askJson
  15130. .askJson[z].askItem;
  15131. for (var aic = 0; aic < _askItemCount; aic++) {
  15132. this.checkJson[i][z].checkCount.push(0);
  15133. }
  15134. }
  15135. if (checkL[z] instanceof Array) {
  15136. if (
  15137. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15138. checkL[z].sort().join(",")
  15139. ) {
  15140. this.checkJson[i][z].rightPerson.push(data.name);
  15141. }
  15142. for (var q = 0; q < checkL[z].length; q++) {
  15143. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15144. ? this.checkJson[i][z].checkPerson[
  15145. parseInt(checkL[z][q])
  15146. ].push(data.name)
  15147. : (this.checkJson[i][z].checkPerson[
  15148. parseInt(checkL[z][q])
  15149. ] = [data.name]);
  15150. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15151. ? this.checkJson[i][z].checkCount[
  15152. parseInt(checkL[z][q])
  15153. ]++
  15154. : (this.checkJson[i][z].checkCount[
  15155. parseInt(checkL[z][q])
  15156. ] = 1);
  15157. }
  15158. } else {
  15159. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15160. this.checkJson[i][z].rightPerson.push(data.name);
  15161. }
  15162. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15163. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15164. ? this.checkJson[i][z].checkPerson[
  15165. parseInt(checkL[z])
  15166. ].push(data.name)
  15167. : (this.checkJson[i][z].checkPerson[
  15168. parseInt(checkL[z])
  15169. ] = [data.name]);
  15170. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15171. ? this.checkJson[i][z].checkCount[
  15172. parseInt(checkL[z])
  15173. ]++
  15174. : (this.checkJson[i][z].checkCount[
  15175. parseInt(checkL[z])
  15176. ] = 1);
  15177. }
  15178. }
  15179. }
  15180. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15181. var checkL = JSON.parse(data.content)[0].anwer;
  15182. for (var z = 0; z < checkL.length; z++) {
  15183. if (!this.checkJson[i][z]) {
  15184. this.checkJson[i].push({
  15185. checkCount: [],
  15186. checkPerson: [],
  15187. rightPerson: [],
  15188. });
  15189. }
  15190. if (!this.checkJson[i][z].checkCount.length) {
  15191. this.checkJson[i][z].checkCount = [];
  15192. let _askItemCount = JSON.parse(data.content)[0].testJson
  15193. .testJson[z].testItem;
  15194. for (var aic = 0; aic < _askItemCount; aic++) {
  15195. this.checkJson[i][z].checkCount.push(0);
  15196. }
  15197. }
  15198. if (checkL[z] instanceof Array) {
  15199. if (
  15200. JSON.parse(data.content)[0]
  15201. .testJson.testJson[z].answer.sort()
  15202. .join(",") == checkL[z].sort().join(",")
  15203. ) {
  15204. this.checkJson[i][z].rightPerson.push(data.name);
  15205. }
  15206. for (var q = 0; q < checkL[z].length; q++) {
  15207. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15208. ? this.checkJson[i][z].checkPerson[
  15209. parseInt(checkL[z][q])
  15210. ].push(data.name)
  15211. : (this.checkJson[i][z].checkPerson[
  15212. parseInt(checkL[z][q])
  15213. ] = [data.name]);
  15214. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15215. ? this.checkJson[i][z].checkCount[
  15216. parseInt(checkL[z][q])
  15217. ]++
  15218. : (this.checkJson[i][z].checkCount[
  15219. parseInt(checkL[z][q])
  15220. ] = 1);
  15221. }
  15222. } else {
  15223. if (
  15224. JSON.parse(data.content)[0].testJson.testJson[z]
  15225. .answer == checkL[z]
  15226. ) {
  15227. this.checkJson[i][z].rightPerson.push(data.name);
  15228. }
  15229. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15230. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15231. ? this.checkJson[i][z].checkPerson[
  15232. parseInt(checkL[z])
  15233. ].push(data.name)
  15234. : (this.checkJson[i][z].checkPerson[
  15235. parseInt(checkL[z])
  15236. ] = [data.name]);
  15237. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15238. ? this.checkJson[i][z].checkCount[
  15239. parseInt(checkL[z])
  15240. ]++
  15241. : (this.checkJson[i][z].checkCount[
  15242. parseInt(checkL[z])
  15243. ] = 1);
  15244. }
  15245. }
  15246. }
  15247. } else if (data.type == 9 && a[i].tool[0] == 47) {
  15248. var checkL = JSON.parse(data.content);
  15249. for (var z = 0; z < checkL.length; z++) {
  15250. if (!this.checkJson[i][z]) {
  15251. this.checkJson[i].push({
  15252. checkCount: [],
  15253. checkPerson: [],
  15254. rightPerson: [],
  15255. });
  15256. }
  15257. this.checkJson[i][z].checkPerson.push(data.name);
  15258. if (
  15259. checkL[z].chooseSenList.toString() ==
  15260. checkL[z].rightAnswer.toString()
  15261. ) {
  15262. this.checkJson[i][z].rightPerson.push(data.name);
  15263. }
  15264. }
  15265. }
  15266. for (var k = 0; k < d.length; k++) {
  15267. //点赞
  15268. if (d[k].workId == b[j].id) {
  15269. likesCount++;
  15270. likeJson.push(d[k])
  15271. if (d[k].likesId == this.userid) {
  15272. isLikes = true;
  15273. }
  15274. }
  15275. }
  15276. for (var l = 0; l < e.length; l++) {
  15277. //评论
  15278. if (e[l].workId == b[j].id) {
  15279. if (e[l].comment != "") {
  15280. commentCount++;
  15281. commentJson.push({
  15282. commentText: e[l].comment,
  15283. commentTime: e[l].commentTime,
  15284. commentPeople: e[l].commentPeople,
  15285. userid: e[l].userid,
  15286. wid: e[l].id,
  15287. });
  15288. }
  15289. }
  15290. }
  15291. if (
  15292. (b[j].type == 1 ||
  15293. b[j].type == 4 ||
  15294. b[j].type == 5 ||
  15295. b[j].type == 6 ||
  15296. b[j].type == 12 ||
  15297. b[j].type == 7) &&
  15298. a[i].tool[0] != 15 &&
  15299. a[i].tool[0] != 4 &&
  15300. a[i].tool[0] != 45 &&
  15301. a[i].tool[0] != 50 &&
  15302. a[i].tool[0] != 32 &&
  15303. a[i].tool[0] != 57 &&
  15304. a[i].tool[0] != 52
  15305. ) {
  15306. if (
  15307. c.indexOf(
  15308. b[j].content
  15309. .split(".")
  15310. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15311. ) != -1 &&
  15312. a[i].tool[0] == 16 &&
  15313. b[j].atool != 50
  15314. ) {
  15315. let _works = {
  15316. userid: b[j].userid,
  15317. ateacher: b[j].ateacher,
  15318. wid: b[j].id,
  15319. works: b[j].content,
  15320. sName: b[j].name,
  15321. type: 1,
  15322. ttype:b[j].ttype,
  15323. time: b[j].time,
  15324. score: b[j].score,
  15325. img: b[j].img,
  15326. likesCount: likesCount,
  15327. commentCount: commentCount,
  15328. isLikes: isLikes,
  15329. commentJson: commentJson,
  15330. likeJson:likeJson
  15331. };
  15332. if (this.isGroup) {
  15333. let isGw = 1;
  15334. for (
  15335. var groupI = 0;
  15336. groupI < this.courseGroup.group.length;
  15337. groupI++
  15338. ) {
  15339. let gid = this.courseGroup.group[groupI].id;
  15340. if (
  15341. this.courseGroupStudentUid[gid].indexOf(
  15342. b[j].userid
  15343. ) != -1
  15344. ) {
  15345. isGw = 2;
  15346. this.courseGroup.group[groupI].works[i].push(_works);
  15347. break;
  15348. }
  15349. }
  15350. if (isGw == 1) {
  15351. _worksStudent[i].push(_works);
  15352. }
  15353. } else {
  15354. _worksStudent[i].push(_works);
  15355. }
  15356. _worksStudent2[i].push(_works);
  15357. this.isWorksS[i].push({
  15358. uid: b[j].userid,
  15359. sName: b[j].name,
  15360. });
  15361. } else if (
  15362. y.indexOf(
  15363. b[j].content
  15364. .split(".")
  15365. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15366. ) != -1 &&
  15367. a[i].tool[0] == 16 &&
  15368. b[j].atool != 50
  15369. ) {
  15370. let _works = {
  15371. userid: b[j].userid,
  15372. ateacher: b[j].ateacher,
  15373. wid: b[j].id,
  15374. works: b[j].content,
  15375. sName: b[j].name,
  15376. type: 3,
  15377. ttype:b[j].ttype,
  15378. time: b[j].time,
  15379. score: b[j].score,
  15380. img: b[j].img,
  15381. likesCount: likesCount,
  15382. commentCount: commentCount,
  15383. isLikes: isLikes,
  15384. commentJson: commentJson,
  15385. likeJson:likeJson
  15386. };
  15387. if (this.isGroup) {
  15388. let isGw = 1;
  15389. for (
  15390. var groupI = 0;
  15391. groupI < this.courseGroup.group.length;
  15392. groupI++
  15393. ) {
  15394. let gid = this.courseGroup.group[groupI].id;
  15395. if (
  15396. this.courseGroupStudentUid[gid].indexOf(
  15397. b[j].userid
  15398. ) != -1
  15399. ) {
  15400. isGw = 2;
  15401. this.courseGroup.group[groupI].works[i].push(_works);
  15402. break;
  15403. }
  15404. }
  15405. if (isGw == 1) {
  15406. _worksStudent[i].push(_works);
  15407. }
  15408. } else {
  15409. _worksStudent[i].push(_works);
  15410. }
  15411. _worksStudent2[i].push(_works);
  15412. this.isWorksS[i].push({
  15413. uid: b[j].userid,
  15414. sName: b[j].name,
  15415. });
  15416. } else if (b[j].type == 6 && b[j].atool != 50) {
  15417. let _works = {
  15418. userid: b[j].userid,
  15419. ateacher: b[j].ateacher,
  15420. wid: b[j].id,
  15421. works: b[j].content,
  15422. sName: b[j].name,
  15423. type: 4,
  15424. ttype:b[j].ttype,
  15425. time: b[j].time,
  15426. score: b[j].score,
  15427. img: b[j].img,
  15428. likesCount: likesCount,
  15429. commentCount: commentCount,
  15430. isLikes: isLikes,
  15431. commentJson: commentJson,
  15432. likeJson:likeJson
  15433. };
  15434. _worksStudent[i].push(_works);
  15435. _worksStudent2[i].push(_works);
  15436. this.isWorksS[i].push({
  15437. uid: b[j].userid,
  15438. sName: b[j].name,
  15439. });
  15440. } else if (b[j].type == 7 && b[j].atool != 50) {
  15441. let _work = {
  15442. userid: b[j].userid,
  15443. ateacher: b[j].ateacher,
  15444. wid: b[j].id,
  15445. works: b[j].content,
  15446. sName: b[j].name,
  15447. type: 5,
  15448. ttype:b[j].ttype,
  15449. time: b[j].time,
  15450. score: b[j].score,
  15451. img: b[j].img,
  15452. likesCount: likesCount,
  15453. commentCount: commentCount,
  15454. isLikes: isLikes,
  15455. commentJson: commentJson,
  15456. likeJson:likeJson
  15457. };
  15458. _worksStudent[i].push(_work);
  15459. _worksStudent2[i].push(_work);
  15460. this.isWorksS[i].push({
  15461. uid: b[j].userid,
  15462. sName: b[j].name,
  15463. });
  15464. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15465. let _works = {
  15466. userid: b[j].userid,
  15467. ateacher: b[j].ateacher,
  15468. wid: b[j].id,
  15469. works: b[j].content,
  15470. sName: b[j].name,
  15471. type: 12,
  15472. ttype:b[j].ttype,
  15473. time: b[j].time,
  15474. score: b[j].score,
  15475. img: b[j].img,
  15476. likesCount: likesCount,
  15477. commentCount: commentCount,
  15478. isLikes: isLikes,
  15479. commentJson: commentJson,
  15480. likeJson:likeJson
  15481. };
  15482. if (this.isGroup) {
  15483. let isGw = 1;
  15484. for (
  15485. var groupI = 0;
  15486. groupI < this.courseGroup.group.length;
  15487. groupI++
  15488. ) {
  15489. let gid = this.courseGroup.group[groupI].id;
  15490. if (
  15491. this.courseGroupStudentUid[gid].indexOf(
  15492. b[j].userid
  15493. ) != -1
  15494. ) {
  15495. isGw = 2;
  15496. this.courseGroup.group[groupI].works[i].push(_works);
  15497. break;
  15498. }
  15499. }
  15500. if (isGw == 1) {
  15501. _worksStudent[i].push(_works);
  15502. }
  15503. } else {
  15504. _worksStudent[i].push(_works);
  15505. }
  15506. _worksStudent2[i].push(_works);
  15507. this.isWorksS[i].push({
  15508. uid: b[j].userid,
  15509. sName: b[j].name,
  15510. });
  15511. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15512. let _works = {
  15513. userid: b[j].userid,
  15514. ateacher: b[j].ateacher,
  15515. wid: b[j].id,
  15516. works: b[j].content,
  15517. sName: b[j].name,
  15518. type: 0,
  15519. ttype:b[j].ttype,
  15520. time: b[j].time,
  15521. score: b[j].score,
  15522. img: b[j].img,
  15523. likesCount: likesCount,
  15524. commentCount: commentCount,
  15525. isLikes: isLikes,
  15526. commentJson: commentJson,
  15527. likeJson:likeJson
  15528. };
  15529. if (this.isGroup) {
  15530. let isGw = 1;
  15531. for (
  15532. var groupI = 0;
  15533. groupI < this.courseGroup.group.length;
  15534. groupI++
  15535. ) {
  15536. let gid = this.courseGroup.group[groupI].id;
  15537. if (
  15538. this.courseGroupStudentUid[gid].indexOf(
  15539. b[j].userid
  15540. ) != -1
  15541. ) {
  15542. isGw = 2;
  15543. this.courseGroup.group[groupI].works[i].push(_works);
  15544. break;
  15545. }
  15546. }
  15547. if (isGw == 1) {
  15548. _worksStudent[i].push(_works);
  15549. }
  15550. } else {
  15551. _worksStudent[i].push(_works);
  15552. }
  15553. _worksStudent2[i].push(_works);
  15554. this.isWorksS[i].push({
  15555. uid: b[j].userid,
  15556. sName: b[j].name,
  15557. });
  15558. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15559. let _works = {
  15560. userid: b[j].userid,
  15561. ateacher: b[j].ateacher,
  15562. wid: b[j].id,
  15563. works: b[j].content,
  15564. sName: b[j].name,
  15565. type: 0,
  15566. ttype:b[j].ttype,
  15567. time: b[j].time,
  15568. score: b[j].score,
  15569. img: b[j].img,
  15570. likesCount: likesCount,
  15571. commentCount: commentCount,
  15572. isLikes: isLikes,
  15573. commentJson: commentJson,
  15574. likeJson:likeJson
  15575. };
  15576. if (this.isGroup) {
  15577. let isGw = 1;
  15578. for (
  15579. var groupI = 0;
  15580. groupI < this.courseGroup.group.length;
  15581. groupI++
  15582. ) {
  15583. let gid = this.courseGroup.group[groupI].id;
  15584. if (
  15585. this.courseGroupStudentUid[gid].indexOf(
  15586. b[j].userid
  15587. ) != -1
  15588. ) {
  15589. isGw = 2;
  15590. this.courseGroup.group[groupI].works[i].push(_works);
  15591. break;
  15592. }
  15593. }
  15594. if (isGw == 1) {
  15595. _worksStudent[i].push(_works);
  15596. }
  15597. } else {
  15598. _worksStudent[i].push(_works);
  15599. }
  15600. _worksStudent2[i].push(_works);
  15601. this.isWorksS[i].push({
  15602. uid: b[j].userid,
  15603. sName: b[j].name,
  15604. });
  15605. }
  15606. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15607. let _works = {
  15608. userid: b[j].userid,
  15609. ateacher: b[j].ateacher,
  15610. wid: b[j].id,
  15611. works: b[j].content,
  15612. sName: b[j].name,
  15613. type: 2,
  15614. ttype:b[j].ttype,
  15615. time: b[j].time,
  15616. score: b[j].score,
  15617. img: b[j].img,
  15618. likesCount: likesCount,
  15619. commentCount: commentCount,
  15620. isLikes: isLikes,
  15621. commentJson: commentJson,
  15622. likeJson:likeJson
  15623. };
  15624. if (this.isGroup) {
  15625. let isGw = 1;
  15626. for (
  15627. var groupI = 0;
  15628. groupI < this.courseGroup.group.length;
  15629. groupI++
  15630. ) {
  15631. let gid = this.courseGroup.group[groupI].id;
  15632. if (
  15633. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15634. -1
  15635. ) {
  15636. isGw = 2;
  15637. this.courseGroup.group[groupI].works[i].push(_works);
  15638. break;
  15639. }
  15640. }
  15641. if (isGw == 1) {
  15642. _worksStudent[i].push(_works);
  15643. }
  15644. } else {
  15645. _worksStudent[i].push(_works);
  15646. }
  15647. _worksStudent2[i].push(_works);
  15648. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15649. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  15650. let _works = {
  15651. userid: b[j].userid,
  15652. ateacher: b[j].ateacher,
  15653. wid: b[j].id,
  15654. works: b[j].content,
  15655. sName: b[j].name,
  15656. type: 20,
  15657. ttype:b[j].ttype,
  15658. time: b[j].time,
  15659. score: b[j].score,
  15660. img: b[j].img,
  15661. likesCount: likesCount,
  15662. commentCount: commentCount,
  15663. isLikes: isLikes,
  15664. commentJson: commentJson,
  15665. likeJson:likeJson
  15666. };
  15667. if (this.isGroup) {
  15668. let isGw = 1;
  15669. for (
  15670. var groupI = 0;
  15671. groupI < this.courseGroup.group.length;
  15672. groupI++
  15673. ) {
  15674. let gid = this.courseGroup.group[groupI].id;
  15675. if (
  15676. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15677. -1
  15678. ) {
  15679. isGw = 2;
  15680. this.courseGroup.group[groupI].works[i].push(_works);
  15681. break;
  15682. }
  15683. }
  15684. if (isGw == 1) {
  15685. _worksStudent[i].push(_works);
  15686. }
  15687. } else {
  15688. _worksStudent[i].push(_works);
  15689. }
  15690. _worksStudent2[i].push(_works);
  15691. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15692. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15693. //问卷
  15694. let _work = {
  15695. userid: b[j].userid,
  15696. ateacher: b[j].ateacher,
  15697. wid: b[j].id,
  15698. works: b[j].content,
  15699. sName: b[j].name,
  15700. type: 2,
  15701. ttype:b[j].ttype,
  15702. time: b[j].time,
  15703. score: b[j].score,
  15704. img: b[j].img,
  15705. likesCount: likesCount,
  15706. commentCount: commentCount,
  15707. isLikes: isLikes,
  15708. commentJson: commentJson,
  15709. likeJson:likeJson
  15710. };
  15711. _worksStudent[i].push(_work);
  15712. _worksStudent2[i].push(_work);
  15713. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15714. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15715. //选择题
  15716. let _work = {
  15717. userid: b[j].userid,
  15718. ateacher: b[j].ateacher,
  15719. wid: b[j].id,
  15720. works: b[j].content,
  15721. sName: b[j].name,
  15722. type: 8,
  15723. ttype:b[j].ttype,
  15724. time: b[j].time,
  15725. score: b[j].score,
  15726. img: b[j].img,
  15727. likesCount: likesCount,
  15728. commentCount: commentCount,
  15729. isLikes: isLikes,
  15730. commentJson: commentJson,
  15731. likeJson:likeJson
  15732. };
  15733. _worksStudent[i].push(_work);
  15734. _worksStudent2[i].push(_work);
  15735. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15736. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15737. //选择题
  15738. let _work = {
  15739. userid: b[j].userid,
  15740. ateacher: b[j].ateacher,
  15741. wid: b[j].id,
  15742. works: b[j].content,
  15743. sName: b[j].name,
  15744. type: 9,
  15745. ttype:b[j].ttype,
  15746. time: b[j].time,
  15747. score: b[j].score,
  15748. img: b[j].img,
  15749. likesCount: likesCount,
  15750. commentCount: commentCount,
  15751. isLikes: isLikes,
  15752. commentJson: commentJson,
  15753. likeJson:likeJson
  15754. };
  15755. _worksStudent[i].push(_work);
  15756. _worksStudent2[i].push(_work);
  15757. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15758. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15759. //选择题
  15760. let _work = {
  15761. userid: b[j].userid,
  15762. ateacher: b[j].ateacher,
  15763. wid: b[j].id,
  15764. works: b[j].content,
  15765. sName: b[j].name,
  15766. type: 10,
  15767. ttype:b[j].ttype,
  15768. time: b[j].time,
  15769. score: b[j].score,
  15770. img: b[j].img,
  15771. likesCount: likesCount,
  15772. commentCount: commentCount,
  15773. isLikes: isLikes,
  15774. commentJson: commentJson,
  15775. likeJson:likeJson
  15776. };
  15777. _worksStudent[i].push(_work);
  15778. _worksStudent2[i].push(_work);
  15779. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15780. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15781. //选择题
  15782. let _work = {
  15783. userid: b[j].userid,
  15784. ateacher: b[j].ateacher,
  15785. wid: b[j].id,
  15786. works: b[j].content,
  15787. sName: b[j].name,
  15788. type: 13,
  15789. ttype:b[j].ttype,
  15790. time: b[j].time,
  15791. score: b[j].score,
  15792. img: b[j].img,
  15793. likesCount: likesCount,
  15794. commentCount: commentCount,
  15795. isLikes: isLikes,
  15796. commentJson: commentJson,
  15797. likeJson:likeJson
  15798. };
  15799. _worksStudent[i].push(_work);
  15800. _worksStudent2[i].push(_work);
  15801. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15802. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15803. //选择题
  15804. let _work = {
  15805. userid: b[j].userid,
  15806. ateacher: b[j].ateacher,
  15807. wid: b[j].id,
  15808. works: b[j].content,
  15809. sName: b[j].name,
  15810. type: 16,
  15811. ttype:b[j].ttype,
  15812. time: b[j].time,
  15813. score: b[j].score,
  15814. img: b[j].img,
  15815. likesCount: likesCount,
  15816. commentCount: commentCount,
  15817. isLikes: isLikes,
  15818. commentJson: commentJson,
  15819. aiCode: b[j].aiCode,
  15820. teacherCode: b[j].teacherCode,
  15821. likeJson:likeJson
  15822. };
  15823. _worksStudent[i].push(_work);
  15824. _worksStudent2[i].push(_work);
  15825. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15826. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15827. //英语口语
  15828. let _work = {
  15829. userid: b[j].userid,
  15830. ateacher: b[j].ateacher,
  15831. wid: b[j].id,
  15832. works: b[j].content,
  15833. sName: b[j].name,
  15834. type: 17,
  15835. ttype:b[j].ttype,
  15836. time: b[j].time,
  15837. score: b[j].score,
  15838. img: b[j].img,
  15839. likesCount: likesCount,
  15840. commentCount: commentCount,
  15841. isLikes: isLikes,
  15842. commentJson: commentJson,
  15843. likeJson:likeJson
  15844. };
  15845. _worksStudent[i].push(_work);
  15846. _worksStudent2[i].push(_work);
  15847. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15848. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15849. //交互视频
  15850. let _work = {
  15851. userid: b[j].userid,
  15852. ateacher: b[j].ateacher,
  15853. wid: b[j].id,
  15854. works: b[j].content,
  15855. sName: b[j].name,
  15856. type: 14,
  15857. ttype:b[j].ttype,
  15858. time: b[j].time,
  15859. score: b[j].score,
  15860. img: b[j].img,
  15861. likesCount: likesCount,
  15862. commentCount: commentCount,
  15863. isLikes: isLikes,
  15864. commentJson: commentJson,
  15865. likeJson:likeJson
  15866. };
  15867. _worksStudent[i].push(_work);
  15868. _worksStudent2[i].push(_work);
  15869. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15870. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15871. let _gindex = JSON.parse(b[j].content);
  15872. if (
  15873. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15874. b[j].userid
  15875. ) != -1
  15876. ) {
  15877. let _work = {
  15878. userid: b[j].userid,
  15879. ateacher: b[j].ateacher,
  15880. wid: b[j].id,
  15881. works: _gindex.url,
  15882. sName: b[j].name,
  15883. type: _gindex.type,
  15884. ttype:b[j].ttype,
  15885. time: b[j].time,
  15886. score: b[j].score,
  15887. img: b[j].img,
  15888. likesCount: likesCount,
  15889. commentCount: commentCount,
  15890. isLikes: isLikes,
  15891. commentJson: commentJson,
  15892. likeJson:likeJson
  15893. };
  15894. _worksStudent[i][_gindex.groupIndex].push(_work);
  15895. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15896. }
  15897. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15898. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15899. let _work = {
  15900. userid: b[j].userid,
  15901. ateacher: b[j].ateacher,
  15902. wid: b[j].id,
  15903. works: b[j].content,
  15904. sName: b[j].name ? b[j].name : b[j].userid,
  15905. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15906. ttype:b[j].ttype,
  15907. time: b[j].time,
  15908. score: b[j].score,
  15909. img: b[j].img,
  15910. likesCount: likesCount,
  15911. commentCount: commentCount,
  15912. isLikes: isLikes,
  15913. commentJson: commentJson,
  15914. likeJson:likeJson
  15915. };
  15916. _worksStudent[i].push(_work);
  15917. _worksStudent2[i].push(_work);
  15918. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15919. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15920. let _work = {
  15921. userid: b[j].userid,
  15922. ateacher: b[j].ateacher,
  15923. wid: b[j].id,
  15924. works: b[j].content,
  15925. sName: b[j].name ? b[j].name : b[j].userid,
  15926. type: 12,
  15927. ttype:b[j].ttype,
  15928. time: b[j].time,
  15929. score: b[j].score,
  15930. img: b[j].img,
  15931. likesCount: likesCount,
  15932. commentCount: commentCount,
  15933. isLikes: isLikes,
  15934. commentJson: commentJson,
  15935. likeJson:likeJson
  15936. };
  15937. _worksStudent[i].push(_work);
  15938. _worksStudent2[i].push(_work);
  15939. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15940. } else if (
  15941. a[i].tool[0] == 57 &&
  15942. b[j].atool == 57 &&
  15943. b[j].type == 12
  15944. ) {
  15945. let _work = {
  15946. userid: b[j].userid,
  15947. ateacher: b[j].ateacher,
  15948. wid: b[j].id,
  15949. works: b[j].content,
  15950. sName: b[j].name ? b[j].name : b[j].userid,
  15951. type: 12,
  15952. ttype:b[j].ttype,
  15953. time: b[j].time,
  15954. score: b[j].score,
  15955. img: b[j].img,
  15956. likesCount: likesCount,
  15957. commentCount: commentCount,
  15958. isLikes: isLikes,
  15959. commentJson: commentJson,
  15960. likeJson:likeJson
  15961. };
  15962. _worksStudent[i].push(_work);
  15963. _worksStudent2[i].push(_work);
  15964. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15965. } else if (
  15966. a[i].tool[0] == 57 &&
  15967. b[j].atool == 57 &&
  15968. b[j].type == 15
  15969. ) {
  15970. let _work = {
  15971. userid: b[j].userid,
  15972. ateacher: b[j].ateacher,
  15973. wid: b[j].id,
  15974. works: b[j].content,
  15975. sName: b[j].name ? b[j].name : b[j].userid,
  15976. type: 15,
  15977. ttype:b[j].ttype,
  15978. time: b[j].time,
  15979. score: b[j].score,
  15980. img: b[j].img,
  15981. likesCount: likesCount,
  15982. commentCount: commentCount,
  15983. isLikes: isLikes,
  15984. commentJson: commentJson,
  15985. likeJson:likeJson
  15986. };
  15987. _worksStudent[i].push(_work);
  15988. _worksStudent2[i].push(_work);
  15989. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15990. }
  15991. }
  15992. }
  15993. if (_worksStudent[i] && _worksStudent[i].length) {
  15994. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15995. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15996. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15997. var scoreA = parseFloat(jscoreA);
  15998. var scoreB = parseFloat(jscoreB);
  15999. if (scoreA == scoreB) {
  16000. return b.likesCount - a.likesCount;
  16001. }
  16002. return scoreB - scoreA;
  16003. });
  16004. if (this.isGroup) {
  16005. for (
  16006. var groupI = 0;
  16007. groupI < this.courseGroup.group.length;
  16008. groupI++
  16009. ) {
  16010. this.courseGroup.group[groupI].works[i] =
  16011. this.courseGroup.group[groupI].works[i].sort(function (
  16012. a,
  16013. b
  16014. ) {
  16015. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16016. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16017. var scoreA = parseFloat(jscoreA);
  16018. var scoreB = parseFloat(jscoreB);
  16019. if (scoreA == scoreB) {
  16020. return b.likesCount - a.likesCount;
  16021. }
  16022. return scoreB - scoreA;
  16023. });
  16024. }
  16025. }
  16026. }
  16027. }
  16028. this.timeWorkList = _worksStudent2;
  16029. for (var i = 0; i < a.length; i++) {
  16030. for (var j = 0; j < b.length; j++) {
  16031. var data = b[j];
  16032. if (i == b[j].tool) {
  16033. if (data.type == 2 || data.type == 8) {
  16034. for (var z = 0; z < this.checkJson[i].length; z++) {
  16035. this.checkJson[i][z].checkPerent = [];
  16036. this.checkJson[i][z].right = Math.round(
  16037. (this.checkJson[i][z].rightPerson.length /
  16038. parseInt(_worksStudent[i].length)) *
  16039. 100
  16040. );
  16041. let aaaa = this.checkJson[i][z];
  16042. for (
  16043. var k = 0;
  16044. k < this.checkJson[i][z].checkCount.length;
  16045. k++
  16046. ) {
  16047. this.checkJson[i][z].checkPerent.push(
  16048. Math.round(
  16049. (this.checkJson[i][z].checkCount[k] /
  16050. parseInt(_worksStudent[i].length)) *
  16051. 100
  16052. )
  16053. );
  16054. }
  16055. }
  16056. } else if (data.type == 9) {
  16057. for (var z = 0; z < this.checkJson[i].length; z++) {
  16058. this.checkJson[i][z].checkPerent = [];
  16059. this.checkJson[i][z].right = Math.round(
  16060. (this.checkJson[i][z].rightPerson.length /
  16061. this.checkJson[i][z].checkPerson.length) *
  16062. 100
  16063. );
  16064. }
  16065. }
  16066. }
  16067. }
  16068. }
  16069. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16070. this.joinGroup(gindex);
  16071. }
  16072. this.worksStudent = _worksStudent;
  16073. this.selectWorksStudent();
  16074. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16075. this.$nextTick(()=>{
  16076. setTimeout(()=>{
  16077. setTimeout(()=>{
  16078. this.panToolHeight('tool-'+ci);
  16079. }, 500)
  16080. }, 0)
  16081. })
  16082. }
  16083. })
  16084. .catch((err) => {
  16085. console.error(err);
  16086. });
  16087. },
  16088. pngToWhiteBg(file) {
  16089. const _file = file;
  16090. let read = new FileReader();
  16091. read.readAsDataURL(file); // 文件转base64
  16092. return new Promise((resolve, reject) => {
  16093. read.onload = (e) => {
  16094. let img = new Image();
  16095. img.src = e.target.result;
  16096. img.onload = async () => {
  16097. // 生成canvas
  16098. let canvas = document.createElement("canvas");
  16099. let context = canvas.getContext("2d");
  16100. // 绘制图片到canvas上
  16101. canvas.width = img.width;
  16102. canvas.height = img.height;
  16103. // 在canvas绘制前填充白色背景
  16104. context.fillStyle = "#fff";
  16105. context.fillRect(0, 0, canvas.width, canvas.height);
  16106. context.drawImage(img, 0, 0);
  16107. let base64 = canvas.toDataURL(file["type"], 1);
  16108. let newFile = this.dataUrlToFile(base64, _file);
  16109. resolve(newFile);
  16110. };
  16111. };
  16112. });
  16113. },
  16114. dataUrlToFile(dataurl, file) {
  16115. let arr = dataurl.split(","),
  16116. mime = arr[0].match(/:(.*?);/)[1],
  16117. bstr = atob(arr[1]),
  16118. n = bstr.length,
  16119. u8arr = new Uint8Array(n);
  16120. while (n--) {
  16121. u8arr[n] = bstr.charCodeAt(n);
  16122. }
  16123. // return new Blob([u8arr], { type: mime });
  16124. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16125. type: mime,
  16126. });
  16127. },
  16128. async beforeUpload1(event, type, i) {
  16129. // this.$message.success('进入上传')
  16130. var file = "";
  16131. if (type == 5) {
  16132. file = event;
  16133. } else {
  16134. file = event.target.files[0];
  16135. }
  16136. var credentials = {
  16137. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16138. secretAccessKey: "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",
  16139. }; //秘钥形式的登录上传
  16140. window.AWS.config.update(credentials);
  16141. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16142. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16143. var _this = this;
  16144. _this.progress = 0;
  16145. _this.proVisible = true;
  16146. _this.isFinishSize = 0;
  16147. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16148. var b = [
  16149. "DOC",
  16150. "DOCX",
  16151. "DOCM",
  16152. "DOTM",
  16153. "DOTX",
  16154. "PPTX",
  16155. "PPSX",
  16156. "PPT",
  16157. "PPS",
  16158. "PPTM",
  16159. "POTM",
  16160. "PPAM",
  16161. "POTX",
  16162. "PPSM",
  16163. ];
  16164. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16165. var photoA = [
  16166. "BMP",
  16167. "GIF",
  16168. "PNG",
  16169. "JPEG",
  16170. "JPEG",
  16171. "JPG",
  16172. "TIF",
  16173. "PCX",
  16174. "TGA",
  16175. "EXIF",
  16176. "FPX",
  16177. "SVG",
  16178. "APNG",
  16179. ];
  16180. // if (
  16181. // b.indexOf(
  16182. // file.name
  16183. // .split(".")
  16184. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16185. // ) != -1
  16186. // ) {
  16187. // if (file.size / 1024 / 1024 > 10) {
  16188. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16189. // return;
  16190. // }
  16191. // } else if (
  16192. // excelA.indexOf(
  16193. // file.name
  16194. // .split(".")
  16195. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16196. // ) != "-1"
  16197. // ) {
  16198. // if (file.size / 1024 / 1024 > 5) {
  16199. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16200. // return;
  16201. // }
  16202. // }
  16203. if (
  16204. photoA.indexOf(
  16205. file.name
  16206. .split(".")
  16207. [file.name.split(".").length - 1].toLocaleUpperCase()
  16208. ) != -1 &&
  16209. type != 4
  16210. ) {
  16211. // const blob = await imageConversion.compress(file, 0.8)
  16212. file = await this.pngToWhiteBg(file);
  16213. const blob = await imageConversion.compressAccurately(file, 256);
  16214. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16215. file = new File([blob], file.name, { type: file.type });
  16216. }
  16217. if (file) {
  16218. var params = {
  16219. Key:
  16220. file.name.split(".")[0] +
  16221. new Date().getTime() +
  16222. "." +
  16223. file.name.split(".")[file.name.split(".").length - 1],
  16224. ContentType: file.type,
  16225. Body: file,
  16226. "Access-Control-Allow-Credentials": "*",
  16227. ACL: "public-read",
  16228. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16229. var options = {
  16230. // partSize: 2048 * 1024 * 1024,
  16231. partSize: 1024 * 1024 * 1024,
  16232. queueSize: 2,
  16233. leavePartsOnError: true,
  16234. };
  16235. bucket
  16236. .upload(params, options)
  16237. .on("httpUploadProgress", function (evt) {
  16238. //这里可以写进度条
  16239. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16240. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  16241. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  16242. })
  16243. .send(function (err, data) {
  16244. _this.progress = 100;
  16245. _this.isFinishSize = _this.isAllSize;
  16246. setTimeout(() => {
  16247. _this.proVisible = false;
  16248. }, 1000);
  16249. if (err) {
  16250. var a = _this.$refs.upload1.uploadFiles;
  16251. a.splice(a.length - 1, a.length);
  16252. _this.$message.error("上传失败");
  16253. } else {
  16254. // _this.$message.success('上传成功')
  16255. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16256. var c = [
  16257. "AVI",
  16258. "NAVI",
  16259. "MPEG",
  16260. "ASF",
  16261. "MOV",
  16262. "WMV",
  16263. "3GP",
  16264. "RM",
  16265. "RMVB",
  16266. "FLV",
  16267. "F4V",
  16268. "H.264",
  16269. "H.265",
  16270. "REAL VIDEO",
  16271. "MKV",
  16272. "WebM",
  16273. "HDDVD",
  16274. "MP4",
  16275. "MPG",
  16276. "M4V",
  16277. "MGV",
  16278. "OGV",
  16279. "QTM",
  16280. "STR",
  16281. "AMC",
  16282. "DVX",
  16283. "EVO",
  16284. "DAT",
  16285. "OGG",
  16286. "OGM",
  16287. ];
  16288. if (type == 1) {
  16289. _this.studyJuri[0].cover.push({
  16290. name: file.name,
  16291. url: data.Location,
  16292. uid: file.uid,
  16293. });
  16294. if (
  16295. c.indexOf(
  16296. _this.studyJuri[0].cover[0].url
  16297. .split(".")
  16298. [
  16299. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16300. ].toLocaleUpperCase()
  16301. ) != -1
  16302. ) {
  16303. _this.fileType = 2;
  16304. } else if (
  16305. b.indexOf(
  16306. _this.studyJuri[0].cover[0].url
  16307. .split(".")
  16308. [
  16309. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16310. ].toLocaleUpperCase()
  16311. ) != -1
  16312. ) {
  16313. _this.fileType = 1;
  16314. } else if (
  16315. photoA.indexOf(
  16316. _this.studyJuri[0].cover[0].url
  16317. .split(".")
  16318. [
  16319. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16320. ].toLocaleUpperCase()
  16321. ) != -1
  16322. ) {
  16323. _this.fileType = 0;
  16324. } else {
  16325. _this.fileType = 3;
  16326. }
  16327. _this.imgChange(null, null, type);
  16328. } else if (type == 2) {
  16329. _this.upToolImg = data.Location;
  16330. _this.imgChange(null, null, type);
  16331. _this.addCourseWorks(i);
  16332. } else if (type == 4) {
  16333. _this.addPz("3", data.Location);
  16334. } else if (type == 5) {
  16335. _this.addImgDrawImG(data.Location);
  16336. } else if (type == 6) {
  16337. var _ftype = 1;
  16338. if (
  16339. c.indexOf(
  16340. data.Location.split(".")[
  16341. data.Location.split(".").length - 1
  16342. ].toLocaleUpperCase()
  16343. ) != -1
  16344. ) {
  16345. _ftype = 5;
  16346. } else if (
  16347. b.indexOf(
  16348. data.Location.split(".")[
  16349. data.Location.split(".").length - 1
  16350. ].toLocaleUpperCase()
  16351. ) != -1
  16352. ) {
  16353. _ftype = 4;
  16354. } else {
  16355. _ftype = 1;
  16356. }
  16357. _this.plworkFile.push({
  16358. name: file.name,
  16359. url: data.Location,
  16360. uid: file.uid,
  16361. fileType: _ftype,
  16362. username:
  16363. _this.plworkFile.length > 10
  16364. ? _this.plworkFile.length + 1
  16365. : "0" + (_this.plworkFile.length + 1),
  16366. });
  16367. } else if (type == 7) {
  16368. _this.addCourseWorksGong(i, data.Location, 32);
  16369. } else if (type == 8) {
  16370. _this.addCourseWorksGong(i, data.Location, 57);
  16371. }
  16372. _this.imgChange(null, null, type);
  16373. console.log(data.Location);
  16374. // _this.$message.success('上传成功'+data.Location)
  16375. }
  16376. });
  16377. }
  16378. },
  16379. async beforeUpload3(event, type, i) {
  16380. // this.$message.success('进入上传')
  16381. let file = "";
  16382. let cfindex2 = 0;
  16383. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  16384. file = event.target.files[cfindex];
  16385. var credentials = {
  16386. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16387. secretAccessKey: "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",
  16388. }; //秘钥形式的登录上传
  16389. window.AWS.config.update(credentials);
  16390. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16391. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16392. var _this = this;
  16393. // _this.progress = 0;
  16394. _this.proVisible2 = true;
  16395. var b = [
  16396. "DOC",
  16397. "DOCX",
  16398. "DOCM",
  16399. "DOTM",
  16400. "DOTX",
  16401. "PPTX",
  16402. "PPSX",
  16403. "PPT",
  16404. "PPS",
  16405. "PPTM",
  16406. "POTM",
  16407. "PPAM",
  16408. "POTX",
  16409. "PPSM",
  16410. ];
  16411. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16412. var photoA = [
  16413. "BMP",
  16414. "GIF",
  16415. "PNG",
  16416. "JPEG",
  16417. "JPG",
  16418. "TIF",
  16419. "PCX",
  16420. "TGA",
  16421. "EXIF",
  16422. "FPX",
  16423. "SVG",
  16424. "APNG",
  16425. ];
  16426. if (
  16427. photoA.indexOf(
  16428. file.name
  16429. .split(".")
  16430. [file.name.split(".").length - 1].toLocaleUpperCase()
  16431. ) != -1 &&
  16432. type != 4
  16433. ) {
  16434. // const blob = await imageConversion.compress(file, 0.8)
  16435. file = await this.pngToWhiteBg(file);
  16436. const blob = await imageConversion.compressAccurately(file, 256);
  16437. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16438. file = new File([blob], file.name, { type: file.type });
  16439. }
  16440. if (file) {
  16441. var params = {
  16442. Key:
  16443. file.name.split(".")[0] +
  16444. new Date().getTime() +
  16445. "." +
  16446. file.name.split(".")[file.name.split(".").length - 1],
  16447. ContentType: file.type,
  16448. Body: file,
  16449. "Access-Control-Allow-Credentials": "*",
  16450. ACL: "public-read",
  16451. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16452. var options = {
  16453. // partSize: 2048 * 1024 * 1024,
  16454. partSize: 1024 * 1024 * 1024,
  16455. queueSize: 2,
  16456. leavePartsOnError: true,
  16457. };
  16458. bucket
  16459. .upload(params, options)
  16460. .on("httpUploadProgress", function (evt) {
  16461. //这里可以写进度条
  16462. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16463. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16464. })
  16465. .send(function (err, data) {
  16466. // _this.progress = 100;
  16467. cfindex2++;
  16468. setTimeout(() => {
  16469. if (
  16470. cfindex2 == event.target.files.length - 1 ||
  16471. cfindex2 > event.target.files.length - 1
  16472. ) {
  16473. _this.proVisible2 = false;
  16474. }
  16475. }, 1000);
  16476. if (err) {
  16477. var a = _this.$refs.upload1.uploadFiles;
  16478. a.splice(a.length - 1, a.length);
  16479. _this.$message.error("上传失败");
  16480. } else {
  16481. // _this.$message.success('上传成功')
  16482. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16483. var c = [
  16484. "AVI",
  16485. "NAVI",
  16486. "MPEG",
  16487. "ASF",
  16488. "MOV",
  16489. "WMV",
  16490. "3GP",
  16491. "RM",
  16492. "RMVB",
  16493. "FLV",
  16494. "F4V",
  16495. "H.264",
  16496. "H.265",
  16497. "REAL VIDEO",
  16498. "MKV",
  16499. "WebM",
  16500. "HDDVD",
  16501. "MP4",
  16502. "MPG",
  16503. "M4V",
  16504. "MGV",
  16505. "OGV",
  16506. "QTM",
  16507. "STR",
  16508. "AMC",
  16509. "DVX",
  16510. "EVO",
  16511. "DAT",
  16512. "OGG",
  16513. "OGM",
  16514. ];
  16515. if (type == 1) {
  16516. _this.studyJuri[0].cover.push({
  16517. name: file.name,
  16518. url: data.Location,
  16519. uid: file.uid,
  16520. });
  16521. if (
  16522. c.indexOf(
  16523. _this.studyJuri[0].cover[0].url
  16524. .split(".")
  16525. [
  16526. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16527. ].toLocaleUpperCase()
  16528. ) != -1
  16529. ) {
  16530. _this.fileType = 2;
  16531. } else if (
  16532. b.indexOf(
  16533. _this.studyJuri[0].cover[0].url
  16534. .split(".")
  16535. [
  16536. _this.studyJuri[0].cover[0].url.split(".").length - 1
  16537. ].toLocaleUpperCase()
  16538. ) != -1
  16539. ) {
  16540. _this.fileType = 1;
  16541. } else {
  16542. _this.fileType = 0;
  16543. }
  16544. _this.imgChange(null, null, type);
  16545. } else if (type == 2) {
  16546. _this.upToolImg = data.Location;
  16547. _this.imgChange(null, null, type);
  16548. _this.addCourseWorks(i);
  16549. } else if (type == 4) {
  16550. _this.addPz("3", data.Location);
  16551. } else if (type == 5) {
  16552. _this.addImgDrawImG(data.Location);
  16553. } else if (type == 6) {
  16554. var _ftype = 1;
  16555. if (
  16556. c.indexOf(
  16557. data.Location.split(".")[
  16558. data.Location.split(".").length - 1
  16559. ].toLocaleUpperCase()
  16560. ) != -1
  16561. ) {
  16562. _ftype = 5;
  16563. } else if (
  16564. b.indexOf(
  16565. data.Location.split(".")[
  16566. data.Location.split(".").length - 1
  16567. ].toLocaleUpperCase()
  16568. ) != -1
  16569. ) {
  16570. _ftype = 4;
  16571. } else {
  16572. _ftype = 1;
  16573. }
  16574. _this.plworkFile.push({
  16575. name: file.name,
  16576. url: data.Location,
  16577. uid: file.uid,
  16578. fileType: _ftype,
  16579. username:
  16580. _this.plworkFile.length + 1 > 9
  16581. ? _this.plworkFile.length + 1
  16582. : "0" + (_this.plworkFile.length + 1),
  16583. });
  16584. }
  16585. _this.imgChange(null, null, type);
  16586. console.log(data.Location);
  16587. // _this.$message.success('上传成功'+data.Location)
  16588. }
  16589. });
  16590. }
  16591. }
  16592. },
  16593. beforeUpload2(event, type) {
  16594. var file = event.target.files[0];
  16595. var credentials = {
  16596. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16597. secretAccessKey: "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",
  16598. }; //秘钥形式的登录上传
  16599. window.AWS.config.update(credentials);
  16600. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16601. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16602. var _this = this;
  16603. _this.progress = 0;
  16604. _this.proVisible = true;
  16605. if (file) {
  16606. var params = {
  16607. Key:
  16608. file.name.split(".")[0] +
  16609. new Date().getTime() +
  16610. "." +
  16611. file.name.split(".")[file.name.split(".").length - 1],
  16612. ContentType: file.type,
  16613. Body: file,
  16614. "Access-Control-Allow-Credentials": "*",
  16615. ACL: "public-read",
  16616. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16617. var options = {
  16618. partSize: 2048 * 1024 * 1024,
  16619. queueSize: 2,
  16620. leavePartsOnError: true,
  16621. };
  16622. bucket
  16623. .upload(params, options)
  16624. .on("httpUploadProgress", function (evt) {
  16625. //这里可以写进度条
  16626. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16627. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16628. })
  16629. .send(function (err, data) {
  16630. _this.progress = 100;
  16631. setTimeout(() => {
  16632. _this.proVisible = false;
  16633. }, 1000);
  16634. if (err) {
  16635. var a = _this.$refs.upload1.uploadFiles;
  16636. a.splice(a.length - 1, a.length);
  16637. _this.$message.error("上传失败");
  16638. } else {
  16639. if (type == 2) {
  16640. _this.studyJuri[0].upVedio.push({
  16641. name: file.name,
  16642. url: data.Location,
  16643. uid: file.uid,
  16644. });
  16645. _this.imgChange(null, null, type);
  16646. } else if (type == 3) {
  16647. _this.studyJuri[0].upFile.push({
  16648. name: file.name,
  16649. url: data.Location,
  16650. uid: file.uid,
  16651. });
  16652. _this.imgChange(null, null, type);
  16653. }
  16654. console.log(data.Location);
  16655. }
  16656. });
  16657. }
  16658. },
  16659. allScrell() {
  16660. window.topU.postMessage({ allScreen: this.screenType }, "*");
  16661. },
  16662. nextOrpreSteps(t) {
  16663. if (this.IsFollow && this.tType == 2) {
  16664. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16665. return;
  16666. }
  16667. var b = this.chapInfoList.length - 1;
  16668. if (t == 0) {
  16669. if (this.courseType == 0) {
  16670. if (this.taskCount == 0) {
  16671. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16672. if (this.IsLookOpen) {
  16673. if (
  16674. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16675. ) {
  16676. if (
  16677. this.courseDetail.userid != this.userid &&
  16678. (!this.courseDetail.course_teacher ||
  16679. (this.courseDetail.course_teacher &&
  16680. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16681. ) {
  16682. this.$message.error("任务未解锁");
  16683. } else {
  16684. this.$message.error("上一任务未解锁");
  16685. }
  16686. return;
  16687. }
  16688. }
  16689. this.navList[this.courseType].isOpen = false;
  16690. this.courseType = b;
  16691. this.taskCount =
  16692. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16693. .length - 1;
  16694. this.navList[this.courseType].isOpen = true;
  16695. } else {
  16696. this.taskCount--;
  16697. }
  16698. } else {
  16699. if (this.taskCount == 0) {
  16700. this.navList[this.courseType].isOpen = false;
  16701. this.courseType--;
  16702. this.taskCount =
  16703. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16704. .length - 1;
  16705. this.navList[this.courseType].isOpen = true;
  16706. } else {
  16707. this.taskCount--;
  16708. }
  16709. }
  16710. } else {
  16711. if (this.courseType == b) {
  16712. if (
  16713. this.taskCount ==
  16714. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16715. 1
  16716. ) {
  16717. this.navList[this.courseType].isOpen = false;
  16718. this.courseType = 0;
  16719. this.taskCount = 0;
  16720. this.navList[this.courseType].isOpen = true;
  16721. } else {
  16722. var bbb = parseInt(this.taskCount) + 1;
  16723. if (
  16724. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16725. .isLook &&
  16726. this.courseDetail.userid != this.userid &&
  16727. (!this.courseDetail.course_teacher ||
  16728. (this.courseDetail.course_teacher &&
  16729. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16730. this.IsLookOpen
  16731. ) {
  16732. this.$message.error("任务未解锁");
  16733. return;
  16734. }
  16735. this.taskCount++;
  16736. if (this.IsLookOpen) {
  16737. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16738. this.taskCount
  16739. ].isLook = true;
  16740. this.addCourseState(3);
  16741. }
  16742. }
  16743. } else {
  16744. if (
  16745. this.taskCount ==
  16746. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16747. 1
  16748. ) {
  16749. var bbb = parseInt(this.courseType) + 1;
  16750. if (
  16751. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16752. this.courseDetail.userid != this.userid &&
  16753. (!this.courseDetail.course_teacher ||
  16754. (this.courseDetail.course_teacher &&
  16755. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16756. this.IsLookOpen
  16757. ) {
  16758. this.$message.error("任务未解锁");
  16759. return;
  16760. }
  16761. this.navList[this.courseType].isOpen = false;
  16762. this.courseType++;
  16763. this.taskCount = 0;
  16764. this.navList[this.courseType].isOpen = true;
  16765. } else {
  16766. var bbb = parseInt(this.taskCount) + 1;
  16767. if (
  16768. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16769. .isLook &&
  16770. this.courseDetail.userid != this.userid &&
  16771. (!this.courseDetail.course_teacher ||
  16772. (this.courseDetail.course_teacher &&
  16773. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16774. this.IsLookOpen
  16775. ) {
  16776. this.$message.error("任务未解锁");
  16777. return;
  16778. }
  16779. this.taskCount++;
  16780. }
  16781. if (this.IsLookOpen) {
  16782. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16783. this.taskCount
  16784. ].isLook = true;
  16785. this.addCourseState(3);
  16786. }
  16787. }
  16788. // if (
  16789. // this.taskCount ==
  16790. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16791. // ) {
  16792. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16793. // } else {
  16794. // this.taskCount++;
  16795. // }
  16796. }
  16797. document.scrollingElement.scrollTop = 0;
  16798. // this.showType = 7;
  16799. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16800. // if (this.vedio[this.taskCount].length > 0) {
  16801. // var a =
  16802. // document.getElementsByClassName("box_course")[this.taskCount]
  16803. // .offsetHeight;
  16804. // document.getElementsByClassName("vedioList")[
  16805. // this.taskCount
  16806. // ].style.height = a + "px";
  16807. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16808. // a - 40 + "px";
  16809. // }
  16810. this.isNoHomeWork = false;
  16811. (this.studyJuri = [
  16812. {
  16813. content: "",
  16814. cover: [],
  16815. upVedio: [],
  16816. upFile: [],
  16817. },
  16818. ]),
  16819. (this.radio = []);
  16820. this.isClickNav = "";
  16821. this.selectPz();
  16822. this.getHomeWork();
  16823. this.getCourseDetail(2);
  16824. this.$forceUpdate();
  16825. },
  16826. openTask(s, n, i) {
  16827. if (this.IsFollow && this.tType == 2) {
  16828. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16829. return;
  16830. }
  16831. if (this.IsLookOpen &&
  16832. this.courseDetail.userid != this.userid &&
  16833. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  16834. if (
  16835. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16836. this.courseDetail.userid != this.userid &&
  16837. (!this.courseDetail.course_teacher ||
  16838. (this.courseDetail.course_teacher &&
  16839. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16840. ) {
  16841. this.$message.error("任务未解锁");
  16842. return;
  16843. }
  16844. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16845. if (
  16846. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16847. .isLook
  16848. ) {
  16849. this.$message.error("上一任务未解锁");
  16850. return;
  16851. }
  16852. } else if (s > this.courseType) {
  16853. if (n > 0) {
  16854. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16855. this.$message.error("上一任务未解锁");
  16856. return;
  16857. }
  16858. } else {
  16859. if (
  16860. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16861. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16862. ].isLook
  16863. ) {
  16864. this.$message.error("上一任务未解锁");
  16865. return;
  16866. }
  16867. }
  16868. }
  16869. }
  16870. if (this.navList[s].task[n].isOpen == true) {
  16871. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16872. return;
  16873. }
  16874. let flag = this.courseType==s;
  16875. this.courseType = s;
  16876. this.navId = i;
  16877. this.taskCount = n;
  16878. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  16879. this.navList[this.courseType].task[this.taskCount].isOpen =
  16880. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16881. if (this.IsLookOpen) {
  16882. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16883. this.taskCount
  16884. ].isLook = true;
  16885. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  16886. this.addCourseState(3,yym);
  16887. }
  16888. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  16889. this.isCloseList[ci].isClose = 0;
  16890. this.isCloseList[ci].isCloseBoolean = false;
  16891. this.$nextTick(()=>{
  16892. setTimeout(()=>{
  16893. setTimeout(()=>{
  16894. this.panToolHeight('tool-'+ci);
  16895. }, 0)
  16896. }, 0)
  16897. })
  16898. }
  16899. // this.showType = 7;
  16900. this.isNoHomeWork = false;
  16901. (this.studyJuri = [
  16902. {
  16903. content: "",
  16904. cover: [],
  16905. upVedio: [],
  16906. upFile: [],
  16907. },
  16908. ]),
  16909. (this.radio = []);
  16910. document.scrollingElement.scrollTop = 0;
  16911. // setTimeout(() => {
  16912. // let a = document.getElementById(i);
  16913. // if (a.offsetTop - 110 == 0) {
  16914. // window.scrollTo(0, 0);
  16915. // } else {
  16916. // window.scrollTo(0, a.offsetTop);
  16917. // }
  16918. // }, 0);
  16919. for (var z = 0; z < this.navList.length; z++) {
  16920. for (var q = 0; q < this.navList[z].task.length; q++) {
  16921. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16922. this.navList[z].task[q].tool[w].isTool = false;
  16923. }
  16924. }
  16925. }
  16926. this.selectPz();
  16927. this.getHomeWork();
  16928. this.getCourseDetail(2);
  16929. if(flag){
  16930. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16931. }else{
  16932. 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>`)
  16933. }
  16934. },
  16935. get(i) {
  16936. if (this.IsFollow && this.tType == 2) {
  16937. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16938. return;
  16939. }
  16940. // for(var k=0;k<this.navList.length;k++){
  16941. // this.navList[k].isOpen = false;
  16942. // }
  16943. // this.navList[i].isOpen = true;
  16944. this.navList[i].isOpen = !this.navList[i].isOpen;
  16945. if (this.navList[i].isOpen) {
  16946. this.openTask(i, 0, i + "-0");
  16947. }
  16948. },
  16949. addQuestion() {
  16950. this.answerList.push({
  16951. answerTitle: this.answerQ,
  16952. answer: this.questionAnswer,
  16953. });
  16954. let params = [
  16955. {
  16956. uid: this.userid,
  16957. cid: this.id,
  16958. stage: this.courseType,
  16959. task: this.taskCount,
  16960. tool: this.toolindex,
  16961. content: JSON.stringify(this.answerList),
  16962. type: 3,
  16963. },
  16964. ];
  16965. this.ajax
  16966. .post(this.$store.state.api + "addCourseWorks", params)
  16967. .then((res) => {
  16968. this.$message({
  16969. message: "提交成功",
  16970. type: "success",
  16971. });
  16972. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  16973. this.answerList = [];
  16974. this.answerDialogVisible = false;
  16975. this.selectStudent();
  16976. this.selectSWorks();
  16977. this.selectSLook();
  16978. })
  16979. .catch((err) => {
  16980. this.$message.error("提交失败");
  16981. console.error(err);
  16982. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  16983. });
  16984. },
  16985. addQuestionTeacher() {
  16986. this.answerList.push({
  16987. answerTitle: this.answerQ,
  16988. answer: this.questionAnswer,
  16989. });
  16990. let params = [
  16991. {
  16992. uid: this.sStudent.userid,
  16993. cid: this.id,
  16994. stage: this.courseType,
  16995. task: this.taskCount,
  16996. tool: this.toolindex,
  16997. content: JSON.stringify(this.answerList),
  16998. type: 3,
  16999. ateacher: this.userid,
  17000. },
  17001. ];
  17002. this.ajax
  17003. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17004. .then((res) => {
  17005. this.$message({
  17006. message: "提交成功",
  17007. type: "success",
  17008. });
  17009. this.answerList = [];
  17010. this.questionAnswer = "";
  17011. this.answerDialogVisibleTeacher = false;
  17012. this.selectStudent();
  17013. this.selectSWorks();
  17014. this.selectSLook();
  17015. })
  17016. .catch((err) => {
  17017. this.$message.error("提交失败");
  17018. console.error(err);
  17019. });
  17020. },
  17021. refreshCourse() {
  17022. // window.location.reload();
  17023. this.navList = [];
  17024. this.getCourseDetail(1);
  17025. },
  17026. getCourseDetail(type, gindex) {
  17027. let loading;
  17028. if (type != 2) {
  17029. loading = this.$loading.service({
  17030. background: "rgba(255, 255, 255, 0.7)",
  17031. target: document.querySelector(".student_table"),
  17032. });
  17033. }
  17034. this.downLoading = false
  17035. // this.navList[0].isOpen = false;
  17036. // this.navList[this.courseType].isOpen = true;
  17037. // this.courseType = this.courseTypeLine;
  17038. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17039. let params = {
  17040. courseId: this.id,
  17041. };
  17042. this.ajax
  17043. .get(this.$store.state.api + "selectCourseDetail3", params)
  17044. .then((res) => {
  17045. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  17046. if (type != 2) {
  17047. loading.close();
  17048. if (
  17049. this.courseType >
  17050. JSON.parse(res.data[0][0].chapters).length - 1
  17051. ) {
  17052. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17053. }
  17054. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17055. .chapterInfo[0].taskJson;
  17056. var b = [
  17057. "AVI",
  17058. "NAVI",
  17059. "MPEG",
  17060. "ASF",
  17061. "MOV",
  17062. "WMV",
  17063. "3GP",
  17064. "RM",
  17065. "RMVB",
  17066. "FLV",
  17067. "F4V",
  17068. "H.264",
  17069. "H.265",
  17070. "REAL VIDEO",
  17071. "MKV",
  17072. "WebM",
  17073. "HDDVD",
  17074. "MP4",
  17075. "MPG",
  17076. "M4V",
  17077. "MGV",
  17078. "OGV",
  17079. "QTM",
  17080. "STR",
  17081. "AMC",
  17082. "DVX",
  17083. "EVO",
  17084. "DAT",
  17085. "OGG",
  17086. "OGM",
  17087. "MP3",
  17088. ];
  17089. let _chapterData = [];
  17090. for (var i = 0; i < a.length; i++) {
  17091. var c = a[i].chapterData;
  17092. this.vedio[i] = [];
  17093. this.textList[i] = [];
  17094. this.lineList[i] = [];
  17095. this.chapToolList[i] = [];
  17096. this.file[i] = [];
  17097. this.fileC[i] = [];
  17098. _chapterData[i] = c.filter((el) => {
  17099. return el.type != 12;
  17100. });
  17101. this.fileC[i] = c.filter((el) => {
  17102. return el.type == 12;
  17103. });
  17104. if (this.tType == 2) {
  17105. if (this.fileC[i].length) {
  17106. let yym1 = this.fileC[i].filter(e=>{
  17107. if(!converter(e.name).includes(converter("教案"))){
  17108. return e
  17109. }
  17110. })
  17111. this.fileC[i] = yym1
  17112. }
  17113. }
  17114. // else if (c[j].type == 12) {
  17115. // this.fileC[i].push(c[j]);
  17116. // }
  17117. for (var j = 0; j < c.length; j++) {
  17118. if (c[j].type == 7) {
  17119. this.chapToolList[i].push(c[j]);
  17120. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17121. this.lineList[i].push(c[j]);
  17122. } else if (c[j].type == 6) {
  17123. this.textList[i].push(c[j]);
  17124. } else {
  17125. if (
  17126. b.indexOf(
  17127. c[j].url
  17128. .split(".")
  17129. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17130. ) != -1
  17131. ) {
  17132. this.vedio[i].push(c[j]);
  17133. } else {
  17134. this.file[i].push(c[j]);
  17135. }
  17136. }
  17137. }
  17138. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17139. d.sources[0].src =
  17140. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17141. this.playerO[i] = d;
  17142. }
  17143. this.courseDetail = res.data[0][0];
  17144. if(this.tType == 2){
  17145. this.tcid = this.arrayToArray(
  17146. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17147. this.classId ? this.classId.split(",") : []
  17148. ).join(",");
  17149. }else{
  17150. this.tcid = this.arrayToArray(
  17151. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17152. this.tcid2 ? this.tcid2.split(",") : []
  17153. ).join(",");
  17154. }
  17155. this.evalua = res.data[0][0].evaId;
  17156. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17157. this.courseType
  17158. ];
  17159. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17160. if (this.tcid && res.data[1].length) {
  17161. let _inviteA = [];
  17162. for (var ik = 0; ik < res.data[1].length; ik++) {
  17163. _inviteA.push({
  17164. cid: res.data[1][ik].classid,
  17165. ic: res.data[1][ik].code,
  17166. });
  17167. }
  17168. for (var ik = 0; ik < _inviteA.length; ik++) {
  17169. if (
  17170. this.arrayToArray(
  17171. _inviteA[ik].cid.split(","),
  17172. this.tcid.split(",")
  17173. ).length
  17174. ) {
  17175. this.inviteCode = _inviteA[ik].ic;
  17176. break;
  17177. }
  17178. }
  17179. }
  17180. for (var l = 0; l < this.chapInfoList.length; l++) {
  17181. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17182. for (var m = 0; m < w.length; m++) {
  17183. w[m].id = l + "-" + m;
  17184. }
  17185. }
  17186. let taskCount = 0;
  17187. if (
  17188. _chapterData[taskCount].length &&
  17189. _chapterData[taskCount][0].type == 2
  17190. ) {
  17191. this.showType = 0;
  17192. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17193. } else {
  17194. if (_chapterData[taskCount].length > 0) {
  17195. let _url = _chapterData[taskCount][0].url;
  17196. if (
  17197. _chapterData[taskCount][0].type == 8 ||
  17198. _chapterData[taskCount][0].type == 14 ||
  17199. _chapterData[taskCount][0].type == 15
  17200. ) {
  17201. this.showType = 2;
  17202. if (
  17203. _url.indexOf("https://") == -1 &&
  17204. _url.indexOf("http://") == -1
  17205. ) {
  17206. _url = "https://" + _url;
  17207. }
  17208. this.pptImgUrl1 = _url;
  17209. } else if (_chapterData[taskCount][0].type == 3) {
  17210. if (
  17211. _url
  17212. .split(".")
  17213. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17214. ) {
  17215. this.showType = 3;
  17216. this.pptImgUrl1 = _url;
  17217. } else if (
  17218. this.isAssetTypeAnImage(
  17219. _url
  17220. .split(".")
  17221. [_url.split(".").length - 1].toLocaleLowerCase()
  17222. )
  17223. ) {
  17224. this.showType = 4;
  17225. this.pptImgUrl1 = _url;
  17226. } else {
  17227. this.showType = 2;
  17228. this.pptImgUrl1 =
  17229. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17230. encodeURIComponent(_url);
  17231. }
  17232. } else if (_chapterData[taskCount][0].type == 13) {
  17233. this.showType = 4;
  17234. this.pptImgUrl1 = _url;
  17235. } else if (_chapterData[taskCount][0].type == 6) {
  17236. this.showType = 1;
  17237. this.text = this.textList[taskCount][0];
  17238. }
  17239. }
  17240. }
  17241. this.isClickNav = 0;
  17242. if (
  17243. !_chapterData[taskCount].length ||
  17244. _chapterData[taskCount][0].type == 12
  17245. ) {
  17246. this.isClickNav = "";
  17247. this.showType = "";
  17248. }
  17249. if (this.tType == 2) {
  17250. _chapterData.forEach((e,i)=>{
  17251. if (e.length) {
  17252. let yym = e.filter(k=>{
  17253. if(!converter(k.name).includes(converter("教案"))){
  17254. return k
  17255. }
  17256. })
  17257. _chapterData[i] = yym
  17258. }
  17259. })
  17260. }
  17261. this.vChapterData = _chapterData;
  17262. } else {
  17263. // this.showType = 0;
  17264. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17265. .chapterInfo[0].taskJson;
  17266. var b = [
  17267. "AVI",
  17268. "NAVI",
  17269. "MPEG",
  17270. "ASF",
  17271. "MOV",
  17272. "WMV",
  17273. "3GP",
  17274. "RM",
  17275. "RMVB",
  17276. "FLV",
  17277. "F4V",
  17278. "H.264",
  17279. "H.265",
  17280. "REAL VIDEO",
  17281. "MKV",
  17282. "WebM",
  17283. "HDDVD",
  17284. "MP4",
  17285. "MPG",
  17286. "M4V",
  17287. "MGV",
  17288. "OGV",
  17289. "QTM",
  17290. "STR",
  17291. "AMC",
  17292. "DVX",
  17293. "EVO",
  17294. "DAT",
  17295. "OGG",
  17296. "OGM",
  17297. "MP3",
  17298. ];
  17299. let _chapterData = [];
  17300. for (var i = 0; i < a.length; i++) {
  17301. var c = a[i].chapterData;
  17302. this.vedio[i] = [];
  17303. this.textList[i] = [];
  17304. this.lineList[i] = [];
  17305. this.chapToolList[i] = [];
  17306. this.file[i] = [];
  17307. this.fileC[i] = [];
  17308. _chapterData[i] = c.filter((el) => {
  17309. return el.type != 12;
  17310. });
  17311. this.fileC[i] = c.filter((el) => {
  17312. return el.type == 12;
  17313. });
  17314. if (this.tType == 2) {
  17315. if (this.fileC[i].length) {
  17316. let yym1 = this.fileC[i].filter(e=>{
  17317. if(!converter(e.name).includes(converter("教案"))){
  17318. return e
  17319. }
  17320. })
  17321. this.fileC[i] = yym1
  17322. }
  17323. }
  17324. for (var j = 0; j < c.length; j++) {
  17325. if (c[j].type == 7) {
  17326. this.chapToolList[i].push(c[j]);
  17327. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  17328. this.lineList[i].push(c[j]);
  17329. } else if (c[j].type == 6) {
  17330. this.textList[i].push(c[j]);
  17331. } else {
  17332. if (
  17333. b.indexOf(
  17334. c[j].url
  17335. .split(".")
  17336. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17337. ) != -1
  17338. ) {
  17339. this.vedio[i].push(c[j]);
  17340. } else {
  17341. this.file[i].push(c[j]);
  17342. }
  17343. }
  17344. }
  17345. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17346. d.sources[0].src =
  17347. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17348. this.playerO[i] = d;
  17349. }
  17350. let taskCount = 0;
  17351. if (
  17352. _chapterData[taskCount].length &&
  17353. _chapterData[taskCount][0].type == 2
  17354. ) {
  17355. // this.showType = 0;
  17356. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  17357. } else {
  17358. if (_chapterData[taskCount].length > 0) {
  17359. let _url = _chapterData[taskCount][0].url;
  17360. if (
  17361. _chapterData[taskCount][0].type == 8 ||
  17362. _chapterData[taskCount][0].type == 14||
  17363. _chapterData[taskCount][0].type == 15
  17364. ) {
  17365. // this.showType = 2;
  17366. if (
  17367. _url.indexOf("https://") == -1 &&
  17368. _url.indexOf("http://") == -1
  17369. ) {
  17370. _url = "https://" + _url;
  17371. }
  17372. // this.pptImgUrl1 = _url;
  17373. } else if (_chapterData[taskCount][0].type == 3) {
  17374. if (
  17375. _url
  17376. .split(".")
  17377. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17378. ) {
  17379. // this.showType = 3;
  17380. // this.pptImgUrl1 = _url;
  17381. } else if (
  17382. this.isAssetTypeAnImage(
  17383. _url
  17384. .split(".")
  17385. [_url.split(".").length - 1].toLocaleLowerCase()
  17386. )
  17387. ) {
  17388. // this.showType = 4;
  17389. // this.pptImgUrl1 = _url;
  17390. } else {
  17391. // this.showType = 2;
  17392. // this.pptImgUrl1 =
  17393. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  17394. // encodeURIComponent(_url);
  17395. }
  17396. } else if (_chapterData[taskCount][0].type == 13) {
  17397. // this.showType = 4;
  17398. // this.pptImgUrl1 = _url;
  17399. } else if (_chapterData[taskCount][0].type == 6) {
  17400. this.showType = 1;
  17401. this.text = this.textList[taskCount][0];
  17402. }
  17403. }
  17404. }
  17405. this.isClickNav = 0;
  17406. if (
  17407. !_chapterData[taskCount].length ||
  17408. _chapterData[taskCount][0].type == 12
  17409. ) {
  17410. this.isClickNav = "";
  17411. // this.showType = "";
  17412. }
  17413. if (this.tType == 2) {
  17414. _chapterData.forEach((e,i)=>{
  17415. if (e.length) {
  17416. let yym = e.filter(k=>{
  17417. if(!converter(k.name).includes(converter("教案"))){
  17418. return k
  17419. }
  17420. })
  17421. _chapterData[i] = yym
  17422. }
  17423. })
  17424. }
  17425. this.vChapterData = _chapterData;
  17426. this.$forceUpdate();
  17427. }
  17428. // else {
  17429. // this.courseDetail = res.data[0][0];
  17430. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17431. // }
  17432. let _this = this;
  17433. if (_this.timer) {
  17434. clearInterval(_this.timer);
  17435. _this.timer = null;
  17436. }
  17437. if (_this.tcid) {
  17438. _this.getCourseGroup(gindex);
  17439. } else {
  17440. _this.selectSWorks(gindex);
  17441. }
  17442. _this.selectStudent();
  17443. _this.selectSLook();
  17444. _this.getPick();
  17445. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17446. _this.setCTask();
  17447. }
  17448. if (_this.dialogVisibleGroup) {
  17449. _this.groupJson =
  17450. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17451. _this.taskCount
  17452. ].toolChoose[_this.toolindex].groupJson;
  17453. }
  17454. _this.$nextTick(() => {
  17455. setTimeout(() => {
  17456. _this.checkEva();
  17457. }, 1000);
  17458. });
  17459. _this.timer = setInterval(function () {
  17460. // _this.getCourseDetail(2);
  17461. if (_this.tcid) {
  17462. _this.getCourseGroup();
  17463. } else {
  17464. _this.selectSWorks();
  17465. }
  17466. _this.selectStudent();
  17467. _this.selectSLook();
  17468. _this.getPick();
  17469. // _this.getSplitScreenData();//获取分屏数据
  17470. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  17471. _this.setCTask();
  17472. }
  17473. if (_this.dialogVisibleGroup) {
  17474. _this.groupJson =
  17475. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  17476. _this.taskCount
  17477. ].toolChoose[_this.toolindex].groupJson;
  17478. }
  17479. if (_this.tType == 4 || _this.ispzType == 4) {
  17480. _this.selectPz();
  17481. }
  17482. }, 5000);
  17483. if (_this.timer2 == null) {
  17484. _this.timer2 = setInterval(()=> {
  17485. _this.getSplitScreenData();//获取分屏数据
  17486. }, 5000);
  17487. }
  17488. _this.$nextTick(function () {
  17489. setTimeout(() => {
  17490. // var a =
  17491. // document.getElementsByClassName("box_course")[0].offsetHeight;
  17492. // document.getElementsByClassName("vedioList")[0].style.height =
  17493. // a + "px";
  17494. // document.getElementsByClassName("navBox")[0].style.height =
  17495. // a - 40 + "px";
  17496. // if (_this.vedio[_this.taskCount].length > 0) {
  17497. // _this.vedioTime = [];
  17498. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17499. // _this.vedioTime[i] = document.getElementsByClassName(
  17500. // "vjs-duration-display"
  17501. // )[i].textContent;
  17502. // }
  17503. // }
  17504. }, 1000);
  17505. });
  17506. })
  17507. .catch((err) => {
  17508. loading.close();
  17509. console.error(err);
  17510. });
  17511. },
  17512. getCourseGroup(gindex) {
  17513. let params = {
  17514. cid: this.id,
  17515. classid: this.tcid ? this.tcid : "1",
  17516. };
  17517. this.ajax
  17518. .get(this.$store.state.api + "getCourseGroup", params)
  17519. .then((res) => {
  17520. if (res.data && res.data[0].length) {
  17521. if (!this.isGroup) {
  17522. let courseGroup = JSON.parse(res.data[0][0].group);
  17523. courseGroup.group = courseGroup.group.filter((el) => {
  17524. el.works = [];
  17525. return el;
  17526. });
  17527. if (courseGroup.isopen == 2) {
  17528. this.isGroup = false;
  17529. this.selectSWorks(gindex);
  17530. return;
  17531. }
  17532. this.courseGroup = courseGroup;
  17533. let groupPerson = res.data[1];
  17534. let group = JSON.parse(res.data[0][0].group).group;
  17535. let courseGroupStudent = {};
  17536. let courseGroupStudentUid = {};
  17537. for (var i = 0; i < group.length; i++) {
  17538. courseGroupStudent[group[i].id] = [];
  17539. courseGroupStudentUid[group[i].id] = [];
  17540. for (var j = 0; j < groupPerson.length; j++) {
  17541. if (groupPerson[j].groupCid == group[i].id) {
  17542. courseGroupStudent[group[i].id].push(groupPerson[j]);
  17543. courseGroupStudentUid[group[i].id].push(
  17544. groupPerson[j].userid
  17545. );
  17546. }
  17547. }
  17548. }
  17549. this.courseGroupStudent = courseGroupStudent;
  17550. this.courseGroupStudentUid = courseGroupStudentUid;
  17551. }
  17552. if (this.courseGroup.isopen == 2) {
  17553. this.isGroup = false;
  17554. } else {
  17555. this.isGroup = true;
  17556. }
  17557. this.selectSWorks(gindex);
  17558. } else {
  17559. this.selectSWorks(gindex);
  17560. this.isGroup = false;
  17561. }
  17562. })
  17563. .catch((err) => {
  17564. // this.$message.error("网络不佳");
  17565. console.error(err);
  17566. });
  17567. },
  17568. setOperationTime() {
  17569. let _this = this;
  17570. if (_this.opertimer) {
  17571. clearInterval(_this.opertimer);
  17572. _this.opertimer = null;
  17573. }
  17574. _this.opertimer = setInterval(() => {
  17575. _this.setoTime("600");
  17576. }, 600000);
  17577. },
  17578. setoTime(time) {
  17579. let params = [
  17580. {
  17581. uid: this.userid,
  17582. cid: this.id,
  17583. type: "2",
  17584. time: time,
  17585. },
  17586. ];
  17587. this.ajax
  17588. .post(this.$store.state.api + "addOperationTimeT2", params)
  17589. .then((res) => {})
  17590. .catch((err) => {
  17591. console.error(err);
  17592. });
  17593. },
  17594. addPz(type, content) {
  17595. if (type == "1" && this.pzConText == "") {
  17596. this.$message.error("评论不能为空!");
  17597. return;
  17598. }
  17599. let params = [
  17600. {
  17601. cid: this.id,
  17602. uid: this.userid,
  17603. s: this.courseType,
  17604. t: this.taskCount,
  17605. c: type == "1" ? this.pzConText : content,
  17606. type: type,
  17607. },
  17608. ];
  17609. this.ajax
  17610. .post(this.$store.state.api + "addPz2", params)
  17611. .then((res) => {
  17612. this.$message({
  17613. message: "添加成功",
  17614. type: "success",
  17615. });
  17616. this.pzConText = "";
  17617. this.addPzDialog = false;
  17618. this.selectPz();
  17619. if(this.tType!=2){
  17620. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  17621. }
  17622. })
  17623. .catch((err) => {
  17624. this.$message.error("添加失败");
  17625. console.error(err);
  17626. });
  17627. },
  17628. setReplyIndex(id, i) {
  17629. this.replyIndex = i;
  17630. this.replyPid = id;
  17631. this.replyDialogVisible = true;
  17632. },
  17633. addHf() {
  17634. if (this.reply == "") {
  17635. this.$message.error("回复不能为空!");
  17636. return;
  17637. }
  17638. let params = [
  17639. {
  17640. cid: this.id,
  17641. uid: this.userid,
  17642. s: this.courseType,
  17643. t: this.taskCount,
  17644. type: "1",
  17645. ct: 2,
  17646. pid: this.replyPid,
  17647. c: this.reply,
  17648. },
  17649. ];
  17650. this.ajax
  17651. .post(this.$store.state.api + "addHf", params)
  17652. .then((res) => {
  17653. this.reply = "";
  17654. this.$message({
  17655. message: "回复成功",
  17656. type: "success",
  17657. });
  17658. this.replyDialogVisible = false;
  17659. this.selectPz();
  17660. })
  17661. .catch((err) => {
  17662. this.$message.error("回复失败");
  17663. console.error(err);
  17664. });
  17665. },
  17666. deletePz(id) {
  17667. this.$confirm("确定删除此评论吗?", "提示", {
  17668. confirmButtonText: "确定",
  17669. cancelButtonText: "取消",
  17670. type: "warning",
  17671. })
  17672. .then(() => {
  17673. let params = [
  17674. {
  17675. id: id,
  17676. },
  17677. ];
  17678. this.ajax
  17679. .post(this.$store.state.api + "deletePz", params)
  17680. .then((res) => {
  17681. this.$message({
  17682. message: "删除成功",
  17683. type: "success",
  17684. });
  17685. this.selectPz();
  17686. })
  17687. .catch((err) => {
  17688. this.$message.error("网络异常");
  17689. console.error(err);
  17690. });
  17691. })
  17692. .catch(() => {});
  17693. },
  17694. deleteReply(id) {
  17695. this.$confirm("确定删除此回复吗?", "提示", {
  17696. confirmButtonText: "确定",
  17697. cancelButtonText: "取消",
  17698. type: "warning",
  17699. })
  17700. .then(() => {
  17701. let params = [
  17702. {
  17703. id: id,
  17704. },
  17705. ];
  17706. this.ajax
  17707. .post(this.$store.state.api + "deleteReply", params)
  17708. .then((res) => {
  17709. this.$message({
  17710. message: "删除成功",
  17711. type: "success",
  17712. });
  17713. this.selectPz();
  17714. })
  17715. .catch((err) => {
  17716. this.$message.error("网络异常");
  17717. console.error(err);
  17718. });
  17719. })
  17720. .catch(() => {});
  17721. },
  17722. setPz() {
  17723. if (this.ispzType == 4) {
  17724. this.ispzType = 0;
  17725. this.pzDialog = false;
  17726. return;
  17727. }
  17728. this.ispzType = 4;
  17729. this.pzDialog = true;
  17730. this.selectPz();
  17731. },
  17732. selectPz() {
  17733. let params = {
  17734. cid: this.id,
  17735. s: this.courseType,
  17736. t: this.taskCount,
  17737. type: this.pzStype,
  17738. uid: this.userid,
  17739. };
  17740. this.ajax
  17741. .get(this.$store.state.api + "selectPzListType", params)
  17742. .then((res) => {
  17743. this.pzList = res.data[0];
  17744. var a = res.data[1];
  17745. for (var i = 0; i < a.length; i++) {
  17746. for (var j = 0; j < this.pzList.length; j++) {
  17747. if (!this.pzList[j].hfList) {
  17748. this.pzList[j].hfList = [];
  17749. }
  17750. if (a[i].pid == this.pzList[j].id) {
  17751. this.pzList[j].hfList.push(a[i]);
  17752. }
  17753. }
  17754. }
  17755. })
  17756. .catch((err) => {
  17757. console.error(err);
  17758. });
  17759. },
  17760. // selectHf() {
  17761. // let params = {
  17762. // cid: this.id,
  17763. // s: this.courseType,
  17764. // t: this.taskCount,
  17765. // };
  17766. // this.ajax
  17767. // .get(this.$store.state.api + "selectHfList", params)
  17768. // .then((res) => {
  17769. // var a = res.data[0];
  17770. // for (var i = 0; i < a.length; i++) {
  17771. // for (var j = 0; j < this.pzList.length; j++) {
  17772. // if (!this.pzList[i].hfList) {
  17773. // this.pzList[i].hfList = [];
  17774. // }
  17775. // if (a[i].pid == this.pzList[j].id) {
  17776. // this.pzList[i].hfList.push(a[i]);
  17777. // }
  17778. // }
  17779. // }
  17780. // })
  17781. // .catch((err) => {
  17782. // console.error(err);
  17783. // });
  17784. // },
  17785. updateSLook() {
  17786. let params = {
  17787. sopen: this.sIsOpen == false ? 1 : 2,
  17788. cid: this.id,
  17789. };
  17790. this.ajax
  17791. .get(this.$store.state.api + "updateCourseSLook", params)
  17792. .then((res) => {
  17793. if (this.sIsOpen == true) {
  17794. this.$message({
  17795. message: "权限设置成功",
  17796. type: "success",
  17797. });
  17798. } else {
  17799. this.$message({
  17800. message: "权限关闭成功",
  17801. type: "success",
  17802. });
  17803. }
  17804. })
  17805. .catch((err) => {
  17806. console.error(err);
  17807. });
  17808. },
  17809. updateFollow() {
  17810. let params = [
  17811. {
  17812. sopen: this.IsFollow == false ? 1 : 2,
  17813. cid: this.id,
  17814. },
  17815. ];
  17816. this.ajax
  17817. .post(this.$store.state.api + "updateCourseFollow", params)
  17818. .then((res) => {
  17819. if (this.IsFollow == true) {
  17820. this.$message({
  17821. message: "开启成功",
  17822. type: "success",
  17823. });
  17824. } else {
  17825. this.$message({
  17826. message: "关闭成功",
  17827. type: "success",
  17828. });
  17829. }
  17830. this.setCTask();
  17831. })
  17832. .catch((err) => {
  17833. console.error(err);
  17834. });
  17835. },
  17836. setCTask() {
  17837. let params = [
  17838. {
  17839. sopen: this.courseType + "-" + this.taskCount,
  17840. cid: this.id,
  17841. },
  17842. ];
  17843. this.ajax
  17844. .post(this.$store.state.api + "updateCourseFollowC", params)
  17845. .then((res) => {})
  17846. .catch((err) => {
  17847. console.error(err);
  17848. });
  17849. },
  17850. updateLookOpen() {
  17851. let params = [
  17852. {
  17853. sopen: this.IsLookOpen == false ? 1 : 2,
  17854. cid: this.id,
  17855. },
  17856. ];
  17857. this.ajax
  17858. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17859. .then((res) => {
  17860. if (this.IsLookOpen == true) {
  17861. // if (this.courseType != 0 && this.taskCount != 0) {
  17862. // this.openTask(0, 0, "0-0");
  17863. // }
  17864. this.$message({
  17865. message: "权限设置成功",
  17866. type: "success",
  17867. });
  17868. } else {
  17869. this.$message({
  17870. message: "权限关闭成功",
  17871. type: "success",
  17872. });
  17873. }
  17874. this.getCourseState(2);
  17875. })
  17876. .catch((err) => {
  17877. console.error(err);
  17878. });
  17879. },
  17880. selectSLook() {
  17881. let params = {
  17882. cid: this.id,
  17883. };
  17884. this.ajax
  17885. .get(this.$store.state.api + "selectCourseSLook", params)
  17886. .then((res) => {
  17887. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17888. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17889. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17890. if (!this.IsLookOpen) {
  17891. this.setNavList();
  17892. }
  17893. this.getCourseState(1);
  17894. if ((this.IsFollow && this.tType == 2)) {
  17895. this.setContent2(false);
  17896. let _followC = res.data[0][0].followC.split("-");
  17897. if (
  17898. this.courseType != _followC[0] ||
  17899. this.taskCount != _followC[1]
  17900. ) {
  17901. this.navList[this.courseType].isOpen = false;
  17902. this.courseType = _followC[0];
  17903. this.navList[this.courseType].isOpen = true;
  17904. this.taskCount = parseInt(_followC[1]);
  17905. this.navId = res.data[0][0].followC;
  17906. document.scrollingElement.scrollTop = 0;
  17907. this.getCourseDetail(2);
  17908. }
  17909. }
  17910. })
  17911. .catch((err) => {
  17912. console.error(err);
  17913. });
  17914. },
  17915. setNavList() {
  17916. if (this.navList.length == 0) {
  17917. this.navList = [];
  17918. var copyList = [];
  17919. for (var l = 0; l < this.chapInfoList.length; l++) {
  17920. var q = this.chapInfoList[l].dyName;
  17921. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17922. var e;
  17923. copyList.push({
  17924. dyName: q,
  17925. isOpen: l === 0 ? true : false,
  17926. task: [],
  17927. });
  17928. for (var r = 0; r < w.length; r++) {
  17929. e = w[r].task;
  17930. if (this.chapInfoList[l].easy == 1) {
  17931. copyList[l].task.push({
  17932. taskName: q,
  17933. id: l + "-" + r,
  17934. isLook: w[r].isLook,
  17935. isOpen: r === 0 ? true : false,
  17936. tool: [],
  17937. });
  17938. } else {
  17939. copyList[l].task.push({
  17940. taskName: e,
  17941. id: l + "-" + r,
  17942. isLook: w[r].isLook,
  17943. isOpen: r === 0 ? true : false,
  17944. tool: [],
  17945. });
  17946. }
  17947. var t = w[r].toolChoose;
  17948. for (var k = 0; k < t.length; k++) {
  17949. var tool = t[k].tool[0];
  17950. copyList[l].task[r].tool.push({
  17951. tool: tool,
  17952. isTool: false,
  17953. });
  17954. }
  17955. // this.navId = this.navId ? this.navId : l + "-" + r;
  17956. // this.navId = l + "-" + r;
  17957. }
  17958. }
  17959. this.navList = copyList;
  17960. this.navList[0].isOpen = false;
  17961. this.navList[this.courseType].isOpen = true;
  17962. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17963. } else {
  17964. this.setNavList2();
  17965. }
  17966. },
  17967. setNavList2() {
  17968. for (var l = 0; l < this.chapInfoList.length; l++) {
  17969. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17970. for (var r = 0; r < w.length; r++) {
  17971. this.navList[l].task[r].isLook = w[r].isLook;
  17972. }
  17973. }
  17974. if (
  17975. this.IsLookOpen &&
  17976. !this.navList[this.courseType].task[this.taskCount].isLook
  17977. ) {
  17978. this.openTask(0, 0, "0-0");
  17979. }
  17980. this.$forceUpdate();
  17981. },
  17982. getCourseState(type) {
  17983. let params = {
  17984. cid: this.id,
  17985. };
  17986. this.ajax
  17987. .get(this.$store.state.api + "getCourseState", params)
  17988. .then((res) => {
  17989. // if (res.data[0].length > 0) {
  17990. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  17991. // }
  17992. if (res.data[0].length > 0 && type == 1) {
  17993. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17994. this.setNavList();
  17995. this.$forceUpdate();
  17996. } else if (res.data[0].length > 0 && type == 2) {
  17997. this.addCourseState(2);
  17998. } else {
  17999. // this.addCourseState(1);
  18000. }
  18001. })
  18002. .catch((err) => {
  18003. console.error(err);
  18004. });
  18005. },
  18006. addCourseState(type,val = '') {
  18007. let _state = val ? val : this.chapInfoList;
  18008. // this.courseType this.taskCount
  18009. if (type == 1 || type == 2) {
  18010. for (var i = 0; i < _state.length; i++) {
  18011. let el = _state[i].chapterInfo[0].taskJson;
  18012. for (var j = 0; j < el.length; j++) {
  18013. // if (i == 0 && j == 0) {
  18014. // el[j].isLook = true;
  18015. // } else {
  18016. // el[j].isLook = false;
  18017. // }
  18018. if (
  18019. this.courseType > i ||
  18020. (this.courseType == i && this.taskCount + 1 > j)
  18021. ) {
  18022. el[j].isLook = true;
  18023. } else {
  18024. el[j].isLook = false;
  18025. }
  18026. }
  18027. }
  18028. }
  18029. let params = [
  18030. {
  18031. cid: this.id,
  18032. state: JSON.stringify(_state),
  18033. },
  18034. ];
  18035. this.ajax
  18036. .post(
  18037. this.$store.state.api +
  18038. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18039. params
  18040. )
  18041. .then((res) => {
  18042. if (this.IsLookOpen) {
  18043. this.setNavList();
  18044. }
  18045. if (type == 3 && type == 2) {
  18046. this.getCourseState(1);
  18047. }
  18048. })
  18049. .catch((err) => {
  18050. console.error(err);
  18051. });
  18052. },
  18053. getHomeWork() {
  18054. let params = {
  18055. cid: this.id,
  18056. stage: this.courseType,
  18057. task: this.taskCount,
  18058. uid: this.userid,
  18059. };
  18060. this.ajax
  18061. .get(this.$store.state.api + "selectWork", params)
  18062. .then((res) => {
  18063. if (res.data[0].length > 0) {
  18064. this.studyJuri = JSON.parse(res.data[0][0].content);
  18065. this.isNoHomeWork = true;
  18066. }
  18067. })
  18068. .catch((err) => {
  18069. console.error(err);
  18070. });
  18071. },
  18072. isAssetTypeAnImage(ext) {
  18073. return (
  18074. [
  18075. "png",
  18076. "jpg",
  18077. "jpeg",
  18078. "bmp",
  18079. "gif",
  18080. "webp",
  18081. "psd",
  18082. "svg",
  18083. "tiff",
  18084. ].indexOf(ext) !== -1
  18085. );
  18086. },
  18087. switchVideo(media) {
  18088. this.playerO = {};
  18089. this.playerOptions.poster = "";
  18090. this.playerOptions.sources[0].src = media;
  18091. this.playerO = this.playerOptions;
  18092. },
  18093. onPlayerPlay() {},
  18094. onPlayerTimeupdate(player) {
  18095. let gklog = player.cache_.currentTime; //当前播放的秒数
  18096. let a = player.cache_.duration; //视频的总时长
  18097. let gklog2 = parseInt(gklog);
  18098. // if(gklog2 == '3'){
  18099. // player.pause()
  18100. // setTimeout(()=>{
  18101. // player.currentTime(gklog2+1)
  18102. // player.play()
  18103. // },1000)
  18104. // }
  18105. console.log(" onPlayerTimeupdate!", gklog);
  18106. console.log(" onPlayerTimeupdate!", gklog2);
  18107. },
  18108. lookVedio(u, i) {
  18109. this.isClickNav = "";
  18110. // this.playerOptions.sources[0].src = u;
  18111. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18112. d.sources[0].src = u;
  18113. this.playerO[0] = d;
  18114. this.showType = 0;
  18115. // this.isClickNav = "video" + i;
  18116. this.isClickNav = i;
  18117. this.$forceUpdate();
  18118. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18119. },
  18120. lookText(i, t) {
  18121. this.isClickNav = "";
  18122. // this.text = this.textList[i][t];
  18123. this.text = this.vChapterData[i][t];
  18124. // this.dialogVisible1 = true;
  18125. this.showType = 1;
  18126. // this.isClickNav = "text" + t;
  18127. this.isClickNav = t;
  18128. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18129. },
  18130. lookTools(i, t) {
  18131. this.chapTools = this.chapToolList[i][t];
  18132. this.dialogVisible2 = true;
  18133. },
  18134. async openFile(f) {
  18135. this.pptImgUrl = "";
  18136. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18137. if (
  18138. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18139. -1
  18140. ) {
  18141. let _uuurl = await this.checkLink(f);
  18142. console.log(_uuurl)
  18143. this.pptImgUrl =
  18144. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18145. this.showPDF = false;
  18146. this.dialogVisible3 = true;
  18147. } else if (
  18148. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18149. ) {
  18150. this.pptImgUrl = f;
  18151. this.showPDF = true;
  18152. this.dialogVisible3 = true;
  18153. }
  18154. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18155. },
  18156. openTable(f) {
  18157. this.tableJson = JSON.parse(f.works);
  18158. this.dialogVisibleTable2 = true;
  18159. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18160. },
  18161. openWord(f) {
  18162. this.tableJson = JSON.parse(f.works);
  18163. this.dialogVisibleTable3 = true;
  18164. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18165. },
  18166. doUrl(url, i) {
  18167. this.isClickNav = "";
  18168. this.pptImgUrl1 = "";
  18169. this.showType = 2;
  18170. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18171. url = "https://" + url;
  18172. }
  18173. this.pptImgUrl1 = "";
  18174. setTimeout(() => {
  18175. this.pptImgUrl1 = url;
  18176. }, 500);
  18177. // this.isClickNav = "line" + i;
  18178. this.isClickNav = i;
  18179. this.$forceUpdate();
  18180. },
  18181. checkPhoto(f, i) {
  18182. this.showType = 4;
  18183. this.pptImgUrl1 = f.url;
  18184. this.isClickNav = i;
  18185. this.$forceUpdate();
  18186. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18187. },
  18188. async downFile(f, i) {
  18189. this.isClickNav = "";
  18190. this.pptImgUrl1 = "";
  18191. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18192. if (
  18193. a.indexOf(
  18194. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18195. ) != -1
  18196. ) {
  18197. let _uuurl = await this.checkLink(f.url);
  18198. console.log(_uuurl)
  18199. this.pptImgUrl1 =
  18200. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18201. // this.dialogVisible3 = true;
  18202. this.showType = 2;
  18203. } else if (
  18204. this.isAssetTypeAnImage(
  18205. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18206. )
  18207. ) {
  18208. this.showType = 4;
  18209. this.pptImgUrl1 = f.url;
  18210. } else if (
  18211. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18212. "PDF"
  18213. ) {
  18214. this.pptImgUrl1 = f.url;
  18215. // this.dialogVisible3 = true;
  18216. this.showType = 3;
  18217. } else {
  18218. window.open(this.file[i].url);
  18219. }
  18220. // this.isClickNav = "word" + i;
  18221. this.isClickNav = i;
  18222. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18223. },
  18224. downFileList(i) {
  18225. window.open(this.noImgList[i].url);
  18226. },
  18227. openAddWork() {
  18228. this.dialogVisible = true;
  18229. },
  18230. addBzWorks() {
  18231. let params = [
  18232. {
  18233. uid: this.userid,
  18234. cid: this.id,
  18235. stage: this.courseType,
  18236. task: this.taskCount,
  18237. tool: this.toolindex,
  18238. content: JSON.stringify(this.eScore),
  18239. type: 6,
  18240. },
  18241. ];
  18242. this.ajax
  18243. .post(this.$store.state.api + "addCourseWorks", params)
  18244. .then((res) => {
  18245. this.$message({
  18246. message: "提交成功",
  18247. type: "success",
  18248. });
  18249. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  18250. this.eScore = { eBzText: "", eStar: [] };
  18251. this.studentEvalDialogVisible = false;
  18252. this.selectSWorks();
  18253. })
  18254. .catch((err) => {
  18255. this.$message.error("提交失败");
  18256. console.error(err);
  18257. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  18258. });
  18259. },
  18260. addBzWorksTeacher() {
  18261. let params = [
  18262. {
  18263. uid: this.sStudent.userid,
  18264. cid: this.id,
  18265. stage: this.courseType,
  18266. task: this.taskCount,
  18267. tool: this.toolindex,
  18268. content: JSON.stringify(this.eScore),
  18269. type: 6,
  18270. },
  18271. ];
  18272. this.ajax
  18273. .post(this.$store.state.api + "addCourseWorks", params)
  18274. .then((res) => {
  18275. this.$message({
  18276. message: "提交成功",
  18277. type: "success",
  18278. });
  18279. this.eScore = { eBzText: "", eStar: [] };
  18280. this.studentEvalDialogVisibleTeacher = false;
  18281. this.selectSWorks();
  18282. })
  18283. .catch((err) => {
  18284. this.$message.error("提交失败");
  18285. console.error(err);
  18286. });
  18287. },
  18288. addStudentAsk() {
  18289. if (!this.radio.length) {
  18290. this.$message.error("请选择选项");
  18291. return;
  18292. }
  18293. for (var i = 0; i < this.askJson.askCount; i++) {
  18294. if (
  18295. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18296. (this.radio[i] !== 0 && !this.radio[i])
  18297. ) {
  18298. this.$message.error("请选择选项");
  18299. return;
  18300. }
  18301. }
  18302. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18303. let params = [
  18304. {
  18305. uid: this.userid,
  18306. cid: this.id,
  18307. stage: this.courseType,
  18308. task: this.taskCount,
  18309. tool: this.toolindex,
  18310. content: JSON.stringify(this.askList),
  18311. type: 2,
  18312. },
  18313. ];
  18314. this.ajax
  18315. .post(this.$store.state.api + "addCourseWorks", params)
  18316. .then((res) => {
  18317. this.$message({
  18318. message: "提交成功",
  18319. type: "success",
  18320. });
  18321. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18322. this.askList = [];
  18323. this.dialogVisible5 = false;
  18324. this.selectStudent();
  18325. this.selectSWorks();
  18326. this.selectSLook();
  18327. })
  18328. .catch((err) => {
  18329. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18330. this.$message.error("提交失败");
  18331. console.error(err);
  18332. });
  18333. },
  18334. addStudentAskTeacher() {
  18335. if (!this.radio.length) {
  18336. this.$message.error("请选择选项");
  18337. return;
  18338. }
  18339. for (var i = 0; i < this.askJson.askCount; i++) {
  18340. if (
  18341. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18342. (this.radio[i] !== 0 && !this.radio[i])
  18343. ) {
  18344. this.$message.error("请选择选项");
  18345. return;
  18346. }
  18347. }
  18348. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  18349. let params = [
  18350. {
  18351. uid: this.sStudent.userid,
  18352. cid: this.id,
  18353. stage: this.courseType,
  18354. task: this.taskCount,
  18355. tool: this.toolindex,
  18356. content: JSON.stringify(this.askList),
  18357. type: 2,
  18358. },
  18359. ];
  18360. this.ajax
  18361. .post(this.$store.state.api + "addCourseWorks", params)
  18362. .then((res) => {
  18363. this.$message({
  18364. message: "提交成功",
  18365. type: "success",
  18366. });
  18367. this.askList = [];
  18368. this.dialogVisible5Teacher = false;
  18369. this.selectStudent();
  18370. this.selectSWorks();
  18371. this.selectSLook();
  18372. })
  18373. .catch((err) => {
  18374. this.$message.error("提交失败");
  18375. console.error(err);
  18376. });
  18377. },
  18378. addStudentTest() {
  18379. if (!this.radio.length) {
  18380. this.$message.error("请选择选项");
  18381. return;
  18382. }
  18383. for (var i = 0; i < this.testJson.testCount; i++) {
  18384. if (
  18385. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18386. (this.radio[i] !== 0 && !this.radio[i])
  18387. ) {
  18388. this.$message.error("请选择选项");
  18389. return;
  18390. }
  18391. }
  18392. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18393. let params = [
  18394. {
  18395. uid: this.userid,
  18396. cid: this.id,
  18397. stage: this.courseType,
  18398. task: this.taskCount,
  18399. tool: this.toolindex,
  18400. content: JSON.stringify(this.askList),
  18401. type: 8,
  18402. },
  18403. ];
  18404. this.ajax
  18405. .post(this.$store.state.api + "addCourseWorks", params)
  18406. .then((res) => {
  18407. this.$message({
  18408. message: "提交成功",
  18409. type: "success",
  18410. });
  18411. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  18412. this.askList = [];
  18413. this.dialogVisibleChoice = false;
  18414. this.selectStudent();
  18415. this.selectSWorks();
  18416. this.selectSLook();
  18417. })
  18418. .catch((err) => {
  18419. this.$message.error("提交失败");
  18420. console.error(err);
  18421. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  18422. });
  18423. },
  18424. addStudentTestTeacher() {
  18425. if (!this.radio.length) {
  18426. this.$message.error("请选择选项");
  18427. return;
  18428. }
  18429. for (var i = 0; i < this.testJson.testCount; i++) {
  18430. if (
  18431. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  18432. (this.radio[i] !== 0 && !this.radio[i])
  18433. ) {
  18434. this.$message.error("请选择选项");
  18435. return;
  18436. }
  18437. }
  18438. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  18439. let params = [
  18440. {
  18441. uid: this.sStudent.userid,
  18442. cid: this.id,
  18443. stage: this.courseType,
  18444. task: this.taskCount,
  18445. tool: this.toolindex,
  18446. content: JSON.stringify(this.askList),
  18447. type: 8,
  18448. },
  18449. ];
  18450. this.ajax
  18451. .post(this.$store.state.api + "addCourseWorks", params)
  18452. .then((res) => {
  18453. this.$message({
  18454. message: "提交成功",
  18455. type: "success",
  18456. });
  18457. this.askList = [];
  18458. this.dialogVisibleChoiceTeacher = false;
  18459. this.selectStudent();
  18460. this.selectSWorks();
  18461. this.selectSLook();
  18462. })
  18463. .catch((err) => {
  18464. this.$message.error("提交失败");
  18465. console.error(err);
  18466. });
  18467. },
  18468. addWork() {
  18469. if (this.studyJuri[0].content == "") {
  18470. this.$message.error("请将信息填写完整");
  18471. return;
  18472. } else if (this.studyJuri[0].cover.length == 0) {
  18473. this.$message.error("请将信息填写完整");
  18474. return;
  18475. } else if (this.studyJuri[0].upVedio.length == 0) {
  18476. this.$message.error("请将信息填写完整");
  18477. return;
  18478. }
  18479. if (this.isNoHomeWork) {
  18480. this.$confirm(
  18481. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  18482. "提示",
  18483. {
  18484. confirmButtonText: "确定",
  18485. cancelButtonText: "取消",
  18486. type: "warning",
  18487. }
  18488. )
  18489. .then(() => {
  18490. let params = [
  18491. {
  18492. uid: this.userid,
  18493. cid: this.id,
  18494. stage: this.courseType,
  18495. task: this.taskCount,
  18496. content: JSON.stringify(this.studyJuri),
  18497. },
  18498. ];
  18499. this.ajax
  18500. .post(this.$store.state.api + "addWorks", params)
  18501. .then((res) => {
  18502. this.$message({
  18503. message: "提交成功",
  18504. type: "success",
  18505. });
  18506. this.isNoHomeWork = true;
  18507. this.dialogVisible = false;
  18508. })
  18509. .catch((err) => {
  18510. this.$message.error("提交失败");
  18511. console.error(err);
  18512. });
  18513. })
  18514. .catch(() => {});
  18515. } else {
  18516. let params = [
  18517. {
  18518. uid: this.userid,
  18519. cid: this.id,
  18520. stage: this.courseType,
  18521. task: this.taskCount,
  18522. content: JSON.stringify(this.studyJuri),
  18523. },
  18524. ];
  18525. this.ajax
  18526. .post(this.$store.state.api + "addWorks", params)
  18527. .then((res) => {
  18528. this.$message({
  18529. message: "提交成功",
  18530. type: "success",
  18531. });
  18532. this.isNoHomeWork = true;
  18533. this.dialogVisible = false;
  18534. })
  18535. .catch((err) => {
  18536. this.$message.error("提交失败");
  18537. console.error(err);
  18538. });
  18539. }
  18540. },
  18541. selectCount() {
  18542. let params = {
  18543. cid: this.id,
  18544. chid: this.courseType,
  18545. uid: this.userid,
  18546. };
  18547. this.ajax
  18548. .get(this.$store.state.api + "selectToolsCount", params)
  18549. .then((res) => {
  18550. for (var i = 0; i < res.data[0].length; i++) {
  18551. if (res.data[0][i].tools == 1) {
  18552. this.wbCount = res.data[0][i].count;
  18553. } else if (res.data[0][i].tools == 2) {
  18554. this.wordCount = res.data[0][i].count;
  18555. } else if (res.data[0][i].tools == 3) {
  18556. this.mindCount = res.data[0][i].count;
  18557. } else if (res.data[0][i].tools == 4) {
  18558. this.askCount = res.data[0][i].count;
  18559. } else if (res.data[0][i].tools == 6) {
  18560. this.noteCount = res.data[0][i].count;
  18561. } else if (res.data[0][i].tools == 7) {
  18562. this.mindNetWorkCount = res.data[0][i].count;
  18563. } else if (res.data[0][i].tools == 8) {
  18564. this.libraryCount = res.data[0][i].count;
  18565. } else if (res.data[0][i].tools == 16) {
  18566. this.workCount = res.data[0][i].count;
  18567. } else if (res.data[0][i].tools == 10) {
  18568. this.timeCount = res.data[0][i].count;
  18569. } else if (res.data[0][i].tools == 15) {
  18570. this.answerCount = res.data[0][i].count;
  18571. } else if (res.data[0][i].tools == 18) {
  18572. this.trainCount = res.data[0][i].count;
  18573. }
  18574. }
  18575. })
  18576. .catch((err) => {
  18577. console.error(err);
  18578. });
  18579. },
  18580. openTools(t, i, index, c, sName,id) {
  18581. var z = JSON.parse(c);
  18582. this.noteName = sName;
  18583. if (t == 4) {
  18584. this.radio = [];
  18585. this.isAnswer = false;
  18586. let b = z[0].anwer;
  18587. this.radio = b;
  18588. this.askJson = z[0].askJson;
  18589. this.isAnswer = true;
  18590. this.dialogVisible5 = true;
  18591. } else if (t == 45) {
  18592. this.radio = [];
  18593. this.isAnswer = false;
  18594. let b = z[0].anwer;
  18595. this.radio = b;
  18596. this.testJson = z[0].testJson;
  18597. this.isAnswer = true;
  18598. this.dialogVisibleChoice = true;
  18599. }else if(t == 69){
  18600. this.oldEnglishJson1 = {}
  18601. this.oldEnglishJson = {}
  18602. this.englishList1 = {}
  18603. this.newEngIndex = -1;
  18604. this.isNoUserid = false;
  18605. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18606. .toolChoose[i].englishList;
  18607. this.oldEnglishJson = z;
  18608. this.engWid = id;
  18609. this.newEnglishList = { engTitle:"",engText:"" }
  18610. this.newEnglishList1 = []
  18611. this.selectEngC(id,z);
  18612. }else if(t == 62){
  18613. this.videoType = 1;
  18614. this.videoJson = {};
  18615. this.videoJson = JSON.parse(c);
  18616. // this.videoJson =
  18617. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18618. // index
  18619. // ].toolChoose[i].videoJson;
  18620. this.dialogVisibleVideo = true;
  18621. }
  18622. // else if (t == 15) {
  18623. // this.answerQ = "";
  18624. // this.questionAnswer = "";
  18625. // this.answerQ = z[0].answerTitle;
  18626. // this.questionAnswer = z[0].answer;
  18627. // this.answerDialogVisible = true;
  18628. // }
  18629. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  18630. },
  18631. fastText(p, t) {
  18632. if (t == 1) {
  18633. this.commentText += p;
  18634. } else {
  18635. this.eScore.eBzText += p;
  18636. }
  18637. },
  18638. addTools(t, i, index) {
  18639. var a = 0;
  18640. // this.taskCount = index;
  18641. this.toolindex = i;
  18642. if (t == 1) {
  18643. if (this.wbCount > 0) {
  18644. this.updateCount(this.wbCount, t);
  18645. } else {
  18646. this.wbCount++;
  18647. a = this.wbCount;
  18648. this.toolsCount(a, t);
  18649. }
  18650. window.topU.postMessage(
  18651. {
  18652. tools: "1",
  18653. cid: this.id,
  18654. stage: this.courseType,
  18655. task: this.taskCount,
  18656. tool: i,
  18657. },
  18658. "*"
  18659. );
  18660. } else if (t == 2) {
  18661. if (this.wordCount > 0) {
  18662. this.updateCount(this.wordCount, t);
  18663. } else {
  18664. this.wordCount++;
  18665. a = this.wordCount;
  18666. this.toolsCount(a, t);
  18667. }
  18668. window.topU.postMessage({ tools: "2" }, "*");
  18669. } else if (t == 3) {
  18670. if (this.mindCount > 0) {
  18671. this.updateCount(this.mindCount, t);
  18672. } else {
  18673. this.mindCount++;
  18674. a = this.mindCount;
  18675. this.toolsCount(a, t);
  18676. }
  18677. window.topU.postMessage(
  18678. {
  18679. tools: "3",
  18680. cid: this.id,
  18681. stage: this.courseType,
  18682. task: this.taskCount,
  18683. tool: i,
  18684. },
  18685. "*"
  18686. );
  18687. } else if (t == 4) {
  18688. this.radio = [];
  18689. this.noteName = "";
  18690. this.isAnswer = false;
  18691. if (this.askCount > 0) {
  18692. this.updateCount(this.askCount, t);
  18693. } else {
  18694. this.askCount++;
  18695. a = this.askCount;
  18696. this.toolsCount(a, t);
  18697. }
  18698. if (!this.dialogVisible2) {
  18699. this.askJson.askJson =
  18700. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18701. index
  18702. ].toolChoose[i].askJson;
  18703. this.askJson.askTitle =
  18704. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18705. index
  18706. ].toolChoose[i].askTitle;
  18707. this.askJson.askCount =
  18708. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18709. index
  18710. ].toolChoose[i].askCount;
  18711. } else {
  18712. this.askJson.askJson = this.chapTools.askJson.askJson;
  18713. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18714. this.askJson.askCount = this.chapTools.askJson.askCount;
  18715. }
  18716. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18717. if (this.askJson.askJson[k].type == "2") {
  18718. this.radio.push([]);
  18719. } else {
  18720. this.radio.push("");
  18721. }
  18722. }
  18723. this.dialogVisible5 = true;
  18724. // window.topU.postMessage({ tools: "4" }, "*");
  18725. } else if (t == 45) {
  18726. this.noteName = "";
  18727. this.radio = [];
  18728. this.isAnswer = false;
  18729. if (this.askCount > 0) {
  18730. this.updateCount(this.askCount, t);
  18731. } else {
  18732. this.askCount++;
  18733. a = this.askCount;
  18734. this.toolsCount(a, t);
  18735. }
  18736. this.testJson =
  18737. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18738. index
  18739. ].toolChoose[i].testJson;
  18740. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18741. if (this.testJson.testJson[k].type == "2") {
  18742. this.radio.push([]);
  18743. } else {
  18744. this.radio.push("");
  18745. }
  18746. }
  18747. this.dialogVisibleChoice = true;
  18748. // window.topU.postMessage({ tools: "4" }, "*");
  18749. } else if (t == 5) {
  18750. if (this.scoreCount > 0) {
  18751. this.updateCount(this.scoreCount, t);
  18752. } else {
  18753. this.scoreCount++;
  18754. a = this.scoreCount;
  18755. this.toolsCount(a, t);
  18756. }
  18757. this.dialogVisible4 = true;
  18758. // window.topU.postMessage({ tools: "5" }, "*");
  18759. } else if (t == 6) {
  18760. if (this.noteCount > 0) {
  18761. this.updateCount(this.noteCount, t);
  18762. } else {
  18763. this.noteCount++;
  18764. a = this.noteCount;
  18765. this.toolsCount(a, t);
  18766. }
  18767. window.topU.postMessage(
  18768. {
  18769. tools: "6",
  18770. cid: this.id,
  18771. stage: this.courseType,
  18772. task: this.taskCount,
  18773. tool: i,
  18774. },
  18775. "*"
  18776. );
  18777. } else if (t == 7) {
  18778. if (this.mindNetWorkCount > 0) {
  18779. this.updateCount(this.mindNetWorkCount, t);
  18780. } else {
  18781. this.mindNetWorkCount++;
  18782. a = this.mindNetWorkCount;
  18783. this.toolsCount(a, t);
  18784. }
  18785. window.topU.postMessage(
  18786. {
  18787. tools: "7",
  18788. cid: this.id,
  18789. stage: this.courseType,
  18790. task: this.taskCount,
  18791. tool: i,
  18792. },
  18793. "*"
  18794. );
  18795. } else if (t == 16) {
  18796. if (this.workCount > 0) {
  18797. this.updateCount(this.workCount, t);
  18798. } else {
  18799. this.workCount++;
  18800. a = this.workCount;
  18801. this.toolsCount(a, t);
  18802. }
  18803. this.dialogVisible = true;
  18804. } else if (t == 50) {
  18805. if (this.tType == 2) {
  18806. this.$message.error("不支持学生使用");
  18807. return;
  18808. }
  18809. this.plworkFile = [];
  18810. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18811. if (!this.uploadCid) {
  18812. this.$message.error(
  18813. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18814. );
  18815. return;
  18816. }
  18817. // this.uploadCid =
  18818. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18819. // index
  18820. // ].toolChoose[i].uploadJson[0];
  18821. this.selectUploadStudent(2);
  18822. } else if (t == 8) {
  18823. if (this.libraryCount > 0) {
  18824. this.updateCount(this.libraryCount, t);
  18825. } else {
  18826. this.libraryCount++;
  18827. a = this.libraryCount;
  18828. this.toolsCount(a, t);
  18829. }
  18830. window.topU.postMessage({ tools: "8" }, "*");
  18831. } else if (t == 17) {
  18832. if (this.libraryCount > 0) {
  18833. this.updateCount(this.libraryCount, t);
  18834. } else {
  18835. this.libraryCount++;
  18836. a = this.libraryCount;
  18837. this.toolsCount(a, t);
  18838. }
  18839. window.topU.postMessage({ tools: "17" }, "*");
  18840. } else if (t == 18) {
  18841. if (this.trainCount > 0) {
  18842. this.updateCount(this.trainCount, t);
  18843. } else {
  18844. this.trainCount++;
  18845. a = this.trainCount;
  18846. this.toolsCount(a, t);
  18847. }
  18848. window.topU.postMessage({ tools: "18" }, "*");
  18849. } else if (t == 10) {
  18850. if (this.timeCount > 0) {
  18851. this.updateCount(this.timeCount, t);
  18852. } else {
  18853. this.timeCount++;
  18854. a = this.timeCount;
  18855. this.toolsCount(a, t);
  18856. }
  18857. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18858. .taskJson[index].toolChoose[i].preTime
  18859. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18860. .toolChoose[i].preTime
  18861. : "";
  18862. this.timeDialogVisible = true;
  18863. } else if (t == 15) {
  18864. this.answerQ = "";
  18865. this.questionAnswer = "";
  18866. if (this.answerCount > 0) {
  18867. this.updateCount(this.answerCount, t);
  18868. } else {
  18869. this.answerCount++;
  18870. a = this.answerCount;
  18871. this.toolsCount(a, t);
  18872. }
  18873. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18874. .taskJson[index].toolChoose[i].answerQ
  18875. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18876. .toolChoose[i].answerQ
  18877. : "";
  18878. this.answerDialogVisible = true;
  18879. } else if (t == 21) {
  18880. window.topU.postMessage({ tools: "21" }, "*");
  18881. } else if (t == 22) {
  18882. window.topU.postMessage({ tools: "22" }, "*");
  18883. } else if (t == 23) {
  18884. window.topU.postMessage({ tools: "23" }, "*");
  18885. } else if (t == 24) {
  18886. window.topU.postMessage({ tools: "24" }, "*");
  18887. } else if (t == 25) {
  18888. window.topU.postMessage({ tools: "25" }, "*");
  18889. } else if (t == 31) {
  18890. window.topU.postMessage({ tools: "31" }, "*");
  18891. } else if (t == 28) {
  18892. window.topU.postMessage({ tools: "28" }, "*");
  18893. } else if (t == 37) {
  18894. window.topU.postMessage({ tools: "37" }, "*");
  18895. } else if (t == 38) {
  18896. window.topU.postMessage({ tools: "38" }, "*");
  18897. } else if (t == 39) {
  18898. window.topU.postMessage({ tools: "39" }, "*");
  18899. } else if (t == 32) {
  18900. window.topU.postMessage({ tools: "32" }, "*");
  18901. } else if (t == 66) {
  18902. window.topU.postMessage({ tools: "66" }, "*");
  18903. } else if (t == 67) {
  18904. window.topU.postMessage({ tools: "67" }, "*");
  18905. } else if (t == 68) {
  18906. window.topU.postMessage({ tools: "68" }, "*");
  18907. } else if (t == 57) {
  18908. // window.topU.postMessage({ tools: "57" }, "*");
  18909. window.topU.postMessage(
  18910. {
  18911. tools: "57u",
  18912. cid: this.id,
  18913. stage: this.courseType,
  18914. task: this.taskCount,
  18915. tool: i,
  18916. },
  18917. "*"
  18918. );
  18919. } else if (t == 58) {
  18920. window.topU.postMessage({ tools: "58" }, "*");
  18921. } else if (t == 59) {
  18922. window.topU.postMessage({ tools: "59" }, "*");
  18923. } else if (t == 60) {
  18924. window.topU.postMessage({ tools: "60" }, "*");
  18925. } else if (t == 61) {
  18926. window.topU.postMessage({ tools: "61" }, "*");
  18927. } else if (t == 63) {
  18928. window.topU.postMessage({ tools: "63" }, "*");
  18929. } else if (t == 71) {
  18930. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  18931. // this.$message.error("该工具不可使用");
  18932. // return
  18933. // }
  18934. window.topU.postMessage({ tools: "71" }, "*");
  18935. } else if (t == 72) {
  18936. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  18937. .taskJson[index].toolChoose[i].appJson
  18938. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18939. .toolChoose[i].appJson
  18940. : "";
  18941. if(!item || !item.url){
  18942. this.$message.error("应用连接为空, 请到课程管理中添加");
  18943. return;
  18944. }
  18945. if (!document.fullscreenElement) {
  18946. this.enterFullScreen();
  18947. }
  18948. this.$refs.appStoreC.getData(item.url,this.userid)
  18949. // window.topU.postMessage({ tools: "72", data: item }, "*");
  18950. // window.open(item.url, "_blank");
  18951. } else if (t == 69) {
  18952. if (this.worksStudent[i].length) {
  18953. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18954. if (this.userid == this.worksStudent[i][k].userid) {
  18955. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18956. break;
  18957. } else {
  18958. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18959. }
  18960. }
  18961. } else {
  18962. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18963. }
  18964. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18965. .taskJson[index].toolChoose[i].englishList
  18966. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18967. .toolChoose[i].englishList
  18968. : {};
  18969. this.englishToolIndex = i;
  18970. this.myAnList = this.myAnswerList1;
  18971. this.engDialogVisible = true;
  18972. } else if (t == 70) {
  18973. if (this.worksStudent[i].length) {
  18974. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18975. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18976. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18977. break;
  18978. } else {
  18979. this.englishVoiceJsonWork = [];
  18980. }
  18981. }
  18982. } else {
  18983. this.englishVoiceJsonWork = [];
  18984. }
  18985. let englishVoiceJson = {}
  18986. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18987. .taskJson[index].toolChoose[i].englishVoiceJson
  18988. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18989. .toolChoose[i].englishVoiceJson
  18990. : {};
  18991. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18992. this.EnglishVoiceDialog = true;
  18993. } else if (t == 65) {
  18994. if (this.tType == 2) {
  18995. this.$message.error("不支持学生使用");
  18996. return;
  18997. }
  18998. this.uploadCid = this.tcid;
  18999. if (!this.uploadCid) {
  19000. this.$message.error(
  19001. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19002. );
  19003. return;
  19004. }
  19005. this.selectPickStudent();
  19006. } else if (t == 26) {
  19007. window.topU.postMessage(
  19008. {
  19009. tools: "26",
  19010. cid: this.id,
  19011. stage: this.courseType,
  19012. task: this.taskCount,
  19013. tool: i,
  19014. },
  19015. "*"
  19016. );
  19017. } else if (t == 40) {
  19018. if (this.evalCount > 0) {
  19019. this.updateCount(this.evalCount, t);
  19020. } else {
  19021. this.evalCount++;
  19022. a = this.evalCount;
  19023. this.toolsCount(a, t);
  19024. }
  19025. this.eScore = { eBzText: "", eStar: [] };
  19026. if (this.worksStudent[i].length) {
  19027. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19028. if (this.userid == this.worksStudent[i][k].userid) {
  19029. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19030. this.rateJson =
  19031. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19032. index
  19033. ].toolChoose[i].rateJson;
  19034. break;
  19035. } else {
  19036. this.rateJson =
  19037. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19038. index
  19039. ].toolChoose[i].rateJson;
  19040. }
  19041. }
  19042. } else {
  19043. this.rateJson =
  19044. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19045. index
  19046. ].toolChoose[i].rateJson;
  19047. }
  19048. this.isStar = false;
  19049. this.studentEvalDialogVisible = true;
  19050. } else if (t == 41) {
  19051. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19052. .taskJson[index].toolChoose[i].selectJson
  19053. ? JSON.parse(
  19054. JSON.stringify(
  19055. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19056. index
  19057. ].toolChoose[i].selectJson
  19058. )
  19059. )
  19060. : { url: "", select: [], answer: [] };
  19061. if (this.worksStudent[i].length) {
  19062. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19063. if (this.userid == this.worksStudent[i][k].userid) {
  19064. var a = this.worksStudent[i][k].works.split(",");
  19065. for (var ki = 0; ki < a.length; ki++) {
  19066. a[ki] = parseInt(a[ki]);
  19067. }
  19068. this.selectAnswer = {
  19069. answer: a,
  19070. stu: this.worksStudent[i][k].sName,
  19071. };
  19072. break;
  19073. } else {
  19074. this.selectAnswer = { answer: [], stu: "" };
  19075. }
  19076. }
  19077. } else {
  19078. this.selectAnswer = { answer: [], stu: "" };
  19079. }
  19080. this.isSelect = false;
  19081. this.dialogVisibleSelect = true;
  19082. } else if (t == 44) {
  19083. window.topU.postMessage({ tools: "44" }, "*");
  19084. } else if (t == 47) {
  19085. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19086. .taskJson[index].toolChoose[i].sentenceList
  19087. ? JSON.parse(
  19088. JSON.stringify(
  19089. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19090. index
  19091. ].toolChoose[i].sentenceList
  19092. )
  19093. )
  19094. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19095. for (var q = 0; q < this.sentenceList.length; q++) {
  19096. this.sentenceList[q].chooseSenList = [];
  19097. this.sentenceList[q].addChangeSen = [];
  19098. this.sentenceList[q].addChangeSen = JSON.parse(
  19099. JSON.stringify(this.sentenceList[q].addSentence)
  19100. );
  19101. this.sentenceList[q].chooseSenList.length =
  19102. this.sentenceList[q].rightAnswer.length;
  19103. }
  19104. this.dialogVisibleSentence = true;
  19105. } else if (t == 48) {
  19106. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19107. .taskJson[index].toolChoose[i].tableJson
  19108. ? JSON.parse(
  19109. JSON.stringify(
  19110. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19111. index
  19112. ].toolChoose[i].tableJson
  19113. )
  19114. )
  19115. : { text: "" };
  19116. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19117. if (this.worksStudent[i].length) {
  19118. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19119. if (this.userid == this.worksStudent[i][k].userid) {
  19120. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19121. break;
  19122. }
  19123. }
  19124. }
  19125. this.dialogVisibleTable = true;
  19126. } else if (t == 52) {
  19127. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19128. .taskJson[index].toolChoose[i].wordJson
  19129. ? JSON.parse(
  19130. JSON.stringify(
  19131. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19132. index
  19133. ].toolChoose[i].wordJson
  19134. )
  19135. )
  19136. : { text: "" };
  19137. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19138. if (this.worksStudent[i].length) {
  19139. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19140. if (this.userid == this.worksStudent[i][k].userid) {
  19141. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19142. break;
  19143. }
  19144. }
  19145. }
  19146. this.dialogVisibleWord = true;
  19147. } else if (t == 49) {
  19148. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19149. return
  19150. }
  19151. this.groupJson =
  19152. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19153. index
  19154. ].toolChoose[i].groupJson;
  19155. this.islock = this.groupJson.islock == 1 ? true : false;
  19156. this.dialogVisibleGroup = true;
  19157. } else if (t == 62) {
  19158. this.videoType = 0;
  19159. this.videoJson = {};
  19160. this.videoJson =
  19161. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19162. index
  19163. ].toolChoose[i].videoJson;
  19164. this.dialogVisibleVideo = true;
  19165. }
  19166. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  19167. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19168. },
  19169. teacherWorkSubmit(t, i, index, s) {
  19170. this.sStudent = s;
  19171. this.toolindex = i;
  19172. this.sTool = t;
  19173. if (this.tType !== "1" && this.tType !== "4") {
  19174. return;
  19175. }
  19176. if (t == 16 || t == 32 || t == 50) {
  19177. this.dialogVisibleWorks = true;
  19178. } else if (t == 15) {
  19179. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19180. .taskJson[index].toolChoose[i].answerQ
  19181. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19182. .toolChoose[i].answerQ
  19183. : "";
  19184. this.questionAnswer = "";
  19185. this.answerDialogVisibleTeacher = true; //问答
  19186. } else if (t == 52) {
  19187. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19188. .taskJson[index].toolChoose[i].wordJson
  19189. ? JSON.parse(
  19190. JSON.stringify(
  19191. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19192. index
  19193. ].toolChoose[i].wordJson
  19194. )
  19195. )
  19196. : { text: "" };
  19197. if (this.worksStudent[i].length) {
  19198. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19199. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19200. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19201. break;
  19202. }
  19203. }
  19204. }
  19205. this.dialogVisibleWordTeacher = true; //文档
  19206. } else if (t == 4) {
  19207. this.radio = [];
  19208. this.noteName = "";
  19209. this.isAnswer = false;
  19210. if (this.askCount > 0) {
  19211. this.updateCount(this.askCount, t);
  19212. } else {
  19213. this.askCount++;
  19214. a = this.askCount;
  19215. this.toolsCount(a, t);
  19216. }
  19217. if (!this.dialogVisible2) {
  19218. this.askJson.askJson =
  19219. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19220. index
  19221. ].toolChoose[i].askJson;
  19222. this.askJson.askTitle =
  19223. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19224. index
  19225. ].toolChoose[i].askTitle;
  19226. this.askJson.askCount =
  19227. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19228. index
  19229. ].toolChoose[i].askCount;
  19230. } else {
  19231. this.askJson.askJson = this.chapTools.askJson.askJson;
  19232. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19233. this.askJson.askCount = this.chapTools.askJson.askCount;
  19234. }
  19235. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19236. if (this.askJson.askJson[k].type == "2") {
  19237. this.radio.push([]);
  19238. } else {
  19239. this.radio.push("");
  19240. }
  19241. }
  19242. this.dialogVisible5Teacher = true;
  19243. } else if (t == 45) {
  19244. this.noteName = "";
  19245. this.radio = [];
  19246. this.isAnswer = false;
  19247. if (this.askCount > 0) {
  19248. this.updateCount(this.askCount, t);
  19249. } else {
  19250. this.askCount++;
  19251. a = this.askCount;
  19252. this.toolsCount(a, t);
  19253. }
  19254. this.testJson =
  19255. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19256. index
  19257. ].toolChoose[i].testJson;
  19258. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19259. if (this.testJson.testJson[k].type == "2") {
  19260. this.radio.push([]);
  19261. } else {
  19262. this.radio.push("");
  19263. }
  19264. }
  19265. this.dialogVisibleChoiceTeacher = true;
  19266. } else if (t == 41) {
  19267. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19268. .taskJson[index].toolChoose[i].selectJson
  19269. ? JSON.parse(
  19270. JSON.stringify(
  19271. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19272. index
  19273. ].toolChoose[i].selectJson
  19274. )
  19275. )
  19276. : { url: "", select: [], answer: [] };
  19277. if (this.worksStudent[i].length) {
  19278. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19279. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19280. var a = this.worksStudent[i][k].works.split(",");
  19281. for (var ki = 0; ki < a.length; ki++) {
  19282. a[ki] = parseInt(a[ki]);
  19283. }
  19284. this.selectAnswer = {
  19285. answer: a,
  19286. stu: this.worksStudent[i][k].sName,
  19287. };
  19288. break;
  19289. } else {
  19290. this.selectAnswer = { answer: [], stu: "" };
  19291. }
  19292. }
  19293. } else {
  19294. this.selectAnswer = { answer: [], stu: "" };
  19295. }
  19296. this.isSelect = false;
  19297. this.dialogVisibleSelectTeacher = true;
  19298. } else if (t == 47) {
  19299. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19300. .taskJson[index].toolChoose[i].sentenceList
  19301. ? JSON.parse(
  19302. JSON.stringify(
  19303. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19304. index
  19305. ].toolChoose[i].sentenceList
  19306. )
  19307. )
  19308. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19309. for (var q = 0; q < this.sentenceList.length; q++) {
  19310. this.sentenceList[q].chooseSenList = [];
  19311. this.sentenceList[q].addChangeSen = [];
  19312. this.sentenceList[q].addChangeSen = JSON.parse(
  19313. JSON.stringify(this.sentenceList[q].addSentence)
  19314. );
  19315. this.sentenceList[q].chooseSenList.length =
  19316. this.sentenceList[q].rightAnswer.length;
  19317. }
  19318. this.dialogVisibleSentenceTeacher = true;
  19319. } else if (t == 48) {
  19320. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19321. .taskJson[index].toolChoose[i].tableJson
  19322. ? JSON.parse(
  19323. JSON.stringify(
  19324. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19325. index
  19326. ].toolChoose[i].tableJson
  19327. )
  19328. )
  19329. : { text: "" };
  19330. if (this.worksStudent[i].length) {
  19331. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19332. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19333. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19334. break;
  19335. }
  19336. }
  19337. }
  19338. this.dialogVisibleTableTeacher = true;
  19339. } else if (t == 40) {
  19340. if (this.evalCount > 0) {
  19341. this.updateCount(this.evalCount, t);
  19342. } else {
  19343. this.evalCount++;
  19344. a = this.evalCount;
  19345. this.toolsCount(a, t);
  19346. }
  19347. this.eScore = { eBzText: "", eStar: [] };
  19348. if (this.worksStudent[i].length) {
  19349. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19350. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19351. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19352. this.rateJson =
  19353. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19354. index
  19355. ].toolChoose[i].rateJson;
  19356. break;
  19357. } else {
  19358. this.rateJson =
  19359. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19360. index
  19361. ].toolChoose[i].rateJson;
  19362. }
  19363. }
  19364. } else {
  19365. this.rateJson =
  19366. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19367. index
  19368. ].toolChoose[i].rateJson;
  19369. }
  19370. this.isStar = false;
  19371. this.studentEvalDialogVisibleTeacher = true;
  19372. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  19373. window.topU.postMessage(
  19374. {
  19375. tools: t + "teacher",
  19376. cid: this.id,
  19377. stage: this.courseType,
  19378. task: this.taskCount,
  19379. tool: i,
  19380. student: this.sStudent,
  19381. },
  19382. "*"
  19383. );
  19384. }else if (t == 72) {
  19385. if (!document.fullscreenElement) {
  19386. this.enterFullScreen();
  19387. }
  19388. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  19389. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  19390. }
  19391. },
  19392. openCocoPi(tool, i, uid, uname) {
  19393. let student = {
  19394. userid: uid,
  19395. student: uname,
  19396. };
  19397. if (tool == 57) {
  19398. window.topU.postMessage(
  19399. {
  19400. tools: tool + "teacher",
  19401. cid: this.id,
  19402. stage: this.courseType,
  19403. task: this.taskCount,
  19404. tool: i,
  19405. student: student,
  19406. },
  19407. "*"
  19408. );
  19409. }
  19410. },
  19411. setRightAnswer(s, i, j) {
  19412. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  19413. if (
  19414. this.sentenceList[i].chooseSenList[q] == undefined ||
  19415. this.sentenceList[i].chooseSenList[q] == ""
  19416. ) {
  19417. this.sentenceList[i].chooseSenList[q] = s;
  19418. this.sentenceList[i].addChangeSen[j] = "";
  19419. break;
  19420. }
  19421. }
  19422. this.$forceUpdate();
  19423. },
  19424. returnCard(r, i, j) {
  19425. var a = this.sentenceList[i].addSentence.indexOf(r);
  19426. this.sentenceList[i].chooseSenList[j] = "";
  19427. this.sentenceList[i].addChangeSen[a] = r;
  19428. this.$forceUpdate();
  19429. },
  19430. // addSentenceTool() {
  19431. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19432. // this.taskCount
  19433. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  19434. // this.sentenceList = [
  19435. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  19436. // ];
  19437. // this.dialogVisibleSentence = false;
  19438. // },
  19439. toolsCount(a, t) {
  19440. let params = {
  19441. cid: this.id,
  19442. chid: this.courseType,
  19443. uid: this.userid,
  19444. tid: t,
  19445. count: a,
  19446. };
  19447. this.ajax
  19448. .get(this.$store.state.api + "insertToolsCount", params)
  19449. .then((res) => {
  19450. this.selectCount();
  19451. })
  19452. .catch((err) => {
  19453. console.error(err);
  19454. });
  19455. },
  19456. updateCount(c, t) {
  19457. c++;
  19458. let params = {
  19459. cid: this.id,
  19460. chid: this.courseType,
  19461. uid: this.userid,
  19462. tid: t,
  19463. count: c,
  19464. };
  19465. this.ajax
  19466. .get(this.$store.state.api + "updateToolsCount", params)
  19467. .then((res) => {
  19468. this.selectCount();
  19469. })
  19470. .catch((err) => {
  19471. console.error(err);
  19472. });
  19473. },
  19474. checkEva() {
  19475. if (this.evalua != "") {
  19476. for (var i = 0; i < this.evaJuri.length; i++) {
  19477. if (this.evalua == this.evaJuri[i].id) {
  19478. this.eTitle = this.evaJuri[i].title;
  19479. this.eJson = JSON.parse(this.evaJuri[i].content);
  19480. }
  19481. }
  19482. this.$forceUpdate();
  19483. setTimeout(() => {
  19484. this.setMindData();
  19485. }, 0);
  19486. }
  19487. },
  19488. selectEva() {
  19489. let params = {
  19490. oid: this.oid,
  19491. };
  19492. this.ajax
  19493. .get(this.$store.state.api + "selectAllEvaluation", params)
  19494. .then((res) => {
  19495. this.evaJuri = res.data[0];
  19496. })
  19497. .catch((err) => {
  19498. console.error(err);
  19499. });
  19500. },
  19501. setMindData() {
  19502. this.data.data = [];
  19503. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  19504. let _eJson = Object.keys(this.eJson);
  19505. let _e = this.eJson;
  19506. for (let i = 0; i < _eJson.length; i++) {
  19507. let element = _e[_eJson[i]];
  19508. this.data.data.push({
  19509. id: element.id,
  19510. parentid: "root",
  19511. topic: element.name,
  19512. });
  19513. let _eJsonc = Object.keys(element.child);
  19514. let _e2 = element.child;
  19515. for (let j = 0; j < _eJsonc.length; j++) {
  19516. let _ec = _e2[_eJsonc[j]];
  19517. this.data.data.push({
  19518. id: _ec.id,
  19519. parentid: element.id,
  19520. topic: _ec.name,
  19521. });
  19522. let _eJsonz = Object.keys(_ec.child);
  19523. let _e3 = _ec.child;
  19524. for (let z = 0; z < _eJsonz.length; z++) {
  19525. let _ez = _e3[_eJsonz[z]];
  19526. this.data.data.push({
  19527. id: _ez.id,
  19528. parentid: _ec.id,
  19529. topic: _ez.name,
  19530. });
  19531. }
  19532. }
  19533. }
  19534. this.$forceUpdate();
  19535. },
  19536. checkFileFull(type, url) {
  19537. this.fullDialogVisible = true;
  19538. this.fulltype = type;
  19539. this.fullUrl = url;
  19540. },
  19541. async checkFileFull1(t, f) {
  19542. this.fullDialogVisible = true;
  19543. if (t == 6) {
  19544. this.fulltype = 1;
  19545. this.fullUrl = JSON.parse(JSON.stringify(f));
  19546. } else if (t == 8) {
  19547. this.fulltype = 2;
  19548. this.fullUrl = f.url;
  19549. }else if (t == 15) {
  19550. this.fulltype = 4;
  19551. this.fullUrl = f.url;
  19552. } else if (
  19553. t == 3 &&
  19554. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19555. "PDF"
  19556. ) {
  19557. this.fulltype = 3;
  19558. this.fullUrl = f.url;
  19559. } else if (t == 3) {
  19560. this.fulltype = 2;
  19561. let _uuurl = await this.checkLink(f.url);
  19562. console.log(_uuurl)
  19563. this.fullUrl =
  19564. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19565. }
  19566. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  19567. },
  19568. openSname(n, id, i, uid) {
  19569. this.snameWid = id;
  19570. this.worksSName = n;
  19571. this.worksSid = uid == n ? "" : uid;
  19572. this.toolindex = i;
  19573. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19574. if (!this.uploadCid) {
  19575. this.$message.error(
  19576. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19577. );
  19578. return;
  19579. }
  19580. this.selectUploadStudent(1);
  19581. },
  19582. updateName() {
  19583. let params = {
  19584. n: this.worksSName,
  19585. cid: this.snameWid,
  19586. };
  19587. this.ajax
  19588. .get(this.$store.state.api + "updateCourseWorksName", params)
  19589. .then((res) => {
  19590. this.$message({
  19591. message: "修改成功",
  19592. type: "success",
  19593. });
  19594. this.dialogVisibleSname = false;
  19595. this.getCourseDetail(2);
  19596. this.snameWid = "";
  19597. this.worksSName = "";
  19598. })
  19599. .catch((err) => {
  19600. console.error(err);
  19601. });
  19602. },
  19603. downloadFile2(f) {
  19604. // const loading = this.$loading.service({
  19605. // background: "rgba(255, 255, 255, 0.7)",
  19606. // target: document.body,
  19607. // text: "文件加载中...",
  19608. // });
  19609. // let url2 = f.url;
  19610. // let _url2 = "";
  19611. // if (
  19612. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19613. // ) {
  19614. // _url2 = url2.split(
  19615. // "https://view.officeapps.live.com/op/view.aspx?src="
  19616. // )[1];
  19617. // } else {
  19618. // _url2 = url2;
  19619. // }
  19620. // let params = {
  19621. // url: _url2,
  19622. // name: f.name,
  19623. // };
  19624. // this.ajax
  19625. // .get(this.$store.state.api + "download", params)
  19626. // .then((res) => {
  19627. // loading.close();
  19628. // let content = res.data.data.data;
  19629. // let ab = new ArrayBuffer(content.length);
  19630. // let view = new Uint8Array(ab);
  19631. // for (var i = 0; i < content.length; ++i) {
  19632. // view[i] = content[i];
  19633. // }
  19634. // let elink = document.createElement("a");
  19635. // elink.download = f.name;
  19636. // elink.style.display = "none";
  19637. // let blob = new Blob([ab], {
  19638. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  19639. // });
  19640. // elink.href = URL.createObjectURL(blob);
  19641. // document.body.appendChild(elink);
  19642. // elink.click();
  19643. // document.body.removeChild(elink);
  19644. // })
  19645. // .catch((err) => {
  19646. // loading.close();
  19647. // console.error(err);
  19648. // });
  19649. var credentials = {
  19650. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19651. secretAccessKey: "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",
  19652. }; //秘钥形式的登录上传
  19653. window.AWS.config.update(credentials);
  19654. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19655. let url2 = f.url;
  19656. let _url2 = "";
  19657. if (
  19658. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19659. ) {
  19660. _url2 = url2.split(
  19661. "https://view.officeapps.live.com/op/view.aspx?src="
  19662. )[1];
  19663. } else {
  19664. _url2 = url2;
  19665. }
  19666. let _this = this;
  19667. _this.downLoading = true
  19668. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19669. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19670. var params = {
  19671. Bucket: "ccrb",
  19672. Key: name
  19673. };
  19674. s3.getObject(params, function (err, data) {
  19675. _this.downLoading = false
  19676. if (err) console.log(err, err.stack); // an error occurred
  19677. else {
  19678. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19679. let a = document.createElement("a");
  19680. a.name = f.name;
  19681. a.href = url;
  19682. a.download = f.name;
  19683. a.click();
  19684. console.log(data);
  19685. } // sxuccessful response
  19686. });
  19687. return;
  19688. let url = f.url;
  19689. let _url = "";
  19690. if (
  19691. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19692. ) {
  19693. _url = url.split(
  19694. "https://view.officeapps.live.com/op/view.aspx?src="
  19695. )[1];
  19696. } else {
  19697. _url = url;
  19698. }
  19699. _this.downLoading = true
  19700. // const loading = _this.$loading.service({
  19701. // background: "rgba(255, 255, 255, 0.7)",
  19702. // target: document.body,
  19703. // text: "文件加载中...",
  19704. // });
  19705. let x = new XMLHttpRequest();
  19706. x.open("GET", _url, true);
  19707. x.responseType = "blob";
  19708. x.onload = function () {
  19709. _this.downLoading = false
  19710. // loading.close();
  19711. let url = window.URL.createObjectURL(new Blob([x.response]));
  19712. let a = document.createElement("a");
  19713. a.name = f.name;
  19714. a.href = url;
  19715. a.download = f.name;
  19716. a.click();
  19717. };
  19718. x.send();
  19719. },
  19720. downloadFile(url) {
  19721. var credentials = {
  19722. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19723. secretAccessKey: "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",
  19724. }; //秘钥形式的登录上传
  19725. window.AWS.config.update(credentials);
  19726. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19727. let url2 = url;
  19728. let _url2 = "";
  19729. if (
  19730. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19731. ) {
  19732. _url2 = url2.split(
  19733. "https://view.officeapps.live.com/op/view.aspx?src="
  19734. )[1];
  19735. } else {
  19736. _url2 = url2;
  19737. }
  19738. const loading2 = this.$loading.service({
  19739. background: "rgba(255, 255, 255, 0.7)",
  19740. target: document.body,
  19741. text: "文件加载中...",
  19742. });
  19743. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19744. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19745. var params = {
  19746. Bucket: "ccrb",
  19747. Key: name
  19748. };
  19749. s3.getObject(params, function (err, data) {
  19750. loading2.close();
  19751. if (err) console.log(err, err.stack); // an error occurred
  19752. else {
  19753. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19754. let a = document.createElement("a");
  19755. a.name = name;
  19756. a.href = url;
  19757. a.download = name;
  19758. a.click();
  19759. console.log(data);
  19760. } // sxuccessful response
  19761. });
  19762. return;
  19763. let _this = this;
  19764. let _url = "";
  19765. if (
  19766. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19767. ) {
  19768. _url = url.split(
  19769. "https://view.officeapps.live.com/op/view.aspx?src="
  19770. )[1];
  19771. } else {
  19772. _url = url;
  19773. }
  19774. const x = new XMLHttpRequest();
  19775. x.open("GET", _url, true);
  19776. x.responseType = "blob";
  19777. // this.downLoading = true
  19778. const loading = _this.$loading.service({
  19779. background: "rgba(255, 255, 255, 0.7)",
  19780. target: document.body,
  19781. text: "文件加载中...",
  19782. });
  19783. // _this.$message.success("文件下载中...");
  19784. x.onload = function (e) {
  19785. this.downLoading = false
  19786. loading.close();
  19787. let content = x.response;
  19788. let elink = document.createElement("a");
  19789. elink.download = decodeURI(
  19790. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19791. );
  19792. elink.style.display = "none";
  19793. let blob = new Blob([content]);
  19794. elink.href = URL.createObjectURL(blob);
  19795. document.body.appendChild(elink);
  19796. elink.click();
  19797. document.body.removeChild(elink);
  19798. };
  19799. x.send();
  19800. },
  19801. openLine(url) {
  19802. window.open(url);
  19803. },
  19804. resize() {
  19805. if (document.getElementsByClassName("box_course").length) {
  19806. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19807. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19808. if (this.showType == 2 || this.showType == 3) {
  19809. document.getElementsByClassName("navBox")[0].style.height =
  19810. a - 40 + 0+ "px";
  19811. } else {
  19812. document.getElementsByClassName("navBox")[0].style.height =
  19813. a - 40 + "px";
  19814. }
  19815. }
  19816. this.Stbodywidth =
  19817. document.getElementsByClassName("student_body").length &&
  19818. document.getElementsByClassName("student_body")[0].offsetWidth;
  19819. },
  19820. closeDraw() {
  19821. this.bg = null;
  19822. this.drawShow = false;
  19823. },
  19824. showPicturePaint(url) {
  19825. let params = {
  19826. img: url,
  19827. };
  19828. this.ajax
  19829. .get(this.$store.state.api + "imgToBase64", params)
  19830. .then((res) => {
  19831. this.drawShow = true;
  19832. this.bg = res.data[0].img;
  19833. })
  19834. .catch((err) => {
  19835. console.error(err);
  19836. });
  19837. },
  19838. addImgDraw(base64) {
  19839. let file = { name: "批注图.png" };
  19840. let img = this.dataUrlToFile(base64, file);
  19841. this.beforeUpload1(img, 5);
  19842. },
  19843. addImgDrawImG(url) {
  19844. // console.log(url);
  19845. let params = [
  19846. {
  19847. wid: this.commentDetail.wid,
  19848. img: url,
  19849. },
  19850. ];
  19851. this.ajax
  19852. .post(this.$store.state.api + "updateCourseWorks", params)
  19853. .then((res) => {
  19854. this.$message({
  19855. message: "提交成功",
  19856. type: "success",
  19857. });
  19858. this.drawShow = false;
  19859. this.bg = "";
  19860. this.selectSWorks();
  19861. this.selectStudent();
  19862. })
  19863. .catch((err) => {
  19864. this.$message.error("提交失败");
  19865. console.error(err);
  19866. });
  19867. },
  19868. deletePicturePaint() {
  19869. this.$confirm("确定删除此批注吗?", "提示", {
  19870. confirmButtonText: "确定",
  19871. cancelButtonText: "取消",
  19872. type: "warning",
  19873. })
  19874. .then(() => {
  19875. let params = [
  19876. {
  19877. wid: this.commentDetail.wid,
  19878. img: "",
  19879. },
  19880. ];
  19881. this.ajax
  19882. .post(this.$store.state.api + "updateCourseWorks", params)
  19883. .then((res) => {
  19884. this.$message({
  19885. message: "删除成功",
  19886. type: "success",
  19887. });
  19888. this.selectSWorks();
  19889. this.selectStudent();
  19890. })
  19891. .catch((err) => {
  19892. this.$message.error("删除失败");
  19893. console.error(err);
  19894. });
  19895. })
  19896. .catch(() => {});
  19897. },
  19898. getAudioVideo(constraintsData) {
  19899. if (navigator.mediaDevices === undefined) {
  19900. navigator.mediaDevices = {};
  19901. }
  19902. if (navigator.mediaDevices.getUserMedia === undefined) {
  19903. navigator.mediaDevices.getUserMedia = function (constraints) {
  19904. // 首先,如果有getUserMedia的话,就获得它
  19905. var getUserMedia =
  19906. navigator.getUserMedia ||
  19907. navigator.webkitGetUserMedia ||
  19908. navigator.mozGetUserMedia ||
  19909. navigator.msGetUserMedia;
  19910. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19911. if (!getUserMedia) {
  19912. return Promise.reject({ code: 404 });
  19913. }
  19914. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19915. return new Promise(function (resolve, reject) {
  19916. getUserMedia.call(navigator, constraints, resolve, reject);
  19917. });
  19918. };
  19919. }
  19920. return navigator.mediaDevices.getUserMedia(constraintsData);
  19921. },
  19922. /**
  19923. * 开始录制
  19924. */
  19925. startRecording(callback) {
  19926. let _function = (screenStream) => {
  19927. this.addStreamStopListener(screenStream, () => {
  19928. console.log("流停止监听");
  19929. this.stopRecording();
  19930. this.$emit("streamStop", {});
  19931. // this.stopRecording();
  19932. });
  19933. var options = {
  19934. type: "video",
  19935. mimeType: "video/webm",
  19936. disableLogs: false,
  19937. getNativeBlob: false, // enable it for longer recordings
  19938. ignoreMutedMedia: false,
  19939. };
  19940. // this.video.srcObject = screenStream;
  19941. this.recorder = RecordRTC(screenStream, options);
  19942. this.recorder.startRecording();
  19943. this.recorder.screen = screenStream;
  19944. this.videoStart = true;
  19945. // callback(true);
  19946. };
  19947. this.getAudioVideo({ audio: true })
  19948. .then((res) => {
  19949. this.captureScreen(_function, true);
  19950. console.log("已点击允许,开启成功");
  19951. })
  19952. .catch((err) => {
  19953. // console.log('浏览器不支持,请更换浏览器')
  19954. // } else {
  19955. this.captureScreen(_function, false);
  19956. console.log("请检查是否存在麦克风");
  19957. });
  19958. },
  19959. /**
  19960. * 停止录制
  19961. */
  19962. stopRecording(callback) {
  19963. this.recorder.stopRecording(() => {
  19964. // this.video.src = this.video.srcObject = null;
  19965. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19966. const url = URL.createObjectURL(this.recorder.getBlob());
  19967. const a = document.createElement("a"); //this.fileName+
  19968. let videoFile = new File(
  19969. [this.recorder.getBlob()],
  19970. this.courseDetail.title + "录屏.mp4",
  19971. {
  19972. type: "video/mp4",
  19973. }
  19974. );
  19975. let downloadUrl = URL.createObjectURL(videoFile);
  19976. if(this.$refs.classRoomHelperRef){
  19977. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19978. }
  19979. document.body.appendChild(a);
  19980. a.style.display = "none";
  19981. a.href = url;
  19982. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19983. a.click();
  19984. this.recorder.screen.stop();
  19985. this.recorder.destroy();
  19986. this.recorder = null;
  19987. this.videoStart = false;
  19988. // callback(false);
  19989. });
  19990. },
  19991. //初始化
  19992. captureScreen(callback, type) {
  19993. if (navigator.getDisplayMedia) {
  19994. //录制结束,文件下载
  19995. navigator
  19996. .getDisplayMedia({
  19997. video: true,
  19998. })
  19999. .then((screenStream) => {
  20000. if (type) {
  20001. navigator.mediaDevices
  20002. .getUserMedia({ audio: true })
  20003. .then((mic) => {
  20004. screenStream.addTrack(mic.getTracks()[0]);
  20005. callback(screenStream);
  20006. });
  20007. } else {
  20008. callback(screenStream);
  20009. }
  20010. })
  20011. .catch(function (error) {
  20012. console.log("error", error);
  20013. });
  20014. } else if (navigator.mediaDevices.getDisplayMedia) {
  20015. navigator.mediaDevices
  20016. .getDisplayMedia({
  20017. video: true,
  20018. })
  20019. .then((screenStream) => {
  20020. if (type) {
  20021. navigator.mediaDevices
  20022. .getUserMedia({ audio: true })
  20023. .then((mic) => {
  20024. screenStream.addTrack(mic.getTracks()[0]);
  20025. callback(screenStream);
  20026. });
  20027. } else {
  20028. callback(screenStream);
  20029. }
  20030. })
  20031. .catch(function (error) {
  20032. console.log("error", error);
  20033. });
  20034. } else {
  20035. var error = "getDisplayMedia API are not supported in this browser.";
  20036. console.log("error", error);
  20037. alert(error);
  20038. }
  20039. },
  20040. //流监听
  20041. addStreamStopListener(stream, callback) {
  20042. stream.addEventListener(
  20043. "ended",
  20044. function () {
  20045. callback();
  20046. callback = function () {};
  20047. },
  20048. false
  20049. );
  20050. stream.addEventListener(
  20051. "inactive",
  20052. function () {
  20053. callback();
  20054. callback = function () {};
  20055. },
  20056. false
  20057. );
  20058. stream.getTracks().forEach(function (track) {
  20059. track.addEventListener(
  20060. "ended",
  20061. function () {
  20062. callback();
  20063. callback = function () {};
  20064. },
  20065. false
  20066. );
  20067. track.addEventListener(
  20068. "inactive",
  20069. function () {
  20070. callback();
  20071. callback = function () {};
  20072. },
  20073. false
  20074. );
  20075. });
  20076. },
  20077. updateGroup() {
  20078. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20079. this.dialogVisibleGroup2 = true;
  20080. },
  20081. numberPan() {
  20082. if (
  20083. /[^\d]/.test(this.groupJson.number) ||
  20084. this.groupJson.number < 2 ||
  20085. this.groupJson.number > 10
  20086. ) {
  20087. this.$message.error("请输入2-10的数字");
  20088. this.groupJson.number = "";
  20089. }
  20090. },
  20091. updateGroupJson() {
  20092. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20093. if (
  20094. this.groupStudentUid[this.toolindex][i].length >
  20095. this.groupJson2.number
  20096. ) {
  20097. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20098. return;
  20099. }
  20100. }
  20101. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20102. this.islock = this.groupJson.islock == 1 ? true : false;
  20103. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20104. this.taskCount
  20105. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20106. let params = [
  20107. {
  20108. cid: this.id,
  20109. chapters: JSON.stringify(this.chapInfoList),
  20110. uid: this.userid,
  20111. unitIndex: this.courseType,
  20112. },
  20113. ];
  20114. this.ajax
  20115. .post(this.$store.state.api + "updateWorkNew4", params)
  20116. .then((res) => {
  20117. this.$message.success("设置成功");
  20118. this.getCourseDetail(2);
  20119. this.dialogVisibleGroup2 = false;
  20120. this.groupJson2 = {};
  20121. this.$forceUpdate();
  20122. })
  20123. .catch((err) => {
  20124. this.$message.error("网络不佳");
  20125. console.error(err);
  20126. });
  20127. },
  20128. lockChair() {
  20129. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20130. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20131. this.updateGroupJson();
  20132. },
  20133. selectGroup(index) {
  20134. this.getCourseDetail(2, index);
  20135. },
  20136. joinGroup(index) {
  20137. if (this.groupJson.islock == 2) {
  20138. this.$message.error("位置已被锁定,无法加入");
  20139. return;
  20140. }
  20141. if (
  20142. this.groupStudent[this.toolindex][index].length >
  20143. this.groupJson.number ||
  20144. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20145. ) {
  20146. this.$message.error("位置已满,无法加入");
  20147. return;
  20148. }
  20149. let params = [
  20150. {
  20151. cid: this.id,
  20152. stage: this.courseType,
  20153. task: this.taskCount,
  20154. tool: this.toolindex,
  20155. g: index,
  20156. uid: this.userid,
  20157. },
  20158. ];
  20159. this.ajax
  20160. .post(this.$store.state.api + "joinGroup", params)
  20161. .then((res) => {
  20162. this.$message.success("加入成功");
  20163. this.getCourseDetail(2);
  20164. })
  20165. .catch((err) => {
  20166. this.$message.error("网络不佳");
  20167. console.error(err);
  20168. });
  20169. },
  20170. exitGroup(id) {
  20171. if (this.groupJson.islock == 2) {
  20172. this.$message.error("位置已被锁定,无法退出");
  20173. return;
  20174. }
  20175. let params = [
  20176. {
  20177. gid: id,
  20178. },
  20179. ];
  20180. this.ajax
  20181. .post(this.$store.state.api + "exitGroup", params)
  20182. .then((res) => {
  20183. this.$message.success("退出成功");
  20184. this.getCourseDetail(2);
  20185. })
  20186. .catch((err) => {
  20187. this.$message.error("网络不佳");
  20188. console.error(err);
  20189. });
  20190. },
  20191. groupUpload(index, task, gindex) {
  20192. this.taskCount = task;
  20193. this.toolindex = index;
  20194. this.groupIndex = gindex;
  20195. this.dialogVisibleGroupWork = true;
  20196. },
  20197. updateGroupChair(user) {
  20198. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20199. el.label = index;
  20200. return index != user.group;
  20201. });
  20202. this.updateGroupUser = user;
  20203. this.dialogVisibleUpdateGroup = true;
  20204. },
  20205. updateChair() {
  20206. if (
  20207. this.groupStudent[this.toolindex][this.checkChair].length >
  20208. this.groupJson.number ||
  20209. this.groupStudent[this.toolindex][this.checkChair].length ==
  20210. this.groupJson.number
  20211. ) {
  20212. this.$message.error("位置已满,无法加入");
  20213. return;
  20214. }
  20215. let params = [
  20216. {
  20217. cid: this.id,
  20218. stage: this.courseType,
  20219. task: this.taskCount,
  20220. tool: this.toolindex,
  20221. g: this.checkChair,
  20222. uid: this.updateGroupUser.userid,
  20223. },
  20224. ];
  20225. this.ajax
  20226. .post(this.$store.state.api + "joinGroup", params)
  20227. .then((res) => {
  20228. this.$message.success("修改成功");
  20229. this.updateGroupUser = {};
  20230. this.checkChair = "";
  20231. this.updateGroupArray = {};
  20232. this.dialogVisibleUpdateGroup = false;
  20233. this.getCourseDetail(2);
  20234. })
  20235. .catch((err) => {
  20236. this.$message.error("网络不佳");
  20237. console.error(err);
  20238. });
  20239. },
  20240. deleteGroupChair(gindex) {
  20241. this.checkDeleteGroup = [];
  20242. this.deleteGroupUser = JSON.parse(
  20243. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20244. );
  20245. this.deleteGroupArray = this.groupJson.group[gindex];
  20246. this.groupIndex = gindex;
  20247. this.dialogVisibleDeleteGroup = true;
  20248. },
  20249. async deleteChair() {
  20250. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20251. const gid =
  20252. this.groupStudent[this.toolindex][this.groupIndex][
  20253. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20254. this.checkDeleteGroup[i]
  20255. )
  20256. ];
  20257. let params = [
  20258. {
  20259. gid: gid.id,
  20260. },
  20261. ];
  20262. var a = await this.deleteChairA(params);
  20263. if (i == this.checkDeleteGroup.length - 1) {
  20264. this.$message.success("退出成功");
  20265. this.dialogVisibleDeleteGroup = false;
  20266. this.deleteGroupUser = [];
  20267. this.deleteGroupArray = {};
  20268. this.groupIndex = "";
  20269. this.checkDeleteGroup = [];
  20270. this.getCourseDetail(2);
  20271. }
  20272. }
  20273. },
  20274. deleteChairA(params) {
  20275. return new Promise((resolve, reject) => {
  20276. this.ajax
  20277. .post(this.$store.state.api + "exitGroup", params)
  20278. .then((res) => {
  20279. resolve(1);
  20280. })
  20281. .catch((err) => {
  20282. this.$message.error("网络不佳");
  20283. console.error(err);
  20284. });
  20285. });
  20286. },
  20287. contract(i) {
  20288. if (this.isCloseList[i].isClose == 0) {
  20289. this.isCloseList[i].isClose = 1;
  20290. } else {
  20291. this.isCloseList[i].isClose = 0;
  20292. }
  20293. this.$forceUpdate();
  20294. },
  20295. openWordCloud(toolindex) {
  20296. this.wordCloudData = '';
  20297. let array = [];
  20298. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20299. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20300. array.push({ name: works });
  20301. }
  20302. if (this.isGroup) {
  20303. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20304. let works = this.courseGroup.group[i].works[toolindex];
  20305. for (var j = 0; j < works.length; j++) {
  20306. let answer = JSON.parse(works[j].works)[0].answer;
  20307. array.push({ name: answer });
  20308. }
  20309. }
  20310. }
  20311. let _result = ''
  20312. array.forEach(e=>{
  20313. _result +=e.name+','
  20314. })
  20315. this.wordCloudData = _result;
  20316. this.dialogVisibleWordCloud = true;
  20317. this.wordCloudKey += 1;
  20318. },
  20319. uploadWorks(i) {
  20320. this.$confirm("确定导出作业吗?", "提示", {
  20321. confirmButtonText: "确定",
  20322. cancelButtonText: "取消",
  20323. type: "warning",
  20324. })
  20325. .then(() => {
  20326. const loading = this.$loading.service({
  20327. background: "rgba(255, 255, 255, 0.7)",
  20328. target: document.body,
  20329. text: "文件加载中...",
  20330. });
  20331. const _worksStudent = this.worksStudent;
  20332. let url = [];
  20333. var counts = {};
  20334. for (var l = 0; l < _worksStudent[i].length; l++) {
  20335. var item = _worksStudent[i][l];
  20336. var name = item.sName;
  20337. if (!counts.hasOwnProperty(name)) {
  20338. counts[name] = 0;
  20339. } else {
  20340. counts[name]++;
  20341. }
  20342. if (counts[name] > 0) {
  20343. item.sName += " (" + counts[name] + ")";
  20344. }
  20345. }
  20346. for (var l = 0; l < _worksStudent[i].length; l++) {
  20347. var item = _worksStudent[i][l];
  20348. if (
  20349. item.works.indexOf(
  20350. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  20351. ) !== -1 &&
  20352. item.works.indexOf("img") === -1
  20353. ) {
  20354. url.push({ name: item.sName, url: item.works });
  20355. }
  20356. }
  20357. // var toolList = [
  20358. // { name: "电子白板", tool: 1 },
  20359. // { name: "思维导图", tool: 3 },
  20360. // { name: "协同文档", tool: 6 },
  20361. // { name: "思维网格", tool: 7 },
  20362. // { name: "素材库", tool: 8 },
  20363. // { name: "学习资料", tool: 17 },
  20364. // { name: "便签", tool: 2 },
  20365. // { name: "问卷调查", tool: 4 },
  20366. // { name: "选择题", tool: 45 },
  20367. // { name: "倒计时", tool: 10 },
  20368. // { name: "问答", tool: 15 },
  20369. // { name: "课程设计", tool: 26 },
  20370. // { name: "训练服务器", tool: 18 },
  20371. // { name: "作业提交", tool: 16 },
  20372. // { name: "批量上传", tool: 50 },
  20373. // { name: "AIoT Blockly", tool: 21 },
  20374. // { name: "AI Python", tool: 23 },
  20375. // { name: "AI Blockly", tool: 24 },
  20376. // { name: "目标管理", tool: 25 },
  20377. // { name: "数学画板", tool: 31 },
  20378. // { name: "翻译", tool: 28 },
  20379. // { name: "魔盒识字", tool: 37 },
  20380. // { name: "数学画板", tool: 31 },
  20381. // { name: "24点", tool: 38 },
  20382. // { name: "GeoGebra", tool: 39 },
  20383. // { name: "源码编辑", tool: 32 },
  20384. // { name: "个人评价", tool: 40 },
  20385. // { name: "选择匹配", tool: 41 },
  20386. // { name: "汉字宫", tool: 44 },
  20387. // { name: "排序", tool: 47 },
  20388. // { name: "表格", tool: 48 },
  20389. // { name: "文档", tool: 52 },
  20390. // { name: "学生分组", tool: 49 },
  20391. // { name: "CocoPi", tool: 57 },
  20392. // { name: "模拟驾驶", tool: 58 },
  20393. // { name: "路径搜索", tool: 59 },
  20394. // { name: "深度学习", tool: 60 },
  20395. // { name: "全历史", tool: 61 },
  20396. // { name: "交互视频", tool: 62 },
  20397. // { name: "海龟编程", tool: 63 },
  20398. // { name: "挑人", tool: 65 },
  20399. // { name: "公式编辑", tool: 66 },
  20400. // { name: "分子结构", tool: 67 },
  20401. // { name: "时间轴", tool: 68 },
  20402. // ];
  20403. // var toolName = "";
  20404. // for(var w = 0;w<toolList.length;w++){
  20405. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  20406. // toolName = toolList[w].name;
  20407. // }
  20408. // }
  20409. console.log(url);
  20410. this.downLoadAll(url, loading);
  20411. })
  20412. .catch(() => {});
  20413. },
  20414. downLoadAll(url, loading) {
  20415. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  20416. const zip = new JSZip();
  20417. const cache = {};
  20418. const promises = [];
  20419. data.forEach((item) => {
  20420. const promise = getFile(item.url).then((data) => {
  20421. if (data.data != 1) {
  20422. // 下载文件, 并存成ArrayBuffer对象
  20423. const file_name =
  20424. item.name +
  20425. "." +
  20426. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  20427. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  20428. cache[file_name] = data.data;
  20429. }
  20430. });
  20431. promises.push(promise);
  20432. });
  20433. Promise.all(promises).then(() => {
  20434. zip.generateAsync({ type: "blob" }).then((content) => {
  20435. // 生成二进制流
  20436. FileSaver.saveAs(
  20437. content,
  20438. this.courseDetail.title + "-" + "作业提交工具.zip"
  20439. ); // 利用file-saver保存文件 自定义文件名
  20440. setTimeout(() => {
  20441. loading.close();
  20442. }, 2000);
  20443. });
  20444. });
  20445. },
  20446. pickStudent(stu) {
  20447. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  20448. return;
  20449. }
  20450. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  20451. confirmButtonText: "确定",
  20452. cancelButtonText: "取消",
  20453. type: "warning",
  20454. })
  20455. .then(() => {
  20456. let params = [
  20457. {
  20458. uid: stu.userid,
  20459. cid: this.id,
  20460. stage: this.courseType,
  20461. task: this.taskCount,
  20462. tool: this.toolindex,
  20463. },
  20464. ];
  20465. this.ajax
  20466. .post(this.$store.state.api + "updateCoursePick", params)
  20467. .then((res) => {
  20468. this.$message.success("操作成功");
  20469. this.getPick();
  20470. })
  20471. .catch((err) => {
  20472. this.$message.error("网络不佳");
  20473. console.error(err);
  20474. });
  20475. })
  20476. .catch(() => {});
  20477. },
  20478. selectUser(){
  20479. let params = {
  20480. userid: this.userid,
  20481. };
  20482. this.ajax
  20483. .get(this.$store.state.api + "selectUser", params)
  20484. .then((res) => {
  20485. this.userMes = res.data[0];
  20486. })
  20487. .catch((err) => {
  20488. console.error(err);
  20489. });
  20490. },
  20491. setEngText(i){
  20492. this.newEngIndex = i;
  20493. this.$forceUpdate();
  20494. },
  20495. addCorrect(){
  20496. this.$confirm("你确定提交批改嘛?", "提示", {
  20497. confirmButtonText: "确定",
  20498. showCancelButton: false,
  20499. closeOnClickModal: false,
  20500. type: "warning",
  20501. })
  20502. .then(() => {
  20503. let params = {
  20504. cid: this.id,
  20505. s: parseInt(this.courseType),
  20506. t: this.taskCount,
  20507. tool: this.toolindex,
  20508. wid: this.engWid,
  20509. c: this.userid,
  20510. 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) : "",
  20511. };
  20512. this.ajax
  20513. .get(this.$store.state.api + "addEngC", params)
  20514. .then((res) => {
  20515. this.$message.success("提交成功");
  20516. this.engUpdateDialogVisible = false;
  20517. })
  20518. .catch((err) => {
  20519. console.error(err);
  20520. });
  20521. })
  20522. .catch(() => {});
  20523. },
  20524. selectEngC(id,z){
  20525. let params = {
  20526. workid: id,
  20527. };
  20528. this.ajax
  20529. .get(this.$store.state.api + "selectEngC", params)
  20530. .then((res) => {
  20531. if(res.data[0].length == 0){
  20532. this.newEnglishList.engTitle = z.engTitle;
  20533. this.newEnglishList.engText = z.engText;
  20534. }else{
  20535. var a = res.data[0];
  20536. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  20537. if(this.userMes[0].type == 2){
  20538. var snum = 0;
  20539. for(var i = 0;i<a.length;i++){
  20540. if(this.userMes[0].userid == a[i].correct){
  20541. this.newEnglishList = JSON.parse(a[i].cWork);
  20542. snum = 1;
  20543. }
  20544. }
  20545. if(snum == 0){
  20546. this.newEnglishList = { engTitle:"",engText:"" };
  20547. this.newEnglishList.engTitle = z.engTitle;
  20548. this.newEnglishList.engText = z.engText;
  20549. }
  20550. }else if(this.userMes[0].type == 1){
  20551. var num = 0;
  20552. for(var w= 0;w<a.length;w++){
  20553. if(this.userMes[0].userid == a[w].correct){
  20554. num = 1;
  20555. }
  20556. }
  20557. if(num == 0){
  20558. this.isNoUserid = true;
  20559. var c = JSON.parse(JSON.stringify(z));
  20560. this.oldEnglishJson1 = c;
  20561. }else{
  20562. this.isNoUserid = false;
  20563. }
  20564. var b = a.sort((item, index) => {
  20565. console.log(item)
  20566. if (item.correct === this.userMes[0].userid) {
  20567. return -1; // 将a移到前面
  20568. } else if (index.correct === this.userMes[0].userid) {
  20569. return 1; // 将b移到前面
  20570. } else {
  20571. return 0; // 保持默认顺序
  20572. }
  20573. });
  20574. for(var p = 0;p<b.length;p++){
  20575. for(var y = 0;y<ppp.length;y++){
  20576. if(b[p].id == ppp[y].id){
  20577. b[p].cWork = JSON.parse(ppp[y].cWork);
  20578. break
  20579. }
  20580. }
  20581. }
  20582. this.newEnglishList1 = b;
  20583. }
  20584. }
  20585. this.greyType = false;
  20586. setTimeout(() => {
  20587. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20588. if(this.newEnglishList1.length > 0){
  20589. if(this.isNoUserid == true){
  20590. this.engListLength = this.newEnglishList1.length + 1;
  20591. this.newEngIndex = -1;
  20592. }else{
  20593. this.engListLength = this.newEnglishList1.length;
  20594. this.newEngIndex = 0;
  20595. }
  20596. }
  20597. if(this.userMes[0].type == 2){
  20598. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20599. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  20600. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  20601. }else if(this.newEngIndex == -1){
  20602. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  20603. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  20604. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  20605. }
  20606. }, 500);
  20607. this.engUpdateDialogVisible = true;
  20608. this.$forceUpdate();
  20609. })
  20610. .catch((err) => {
  20611. console.error(err);
  20612. });
  20613. },
  20614. getPick() {
  20615. let params = {
  20616. cid: this.id,
  20617. };
  20618. this.ajax
  20619. .get(this.$store.state.api + "getPick", params)
  20620. .then((res) => {
  20621. let array = [];
  20622. for (var i = 0; i < res.data[0].length; i++) {
  20623. array.push(res.data[0][i].userid);
  20624. }
  20625. this.isPickStudent = array;
  20626. if (array.indexOf(this.userid) !== -1) {
  20627. this.$confirm("你被老师选到啦!", "提示", {
  20628. confirmButtonText: "确定",
  20629. showCancelButton: false,
  20630. closeOnClickModal: false,
  20631. type: "warning",
  20632. })
  20633. .then(() => {
  20634. let pa = [
  20635. {
  20636. uid: this.userid,
  20637. cid: this.id,
  20638. },
  20639. ];
  20640. this.ajax
  20641. .post(this.$store.state.api + "deletePick", pa)
  20642. .then((res) => {
  20643. this.getPick();
  20644. })
  20645. .catch((err) => {
  20646. this.$message.error("网络不佳");
  20647. console.error(err);
  20648. });
  20649. })
  20650. .catch(() => {});
  20651. }
  20652. })
  20653. .catch((err) => {
  20654. this.$message.error("网络不佳");
  20655. console.error(err);
  20656. });
  20657. },
  20658. foldEva() {
  20659. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  20660. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  20661. } else {
  20662. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  20663. setTimeout(() => {
  20664. this.checkEva();
  20665. setTimeout(() => {
  20666. this.checkEva();
  20667. }, 500);
  20668. }, 0);
  20669. }
  20670. this.$forceUpdate();
  20671. },
  20672. panToolHeight(tool) {
  20673. var _tool = document.querySelectorAll('#'+tool)[0]
  20674. var _toolA = _tool ? _tool.offsetHeight : 0
  20675. var _toolC = 0
  20676. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  20677. let boolean2 = (_toolA > _toolC) ? true : false
  20678. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  20679. this.$forceUpdate();
  20680. },
  20681. async checkLink(url) {
  20682. // console.log(url)
  20683. let _url = url
  20684. try {
  20685. const response = await fetch(url);
  20686. if(!response.ok){
  20687. _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]))
  20688. }
  20689. // console.log(response.ok)
  20690. } catch (error) {
  20691. console.error('Error checking link:', error);
  20692. // console.log(false)
  20693. _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]))
  20694. }
  20695. // console.log(_url)
  20696. return _url
  20697. },
  20698. getScoreList(){
  20699. let params = {
  20700. cid: this.id,
  20701. };
  20702. this.ajax
  20703. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20704. .then((res) => {
  20705. let result = res.data;
  20706. this.scoreList.datalist = result[0];
  20707. this.scoreList.isScoreList = result[1];
  20708. })
  20709. .catch((err) => {
  20710. console.error(err);
  20711. });
  20712. },
  20713. setClassRoomHelperWidth(width){
  20714. this.classRoomHelperWidth = width
  20715. },
  20716. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20717. this.$refs.choseWorksDetailDialogRef.open({
  20718. toolType:tooc,
  20719. tType: this.tType,
  20720. toolIndex: toolIndex
  20721. });
  20722. this.changeSplitScreenBehavior({
  20723. code: 1,
  20724. form: {
  20725. toolType:tooc,
  20726. toolIndex: toolIndex,
  20727. courseType: this.courseType,
  20728. taskCount: this.taskCount,
  20729. type: 0
  20730. }
  20731. });
  20732. },
  20733. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20734. this.$refs.statisticalAnalysisRef.open({
  20735. worksStudent: this.worksStudent[toolIndex],
  20736. tType: this.tType,
  20737. toolIndex: toolIndex
  20738. });
  20739. this.changeSplitScreenBehavior({
  20740. code: 2,
  20741. form: {
  20742. toolType:4,
  20743. courseType: this.courseType,
  20744. taskCount: this.taskCount,
  20745. toolIndex: toolIndex,
  20746. type: 0
  20747. }
  20748. });
  20749. },
  20750. statisticalAnalysisRefresh(toolIndex) {
  20751. this.$refs.statisticalAnalysisRef.refreshData({
  20752. worksStudent: this.worksStudent[toolIndex],
  20753. tType: this.tType,
  20754. toolIndex: toolIndex
  20755. });
  20756. },
  20757. async splitScreenBehavior(type = 0) {
  20758. // return;
  20759. if (this.splitScreenData.loading)
  20760. return this.$message.info("操作过快,请稍等");
  20761. if (type == 0) {
  20762. //关闭分屏
  20763. this.splitScreenData.isOpen = false;
  20764. // this.splitScreenData.userId = "";
  20765. // this.splitScreenData.uid = "";
  20766. this.splitScreenData.behavior = null;
  20767. await this.updateSplitScreenData(1);
  20768. this.$message.success("已关闭分屏模式");
  20769. this.studentFreePreview(false);
  20770. this.OpenJobPreview(false);
  20771. // this.followingMode(false);
  20772. } else if (type == 1) {
  20773. //开启分屏
  20774. this.splitScreenData.isOpen = true;
  20775. this.splitScreenData.userId = this.userid;
  20776. this.splitScreenData.uid = this.splitScreenData.myUid;
  20777. this.splitScreenData.behavior = null;
  20778. let status = await this.updateSplitScreenData(0);
  20779. this.changeSplitScreenBehavior({form:{}})
  20780. if (status == 1) {
  20781. this.$message.success("已开启分屏");
  20782. this.studentFreePreview(false);
  20783. this.OpenJobPreview(true);
  20784. // this.followingMode(true);
  20785. } else {
  20786. this.splitScreenData.isOpen = false;
  20787. this.splitScreenData.userId = "";
  20788. this.splitScreenData.uid = "";
  20789. this.splitScreenData.behavior = null;
  20790. this.$message.success("分屏开启失败");
  20791. }
  20792. }
  20793. },
  20794. enterFullScreen() {
  20795. let element = document.documentElement;
  20796. if (element.requestFullscreen) {
  20797. element.requestFullscreen();
  20798. } else if (element.mozRequestFullScreen) { /* Firefox */
  20799. element.mozRequestFullScreen();
  20800. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  20801. element.webkitRequestFullscreen();
  20802. } else if (element.msRequestFullscreen) { /* IE/Edge */
  20803. element.msRequestFullscreen();
  20804. }
  20805. },
  20806. exitFullScreen() {
  20807. if (document.exitFullscreen) {
  20808. document.exitFullscreen();
  20809. } else if (document.mozCancelFullScreen) { /* Firefox */
  20810. document.mozCancelFullScreen();
  20811. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  20812. document.webkitExitFullscreen();
  20813. } else if (document.msExitFullscreen) { /* IE/Edge */
  20814. document.msExitFullscreen();
  20815. }
  20816. },
  20817. confirmOpen(){
  20818. this.splitScreenData.isOpen = true;
  20819. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  20820. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  20821. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  20822. this.confirmOpenDig = false
  20823. if (!document.fullscreenElement) {
  20824. this.enterFullScreen();
  20825. }
  20826. if (this.timer2) {
  20827. clearInterval(this.timer2);
  20828. this.timer2 = null;
  20829. }
  20830. this.timer2 = setInterval(()=> {
  20831. this.getSplitScreenData();//获取分屏数据
  20832. }, 1000);
  20833. this.$message.success("分屏模式已开启");
  20834. },
  20835. getSplitScreenData() {
  20836. // return;
  20837. // if (this.tType != 1) return;
  20838. let params = {
  20839. cid: this.id
  20840. };
  20841. this.ajax
  20842. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20843. .then(async res => {
  20844. let data = res.data[0][0]["splitScreenData"];
  20845. console.log("获取了分屏数:", data);
  20846. if (data) {
  20847. data = JSON.parse(data);
  20848. if (
  20849. !this.splitScreenData.isOpen &&
  20850. data.isOpen &&
  20851. this.splitScreenData.myUid == data.uid
  20852. ) {
  20853. this.splitScreenData.isOpen = false;
  20854. this.splitScreenData.userId = "";
  20855. this.splitScreenData.uid = "";
  20856. this.splitScreenData.behavior = null;
  20857. await this.updateSplitScreenData(1);
  20858. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20859. this.confirmOpenDig = true
  20860. this.confirmOpenDigData = data
  20861. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20862. this.splitScreenData.isOpen = false;
  20863. this.splitScreenData.userId = "";
  20864. this.splitScreenData.uid = "";
  20865. this.splitScreenData.behavior = null;
  20866. this.$message.error("已结束分屏模式");
  20867. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20868. this.splitScreenData.isOpen = true;
  20869. this.splitScreenData.uid = data.uid;
  20870. this.splitScreenData.userId = data.userId;
  20871. this.splitScreenData.behavior = data.behavior;
  20872. }
  20873. this.doSplitScreenBehavior();
  20874. } else {
  20875. if (this.splitScreenData.isOpen) {
  20876. this.splitScreenData.isOpen = false;
  20877. this.splitScreenData.userId = "";
  20878. this.splitScreenData.uid = "";
  20879. this.splitScreenData.behavior = null;
  20880. this.$message.error("已结束分屏模式");
  20881. if (this.timer2) {
  20882. clearInterval(this.timer2);
  20883. this.timer2 = null;
  20884. }
  20885. this.timer2 = setInterval(()=> {
  20886. this.getSplitScreenData();//获取分屏数据
  20887. }, 5000);
  20888. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  20889. confirmButtonText: '确定', //确认按钮的文字
  20890. showCancelButton: false, //是否显示取消按钮
  20891. showClose: false, //是否显示关闭按钮
  20892. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  20893. type: "warning",
  20894. })
  20895. .then(() => {
  20896. if (document.fullscreenElement) {
  20897. this.exitFullScreen();
  20898. }
  20899. })
  20900. .catch(() => {});
  20901. }
  20902. }
  20903. })
  20904. .catch(e => {
  20905. console.log("获取分屏数出错:", e);
  20906. });
  20907. },
  20908. doSplitScreenBehavior() {
  20909. if (
  20910. this.splitScreenData.isOpen &&
  20911. this.splitScreenData.uid != this.splitScreenData.myUid
  20912. ) {
  20913. let behavior = this.splitScreenData.behavior;
  20914. if (behavior) {
  20915. if (behavior.code === 99) {
  20916. //初始化
  20917. this.fullDialogVisible = false;
  20918. if(this.$refs.choseWorksDetailDialogRef.show){
  20919. this.$refs.choseWorksDetailDialogRef.close();
  20920. }
  20921. if(this.$refs.statisticalAnalysisRef.show){
  20922. this.$refs.statisticalAnalysisRef.close();
  20923. }
  20924. }
  20925. if (behavior.code === 0) {
  20926. //开启内容列表弹窗
  20927. this.checkFileFull1(behavior.form.t, behavior.form.f);
  20928. }else{
  20929. this.fullDialogVisible = false;
  20930. }
  20931. if (behavior.code === 1) {
  20932. //关于选择题的作业详细的操作
  20933. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20934. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20935. this.courseType = behavior.form.courseType;
  20936. this.taskCount = behavior.form.taskCount;
  20937. }
  20938. this.$nextTick(() => {
  20939. if (this.$refs.choseWorksDetailDialogRef.show) {
  20940. //已经打开了
  20941. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  20942. } else {
  20943. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  20944. }
  20945. });
  20946. }else{
  20947. this.$refs.choseWorksDetailDialogRef.close()
  20948. }
  20949. if(behavior.code === 2){
  20950. if(this.$refs.statisticalAnalysisRef.show){
  20951. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20952. }else{
  20953. this.$refs.statisticalAnalysisRef.open({
  20954. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20955. tType: this.tType,
  20956. toolIndex: behavior.form.toolIndex
  20957. });
  20958. }
  20959. }else{
  20960. this.$refs.statisticalAnalysisRef.close();
  20961. }
  20962. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  20963. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  20964. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  20965. if (behavior.form.courseType != this.courseType ||
  20966. behavior.form.taskCount != this.taskCount ||
  20967. behavior.form.toolType != this.toolindex
  20968. ) {
  20969. var a = document.scrollingElement;
  20970. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  20971. if (target) {
  20972. target.scrollIntoView(true);
  20973. setTimeout(()=>{
  20974. let scrollBody = document.querySelector('.body_student').parentElement
  20975. scrollBody.scrollTop = scrollBody.scrollTop - 100
  20976. }, 0);
  20977. // setTimeout(() => {
  20978. // a.scrollTop = 0
  20979. // }, 0);
  20980. }
  20981. }
  20982. if(this.courseType !=behavior.form.courseType){
  20983. this.courseType = behavior.form.courseType;
  20984. }
  20985. if(this.taskCount !=behavior.form.taskCount){
  20986. this.taskCount = behavior.form.taskCount;
  20987. }
  20988. if((behavior.form.toolType || behavior.form.toolType == 0) && (this.toolindex != behavior.form.toolType)){
  20989. this.toolindex = behavior.form.toolType;
  20990. }
  20991. // if(behavior.form.navId){
  20992. // this.navId = behavior.form.navId
  20993. // }
  20994. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  20995. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  20996. console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  20997. this.getCourseDetail()
  20998. }
  20999. this.setContent2(false)
  21000. }
  21001. } else {
  21002. }
  21003. }
  21004. },
  21005. updateSplitScreenData(empty = 0) {
  21006. return new Promise(resolve => {
  21007. if(this.userid!==this.courseDetail.userid){
  21008. if(!this.courseDetail.userid){
  21009. return setTimeout(()=>{
  21010. this.updateSplitScreenData(empty)
  21011. },2000)
  21012. }
  21013. return;
  21014. };
  21015. if (
  21016. this.splitScreenData.uid == this.splitScreenData.myUid &&
  21017. this.splitScreenData.userId == this.userid
  21018. ) {
  21019. this.splitScreenData.loading = true;
  21020. let params = [
  21021. {
  21022. cid: this.id,
  21023. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  21024. }
  21025. ];
  21026. this.ajax
  21027. .post(
  21028. this.$store.state.api + "update_courseSplitScreenData",
  21029. params
  21030. )
  21031. .then(res => {
  21032. this.splitScreenData.loading = false;
  21033. if (res.data == 1) {
  21034. resolve(1);
  21035. console.log("修改分屏数据成功");
  21036. }
  21037. })
  21038. .catch(e => {
  21039. this.splitScreenData.loading = false;
  21040. console.log("修改分屏数据失败", e);
  21041. resoleve(0);
  21042. });
  21043. } else if (empty == 2 && this.tType == 1) {
  21044. let params = [
  21045. {
  21046. cid: this.id,
  21047. nData: ""
  21048. }
  21049. ];
  21050. return this.ajax
  21051. .post(
  21052. this.$store.state.api + "update_courseSplitScreenData",
  21053. params
  21054. )
  21055. .then(_ => resolve(1))
  21056. .catch(_ => resolve(0));
  21057. } else {
  21058. return resolve(0);
  21059. }
  21060. });
  21061. },
  21062. changeSplitScreenBehavior(newValue) {
  21063. if (
  21064. this.splitScreenData.isOpen &&
  21065. this.splitScreenData.uid == this.splitScreenData.myUid
  21066. ) {
  21067. let _behavior = null;
  21068. if(!newValue){
  21069. _behavior = {}
  21070. }else{
  21071. _behavior = newValue
  21072. }
  21073. if(_behavior.form){
  21074. _behavior.form.taskCount = this.taskCount;
  21075. _behavior.form.courseType = this.courseType
  21076. }else{
  21077. _behavior.form = {
  21078. taskCount:this.taskCount,
  21079. courseType:this.courseType
  21080. }
  21081. }
  21082. this.splitScreenData.behavior = _behavior;
  21083. this.updateSplitScreenData(0);
  21084. }
  21085. },
  21086. studentFreePreview(flag) {
  21087. this.IsLookOpen = flag;
  21088. this.followingMode(flag)
  21089. this.updateLookOpen();
  21090. },
  21091. OpenJobPreview(flag) {
  21092. this.sIsOpen = flag;
  21093. this.updateSLook();
  21094. },
  21095. followingMode(flag) {
  21096. this.IsFollow = flag;
  21097. this.updateFollow();
  21098. }
  21099. },
  21100. directives: {
  21101. // 使用局部注册指令的方式
  21102. resize: {
  21103. // 指令的名称
  21104. bind(el, binding) {
  21105. // el为绑定的元素,binding为绑定给指令的对象
  21106. let width = "",
  21107. height = "";
  21108. function isReize() {
  21109. const style = document.defaultView.getComputedStyle(el);
  21110. if (width !== style.width || height !== style.height) {
  21111. binding.value(); // 关键
  21112. }
  21113. width = style.width;
  21114. height = style.height;
  21115. }
  21116. el.__vueSetInterval__ = setInterval(isReize, 300);
  21117. },
  21118. unbind(el) {
  21119. clearInterval(el.__vueSetInterval__);
  21120. },
  21121. },
  21122. autoHeight: {
  21123. update(el, binding) {
  21124. const { value } = binding
  21125. if (value && typeof value === 'number') {
  21126. el.style.height = `${value}px`
  21127. } else {
  21128. el.style.height = 'auto'
  21129. }
  21130. },
  21131. componentUpdated(el) {
  21132. el.style.height = `${el.scrollHeight + 5}px`
  21133. },
  21134. },
  21135. },
  21136. beforeDestroy() {
  21137. window.onresize = null;
  21138. clearInterval(this.timer);
  21139. this.timer = null;
  21140. clearInterval(this.timer2);
  21141. this.timer2 = null;
  21142. clearInterval(this.opertimer);
  21143. this.opertimer = null;
  21144. this.updateSplitScreenData(1);
  21145. },
  21146. computed: {
  21147. getHeight(){
  21148. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21149. },
  21150. contentConvent() {
  21151. return function (c) {
  21152. return c
  21153. ? c
  21154. .replaceAll(/\r\n/g, "<br/>")
  21155. .replaceAll(/\n/g, "<br/>")
  21156. .replaceAll(/\s/g, " &nbsp")
  21157. : "";
  21158. };
  21159. },
  21160. MarkdownT() {
  21161. return function (c) {
  21162. let md = new MarkdownIt();
  21163. return c
  21164. ? md.render(c) : "";
  21165. };
  21166. },
  21167. commentRight(){
  21168. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21169. return "35px";
  21170. }
  21171. return `calc(${this.classRoomHelperWidth} + 5px)`
  21172. // if(this.$refs["classRoomHelperRef"].type==0){
  21173. // return "100px";
  21174. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21175. // return "502px"
  21176. // }else{
  21177. // return "0px"
  21178. // }
  21179. },
  21180. checkUpload() {
  21181. return function () {
  21182. var studentK = [];
  21183. if (this.plworkFile.length > 0) {
  21184. for (var z = 0; z < this.plworkFile.length; z++) {
  21185. studentK.push(this.plworkFile[z].username);
  21186. }
  21187. studentK = studentK.join(",");
  21188. }
  21189. var a = this.uploadStudentJuri.filter((el) => {
  21190. return studentK.indexOf(el.userid) == -1;
  21191. });
  21192. return a;
  21193. };
  21194. },
  21195. getSName() {
  21196. return function (name) {
  21197. var check = name;
  21198. this.uploadStudentJuri.forEach((el) => {
  21199. if (el.userid == check) {
  21200. check = el.name ? el.name : el.username;
  21201. }
  21202. });
  21203. return check;
  21204. };
  21205. },
  21206. getImgList() {
  21207. return function (val) {
  21208. let srcList = []; // 定义一个数组用来接收后面的img地址
  21209. val.replace(
  21210. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21211. function (match, capture) {
  21212. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21213. srcList.push(capture);
  21214. }
  21215. );
  21216. return srcList;
  21217. };
  21218. },
  21219. retrnToolHeight(){
  21220. return function (tool) {
  21221. var _tool = document.querySelectorAll('#'+tool)[0]
  21222. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21223. };
  21224. },
  21225. Correct() {
  21226. return function (c,d) {
  21227. let w = "";
  21228. let a = this.correctWord;
  21229. for(var k = 0;k<a.length;k++){
  21230. //diffWordsWithSpace
  21231. if(a.length > 1){
  21232. if(a[k].added == true){
  21233. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21234. }else if(a[k].removed == true){
  21235. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21236. }else{
  21237. w += '<span>' + a[k].value + '</span>';
  21238. }
  21239. }else{
  21240. w = c
  21241. }
  21242. console.log("👇👇!+++==")
  21243. console.log(w)
  21244. //diffChars方法
  21245. // if(w == ""){
  21246. // if(a.length > 1){
  21247. // if(a[k].added == true){
  21248. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21249. // }else if(a[k].removed == true){
  21250. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21251. // }
  21252. // }else{
  21253. // w = c
  21254. // }
  21255. // }else{
  21256. // if(k == a.length - 1){
  21257. // if(a[k].added == true){
  21258. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21259. // }else if(a[k].removed == true){
  21260. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21261. // }
  21262. // }else{
  21263. // if(a[k].added == true){
  21264. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21265. // }else if(a[k].removed == true){
  21266. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21267. // }
  21268. // }
  21269. // }
  21270. }
  21271. c = w;
  21272. return c;
  21273. };
  21274. },
  21275. },
  21276. mounted() {
  21277. document.body.addEventListener("click", (e) => {
  21278. if (this.isUpdateToolDetail1) {
  21279. this.updateToolDetail(this.toolDetailIndex);
  21280. }
  21281. });
  21282. try {
  21283. if (this.screenType == 2) {
  21284. window.topU.postMessage({ allScreen: 4 }, "*");
  21285. } else if (this.screenType == 3) {
  21286. window.topU.postMessage({ allScreen: 5 }, "*");
  21287. } else if (this.screenType == 1) {
  21288. window.topU.postMessage({ allScreen: 6 }, "*");
  21289. }
  21290. } catch (error) {
  21291. console.log(error)
  21292. }
  21293. this.setOperationTime();
  21294. this.selectEva();
  21295. this.getCourseDetail();
  21296. this.selectCount();
  21297. this.getHomeWork();
  21298. this.selectUser();
  21299. this.getAIJ();
  21300. this.contentDialog = true;
  21301. this.setContent2(true);
  21302. if (this.tType == 4) {
  21303. this.pzDialog = true;
  21304. this.selectPz();
  21305. }
  21306. // 获取评分列表
  21307. this.getScoreList()
  21308. this.updateSplitScreenData(2);
  21309. this.splitScreenData.myUid = uuidv4();
  21310. document.scrollingElement.scrollTop = 0;
  21311. window.addEventListener("resize", () => {
  21312. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21313. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21314. if (this.showType == 2 || this.showType == 3) {
  21315. document.getElementsByClassName("navBox")[0].style.height =
  21316. a - 40 + 0+ "px";
  21317. } else {
  21318. document.getElementsByClassName("navBox")[0].style.height =
  21319. a - 40 + "px";
  21320. }
  21321. });
  21322. let _this = this;
  21323. setTimeout(() => {
  21324. // _this.vedioTime = [];
  21325. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21326. // _this.vedioTime[i] = document.getElementsByClassName(
  21327. // "vjs-duration-display"
  21328. // )[i].textContent;
  21329. // }
  21330. }, 1000);
  21331. },
  21332. };
  21333. </script>
  21334. <style scoped>
  21335. @media screen and (max-width: 1280px) {
  21336. /* .courseIndex > div:first-child(2) {
  21337. width: 15% !important;
  21338. } */
  21339. /* .navText {
  21340. width: 120px !important;
  21341. } */
  21342. .evaCss {
  21343. flex-direction: column !important;
  21344. align-items: center !important;
  21345. }
  21346. .elist_input {
  21347. width: 90% !important;
  21348. }
  21349. .dialog_diy1 >>> .el-dialog {
  21350. width: 100% !important;
  21351. }
  21352. .rightWidthCss {
  21353. width: 100% !important;
  21354. }
  21355. .dialog_diy3 >>> .el-dialog {
  21356. width: 100% !important;
  21357. }
  21358. .addToolCss {
  21359. right: 0 !important;
  21360. width: 100% !important;
  21361. min-width: unset !important;
  21362. }
  21363. }
  21364. .evaCssMax {
  21365. flex-direction: column !important;
  21366. align-items: center !important;
  21367. }
  21368. .dialog_diy >>> .el-dialog {
  21369. margin-top: 10vh !important;
  21370. }
  21371. .body_student {
  21372. width: 77%;
  21373. height: 100%;
  21374. position: absolute;
  21375. left: 22%;
  21376. top: 0;
  21377. }
  21378. .student_head {
  21379. width: 100%;
  21380. margin: 20px auto 0;
  21381. padding-bottom: 20px;
  21382. display: flex;
  21383. flex-direction: column;
  21384. flex-wrap: nowrap;
  21385. align-items: flex-start;
  21386. justify-content: flex-start;
  21387. }
  21388. .pb_left {
  21389. width: 20%;
  21390. margin-right: 10px;
  21391. background: rgb(255, 255, 255);
  21392. position: fixed;
  21393. height: calc(100% - 40px);
  21394. border-radius: 20px;
  21395. padding-bottom: 15px;
  21396. box-sizing: border-box;
  21397. }
  21398. .wheel > img,
  21399. .project > img,
  21400. .star > img,
  21401. .evaluate > img,
  21402. .up_photo > img,
  21403. .chapter_add > img,
  21404. .deleteWord > img,
  21405. .question > img,
  21406. .homework > img {
  21407. width: 100%;
  21408. height: 100%;
  21409. }
  21410. .upCover > img {
  21411. width: 131px;
  21412. height: 69px;
  21413. object-fit: cover;
  21414. }
  21415. .upCover {
  21416. width: calc(100% / 3.5);
  21417. position: relative;
  21418. margin: 0 15px 10px 0;
  21419. display: flex;
  21420. flex-direction: column;
  21421. flex-wrap: nowrap;
  21422. justify-content: center;
  21423. align-content: center;
  21424. align-items: center;
  21425. height: fit-content;
  21426. }
  21427. .upCover2 {
  21428. width: 100%;
  21429. position: relative;
  21430. margin: 0 15px 10px 0;
  21431. display: flex;
  21432. flex-direction: column;
  21433. flex-wrap: nowrap;
  21434. justify-content: center;
  21435. align-content: center;
  21436. align-items: center;
  21437. }
  21438. .upCover2 > img {
  21439. width: 100%;
  21440. height: 90px;
  21441. object-fit: contain;
  21442. }
  21443. .chapter_add {
  21444. width: 120px;
  21445. position: relative;
  21446. text-align: center;
  21447. }
  21448. .isAddThings {
  21449. margin-top: 20px;
  21450. position: relative;
  21451. text-align: center;
  21452. background: #f7f8fa;
  21453. height: 90px;
  21454. width: 90px;
  21455. display: flex;
  21456. flex-direction: column;
  21457. justify-content: center;
  21458. }
  21459. .deleteWord {
  21460. width: 22px;
  21461. height: 22px;
  21462. position: absolute;
  21463. right: -5px;
  21464. top: -5px;
  21465. cursor: pointer;
  21466. }
  21467. .box_course {
  21468. /* width: 60%; */
  21469. width: calc(100% - 300px);
  21470. }
  21471. .wheel {
  21472. width: 100%;
  21473. /* height: 100%; */
  21474. height: 650px;
  21475. }
  21476. .right_box {
  21477. display: flex;
  21478. flex-direction: column;
  21479. margin-left: 30px;
  21480. justify-content: space-around;
  21481. }
  21482. .right_box_title {
  21483. font-size: 23px;
  21484. }
  21485. .people {
  21486. display: flex;
  21487. }
  21488. .student_body {
  21489. width: 100%;
  21490. margin: 0 auto;
  21491. margin-top: 10px;
  21492. padding: 0 0 20px;
  21493. }
  21494. .study_top {
  21495. margin-top: 100px;
  21496. width: 100%;
  21497. height: auto;
  21498. padding-bottom: 20px;
  21499. margin-left: 2px;
  21500. min-height: 90%;
  21501. }
  21502. .study_top .checkbox {
  21503. display: flex;
  21504. align-items: center;
  21505. padding: 15px 0 15px 30px;
  21506. flex: 0 0 auto;
  21507. font-weight: bold;
  21508. border-bottom: 1px solid #eee;
  21509. }
  21510. .study_top .check {
  21511. padding-bottom: 5px;
  21512. text-align: center;
  21513. cursor: pointer;
  21514. height: 30px;
  21515. box-sizing: border-box;
  21516. display: flex;
  21517. }
  21518. .study_top .checked {
  21519. border-bottom: 4px solid #3fc6a0;
  21520. padding-bottom: 5px;
  21521. color: #3fc6a0;
  21522. display: flex;
  21523. height: 35px;
  21524. }
  21525. .study_top .checked > div,
  21526. .study_top .check > div {
  21527. margin-right: 5px;
  21528. }
  21529. .videoTop {
  21530. display: flex;
  21531. flex-direction: row;
  21532. justify-content: space-between;
  21533. background: #fff;
  21534. align-items: center;
  21535. width: 95%;
  21536. padding: 20px;
  21537. }
  21538. .filebox {
  21539. display: flex;
  21540. flex-wrap: wrap;
  21541. flex-direction: column;
  21542. padding: 0 0 5px;
  21543. position: relative;
  21544. }
  21545. .filebox:before {
  21546. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21547. position: absolute;
  21548. top: 20px;
  21549. left: 13px;
  21550. border-left: 2px dotted #cad1dc;
  21551. height: calc(100% - 15px);
  21552. }
  21553. .toolHeng2 > div:last-child::before {
  21554. height: calc(100% - 43px);
  21555. }
  21556. .filebox .tooldetail {
  21557. width: calc(100%);
  21558. margin: 0px 12px;
  21559. padding: 12px;
  21560. line-height: 30px;
  21561. word-break: break-word;
  21562. background: #ffffff;
  21563. border-radius: 8px 8px 8px 8px;
  21564. opacity: 1;
  21565. border: 1px solid #cad1dc;
  21566. overflow:hidden;
  21567. box-sizing:border-box;
  21568. }
  21569. .file {
  21570. display: flex;
  21571. flex-direction: column;
  21572. align-items: center;
  21573. justify-content: center;
  21574. cursor: pointer;
  21575. width: 200px;
  21576. }
  21577. .file div {
  21578. margin-top: 10px;
  21579. width: 150px;
  21580. text-align: center;
  21581. overflow: hidden;
  21582. white-space: nowrap;
  21583. text-overflow: ellipsis;
  21584. }
  21585. .media {
  21586. display: flex;
  21587. flex-direction: column;
  21588. align-items: center;
  21589. justify-content: center;
  21590. margin: 0 20px 20px 0;
  21591. cursor: pointer;
  21592. margin: 12px 0 5px 15px;
  21593. overflow: hidden;
  21594. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21595. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21596. box-sizing: border-box;
  21597. }
  21598. .media img {
  21599. height: 90px;
  21600. width: 160px;
  21601. object-fit: cover;
  21602. }
  21603. .media .title {
  21604. padding: 5px;
  21605. text-align: left;
  21606. width: 100%;
  21607. box-sizing: border-box;
  21608. }
  21609. .media .btn {
  21610. width: 100%;
  21611. height: 35px;
  21612. line-height: 35px;
  21613. color: #fff;
  21614. background: #606060;
  21615. text-align: center;
  21616. overflow: hidden;
  21617. white-space: nowrap;
  21618. text-overflow: ellipsis;
  21619. }
  21620. .detail_content_top {
  21621. width: 100%;
  21622. padding: 25px 0 25px 0;
  21623. }
  21624. .detail_title {
  21625. text-align: center;
  21626. font-size: 24px;
  21627. }
  21628. .detail_time {
  21629. font-size: 13px;
  21630. padding: 15px 0 0 40px;
  21631. }
  21632. .detail_content {
  21633. line-height: 2pc;
  21634. width: 90%;
  21635. margin: 0 auto;
  21636. padding-top: 30px;
  21637. text-indent: 30px;
  21638. overflow: auto;
  21639. height: 200px;
  21640. }
  21641. .score_box >>> .el-rate {
  21642. margin-left: 10px;
  21643. }
  21644. .dialog_change >>> .el-dialog {
  21645. border-radius: 5px;
  21646. }
  21647. .dialog_change >>> .el-dialog__header {
  21648. background: #f2f2f2;
  21649. text-align: center;
  21650. }
  21651. .dialog_change >>> .el-dialog__title {
  21652. line-height: 5px;
  21653. }
  21654. .dialog_change >>> .el-dialog__body {
  21655. background: #fff;
  21656. padding: 10px 20px;
  21657. }
  21658. .score_box {
  21659. display: flex;
  21660. align-items: center;
  21661. margin-bottom: 18px;
  21662. margin-top: 20px;
  21663. }
  21664. .up_photo {
  21665. width: 120px;
  21666. cursor: pointer;
  21667. margin-top: 10px;
  21668. }
  21669. .up_photo2 {
  21670. width: 180px;
  21671. box-sizing: border-box;
  21672. min-width: 180px;
  21673. height: 180px;
  21674. max-height: 180px;
  21675. min-height: 180px;
  21676. cursor: pointer;
  21677. display: flex;
  21678. flex-direction: column;
  21679. align-items: center;
  21680. justify-content: center;
  21681. background: rgb(242, 246, 255);
  21682. /* padding: 25px; */
  21683. margin-bottom: 10px;
  21684. }
  21685. .up_photo2 img {
  21686. width: 50%;
  21687. height: auto;
  21688. }
  21689. .up_photo2 span {
  21690. color: #898989;
  21691. }
  21692. .plworkBox {
  21693. display: flex;
  21694. align-items: center;
  21695. margin-top: 10px;
  21696. flex-wrap: wrap;
  21697. }
  21698. .upload_send {
  21699. margin: 30px auto 30px;
  21700. width: 60%;
  21701. background: #3681fc;
  21702. text-align: center;
  21703. height: 35px;
  21704. line-height: 35px;
  21705. color: #fff;
  21706. border-radius: 5px;
  21707. cursor: pointer;
  21708. }
  21709. .marginT {
  21710. margin-top: 20px;
  21711. }
  21712. .cd_content_steps {
  21713. display: flex;
  21714. width: 90%;
  21715. justify-content: space-around;
  21716. border-top: 1px solid #eeeeee;
  21717. }
  21718. .cd_steps_box {
  21719. display: flex;
  21720. justify-content: center;
  21721. align-items: center;
  21722. flex-direction: column;
  21723. cursor: pointer;
  21724. }
  21725. .first {
  21726. display: flex;
  21727. align-items: center;
  21728. margin: 15px 0 20px 0;
  21729. font-size: 20px;
  21730. }
  21731. .first > div:nth-child(2) {
  21732. font-size: 16px !important;
  21733. padding-left: 10px;
  21734. line-height: 26px;
  21735. box-sizing: border-box;
  21736. }
  21737. .blue_box_one {
  21738. text-align: center;
  21739. color: #fff;
  21740. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  21741. border-radius: 7px;
  21742. margin: 10px;
  21743. cursor: pointer;
  21744. width: 95%;
  21745. height: 45px;
  21746. display: flex;
  21747. flex-direction: row;
  21748. justify-content: flex-start;
  21749. align-items: center;
  21750. }
  21751. .blue_box_one > div:nth-child(1) {
  21752. line-height: 30px;
  21753. margin: 0 5px 0 10px;
  21754. width: 30%;
  21755. min-width: 70px;
  21756. border-radius: 4px;
  21757. }
  21758. .blue_box_one > div:nth-child(2) {
  21759. white-space: nowrap;
  21760. text-overflow: ellipsis;
  21761. overflow: hidden;
  21762. word-break: break-all;
  21763. width: 70%;
  21764. text-align: left;
  21765. margin-right: 10px;
  21766. max-width: calc(100% - 85px);
  21767. }
  21768. .blue_box_one > div:nth-child(2):hover {
  21769. overflow: hidden;
  21770. text-overflow: ellipsis;
  21771. white-space: nowrap;
  21772. cursor: pointer;
  21773. }
  21774. .upFile {
  21775. margin: 0 auto;
  21776. width: 120px;
  21777. background: #3681fc;
  21778. color: #fff;
  21779. height: 30px;
  21780. text-align: center;
  21781. line-height: 30px;
  21782. border-radius: 5px;
  21783. font-size: 14px;
  21784. cursor: pointer;
  21785. }
  21786. .courseTitle {
  21787. width: 85%;
  21788. margin: 10px auto 26px auto;
  21789. display: flex;
  21790. flex-direction: row;
  21791. align-items: center;
  21792. justify-content: space-between;
  21793. text-align: center;
  21794. }
  21795. .courseTitle .ctitle {
  21796. font-size: 20px;
  21797. font-weight: bold;
  21798. color: #0e1e33;
  21799. white-space: nowrap;
  21800. overflow: hidden;
  21801. text-overflow: ellipsis;
  21802. }
  21803. .inviteBox {
  21804. font-size: 14px;
  21805. /* margin-top: 5px; */
  21806. color: #00000099;
  21807. text-align: center;
  21808. }
  21809. .courseTitle >>> .el-tooltip {
  21810. width: 100%;
  21811. white-space: nowrap;
  21812. overflow: hidden;
  21813. text-overflow: ellipsis;
  21814. word-break: break-word;
  21815. }
  21816. .ml {
  21817. margin-left: 20px;
  21818. color: #5b7dba;
  21819. border-left: 3px solid #5b7dba;
  21820. padding-left: 5px;
  21821. font-weight: bold;
  21822. }
  21823. .return {
  21824. width: 2rem;
  21825. height: 2rem;
  21826. cursor: pointer;
  21827. }
  21828. .return > img {
  21829. width: 100%;
  21830. height: 100%;
  21831. }
  21832. .returnBtn {
  21833. width: 86px;
  21834. height: 36px;
  21835. background: #3681fc;
  21836. border-radius: 4px;
  21837. color: #fff;
  21838. text-align: center;
  21839. line-height: 36px;
  21840. margin-right: 20px;
  21841. cursor: pointer;
  21842. font-size: 14px;
  21843. font-weight: 400;
  21844. display: flex;
  21845. flex-direction: row;
  21846. flex-wrap: nowrap;
  21847. align-items: center;
  21848. justify-content: center;
  21849. }
  21850. .reBtnIcon,
  21851. .commentIcon,
  21852. .vedioIcon,
  21853. .vedioIcon1 {
  21854. /* width: 36px; */
  21855. height: 36px;
  21856. border-radius: 4px;
  21857. position: relative;
  21858. /* background: #e0eafb; */
  21859. background: #0061ff;
  21860. cursor: pointer;
  21861. margin-right: 12px;
  21862. display: flex;
  21863. align-items: center;
  21864. padding: 0 10px;
  21865. box-sizing: border-box;
  21866. font-size: 14px;
  21867. color: #fff;
  21868. }
  21869. .reBtnIcon::before,
  21870. .commentIcon::before,
  21871. .vedioIcon::before,
  21872. .vedioIcon1::before {
  21873. content: "";
  21874. display: block;
  21875. background-size: 100% 100%;
  21876. background-repeat: no-repeat;
  21877. width: 20px;
  21878. height: 20px;
  21879. margin-right: 5px;
  21880. /* position: absolute; */
  21881. /* top: 8px;
  21882. left: 8px; */
  21883. }
  21884. .vedioIcon1 {
  21885. background: #f63564;
  21886. }
  21887. .reBtnIcon::before {
  21888. background-image: url("../../assets/icon/newIcons/refresh.png");
  21889. }
  21890. .commentIcon::before {
  21891. background-image: url("../../assets/icon/newIcons/comment.png");
  21892. }
  21893. .vedioIcon::before {
  21894. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21895. }
  21896. .vedioIcon1::before {
  21897. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  21898. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21899. }
  21900. .tool {
  21901. display: flex;
  21902. flex-direction: column;
  21903. flex-wrap: nowrap;
  21904. width: 13%;
  21905. margin: 0 30px;
  21906. align-items: center;
  21907. position: relative;
  21908. padding: 10px 25px;
  21909. cursor: pointer;
  21910. }
  21911. .whiteBIcon {
  21912. width: 150px;
  21913. }
  21914. .whiteBIcon > img {
  21915. width: 100%;
  21916. height: 100%;
  21917. }
  21918. .mask {
  21919. background-color: rgba(0, 0, 0, 0);
  21920. position: fixed;
  21921. top: 0;
  21922. left: 0;
  21923. width: 100%;
  21924. height: 100%;
  21925. z-index: 20000;
  21926. display: flex;
  21927. align-items: center;
  21928. justify-content: center;
  21929. }
  21930. .progressBox {
  21931. width: 500px;
  21932. height: 180px;
  21933. background: #fff;
  21934. border-radius: 10px;
  21935. box-shadow: 0 0 6px 1px #bfbfbf;
  21936. display: flex;
  21937. align-items: center;
  21938. justify-content: center;
  21939. flex-direction: column;
  21940. position: relative;
  21941. color: #6c6c6c;
  21942. }
  21943. .progressBox >>> .el-progress-bar__outer {
  21944. background-color: #d1dfff !important;
  21945. }
  21946. .progressBox .lbox {
  21947. height: 50px;
  21948. font-size: 19px;
  21949. display: flex;
  21950. align-items: center;
  21951. color: #747474;
  21952. }
  21953. .progressBox .lbox img {
  21954. width: 40px;
  21955. margin-right: 20px;
  21956. }
  21957. .closeCss {
  21958. position: absolute;
  21959. top: 8px;
  21960. right: 8px;
  21961. cursor: pointer;
  21962. width: 20px;
  21963. height: 20px;
  21964. }
  21965. .closeCss > img {
  21966. width: 100%;
  21967. height: 100%;
  21968. }
  21969. .uploadVedio {
  21970. display: flex;
  21971. flex-direction: column;
  21972. flex-wrap: nowrap;
  21973. justify-content: center;
  21974. align-items: center;
  21975. margin: 0 15px 10px 0;
  21976. }
  21977. .uploadVedio > img {
  21978. width: 30px;
  21979. height: 30px;
  21980. }
  21981. .uploadVedio > span {
  21982. white-space: nowrap;
  21983. overflow: hidden;
  21984. text-overflow: ellipsis;
  21985. width: 75px;
  21986. margin-top: 7px;
  21987. }
  21988. .picName {
  21989. white-space: nowrap;
  21990. overflow: hidden;
  21991. text-overflow: ellipsis;
  21992. width: 75px;
  21993. margin-top: 7px;
  21994. }
  21995. .new_top {
  21996. display: flex;
  21997. background: #fff;
  21998. flex-direction: row;
  21999. justify-content: flex-start;
  22000. align-items: center;
  22001. height: 60px;
  22002. position: fixed;
  22003. top: 20px;
  22004. left: 22%;
  22005. width: 77%;
  22006. z-index: 999;
  22007. border-radius: 12px 12px 0 0;
  22008. border-bottom: 1px solid #cad1dc;
  22009. padding: 10px 0;
  22010. }
  22011. .new_topFixed {
  22012. width: 100%;
  22013. height: 40px;
  22014. position: fixed;
  22015. top: 0px;
  22016. display: block;
  22017. background: #f2f2f2;
  22018. z-index: 998;
  22019. }
  22020. .before {
  22021. position: absolute;
  22022. background: #c3dad4;
  22023. width: 6px;
  22024. height: 100%;
  22025. }
  22026. .courseIndex {
  22027. display: flex;
  22028. flex-direction: row;
  22029. align-items: center;
  22030. width: calc(100% - 745px);
  22031. }
  22032. .courseIndex > div:nth-child(1) {
  22033. margin: 0 0 0 10px;
  22034. font-size: 20px;
  22035. min-width: 100px;
  22036. font-weight: bold;
  22037. border-left: 4px solid #3363b9;
  22038. height: 32px;
  22039. text-align: center;
  22040. line-height: 35px;
  22041. }
  22042. .courseIndex > div:nth-child(2) {
  22043. font-size: 20px;
  22044. /* width: 300px; */
  22045. max-width: calc(100% - 105px);
  22046. white-space: nowrap;
  22047. overflow: hidden;
  22048. text-overflow: ellipsis;
  22049. }
  22050. .courseIndex > div:nth-child(3) {
  22051. border-bottom: 1px solid #d7d7d7;
  22052. padding-bottom: 5px;
  22053. background: #3681fc;
  22054. width: 55px;
  22055. min-width: 55px;
  22056. border-radius: 5px;
  22057. color: #fff;
  22058. text-align: center;
  22059. height: 20px;
  22060. line-height: 26px;
  22061. font-size: 14px;
  22062. margin: 0 0 0 10px;
  22063. }
  22064. .course_text {
  22065. padding: 20px 0 0 15px;
  22066. text-indent: 30px;
  22067. width: 80%;
  22068. min-height: 20px;
  22069. }
  22070. .vedioList {
  22071. background: #f2f2f2;
  22072. border: 1px solid #ececec;
  22073. /* width: 38.8%; */
  22074. /* width: 300px; */
  22075. width: 100%;
  22076. height: 445px;
  22077. border-radius: 10px;
  22078. overflow: hidden;
  22079. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22080. }
  22081. .vedioNav {
  22082. margin: 10px 0 0 15px;
  22083. border-bottom: 1px solid #d7d7d7;
  22084. padding-bottom: 5px;
  22085. background: #3681fc;
  22086. width: 55px;
  22087. min-width: 55px;
  22088. border-radius: 5px;
  22089. color: #fff;
  22090. text-align: center;
  22091. height: 20px;
  22092. line-height: 26px;
  22093. font-size: 14px;
  22094. }
  22095. .queTop {
  22096. display: flex;
  22097. padding: 20px 0 20px 30px;
  22098. width: 100%;
  22099. flex-direction: row;
  22100. justify-content: flex-start;
  22101. align-items: center;
  22102. box-sizing: border-box;
  22103. }
  22104. .queTopTitle {
  22105. display: flex;
  22106. flex-direction: row;
  22107. flex-wrap: nowrap;
  22108. align-items: center;
  22109. font-weight: bold;
  22110. font-size: 20px;
  22111. color: rgb(14, 30, 51);
  22112. }
  22113. .queTopTitle::before {
  22114. content: "";
  22115. width: 2px;
  22116. height: 22px;
  22117. background: #3681fc;
  22118. border-radius: 3px;
  22119. display: block;
  22120. margin: 2px 6px 0 0;
  22121. }
  22122. .queTopRight {
  22123. display: flex;
  22124. flex-direction: row;
  22125. flex-wrap: nowrap;
  22126. align-items: center;
  22127. }
  22128. .queTopClose {
  22129. margin-right: 20px;
  22130. cursor: pointer;
  22131. position: relative;
  22132. display: flex;
  22133. }
  22134. .closeImg,
  22135. .openImg {
  22136. width: 25px;
  22137. height: 25px;
  22138. position: absolute;
  22139. left: -20px;
  22140. top: -1px;
  22141. }
  22142. .closeImg > img,
  22143. .openImg > img {
  22144. width: 100%;
  22145. height: 100%;
  22146. }
  22147. .question {
  22148. width: 40px;
  22149. margin-right: 10px;
  22150. margin-top: 7px;
  22151. }
  22152. .queTitle {
  22153. margin-left: 5px;
  22154. font-size: 25px;
  22155. display: flex;
  22156. align-items: center;
  22157. }
  22158. .addEditor {
  22159. width: 100px;
  22160. height: 30px;
  22161. background: #42cda6;
  22162. color: #fff;
  22163. border-radius: 5px;
  22164. text-align: center;
  22165. line-height: 30px;
  22166. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22167. cursor: pointer;
  22168. }
  22169. /* .vedioName {
  22170. cursor: pointer;
  22171. margin: 0px 0px 10px 5px;
  22172. white-space: nowrap;
  22173. overflow: hidden;
  22174. text-overflow: ellipsis;
  22175. width: 100%;
  22176. } */
  22177. .vedioTime {
  22178. width: 35px;
  22179. position: absolute;
  22180. color: #fff;
  22181. bottom: 0px;
  22182. right: 0px;
  22183. text-align: center;
  22184. background: #46411f;
  22185. height: 20px;
  22186. font-size: 14px;
  22187. line-height: 20px;
  22188. }
  22189. .homework {
  22190. width: 200px;
  22191. display: flex;
  22192. flex-direction: column;
  22193. flex-wrap: nowrap;
  22194. align-items: center;
  22195. cursor: pointer;
  22196. }
  22197. .homebox {
  22198. display: flex;
  22199. flex-wrap: wrap;
  22200. flex-direction: row;
  22201. justify-content: flex-start;
  22202. align-items: center;
  22203. padding: 15px 0;
  22204. }
  22205. .isChooseActive {
  22206. color: #3681fc !important;
  22207. font-weight: bold !important;
  22208. }
  22209. .chooseWho {
  22210. display: flex;
  22211. width: 100%;
  22212. flex-direction: row;
  22213. flex-wrap: nowrap;
  22214. justify-content: flex-start;
  22215. padding-bottom: 10px;
  22216. }
  22217. .chooseWho > div {
  22218. cursor: pointer;
  22219. padding-bottom: 10px;
  22220. margin: 0 30px 0 0;
  22221. font-weight: 400;
  22222. color: #0e1e33;
  22223. }
  22224. .addPoint > div > img {
  22225. cursor: pointer;
  22226. width: 85px;
  22227. border-radius: 15px;
  22228. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22229. }
  22230. .addPoint > div {
  22231. display: flex;
  22232. flex-direction: column;
  22233. flex-wrap: nowrap;
  22234. align-items: center;
  22235. }
  22236. .isBorder > div {
  22237. margin: 0 0 10px 0;
  22238. align-items: flex-start !important;
  22239. }
  22240. .noiframeBox {
  22241. display: flex;
  22242. flex-wrap: wrap;
  22243. }
  22244. .iframeBox iframe {
  22245. width: 100%;
  22246. height: 800px;
  22247. border: none;
  22248. margin-bottom: 20px;
  22249. border: 1px solid #ccc;
  22250. }
  22251. .upload_toolBtn {
  22252. background: #3681fc;
  22253. color: #fff;
  22254. width: 110px;
  22255. text-align: center;
  22256. height: 35px;
  22257. line-height: 35px;
  22258. font-size: 14px;
  22259. border-radius: 5px;
  22260. cursor: pointer;
  22261. position: absolute;
  22262. right: 10px;
  22263. bottom: 0;
  22264. }
  22265. .binfo_input,
  22266. .pj {
  22267. font: inherit;
  22268. color: currentColor;
  22269. width: 100%;
  22270. margin: 0;
  22271. padding: 15px 14px;
  22272. display: block;
  22273. min-width: 0;
  22274. outline: none;
  22275. box-sizing: content-box;
  22276. background: none;
  22277. -webkit-tap-highlight-color: transparent;
  22278. border: 1px solid rgba(0, 0, 0, 0.23);
  22279. border-radius: 4px;
  22280. box-sizing: border-box;
  22281. resize: none;
  22282. }
  22283. .binfo_input:focus-visible {
  22284. border: 1px solid rgba(61, 103, 188);
  22285. }
  22286. .dialog_diy >>> .el-dialog__header,
  22287. .dialog_diy1 >>> .el-dialog__header {
  22288. background: #454545 !important;
  22289. padding: 15px 20px;
  22290. }
  22291. .dialog_diy >>> .el-dialog__title,
  22292. .dialog_diy1 >>> .el-dialog__title {
  22293. color: #fff;
  22294. }
  22295. .dialog_diy >>> .el-dialog__headerbtn,
  22296. .dialog_diy1 >>> .el-dialog__headerbtn {
  22297. top: 19px;
  22298. }
  22299. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22300. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22301. color: #fff;
  22302. }
  22303. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22304. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22305. color: #fff;
  22306. }
  22307. .dialog_diy1 >>> .el-dialog__body {
  22308. padding: 0;
  22309. }
  22310. .dialog_diy >>> .el-dialog__body,
  22311. .dialog_diy >>> .el-dialog__footer,
  22312. .dialog_diy1 >>> .el-dialog__footer {
  22313. background: #fafafa;
  22314. }
  22315. .a_addBox {
  22316. padding: 0 0 0 15px;
  22317. }
  22318. .a_add_box {
  22319. padding: 10px;
  22320. background: #fff;
  22321. margin-bottom: 10px;
  22322. border-radius: 5px;
  22323. box-shadow: 0 0 5px 0 #d5d5d5;
  22324. }
  22325. .a_add_head {
  22326. display: flex;
  22327. align-items: flex-start;
  22328. /* justify-content: space-between; */
  22329. flex-direction: column;
  22330. /* flex-direction: row; */
  22331. margin: 10px 0 20px 0;
  22332. font-size: 18px;
  22333. width: 100%;
  22334. }
  22335. .askIndex {
  22336. background: #3681fc;
  22337. border-radius: 50%;
  22338. color: #fff;
  22339. width: 25px;
  22340. height: 25px;
  22341. min-width: 25px;
  22342. min-height: 25px;
  22343. text-align: center;
  22344. line-height: 25px;
  22345. margin-right: 5px;
  22346. }
  22347. .a_add_head .a_add_head_input {
  22348. width: 300px;
  22349. }
  22350. .a_add_head .a_add_head_div {
  22351. display: flex;
  22352. align-items: center;
  22353. justify-content: space-between;
  22354. }
  22355. .a_add_body {
  22356. display: flex;
  22357. align-items: center;
  22358. }
  22359. .a_add_input {
  22360. display: flex;
  22361. align-items: center;
  22362. flex-wrap: wrap;
  22363. width: 100%;
  22364. }
  22365. .a_add_input >>> .el-radio-group,
  22366. .a_add_input >>> .el-checkbox-group {
  22367. width: 100%;
  22368. }
  22369. .a_add_input >>> .el-radio,
  22370. .a_add_input >>> .el-checkbox {
  22371. display: flex;
  22372. flex-direction: row;
  22373. flex-wrap: nowrap;
  22374. align-items: center;
  22375. padding: 15px 0;
  22376. }
  22377. .a_add_input >>> .el-radio:not(:last-child),
  22378. .a_add_input >>> .el-checkbox:not(:last-child) {
  22379. width: 100%;
  22380. border-bottom: 1px solid #efefef;
  22381. }
  22382. .redioStyle >>> .el-radio__label {
  22383. font-size: 18px;
  22384. }
  22385. .redioStyle >>> .el-radio__label > span,
  22386. .redioStyle >>> .el-checkbox__label > span {
  22387. word-break: break-all;
  22388. white-space: normal;
  22389. }
  22390. .redioStyle >>> .el-checkbox__label {
  22391. font-size: 18px;
  22392. }
  22393. .toolHeng2 {
  22394. width: 100%;
  22395. padding-left: 15px;
  22396. box-sizing: border-box;
  22397. }
  22398. .workNav {
  22399. font-size: 20px;
  22400. font-weight: bold;
  22401. color: #0e1e33;
  22402. display: flex;
  22403. flex-direction: row;
  22404. flex-wrap: nowrap;
  22405. align-items: center;
  22406. padding: 15px 0 15px 0;
  22407. }
  22408. .workNav::before {
  22409. content: "";
  22410. width: 2px;
  22411. height: 22px;
  22412. background: #3681fc;
  22413. border-radius: 3px;
  22414. display: block;
  22415. margin: 2px 6px 0 0;
  22416. }
  22417. .toolHeng {
  22418. display: flex;
  22419. flex-direction: row;
  22420. flex-wrap: wrap;
  22421. justify-content: flex-start;
  22422. align-items: center;
  22423. width: 100%;
  22424. }
  22425. .toolHeng > div {
  22426. padding-left: 20px;
  22427. }
  22428. .isWidth {
  22429. width: 20%;
  22430. }
  22431. .textTitle {
  22432. display: flex;
  22433. flex-direction: row;
  22434. flex-wrap: nowrap;
  22435. align-items: center;
  22436. width: 95%;
  22437. }
  22438. .textTitle >>> .el-form-item__label {
  22439. font-size: 22px;
  22440. color: #918f8f;
  22441. width: 100px;
  22442. }
  22443. .textTitle >>> .el-form-item__content {
  22444. width: calc(100% - 100px);
  22445. }
  22446. .textCss >>> .el-dialog {
  22447. width: 800px !important;
  22448. height: 400px;
  22449. background: #fafafa;
  22450. }
  22451. .textCss >>> .el-dialog__body {
  22452. margin: 55px 8% 0 8%;
  22453. padding: 0 !important;
  22454. }
  22455. .textCss >>> .el-dialog__footer {
  22456. padding-top: 38px;
  22457. }
  22458. .toolsCss >>> .el-dialog__body {
  22459. padding: 20px;
  22460. }
  22461. .lineCss >>> .el-dialog__body {
  22462. display: flex;
  22463. flex-direction: row;
  22464. align-items: center;
  22465. justify-content: center;
  22466. }
  22467. .newNav {
  22468. display: flex;
  22469. flex-direction: row;
  22470. align-items: baseline;
  22471. justify-content: flex-start;
  22472. }
  22473. .navListItem {
  22474. width: calc(100% - 20px);
  22475. height: 50px;
  22476. margin: 0px auto 10px;
  22477. display: flex;
  22478. flex-direction: row;
  22479. flex-wrap: nowrap;
  22480. align-items: center;
  22481. justify-content: space-between;
  22482. background: #f0f4fa;
  22483. border-radius: 6px 6px 6px 6px;
  22484. }
  22485. .navText {
  22486. cursor: pointer;
  22487. white-space: nowrap;
  22488. overflow: hidden;
  22489. text-overflow: ellipsis;
  22490. width: 220px;
  22491. padding: 0 10px;
  22492. font-weight: 400;
  22493. color: #0e1e33;
  22494. }
  22495. .downIcon {
  22496. width: 20px;
  22497. min-width: 20px;
  22498. height: 20px;
  22499. margin-right: 15px;
  22500. cursor: pointer;
  22501. }
  22502. .downIcon > img {
  22503. width: 100%;
  22504. height: 100%;
  22505. }
  22506. .noVedio {
  22507. display: flex;
  22508. flex-direction: row;
  22509. justify-content: center;
  22510. align-content: center;
  22511. }
  22512. .noNavText {
  22513. cursor: pointer;
  22514. margin: 0px 0px 10px 5px;
  22515. width: 112px;
  22516. }
  22517. .listNoVedio {
  22518. margin: 0 0 0 30px;
  22519. width: 97%;
  22520. }
  22521. .video-player >>> .video-js {
  22522. height: 100%;
  22523. }
  22524. .hangVedioList {
  22525. width: 90% !important;
  22526. height: 150px !important;
  22527. margin: 20px 0 0 30px;
  22528. }
  22529. .hangVedio {
  22530. width: 100%;
  22531. height: 170px !important;
  22532. align-items: flex-start !important;
  22533. }
  22534. .hangHand {
  22535. height: 150px !important;
  22536. }
  22537. .twoChild {
  22538. width: 95%;
  22539. margin: 10px;
  22540. border-radius: 5px;
  22541. background: #f2f2f2;
  22542. display: flex;
  22543. flex-direction: column;
  22544. flex-wrap: nowrap;
  22545. justify-content: flex-start;
  22546. align-items: flex-start;
  22547. transition: all 0.5s;
  22548. overflow: hidden;
  22549. height: 0;
  22550. background: #e7f3ff;
  22551. }
  22552. .twoChild > div:nth-child(1) {
  22553. margin-top: 5px;
  22554. }
  22555. .navChild {
  22556. width: 100%;
  22557. cursor: pointer;
  22558. margin-bottom: 10px;
  22559. position: relative;
  22560. }
  22561. .navChild img {
  22562. position: absolute;
  22563. right: 11px;
  22564. width: 15px;
  22565. top: 50%;
  22566. transform: translateY(-50%);
  22567. }
  22568. .navActive,
  22569. .toolActive {
  22570. height: auto !important;
  22571. overflow: auto !important;
  22572. /* padding-bottom: 16px; */
  22573. }
  22574. .toolActive {
  22575. padding: 0;
  22576. }
  22577. .navTask {
  22578. display: flex;
  22579. flex-direction: row;
  22580. flex-wrap: nowrap;
  22581. align-items: center;
  22582. align-content: flex-start;
  22583. height: 40px;
  22584. justify-content: flex-start;
  22585. padding: 0 10px;
  22586. width: 100%;
  22587. box-sizing: border-box;
  22588. }
  22589. .navTaskname {
  22590. white-space: nowrap;
  22591. text-overflow: ellipsis;
  22592. overflow: hidden;
  22593. word-break: break-all;
  22594. padding-left: 5px;
  22595. }
  22596. .openTaskActive {
  22597. /* background-color: #e0eafb !important;
  22598. color: #0061ff; */
  22599. color:#fff;
  22600. background: rgb(55, 129, 252) !important;
  22601. }
  22602. .iframeName {
  22603. margin: 5px 0;
  22604. border-left: 4px solid #41c4a4;
  22605. padding-left: 4px;
  22606. }
  22607. .toolTitle {
  22608. margin: 0px 0px 20px;
  22609. font-size: 20px;
  22610. font-weight: 500;
  22611. border-left: 4px solid #41c4a4;
  22612. padding-left: 4px;
  22613. }
  22614. .cru_selectBox {
  22615. overflow: auto;
  22616. width: 95%;
  22617. margin: 17px auto 0;
  22618. height: calc(100% - 40px - 21px - 20px - 17px);
  22619. background: #fff;
  22620. border-radius: 8px;
  22621. }
  22622. .cru_selectBox::-webkit-scrollbar,
  22623. .study_top::-webkit-scrollbar,
  22624. .textContent::-webkit-scrollbar {
  22625. /*滚动条整体样式*/
  22626. width: 6px;
  22627. /*高宽分别对应横竖滚动条的尺寸*/
  22628. height: 6px;
  22629. }
  22630. /*定义滚动条轨道 内阴影+圆角*/
  22631. .cru_selectBox::-webkit-scrollbar-track,
  22632. .study_top::-webkit-scrollbar-track,
  22633. .textContent::-webkit-scrollbar {
  22634. border-radius: 10px;
  22635. background-color: #b8bdc9;
  22636. }
  22637. /*定义滑块 内阴影+圆角*/
  22638. .cru_selectBox::-webkit-scrollbar-thumb,
  22639. .study_top::-webkit-scrollbar-thumb,
  22640. .textContent::-webkit-scrollbar-thumb {
  22641. border-radius: 10px;
  22642. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22643. background-color: #2c5ab3;
  22644. }
  22645. .vedioBox {
  22646. border-radius: 0 0 20px 20px;
  22647. background: #fff;
  22648. overflow: auto;
  22649. }
  22650. .taskBox {
  22651. width: 98%;
  22652. background: #f0f4fa;
  22653. margin: 10px auto;
  22654. padding: 0 10px;
  22655. border-radius: 4px;
  22656. box-sizing: border-box;
  22657. }
  22658. .vedioTaskBox {
  22659. width: 100%;
  22660. display: flex;
  22661. flex-direction: row;
  22662. flex-wrap: nowrap;
  22663. align-items: flex-start;
  22664. position: relative;
  22665. }
  22666. .toolBox {
  22667. margin: 15px 0 0 25px;
  22668. display: flex;
  22669. position: relative;
  22670. padding: 18px 20px;
  22671. border-top-left-radius: 5px;
  22672. border-top-right-radius: 5px;
  22673. width: 90%;
  22674. }
  22675. .btnAll {
  22676. position: absolute;
  22677. right: 0;
  22678. display: flex;
  22679. flex-direction: row;
  22680. flex-wrap: nowrap;
  22681. align-items: center;
  22682. }
  22683. .btnLeft,
  22684. .btnRight {
  22685. display: flex;
  22686. flex-direction: row;
  22687. flex-wrap: nowrap;
  22688. align-items: center;
  22689. padding: 5px 0;
  22690. }
  22691. .btnLeft {
  22692. border-right: 1px solid #cad1dc;
  22693. }
  22694. .btnLeft > .custom-tooltip {
  22695. background: #3681fc;
  22696. color: #fff;
  22697. }
  22698. .last:hover {
  22699. background: #3383fa !important;
  22700. color: #fff;
  22701. border: 1px solid #3383fa !important;
  22702. }
  22703. .last,
  22704. .returnBtn1 {
  22705. width: 90px;
  22706. height: 36px;
  22707. background: #ffffff;
  22708. border-radius: 4px;
  22709. border: 1px solid #0061ff;
  22710. color: #0061ff;
  22711. cursor: pointer;
  22712. display: flex;
  22713. flex-direction: row;
  22714. flex-wrap: nowrap;
  22715. align-items: center;
  22716. justify-content: center;
  22717. margin-left: 12px;
  22718. }
  22719. .returnBtn1 {
  22720. background: #f0f4fa;
  22721. border-radius: 4px;
  22722. border: 1px solid #cad1dc;
  22723. margin: 0 12px;
  22724. }
  22725. .lastImg {
  22726. min-width: 15px;
  22727. width: 15px;
  22728. height: 15px;
  22729. display: flex;
  22730. }
  22731. .lastText {
  22732. padding: 0 5px 0 5px;
  22733. box-sizing: border-box;
  22734. font-size: 14px;
  22735. }
  22736. .lastImg > img {
  22737. width: 100%;
  22738. height: 100%;
  22739. }
  22740. /* .vedioTimeBox {
  22741. display: flex;
  22742. flex-direction: row;
  22743. align-items: center;
  22744. flex-wrap: nowrap;
  22745. position: relative;
  22746. } */
  22747. .navBox {
  22748. background: #fff;
  22749. height: calc(100% - 40px);
  22750. overflow-y: auto;
  22751. overflow-x: hidden;
  22752. }
  22753. .worksBox {
  22754. margin: 0 0 10px 25px;
  22755. border-bottom: 1px solid #eeeeee;
  22756. padding: 18px 20px;
  22757. border-radius: 4px;
  22758. width: 90%;
  22759. }
  22760. .worksBTitle {
  22761. font-size: 20px;
  22762. padding-bottom: 15px;
  22763. border-bottom: 1px solid #eeeeee;
  22764. display: flex;
  22765. align-items: center;
  22766. }
  22767. .greenBox {
  22768. width: 5px;
  22769. height: 30px;
  22770. background: #63b6fa;
  22771. margin-right: 5px;
  22772. }
  22773. .worksDetailBox {
  22774. display: flex;
  22775. width: 100%;
  22776. flex-direction: row;
  22777. flex-wrap: wrap;
  22778. align-items: flex-end;
  22779. justify-content: flex-start;
  22780. padding: 15px 5px;
  22781. box-sizing: border-box;
  22782. }
  22783. .works {
  22784. display: flex;
  22785. flex-direction: column;
  22786. flex-wrap: nowrap;
  22787. align-items: flex-start;
  22788. justify-content: flex-start;
  22789. align-content: center;
  22790. max-width: 240px;
  22791. width: calc(100% / 3 - 10px);
  22792. height: auto;
  22793. margin-right: 10px;
  22794. margin-bottom: 10px;
  22795. overflow: hidden;
  22796. height: 140px;
  22797. box-shadow: 0 0 6px 1px #dfdada;
  22798. border-radius: 15px;
  22799. }
  22800. .workImg {
  22801. width: 100%;
  22802. /* height: calc(100% - 40px); */
  22803. height: 105px;
  22804. position: relative;
  22805. }
  22806. .workImg > img {
  22807. width: 100%;
  22808. height: 100%;
  22809. object-fit: contain;
  22810. cursor: pointer;
  22811. }
  22812. .worksName {
  22813. height: 40px;
  22814. line-height: 40px;
  22815. display: flex;
  22816. width: 100%;
  22817. flex-direction: row;
  22818. flex-wrap: nowrap;
  22819. justify-content: space-between;
  22820. align-items: center;
  22821. margin: 0 0 0 10px;
  22822. }
  22823. .worksName > div:nth-child(1) {
  22824. width: 110px;
  22825. white-space: nowrap;
  22826. overflow: hidden;
  22827. text-overflow: ellipsis;
  22828. }
  22829. .worksName > div:nth-child(2) {
  22830. color: #b7b4b5;
  22831. }
  22832. .noWorksS {
  22833. padding: 15px 0;
  22834. display: flex;
  22835. flex-direction: row;
  22836. flex-wrap: wrap;
  22837. align-items: center;
  22838. justify-content: flex-start;
  22839. }
  22840. .noWorksName,
  22841. .isWorksName,
  22842. .isWorksName2 {
  22843. background: #ddebf8;
  22844. color: #000;
  22845. width: 90px;
  22846. height: 25px;
  22847. text-align: center;
  22848. line-height: 25px;
  22849. border-radius: 4px;
  22850. margin: 10px 15px 10px 0;
  22851. white-space: nowrap;
  22852. overflow: hidden;
  22853. padding: 5px;
  22854. text-overflow: ellipsis;
  22855. cursor: pointer;
  22856. border: 1px solid #ddebf8;
  22857. }
  22858. .noWorksName {
  22859. background: #fff;
  22860. color: #0061ff;
  22861. border: 1px solid #0061ff;
  22862. }
  22863. .noWorksName > span{
  22864. max-width: 100%;
  22865. display: block;
  22866. overflow: hidden;
  22867. text-overflow: ellipsis;
  22868. white-space: nowrap;
  22869. }
  22870. .isWorksName2 {
  22871. width: 100px;
  22872. height: 40px;
  22873. line-height: 40px;
  22874. position: relative;
  22875. background: #dae6f9;
  22876. }
  22877. .isWorksName {
  22878. background: #e7ebf1 !important;
  22879. width: 100px;
  22880. height: 40px;
  22881. line-height: 40px;
  22882. position: relative;
  22883. color: #acb4bf;
  22884. border: 1px solid #cad1dc !important;
  22885. }
  22886. .isSelectName,
  22887. .noWorksName:hover {
  22888. background: #3383fa !important;
  22889. color: #fff !important;
  22890. border: 1px solid #3383fa !important;
  22891. }
  22892. .title {
  22893. background: #1e5cc9;
  22894. /* width: 98%; */
  22895. height: 45px;
  22896. color: #fff;
  22897. line-height: 45px;
  22898. padding-left: 20px;
  22899. box-sizing: border-box;
  22900. }
  22901. .textBox {
  22902. font-size: 20px;
  22903. width: 90%;
  22904. display: flex;
  22905. flex-direction: column;
  22906. align-items: center;
  22907. margin: 20px auto 0;
  22908. max-height: calc(100% - 75px);
  22909. overflow: auto;
  22910. }
  22911. .textContent {
  22912. font-size: 18px;
  22913. width: 95%;
  22914. max-width: 95%;
  22915. }
  22916. .answerBg {
  22917. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  22918. background-size: 100% 100%;
  22919. width: 100%;
  22920. height: 100%;
  22921. color: #fff;
  22922. text-align: center;
  22923. display: flex;
  22924. flex-direction: column;
  22925. flex-wrap: nowrap;
  22926. align-items: center;
  22927. position: relative;
  22928. justify-content: center;
  22929. }
  22930. .answerBg > div:nth-child(1) {
  22931. /* font-size: 22px;
  22932. padding: 25px 0 10px; */
  22933. }
  22934. .answerContent {
  22935. width: 215px;
  22936. max-height: 60px;
  22937. word-break: break-all;
  22938. text-align: center;
  22939. /* white-space: nowrap; */
  22940. overflow: hidden;
  22941. text-overflow: ellipsis;
  22942. /* padding: 23px 0 0; */
  22943. -webkit-line-clamp: 3;
  22944. -webkit-box-orient: vertical;
  22945. display: -webkit-box;
  22946. font-size: 15px;
  22947. cursor: pointer;
  22948. }
  22949. .elist_input_box {
  22950. display: flex;
  22951. align-items: flex-start;
  22952. flex-wrap: nowrap;
  22953. padding: 10px 0 15px 30px;
  22954. flex-direction: column;
  22955. }
  22956. .elist_input {
  22957. /* width: 40%; */
  22958. width: 45%;
  22959. margin: 20px;
  22960. }
  22961. .elist_input .elist_input_box input {
  22962. font: inherit;
  22963. color: currentColor;
  22964. width: 200px;
  22965. padding: 8px 14px;
  22966. display: block;
  22967. min-width: 0;
  22968. outline: none;
  22969. border: 1px solid rgba(0, 0, 0, 0.23);
  22970. border-radius: 4px;
  22971. box-sizing: border-box;
  22972. background: #fff;
  22973. margin: 0 20px 0 0;
  22974. }
  22975. .elist_input .elist_input_box span {
  22976. height: 36px;
  22977. line-height: 36px;
  22978. color: rgb(82, 82, 82);
  22979. }
  22980. .elist_input .elist_input_box .remove {
  22981. height: 20px;
  22982. width: 20px;
  22983. background-size: 100% 100%;
  22984. background-position: unset;
  22985. margin-left: 5px;
  22986. }
  22987. .elist_input_box >>> .el-rate {
  22988. display: flex;
  22989. height: 36px;
  22990. align-items: center;
  22991. }
  22992. .elist_input_box .elist_inptu_text {
  22993. min-height: 50px;
  22994. /* width: 500px;
  22995. max-height: 150px; */
  22996. width: 100%;
  22997. line-height: 50px;
  22998. color: rgb(82, 82, 82);
  22999. overflow: auto;
  23000. text-indent: 5px;
  23001. background: #f7f6f9;
  23002. border-radius: 10px;
  23003. }
  23004. .elist_input_box .elist_inptu_text input {
  23005. width: 500px;
  23006. }
  23007. .elist_input_box >>> .el-rate__icon {
  23008. font-size: 24px;
  23009. }
  23010. .isClick {
  23011. background: #4d9def;
  23012. }
  23013. .bzBox {
  23014. display: flex;
  23015. flex-direction: row;
  23016. align-items: center;
  23017. }
  23018. .bzBox .yCss {
  23019. width: 7px;
  23020. height: 7px;
  23021. background: #fff;
  23022. margin: 0 16px 0 6px;
  23023. border-radius: 50%;
  23024. border: 5px solid #3681fc;
  23025. z-index: 99;
  23026. }
  23027. .bzBox > div:nth-child(2) {
  23028. font-size: 18px;
  23029. font-weight: bold;
  23030. color: #0e1e33;
  23031. }
  23032. .navTitile {
  23033. padding: 0 0px 0 15px;
  23034. font-size: 16px;
  23035. font-weight: bold;
  23036. color: #0e1e33;
  23037. height: 40px;
  23038. line-height: 40px;
  23039. }
  23040. .isTypeOne {
  23041. width: 240px;
  23042. height: 170px;
  23043. /* border: 1px solid #f8f8f8; */
  23044. border-radius: 10px;
  23045. box-shadow: 0 0 6px 1px #dfdada;
  23046. }
  23047. .e_add_top {
  23048. display: flex;
  23049. justify-content: space-between;
  23050. padding: 10px 20px;
  23051. border-radius: 3px;
  23052. background: #fff;
  23053. }
  23054. .e_add_title2 {
  23055. display: flex;
  23056. align-items: center;
  23057. }
  23058. .e_add_title2 span {
  23059. width: 40px;
  23060. }
  23061. .e_add_title {
  23062. display: flex;
  23063. align-items: center;
  23064. color: #b8b8b8;
  23065. font-size: 18px;
  23066. position: relative;
  23067. height: 40px;
  23068. }
  23069. .e_add_title span {
  23070. margin-right: 10px;
  23071. }
  23072. .e_add_title .el_input {
  23073. width: 300px;
  23074. }
  23075. .e_add_title >>> .el-input__inner {
  23076. width: 400px;
  23077. }
  23078. .e_add_btn {
  23079. }
  23080. .e_add_content {
  23081. display: flex;
  23082. width: 100%;
  23083. max-width: 650px;
  23084. height: 550px;
  23085. }
  23086. .e_add_list {
  23087. background: #fff;
  23088. height: 500px;
  23089. width: 210px;
  23090. position: relative;
  23091. margin: 15px 5px 0 0;
  23092. flex-shrink: 0;
  23093. display: flex;
  23094. flex-direction: column;
  23095. }
  23096. .e_add_list_title {
  23097. font-size: 20px;
  23098. width: 100%;
  23099. box-sizing: border-box;
  23100. padding: 15px 40px;
  23101. text-align: center;
  23102. border-bottom: 1px solid #eaeaea;
  23103. position: relative;
  23104. display: flex;
  23105. align-items: center;
  23106. justify-content: center;
  23107. height: 57px;
  23108. background: #f6f6f6;
  23109. }
  23110. .e_add_list_title span {
  23111. overflow: hidden;
  23112. white-space: nowrap;
  23113. text-overflow: ellipsis;
  23114. }
  23115. .e_add_list_title img {
  23116. position: absolute;
  23117. right: 15px;
  23118. width: 25px;
  23119. cursor: pointer;
  23120. top: 50%;
  23121. transform: translateY(-50%);
  23122. }
  23123. .e_add_list_body {
  23124. height: calc(100% - 187px);
  23125. overflow: auto;
  23126. }
  23127. .e_add_list_child {
  23128. width: 100%;
  23129. display: flex;
  23130. align-items: center;
  23131. justify-content: center;
  23132. position: relative;
  23133. box-sizing: border-box;
  23134. padding: 15px 40px;
  23135. text-align: center;
  23136. }
  23137. .e_add_list_child span {
  23138. overflow: hidden;
  23139. white-space: nowrap;
  23140. text-overflow: ellipsis;
  23141. cursor: pointer;
  23142. }
  23143. .e_add_list_child img {
  23144. position: absolute;
  23145. right: 10px;
  23146. width: 21px;
  23147. cursor: pointer;
  23148. top: 50%;
  23149. transform: translateY(-50%);
  23150. }
  23151. .e_add_list_child + .e_add_list_child {
  23152. border-top: 1px solid #eaeaea;
  23153. }
  23154. .e_add_list_child .active {
  23155. color: #409eff;
  23156. }
  23157. .e_add_list_btn {
  23158. position: absolute;
  23159. bottom: 0;
  23160. height: 50px;
  23161. background: rgb(120, 120, 254);
  23162. width: 100%;
  23163. color: #fff;
  23164. font-size: 16px;
  23165. text-align: center;
  23166. line-height: 50px;
  23167. cursor: pointer;
  23168. }
  23169. .e_add_list_detail {
  23170. position: absolute;
  23171. bottom: 0;
  23172. height: 130px;
  23173. background: rgb(120, 120, 254);
  23174. width: 100%;
  23175. color: #fff;
  23176. font-size: 16px;
  23177. display: flex;
  23178. align-items: center;
  23179. justify-content: center;
  23180. }
  23181. .e_add_list_detail textarea {
  23182. height: 90%;
  23183. width: 95%;
  23184. border: none;
  23185. resize: none;
  23186. outline: none;
  23187. padding: 5px;
  23188. box-sizing: border-box;
  23189. }
  23190. .e_add_list_pbox {
  23191. width: 100%;
  23192. max-width: 650px;
  23193. /* height: 600px; */
  23194. }
  23195. .e_add_list_pbox_title {
  23196. height: 50px;
  23197. background: #fff;
  23198. display: flex;
  23199. align-items: center;
  23200. width: 100%;
  23201. box-sizing: border-box;
  23202. padding: 0 20px;
  23203. }
  23204. .type_title {
  23205. font-size: 18px;
  23206. font-weight: 700;
  23207. }
  23208. .type_content {
  23209. font-size: 16px;
  23210. /* margin-left: 30px; */
  23211. }
  23212. .type_content span + span {
  23213. margin-left: 20px;
  23214. }
  23215. .type_content span {
  23216. cursor: pointer;
  23217. padding-bottom: 5px;
  23218. box-sizing: border-box;
  23219. }
  23220. .type_content .active {
  23221. color: #409eff;
  23222. border-bottom: 2px solid #409eff;
  23223. }
  23224. .e_add_list_pbox_content {
  23225. height: calc(100% - 50px);
  23226. display: flex;
  23227. align-items: center;
  23228. width: 100%;
  23229. background: #fff;
  23230. }
  23231. .evaCss {
  23232. display: flex;
  23233. flex-direction: row;
  23234. flex-wrap: nowrap;
  23235. align-items: flex-start;
  23236. padding: 0 0 20px;
  23237. }
  23238. .cru_line {
  23239. position: absolute;
  23240. bottom: 0px;
  23241. transition: all 0.5s;
  23242. left: 0px;
  23243. width: 125px;
  23244. margin-left: -25px;
  23245. }
  23246. .isNoMessage {
  23247. width: 20%;
  23248. margin: 25% auto 0;
  23249. }
  23250. .isNoMessage > img {
  23251. width: 100%;
  23252. height: 100%;
  23253. }
  23254. .fullStyle >>> .el-dialog__body {
  23255. height: 100% !important;
  23256. }
  23257. .fullStyle >>> .el-dialog,
  23258. .fullStyle {
  23259. width: 100% !important;
  23260. max-width: 100% !important;
  23261. height: 100% !important;
  23262. margin: 0 !important;
  23263. }
  23264. .full_diy >>> .el-dialog {
  23265. margin: 0 !important;
  23266. height: 100%;
  23267. padding: 4px;
  23268. }
  23269. .full_diy >>> .el-dialog__body {
  23270. height: calc(100% - 100px);
  23271. }
  23272. .full_diy2 >>> .el-dialog__body {
  23273. height: calc(100% - 50px);
  23274. padding: 0;
  23275. }
  23276. .switchCss {
  23277. /* width: 100%; */
  23278. display: flex;
  23279. flex-direction: row;
  23280. flex-wrap: nowrap;
  23281. align-items: center;
  23282. /* justify-content: center; */
  23283. }
  23284. .isClickNav {
  23285. /* color: #499eef; */
  23286. color: #000;
  23287. }
  23288. .commentImg {
  23289. width: 25px;
  23290. height: 25px;
  23291. cursor: pointer;
  23292. }
  23293. .commentImg > img {
  23294. width: 100%;
  23295. height: 100%;
  23296. }
  23297. .comment {
  23298. background: #f9f9f9;
  23299. border-radius: 0 0 4px 4px;
  23300. display: flex;
  23301. flex-direction: row;
  23302. flex-wrap: nowrap;
  23303. align-items: center;
  23304. justify-content: flex-end;
  23305. height: 35px;
  23306. }
  23307. .commentList {
  23308. display: flex;
  23309. flex-direction: row;
  23310. flex-wrap: nowrap;
  23311. align-items: center;
  23312. justify-content: center;
  23313. align-content: center;
  23314. /* margin-left: 15px; */
  23315. /* margin-left: 8px; */
  23316. }
  23317. .scoreImg {
  23318. width: 17px;
  23319. height: 17px;
  23320. }
  23321. .studentDetail {
  23322. display: flex;
  23323. flex-direction: row;
  23324. flex-wrap: nowrap;
  23325. /* align-items: center; */
  23326. align-items: flex-start;
  23327. }
  23328. .tx {
  23329. width: 50px;
  23330. }
  23331. .tx > img {
  23332. width: 100%;
  23333. height: 100%;
  23334. }
  23335. .nameAndTime {
  23336. display: flex;
  23337. flex-direction: column;
  23338. flex-wrap: nowrap;
  23339. align-items: flex-start;
  23340. margin-left: 10px;
  23341. }
  23342. .worksAnswer {
  23343. color: #4078dd;
  23344. margin: 10px 0;
  23345. font-size: 16px;
  23346. position: relative;
  23347. }
  23348. .worksAnswer > img {
  23349. width: 500px;
  23350. height: 300px;
  23351. object-fit: contain;
  23352. margin: 0 auto;
  23353. display: block;
  23354. }
  23355. .commentTop {
  23356. border-bottom: 1px solid #eaeaea;
  23357. padding-bottom: 10px;
  23358. }
  23359. .commentBox {
  23360. padding-top: 15px;
  23361. }
  23362. .pl {
  23363. font-size: 18px;
  23364. }
  23365. .plPerson {
  23366. width: 100%;
  23367. }
  23368. .plName {
  23369. display: flex;
  23370. flex-direction: row;
  23371. flex-wrap: nowrap;
  23372. align-items: baseline;
  23373. color: #78787a;
  23374. width: 100%;
  23375. }
  23376. .deleteComment {
  23377. cursor: pointer;
  23378. margin-left: auto;
  23379. color: #237ade;
  23380. }
  23381. .plContent {
  23382. margin-top: 5px;
  23383. }
  23384. .evalCss {
  23385. background: #fff;
  23386. font-size: 18px;
  23387. }
  23388. .nav {
  23389. color: #9d9d9d;
  23390. padding: 5px 0 15px 20px;
  23391. }
  23392. .middleBox {
  23393. padding: 5px 0 15px 20px;
  23394. }
  23395. .pfBox {
  23396. padding-bottom: 30px;
  23397. }
  23398. .nameAndrate {
  23399. display: flex;
  23400. flex-direction: row;
  23401. flex-wrap: nowrap;
  23402. align-items: center;
  23403. padding-bottom: 10px;
  23404. height: 30px;
  23405. line-height: 30px;
  23406. }
  23407. .nameAndrate > div {
  23408. margin-left: 10px;
  23409. color: #000;
  23410. height: 30px;
  23411. }
  23412. .nameAndrate >>> .el-rate__icon {
  23413. font-size: 28px !important;
  23414. }
  23415. .pfBox > div:nth-child(2) {
  23416. background: #f7f6f9;
  23417. width: 400px;
  23418. min-height: 45px;
  23419. border-radius: 10px;
  23420. font-size: 16px;
  23421. display: flex;
  23422. flex-wrap: wrap;
  23423. align-items: center;
  23424. padding: 10px 20px;
  23425. box-sizing: border-box;
  23426. color: #000;
  23427. }
  23428. .bz {
  23429. display: flex;
  23430. flex-direction: row;
  23431. flex-wrap: nowrap;
  23432. align-items: flex-start;
  23433. }
  23434. .bz > div {
  23435. padding: 0 10px;
  23436. }
  23437. .select_box2_title {
  23438. background: #fff;
  23439. border-radius: 5px;
  23440. padding: 15px 10px;
  23441. box-sizing: border-box;
  23442. margin-bottom: 10px;
  23443. display: flex;
  23444. flex-direction: row;
  23445. flex-wrap: nowrap;
  23446. align-items: center;
  23447. }
  23448. .select_box2_title > div:nth-child(2) {
  23449. margin-left: 10px;
  23450. color: #c4c4c4;
  23451. }
  23452. .select_box2_box {
  23453. display: flex;
  23454. height: 500px;
  23455. }
  23456. .select_box2_img {
  23457. width: calc(100% - 310px);
  23458. height: 100%;
  23459. overflow: auto;
  23460. background: #fff;
  23461. border-radius: 5px;
  23462. }
  23463. .select_box2_img img {
  23464. width: 100%;
  23465. }
  23466. .select_box2_answer {
  23467. background: #fff;
  23468. margin-left: 10px;
  23469. border-radius: 5px;
  23470. width: 300px;
  23471. overflow: auto;
  23472. height: 90%;
  23473. display: flex;
  23474. flex-direction: column;
  23475. align-items: flex-start;
  23476. padding-top: 10px;
  23477. box-sizing: border-box;
  23478. position: relative;
  23479. }
  23480. .select_answer_title {
  23481. padding: 0 0 15px 20px;
  23482. color: #c4c4c4;
  23483. }
  23484. .select_box2_answer_box {
  23485. margin: 0 0 10px 20px;
  23486. width: 85%;
  23487. display: flex;
  23488. flex-direction: row;
  23489. flex-wrap: nowrap;
  23490. align-items: center;
  23491. }
  23492. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23493. color: #000;
  23494. }
  23495. .upAnswerCss {
  23496. position: absolute;
  23497. bottom: 15px;
  23498. right: 15px;
  23499. }
  23500. .upAnswerCss >>> .el-button {
  23501. width: 95px;
  23502. height: 35px;
  23503. line-height: 35px;
  23504. padding: 0;
  23505. }
  23506. .rightWidthCss {
  23507. width: 60%;
  23508. display: flex;
  23509. flex-direction: row;
  23510. align-items: flex-start;
  23511. }
  23512. .rightAnswer {
  23513. display: flex;
  23514. flex-direction: row;
  23515. flex-wrap: nowrap;
  23516. align-items: center;
  23517. color: red;
  23518. margin-bottom: 31px;
  23519. }
  23520. .rightAnswerCss {
  23521. display: flex;
  23522. flex-direction: column;
  23523. flex-wrap: nowrap;
  23524. padding-top: 60px;
  23525. }
  23526. .blueCss {
  23527. color: #767de1;
  23528. margin-left: 10px;
  23529. }
  23530. .redCss {
  23531. color: red;
  23532. }
  23533. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23534. color: rgb(0 123 255) !important;
  23535. }
  23536. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23537. color: rgb(0 123 255) !important;
  23538. }
  23539. .zuoyeYulan {
  23540. padding-top: 0;
  23541. font-size: 18px;
  23542. display: flex;
  23543. align-items: flex-end;
  23544. }
  23545. .buttonA {
  23546. margin-left: 10px;
  23547. padding: 0;
  23548. }
  23549. .displayBox {
  23550. margin-bottom: 10px;
  23551. display: block;
  23552. border-bottom: 3px solid #eee;
  23553. display: flex;
  23554. align-items: center;
  23555. }
  23556. .easy_comment {
  23557. width: calc(100% - 90px);
  23558. margin-left: 10px;
  23559. display: flex;
  23560. flex-wrap: wrap;
  23561. }
  23562. .easy_comment > div {
  23563. border: 1px solid #4a4a4a;
  23564. color: #666;
  23565. border-radius: 15px;
  23566. padding: 5px 10px;
  23567. font-size: 16px;
  23568. margin-bottom: 10px;
  23569. margin-right: 5px;
  23570. cursor: pointer;
  23571. }
  23572. .easy_comment div:hover {
  23573. border: 1px solid #f7ba2a;
  23574. color: #c69217;
  23575. }
  23576. .xuan_right_box {
  23577. padding: 10px 0;
  23578. background: #f0f4fa;
  23579. margin: 0 15px 0 25px;
  23580. border-bottom-left-radius: 5px;
  23581. border-bottom-right-radius: 5px;
  23582. width: 91.5%;
  23583. }
  23584. .tool_right_box {
  23585. display: flex;
  23586. align-items: center;
  23587. }
  23588. .tool_right_box + .tool_right_box {
  23589. margin-top: 10px;
  23590. }
  23591. .right_box_xuan {
  23592. border-radius: 5px;
  23593. padding: 5px;
  23594. margin-left: 10px;
  23595. min-width: 85px;
  23596. background: #fff;
  23597. color: #0061ff;
  23598. border: 1px solid #0061ff;
  23599. font-size: 14px;
  23600. }
  23601. .pButton:hover {
  23602. opacity: 1 !important;
  23603. }
  23604. .pButton {
  23605. position: fixed;
  23606. text-align: center;
  23607. cursor: pointer;
  23608. z-index: 999;
  23609. right: 20px;
  23610. top: 110px;
  23611. width: 50px;
  23612. height: 50px;
  23613. display: flex;
  23614. align-items: center;
  23615. justify-content: center;
  23616. border-radius: 5px;
  23617. }
  23618. .pzClass {
  23619. width: calc(100% - 340px);
  23620. }
  23621. .newDialogCss {
  23622. /* position: fixed;
  23623. right: 5%;
  23624. top: 50%;
  23625. width: 340px;
  23626. transform: translateY(-50%);
  23627. height: 60%;
  23628. box-shadow: 0px 0 8px 0px #555555;
  23629. border-radius: 15px;
  23630. z-index: 999; */
  23631. position: fixed;
  23632. right: 20px;
  23633. top: 101px;
  23634. width: 330px;
  23635. height: calc(100% - 80px);
  23636. z-index: 999;
  23637. background: #fff;
  23638. border-top-right-radius: 0px;
  23639. border-bottom-right-radius: 0px;
  23640. overflow: hidden;
  23641. }
  23642. .newDialogCss>.scoreList{
  23643. width:100%;
  23644. height:100%;
  23645. box-sizing:border-box;
  23646. padding:10px 15px;
  23647. overflow:auto;
  23648. padding-bottom:80px;
  23649. }
  23650. .pzTop {
  23651. color: #fff;
  23652. background: #000;
  23653. display: flex;
  23654. flex-direction: row;
  23655. flex-wrap: nowrap;
  23656. align-items: center;
  23657. justify-content: space-between;
  23658. height: 40px;
  23659. border-radius: 15px 15px 0 0;
  23660. user-select: none;
  23661. }
  23662. .pzTop2 .checkbox {
  23663. display: flex;
  23664. align-items: center;
  23665. padding: 5px 10px;
  23666. flex: 0 0 auto;
  23667. font-weight: bold;
  23668. border-bottom: 1px solid #eee;
  23669. justify-content: space-between;
  23670. }
  23671. .checkbox>.cb-tabList{
  23672. display:flex;
  23673. align-items:center;
  23674. }
  23675. .cb-tabList>div{
  23676. margin-right:20px;
  23677. font-weight:400;
  23678. cursor:pointer;
  23679. }
  23680. .cb-tabList>.cb-tabItem{
  23681. color:#1684FC;
  23682. position:relative;
  23683. }
  23684. .cb-tabItem::after{
  23685. content:"";
  23686. width:100%;
  23687. height:2px;
  23688. background:#1684FC;
  23689. position:absolute;
  23690. bottom:-5px;
  23691. left:0
  23692. }
  23693. .pzTop2 .check {
  23694. text-align: center;
  23695. cursor: pointer;
  23696. box-sizing: border-box;
  23697. display: flex;
  23698. }
  23699. .pzTop2 img {
  23700. width: 25px;
  23701. cursor: pointer;
  23702. }
  23703. .pzTop > div:nth-child(1) {
  23704. padding-left: 10px;
  23705. }
  23706. .pzTop > div:nth-child(2) {
  23707. width: 15px;
  23708. height: 15px;
  23709. padding-right: 10px;
  23710. cursor: pointer;
  23711. }
  23712. .pzTop > div:nth-child(2) > img {
  23713. width: 100%;
  23714. height: 100%;
  23715. }
  23716. .pzBox,
  23717. .noPzBox {
  23718. height: calc(100% - 60px);
  23719. /* background: #ededed; */
  23720. background: #fff;
  23721. /* border-radius: 0 0 15px 15px; */
  23722. }
  23723. .noPzBox {
  23724. display: flex;
  23725. flex-direction: column;
  23726. flex-wrap: nowrap;
  23727. justify-content: center;
  23728. align-items: center;
  23729. }
  23730. .pzList {
  23731. background: #f7f7f7;
  23732. width: 90%;
  23733. margin: 0 auto 15px;
  23734. border-radius: 5px;
  23735. }
  23736. .pzNavTop {
  23737. display: flex;
  23738. flex-direction: row;
  23739. flex-wrap: nowrap;
  23740. padding: 10px 10px 0 10px;
  23741. align-items: center;
  23742. }
  23743. .pzDelete {
  23744. cursor: pointer;
  23745. margin-left: auto;
  23746. font-size: 14px;
  23747. color: #afafaf;
  23748. }
  23749. .pzNavTop > div:nth-child(1) {
  23750. background: #3760af;
  23751. width: 35px;
  23752. height: 35px;
  23753. color: #fff;
  23754. text-align: center;
  23755. line-height: 35px;
  23756. border-radius: 50%;
  23757. font-size: 14px;
  23758. }
  23759. .pzNavTop > div:nth-child(2) {
  23760. font-size: 18px;
  23761. color: #959595;
  23762. margin-left: 5px;
  23763. }
  23764. .pzContent {
  23765. padding: 10px;
  23766. word-break: break-word;
  23767. }
  23768. .pzContent audio {
  23769. width: 100%;
  23770. }
  23771. .pzContent audio::-webkit-media-controls-panel {
  23772. background: #fff;
  23773. }
  23774. .pzContent >>> img {
  23775. max-width: 100%;
  23776. }
  23777. .pzListBox {
  23778. padding-top: 15px;
  23779. height: calc(100% - 110px);
  23780. overflow: auto;
  23781. }
  23782. .addPzButton {
  23783. position: relative;
  23784. margin-top: 3px;
  23785. width: 100%;
  23786. }
  23787. .addPzButton .img1 {
  23788. position: absolute;
  23789. top: 50%;
  23790. right: 25px;
  23791. transform: translateY(-50%);
  23792. height: 100%;
  23793. display: flex;
  23794. align-items: center;
  23795. }
  23796. .addPzButton .img1 div {
  23797. display: flex;
  23798. }
  23799. .addPzButton .img1 div img {
  23800. width: 28px;
  23801. margin-left: 10px;
  23802. cursor: pointer;
  23803. }
  23804. .addPzButton .img1 div span {
  23805. font-size: 14px;
  23806. margin: 4px 0 0 3px;
  23807. color: #afafaf;
  23808. }
  23809. .addPz {
  23810. background: #4b79ce;
  23811. width: 100px;
  23812. color: #fff;
  23813. font-size: 12px;
  23814. height: 30px;
  23815. margin: 0 auto;
  23816. text-align: center;
  23817. line-height: 30px;
  23818. border-radius: 10px;
  23819. cursor: pointer;
  23820. }
  23821. .addDialogCss {
  23822. position: fixed;
  23823. width: 600px;
  23824. height: 70%;
  23825. min-height: 450px;
  23826. box-shadow: 0px 0 8px 0px #555555;
  23827. border-radius: 15px;
  23828. z-index: 999;
  23829. left: 50%;
  23830. top: 50%;
  23831. margin: -18% 0 0 -300px;
  23832. }
  23833. .teacherPz {
  23834. display: flex;
  23835. flex-direction: row;
  23836. align-items: center;
  23837. flex-wrap: nowrap;
  23838. }
  23839. .teacherPzImg {
  23840. width: 30px;
  23841. height: 30px;
  23842. }
  23843. .teacherPzImg > img {
  23844. width: 100%;
  23845. height: 100%;
  23846. }
  23847. .addPzBox {
  23848. height: calc(100% - 40px);
  23849. background: #ededed;
  23850. border-bottom-left-radius: 15px;
  23851. border-bottom-right-radius: 15px;
  23852. }
  23853. .pzAudioClass {
  23854. margin: 15px 14px;
  23855. background: #fff;
  23856. height: 100%;
  23857. display: flex;
  23858. justify-content: center;
  23859. align-items: center;
  23860. }
  23861. .pzConText {
  23862. width: 95%;
  23863. height: 100%;
  23864. margin: 10px auto 0;
  23865. border: none;
  23866. background: #fff;
  23867. border-radius: 0px;
  23868. }
  23869. .pzConText >>> .text {
  23870. height: calc(100% - 82px);
  23871. }
  23872. .addTextCss {
  23873. background: #4b79ce;
  23874. width: 80px;
  23875. height: 30px;
  23876. text-align: center;
  23877. color: #fff;
  23878. line-height: 30px;
  23879. border-radius: 10px;
  23880. margin: 10px auto 0;
  23881. cursor: pointer;
  23882. }
  23883. .pzConText:focus-visible {
  23884. border: none !important;
  23885. }
  23886. .maxWidth {
  23887. width: 1000px;
  23888. }
  23889. .noPz {
  23890. width: 150px;
  23891. margin: 0 auto 20%;
  23892. }
  23893. .noPz > img {
  23894. width: 100%;
  23895. height: 100%;
  23896. }
  23897. .timeAndReply {
  23898. display: flex;
  23899. flex-direction: row;
  23900. flex-wrap: nowrap;
  23901. justify-content: space-between;
  23902. align-items: center;
  23903. font-size: 14px;
  23904. box-sizing: border-box;
  23905. padding: 0 10px 10px 0px;
  23906. }
  23907. .timeAndReply .time {
  23908. color: #bfbfbf;
  23909. padding: 0 0 0 10px;
  23910. box-sizing: border-box;
  23911. }
  23912. .timeAndReply > div:last-child {
  23913. cursor: pointer;
  23914. color: #777;
  23915. }
  23916. /* table 样式 */
  23917. .cont >>> table {
  23918. border-top: 1px solid #ccc;
  23919. border-left: 1px solid #ccc;
  23920. }
  23921. .cont >>> table td,
  23922. .cont >>> table th {
  23923. border-bottom: 1px solid #ccc;
  23924. border-right: 1px solid #ccc;
  23925. /* padding: 20px 5px; */
  23926. padding: 5px 10px;
  23927. max-width: 0px;
  23928. height: 30px;
  23929. vertical-align: baseline;
  23930. box-sizing: border-box;
  23931. }
  23932. .cont >>> table th {
  23933. border-bottom: 2px solid #ccc;
  23934. text-align: center;
  23935. }
  23936. /* blockquote 样式 */
  23937. .cont >>> blockquote {
  23938. display: block;
  23939. border-left: 8px solid #d0e5f2;
  23940. padding: 5px 10px;
  23941. margin: 10px 0;
  23942. line-height: 1.4;
  23943. font-size: 100%;
  23944. background-color: #f1f1f1;
  23945. }
  23946. /* code 样式 */
  23947. .cont >>> code {
  23948. display: inline-block;
  23949. /* *display: inline; */
  23950. zoom: 1;
  23951. background-color: #f1f1f1;
  23952. border-radius: 3px;
  23953. padding: 3px 5px;
  23954. margin: 0 3px;
  23955. }
  23956. .cont >>> pre code {
  23957. display: block;
  23958. }
  23959. /* ul ol 样式 */
  23960. .cont >>> ul,
  23961. ol {
  23962. margin: 10px 0 10px 20px;
  23963. }
  23964. .addPzCheck {
  23965. display: flex;
  23966. flex-direction: row;
  23967. flex-wrap: nowrap;
  23968. padding: 10px 15px 0;
  23969. }
  23970. .addPzCheck span {
  23971. cursor: pointer;
  23972. padding-bottom: 5px;
  23973. font-weight: bold;
  23974. }
  23975. .addPzCheck span + span {
  23976. margin-left: 10px;
  23977. }
  23978. .addPzCheck .isChooseActive {
  23979. color: #3e88f4;
  23980. border-bottom: 2px solid #2f80f3;
  23981. }
  23982. /* code 样式 */
  23983. .cont {
  23984. /* -webkit-user-modify: read-write; */
  23985. overflow-wrap: break-word;
  23986. -webkit-line-break: after-white-space;
  23987. word-break: break-word;
  23988. white-space: pre-line;
  23989. }
  23990. .scoreBox,
  23991. .scoreDetailBox {
  23992. display: flex;
  23993. align-items: center;
  23994. justify-content: flex-start;
  23995. margin-top: 20px;
  23996. font-size: 18px;
  23997. width: 100%;
  23998. }
  23999. .scoreBox .t,
  24000. .scoreDetailBox .t {
  24001. margin-right: 10px;
  24002. width: 100px;
  24003. text-align: right;
  24004. }
  24005. .scoreDetailBox {
  24006. align-items: flex-start;
  24007. }
  24008. .scoreDetailBox >>> .el-textarea {
  24009. width: calc(100% - 200px);
  24010. }
  24011. .scoreBox >>> .el-input {
  24012. width: 130px;
  24013. font-size: 38px;
  24014. }
  24015. .scoreBox >>> .el-input__inner {
  24016. height: 60px;
  24017. }
  24018. .answerScore {
  24019. position: absolute;
  24020. top: 10px;
  24021. right: 10px;
  24022. background: #0000008f;
  24023. border-radius: 5px;
  24024. padding: 3px 5px;
  24025. font-size: 14px;
  24026. color: #fff;
  24027. cursor: pointer;
  24028. }
  24029. .open_box .switch_box {
  24030. width: 100%;
  24031. margin: 0 auto;
  24032. display: flex;
  24033. justify-content: space-between;
  24034. }
  24035. .open_box .switch_box + .switch_box {
  24036. margin-top: 10px;
  24037. }
  24038. .deleteImg,.deleteImg1 {
  24039. width: 25px !important;
  24040. height: 25px !important;
  24041. cursor: pointer;
  24042. position: absolute;
  24043. top: 10px;
  24044. right: 10px;
  24045. }
  24046. .deleteImg2 {
  24047. width: 23px !important;
  24048. height: 23px !important;
  24049. top: 5px;
  24050. right: 5px;
  24051. }
  24052. .deleteImg1{
  24053. width: 23px !important;
  24054. height: 23px !important;
  24055. top: 5px !important;
  24056. right: 30px !important;
  24057. }
  24058. .rightW {
  24059. right: 40px;
  24060. }
  24061. .drawPBox {
  24062. display: flex;
  24063. flex-direction: column;
  24064. position: relative;
  24065. }
  24066. .drawPBox span {
  24067. font-size: 18px;
  24068. color: #606266;
  24069. padding-bottom: 10px;
  24070. margin: 10px 0;
  24071. border-bottom: 1px solid #eaeaea;
  24072. }
  24073. .drawPBox img {
  24074. width: 500px;
  24075. height: 300px;
  24076. object-fit: contain;
  24077. cursor: pointer;
  24078. margin: 0 auto;
  24079. }
  24080. .sentenBox {
  24081. background: #fff;
  24082. height: 450px;
  24083. overflow: auto;
  24084. background-image: url("../../assets/icon/conSentences/stuBg.png");
  24085. background-position: 102%;
  24086. background-repeat: no-repeat;
  24087. background-size: 60%;
  24088. }
  24089. .addSen {
  24090. background: #409efe;
  24091. width: 90px;
  24092. color: #fff;
  24093. height: 35px;
  24094. text-align: center;
  24095. line-height: 35px;
  24096. border-radius: 5px;
  24097. float: right;
  24098. margin: 10px 20px 0 0;
  24099. cursor: pointer;
  24100. }
  24101. .sentenTop {
  24102. display: flex;
  24103. flex-direction: row;
  24104. flex-wrap: nowrap;
  24105. align-items: center;
  24106. padding: 55px 0 0 20px;
  24107. box-sizing: border-box;
  24108. }
  24109. .sentenTop > div:nth-child(2) {
  24110. width: 300px;
  24111. margin: 0 15px;
  24112. }
  24113. .sentenTop > div:nth-child(3) {
  24114. background: #409efe;
  24115. color: #fff;
  24116. width: 65px;
  24117. height: 35px;
  24118. text-align: center;
  24119. line-height: 35px;
  24120. border-radius: 5px;
  24121. cursor: pointer;
  24122. }
  24123. .cardList,
  24124. .cardList1 {
  24125. padding: 10px 0 10px 0;
  24126. display: flex;
  24127. flex-direction: row;
  24128. flex-wrap: wrap;
  24129. align-items: center;
  24130. box-sizing: border-box;
  24131. border-bottom: 1px solid #f4f4f4;
  24132. width: 98%;
  24133. margin: 0 auto;
  24134. min-width: 60%;
  24135. max-width: 85%;
  24136. }
  24137. .cardList1 {
  24138. padding: 10px 0 10px 10px !important;
  24139. margin: 0 !important;
  24140. }
  24141. .cardBox {
  24142. display: flex;
  24143. flex-direction: row;
  24144. flex-wrap: wrap;
  24145. align-items: center;
  24146. align-content: center;
  24147. }
  24148. .cardBox > div {
  24149. margin-bottom: 10px;
  24150. }
  24151. .isCard,
  24152. .isChooseCard,
  24153. .noCard,
  24154. .isCard1 {
  24155. min-width: 130px;
  24156. width: auto;
  24157. height: 60px;
  24158. text-align: center;
  24159. line-height: 60px;
  24160. font-size: 20px;
  24161. cursor: pointer;
  24162. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  24163. background-size: cover;
  24164. transition: all 2s;
  24165. margin-right: 20px;
  24166. background-size: 100% 100%;
  24167. padding: 0 20px;
  24168. box-sizing: border-box;
  24169. }
  24170. .isCard > div,
  24171. .noCard > div,
  24172. .isCard1 > div {
  24173. white-space: nowrap;
  24174. overflow: hidden;
  24175. text-overflow: ellipsis;
  24176. width: 100%;
  24177. margin: 0 auto;
  24178. }
  24179. .noCard {
  24180. background-image: none;
  24181. }
  24182. .isCard1 {
  24183. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  24184. }
  24185. .isChooseCard {
  24186. background-image: none;
  24187. border: 1px dashed #b9b9b9;
  24188. border-radius: 10px;
  24189. }
  24190. .card {
  24191. width: 130px;
  24192. height: 60px;
  24193. }
  24194. .card > img {
  24195. width: 100%;
  24196. height: 100%;
  24197. }
  24198. .rightCardBox {
  24199. margin: 10px 0 0 10px;
  24200. }
  24201. .rightCardBox > div:nth-child(1) {
  24202. margin-bottom: 10px;
  24203. }
  24204. .cardCss {
  24205. display: flex;
  24206. flex-direction: column;
  24207. flex-wrap: nowrap;
  24208. align-items: center;
  24209. border-bottom: 3px solid #b4c3d3;
  24210. padding: 0 0 5px 0;
  24211. margin-right: 10px;
  24212. }
  24213. .cardCss > div:nth-child(2) {
  24214. background: #5b7b9d;
  24215. color: #fff;
  24216. width: 20px;
  24217. height: 20px;
  24218. border-radius: 50%;
  24219. text-align: center;
  24220. line-height: 20px;
  24221. }
  24222. .isWrong {
  24223. display: flex;
  24224. flex-direction: row;
  24225. flex-wrap: nowrap;
  24226. align-content: center;
  24227. align-items: center;
  24228. }
  24229. .answerRight {
  24230. width: 25%;
  24231. }
  24232. .isTj {
  24233. display: flex;
  24234. flex-direction: row;
  24235. flex-wrap: nowrap;
  24236. align-items: center;
  24237. }
  24238. .isTj > div:nth-child(2) {
  24239. color: #727070;
  24240. margin-left: 10px;
  24241. }
  24242. .isTjImg {
  24243. width: 30px;
  24244. height: 30px;
  24245. }
  24246. .isTjImg > img {
  24247. width: 100%;
  24248. height: 100%;
  24249. }
  24250. .cardAnswerBox {
  24251. font-size: 18px;
  24252. width: 97%;
  24253. border: 5px;
  24254. padding: 0;
  24255. border-radius: 5px;
  24256. margin: 10px auto;
  24257. word-break: break-word;
  24258. }
  24259. .w_name {
  24260. margin-bottom: 10px;
  24261. }
  24262. .w_name span {
  24263. font-size: 16px;
  24264. }
  24265. .w_teachert {
  24266. width: 50px !important;
  24267. position: absolute;
  24268. height: auto !important;
  24269. z-index: 10;
  24270. right: 25px;
  24271. top: -25px;
  24272. }
  24273. .group_workBox {
  24274. }
  24275. .group_workBox + .group_workBox {
  24276. margin-top: 20px;
  24277. }
  24278. .group_box {
  24279. padding-bottom: 20px;
  24280. border-bottom: 2px solid #f0f0f0;
  24281. margin-top: 10px;
  24282. }
  24283. .group_title {
  24284. display: flex;
  24285. align-items: center;
  24286. justify-content: space-between;
  24287. width: 95%;
  24288. }
  24289. .group_name {
  24290. background-image: url(../../assets/icon/groupN.png);
  24291. width: 220px;
  24292. background-size: 100% 100%;
  24293. height: 67px;
  24294. padding: 0 20px 0 43px;
  24295. box-sizing: border-box;
  24296. line-height: 63px;
  24297. color: #fff;
  24298. overflow: hidden;
  24299. white-space: nowrap;
  24300. text-overflow: ellipsis;
  24301. }
  24302. .group_work {
  24303. width: 100%;
  24304. padding: 0 10px;
  24305. box-sizing: border-box;
  24306. display: flex;
  24307. flex-wrap: wrap;
  24308. }
  24309. .g_d_box {
  24310. display: flex;
  24311. flex-flow: wrap;
  24312. justify-content: space-around;
  24313. }
  24314. .g_d_box .isChair {
  24315. background-image: url(../../assets/avatar.png) !important;
  24316. }
  24317. .g_d_group {
  24318. width: 500px;
  24319. margin-bottom: 80px;
  24320. }
  24321. .g_d_group_chair {
  24322. display: flex;
  24323. align-items: center;
  24324. justify-content: center;
  24325. }
  24326. .g_d_group_chair > div + div {
  24327. margin-left: 30px;
  24328. }
  24329. .g_d_group_chair > div,
  24330. .g_d_group_chair2 > div {
  24331. display: flex;
  24332. flex-direction: column;
  24333. align-items: center;
  24334. }
  24335. .g_d_group_chair > div > span:nth-child(1),
  24336. .g_d_group_chair2 > div > span:nth-child(1) {
  24337. background-image: url(../../assets/icon/chair.png);
  24338. width: 50px;
  24339. height: 50px;
  24340. display: block;
  24341. background-size: 100% 100%;
  24342. }
  24343. .g_d_group_tableBox {
  24344. display: flex;
  24345. align-items: center;
  24346. justify-content: center;
  24347. }
  24348. .g_d_group_chair2 {
  24349. display: flex;
  24350. flex-direction: column;
  24351. align-items: center;
  24352. justify-content: center;
  24353. }
  24354. .g_d_group_chair2 > div + div {
  24355. margin-top: 10px;
  24356. }
  24357. .g_d_group_table {
  24358. background-image: url(../../assets/icon/groupBg.png);
  24359. width: 354px;
  24360. height: 196px;
  24361. background-size: 100% 100%;
  24362. display: flex;
  24363. align-items: center;
  24364. justify-content: center;
  24365. flex-direction: column;
  24366. color: #fff;
  24367. }
  24368. .g_d_group_table > div:nth-child(1) {
  24369. font-size: 24px;
  24370. margin-bottom: 5px;
  24371. }
  24372. .g_d_group_table > div:nth-child(2) div {
  24373. cursor: pointer;
  24374. background: #2e77bf;
  24375. padding: 4px 10px;
  24376. border-radius: 5px;
  24377. }
  24378. .groupBox {
  24379. }
  24380. .groupContent + .groupContent {
  24381. margin-top: 30px;
  24382. }
  24383. .groupTitle {
  24384. font-size: 24px;
  24385. color: rgb(80, 80, 80);
  24386. margin-bottom: 20px;
  24387. }
  24388. .groupName {
  24389. display: flex;
  24390. align-items: center;
  24391. }
  24392. .groupn {
  24393. font-size: 15px;
  24394. margin-right: 10px;
  24395. }
  24396. .groupName + .groupName {
  24397. margin-top: 15px;
  24398. }
  24399. .groupBtn {
  24400. margin-left: 10px;
  24401. }
  24402. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24403. text-align: left;
  24404. }
  24405. .g_d_btnBox {
  24406. display: flex;
  24407. justify-content: flex-end;
  24408. align-items: center;
  24409. margin-bottom: 20px;
  24410. }
  24411. .updateChair {
  24412. position: relative;
  24413. }
  24414. .updateChairBtn {
  24415. position: absolute;
  24416. width: 50px;
  24417. height: 50px;
  24418. overflow: hidden;
  24419. /* display: flex; */
  24420. align-items: center;
  24421. justify-content: center;
  24422. background: #00000087;
  24423. color: #fff;
  24424. border-radius: 50px;
  24425. display: none;
  24426. cursor: pointer;
  24427. }
  24428. .updateChair:hover .updateChairBtn {
  24429. display: flex;
  24430. }
  24431. .group_staic_box {
  24432. display: flex;
  24433. padding: 30px 40px 10px;
  24434. flex-wrap: wrap;
  24435. }
  24436. .group_staic {
  24437. /* width: 50%; */
  24438. margin-bottom: 20px;
  24439. display: flex;
  24440. align-items: center;
  24441. }
  24442. .group_staic span:nth-child(1) {
  24443. width: 150px;
  24444. text-align: right;
  24445. margin-right: 15px;
  24446. }
  24447. .group_staic span:nth-child(2) {
  24448. background: rgb(0 123 255);
  24449. color: #fff;
  24450. border-radius: 5px;
  24451. padding: 5px;
  24452. }
  24453. .codeFileBox {
  24454. height: 300px;
  24455. background: #fff;
  24456. display: flex;
  24457. align-items: center;
  24458. justify-content: center;
  24459. }
  24460. .codeFileBox img {
  24461. width: 200px;
  24462. margin: 0;
  24463. height: auto;
  24464. }
  24465. .codeFileBox div {
  24466. background: rgb(80, 142, 226);
  24467. color: #fff;
  24468. padding: 10px 20px;
  24469. border-radius: 25px;
  24470. cursor: pointer;
  24471. margin-left: 15px;
  24472. }
  24473. .radioBox {
  24474. display: flex;
  24475. flex-direction: column;
  24476. flex-wrap: nowrap;
  24477. align-items: flex-start;
  24478. }
  24479. .radioBox > div {
  24480. margin: 10px 0 0 10px;
  24481. }
  24482. /* .radioBox >>> .el-radio__input,
  24483. .radioBox >>> .el-checkbox__inner {
  24484. margin-left: 10px;
  24485. } */
  24486. .radioBox >>> .el-radio__label,
  24487. .radioBox >>> .el-checkbox__label {
  24488. display: flex;
  24489. align-items: center;
  24490. width: 100%;
  24491. }
  24492. .radioBox >>> .el-radio__label > span {
  24493. width: 100%;
  24494. display: -webkit-box;
  24495. overflow: hidden;
  24496. white-space: normal !important;
  24497. text-overflow: ellipsis;
  24498. word-wrap: break-word;
  24499. }
  24500. .inImg {
  24501. width: 100px;
  24502. cursor: pointer;
  24503. }
  24504. .inImg > img {
  24505. width: 100%;
  24506. height: 100%;
  24507. object-fit: cover;
  24508. }
  24509. .timuImgBox {
  24510. margin: 10px 0;
  24511. display: flex;
  24512. flex-direction: column;
  24513. flex-wrap: wrap;
  24514. align-items: flex-start;
  24515. }
  24516. .timuImg {
  24517. width: 150px;
  24518. margin: 5px 0;
  24519. cursor: pointer;
  24520. }
  24521. .timuImg > img {
  24522. width: 100%;
  24523. height: 100%;
  24524. object-fit: cover;
  24525. }
  24526. .worksTop {
  24527. display: flex;
  24528. flex-direction: row;
  24529. align-items: flex-end;
  24530. }
  24531. .worksTitle {
  24532. display: flex;
  24533. flex-direction: row;
  24534. flex-wrap: nowrap;
  24535. align-items: center;
  24536. }
  24537. .worksTitle::before,
  24538. .worksTop::before {
  24539. content: "";
  24540. display: block;
  24541. width: 3px;
  24542. height: 20px;
  24543. background: #0061ff;
  24544. border-radius: 3px;
  24545. margin: 0 5px 0 0;
  24546. }
  24547. .corOpen {
  24548. margin: 0 0 0 10px;
  24549. font-size: 14px;
  24550. cursor: pointer;
  24551. color: #505050;
  24552. }
  24553. .corOpen:hover {
  24554. color: #499eef;
  24555. }
  24556. .navCorOpenBox {
  24557. display: flex;
  24558. flex-direction: row;
  24559. align-items: center;
  24560. justify-content: space-between;
  24561. height: 55px;
  24562. background: #ffffff;
  24563. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24564. border-radius: 8px 8px 0px 0px;
  24565. z-index: 9;
  24566. position: relative;
  24567. }
  24568. .navCorOpen {
  24569. padding-right: 15px;
  24570. cursor: pointer;
  24571. width: 45px;
  24572. display: flex;
  24573. }
  24574. .navCorOpen > img {
  24575. width: 100%;
  24576. height: 100%;
  24577. }
  24578. .mlImg {
  24579. width: 40px !important;
  24580. min-width: 40px;
  24581. cursor: pointer;
  24582. transform: rotate(180deg);
  24583. }
  24584. .mlImg > img {
  24585. width: 100%;
  24586. height: 100%;
  24587. }
  24588. .navLeftCss {
  24589. width: 100% !important;
  24590. left: 0 !important;
  24591. }
  24592. .isContentCss {
  24593. width: 100% !important;
  24594. }
  24595. .isAllWidth {
  24596. width: 100% !important;
  24597. }
  24598. .group_switch {
  24599. margin-right: 10px;
  24600. height: 30px;
  24601. display: flex;
  24602. align-items: center;
  24603. }
  24604. .group_switch > span {
  24605. margin-right: 5px;
  24606. }
  24607. .fileC_box {
  24608. padding-top: 15px;
  24609. }
  24610. .fileC_box > .fileC_title {
  24611. padding: 10px 5px 14px 10px;
  24612. border-top: 1px solid #cad1dc;
  24613. font-size: 14px;
  24614. font-weight: 400;
  24615. color: #cad1dc;
  24616. width: calc(100% - 20px);
  24617. margin: 0 auto;
  24618. box-sizing: border-box;
  24619. }
  24620. .pl_select_box {
  24621. height: 40px;
  24622. line-height: 40px;
  24623. width: 100%;
  24624. cursor: pointer;
  24625. padding: 0 20px;
  24626. box-sizing: border-box;
  24627. border-radius: 5px;
  24628. border: 1px solid #d6d6d6;
  24629. white-space: nowrap;
  24630. overflow: hidden;
  24631. text-overflow: ellipsis;
  24632. background: #fff;
  24633. text-align: left;
  24634. }
  24635. .newButton {
  24636. width: 102px;
  24637. height: 36px;
  24638. background: #e7ebf1;
  24639. border-radius: 4px;
  24640. color: #0e1e33;
  24641. font-weight: 400;
  24642. font-size: 14px;
  24643. border: none;
  24644. float: right;
  24645. margin-left: 10px;
  24646. }
  24647. .el-table >>> .even_row {
  24648. background-color: #f0f4fa;
  24649. }
  24650. .stageBoxCss,
  24651. .stageBoxIsCss {
  24652. display: flex;
  24653. flex-direction: row;
  24654. flex-wrap: nowrap;
  24655. align-items: center;
  24656. height: 50px;
  24657. border-bottom: 1px solid #e2f5fc;
  24658. cursor: pointer;
  24659. width: 100%;
  24660. }
  24661. .stageBoxIsCss {
  24662. background: #0061ff;
  24663. color: #fff;
  24664. border-radius: 8px;
  24665. }
  24666. .closeTri,
  24667. .closeTri1 {
  24668. min-width: 15px;
  24669. width: 15px;
  24670. height: 15px;
  24671. }
  24672. .closeTri1 {
  24673. padding-left: 10px;
  24674. cursor: pointer;
  24675. }
  24676. .closeTri > img,
  24677. .closeTri1 > img {
  24678. width: 100%;
  24679. height: 100%;
  24680. /* transition: all .5s; */
  24681. }
  24682. .noToolBlue {
  24683. min-width: 10px;
  24684. width: 10px;
  24685. height: 10px;
  24686. background: #0061ff;
  24687. border-radius: 50%;
  24688. margin-left: 13px;
  24689. }
  24690. .stageChild,
  24691. .toolChild {
  24692. height: 0;
  24693. overflow: hidden;
  24694. transition: all 0.5s;
  24695. }
  24696. .toolChild {
  24697. /* margin: 0 0 0 17px;
  24698. padding: 0 0 0 20px;
  24699. border-left: 1px solid #d7d7d7; */
  24700. }
  24701. .toolChild > div + div{
  24702. margin-top:5px;
  24703. }
  24704. .gjCss {
  24705. display: flex;
  24706. flex-direction: row;
  24707. flex-wrap: nowrap;
  24708. align-items: center;
  24709. padding: 10px 0 10px 40px;
  24710. box-sizing: border-box;
  24711. font-size: 14px;
  24712. cursor: pointer;
  24713. border-radius:5px;
  24714. }
  24715. .toolChild > div {
  24716. position: relative;
  24717. width: 100%;
  24718. }
  24719. .toolChild > div::before {
  24720. /* content: "";
  24721. width: 15px;
  24722. height: 1px;
  24723. background: #cad1dc;
  24724. position: absolute;
  24725. top: 24px;
  24726. left: -20px;
  24727. display: block; */
  24728. }
  24729. .isGjCss {
  24730. /* color: #0061ff; */
  24731. color:#fff;
  24732. background: rgb(55, 129, 252);
  24733. /* background-color: #e0eafb !important;
  24734. color: #0061ff !important; */
  24735. }
  24736. .navItem {
  24737. background: #ffffff;
  24738. border-radius: 4px;
  24739. width: 100%;
  24740. margin: 10px auto;
  24741. position: relative;
  24742. height: 40px;
  24743. display: flex;
  24744. flex-direction: row;
  24745. flex-wrap: nowrap;
  24746. align-items: center;
  24747. }
  24748. .navItemList {
  24749. display: flex;
  24750. flex-direction: row;
  24751. flex-wrap: nowrap;
  24752. align-items: center;
  24753. padding: 0 13px;
  24754. cursor: pointer;
  24755. width: calc(100% - 60px);
  24756. height: 100%;
  24757. }
  24758. .navItemList > div:first-child {
  24759. min-width: 60px;
  24760. }
  24761. .navItemList > div:last-child {
  24762. width: calc(100% - 80px);
  24763. white-space: nowrap;
  24764. overflow: hidden;
  24765. text-overflow: ellipsis;
  24766. word-break: break-word;
  24767. }
  24768. /* .isItemList > div {
  24769. color: #fff !important;
  24770. } */
  24771. .tool_work_box {
  24772. width: 100%;
  24773. padding: 0 37px 0;
  24774. box-sizing: border-box;
  24775. }
  24776. .tool_box {
  24777. width: 100%;
  24778. padding: 0 0 0 20px;
  24779. }
  24780. .tool_type_box {
  24781. display: flex;
  24782. flex-direction: row;
  24783. align-items: baseline;
  24784. flex-wrap: nowrap;
  24785. justify-content: flex-start;
  24786. position: relative;
  24787. }
  24788. .toolSort {
  24789. display: flex;
  24790. flex-direction: row;
  24791. flex-wrap: wrap;
  24792. justify-content: flex-start;
  24793. align-items: flex-start;
  24794. padding: 0 0 15px 0;
  24795. }
  24796. .toolSort > div {
  24797. margin: 0 10px 0 0;
  24798. width: 135px;
  24799. box-sizing: border-box;
  24800. border: 2px solid transparent;
  24801. }
  24802. .tools {
  24803. width: 100%;
  24804. display: flex;
  24805. flex-direction: column;
  24806. flex-wrap: nowrap;
  24807. align-items: flex-start;
  24808. }
  24809. .whiteBIcon {
  24810. width: fit-content;
  24811. cursor: pointer;
  24812. display: flex;
  24813. flex-direction: column;
  24814. flex-wrap: nowrap;
  24815. align-items: center;
  24816. font-size: 14px;
  24817. }
  24818. .tool:hover {
  24819. border: 2px solid #a5c7ff;
  24820. border-radius: 5px;
  24821. }
  24822. .whiteBIcon > img {
  24823. width: 65px;
  24824. height: 100%;
  24825. }
  24826. .whiteBIcon > img {
  24827. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  24828. border-radius: 15px;
  24829. }
  24830. .check {
  24831. /* width: 20px;
  24832. height: 20px; */
  24833. cursor: pointer;
  24834. margin: 10px 0;
  24835. position: absolute;
  24836. right: 2px;
  24837. top: -5px;
  24838. }
  24839. .noChoose,
  24840. .isChoose {
  24841. width: 15px;
  24842. height: 15px;
  24843. border-radius: 50%;
  24844. border: 1px solid #adadad;
  24845. }
  24846. .isChoose {
  24847. border: 4px solid #0363ff !important;
  24848. width: 10px;
  24849. height: 10px;
  24850. }
  24851. .isToolChoose {
  24852. border: 2px solid #5394ff !important;
  24853. border-radius: 5px;
  24854. box-shadow: 0 0 6px 0px #5394ff;
  24855. }
  24856. .checkDiv {
  24857. display: flex;
  24858. align-items: center;
  24859. }
  24860. .checkDiv span {
  24861. margin-left: 5px;
  24862. color: #858585;
  24863. }
  24864. .check img {
  24865. width: 20px;
  24866. height: 20px;
  24867. }
  24868. .lockTaskIcon {
  24869. width: 20px;
  24870. height: 20px;
  24871. position: absolute;
  24872. right: 10px;
  24873. top: 10px;
  24874. }
  24875. .lockTaskIcon > img {
  24876. width: 100%;
  24877. height: 100%;
  24878. }
  24879. .pick_box {
  24880. display: flex;
  24881. align-items: flex-start;
  24882. flex-wrap: wrap;
  24883. }
  24884. .selectBox {
  24885. width: 110px;
  24886. margin-left: 10px;
  24887. margin: 0 10px 0 auto;
  24888. }
  24889. .selectBox >>> .el-input__inner {
  24890. height: 30px;
  24891. line-height: 30px;
  24892. }
  24893. .selectBox >>> .el-input__icon {
  24894. line-height: 30px;
  24895. }
  24896. .sentenceTitle {
  24897. display: flex;
  24898. flex-direction: row;
  24899. flex-wrap: nowrap;
  24900. align-items: center;
  24901. }
  24902. .sentenceTitle::before {
  24903. content: attr(index);
  24904. background: #3681fc;
  24905. border-radius: 50%;
  24906. color: #fff;
  24907. width: 25px;
  24908. height: 25px;
  24909. min-width: 25px;
  24910. min-height: 25px;
  24911. text-align: center;
  24912. line-height: 25px;
  24913. margin-right: 5px;
  24914. }
  24915. .hfBox {
  24916. padding: 10px;
  24917. box-sizing: border-box;
  24918. }
  24919. .whoReplyWho {
  24920. display: flex;
  24921. flex-direction: row;
  24922. flex-wrap: nowrap;
  24923. align-items: baseline;
  24924. justify-content: flex-start;
  24925. }
  24926. .hfBottom {
  24927. display: flex;
  24928. flex-direction: row;
  24929. flex-wrap: nowrap;
  24930. align-items: center;
  24931. justify-content: space-between;
  24932. font-size: 14px;
  24933. }
  24934. .deleteHfItem {
  24935. cursor: pointer;
  24936. width: 20px;
  24937. height: 20px;
  24938. }
  24939. .deleteHfItem > img {
  24940. width: 100%;
  24941. height: 100%;
  24942. }
  24943. .whoReplyWho > .hfImg {
  24944. width: 12px;
  24945. height: 12px;
  24946. margin: 0 5px;
  24947. }
  24948. .whoReplyWho > .hfImg > img {
  24949. width: 100%;
  24950. height: 100%;
  24951. }
  24952. .hfContent {
  24953. padding-top: 10px;
  24954. box-sizing: border-box;
  24955. display: -webkit-box;
  24956. overflow: hidden;
  24957. white-space: normal !important;
  24958. text-overflow: ellipsis;
  24959. word-wrap: break-word;
  24960. -webkit-box-orient: vertical;
  24961. }
  24962. .hfTime {
  24963. text-align: left;
  24964. box-sizing: border-box;
  24965. padding: 10px 0 10px 0px;
  24966. color: #bfbfbf;
  24967. font-size: 14px;
  24968. }
  24969. .btnAllNT {
  24970. position: fixed;
  24971. bottom: 100px;
  24972. right: 40px;
  24973. z-index: 999;
  24974. display: flex;
  24975. flex-direction: row;
  24976. }
  24977. .btnAllNT > img {
  24978. cursor: pointer;
  24979. width: 80px;
  24980. }
  24981. .toolMask {
  24982. position: fixed;
  24983. width: 100%;
  24984. height: 100%;
  24985. background: #3f3c3c;
  24986. opacity: 0.5;
  24987. top: 0;
  24988. left: 0;
  24989. z-index: 999;
  24990. }
  24991. .addToolCss {
  24992. position: fixed;
  24993. z-index: 999;
  24994. background: #fff;
  24995. right: 5%;
  24996. bottom: 18%;
  24997. min-width: 1035px;
  24998. min-height: 300px;
  24999. border-radius: 10px;
  25000. box-shadow: 0 0 8px 1px #b2b2b2;
  25001. }
  25002. .toolTop {
  25003. display: flex;
  25004. flex-direction: row;
  25005. flex-wrap: nowrap;
  25006. justify-content: space-between;
  25007. align-items: center;
  25008. padding: 20px;
  25009. }
  25010. .toolTop > div:nth-child(2) {
  25011. width: 15px;
  25012. height: 15px;
  25013. padding-right: 10px;
  25014. cursor: pointer;
  25015. }
  25016. .toolTop > div:nth-child(2) > img {
  25017. width: 100%;
  25018. height: 100%;
  25019. }
  25020. .fullStyle>>>.el-dialog__body {
  25021. height: calc(100% - 125px) !important;
  25022. box-sizing: border-box;
  25023. padding: 30px 0 !important;
  25024. background: #fff !important;
  25025. }
  25026. .fullStyle>>>.el-dialog {
  25027. width: 100% !important;
  25028. max-width: 100% !important;
  25029. height: 100% !important;
  25030. margin: 0 !important;
  25031. }
  25032. .fullStyle {
  25033. width: 100% !important;
  25034. max-width: 100% !important;
  25035. height: 100% !important;
  25036. margin: 0 auto !important;
  25037. }
  25038. .fullStyle>>>.el-dialog__footer{
  25039. background: #fff !important;
  25040. }
  25041. .engUpBox {
  25042. width: 100%;
  25043. height: 100%;
  25044. }
  25045. .engTitle,
  25046. .engText {
  25047. display: flex;
  25048. flex-direction: row;
  25049. flex-wrap: nowrap;
  25050. align-items: flex-start;
  25051. padding: 0 20px 20px 20px;
  25052. box-sizing: border-box;
  25053. }
  25054. .engTitle > .div:first-child,
  25055. .engText > div:first-child {
  25056. min-width: 75px;
  25057. }
  25058. .correctBox{
  25059. width: 100%;
  25060. display: flex;
  25061. flex-direction: row;
  25062. flex-wrap: nowrap;
  25063. align-items: flex-start;
  25064. }
  25065. .oldBox{
  25066. width: 50%;
  25067. height: 100%;
  25068. display: flex;
  25069. flex-direction: column;
  25070. flex-wrap: nowrap;
  25071. align-items: center;
  25072. border-top: 1px solid #d9d9d9;
  25073. border-left: 1px solid #d9d9d9;
  25074. border-right: 1px solid #d9d9d9;
  25075. }
  25076. .oldBox>div:first-child{
  25077. width: 100%;
  25078. text-align: center;
  25079. background: #d9d9d9;
  25080. height: 35px;
  25081. line-height: 35px;
  25082. font-weight: bold;
  25083. }
  25084. .oldText{
  25085. width: 100%;
  25086. height: calc(100% - 35px);
  25087. overflow: auto;
  25088. margin: 10px 0;
  25089. display: flex;
  25090. flex-direction: column;
  25091. flex-wrap: nowrap;
  25092. align-content: center;
  25093. align-items: center;
  25094. }
  25095. .detailBox{
  25096. width: 50%;
  25097. padding: 10px;
  25098. background: #f6f6f6;
  25099. border-radius: 5px;
  25100. }
  25101. .oldDetail,.oldDetail1{
  25102. padding-bottom: 30px;
  25103. }
  25104. .oldImg{
  25105. width:30px;
  25106. height: 30px;
  25107. }
  25108. .oldImg>img{
  25109. width: 100%;
  25110. height: 100%;
  25111. }
  25112. .allName{
  25113. min-width: 200px;
  25114. white-space: nowrap;
  25115. overflow: hidden;
  25116. text-overflow: ellipsis;
  25117. word-break: break-word;
  25118. cursor: pointer;
  25119. text-align: center;
  25120. border: 1px solid #bcc2cc;
  25121. box-sizing: border-box;
  25122. }
  25123. .engUpTop{
  25124. max-height: 300px;
  25125. overflow: auto;
  25126. }
  25127. .isUpdateToolDetailClass{
  25128. padding: 0 !important;
  25129. }
  25130. .isUpdateToolDetailClass textarea{
  25131. padding:12px;
  25132. font-size: 16px;
  25133. min-height:100%;
  25134. width: 100%;
  25135. box-sizing:border-box;
  25136. outline: none;
  25137. border:none;
  25138. line-height: 30px;
  25139. resize: none;
  25140. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25141. color: #838383;
  25142. }
  25143. .show_taskD {
  25144. min-width: fit-content;
  25145. margin-left: 10px;
  25146. display: flex;
  25147. align-items: center;
  25148. font-size: 14px;
  25149. cursor: pointer;
  25150. color: #717c8d;
  25151. }
  25152. .show_taskD > img {
  25153. width: 15px;
  25154. margin-right: 5px;
  25155. transition: 0.2s all;
  25156. transform: rotate(-90deg);
  25157. }
  25158. .show_taskD.show > img {
  25159. transform: rotate(0deg);
  25160. }
  25161. .dialog_diyCopy >>> .el-dialog__header {
  25162. display: none !important;
  25163. }
  25164. .dialog_diyCopy >>> .el-dialog__body {
  25165. padding: 0 !important;
  25166. height: 100% !important;
  25167. }
  25168. .confirmOpenDigCss > div{
  25169. font-size: 14px;
  25170. color: rgba(0, 0, 0, 0.6);
  25171. }
  25172. .confirmOpenDigCss >>> .el-dialog{
  25173. border-radius: 6px;
  25174. }
  25175. .confirmOpenDigCss >>> .el-dialog__body{
  25176. padding: 25px !important;
  25177. }
  25178. .confirmOpenDigCss > span{
  25179. font-size: 16px;
  25180. font-weight: 600;
  25181. color: rgba(0, 0, 0, 0.8);
  25182. }
  25183. .correctCss{
  25184. position: absolute;
  25185. bottom: -70px;
  25186. background: #409eff;
  25187. color: #fff;
  25188. }
  25189. div::-webkit-scrollbar {
  25190. width: 10px;
  25191. height: 6px;
  25192. }
  25193. .Ovh{
  25194. margin: 5px 0;
  25195. width: 4em;
  25196. -webkit-line-clamp: 2;
  25197. display: -webkit-box;
  25198. -webkit-box-orient: vertical;
  25199. overflow: hidden;
  25200. text-overflow: ellipsis;
  25201. }
  25202. </style>