studyStudent.vue 835 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <!-- <div class="btnAllNT">
  14. <img
  15. v-if="
  16. courseDetail.userid == userid ||
  17. (courseDetail.course_teacher &&
  18. courseDetail.course_teacher.indexOf(userid) != -1)
  19. "
  20. src="../../assets/icon/learn/addTool.png"
  21. @click="openToolAll"
  22. style="position: relative"
  23. />
  24. <img
  25. src="../../assets/icon/learn/last.png"
  26. @click="nextOrpreSteps(0)"
  27. />
  28. <img
  29. src="../../assets/icon/learn/next.png"
  30. @click="nextOrpreSteps(1)"
  31. />
  32. <img
  33. src="../../assets/icon/learn/return.png"
  34. @click.stop="
  35. goTo(
  36. '/courseDetail?userid=' +
  37. userid +
  38. '&oid=' +
  39. oid +
  40. '&org=' +
  41. org +
  42. '&cid=' +
  43. classId +
  44. '&courseId=' +
  45. id +
  46. '&tType=' +
  47. tType +
  48. '&screenType=' +
  49. screenType
  50. )
  51. "
  52. />
  53. </div> -->
  54. <div
  55. class="pButton"
  56. style="left: 0; top: 140px"
  57. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  58. @click="setContent2(true)"
  59. >
  60. <!-- 批 , getCourseDetail()-->
  61. <img
  62. src="../../assets/icon/newIcons/isRight.png"
  63. style="width: 45px"
  64. alt=""
  65. />
  66. </div>
  67. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  68. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  69. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  70. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  71. <div
  72. style="
  73. max-width: calc(100% - 40px);
  74. width: auto;
  75. white-space: nowrap;
  76. overflow: hidden;
  77. text-overflow: ellipsis;
  78. word-break: break-word;
  79. display: block;
  80. "
  81. >
  82. <el-tooltip
  83. effect="light"
  84. :content="courseDetail.title"
  85. placement="top"
  86. >
  87. <div class="ctitle">
  88. {{ courseDetail.title }}
  89. </div>
  90. </el-tooltip>
  91. </div>
  92. <el-tooltip effect="light" content="收缩" placement="top">
  93. <div class="mlImg" @click="setContent2(false)">
  94. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  95. </div>
  96. </el-tooltip>
  97. </div>
  98. <div
  99. class="inviteBox"
  100. v-if="tcid && inviteCode"
  101. style="padding: 0 0 8px 0"
  102. >
  103. <div>
  104. <span>随机码:{{ inviteCode }}</span>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="cru_selectBox">
  109. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  110. <div class="stageChild" :class="{ navActive: item.isOpen }">
  111. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  112. <div
  113. class="navItem"
  114. :class="{
  115. openTaskActive:
  116. navIndex == taskCount &&
  117. nav.id == navId &&
  118. stageIndex == courseType,
  119. }"
  120. >
  121. <div v-if="nav.tool[0].tool != undefined">
  122. <div
  123. class="closeTri1"
  124. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  125. @click="openTask(stageIndex, navIndex, nav.id)"
  126. >
  127. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  128. </div>
  129. <div
  130. class="closeTri1"
  131. v-else
  132. @click="openTask(stageIndex, navIndex, nav.id)"
  133. >
  134. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  135. </div>
  136. </div>
  137. <div v-else class="noToolBlue"></div>
  138. <div
  139. @click="openTask(stageIndex, navIndex, nav.id)"
  140. class="navItemList"
  141. :class="{
  142. isItemList:
  143. navIndex == taskCount &&
  144. nav.id == navId &&
  145. stageIndex == courseType,
  146. }"
  147. >
  148. <div>任务{{ navIndex + 1 }}:</div>
  149. <el-tooltip
  150. effect="light"
  151. :content="nav.taskName"
  152. placement="top"
  153. >
  154. <div
  155. :style="{
  156. width:
  157. IsLookOpen && !nav.isLook
  158. ? 'calc(100% - 75px)'
  159. : 'auto',
  160. }"
  161. >
  162. {{ nav.taskName }}
  163. </div>
  164. </el-tooltip>
  165. </div>
  166. </div>
  167. <div
  168. v-if="nav.tool[0].tool != undefined"
  169. class="toolChild"
  170. :class="{ toolActive: nav.isOpen }"
  171. >
  172. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  173. <div
  174. class="gjCss"
  175. :class="{
  176. isGjCss: t.isTool,
  177. }"
  178. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  179. >
  180. <div>工具{{ toolIndex2 + 1 }}:</div>
  181. <div v-if="t.tool == 58">模拟驾驶</div>
  182. <div v-if="t.tool == 59">路径搜索</div>
  183. <div v-if="t.tool == 60">深度学习</div>
  184. <div v-if="t.tool == 10">倒计时</div>
  185. <div v-if="t.tool == 65">挑人</div>
  186. <div v-if="t.tool == 7">思维网格</div>
  187. <div v-if="t.tool == 1">电子白板</div>
  188. <div v-if="t.tool == 52">文档</div>
  189. <div v-if="t.tool == 3">思维导图</div>
  190. <div v-if="t.tool == 48">表格</div>
  191. <div v-if="t.tool == 49">学生分组</div>
  192. <div v-if="t.tool == 4">问卷调查</div>
  193. <div v-if="t.tool == 45">选择题</div>
  194. <div v-if="t.tool == 15">问答</div>
  195. <div v-if="t.tool == 16">作业提交</div>
  196. <div v-if="t.tool == 50">批量上传</div>
  197. <div v-if="t.tool == 41">选择匹配</div>
  198. <div v-if="t.tool == 47">排序</div>
  199. <div v-if="t.tool == 40">个人评价</div>
  200. <div v-if="t.tool == 18">训练平台</div>
  201. <div v-if="t.tool == 21">AIoT Blockly</div>
  202. <div v-if="t.tool == 23">AI Python</div>
  203. <div v-if="t.tool == 24">AI Blockly</div>
  204. <div v-if="t.tool == 32">源码编辑</div>
  205. <div v-if="t.tool == 57">CocoPi</div>
  206. <div v-if="t.tool == 63">海龟编程</div>
  207. <div v-if="t.tool == 28">翻译</div>
  208. <div v-if="t.tool == 31">数字画板</div>
  209. <div v-if="t.tool == 39">GeoGebra</div>
  210. <div v-if="t.tool == 66">公式编辑</div>
  211. <div v-if="t.tool == 67">分子结构</div>
  212. <div v-if="t.tool == 68">时间轴</div>
  213. <div v-if="t.tool == 69">英语写作</div>
  214. <div v-if="t.tool == 70">英语口语</div>
  215. <div v-if="t.tool == 25">目标管理</div>
  216. <div v-if="t.tool == 26">课程设计</div>
  217. <div v-if="t.tool == 62">交互视频</div>
  218. <div v-if="t.tool == 71">AI智能体</div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. <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' }">
  228. <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>
  229. <div class="new_top" :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' }">
  230. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) && !['2'].includes(tType) ? '100%' : 'calc(100% - 745px)'}">
  231. <div>任务{{ taskCount + 1 }}</div>
  232. <el-tooltip
  233. effect="light"
  234. :content="
  235. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  236. "
  237. placement="top"
  238. >
  239. <div>
  240. {{
  241. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  242. .task
  243. }}
  244. </div>
  245. </el-tooltip>
  246. </div>
  247. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  248. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid) || ['2'].includes(tType)">
  249. <div class="btnLeft">
  250. <el-tooltip effect="light" content="刷新" placement="top">
  251. <div class="reBtnIcon" @click="refreshCourse">
  252. <span>刷新</span>
  253. </div>
  254. </el-tooltip>
  255. <el-tooltip effect="light" content="评论" placement="top">
  256. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  257. <span>评论</span>
  258. </div>
  259. </el-tooltip>
  260. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  261. <el-tooltip effect="light" content="录制" placement="top">
  262. <div class="vedioIcon" @click="startRecording">
  263. <span>录制</span>
  264. </div>
  265. </el-tooltip>
  266. </div>
  267. <div v-else-if="tType == 1 || tType == 4">
  268. <el-tooltip effect="light" content="下载" placement="top">
  269. <div class="vedioIcon1" @click="stopRecording">
  270. <span>下载</span>
  271. </div>
  272. </el-tooltip>
  273. </div>
  274. </div>
  275. <div class="btnRight">
  276. <div
  277. class="last"
  278. @click="nextOrpreSteps(0)"
  279. v-if="!(IsFollow && tType == 2)"
  280. @mouseover="isHovered = true"
  281. @mouseout="isHovered = false"
  282. >
  283. <div class="lastImg">
  284. <img
  285. :src="
  286. isHovered
  287. ? require('../../assets/icon/newIcons/whiteLast.png')
  288. : require('../../assets/icon/newIcons/last.png')
  289. "
  290. alt=""
  291. />
  292. </div>
  293. <div class="lastText">上一步</div>
  294. </div>
  295. <div
  296. class="last"
  297. @click="nextOrpreSteps(1)"
  298. v-if="!(IsFollow && tType == 2)"
  299. @mouseover="isHovered1 = true"
  300. @mouseout="isHovered1 = false"
  301. >
  302. <div class="lastText">下一步</div>
  303. <div class="lastImg">
  304. <img
  305. :src="
  306. isHovered1
  307. ? require('../../assets/icon/newIcons/whiteNext.png')
  308. : require('../../assets/icon/newIcons/next.png')
  309. "
  310. alt=""
  311. />
  312. </div>
  313. </div>
  314. <div
  315. class="last"
  316. @click="juriVisible = true"
  317. v-if="tType == 1"
  318. @mouseover="isHovered2 = true"
  319. @mouseout="isHovered2 = false"
  320. >
  321. <div class="lastImg">
  322. <img
  323. :src="
  324. isHovered2
  325. ? require('../../assets/icon/newIcons/whiteLock.png')
  326. : require('../../assets/icon/newIcons/lock.png')
  327. "
  328. alt=""
  329. />
  330. </div>
  331. <div class="lastText">权限</div>
  332. </div>
  333. <div
  334. class="returnBtn1 returnIcon"
  335. @click.stop="
  336. goTo(
  337. '/courseDetail?userid=' +
  338. userid +
  339. '&oid=' +
  340. oid +
  341. '&org=' +
  342. org +
  343. '&cid=' +
  344. classId +
  345. '&courseId=' +
  346. id +
  347. '&tType=' +
  348. tType +
  349. '&screenType=' +
  350. screenType
  351. )
  352. "
  353. >
  354. <div class="lastImg">
  355. <img src="../../assets/icon/newIcon/return.png" alt="" />
  356. </div>
  357. <div class="lastText" style="color: #000">返回</div>
  358. </div>
  359. </div>
  360. <!-- <div
  361. class="returnBtn lockIcon"
  362. @click="juriVisible = true"
  363. v-if="tType == 1"
  364. >
  365. 权限
  366. </div>
  367. <div
  368. class="returnBtn vedioIcon"
  369. @click="startRecording"
  370. v-if="!videoStart && (tType == 1 || tType == 4)"
  371. >
  372. 录制
  373. </div>
  374. <div
  375. class="returnBtn"
  376. @click="stopRecording"
  377. v-else-if="tType == 1 || tType == 4"
  378. style="background: #ee5255"
  379. >
  380. 下载
  381. </div>
  382. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  383. 评论
  384. </div>
  385. <div
  386. class="returnBtn"
  387. @click="nextOrpreSteps(0)"
  388. v-if="!(IsFollow && tType == 2)"
  389. >
  390. 上一步
  391. </div>
  392. <div
  393. class="returnBtn"
  394. @click="nextOrpreSteps(1)"
  395. v-if="!(IsFollow && tType == 2)"
  396. >
  397. 下一步
  398. </div>
  399. <div class="returnBtn" @click="refreshCourse">刷新</div>
  400. <div
  401. class="returnBtn returnIcon"
  402. @click.stop="
  403. goTo(
  404. '/courseDetail?userid=' +
  405. userid +
  406. '&oid=' +
  407. oid +
  408. '&org=' +
  409. org +
  410. '&cid=' +
  411. classId +
  412. '&courseId=' +
  413. id +
  414. '&tType=' +
  415. tType +
  416. '&screenType=' +
  417. screenType
  418. )
  419. "
  420. >
  421. 返回
  422. </div> -->
  423. </div>
  424. </div>
  425. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  426. .taskDetail3 && -->
  427. <div
  428. class="isNoMessage"
  429. v-if="
  430. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  431. .chapterData.length == 0 &&
  432. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  433. .toolChoose[0].tool.length == 0 &&
  434. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  435. .taskDetail == '' &&
  436. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  437. .eList &&
  438. !(
  439. courseDetail.userid == userid ||
  440. (courseDetail.course_teacher &&
  441. courseDetail.course_teacher.indexOf(userid) != -1)
  442. )
  443. "
  444. >
  445. <img src="../../assets/icon/isNoMessage.png" alt />
  446. </div>
  447. <div class="study_top" :class="{ pzClass: pzDialog }">
  448. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .taskDetail3 || -->
  450. <div
  451. class="vedioBox"
  452. v-if="
  453. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  454. .taskDetail != '' ||
  455. vChapterData[0].length > 0 ||
  456. fileC[0].length > 0
  457. "
  458. style="border-radius: 0 0 20px 20px"
  459. >
  460. <!-- <div
  461. class="taskBox"
  462. v-if="
  463. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  464. .taskDetail3
  465. "
  466. >
  467. <div
  468. style="
  469. display: flex;
  470. flex-wrap: nowrap;
  471. flex-direction: column;
  472. position: relative;
  473. "
  474. >
  475. <div
  476. style="
  477. padding: 15px 0;
  478. line-height: 29px;
  479. font-size: 18px;
  480. color: #0e1e33;
  481. "
  482. class="cont"
  483. v-if="
  484. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  485. .taskDetail3 != ''
  486. "
  487. v-html="
  488. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  489. .taskDetail3
  490. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  491. taskCount
  492. ].taskDetail3)
  493. : '暂无描述'
  494. "
  495. ></div>
  496. </div>
  497. </div> -->
  498. <div
  499. class="taskBox"
  500. v-if="
  501. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  502. .taskDetail != ''
  503. "
  504. >
  505. <div
  506. style="
  507. display: flex;
  508. flex-wrap: nowrap;
  509. flex-direction: column;
  510. position: relative;
  511. "
  512. >
  513. <div
  514. style="
  515. padding: 15px 0;
  516. line-height: 29px;
  517. font-size: 18px;
  518. color: #0e1e33;
  519. "
  520. class="cont"
  521. v-if="
  522. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  523. .taskDetail != ''
  524. "
  525. v-html="
  526. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  527. .taskDetail
  528. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  529. taskCount
  530. ].taskDetail
  531. : '暂无描述'
  532. "
  533. ></div>
  534. </div>
  535. </div>
  536. <div
  537. class="student_head"
  538. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  539. >
  540. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  541. <div
  542. :class="
  543. contentDialog == false
  544. ? 'box_course isContentCss'
  545. : 'box_course'
  546. "
  547. v-if="
  548. vChapterData.length > 0 &&
  549. vChapterData[0] &&
  550. showType !== ''
  551. "
  552. >
  553. <div class="wheel" style="height: auto" v-if="showType === 0">
  554. <div
  555. class="workd_media"
  556. style="height: 650px; width: calc(100% - 50px)"
  557. >
  558. <video-player
  559. class="video-player vjs-custom-skin"
  560. :class="contentDialog == false ? 'isAllWidth' : ''"
  561. :playsinline="true"
  562. :options="playerO[0]"
  563. @play="onPlayerPlay($event)"
  564. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  565. ></video-player>
  566. </div>
  567. </div>
  568. <div
  569. class="wheel"
  570. v-if="showType == 1"
  571. style="
  572. box-shadow: 0 0 6px 1px #f2f2f2;
  573. width: 95%;
  574. margin: 0 auto;
  575. background: #f1f1f1;
  576. "
  577. >
  578. <div class="title">查看文档</div>
  579. <el-form class="textBox">
  580. <el-form-item class="textTitle">
  581. <div style="font-size: 22px">
  582. {{ text.name }}
  583. </div>
  584. </el-form-item>
  585. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  586. <div v-html="text.url" class="textContent cont"></div>
  587. </el-form>
  588. </div>
  589. <div
  590. class="wheel"
  591. v-if="
  592. pptImgUrl1.indexOf(
  593. 'https://view.officeapps.live.com/op/view.aspx?src='
  594. ) != -1 && showType == 2
  595. "
  596. style="width: 95%; margin: 0 auto"
  597. >
  598. <iframe
  599. style="width: 100%; height: 100%; border: none"
  600. :src="pptImgUrl1"
  601. ></iframe>
  602. </div>
  603. <div
  604. class="wheel"
  605. v-else-if="showType == 2"
  606. style="width: 95%; margin: 0 auto"
  607. >
  608. <iframe
  609. style="width: 100%; height: 100%; border: none"
  610. security="restricted"
  611. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  612. :src="pptImgUrl1"
  613. ></iframe>
  614. </div>
  615. <div
  616. class="wheel"
  617. v-if="showType == 3"
  618. style="width: 95%; margin: 0 auto"
  619. >
  620. <pdf
  621. :pdfUrl="pptImgUrl1"
  622. style="width: 100%; height: 100%; overflow: auto"
  623. ></pdf>
  624. </div>
  625. <div
  626. class="wheel"
  627. v-if="showType == 4"
  628. style="width: 95%; margin: 0 auto"
  629. >
  630. <el-image
  631. :src="pptImgUrl1"
  632. fit="contain"
  633. style="width: 100%; height: 100%; cursor: pointer"
  634. @click="previewImg(pptImgUrl1)"
  635. ></el-image>
  636. </div>
  637. </div>
  638. <div
  639. class="pButton"
  640. style="position: absolute; right: 20px; top: 0; z-index: 998"
  641. v-if="!contentDialog"
  642. @click="setContent(true)"
  643. >
  644. <!-- 批 -->
  645. <img
  646. src="../../assets/icon/newIcons/isLeft.png"
  647. style="width: 45px"
  648. alt=""
  649. />
  650. </div>
  651. <div
  652. v-if="contentDialog == true"
  653. :style="{
  654. width:
  655. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  656. showType === ''
  657. ? 'calc(100%)'
  658. : '300px',
  659. margin:
  660. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  661. showType === ''
  662. ? '0 15px'
  663. : '0 15px 0 0',
  664. }"
  665. >
  666. <div
  667. class="vedioList"
  668. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  669. style="height: 650px"
  670. >
  671. <div class="navCorOpenBox">
  672. <div class="navTitile">内容列表:</div>
  673. <div class="navCorOpen" @click="setContent(false)">
  674. <img
  675. src="../../assets/icon/newIcons/isRight.png"
  676. alt=""
  677. />
  678. </div>
  679. </div>
  680. <div class="navBox">
  681. <div
  682. v-show="
  683. vChapterData[0].length > 0 || fileC[0].length > 0
  684. "
  685. style="padding: 10px 0 25px 0"
  686. >
  687. <div
  688. class="vedioTimeBox"
  689. v-for="(vitem, vindex) in vChapterData[0]"
  690. :key="vindex + '1'"
  691. >
  692. <div class="navListItem" v-if="vitem.type == 2">
  693. <div
  694. @click="lookVedio(vitem.url, vindex)"
  695. class="navText"
  696. :class="isClickNav == vindex ? 'isClickNav' : ''"
  697. >
  698. <span v-if="vitem.text">{{ vitem.text }}-</span
  699. >{{ vitem.name }}
  700. </div>
  701. <div class="downIcon" @click="downloadFile2(vitem)">
  702. <img
  703. src="../../assets/icon/newIcon/down.png"
  704. alt
  705. />
  706. </div>
  707. </div>
  708. <div class="navListItem" v-if="vitem.type == 6">
  709. <div
  710. @click="lookText(0, vindex)"
  711. class="navText"
  712. :class="isClickNav == vindex ? 'isClickNav' : ''"
  713. >
  714. {{ vitem.name }}.doc
  715. </div>
  716. <div
  717. class="downIcon"
  718. @click="checkFileFull1(vitem.type, vitem)"
  719. >
  720. <img
  721. src="../../assets/icon/newIcon/allScreen.png"
  722. alt
  723. />
  724. </div>
  725. </div>
  726. <div
  727. class="navListItem"
  728. v-if="vitem.type == 8 || vitem.type == 14"
  729. >
  730. <div
  731. @click="doUrl(vitem.url, vindex)"
  732. class="navText"
  733. :class="isClickNav == vindex ? 'isClickNav' : ''"
  734. >
  735. {{ vitem.title ? vitem.title : vitem.url }}
  736. </div>
  737. <div
  738. class="downIcon"
  739. @click="checkFileFull1(vitem.type, vitem)"
  740. >
  741. <img
  742. src="../../assets/icon/newIcon/allScreen.png"
  743. alt
  744. />
  745. </div>
  746. </div>
  747. <div class="navListItem" v-if="vitem.type == 3">
  748. <div
  749. @click="downFile(vitem, vindex)"
  750. class="navText"
  751. :class="isClickNav == vindex ? 'isClickNav' : ''"
  752. >
  753. <span v-if="vitem.text">{{ vitem.text }}-</span
  754. >{{ vitem.name }}
  755. </div>
  756. <div
  757. class="downIcon"
  758. @click="checkFileFull1(vitem.type, vitem)"
  759. >
  760. <img
  761. src="../../assets/icon/newIcon/allScreen.png"
  762. alt
  763. />
  764. </div>
  765. <div class="downIcon" @click="downloadFile2(vitem)">
  766. <img
  767. src="../../assets/icon/newIcon/down.png"
  768. alt
  769. />
  770. </div>
  771. </div>
  772. <div class="navListItem" v-if="vitem.type == 12">
  773. <div class="navText" @click="downloadFile2(vitem)">
  774. <span v-if="vitem.text">{{ vitem.text }}-</span
  775. >{{ vitem.name }}
  776. </div>
  777. <div
  778. class="downIcon"
  779. @click="checkFileFull1(vitem.type, vitem)"
  780. >
  781. <img
  782. src="../../assets/icon/newIcon/allScreen.png"
  783. alt
  784. />
  785. </div>
  786. <div class="downIcon" @click="downloadFile2(vitem)">
  787. <img
  788. src="../../assets/icon/newIcon/down.png"
  789. alt
  790. />
  791. </div>
  792. </div>
  793. <div class="navListItem" v-if="vitem.type == 13">
  794. <div
  795. class="navText"
  796. @click="checkPhoto(vitem, vindex)"
  797. :class="isClickNav == vindex ? 'isClickNav' : ''"
  798. >
  799. {{ vitem.name }}
  800. </div>
  801. <div class="downIcon" @click="downloadFile2(vitem)">
  802. <img
  803. src="../../assets/icon/newIcon/down.png"
  804. alt
  805. />
  806. </div>
  807. </div>
  808. </div>
  809. <div class="fileC_box" v-if="fileC[0].length > 0">
  810. <div class="fileC_title">以下文件不支持预览</div>
  811. <div
  812. class="vedioTimeBox"
  813. v-for="(vitem, vindex) in fileC[0]"
  814. :key="vindex + '1'"
  815. >
  816. <div class="navListItem" v-if="vitem.type == 12">
  817. <div class="navText" style="color: #acb4bf">
  818. <span v-if="vitem.text">{{ vitem.text }}-</span
  819. >{{ vitem.name }}
  820. </div>
  821. <div
  822. class="downIcon"
  823. @click="downloadFile2(vitem)"
  824. >
  825. <img
  826. src="../../assets/icon/newIcon/down.png"
  827. alt
  828. />
  829. </div>
  830. </div>
  831. </div>
  832. </div>
  833. </div>
  834. </div>
  835. </div>
  836. </div>
  837. </div>
  838. <div style="width: calc(100% - 315px)">
  839. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  840. <!-- <el-button
  841. type="primary"
  842. class="newButton"
  843. @click="checkFileFull(showType, pptImgUrl1)"
  844. >全屏查看</el-button
  845. >
  846. <el-button
  847. type="primary"
  848. class="newButton"
  849. @click="downloadFile(pptImgUrl1)"
  850. v-if="showType != 2"
  851. >文件下载</el-button
  852. > -->
  853. <el-button
  854. v-if="
  855. showType == 2 &&
  856. pptImgUrl1.indexOf(
  857. 'https://view.officeapps.live.com/op/view.aspx?src='
  858. ) == -1
  859. "
  860. type="primary"
  861. class="newButton"
  862. @click="openLine(pptImgUrl1)"
  863. >打开链接
  864. </el-button>
  865. </div>
  866. <!-- <div
  867. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  868. v-if="showType == 1"
  869. >
  870. <el-button
  871. type="primary"
  872. class="newButton"
  873. @click="checkFileFull(showType, text)"
  874. >全屏查看</el-button
  875. >
  876. </div> -->
  877. </div>
  878. </div>
  879. </div>
  880. <div class="student_body" v-resize="resize">
  881. <div
  882. class="vedioBox"
  883. :style="{
  884. borderRadius:
  885. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  886. .taskDetail == '' &&
  887. vChapterData[taskCount].length == 0 &&
  888. fileC[taskCount].length == 0
  889. ? '0 0 20px 20px'
  890. : '20px',
  891. }"
  892. v-if="
  893. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  894. .toolChoose[0].tool &&
  895. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  896. .toolChoose[0].tool.length > 0
  897. "
  898. >
  899. <div
  900. class="toolHeng2"
  901. style="position: relative"
  902. v-if="
  903. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  904. .toolChoose[0].tool &&
  905. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  906. .toolChoose[0].tool.length &&
  907. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  908. .toolChoose[0].tool.length > 0
  909. "
  910. >
  911. <div class="workNav">工作区</div>
  912. <div
  913. class="filebox"
  914. style="flex-wrap: nowrap"
  915. v-for="(tool, toolIndex) in chapInfoList[courseType]
  916. .chapterInfo[0].taskJson[taskCount].toolChoose"
  917. :key="toolIndex"
  918. >
  919. <div class="bzBox">
  920. <div class="yCss"></div>
  921. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  922. 工具{{ toolIndex + 1 }}
  923. </div>
  924. <div
  925. v-if="timeWorkList[toolIndex].length > 0"
  926. style="margin: 0 0 0 10px"
  927. >
  928. {{
  929. timeWorkList[toolIndex][0].time
  930. ? "时间:" + timeWorkList[toolIndex][0].time
  931. : ""
  932. }}
  933. </div>
  934. </div>
  935. <div class="toolBox">
  936. <div>
  937. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  938. :key="indexTool"-->
  939. <!-- <div class="iframeBox">
  940. <div
  941. class="addPoint isBorder"
  942. v-for="(tooC, toolCIndex) in tool.tool"
  943. :key="toolCIndex"
  944. >
  945. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  946. <div
  947. class="iframeName"
  948. >
  949. 电子白板
  950. </div>
  951. <iframe
  952. src="https://iwb.cocorobo.cn/"
  953. ref="whiteBoard"
  954. ></iframe>
  955. </div>
  956. </div>
  957. </div>-->
  958. <div class="noiframeBox">
  959. <div
  960. class="addPoint"
  961. v-for="(tooC, toolCIndex) in tool.tool"
  962. :key="toolCIndex"
  963. >
  964. <div v-if="tooC == 1">
  965. <img
  966. src="../../assets/icon/secondToolList/whiteBoard.png"
  967. alt
  968. @click="addTools(tooC, toolIndex, taskCount)"
  969. />
  970. <div style="margin: 5px 0">电子白板</div>
  971. </div>
  972. <div v-if="tooC == 3">
  973. <img
  974. src="../../assets/icon/secondToolList/mindMapping.png"
  975. alt
  976. @click="addTools(tooC, toolIndex, taskCount)"
  977. />
  978. <div style="margin: 5px 0">思维导图</div>
  979. </div>
  980. <div v-if="tooC == 6">
  981. <img
  982. src="../../assets/icon/secondToolList/doc.png"
  983. alt
  984. @click="addTools(tooC, toolIndex, taskCount)"
  985. />
  986. <div style="margin: 5px 0">协同文档</div>
  987. </div>
  988. <div v-if="tooC == 7">
  989. <img
  990. src="../../assets/icon/secondToolList/mindNetwork.png"
  991. alt
  992. @click="addTools(tooC, toolIndex, taskCount)"
  993. />
  994. <div style="margin: 5px 0">思维网格</div>
  995. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  996. style="position: absolute;right: 33px;top: -30px;">
  997. 作业详细
  998. </div>
  999. </div>
  1000. <div v-if="tooC == 8">
  1001. <img
  1002. src="../../assets/icon/secondToolList/library.png"
  1003. alt
  1004. @click="addTools(tooC, toolIndex, taskCount)"
  1005. />
  1006. <div style="margin: 5px 0">素材库</div>
  1007. </div>
  1008. <div v-if="tooC == 17">
  1009. <img
  1010. src="../../assets/icon/secondToolList/library.png"
  1011. alt
  1012. @click="addTools(tooC, toolIndex, taskCount)"
  1013. />
  1014. <div style="margin: 5px 0">学习资料</div>
  1015. </div>
  1016. <div v-if="tooC == 2">
  1017. <img
  1018. @click="addTools(tooC, toolIndex, taskCount)"
  1019. src="../../assets/icon/secondToolList/note.png"
  1020. alt
  1021. />
  1022. <div style="margin: 5px 0">便签</div>
  1023. </div>
  1024. <div v-if="tooC == 4">
  1025. <img
  1026. @click="addTools(tooC, toolIndex, taskCount)"
  1027. src="../../assets/icon/thirdToolList/ask.png"
  1028. alt
  1029. />
  1030. <div style="margin: 5px 0">问卷调查</div>
  1031. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  1032. style="position: absolute;right: 33px;top: -30px;">
  1033. 统计分析
  1034. </div>
  1035. </div>
  1036. <div v-if="tooC == 45">
  1037. <img
  1038. @click="addTools(tooC, toolIndex, taskCount)"
  1039. src="../../assets/icon/thirdToolList/choose.png"
  1040. alt
  1041. />
  1042. <div style="margin: 5px 0">选择题</div>
  1043. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,45)"
  1044. style="position: absolute;right: 33px;top: -30px;">
  1045. 作业详细
  1046. </div>
  1047. </div>
  1048. <!-- <div v-if="tooC == 5">
  1049. <img
  1050. @click="addTools(tooC, toolIndex, taskCount)"
  1051. src="../../assets/icon/thirdToolList/score.png"
  1052. alt
  1053. />
  1054. <div style="margin: 5px 0">量规评分</div>
  1055. </div> -->
  1056. <div v-if="tooC == 10">
  1057. <img
  1058. @click="addTools(tooC, toolIndex, taskCount)"
  1059. src="../../assets/icon/thirdToolList/time.png"
  1060. alt
  1061. />
  1062. <div style="margin: 5px 0">倒计时</div>
  1063. </div>
  1064. <div v-if="tooC == 15">
  1065. <img
  1066. @click="addTools(tooC, toolIndex, taskCount)"
  1067. src="../../assets/icon/thirdToolList/answer.png"
  1068. alt
  1069. />
  1070. <div style="margin: 5px 0">问答</div>
  1071. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1072. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1073. 作业详细
  1074. </div>
  1075. </div>
  1076. <div v-if="tooC == 26">
  1077. <img
  1078. @click="addTools(tooC, toolIndex, taskCount)"
  1079. src="../../assets/icon/thirdToolList/courseDesign.png"
  1080. alt
  1081. />
  1082. <div style="margin: 5px 0">课程设计</div>
  1083. </div>
  1084. <div v-if="tooC == 18">
  1085. <img
  1086. @click="addTools(tooC, toolIndex, taskCount)"
  1087. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1088. alt
  1089. />
  1090. <div style="margin: 5px 0">训练服务器</div>
  1091. </div>
  1092. <div v-if="tooC == 16">
  1093. <img
  1094. @click="addTools(tooC, toolIndex, taskCount)"
  1095. src="../../assets/icon/thirdToolList/work.png"
  1096. alt
  1097. />
  1098. <div style="margin: 5px 0">作业提交</div>
  1099. </div>
  1100. <div v-if="tooC == 50">
  1101. <img
  1102. @click="addTools(tooC, toolIndex, taskCount)"
  1103. src="../../assets/icon/thirdToolList/plwork.png"
  1104. alt
  1105. />
  1106. <div style="margin: 5px 0">批量上传</div>
  1107. </div>
  1108. <div v-if="tooC == 21">
  1109. <img
  1110. @click="addTools(tooC, toolIndex, taskCount)"
  1111. src="../../assets/icon/fourthToolList/program.png"
  1112. alt
  1113. />
  1114. <div style="margin: 5px 0">AIoT Blockly</div>
  1115. </div>
  1116. <!-- <div v-if="tooC == 22">
  1117. <img
  1118. @click="addTools(tooC, toolIndex, taskCount)"
  1119. src="../../assets/icon/fourthToolList/program.png"
  1120. alt
  1121. />
  1122. <div style="margin: 5px 0">AI体验</div>
  1123. </div> -->
  1124. <div v-if="tooC == 23">
  1125. <img
  1126. @click="addTools(tooC, toolIndex, taskCount)"
  1127. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1128. alt
  1129. />
  1130. <div style="margin: 5px 0">AI Python</div>
  1131. </div>
  1132. <div v-if="tooC == 24">
  1133. <img
  1134. @click="addTools(tooC, toolIndex, taskCount)"
  1135. src="../../assets/icon/fourthToolList/AIprogram.png"
  1136. alt
  1137. />
  1138. <div style="margin: 5px 0">AI Blockly</div>
  1139. </div>
  1140. <div v-if="tooC == 25">
  1141. <img
  1142. @click="addTools(tooC, toolIndex, taskCount)"
  1143. src="../../assets/icon/thirdToolList/evalua.png"
  1144. alt
  1145. />
  1146. <div style="margin: 5px 0">目标管理</div>
  1147. </div>
  1148. <div v-if="tooC == 31">
  1149. <img
  1150. @click="addTools(tooC, toolIndex, taskCount)"
  1151. src="../../assets/icon/secondToolList/networkPanel.png"
  1152. alt
  1153. />
  1154. <div style="margin: 5px 0">数学画板</div>
  1155. </div>
  1156. <div v-if="tooC == 28">
  1157. <img
  1158. @click="addTools(tooC, toolIndex, taskCount)"
  1159. src="../../assets/icon/secondToolList/translation.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">翻译</div>
  1163. </div>
  1164. <div v-if="tooC == 37">
  1165. <img
  1166. @click="addTools(tooC, toolIndex, taskCount)"
  1167. src="../../assets/icon/secondToolList/mohe.png"
  1168. alt
  1169. />
  1170. <div style="margin: 5px 0">魔盒识字</div>
  1171. </div>
  1172. <div v-if="tooC == 38">
  1173. <img
  1174. @click="addTools(tooC, toolIndex, taskCount)"
  1175. src="../../assets/icon/secondToolList/24game.png"
  1176. alt
  1177. />
  1178. <div style="margin: 5px 0">24点</div>
  1179. </div>
  1180. <div v-if="tooC == 39">
  1181. <img
  1182. @click="addTools(tooC, toolIndex, taskCount)"
  1183. src="../../assets/icon/secondToolList/GeoGebra.png"
  1184. alt
  1185. />
  1186. <div style="margin: 5px 0">GeoGebra</div>
  1187. </div>
  1188. <div v-if="tooC == 32">
  1189. <img
  1190. @click="addTools(tooC, toolIndex, taskCount)"
  1191. src="../../assets/icon/thirdToolList/code.png"
  1192. alt
  1193. />
  1194. <div style="margin: 5px 0">源码编辑</div>
  1195. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1196. style="position: absolute;left: 110px;bottom: 30px;">
  1197. 上传文件
  1198. <input type="file" accept="*" style="display: none"
  1199. @change="beforeUpload1($event, 7, toolIndex)" />
  1200. </div> -->
  1201. </div>
  1202. <div v-if="tooC == 40">
  1203. <img
  1204. @click="addTools(tooC, toolIndex, taskCount)"
  1205. src="../../assets/icon/secondToolList/eval.png"
  1206. alt
  1207. />
  1208. <div style="margin: 5px 0">个人评价</div>
  1209. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1210. style="position: absolute;right: 33px;top: -30px;">
  1211. 作业详细
  1212. </div>
  1213. </div>
  1214. <div v-if="tooC == 41">
  1215. <img
  1216. @click="addTools(tooC, toolIndex, taskCount)"
  1217. src="../../assets/icon/thirdToolList/select.png"
  1218. alt
  1219. />
  1220. <div style="margin: 5px 0">选择匹配</div>
  1221. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1222. style="position: absolute;right: 33px;top: -30px;">
  1223. 作业详细
  1224. </div>
  1225. </div>
  1226. <div v-if="tooC == 44">
  1227. <img
  1228. @click="addTools(tooC, toolIndex, taskCount)"
  1229. src="../../assets/icon/thirdToolList/hanClass.png"
  1230. alt
  1231. />
  1232. <div style="margin: 5px 0">汉字宫</div>
  1233. </div>
  1234. <div v-if="tooC == 47">
  1235. <img
  1236. @click="addTools(tooC, toolIndex, taskCount)"
  1237. src="../../assets/icon/fourthToolList/conSentences.png"
  1238. alt
  1239. />
  1240. <div style="margin: 5px 0">排序</div>
  1241. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1242. style="position: absolute;right: 33px;top: -30px;">
  1243. 作业详细
  1244. </div>
  1245. </div>
  1246. <div v-if="tooC == 48">
  1247. <img
  1248. @click="addTools(tooC, toolIndex, taskCount)"
  1249. src="../../assets/icon/fourthToolList/table.png"
  1250. alt
  1251. />
  1252. <div style="margin: 5px 0">表格</div>
  1253. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1254. style="position: absolute;right: 33px;top: -30px;">
  1255. 作业详细
  1256. </div>
  1257. </div>
  1258. <div v-if="tooC == 52">
  1259. <img
  1260. @click="addTools(tooC, toolIndex, taskCount)"
  1261. src="../../assets/icon/fourthToolList/text.png"
  1262. alt
  1263. />
  1264. <div style="margin: 5px 0">文档</div>
  1265. <div class="upload_toolBtn" v-if="tType==='1' && worksStudent[toolIndex].length>0" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1266. style="position: absolute;right: 33px;top: -30px;">
  1267. 作业详细
  1268. </div>
  1269. </div>
  1270. <div v-if="tooC == 49">
  1271. <img
  1272. @click="addTools(tooC, toolIndex, taskCount)"
  1273. src="../../assets/icon/fourthToolList/group.png"
  1274. alt
  1275. />
  1276. <div style="margin: 5px 0">学生分组</div>
  1277. </div>
  1278. <div v-if="tooC == 57">
  1279. <img
  1280. @click="addTools(tooC, toolIndex, taskCount)"
  1281. src="../../assets/icon/fourthToolList/cocopi.png"
  1282. alt
  1283. />
  1284. <div style="margin: 5px 0">CocoPi</div>
  1285. </div>
  1286. <div v-if="tooC == 58">
  1287. <img
  1288. @click="addTools(tooC, toolIndex, taskCount)"
  1289. src="../../assets/icon/fourthToolList/car.png"
  1290. alt
  1291. />
  1292. <div style="margin: 5px 0">模拟驾驶</div>
  1293. </div>
  1294. <div v-if="tooC == 59">
  1295. <img
  1296. @click="addTools(tooC, toolIndex, taskCount)"
  1297. src="../../assets/icon/fourthToolList/lineSearch.png"
  1298. alt
  1299. />
  1300. <div style="margin: 5px 0">路径搜索</div>
  1301. </div>
  1302. <div v-if="tooC == 60">
  1303. <img
  1304. @click="addTools(tooC, toolIndex, taskCount)"
  1305. src="../../assets/icon/fourthToolList/deepLearning.png"
  1306. alt
  1307. />
  1308. <div style="margin: 5px 0">深度学习</div>
  1309. </div>
  1310. <div v-if="tooC == 61">
  1311. <img
  1312. @click="addTools(tooC, toolIndex, taskCount)"
  1313. src="../../assets/icon/fourthToolList/allHistory.png"
  1314. alt
  1315. />
  1316. <div style="margin: 5px 0">全历史</div>
  1317. </div>
  1318. <div v-if="tooC == 62">
  1319. <img
  1320. @click="addTools(tooC, toolIndex, taskCount)"
  1321. src="../../assets/icon/fourthToolList/interVideo.png"
  1322. alt
  1323. />
  1324. <div style="margin: 5px 0">交互视频</div>
  1325. </div>
  1326. <div v-if="tooC == 63">
  1327. <img
  1328. @click="addTools(tooC, toolIndex, taskCount)"
  1329. src="../../assets/icon/fourthToolList/Wood.png"
  1330. alt
  1331. />
  1332. <div style="margin: 5px 0">海龟编程</div>
  1333. </div>
  1334. <div v-if="tooC == 71">
  1335. <img
  1336. @click="addTools(tooC, toolIndex, taskCount)"
  1337. src="../../assets/icon/fourthToolList/chatgpt.png"
  1338. alt
  1339. />
  1340. <div style="margin: 5px 0">AI智能体</div>
  1341. </div>
  1342. <div v-if="tooC == 65">
  1343. <img
  1344. @click="addTools(tooC, toolIndex, taskCount)"
  1345. src="../../assets/icon/firstToolList/pickPeople.png"
  1346. alt
  1347. />
  1348. <div style="margin: 5px 0">挑人</div>
  1349. </div>
  1350. <div v-if="tooC == 66">
  1351. <img
  1352. @click="addTools(tooC, toolIndex, taskCount)"
  1353. src="../../assets/icon/secondToolList/formulaEdi.png"
  1354. alt
  1355. />
  1356. <div style="margin: 5px 0">公式编辑</div>
  1357. </div>
  1358. <div v-if="tooC == 67">
  1359. <img
  1360. @click="addTools(tooC, toolIndex, taskCount)"
  1361. src="../../assets/icon/secondToolList/molStr.png"
  1362. alt
  1363. />
  1364. <div style="margin: 5px 0">分子结构</div>
  1365. </div>
  1366. <div v-if="tooC == 68">
  1367. <img
  1368. @click="addTools(tooC, toolIndex, taskCount)"
  1369. src="../../assets/icon/secondToolList/timeAxis.png"
  1370. alt
  1371. />
  1372. <div style="margin: 5px 0">时间轴</div>
  1373. </div>
  1374. <div v-if="tooC == 69">
  1375. <img
  1376. @click="addTools(tooC, toolIndex, taskCount)"
  1377. src="../../assets/icon/secondToolList/english.png"
  1378. alt
  1379. />
  1380. <div style="margin: 5px 0">英语写作</div>
  1381. </div>
  1382. <div v-if="tooC == 70">
  1383. <img
  1384. @click="addTools(tooC, toolIndex, taskCount)"
  1385. src="../../assets/icon/thirdToolList/englishVoice.png"
  1386. alt
  1387. />
  1388. <div style="margin: 5px 0">英语口语</div>
  1389. </div>
  1390. </div>
  1391. </div>
  1392. </div>
  1393. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1394. <!-- <div class="toolTitle">工具描述</div> -->
  1395. <!-- @click.stop="updateToolDetail(toolIndex, 2)" 点击开启修改-->
  1396. <div style="height:100%;"
  1397. v-html="contentConvent(tool.toolDetail)"
  1398. v-if="toolDetailIndex != toolIndex"
  1399. ></div>
  1400. <div v-else @click.stop="" style="height:100%;">
  1401. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1402. </div>
  1403. </div>
  1404. <el-button
  1405. type="primary"
  1406. v-if="tool.tool[0] == 32"
  1407. style="position: absolute; right: 30px; top: -45px"
  1408. @click="addImg($event)"
  1409. >上传作业<input
  1410. type="file"
  1411. accept="*"
  1412. style="display: none"
  1413. @change="beforeUpload1($event, 7, toolIndex)"
  1414. /></el-button>
  1415. <el-button
  1416. type="primary"
  1417. v-if="tool.tool[0] == 15"
  1418. style="position: absolute; right: 30px; top: -45px"
  1419. @click="openWordCloud(toolIndex)"
  1420. >生成词云</el-button
  1421. >
  1422. <el-button
  1423. type="primary"
  1424. v-if="
  1425. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1426. "
  1427. style="position: absolute; right: 30px; top: -45px"
  1428. @click="uploadWorks(toolIndex)"
  1429. >导出作业</el-button
  1430. >
  1431. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1432. position: absolute;
  1433. right: 30px;
  1434. transform: translateY(-130%);
  1435. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1436. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1437. </div>
  1438. <div
  1439. v-if="
  1440. tType &&
  1441. tType == 2 &&
  1442. !sIsOpen &&
  1443. tool.tool.indexOf(16) != -1
  1444. "
  1445. class="worksBox"
  1446. >
  1447. <div
  1448. class="zuoyeYulan"
  1449. v-if="workStudent[toolIndex].length > 0"
  1450. >
  1451. <span class="worksTitle">作业预览</span>
  1452. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1453. </div>
  1454. <div
  1455. class="worksDetailBox"
  1456. v-if="workStudent[toolIndex].length > 0"
  1457. >
  1458. <div
  1459. class="works"
  1460. style="
  1461. width: 200px;
  1462. height: 140px;
  1463. margin: 10px 10px 10px 0;
  1464. box-shadow: 0 0 6px 1px #dfdada;
  1465. "
  1466. v-for="(w, wIndex) in workStudent[toolIndex]"
  1467. :key="wIndex"
  1468. >
  1469. <div class="workImg" v-if="w.type == 0">
  1470. <img
  1471. :src="w.works"
  1472. @click="previewImg(w.works,w)"
  1473. alt
  1474. />
  1475. <div
  1476. class="answerScore"
  1477. v-if="w.score"
  1478. @click.stop="openScore(w)"
  1479. :class="{
  1480. rightW:
  1481. w.userid == userid || tType == 1 || tType == 4,
  1482. }"
  1483. >
  1484. {{ JSON.parse(w.score).wScore }}分
  1485. </div>
  1486. <div
  1487. class="answerScore"
  1488. @click.stop="openScore(w)"
  1489. v-else-if="courseDetail.userid == userid"
  1490. :class="{
  1491. rightW:
  1492. w.userid == userid || tType == 1 || tType == 4,
  1493. }"
  1494. >
  1495. 评分
  1496. </div>
  1497. <img
  1498. class="deleteImg"
  1499. src="../../assets/deleteworks.png"
  1500. v-if="
  1501. w.userid == userid || tType == 1 || tType == 4
  1502. "
  1503. @click.stop="deleteWorks(w.wid)"
  1504. alt
  1505. />
  1506. </div>
  1507. <div class="workImg" v-if="w.type == 1">
  1508. <img :src="word" @click="openFile(w.works)" alt />
  1509. <div
  1510. class="answerScore"
  1511. v-if="w.score"
  1512. @click.stop="openScore(w)"
  1513. :class="{
  1514. rightW:
  1515. w.userid == userid || tType == 1 || tType == 4,
  1516. }"
  1517. >
  1518. {{ JSON.parse(w.score).wScore }}分
  1519. </div>
  1520. <div
  1521. class="answerScore"
  1522. @click.stop="openScore(w)"
  1523. v-else-if="courseDetail.userid == userid"
  1524. :class="{
  1525. rightW:
  1526. w.userid == userid || tType == 1 || tType == 4,
  1527. }"
  1528. >
  1529. 评分
  1530. </div>
  1531. <img
  1532. class="deleteImg"
  1533. src="../../assets/deleteworks.png"
  1534. v-if="
  1535. w.userid == userid || tType == 1 || tType == 4
  1536. "
  1537. @click.stop="deleteWorks(w.wid)"
  1538. alt
  1539. />
  1540. </div>
  1541. <div class="workImg" v-if="w.type == 3">
  1542. <img
  1543. style="cursor: pointer"
  1544. :src="video"
  1545. @click="openVideo(w)"
  1546. alt
  1547. />
  1548. <div
  1549. class="answerScore"
  1550. v-if="w.score"
  1551. @click.stop="openScore(w)"
  1552. :class="{
  1553. rightW:
  1554. w.userid == userid || tType == 1 || tType == 4,
  1555. }"
  1556. >
  1557. {{ JSON.parse(w.score).wScore }}分
  1558. </div>
  1559. <div
  1560. class="answerScore"
  1561. @click.stop="openScore(w)"
  1562. v-else-if="courseDetail.userid == userid"
  1563. :class="{
  1564. rightW:
  1565. w.userid == userid || tType == 1 || tType == 4,
  1566. }"
  1567. >
  1568. 评分
  1569. </div>
  1570. <img
  1571. class="deleteImg"
  1572. src="../../assets/deleteworks.png"
  1573. v-if="
  1574. w.userid == userid || tType == 1 || tType == 4
  1575. "
  1576. @click.stop="deleteWorks(w.wid)"
  1577. alt
  1578. />
  1579. </div>
  1580. <div class="workImg" v-if="w.type == 12">
  1581. <img
  1582. style="cursor: pointer"
  1583. :src="word2"
  1584. @click="downloadFile(w.works)"
  1585. alt
  1586. />
  1587. <div
  1588. class="answerScore"
  1589. v-if="w.score"
  1590. @click.stop="openScore(w)"
  1591. :class="{
  1592. rightW:
  1593. w.userid == userid || tType == 1 || tType == 4,
  1594. }"
  1595. >
  1596. {{ JSON.parse(w.score).wScore }}分
  1597. </div>
  1598. <div
  1599. class="answerScore"
  1600. @click.stop="openScore(w)"
  1601. v-else-if="courseDetail.userid == userid"
  1602. :class="{
  1603. rightW:
  1604. w.userid == userid || tType == 1 || tType == 4,
  1605. }"
  1606. >
  1607. 评分
  1608. </div>
  1609. <img
  1610. class="deleteImg"
  1611. src="../../assets/deleteworks.png"
  1612. v-if="
  1613. w.userid == userid || tType == 1 || tType == 4
  1614. "
  1615. @click.stop="deleteWorks(w.wid)"
  1616. alt
  1617. />
  1618. </div>
  1619. <div class="worksName">
  1620. <div>{{ w.sName }}</div>
  1621. </div>
  1622. </div>
  1623. </div>
  1624. </div>
  1625. <div
  1626. v-if="
  1627. tType &&
  1628. tType == 2 &&
  1629. !sIsOpen &&
  1630. tool.tool.indexOf(32) != -1
  1631. "
  1632. class="worksBox"
  1633. >
  1634. <div
  1635. class="zuoyeYulan"
  1636. v-if="workStudent[toolIndex].length > 0"
  1637. >
  1638. <span class="worksTitle">作业预览</span>
  1639. </div>
  1640. <div
  1641. class="worksDetailBox"
  1642. v-if="workStudent[toolIndex].length > 0"
  1643. >
  1644. <div
  1645. class="works"
  1646. style="
  1647. width: 200px;
  1648. height: 140px;
  1649. margin: 10px 10px 10px 0;
  1650. box-shadow: 0 0 6px 1px #dfdada;
  1651. "
  1652. v-for="(w, wIndex) in workStudent[toolIndex]"
  1653. :key="wIndex"
  1654. >
  1655. <div class="workImg">
  1656. <img
  1657. :src="word2"
  1658. @click="downloadFile(w.works)"
  1659. alt
  1660. />
  1661. <div
  1662. class="answerScore"
  1663. v-if="w.score"
  1664. @click.stop="openScore(w)"
  1665. :class="{
  1666. rightW:
  1667. w.userid == userid || tType == 1 || tType == 4,
  1668. }"
  1669. >
  1670. {{ JSON.parse(w.score).wScore }}分
  1671. </div>
  1672. <div
  1673. class="answerScore"
  1674. @click.stop="openScore(w)"
  1675. v-else-if="courseDetail.userid == userid"
  1676. :class="{
  1677. rightW:
  1678. w.userid == userid || tType == 1 || tType == 4,
  1679. }"
  1680. >
  1681. 评分
  1682. </div>
  1683. <img
  1684. class="deleteImg"
  1685. src="../../assets/deleteworks.png"
  1686. v-if="
  1687. w.userid == userid || tType == 1 || tType == 4
  1688. "
  1689. @click.stop="deleteWorks(w.wid)"
  1690. alt
  1691. />
  1692. </div>
  1693. <div class="worksName">
  1694. <div>{{ w.sName }}</div>
  1695. </div>
  1696. </div>
  1697. </div>
  1698. </div>
  1699. <div
  1700. v-if="
  1701. tType &&
  1702. tType == 2 &&
  1703. !sIsOpen &&
  1704. tool.tool.indexOf(57) != -1
  1705. "
  1706. class="worksBox"
  1707. >
  1708. <div
  1709. class="zuoyeYulan"
  1710. v-if="workStudent[toolIndex].length > 0"
  1711. >
  1712. <span class="worksTitle">作业预览</span>
  1713. </div>
  1714. <div
  1715. class="worksDetailBox"
  1716. v-if="workStudent[toolIndex].length > 0"
  1717. >
  1718. <div
  1719. class="works"
  1720. style="
  1721. width: 200px;
  1722. height: 140px;
  1723. margin: 10px 10px 10px 0;
  1724. box-shadow: 0 0 6px 1px #dfdada;
  1725. "
  1726. v-for="(w, wIndex) in workStudent[toolIndex]"
  1727. :key="wIndex"
  1728. >
  1729. <div class="workImg">
  1730. <img
  1731. :src="word2"
  1732. @click="downloadFile(w.works)"
  1733. v-if="w.type == 12"
  1734. alt
  1735. />
  1736. <img
  1737. :src="word2"
  1738. @click="
  1739. openCocoPi(57, toolIndex, w.userid, w.sName)
  1740. "
  1741. v-else-if="w.type == 15"
  1742. alt
  1743. />
  1744. <div
  1745. class="answerScore"
  1746. v-if="w.score"
  1747. @click.stop="openScore(w)"
  1748. :class="{
  1749. rightW:
  1750. w.userid == userid || tType == 1 || tType == 4,
  1751. }"
  1752. >
  1753. {{ JSON.parse(w.score).wScore }}分
  1754. </div>
  1755. <div
  1756. class="answerScore"
  1757. @click.stop="openScore(w)"
  1758. v-else-if="courseDetail.userid == userid"
  1759. :class="{
  1760. rightW:
  1761. w.userid == userid || tType == 1 || tType == 4,
  1762. }"
  1763. >
  1764. 评分
  1765. </div>
  1766. <img
  1767. class="deleteImg"
  1768. src="../../assets/deleteworks.png"
  1769. v-if="
  1770. w.userid == userid || tType == 1 || tType == 4
  1771. "
  1772. @click.stop="deleteWorks(w.wid)"
  1773. alt
  1774. />
  1775. </div>
  1776. <div class="worksName">
  1777. <div>{{ w.sName }}</div>
  1778. </div>
  1779. </div>
  1780. </div>
  1781. </div>
  1782. <div
  1783. v-if="
  1784. tType &&
  1785. tType == 2 &&
  1786. !sIsOpen &&
  1787. tool.tool.indexOf(4) != -1
  1788. "
  1789. class="worksBox"
  1790. >
  1791. <div
  1792. class="zuoyeYulan"
  1793. v-if="workStudent[toolIndex].length > 0"
  1794. >
  1795. <span class="worksTitle">作业预览</span>
  1796. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1797. </div>
  1798. <div
  1799. class="worksDetailBox"
  1800. v-if="workStudent[toolIndex].length > 0"
  1801. >
  1802. <div
  1803. class="isWorksName2"
  1804. v-for="(w, wIndex) in workStudent[toolIndex]"
  1805. :key="wIndex"
  1806. @click="
  1807. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1808. "
  1809. >
  1810. {{ w.sName }}
  1811. <img
  1812. class="deleteImg deleteImg2"
  1813. src="../../assets/deleteworks.png"
  1814. v-if="w.userid == userid || tType == 1 || tType == 4"
  1815. @click.stop="deleteWorks(w.wid)"
  1816. alt
  1817. />
  1818. </div>
  1819. <!-- <div
  1820. class="works"
  1821. style="
  1822. width: 200px;
  1823. height: 140px;
  1824. border-radius: 10px;
  1825. box-shadow: 0 0 6px 1px #dfdada;
  1826. overflow: hidden;
  1827. "
  1828. v-for="(w, wIndex) in workStudent[toolIndex]"
  1829. :key="wIndex"
  1830. >
  1831. <div class="workImg">
  1832. <img
  1833. src="../../assets/icon/works/noImg.png"
  1834. @click="
  1835. openTools(
  1836. 4,
  1837. toolIndex,
  1838. taskCount,
  1839. w.works,
  1840. w.sName
  1841. )
  1842. "
  1843. alt
  1844. />
  1845. </div>
  1846. <div class="worksName">
  1847. <div>{{ w.sName }}</div>
  1848. <div>{{ w.time }}</div>
  1849. </div>
  1850. </div> -->
  1851. </div>
  1852. </div>
  1853. <div
  1854. v-if="
  1855. tType &&
  1856. ((tType == 2 && sIsOpen == true) ||
  1857. tType == 1 ||
  1858. tType == 4) &&
  1859. tool.tool.indexOf(62) != -1
  1860. "
  1861. class="worksBox"
  1862. >
  1863. <div
  1864. class="zuoyeYulan"
  1865. v-if="
  1866. worksStudent.length &&
  1867. worksStudent[toolIndex].length > 0
  1868. "
  1869. >
  1870. <div class="worksTop">
  1871. <div>作业预览</div>
  1872. <div
  1873. class="corOpen"
  1874. @click="contract(toolIndex)"
  1875. v-if="
  1876. (isCloseList[toolIndex].isCloseBoolean) &&
  1877. isCloseList[toolIndex].isClose == 0
  1878. "
  1879. >
  1880. 折叠
  1881. </div>
  1882. <div
  1883. class="corOpen"
  1884. @click="contract(toolIndex)"
  1885. v-if="isCloseList[toolIndex].isClose == 1"
  1886. >
  1887. 展开
  1888. </div>
  1889. </div>
  1890. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1891. </div>
  1892. <div>
  1893. <div
  1894. :id="'tool-' + toolIndex"
  1895. :style="{
  1896. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1897. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1898. }"
  1899. class="worksDetailBox"
  1900. v-if="
  1901. worksStudent.length &&
  1902. worksStudent[toolIndex].length > 0
  1903. "
  1904. >
  1905. <div
  1906. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1907. :key="wIndex"
  1908. class="isWorksName2"
  1909. @click="
  1910. openTools(
  1911. 62,
  1912. toolIndex,
  1913. taskCount,
  1914. w.works,
  1915. w.sName
  1916. )
  1917. "
  1918. >
  1919. {{ w.sName }}
  1920. <img
  1921. class="deleteImg deleteImg2"
  1922. src="../../assets/deleteworks.png"
  1923. v-if="
  1924. w.userid == userid || tType == 1 || tType == 4
  1925. "
  1926. @click.stop="deleteWorks(w.wid)"
  1927. alt
  1928. />
  1929. </div>
  1930. </div>
  1931. </div>
  1932. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1933. 未提交
  1934. </div>
  1935. <div
  1936. class="noWorksS"
  1937. v-if="noWorksS && noWorksS[toolIndex].length"
  1938. >
  1939. <div
  1940. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1941. :key="sIndex"
  1942. class="noWorksName"
  1943. >
  1944. <el-tooltip effect="dark" :content="s.student" placement="top">
  1945. <span>{{ s.student }}</span>
  1946. </el-tooltip>
  1947. </div>
  1948. </div>
  1949. </div>
  1950. <div
  1951. v-if="
  1952. tType &&
  1953. tType == 2 &&
  1954. !sIsOpen &&
  1955. tool.tool.indexOf(62) != -1
  1956. "
  1957. class="worksBox"
  1958. >
  1959. <div
  1960. class="zuoyeYulan"
  1961. v-if="workStudent[toolIndex].length > 0"
  1962. >
  1963. <span class="worksTitle">作业预览</span>
  1964. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1965. </div>
  1966. <div
  1967. class="worksDetailBox"
  1968. v-if="workStudent[toolIndex].length > 0"
  1969. >
  1970. <div
  1971. class="isWorksName2"
  1972. v-for="(w, wIndex) in workStudent[toolIndex]"
  1973. :key="wIndex"
  1974. @click="
  1975. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1976. "
  1977. >
  1978. {{ w.sName }}
  1979. <img
  1980. class="deleteImg deleteImg2"
  1981. src="../../assets/deleteworks.png"
  1982. v-if="w.userid == userid || tType == 1 || tType == 4"
  1983. @click.stop="deleteWorks(w.wid)"
  1984. alt
  1985. />
  1986. </div>
  1987. </div>
  1988. </div>
  1989. <div
  1990. v-if="
  1991. tType &&
  1992. tType == 2 &&
  1993. !sIsOpen &&
  1994. tool.tool.indexOf(45) != -1
  1995. "
  1996. class="worksBox"
  1997. >
  1998. <div
  1999. class="zuoyeYulan"
  2000. v-if="workStudent[toolIndex].length > 0"
  2001. >
  2002. <span class="worksTitle">作业预览</span>
  2003. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2004. </div>
  2005. <div
  2006. class="worksDetailBox"
  2007. v-if="workStudent[toolIndex].length > 0"
  2008. >
  2009. <div
  2010. class="isWorksName2"
  2011. v-for="(w, wIndex) in workStudent[toolIndex]"
  2012. :key="wIndex"
  2013. @click="
  2014. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2015. "
  2016. >
  2017. {{ w.sName }}
  2018. <img
  2019. class="deleteImg deleteImg2"
  2020. src="../../assets/deleteworks.png"
  2021. v-if="w.userid == userid || tType == 1 || tType == 4"
  2022. @click.stop="deleteWorks(w.wid)"
  2023. alt
  2024. />
  2025. </div>
  2026. </div>
  2027. </div>
  2028. <div
  2029. v-if="
  2030. tType &&
  2031. tType == 2 &&
  2032. !sIsOpen &&
  2033. tool.tool.indexOf(69) != -1
  2034. "
  2035. class="worksBox"
  2036. >
  2037. <div
  2038. class="zuoyeYulan"
  2039. v-if="workStudent[toolIndex].length > 0"
  2040. >
  2041. <span class="worksTitle">作业预览</span>
  2042. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2043. </div>
  2044. <div
  2045. class="worksDetailBox"
  2046. v-if="workStudent[toolIndex].length > 0"
  2047. >
  2048. <div
  2049. class="isWorksName2"
  2050. v-for="(w, wIndex) in workStudent[toolIndex]"
  2051. :key="wIndex"
  2052. @click="
  2053. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2054. "
  2055. >
  2056. {{ w.sName }}
  2057. <img
  2058. class="deleteImg deleteImg2"
  2059. src="../../assets/deleteworks.png"
  2060. v-if="w.userid == userid || tType == 1 || tType == 4"
  2061. @click.stop="deleteWorks(w.wid)"
  2062. alt
  2063. />
  2064. </div>
  2065. </div>
  2066. </div>
  2067. <div
  2068. v-if="
  2069. tType &&
  2070. tType == 2 &&
  2071. !sIsOpen &&
  2072. tool.tool.indexOf(15) != -1
  2073. "
  2074. class="worksBox"
  2075. >
  2076. <div
  2077. class="zuoyeYulan"
  2078. v-if="workStudent[toolIndex].length > 0"
  2079. >
  2080. <span class="worksTitle">作业预览</span>
  2081. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2082. </div>
  2083. <div
  2084. class="worksDetailBox"
  2085. v-if="workStudent[toolIndex].length > 0"
  2086. >
  2087. <div
  2088. class="works"
  2089. v-for="(w, wIndex) in workStudent[toolIndex]"
  2090. :key="wIndex"
  2091. >
  2092. <div class="workImg">
  2093. <!-- <img
  2094. src="../../assets/icon/works/noImg.png"
  2095. @click="openTools(15, toolIndex, taskCount, w.works)"
  2096. alt=""
  2097. />-->
  2098. <div class="answerBg">
  2099. <!-- <div>{{ w.sName }}</div> -->
  2100. <el-tooltip
  2101. class="item"
  2102. effect="light"
  2103. :content="JSON.parse(w.works)[0].answer"
  2104. placement="top"
  2105. >
  2106. <div class="answerContent">
  2107. {{ JSON.parse(w.works)[0].answer }}
  2108. </div>
  2109. </el-tooltip>
  2110. <div
  2111. class="answerScore"
  2112. v-if="w.score"
  2113. @click.stop="openScore(w)"
  2114. :class="{
  2115. rightW:
  2116. w.userid == userid ||
  2117. tType == 1 ||
  2118. tType == 4,
  2119. }"
  2120. >
  2121. {{ JSON.parse(w.score).wScore }}分
  2122. </div>
  2123. <div
  2124. class="answerScore"
  2125. @click.stop="openScore(w)"
  2126. v-else-if="courseDetail.userid == userid"
  2127. :class="{
  2128. rightW:
  2129. w.userid == userid ||
  2130. tType == 1 ||
  2131. tType == 4,
  2132. }"
  2133. >
  2134. 评分
  2135. </div>
  2136. <img
  2137. class="deleteImg"
  2138. src="../../assets/deleteworks.png"
  2139. v-if="
  2140. w.userid == userid || tType == 1 || tType == 4
  2141. "
  2142. @click.stop="deleteWorks(w.wid)"
  2143. alt
  2144. />
  2145. </div>
  2146. <div class="comment">
  2147. <div class="worksName">
  2148. <div>{{ w.sName }}</div>
  2149. </div>
  2150. </div>
  2151. </div>
  2152. </div>
  2153. </div>
  2154. </div>
  2155. <div
  2156. v-if="
  2157. tType &&
  2158. tType == 2 &&
  2159. !sIsOpen &&
  2160. tool.tool.indexOf(1) != -1
  2161. "
  2162. class="worksBox"
  2163. >
  2164. <div
  2165. class="zuoyeYulan"
  2166. v-if="workStudent[toolIndex].length > 0"
  2167. >
  2168. <span class="worksTitle">作业预览</span>
  2169. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2170. </div>
  2171. <div
  2172. class="worksDetailBox"
  2173. v-if="workStudent[toolIndex].length > 0"
  2174. >
  2175. <div
  2176. class="works"
  2177. style="
  2178. width: 200px;
  2179. height: 140px;
  2180. margin: 10px 10px 10px 0;
  2181. box-shadow: 0 0 6px 1px #dfdada;
  2182. "
  2183. v-for="(w, wIndex) in workStudent[toolIndex]"
  2184. :key="wIndex"
  2185. >
  2186. <div class="workImg">
  2187. <img
  2188. :src="w.works"
  2189. @click="previewImg(w.works,w)"
  2190. alt
  2191. />
  2192. <div
  2193. class="answerScore"
  2194. v-if="w.score"
  2195. @click.stop="openScore(w)"
  2196. :class="{
  2197. rightW:
  2198. w.userid == userid || tType == 1 || tType == 4,
  2199. }"
  2200. >
  2201. {{ JSON.parse(w.score).wScore }}分
  2202. </div>
  2203. <div
  2204. class="answerScore"
  2205. @click.stop="openScore(w)"
  2206. v-else-if="courseDetail.userid == userid"
  2207. :class="{
  2208. rightW:
  2209. w.userid == userid || tType == 1 || tType == 4,
  2210. }"
  2211. >
  2212. 评分
  2213. </div>
  2214. <img
  2215. class="deleteImg"
  2216. src="../../assets/deleteworks.png"
  2217. v-if="
  2218. w.userid == userid || tType == 1 || tType == 4
  2219. "
  2220. @click.stop="deleteWorks(w.wid)"
  2221. alt
  2222. />
  2223. </div>
  2224. <div class="worksName">
  2225. <div>{{ w.sName }}</div>
  2226. </div>
  2227. </div>
  2228. </div>
  2229. </div>
  2230. <div
  2231. v-if="
  2232. tType &&
  2233. tType == 2 &&
  2234. !sIsOpen &&
  2235. tool.tool.indexOf(3) != -1
  2236. "
  2237. class="worksBox"
  2238. >
  2239. <div
  2240. class="zuoyeYulan"
  2241. v-if="workStudent[toolIndex].length > 0"
  2242. >
  2243. <span class="worksTitle">作业预览</span>
  2244. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2245. </div>
  2246. <div
  2247. class="worksDetailBox"
  2248. v-if="workStudent[toolIndex].length > 0"
  2249. >
  2250. <div
  2251. class="works"
  2252. style="
  2253. width: 200px;
  2254. height: 140px;
  2255. margin: 10px 10px 10px 0;
  2256. box-shadow: 0 0 6px 1px #dfdada;
  2257. "
  2258. v-for="(w, wIndex) in workStudent[toolIndex]"
  2259. :key="wIndex"
  2260. >
  2261. <div class="workImg">
  2262. <img
  2263. :src="w.works"
  2264. @click="previewImg(w.works,w)"
  2265. alt
  2266. />
  2267. <div
  2268. class="answerScore"
  2269. v-if="w.score"
  2270. @click.stop="openScore(w)"
  2271. :class="{
  2272. rightW:
  2273. w.userid == userid || tType == 1 || tType == 4,
  2274. }"
  2275. >
  2276. {{ JSON.parse(w.score).wScore }}分
  2277. </div>
  2278. <div
  2279. class="answerScore"
  2280. @click.stop="openScore(w)"
  2281. v-else-if="courseDetail.userid == userid"
  2282. :class="{
  2283. rightW:
  2284. w.userid == userid || tType == 1 || tType == 4,
  2285. }"
  2286. >
  2287. 评分
  2288. </div>
  2289. <img
  2290. class="deleteImg"
  2291. src="../../assets/deleteworks.png"
  2292. v-if="
  2293. w.userid == userid || tType == 1 || tType == 4
  2294. "
  2295. @click.stop="deleteWorks(w.wid)"
  2296. alt
  2297. />
  2298. </div>
  2299. <div class="worksName">
  2300. <div>{{ w.sName }}</div>
  2301. </div>
  2302. </div>
  2303. </div>
  2304. </div>
  2305. <div
  2306. v-if="
  2307. tType &&
  2308. tType == 2 &&
  2309. !sIsOpen &&
  2310. tool.tool.indexOf(6) != -1
  2311. "
  2312. class="worksBox"
  2313. >
  2314. <div
  2315. class="zuoyeYulan"
  2316. v-if="workStudent[toolIndex].length > 0"
  2317. >
  2318. <span class="worksTitle">作业预览</span>
  2319. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2320. </div>
  2321. <div
  2322. class="worksDetailBox"
  2323. v-if="workStudent[toolIndex].length > 0"
  2324. >
  2325. <div
  2326. class="works"
  2327. style="
  2328. width: 200px;
  2329. height: 140px;
  2330. margin: 10px 10px 10px 0;
  2331. box-shadow: 0 0 6px 1px #dfdada;
  2332. "
  2333. v-for="(w, wIndex) in workStudent[toolIndex]"
  2334. :key="wIndex"
  2335. >
  2336. <div class="workImg">
  2337. <img
  2338. :src="w.works"
  2339. @click="previewImg(w.works,w)"
  2340. alt
  2341. />
  2342. <div
  2343. class="answerScore"
  2344. v-if="w.score"
  2345. @click.stop="openScore(w)"
  2346. :class="{
  2347. rightW:
  2348. w.userid == userid || tType == 1 || tType == 4,
  2349. }"
  2350. >
  2351. {{ JSON.parse(w.score).wScore }}分
  2352. </div>
  2353. <div
  2354. class="answerScore"
  2355. @click.stop="openScore(w)"
  2356. v-else-if="courseDetail.userid == userid"
  2357. :class="{
  2358. rightW:
  2359. w.userid == userid || tType == 1 || tType == 4,
  2360. }"
  2361. >
  2362. 评分
  2363. </div>
  2364. <img
  2365. class="deleteImg"
  2366. src="../../assets/deleteworks.png"
  2367. v-if="
  2368. w.userid == userid || tType == 1 || tType == 4
  2369. "
  2370. @click.stop="deleteWorks(w.wid)"
  2371. alt
  2372. />
  2373. </div>
  2374. <div class="worksName">
  2375. <div>{{ w.sName }}</div>
  2376. </div>
  2377. </div>
  2378. </div>
  2379. </div>
  2380. <div
  2381. v-if="
  2382. tType &&
  2383. tType == 2 &&
  2384. !sIsOpen &&
  2385. tool.tool.indexOf(7) != -1
  2386. "
  2387. class="worksBox"
  2388. >
  2389. <div
  2390. class="zuoyeYulan"
  2391. v-if="workStudent[toolIndex].length > 0"
  2392. >
  2393. <span class="worksTitle">作业预览</span>
  2394. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2395. </div>
  2396. <div
  2397. class="worksDetailBox"
  2398. v-if="workStudent[toolIndex].length > 0"
  2399. >
  2400. <div
  2401. class="works"
  2402. style="
  2403. width: 200px;
  2404. height: 140px;
  2405. margin: 10px 10px 10px 0;
  2406. box-shadow: 0 0 6px 1px #dfdada;
  2407. "
  2408. v-for="(w, wIndex) in workStudent[toolIndex]"
  2409. :key="wIndex"
  2410. >
  2411. <div class="workImg">
  2412. <img
  2413. :src="w.works"
  2414. @click="previewImg(w.works,w)"
  2415. alt
  2416. />
  2417. <div
  2418. class="answerScore"
  2419. v-if="w.score"
  2420. @click.stop="openScore(w)"
  2421. :class="{
  2422. rightW:
  2423. w.userid == userid || tType == 1 || tType == 4,
  2424. }"
  2425. >
  2426. {{ JSON.parse(w.score).wScore }}分
  2427. </div>
  2428. <div
  2429. class="answerScore"
  2430. @click.stop="openScore(w)"
  2431. v-else-if="courseDetail.userid == userid"
  2432. :class="{
  2433. rightW:
  2434. w.userid == userid || tType == 1 || tType == 4,
  2435. }"
  2436. >
  2437. 评分
  2438. </div>
  2439. <img
  2440. class="deleteImg"
  2441. src="../../assets/deleteworks.png"
  2442. v-if="
  2443. w.userid == userid || tType == 1 || tType == 4
  2444. "
  2445. @click.stop="deleteWorks(w.wid)"
  2446. alt
  2447. />
  2448. </div>
  2449. <div class="worksName">
  2450. <div>{{ w.sName }}</div>
  2451. </div>
  2452. </div>
  2453. </div>
  2454. </div>
  2455. <div
  2456. v-if="
  2457. tType &&
  2458. tType == 2 &&
  2459. !sIsOpen &&
  2460. tool.tool.indexOf(26) != -1
  2461. "
  2462. class="worksBox"
  2463. >
  2464. <div
  2465. class="zuoyeYulan"
  2466. v-if="workStudent[toolIndex].length > 0"
  2467. >
  2468. <span class="worksTitle">作业预览</span>
  2469. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2470. </div>
  2471. <div
  2472. class="worksDetailBox"
  2473. v-if="workStudent[toolIndex].length > 0"
  2474. >
  2475. <div
  2476. class="works"
  2477. style="
  2478. width: 200px;
  2479. height: 140px;
  2480. margin: 10px 10px 10px 0;
  2481. box-shadow: 0 0 6px 1px #dfdada;
  2482. "
  2483. v-for="(w, wIndex) in workStudent[toolIndex]"
  2484. :key="wIndex"
  2485. >
  2486. <div class="workImg">
  2487. <img
  2488. :src="w.works"
  2489. @click="previewImg(w.works,w)"
  2490. alt
  2491. />
  2492. <img
  2493. class="deleteImg"
  2494. src="../../assets/deleteworks.png"
  2495. v-if="
  2496. w.userid == userid || tType == 1 || tType == 4
  2497. "
  2498. @click.stop="deleteWorks(w.wid)"
  2499. alt
  2500. />
  2501. </div>
  2502. <div class="worksName">
  2503. <div>{{ w.sName }}</div>
  2504. </div>
  2505. </div>
  2506. </div>
  2507. </div>
  2508. <div
  2509. v-if="
  2510. tType &&
  2511. ((tType == 2 && sIsOpen == true) ||
  2512. tType == 1 ||
  2513. tType == 4) &&
  2514. tool.tool.indexOf(16) != -1
  2515. "
  2516. class="worksBox"
  2517. >
  2518. <div
  2519. class="zuoyeYulan"
  2520. v-if="
  2521. (worksStudent.length &&
  2522. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2523. "
  2524. >
  2525. <div class="worksTop">
  2526. <div>作业预览</div>
  2527. <div
  2528. class="corOpen"
  2529. @click="contract(toolIndex)"
  2530. v-if="
  2531. (isCloseList[toolIndex].isCloseBoolean) &&
  2532. isCloseList[toolIndex].isClose == 0
  2533. "
  2534. >
  2535. 折叠
  2536. </div>
  2537. <div
  2538. class="corOpen"
  2539. @click="contract(toolIndex)"
  2540. v-if="isCloseList[toolIndex].isClose == 1"
  2541. >
  2542. 展开
  2543. </div>
  2544. </div>
  2545. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2546. </div>
  2547. <div
  2548. class="group_workBox"
  2549. v-for="(g, gindex) in courseGroup.group"
  2550. :key="gindex"
  2551. >
  2552. <div class="group_box">
  2553. <div class="group_title">
  2554. <el-tooltip
  2555. class="item"
  2556. effect="light"
  2557. :content="g.name"
  2558. placement="top"
  2559. >
  2560. <div class="group_name">{{ g.name }}</div>
  2561. </el-tooltip>
  2562. </div>
  2563. <div
  2564. class="group_work"
  2565. v-if="
  2566. g.works &&
  2567. g.works.length &&
  2568. g.works[toolIndex].length
  2569. "
  2570. >
  2571. <div
  2572. class="works"
  2573. style="
  2574. width: 200px;
  2575. height: 140px;
  2576. margin: 10px 10px 10px 0;
  2577. border-radius: 15px;
  2578. box-shadow: 0 0 6px 1px #dfdada;
  2579. "
  2580. v-for="(w, wIndex) in g.works[toolIndex]"
  2581. :key="wIndex"
  2582. :class="w.type == 1 ? 'isTypeOne' : ''"
  2583. >
  2584. <div class="workImg" v-if="w.type == 0">
  2585. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2586. <img
  2587. :src="w.works"
  2588. @click="previewImg(w.works,w)"
  2589. alt
  2590. />
  2591. <div
  2592. class="answerScore"
  2593. v-if="w.score"
  2594. @click.stop="openScore(w)"
  2595. :class="{
  2596. rightW:
  2597. w.userid == userid ||
  2598. tType == 1 ||
  2599. tType == 4 ||
  2600. w.ateacher == userid,
  2601. }"
  2602. >
  2603. {{ JSON.parse(w.score).wScore }}分
  2604. </div>
  2605. <div
  2606. class="answerScore"
  2607. @click.stop="openScore(w)"
  2608. v-else-if="courseDetail.userid == userid"
  2609. :class="{
  2610. rightW:
  2611. w.userid == userid ||
  2612. tType == 1 ||
  2613. tType == 4 ||
  2614. w.ateacher == userid,
  2615. }"
  2616. >
  2617. 评分
  2618. </div>
  2619. <img
  2620. class="deleteImg"
  2621. src="../../assets/deleteworks.png"
  2622. v-if="
  2623. w.userid == userid || tType == 1 || tType == 4
  2624. "
  2625. @click.stop="deleteWorks(w.wid)"
  2626. alt
  2627. />
  2628. </div>
  2629. <div class="workImg" v-if="w.type == 1">
  2630. <img :src="word" @click="openFile(w.works)" alt />
  2631. <!-- @click="openFile(w.works)" -->
  2632. <div
  2633. class="answerScore"
  2634. v-if="w.score"
  2635. @click.stop="openScore(w)"
  2636. :class="{
  2637. rightW:
  2638. w.userid == userid ||
  2639. tType == 1 ||
  2640. tType == 4 ||
  2641. w.ateacher == userid,
  2642. }"
  2643. >
  2644. {{ JSON.parse(w.score).wScore }}分
  2645. </div>
  2646. <div
  2647. class="answerScore"
  2648. @click.stop="openScore(w)"
  2649. v-else-if="courseDetail.userid == userid"
  2650. :class="{
  2651. rightW:
  2652. w.userid == userid ||
  2653. tType == 1 ||
  2654. tType == 4 ||
  2655. w.ateacher == userid,
  2656. }"
  2657. >
  2658. 评分
  2659. </div>
  2660. <img
  2661. class="deleteImg"
  2662. src="../../assets/deleteworks.png"
  2663. v-if="
  2664. w.userid == userid || tType == 1 || tType == 4
  2665. "
  2666. @click.stop="deleteWorks(w.wid)"
  2667. alt
  2668. />
  2669. </div>
  2670. <div class="workImg" v-if="w.type == 3">
  2671. <img
  2672. style="cursor: pointer"
  2673. :src="video"
  2674. @click="openVideo(w)"
  2675. alt
  2676. />
  2677. <!-- @click="openVideo(w.works)" -->
  2678. <div
  2679. class="answerScore"
  2680. v-if="w.score"
  2681. @click.stop="openScore(w)"
  2682. :class="{
  2683. rightW:
  2684. w.userid == userid ||
  2685. tType == 1 ||
  2686. tType == 4 ||
  2687. w.ateacher == userid,
  2688. }"
  2689. >
  2690. {{ JSON.parse(w.score).wScore }}分
  2691. </div>
  2692. <div
  2693. class="answerScore"
  2694. @click.stop="openScore(w)"
  2695. v-else-if="courseDetail.userid == userid"
  2696. :class="{
  2697. rightW:
  2698. w.userid == userid ||
  2699. tType == 1 ||
  2700. tType == 4 ||
  2701. w.ateacher == userid,
  2702. }"
  2703. >
  2704. 评分
  2705. </div>
  2706. <img
  2707. class="deleteImg"
  2708. src="../../assets/deleteworks.png"
  2709. v-if="
  2710. w.userid == userid || tType == 1 || tType == 4
  2711. "
  2712. @click.stop="deleteWorks(w.wid)"
  2713. alt
  2714. />
  2715. </div>
  2716. <div class="workImg" v-if="w.type == 12">
  2717. <img
  2718. style="cursor: pointer"
  2719. :src="word2"
  2720. @click="downloadFile(w.works)"
  2721. alt
  2722. />
  2723. <!-- @click="openVideo(w.works)" -->
  2724. <div
  2725. class="answerScore"
  2726. v-if="w.score"
  2727. @click.stop="openScore(w)"
  2728. :class="{
  2729. rightW:
  2730. w.userid == userid ||
  2731. tType == 1 ||
  2732. tType == 4 ||
  2733. w.ateacher == userid,
  2734. }"
  2735. >
  2736. {{ JSON.parse(w.score).wScore }}分
  2737. </div>
  2738. <div
  2739. class="answerScore"
  2740. @click.stop="openScore(w)"
  2741. v-else-if="courseDetail.userid == userid"
  2742. :class="{
  2743. rightW:
  2744. w.userid == userid ||
  2745. tType == 1 ||
  2746. tType == 4 ||
  2747. w.ateacher == userid,
  2748. }"
  2749. >
  2750. 评分
  2751. </div>
  2752. <img
  2753. class="deleteImg"
  2754. src="../../assets/deleteworks.png"
  2755. v-if="
  2756. w.userid == userid || tType == 1 || tType == 4
  2757. "
  2758. @click.stop="deleteWorks(w.wid)"
  2759. alt
  2760. />
  2761. </div>
  2762. <div class="comment" style="min-width: 200px">
  2763. <div class="worksName">
  2764. <div>{{ w.sName }}</div>
  2765. </div>
  2766. <div class="commentList">
  2767. <div class="commentList">
  2768. <div
  2769. class="commentImg"
  2770. @click="
  2771. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2772. "
  2773. >
  2774. <img
  2775. :src="w.isLikes == true ? likes : noLikes"
  2776. alt=""
  2777. />
  2778. </div>
  2779. <div>{{ w.likesCount }}</div>
  2780. </div>
  2781. <div
  2782. class="commentList"
  2783. style="margin-right: 15px"
  2784. >
  2785. <div
  2786. class="commentImg"
  2787. @click="
  2788. commentOther(
  2789. w,
  2790. toolIndex,
  2791. wIndex,
  2792. null,
  2793. g.id
  2794. )
  2795. "
  2796. >
  2797. <img
  2798. src="../../assets/icon/comment/comment.png"
  2799. alt=""
  2800. />
  2801. </div>
  2802. <div>{{ w.commentCount }}</div>
  2803. </div>
  2804. </div>
  2805. </div>
  2806. </div>
  2807. </div>
  2808. <div class="group_work" v-else>暂无提交作业</div>
  2809. </div>
  2810. </div>
  2811. <div
  2812. :id="'tool-' + toolIndex"
  2813. :style="{
  2814. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2815. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2816. }"
  2817. class="worksDetailBox"
  2818. v-if="
  2819. worksStudent.length &&
  2820. worksStudent[toolIndex].length > 0
  2821. "
  2822. >
  2823. <div
  2824. class="works"
  2825. style="
  2826. width: 200px;
  2827. height: 140px;
  2828. margin: 10px 10px 10px 0;
  2829. border-radius: 15px;
  2830. box-shadow: 0 0 6px 1px #dfdada;
  2831. "
  2832. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2833. :key="wIndex"
  2834. :class="w.type == 1 ? 'isTypeOne' : ''"
  2835. >
  2836. <div class="workImg" v-if="w.type == 0">
  2837. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2838. <img
  2839. :src="w.works"
  2840. @click="previewImg(w.works,w)"
  2841. alt
  2842. />
  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="workImg" v-if="w.type == 1">
  2882. <img :src="word" @click="openFile(w.works)" alt />
  2883. <!-- @click="openFile(w.works)" -->
  2884. <div
  2885. class="answerScore"
  2886. v-if="w.score"
  2887. @click.stop="openScore(w)"
  2888. :class="{
  2889. rightW:
  2890. w.userid == userid ||
  2891. tType == 1 ||
  2892. tType == 4 ||
  2893. w.ateacher == userid,
  2894. }"
  2895. >
  2896. {{ JSON.parse(w.score).wScore }}分
  2897. </div>
  2898. <div
  2899. class="answerScore"
  2900. @click.stop="openScore(w)"
  2901. v-else-if="courseDetail.userid == userid"
  2902. :class="{
  2903. rightW:
  2904. w.userid == userid ||
  2905. tType == 1 ||
  2906. tType == 4 ||
  2907. w.ateacher == userid,
  2908. }"
  2909. >
  2910. 评分
  2911. </div>
  2912. <img
  2913. class="deleteImg"
  2914. src="../../assets/deleteworks.png"
  2915. v-if="
  2916. w.userid == userid || tType == 1 || tType == 4
  2917. "
  2918. @click.stop="deleteWorks(w.wid)"
  2919. alt
  2920. />
  2921. </div>
  2922. <div class="workImg" v-if="w.type == 3">
  2923. <img
  2924. style="cursor: pointer"
  2925. :src="video"
  2926. @click="openVideo(w)"
  2927. alt
  2928. />
  2929. <!-- @click="openVideo(w.works)" -->
  2930. <div
  2931. class="answerScore"
  2932. v-if="w.score"
  2933. @click.stop="openScore(w)"
  2934. :class="{
  2935. rightW:
  2936. w.userid == userid ||
  2937. tType == 1 ||
  2938. tType == 4 ||
  2939. w.ateacher == userid,
  2940. }"
  2941. >
  2942. {{ JSON.parse(w.score).wScore }}分
  2943. </div>
  2944. <div
  2945. class="answerScore"
  2946. @click.stop="openScore(w)"
  2947. v-else-if="courseDetail.userid == userid"
  2948. :class="{
  2949. rightW:
  2950. w.userid == userid ||
  2951. tType == 1 ||
  2952. tType == 4 ||
  2953. w.ateacher == userid,
  2954. }"
  2955. >
  2956. 评分
  2957. </div>
  2958. <img
  2959. class="deleteImg"
  2960. src="../../assets/deleteworks.png"
  2961. v-if="
  2962. w.userid == userid || tType == 1 || tType == 4
  2963. "
  2964. @click.stop="deleteWorks(w.wid)"
  2965. alt
  2966. />
  2967. </div>
  2968. <div class="workImg" v-if="w.type == 12">
  2969. <img
  2970. style="cursor: pointer"
  2971. :src="word2"
  2972. @click="downloadFile(w.works)"
  2973. alt
  2974. />
  2975. <!-- @click="openVideo(w.works)" -->
  2976. <div
  2977. class="answerScore"
  2978. v-if="w.score"
  2979. @click.stop="openScore(w)"
  2980. :class="{
  2981. rightW:
  2982. w.userid == userid ||
  2983. tType == 1 ||
  2984. tType == 4 ||
  2985. w.ateacher == userid,
  2986. }"
  2987. >
  2988. {{ JSON.parse(w.score).wScore }}分
  2989. </div>
  2990. <div
  2991. class="answerScore"
  2992. @click.stop="openScore(w)"
  2993. v-else-if="courseDetail.userid == userid"
  2994. :class="{
  2995. rightW:
  2996. w.userid == userid ||
  2997. tType == 1 ||
  2998. tType == 4 ||
  2999. w.ateacher == userid,
  3000. }"
  3001. >
  3002. 评分
  3003. </div>
  3004. <img
  3005. class="deleteImg"
  3006. src="../../assets/deleteworks.png"
  3007. v-if="
  3008. w.userid == userid || tType == 1 || tType == 4
  3009. "
  3010. @click.stop="deleteWorks(w.wid)"
  3011. alt
  3012. />
  3013. </div>
  3014. <div class="comment" style="min-width: 200px">
  3015. <div class="worksName">
  3016. <div>{{ w.sName }}</div>
  3017. </div>
  3018. <div class="commentList">
  3019. <div class="commentList">
  3020. <div
  3021. class="commentImg"
  3022. @click="
  3023. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3024. "
  3025. >
  3026. <img
  3027. :src="w.isLikes == true ? likes : noLikes"
  3028. alt=""
  3029. />
  3030. </div>
  3031. <div>{{ w.likesCount }}</div>
  3032. </div>
  3033. <div class="commentList" style="margin-right: 15px">
  3034. <div
  3035. class="commentImg"
  3036. @click="commentOther(w, toolIndex, wIndex)"
  3037. >
  3038. <img
  3039. src="../../assets/icon/comment/comment.png"
  3040. alt=""
  3041. />
  3042. </div>
  3043. <div>{{ w.commentCount }}</div>
  3044. </div>
  3045. </div>
  3046. </div>
  3047. </div>
  3048. </div>
  3049. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3050. 未提交
  3051. </div>
  3052. <div
  3053. class="noWorksS"
  3054. v-if="noWorksS && noWorksS[toolIndex].length"
  3055. >
  3056. <div
  3057. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3058. :key="sIndex"
  3059. class="noWorksName"
  3060. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3061. >
  3062. <el-tooltip effect="dark" :content="s.student" placement="top">
  3063. <span>{{ s.student }}</span>
  3064. </el-tooltip>
  3065. </div>
  3066. </div>
  3067. </div>
  3068. <div
  3069. v-if="
  3070. tType &&
  3071. ((tType == 2 && sIsOpen == true) ||
  3072. tType == 1 ||
  3073. tType == 4) &&
  3074. tool.tool.indexOf(70) != -1
  3075. "
  3076. class="worksBox"
  3077. >
  3078. <div
  3079. class="zuoyeYulan"
  3080. v-if="
  3081. (worksStudent.length &&
  3082. worksStudent[toolIndex].length > 0)
  3083. "
  3084. >
  3085. <div class="worksTop">
  3086. <div>作业预览</div>
  3087. <div
  3088. class="corOpen"
  3089. @click="contract(toolIndex)"
  3090. v-if="
  3091. (isCloseList[toolIndex].isCloseBoolean) &&
  3092. isCloseList[toolIndex].isClose == 0
  3093. "
  3094. >
  3095. 折叠
  3096. </div>
  3097. <div
  3098. class="corOpen"
  3099. @click="contract(toolIndex)"
  3100. v-if="isCloseList[toolIndex].isClose == 1"
  3101. >
  3102. 展开
  3103. </div>
  3104. </div>
  3105. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3106. </div>
  3107. <div
  3108. :id="'tool-' + toolIndex"
  3109. :style="{
  3110. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3111. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3112. }"
  3113. class="worksDetailBox"
  3114. v-if="
  3115. worksStudent.length &&
  3116. worksStudent[toolIndex].length > 0
  3117. "
  3118. >
  3119. <div
  3120. class="works"
  3121. style="
  3122. width: 200px;
  3123. height: 140px;
  3124. margin: 10px 10px 10px 0;
  3125. border-radius: 15px;
  3126. box-shadow: 0 0 6px 1px #dfdada;
  3127. "
  3128. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3129. :key="wIndex"
  3130. :class="w.type == 1 ? 'isTypeOne' : ''"
  3131. >
  3132. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3133. <img :src="word" alt />
  3134. <img
  3135. class="deleteImg"
  3136. src="../../assets/deleteworks.png"
  3137. v-if="
  3138. w.userid == userid || tType == 1 || tType == 4
  3139. "
  3140. @click.stop="deleteWorks(w.wid)"
  3141. alt
  3142. />
  3143. </div>
  3144. <div class="comment" style="min-width: 200px">
  3145. <div class="worksName">
  3146. <div>{{ w.sName }}</div>
  3147. </div>
  3148. </div>
  3149. </div>
  3150. </div>
  3151. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3152. 未提交
  3153. </div>
  3154. <div
  3155. class="noWorksS"
  3156. v-if="noWorksS && noWorksS[toolIndex].length"
  3157. >
  3158. <div
  3159. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3160. :key="sIndex"
  3161. class="noWorksName"
  3162. >
  3163. <el-tooltip effect="dark" :content="s.student" placement="top">
  3164. <span>{{ s.student }}</span>
  3165. </el-tooltip>
  3166. </div>
  3167. </div>
  3168. </div>
  3169. <div
  3170. v-if="
  3171. tType &&
  3172. tType == 2 &&
  3173. !sIsOpen &&
  3174. tool.tool.indexOf(70) != -1
  3175. "
  3176. class="worksBox"
  3177. >
  3178. <div
  3179. class="zuoyeYulan"
  3180. v-if="workStudent[toolIndex].length > 0"
  3181. >
  3182. <span class="worksTitle">作业预览</span>
  3183. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3184. </div>
  3185. <div
  3186. class="worksDetailBox"
  3187. v-if="workStudent[toolIndex].length > 0"
  3188. >
  3189. <div
  3190. class="works"
  3191. style="
  3192. width: 200px;
  3193. height: 140px;
  3194. margin: 10px 10px 10px 0;
  3195. box-shadow: 0 0 6px 1px #dfdada;
  3196. "
  3197. v-for="(w, wIndex) in workStudent[toolIndex]"
  3198. :key="wIndex"
  3199. >
  3200. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3201. <img :src="word" alt />
  3202. <img
  3203. class="deleteImg"
  3204. src="../../assets/deleteworks.png"
  3205. v-if="
  3206. w.userid == userid || tType == 1 || tType == 4
  3207. "
  3208. @click.stop="deleteWorks(w.wid)"
  3209. alt
  3210. />
  3211. </div>
  3212. <div class="worksName">
  3213. <div>{{ w.sName }}</div>
  3214. </div>
  3215. </div>
  3216. </div>
  3217. </div>
  3218. <div
  3219. v-if="
  3220. tType &&
  3221. ((tType == 2 && sIsOpen == true) ||
  3222. tType == 1 ||
  3223. tType == 4) &&
  3224. tool.tool.indexOf(32) != -1
  3225. "
  3226. class="worksBox"
  3227. >
  3228. <div
  3229. class="zuoyeYulan"
  3230. v-if="
  3231. worksStudent.length &&
  3232. worksStudent[toolIndex].length > 0
  3233. "
  3234. >
  3235. <div class="worksTop">
  3236. <div>作业预览</div>
  3237. <div
  3238. class="corOpen"
  3239. @click="contract(toolIndex)"
  3240. v-if="
  3241. (isCloseList[toolIndex].isCloseBoolean) &&
  3242. isCloseList[toolIndex].isClose == 0
  3243. "
  3244. >
  3245. 折叠
  3246. </div>
  3247. <div
  3248. class="corOpen"
  3249. @click="contract(toolIndex)"
  3250. v-if="isCloseList[toolIndex].isClose == 1"
  3251. >
  3252. 展开
  3253. </div>
  3254. </div>
  3255. </div>
  3256. <div
  3257. :id="'tool-' + toolIndex"
  3258. :style="{
  3259. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3260. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3261. }"
  3262. class="worksDetailBox"
  3263. v-if="
  3264. worksStudent.length &&
  3265. worksStudent[toolIndex].length > 0
  3266. "
  3267. >
  3268. <div
  3269. class="works"
  3270. style="
  3271. width: 200px;
  3272. height: 140px;
  3273. margin: 10px 10px 10px 0;
  3274. border-radius: 15px;
  3275. box-shadow: 0 0 6px 1px #dfdada;
  3276. "
  3277. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3278. :key="wIndex"
  3279. :class="w.type == 1 ? 'isTypeOne' : ''"
  3280. >
  3281. <div class="workImg">
  3282. <img
  3283. :src="word2"
  3284. @click="downloadFile(w.works)"
  3285. alt
  3286. />
  3287. <div
  3288. class="answerScore"
  3289. v-if="w.score"
  3290. @click.stop="openScore(w)"
  3291. :class="{
  3292. rightW:
  3293. w.userid == userid ||
  3294. tType == 1 ||
  3295. tType == 4 ||
  3296. w.ateacher == userid,
  3297. }"
  3298. >
  3299. {{ JSON.parse(w.score).wScore }}分
  3300. </div>
  3301. <div
  3302. class="answerScore"
  3303. @click.stop="openScore(w)"
  3304. v-else-if="courseDetail.userid == userid"
  3305. :class="{
  3306. rightW:
  3307. w.userid == userid ||
  3308. tType == 1 ||
  3309. tType == 4 ||
  3310. w.ateacher == userid,
  3311. }"
  3312. >
  3313. 评分
  3314. </div>
  3315. <img
  3316. class="deleteImg"
  3317. src="../../assets/deleteworks.png"
  3318. v-if="
  3319. w.userid == userid || tType == 1 || tType == 4
  3320. "
  3321. @click.stop="deleteWorks(w.wid)"
  3322. alt
  3323. />
  3324. </div>
  3325. <div class="comment" style="min-width: 200px">
  3326. <div class="worksName">
  3327. <div>{{ w.sName }}</div>
  3328. </div>
  3329. <div class="commentList">
  3330. <div class="commentList">
  3331. <div
  3332. class="commentImg"
  3333. @click="
  3334. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3335. "
  3336. >
  3337. <img
  3338. :src="w.isLikes == true ? likes : noLikes"
  3339. alt=""
  3340. />
  3341. </div>
  3342. <div>{{ w.likesCount }}</div>
  3343. </div>
  3344. <div class="commentList" style="margin-right: 15px">
  3345. <div
  3346. class="commentImg"
  3347. @click="commentOther(w, toolIndex, wIndex)"
  3348. >
  3349. <img
  3350. src="../../assets/icon/comment/comment.png"
  3351. alt=""
  3352. />
  3353. </div>
  3354. <div>{{ w.commentCount }}</div>
  3355. </div>
  3356. </div>
  3357. </div>
  3358. </div>
  3359. </div>
  3360. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3361. 未提交
  3362. </div>
  3363. <div
  3364. class="noWorksS"
  3365. v-if="noWorksS && noWorksS[toolIndex].length"
  3366. >
  3367. <div
  3368. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3369. :key="sIndex"
  3370. class="noWorksName"
  3371. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3372. >
  3373. <el-tooltip effect="dark" :content="s.student" placement="top">
  3374. <span>{{ s.student }}</span>
  3375. </el-tooltip>
  3376. </div>
  3377. </div>
  3378. </div>
  3379. <div
  3380. v-if="
  3381. tType &&
  3382. ((tType == 2 && sIsOpen == true) ||
  3383. tType == 1 ||
  3384. tType == 4) &&
  3385. tool.tool.indexOf(57) != -1
  3386. "
  3387. class="worksBox"
  3388. >
  3389. <div
  3390. class="zuoyeYulan"
  3391. v-if="
  3392. worksStudent.length &&
  3393. worksStudent[toolIndex].length > 0
  3394. "
  3395. >
  3396. <div class="worksTop">
  3397. <div>作业预览</div>
  3398. <div
  3399. class="corOpen"
  3400. @click="contract(toolIndex)"
  3401. v-if="
  3402. (isCloseList[toolIndex].isCloseBoolean) &&
  3403. isCloseList[toolIndex].isClose == 0
  3404. "
  3405. >
  3406. 折叠
  3407. </div>
  3408. <div
  3409. class="corOpen"
  3410. @click="contract(toolIndex)"
  3411. v-if="isCloseList[toolIndex].isClose == 1"
  3412. >
  3413. 展开
  3414. </div>
  3415. </div>
  3416. </div>
  3417. <div
  3418. :id="'tool-' + toolIndex"
  3419. :style="{
  3420. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3421. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3422. }"
  3423. class="worksDetailBox"
  3424. v-if="
  3425. worksStudent.length &&
  3426. worksStudent[toolIndex].length > 0
  3427. "
  3428. >
  3429. <div
  3430. class="works"
  3431. style="
  3432. width: 200px;
  3433. height: 140px;
  3434. margin: 10px 10px 10px 0;
  3435. border-radius: 15px;
  3436. box-shadow: 0 0 6px 1px #dfdada;
  3437. "
  3438. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3439. :key="wIndex"
  3440. :class="w.type == 1 ? 'isTypeOne' : ''"
  3441. >
  3442. <div class="workImg">
  3443. <img
  3444. :src="word2"
  3445. @click="downloadFile(w.works)"
  3446. v-if="w.type == 12"
  3447. alt
  3448. />
  3449. <img
  3450. :src="word2"
  3451. @click="
  3452. openCocoPi(57, toolIndex, w.userid, w.sName)
  3453. "
  3454. v-else-if="w.type == 15"
  3455. alt
  3456. />
  3457. <div
  3458. class="answerScore"
  3459. v-if="w.score"
  3460. @click.stop="openScore(w)"
  3461. :class="{
  3462. rightW:
  3463. w.userid == userid ||
  3464. tType == 1 ||
  3465. tType == 4 ||
  3466. w.ateacher == userid,
  3467. }"
  3468. >
  3469. {{ JSON.parse(w.score).wScore }}分
  3470. </div>
  3471. <div
  3472. class="answerScore"
  3473. @click.stop="openScore(w)"
  3474. v-else-if="courseDetail.userid == userid"
  3475. :class="{
  3476. rightW:
  3477. w.userid == userid ||
  3478. tType == 1 ||
  3479. tType == 4 ||
  3480. w.ateacher == userid,
  3481. }"
  3482. >
  3483. 评分
  3484. </div>
  3485. <img
  3486. class="deleteImg"
  3487. src="../../assets/deleteworks.png"
  3488. v-if="
  3489. w.userid == userid || tType == 1 || tType == 4
  3490. "
  3491. @click.stop="deleteWorks(w.wid)"
  3492. alt
  3493. />
  3494. </div>
  3495. <div class="comment" style="min-width: 200px">
  3496. <div class="worksName">
  3497. <div>{{ w.sName }}</div>
  3498. </div>
  3499. <div class="commentList">
  3500. <div class="commentList">
  3501. <div
  3502. class="commentImg"
  3503. @click="
  3504. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3505. "
  3506. >
  3507. <img
  3508. :src="w.isLikes == true ? likes : noLikes"
  3509. alt=""
  3510. />
  3511. </div>
  3512. <div>{{ w.likesCount }}</div>
  3513. </div>
  3514. <div class="commentList" style="margin-right: 15px">
  3515. <div
  3516. class="commentImg"
  3517. @click="commentOther(w, toolIndex, wIndex)"
  3518. >
  3519. <img
  3520. src="../../assets/icon/comment/comment.png"
  3521. alt=""
  3522. />
  3523. </div>
  3524. <div>{{ w.commentCount }}</div>
  3525. </div>
  3526. </div>
  3527. </div>
  3528. </div>
  3529. </div>
  3530. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3531. 未提交
  3532. </div>
  3533. <div
  3534. class="noWorksS"
  3535. v-if="noWorksS && noWorksS[toolIndex].length"
  3536. >
  3537. <div
  3538. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3539. :key="sIndex"
  3540. class="noWorksName"
  3541. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3542. >
  3543. <el-tooltip effect="dark" :content="s.student" placement="top">
  3544. <span>{{ s.student }}</span>
  3545. </el-tooltip>
  3546. </div>
  3547. </div>
  3548. </div>
  3549. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3550. <div
  3551. class="zuoyeYulan"
  3552. v-if="
  3553. worksStudent.length &&
  3554. worksStudent[toolIndex].length > 0
  3555. "
  3556. >
  3557. <span class="worksTitle">作业预览</span>
  3558. <div
  3559. class="corOpen"
  3560. @click="contract(toolIndex)"
  3561. v-if="
  3562. (isCloseList[toolIndex].isCloseBoolean) &&
  3563. isCloseList[toolIndex].isClose == 0
  3564. "
  3565. >
  3566. 折叠
  3567. </div>
  3568. <div
  3569. class="corOpen"
  3570. @click="contract(toolIndex)"
  3571. v-if="isCloseList[toolIndex].isClose == 1"
  3572. >
  3573. 展开
  3574. </div>
  3575. </div>
  3576. <div
  3577. :id="'tool-' + toolIndex"
  3578. :style="{
  3579. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3580. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3581. }"
  3582. class="worksDetailBox"
  3583. v-if="
  3584. worksStudent.length &&
  3585. worksStudent[toolIndex].length > 0
  3586. "
  3587. >
  3588. <div
  3589. class="works"
  3590. style="
  3591. width: 200px;
  3592. height: 140px;
  3593. margin: 10px 10px 10px 0;
  3594. border-radius: 15px;
  3595. box-shadow: 0 0 6px 1px #dfdada;
  3596. "
  3597. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3598. :key="wIndex"
  3599. :class="w.type == 1 ? 'isTypeOne' : ''"
  3600. >
  3601. <div class="workImg" v-if="w.type == 0">
  3602. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3603. <img
  3604. :src="w.works"
  3605. @click="previewImg(w.works,w)"
  3606. alt
  3607. />
  3608. <div
  3609. class="answerScore"
  3610. v-if="w.score"
  3611. @click.stop="openScore(w)"
  3612. :class="{
  3613. rightW:
  3614. w.userid == userid ||
  3615. tType == 1 ||
  3616. tType == 4 ||
  3617. w.ateacher == userid,
  3618. }"
  3619. >
  3620. {{ JSON.parse(w.score).wScore }}分
  3621. </div>
  3622. <div
  3623. class="answerScore"
  3624. @click.stop="openScore(w)"
  3625. v-else-if="courseDetail.userid == userid"
  3626. :class="{
  3627. rightW:
  3628. w.userid == userid ||
  3629. tType == 1 ||
  3630. tType == 4 ||
  3631. w.ateacher == userid,
  3632. }"
  3633. >
  3634. 评分
  3635. </div>
  3636. <img
  3637. class="deleteImg"
  3638. src="../../assets/deleteworks.png"
  3639. v-if="
  3640. w.userid == userid || tType == 1 || tType == 4
  3641. "
  3642. @click.stop="deleteWorks(w.wid)"
  3643. alt
  3644. />
  3645. </div>
  3646. <div
  3647. class="workImg"
  3648. style="cursor: pointer"
  3649. v-if="w.type == 1"
  3650. >
  3651. <img :src="word" @click="openFile(w.works)" alt />
  3652. <!-- @click="openFile(w.works)" -->
  3653. <div
  3654. class="answerScore"
  3655. v-if="w.score"
  3656. @click.stop="openScore(w)"
  3657. :class="{
  3658. rightW:
  3659. w.userid == userid ||
  3660. tType == 1 ||
  3661. tType == 4 ||
  3662. w.ateacher == userid,
  3663. }"
  3664. >
  3665. {{ JSON.parse(w.score).wScore }}分
  3666. </div>
  3667. <div
  3668. class="answerScore"
  3669. @click.stop="openScore(w)"
  3670. v-else-if="courseDetail.userid == userid"
  3671. :class="{
  3672. rightW:
  3673. w.userid == userid ||
  3674. tType == 1 ||
  3675. tType == 4 ||
  3676. w.ateacher == userid,
  3677. }"
  3678. >
  3679. 评分
  3680. </div>
  3681. <img
  3682. class="deleteImg"
  3683. src="../../assets/deleteworks.png"
  3684. v-if="
  3685. w.userid == userid || tType == 1 || tType == 4
  3686. "
  3687. @click.stop="deleteWorks(w.wid)"
  3688. alt
  3689. />
  3690. </div>
  3691. <div class="workImg" v-if="w.type == 3">
  3692. <img
  3693. style="cursor: pointer"
  3694. :src="video"
  3695. @click="openVideo(w)"
  3696. alt
  3697. />
  3698. <!-- @click="openVideo(w.works)" -->
  3699. <div
  3700. class="answerScore"
  3701. v-if="w.score"
  3702. @click.stop="openScore(w)"
  3703. :class="{
  3704. rightW:
  3705. w.userid == userid ||
  3706. tType == 1 ||
  3707. tType == 4 ||
  3708. w.ateacher == userid,
  3709. }"
  3710. >
  3711. {{ JSON.parse(w.score).wScore }}分
  3712. </div>
  3713. <div
  3714. class="answerScore"
  3715. @click.stop="openScore(w)"
  3716. v-else-if="courseDetail.userid == userid"
  3717. :class="{
  3718. rightW:
  3719. w.userid == userid ||
  3720. tType == 1 ||
  3721. tType == 4 ||
  3722. w.ateacher == userid,
  3723. }"
  3724. >
  3725. 评分
  3726. </div>
  3727. <img
  3728. class="deleteImg"
  3729. src="../../assets/deleteworks.png"
  3730. v-if="
  3731. w.userid == userid || tType == 1 || tType == 4
  3732. "
  3733. @click.stop="deleteWorks(w.wid)"
  3734. alt
  3735. />
  3736. </div>
  3737. <div class="comment" style="min-width: 200px">
  3738. <div class="worksName">
  3739. <div
  3740. style="cursor: pointer"
  3741. @click="
  3742. openSname(w.sName, w.wid, toolIndex, w.userid)
  3743. "
  3744. >
  3745. {{ w.sName }}
  3746. </div>
  3747. </div>
  3748. <div class="commentList">
  3749. <div class="commentList">
  3750. <div
  3751. class="commentImg"
  3752. @click="
  3753. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3754. "
  3755. >
  3756. <img
  3757. :src="w.isLikes == true ? likes : noLikes"
  3758. alt=""
  3759. />
  3760. </div>
  3761. <div>{{ w.likesCount }}</div>
  3762. </div>
  3763. <div class="commentList" style="margin-right: 15px">
  3764. <div
  3765. class="commentImg"
  3766. @click="commentOther(w, toolIndex, wIndex)"
  3767. >
  3768. <img
  3769. src="../../assets/icon/comment/comment.png"
  3770. alt=""
  3771. />
  3772. </div>
  3773. <div>{{ w.commentCount }}</div>
  3774. </div>
  3775. </div>
  3776. </div>
  3777. </div>
  3778. </div>
  3779. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3780. 未提交
  3781. </div>
  3782. <div
  3783. class="noWorksS"
  3784. v-if="noWorksS && noWorksS[toolIndex].length"
  3785. >
  3786. <div
  3787. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3788. :key="sIndex"
  3789. class="noWorksName"
  3790. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3791. >
  3792. <el-tooltip effect="dark" :content="s.student" placement="top">
  3793. <span>{{ s.student }}</span>
  3794. </el-tooltip>
  3795. </div>
  3796. </div>
  3797. </div>
  3798. <div
  3799. v-if="
  3800. tType &&
  3801. ((tType == 2 && sIsOpen == true) ||
  3802. tType == 1 ||
  3803. tType == 4) &&
  3804. tool.tool.indexOf(4) != -1 &&
  3805. (tool.askJson[0].answer ||
  3806. tool.askJson[0].answer === 0) &&
  3807. checkJson[toolIndex].length
  3808. "
  3809. class="xuan_right_box"
  3810. >
  3811. <div
  3812. class="tool_right_box"
  3813. v-for="(item, index) in tool.askJson"
  3814. :key="index"
  3815. >
  3816. <div style="width: calc(100% - 30px);">
  3817. <el-tooltip
  3818. effect="light"
  3819. :content="index + 1 + '、' + item.askstitle"
  3820. placement="top"
  3821. popper-class="text_tooltip"
  3822. >
  3823. <div
  3824. style="
  3825. width: calc(100% - 130px);
  3826. display: block;
  3827. white-space: nowrap;
  3828. overflow: hidden;
  3829. text-overflow: ellipsis;
  3830. word-break: break-word;
  3831. cursor: pointer;
  3832. "
  3833. >
  3834. {{ index + 1 + "、" + item.askstitle }}
  3835. </div>
  3836. </el-tooltip>
  3837. </div>
  3838. <div class="right_box_xuan">
  3839. <span>正确率</span>
  3840. <span>{{
  3841. (checkJson[toolIndex][index].right
  3842. ? checkJson[toolIndex][index].right
  3843. : 0) + "%"
  3844. }}</span>
  3845. </div>
  3846. </div>
  3847. </div>
  3848. <div
  3849. class="xuan_right_box"
  3850. style="background: unset; padding: 0 10px"
  3851. v-if="
  3852. tType &&
  3853. ((tType == 2 && sIsOpen == true) ||
  3854. tType == 1 ||
  3855. tType == 4) &&
  3856. tool.tool.indexOf(4) != -1
  3857. "
  3858. >
  3859. <AskStatic
  3860. v-if="
  3861. worksStudent.length &&
  3862. worksStudent[toolIndex].length > 0
  3863. "
  3864. :askJSON="tool"
  3865. :checkJson="checkJson[toolIndex]"
  3866. ></AskStatic>
  3867. </div>
  3868. <div
  3869. v-if="
  3870. tType &&
  3871. ((tType == 2 && sIsOpen == true) ||
  3872. tType == 1 ||
  3873. tType == 4) &&
  3874. tool.tool.indexOf(4) != -1
  3875. "
  3876. class="worksBox"
  3877. >
  3878. <div
  3879. class="zuoyeYulan"
  3880. v-if="
  3881. worksStudent.length &&
  3882. worksStudent[toolIndex].length > 0
  3883. "
  3884. >
  3885. <div class="worksTop">
  3886. <div>作业预览</div>
  3887. <div
  3888. class="corOpen"
  3889. @click="contract(toolIndex)"
  3890. v-if="
  3891. (isCloseList[toolIndex].isCloseBoolean) &&
  3892. isCloseList[toolIndex].isClose == 0
  3893. "
  3894. >
  3895. 折叠
  3896. </div>
  3897. <div
  3898. class="corOpen"
  3899. @click="contract(toolIndex)"
  3900. v-if="isCloseList[toolIndex].isClose == 1"
  3901. >
  3902. 展开
  3903. </div>
  3904. </div>
  3905. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3906. </div>
  3907. <div>
  3908. <div
  3909. :id="'tool-' + toolIndex"
  3910. :style="{
  3911. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3912. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3913. }"
  3914. class="worksDetailBox"
  3915. v-if="
  3916. worksStudent.length &&
  3917. worksStudent[toolIndex].length > 0
  3918. "
  3919. >
  3920. <div
  3921. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3922. :key="wIndex"
  3923. class="isWorksName2"
  3924. @click="
  3925. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3926. "
  3927. >
  3928. {{ w.sName }}
  3929. <img
  3930. class="deleteImg deleteImg2"
  3931. src="../../assets/deleteworks.png"
  3932. v-if="
  3933. w.userid == userid || tType == 1 || tType == 4
  3934. "
  3935. @click.stop="deleteWorks(w.wid)"
  3936. alt
  3937. />
  3938. </div>
  3939. <!-- <div class="works" style="
  3940. width: 200px;
  3941. height: 140px;
  3942. border-radius: 10px;
  3943. box-shadow: 0 0 6px 1px #dfdada;
  3944. overflow: hidden;
  3945. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3946. <div class="workImg">
  3947. <img src="../../assets/icon/works/noImg.png" @click="
  3948. openTools(
  3949. 4,
  3950. toolIndex,
  3951. taskCount,
  3952. w.works,
  3953. w.sName
  3954. )
  3955. " alt />
  3956. </div>
  3957. <div class="worksName">
  3958. <div>{{ w.sName }}</div>
  3959. <div>{{ w.time }}</div>
  3960. </div>
  3961. </div> -->
  3962. </div>
  3963. </div>
  3964. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3965. 未提交
  3966. </div>
  3967. <div
  3968. class="noWorksS"
  3969. v-if="noWorksS && noWorksS[toolIndex].length"
  3970. >
  3971. <div
  3972. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3973. :key="sIndex"
  3974. class="noWorksName"
  3975. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3976. >
  3977. <el-tooltip effect="dark" :content="s.student" placement="top">
  3978. <span>{{ s.student }}</span>
  3979. </el-tooltip>
  3980. </div>
  3981. </div>
  3982. </div>
  3983. <div
  3984. v-if="
  3985. tType &&
  3986. ((tType == 2 && sIsOpen == true) ||
  3987. tType == 1 ||
  3988. tType == 4) &&
  3989. tool.tool.indexOf(45) != -1 &&
  3990. (tool.testJson.testJson[0].answer ||
  3991. tool.testJson.testJson[0].answer === 0) &&
  3992. checkJson[toolIndex].length
  3993. "
  3994. class="xuan_right_box"
  3995. >
  3996. <div
  3997. class="tool_right_box"
  3998. v-for="(item, index) in tool.testJson.testJson"
  3999. :key="index"
  4000. >
  4001. <div class="right_box_xuan" style="margin-right: 10px">
  4002. <span>正确率</span>
  4003. <span>{{
  4004. (checkJson[toolIndex][index].right
  4005. ? checkJson[toolIndex][index].right
  4006. : 0) + "%"
  4007. }}</span>
  4008. </div>
  4009. <div style="width: calc(100% - 30px);">
  4010. <el-tooltip
  4011. effect="light"
  4012. :content="index + 1 + '、' + item.teststitle"
  4013. placement="top"
  4014. popper-class="text_tooltip"
  4015. >
  4016. <div
  4017. style="
  4018. width: calc(100% - 130px);
  4019. display: block;
  4020. white-space: nowrap;
  4021. overflow: hidden;
  4022. text-overflow: ellipsis;
  4023. word-break: break-word;
  4024. cursor: pointer;
  4025. "
  4026. >
  4027. {{ index + 1 + "、" + item.teststitle }}
  4028. </div>
  4029. </el-tooltip>
  4030. </div>
  4031. </div>
  4032. </div>
  4033. <div
  4034. class="xuan_right_box"
  4035. style="background: unset; padding: 0 10px; width: 91.5%"
  4036. v-if="
  4037. tType &&
  4038. ((tType == 2 && sIsOpen == true) ||
  4039. tType == 1 ||
  4040. tType == 4) &&
  4041. tool.tool.indexOf(45) != -1
  4042. "
  4043. >
  4044. <AskStatic2
  4045. v-if="
  4046. worksStudent.length &&
  4047. worksStudent[toolIndex].length > 0
  4048. "
  4049. :askJSON="tool"
  4050. :checkJson="checkJson[toolIndex]"
  4051. ></AskStatic2>
  4052. </div>
  4053. <div
  4054. v-if="
  4055. tType &&
  4056. ((tType == 2 && sIsOpen == true) ||
  4057. tType == 1 ||
  4058. tType == 4) &&
  4059. tool.tool.indexOf(45) != -1
  4060. "
  4061. class="worksBox"
  4062. >
  4063. <div
  4064. class="zuoyeYulan"
  4065. v-if="
  4066. worksStudent.length &&
  4067. worksStudent[toolIndex].length > 0
  4068. "
  4069. >
  4070. <div class="worksTop">
  4071. <div>作业预览</div>
  4072. <div
  4073. class="corOpen"
  4074. @click="contract(toolIndex)"
  4075. v-if="
  4076. (isCloseList[toolIndex].isCloseBoolean) &&
  4077. isCloseList[toolIndex].isClose == 0
  4078. "
  4079. >
  4080. 折叠
  4081. </div>
  4082. <div
  4083. class="corOpen"
  4084. @click="contract(toolIndex)"
  4085. v-if="isCloseList[toolIndex].isClose == 1"
  4086. >
  4087. 展开
  4088. </div>
  4089. </div>
  4090. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4091. </div>
  4092. <div>
  4093. <div
  4094. :id="'tool-' + toolIndex"
  4095. :style="{
  4096. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4097. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4098. }"
  4099. class="worksDetailBox"
  4100. v-if="
  4101. worksStudent.length &&
  4102. worksStudent[toolIndex].length > 0
  4103. "
  4104. >
  4105. <div
  4106. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4107. :key="wIndex"
  4108. class="isWorksName2"
  4109. @click="
  4110. openTools(
  4111. 45,
  4112. toolIndex,
  4113. taskCount,
  4114. w.works,
  4115. w.sName
  4116. )
  4117. "
  4118. >
  4119. {{ w.sName }}
  4120. <img
  4121. class="deleteImg deleteImg2"
  4122. src="../../assets/deleteworks.png"
  4123. v-if="
  4124. w.userid == userid || tType == 1 || tType == 4
  4125. "
  4126. @click.stop="deleteWorks(w.wid)"
  4127. alt
  4128. />
  4129. </div>
  4130. </div>
  4131. </div>
  4132. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4133. 未提交
  4134. </div>
  4135. <div
  4136. class="noWorksS"
  4137. v-if="noWorksS && noWorksS[toolIndex].length"
  4138. >
  4139. <div
  4140. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4141. :key="sIndex"
  4142. class="noWorksName"
  4143. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4144. >
  4145. <el-tooltip effect="dark" :content="s.student" placement="top">
  4146. <span>{{ s.student }}</span>
  4147. </el-tooltip>
  4148. </div>
  4149. </div>
  4150. </div>
  4151. <div
  4152. v-if="
  4153. tType &&
  4154. ((tType == 2 && sIsOpen == true) ||
  4155. tType == 1 ||
  4156. tType == 4) &&
  4157. tool.tool.indexOf(69) != -1
  4158. "
  4159. class="worksBox"
  4160. >
  4161. <div
  4162. class="zuoyeYulan"
  4163. v-if="
  4164. worksStudent.length &&
  4165. worksStudent[toolIndex].length > 0
  4166. "
  4167. >
  4168. <div class="worksTop">
  4169. <div>作业预览</div>
  4170. <div
  4171. class="corOpen"
  4172. @click="contract(toolIndex)"
  4173. v-if="
  4174. (isCloseList[toolIndex].isCloseBoolean) &&
  4175. isCloseList[toolIndex].isClose == 0
  4176. "
  4177. >
  4178. 折叠
  4179. </div>
  4180. <div
  4181. class="corOpen"
  4182. @click="contract(toolIndex)"
  4183. v-if="isCloseList[toolIndex].isClose == 1"
  4184. >
  4185. 展开
  4186. </div>
  4187. </div>
  4188. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4189. </div>
  4190. <div>
  4191. <div
  4192. :id="'tool-' + toolIndex"
  4193. :style="{
  4194. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4195. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4196. }"
  4197. class="worksDetailBox"
  4198. v-if="
  4199. worksStudent.length &&
  4200. worksStudent[toolIndex].length > 0
  4201. "
  4202. >
  4203. <div
  4204. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4205. :key="wIndex"
  4206. class="isWorksName2"
  4207. style="width: 160px;height: 65px;line-height: 65px;"
  4208. @click="
  4209. openTools(
  4210. 69,
  4211. toolIndex,
  4212. taskCount,
  4213. w.works,
  4214. w.sName,
  4215. w.wid
  4216. )
  4217. "
  4218. >
  4219. {{ w.sName }}
  4220. <img
  4221. class="deleteImg1"
  4222. src="../../assets/evaEnglish.png"
  4223. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4224. alt
  4225. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4226. />
  4227. <img
  4228. class="deleteImg deleteImg2"
  4229. src="../../assets/deleteworks.png"
  4230. v-if="
  4231. w.userid == userid || tType == 1 || tType == 4
  4232. "
  4233. @click.stop="deleteWorks(w.wid)"
  4234. alt
  4235. />
  4236. </div>
  4237. </div>
  4238. </div>
  4239. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4240. 未提交
  4241. </div>
  4242. <div
  4243. class="noWorksS"
  4244. v-if="noWorksS && noWorksS[toolIndex].length"
  4245. >
  4246. <div
  4247. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4248. :key="sIndex"
  4249. class="noWorksName"
  4250. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4251. >
  4252. <el-tooltip effect="dark" :content="s.student" placement="top">
  4253. <span>{{ s.student }}</span>
  4254. </el-tooltip>
  4255. </div>
  4256. </div>
  4257. </div>
  4258. <div
  4259. v-if="
  4260. tType &&
  4261. ((tType == 2 && sIsOpen == true) ||
  4262. tType == 1 ||
  4263. tType == 4) &&
  4264. tool.tool.indexOf(15) != -1
  4265. "
  4266. class="worksBox"
  4267. >
  4268. <div
  4269. class="zuoyeYulan"
  4270. v-if="
  4271. (worksStudent.length &&
  4272. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4273. "
  4274. >
  4275. <div class="worksTop">
  4276. <div>作业预览</div>
  4277. <div
  4278. class="corOpen"
  4279. @click="contract(toolIndex)"
  4280. v-if="
  4281. (isCloseList[toolIndex].isCloseBoolean) &&
  4282. isCloseList[toolIndex].isClose == 0
  4283. "
  4284. >
  4285. 折叠
  4286. </div>
  4287. <div
  4288. class="corOpen"
  4289. @click="contract(toolIndex)"
  4290. v-if="isCloseList[toolIndex].isClose == 1"
  4291. >
  4292. 展开
  4293. </div>
  4294. </div>
  4295. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4296. </div>
  4297. <div
  4298. class="group_workBox"
  4299. v-for="(g, gindex) in courseGroup.group"
  4300. :key="gindex"
  4301. >
  4302. <div class="group_box">
  4303. <div class="group_title">
  4304. <el-tooltip
  4305. class="item"
  4306. effect="light"
  4307. :content="g.name"
  4308. placement="top"
  4309. >
  4310. <div class="group_name">{{ g.name }}</div>
  4311. </el-tooltip>
  4312. </div>
  4313. <div
  4314. class="group_work"
  4315. v-if="
  4316. g.works &&
  4317. g.works.length &&
  4318. g.works[toolIndex].length
  4319. "
  4320. >
  4321. <div
  4322. class="works"
  4323. v-for="(w, wIndex) in g.works[toolIndex]"
  4324. :key="wIndex"
  4325. >
  4326. <div
  4327. class="workImg"
  4328. style="
  4329. border-radius: 15px;
  4330. box-shadow: 0px 0px 5px 5px #eee;
  4331. "
  4332. >
  4333. <div
  4334. class="answerBg"
  4335. style="border-radius: 15px 15px 0 0"
  4336. @click="
  4337. commentOther(w, toolIndex, wIndex, null, g.id)
  4338. "
  4339. >
  4340. <div class="answerContent">
  4341. {{ JSON.parse(w.works)[0].answer }}
  4342. </div>
  4343. <div
  4344. class="answerScore"
  4345. v-if="w.score"
  4346. @click.stop="openScore(w)"
  4347. :class="{
  4348. rightW:
  4349. w.userid == userid ||
  4350. tType == 1 ||
  4351. tType == 4,
  4352. }"
  4353. >
  4354. {{ JSON.parse(w.score).wScore }}分
  4355. </div>
  4356. <div
  4357. class="answerScore"
  4358. @click.stop="openScore(w)"
  4359. v-else-if="courseDetail.userid == userid"
  4360. :class="{
  4361. rightW:
  4362. w.userid == userid ||
  4363. tType == 1 ||
  4364. tType == 4,
  4365. }"
  4366. >
  4367. 评分
  4368. </div>
  4369. <img
  4370. class="deleteImg"
  4371. src="../../assets/deleteworks.png"
  4372. v-if="
  4373. w.userid == userid ||
  4374. tType == 1 ||
  4375. tType == 4
  4376. "
  4377. @click.stop="deleteWorks(w.wid)"
  4378. alt
  4379. />
  4380. </div>
  4381. <div class="comment">
  4382. <div class="worksName">
  4383. <div>{{ w.sName }}</div>
  4384. </div>
  4385. <div class="commentList">
  4386. <div
  4387. class="commentImg"
  4388. @click="
  4389. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4390. "
  4391. >
  4392. <img
  4393. :src="w.isLikes == true ? likes : noLikes"
  4394. alt=""
  4395. />
  4396. </div>
  4397. <div>{{ w.likesCount }}</div>
  4398. </div>
  4399. <div
  4400. class="commentList"
  4401. style="margin-right: 15px"
  4402. >
  4403. <div
  4404. class="commentImg"
  4405. @click="
  4406. commentOther(
  4407. w,
  4408. toolIndex,
  4409. wIndex,
  4410. null,
  4411. g.id
  4412. )
  4413. "
  4414. >
  4415. <img
  4416. src="../../assets/icon/comment/comment.png"
  4417. alt=""
  4418. />
  4419. </div>
  4420. <div>{{ w.commentCount }}</div>
  4421. </div>
  4422. </div>
  4423. </div>
  4424. </div>
  4425. </div>
  4426. <div class="group_work" v-else>暂无提交作业</div>
  4427. </div>
  4428. </div>
  4429. <div
  4430. :id="'tool-' + toolIndex"
  4431. :style="{
  4432. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4433. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4434. }"
  4435. class="worksDetailBox"
  4436. v-if="
  4437. worksStudent.length &&
  4438. worksStudent[toolIndex].length > 0
  4439. "
  4440. >
  4441. <div
  4442. class="works"
  4443. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4444. :key="wIndex"
  4445. >
  4446. <div
  4447. class="workImg"
  4448. style="
  4449. border-radius: 15px;
  4450. box-shadow: 0px 0px 5px 5px #eee;
  4451. "
  4452. >
  4453. <!-- <img
  4454. src="../../assets/icon/works/noImg.png"
  4455. @click="openTools(15, toolIndex, taskCount, w.works)"
  4456. alt=""
  4457. />-->
  4458. <div
  4459. class="answerBg"
  4460. style="border-radius: 15px 15px 0 0"
  4461. @click="commentOther(w, toolIndex, wIndex)"
  4462. >
  4463. <!-- <div>{{ w.sName }}</div> -->
  4464. <div class="answerContent">
  4465. {{ JSON.parse(w.works)[0].answer }}
  4466. </div>
  4467. <div
  4468. class="answerScore"
  4469. v-if="w.score"
  4470. @click.stop="openScore(w)"
  4471. :class="{
  4472. rightW:
  4473. w.userid == userid ||
  4474. tType == 1 ||
  4475. tType == 4,
  4476. }"
  4477. >
  4478. {{ JSON.parse(w.score).wScore }}分
  4479. </div>
  4480. <div
  4481. class="answerScore"
  4482. @click.stop="openScore(w)"
  4483. v-else-if="courseDetail.userid == userid"
  4484. :class="{
  4485. rightW:
  4486. w.userid == userid ||
  4487. tType == 1 ||
  4488. tType == 4,
  4489. }"
  4490. >
  4491. 评分
  4492. </div>
  4493. <img
  4494. class="deleteImg"
  4495. src="../../assets/deleteworks.png"
  4496. v-if="
  4497. w.userid == userid || tType == 1 || tType == 4
  4498. "
  4499. @click.stop="deleteWorks(w.wid)"
  4500. alt
  4501. />
  4502. </div>
  4503. <div class="comment">
  4504. <div class="worksName">
  4505. <div>{{ w.sName }}</div>
  4506. </div>
  4507. <div class="commentList">
  4508. <div
  4509. class="commentImg"
  4510. @click="
  4511. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4512. "
  4513. >
  4514. <img
  4515. :src="w.isLikes == true ? likes : noLikes"
  4516. alt=""
  4517. />
  4518. </div>
  4519. <div>{{ w.likesCount }}</div>
  4520. </div>
  4521. <div class="commentList" style="margin-right: 15px">
  4522. <div
  4523. class="commentImg"
  4524. @click="commentOther(w, toolIndex, wIndex)"
  4525. >
  4526. <img
  4527. src="../../assets/icon/comment/comment.png"
  4528. alt=""
  4529. />
  4530. </div>
  4531. <div>{{ w.commentCount }}</div>
  4532. </div>
  4533. </div>
  4534. </div>
  4535. </div>
  4536. </div>
  4537. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4538. 未提交
  4539. </div>
  4540. <div
  4541. class="noWorksS"
  4542. v-if="noWorksS && noWorksS[toolIndex].length"
  4543. >
  4544. <div
  4545. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4546. :key="sIndex"
  4547. class="noWorksName"
  4548. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4549. >
  4550. <el-tooltip effect="dark" :content="s.student" placement="top">
  4551. <span>{{ s.student }}</span>
  4552. </el-tooltip>
  4553. </div>
  4554. </div>
  4555. </div>
  4556. <div
  4557. v-if="
  4558. tType &&
  4559. ((tType == 2 && sIsOpen == true) ||
  4560. tType == 1 ||
  4561. tType == 4) &&
  4562. tool.tool.indexOf(1) != -1
  4563. "
  4564. class="worksBox"
  4565. >
  4566. <div
  4567. class="zuoyeYulan"
  4568. v-if="
  4569. (worksStudent.length &&
  4570. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4571. "
  4572. >
  4573. <div class="worksTop">
  4574. <div>作业预览</div>
  4575. <div
  4576. class="corOpen"
  4577. @click="contract(toolIndex)"
  4578. v-if="
  4579. (isCloseList[toolIndex].isCloseBoolean) &&
  4580. isCloseList[toolIndex].isClose == 0
  4581. "
  4582. >
  4583. 折叠
  4584. </div>
  4585. <div
  4586. class="corOpen"
  4587. @click="contract(toolIndex)"
  4588. v-if="isCloseList[toolIndex].isClose == 1"
  4589. >
  4590. 展开
  4591. </div>
  4592. </div>
  4593. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4594. </div>
  4595. <div
  4596. class="group_workBox"
  4597. v-for="(g, gindex) in courseGroup.group"
  4598. :key="gindex"
  4599. >
  4600. <div class="group_box">
  4601. <div class="group_title">
  4602. <el-tooltip
  4603. class="item"
  4604. effect="light"
  4605. :content="g.name"
  4606. placement="top"
  4607. >
  4608. <div class="group_name">{{ g.name }}</div>
  4609. </el-tooltip>
  4610. </div>
  4611. <div
  4612. class="group_work"
  4613. v-if="
  4614. g.works &&
  4615. g.works.length &&
  4616. g.works[toolIndex].length
  4617. "
  4618. >
  4619. <div
  4620. class="works"
  4621. style="
  4622. width: 200px;
  4623. height: 140px;
  4624. margin: 10px 10px 10px 0;
  4625. border-radius: 15px;
  4626. box-shadow: 0 0 6px 1px #dfdada;
  4627. "
  4628. v-for="(w, wIndex) in g.works[toolIndex]"
  4629. :key="wIndex"
  4630. :class="w.type == 1 ? 'isTypeOne' : ''"
  4631. >
  4632. <div class="workImg">
  4633. <img
  4634. :src="w.works"
  4635. @click="previewImg(w.works,w)"
  4636. alt
  4637. />
  4638. <div
  4639. class="answerScore"
  4640. v-if="w.score"
  4641. @click.stop="openScore(w)"
  4642. :class="{
  4643. rightW:
  4644. w.userid == userid ||
  4645. tType == 1 ||
  4646. tType == 4,
  4647. }"
  4648. >
  4649. {{ JSON.parse(w.score).wScore }}分
  4650. </div>
  4651. <div
  4652. class="answerScore"
  4653. @click.stop="openScore(w)"
  4654. v-else-if="courseDetail.userid == userid"
  4655. :class="{
  4656. rightW:
  4657. w.userid == userid ||
  4658. tType == 1 ||
  4659. tType == 4,
  4660. }"
  4661. >
  4662. 评分
  4663. </div>
  4664. <img
  4665. class="deleteImg"
  4666. src="../../assets/deleteworks.png"
  4667. v-if="
  4668. w.userid == userid || tType == 1 || tType == 4
  4669. "
  4670. @click.stop="deleteWorks(w.wid)"
  4671. alt
  4672. />
  4673. </div>
  4674. <div class="comment" style="min-width: 200px">
  4675. <div class="worksName">
  4676. <div>{{ w.sName }}</div>
  4677. </div>
  4678. <div class="commentList">
  4679. <div class="commentList">
  4680. <div
  4681. class="commentImg"
  4682. @click="
  4683. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4684. "
  4685. >
  4686. <img
  4687. :src="w.isLikes == true ? likes : noLikes"
  4688. alt=""
  4689. />
  4690. </div>
  4691. <div>{{ w.likesCount }}</div>
  4692. </div>
  4693. <div
  4694. class="commentList"
  4695. style="margin-right: 15px"
  4696. >
  4697. <div
  4698. class="commentImg"
  4699. @click="
  4700. commentOther(
  4701. w,
  4702. toolIndex,
  4703. wIndex,
  4704. null,
  4705. g.id
  4706. )
  4707. "
  4708. >
  4709. <img
  4710. src="../../assets/icon/comment/comment.png"
  4711. alt=""
  4712. />
  4713. </div>
  4714. <div>{{ w.commentCount }}</div>
  4715. </div>
  4716. </div>
  4717. </div>
  4718. </div>
  4719. </div>
  4720. <div class="group_work" v-else>暂无提交作业</div>
  4721. </div>
  4722. </div>
  4723. <div
  4724. :id="'tool-' + toolIndex"
  4725. :style="{
  4726. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4727. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4728. }"
  4729. class="worksDetailBox"
  4730. v-if="
  4731. worksStudent.length &&
  4732. worksStudent[toolIndex].length > 0
  4733. "
  4734. >
  4735. <div
  4736. class="works"
  4737. style="
  4738. width: 200px;
  4739. height: 140px;
  4740. margin: 10px 10px 10px 0;
  4741. border-radius: 15px;
  4742. box-shadow: 0 0 6px 1px #dfdada;
  4743. "
  4744. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4745. :key="wIndex"
  4746. >
  4747. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4748. <div class="workImg">
  4749. <img
  4750. :src="w.works"
  4751. @click="previewImg(w.works,w)"
  4752. alt
  4753. />
  4754. <div
  4755. class="answerScore"
  4756. v-if="w.score"
  4757. @click.stop="openScore(w)"
  4758. :class="{
  4759. rightW:
  4760. w.userid == userid || tType == 1 || tType == 4,
  4761. }"
  4762. >
  4763. {{ JSON.parse(w.score).wScore }}分
  4764. </div>
  4765. <div
  4766. class="answerScore"
  4767. @click.stop="openScore(w)"
  4768. v-else-if="courseDetail.userid == userid"
  4769. :class="{
  4770. rightW:
  4771. w.userid == userid || tType == 1 || tType == 4,
  4772. }"
  4773. >
  4774. 评分
  4775. </div>
  4776. <img
  4777. class="deleteImg"
  4778. src="../../assets/deleteworks.png"
  4779. v-if="
  4780. w.userid == userid || tType == 1 || tType == 4
  4781. "
  4782. @click.stop="deleteWorks(w.wid)"
  4783. alt
  4784. />
  4785. </div>
  4786. <div class="comment" style="min-width: 200px">
  4787. <div class="worksName">
  4788. <div>{{ w.sName }}</div>
  4789. </div>
  4790. <div class="commentList">
  4791. <div class="commentList">
  4792. <div
  4793. class="commentImg"
  4794. @click="
  4795. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4796. "
  4797. >
  4798. <img
  4799. :src="w.isLikes == true ? likes : noLikes"
  4800. alt=""
  4801. />
  4802. </div>
  4803. <div>{{ w.likesCount }}</div>
  4804. </div>
  4805. <div class="commentList" style="margin-right: 15px">
  4806. <div
  4807. class="commentImg"
  4808. @click="commentOther(w, toolIndex, wIndex)"
  4809. >
  4810. <img
  4811. src="../../assets/icon/comment/comment.png"
  4812. alt=""
  4813. />
  4814. </div>
  4815. <div>{{ w.commentCount }}</div>
  4816. </div>
  4817. </div>
  4818. </div>
  4819. </div>
  4820. </div>
  4821. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4822. 未提交
  4823. </div>
  4824. <div
  4825. class="noWorksS"
  4826. v-if="noWorksS && noWorksS[toolIndex].length"
  4827. >
  4828. <div
  4829. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4830. :key="sIndex"
  4831. class="noWorksName"
  4832. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4833. >
  4834. <el-tooltip effect="dark" :content="s.student" placement="top">
  4835. <span>{{ s.student }}</span>
  4836. </el-tooltip>
  4837. </div>
  4838. </div>
  4839. </div>
  4840. <div
  4841. v-if="
  4842. tType &&
  4843. ((tType == 2 && sIsOpen == true) ||
  4844. tType == 1 ||
  4845. tType == 4) &&
  4846. tool.tool.indexOf(3) != -1
  4847. "
  4848. class="worksBox"
  4849. >
  4850. <div
  4851. class="zuoyeYulan"
  4852. v-if="
  4853. (worksStudent.length &&
  4854. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4855. "
  4856. >
  4857. <div class="worksTop">
  4858. <div>作业预览</div>
  4859. <div
  4860. class="corOpen"
  4861. @click="contract(toolIndex)"
  4862. v-if="
  4863. (isCloseList[toolIndex].isCloseBoolean) &&
  4864. isCloseList[toolIndex].isClose == 0
  4865. "
  4866. >
  4867. 折叠
  4868. </div>
  4869. <div
  4870. class="corOpen"
  4871. @click="contract(toolIndex)"
  4872. v-if="isCloseList[toolIndex].isClose == 1"
  4873. >
  4874. 展开
  4875. </div>
  4876. </div>
  4877. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4878. </div>
  4879. <div
  4880. class="group_workBox"
  4881. v-for="(g, gindex) in courseGroup.group"
  4882. :key="gindex"
  4883. >
  4884. <div class="group_box">
  4885. <div class="group_title">
  4886. <el-tooltip
  4887. class="item"
  4888. effect="light"
  4889. :content="g.name"
  4890. placement="top"
  4891. >
  4892. <div class="group_name">{{ g.name }}</div>
  4893. </el-tooltip>
  4894. </div>
  4895. <div
  4896. class="group_work"
  4897. v-if="
  4898. g.works &&
  4899. g.works.length &&
  4900. g.works[toolIndex].length
  4901. "
  4902. >
  4903. <div
  4904. class="works"
  4905. style="
  4906. width: 200px;
  4907. height: 140px;
  4908. margin: 10px 10px 10px 0;
  4909. border-radius: 15px;
  4910. box-shadow: 0 0 6px 1px #dfdada;
  4911. "
  4912. v-for="(w, wIndex) in g.works[toolIndex]"
  4913. :key="wIndex"
  4914. :class="w.type == 1 ? 'isTypeOne' : ''"
  4915. >
  4916. <div class="workImg">
  4917. <img
  4918. :src="w.works"
  4919. @click="previewImg(w.works,w)"
  4920. alt
  4921. />
  4922. <div
  4923. class="answerScore"
  4924. v-if="w.score"
  4925. @click.stop="openScore(w)"
  4926. :class="{
  4927. rightW:
  4928. w.userid == userid ||
  4929. tType == 1 ||
  4930. tType == 4,
  4931. }"
  4932. >
  4933. {{ JSON.parse(w.score).wScore }}分
  4934. </div>
  4935. <div
  4936. class="answerScore"
  4937. @click.stop="openScore(w)"
  4938. v-else-if="courseDetail.userid == userid"
  4939. :class="{
  4940. rightW:
  4941. w.userid == userid ||
  4942. tType == 1 ||
  4943. tType == 4,
  4944. }"
  4945. >
  4946. 评分
  4947. </div>
  4948. <img
  4949. class="deleteImg"
  4950. src="../../assets/deleteworks.png"
  4951. v-if="
  4952. w.userid == userid || tType == 1 || tType == 4
  4953. "
  4954. @click.stop="deleteWorks(w.wid)"
  4955. alt
  4956. />
  4957. </div>
  4958. <div class="comment" style="min-width: 200px">
  4959. <div class="worksName">
  4960. <div>{{ w.sName }}</div>
  4961. </div>
  4962. <div class="commentList">
  4963. <div class="commentList">
  4964. <div
  4965. class="commentImg"
  4966. @click="
  4967. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4968. "
  4969. >
  4970. <img
  4971. :src="w.isLikes == true ? likes : noLikes"
  4972. alt=""
  4973. />
  4974. </div>
  4975. <div>{{ w.likesCount }}</div>
  4976. </div>
  4977. <div
  4978. class="commentList"
  4979. style="margin-right: 15px"
  4980. >
  4981. <div
  4982. class="commentImg"
  4983. @click="
  4984. commentOther(
  4985. w,
  4986. toolIndex,
  4987. wIndex,
  4988. null,
  4989. g.id
  4990. )
  4991. "
  4992. >
  4993. <img
  4994. src="../../assets/icon/comment/comment.png"
  4995. alt=""
  4996. />
  4997. </div>
  4998. <div>{{ w.commentCount }}</div>
  4999. </div>
  5000. </div>
  5001. </div>
  5002. </div>
  5003. </div>
  5004. <div class="group_work" v-else>暂无提交作业</div>
  5005. </div>
  5006. </div>
  5007. <div
  5008. :id="'tool-' + toolIndex"
  5009. :style="{
  5010. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5011. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5012. }"
  5013. class="worksDetailBox"
  5014. v-if="
  5015. worksStudent.length &&
  5016. worksStudent[toolIndex].length > 0
  5017. "
  5018. >
  5019. <div
  5020. class="works"
  5021. style="
  5022. width: 200px;
  5023. height: 140px;
  5024. margin: 10px 10px 10px 0;
  5025. border-radius: 15px;
  5026. box-shadow: 0 0 6px 1px #dfdada;
  5027. "
  5028. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5029. :key="wIndex"
  5030. >
  5031. <!-- @click="previewImg(w.works)" -->
  5032. <div class="workImg">
  5033. <img
  5034. :src="w.works"
  5035. @click="previewImg(w.works,w)"
  5036. alt
  5037. />
  5038. <div
  5039. class="answerScore"
  5040. v-if="w.score"
  5041. @click.stop="openScore(w)"
  5042. :class="{
  5043. rightW:
  5044. w.userid == userid || tType == 1 || tType == 4,
  5045. }"
  5046. >
  5047. {{ JSON.parse(w.score).wScore }}分
  5048. </div>
  5049. <div
  5050. class="answerScore"
  5051. @click.stop="openScore(w)"
  5052. v-else-if="courseDetail.userid == userid"
  5053. :class="{
  5054. rightW:
  5055. w.userid == userid || tType == 1 || tType == 4,
  5056. }"
  5057. >
  5058. 评分
  5059. </div>
  5060. <img
  5061. class="deleteImg"
  5062. src="../../assets/deleteworks.png"
  5063. v-if="
  5064. w.userid == userid || tType == 1 || tType == 4
  5065. "
  5066. @click.stop="deleteWorks(w.wid)"
  5067. alt
  5068. />
  5069. </div>
  5070. <div class="comment" style="min-width: 200px">
  5071. <div class="worksName">
  5072. <div>{{ w.sName }}</div>
  5073. </div>
  5074. <div class="commentList">
  5075. <div class="commentList">
  5076. <div
  5077. class="commentImg"
  5078. @click="
  5079. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5080. "
  5081. >
  5082. <img
  5083. :src="w.isLikes == true ? likes : noLikes"
  5084. alt=""
  5085. />
  5086. </div>
  5087. <div>{{ w.likesCount }}</div>
  5088. </div>
  5089. <div class="commentList" style="margin-right: 15px">
  5090. <div
  5091. class="commentImg"
  5092. @click="commentOther(w, toolIndex, wIndex)"
  5093. >
  5094. <img
  5095. src="../../assets/icon/comment/comment.png"
  5096. alt=""
  5097. />
  5098. </div>
  5099. <div>{{ w.commentCount }}</div>
  5100. </div>
  5101. </div>
  5102. </div>
  5103. </div>
  5104. </div>
  5105. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5106. 未提交
  5107. </div>
  5108. <div
  5109. class="noWorksS"
  5110. v-if="noWorksS && noWorksS[toolIndex].length"
  5111. >
  5112. <div
  5113. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5114. :key="sIndex"
  5115. class="noWorksName"
  5116. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5117. >
  5118. <el-tooltip effect="dark" :content="s.student" placement="top">
  5119. <span>{{ s.student }}</span>
  5120. </el-tooltip>
  5121. </div>
  5122. </div>
  5123. </div>
  5124. <div
  5125. v-if="
  5126. tType &&
  5127. ((tType == 2 && sIsOpen == true) ||
  5128. tType == 1 ||
  5129. tType == 4) &&
  5130. tool.tool.indexOf(6) != -1
  5131. "
  5132. class="worksBox"
  5133. >
  5134. <div
  5135. class="zuoyeYulan"
  5136. v-if="
  5137. (worksStudent.length &&
  5138. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5139. "
  5140. >
  5141. <div class="worksTop">
  5142. <div>作业预览</div>
  5143. <div
  5144. class="corOpen"
  5145. @click="contract(toolIndex)"
  5146. v-if="
  5147. (isCloseList[toolIndex].isCloseBoolean) &&
  5148. isCloseList[toolIndex].isClose == 0
  5149. "
  5150. >
  5151. 折叠
  5152. </div>
  5153. <div
  5154. class="corOpen"
  5155. @click="contract(toolIndex)"
  5156. v-if="isCloseList[toolIndex].isClose == 1"
  5157. >
  5158. 展开
  5159. </div>
  5160. </div>
  5161. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5162. </div>
  5163. <div
  5164. class="group_workBox"
  5165. v-for="(g, gindex) in courseGroup.group"
  5166. :key="gindex"
  5167. >
  5168. <div class="group_box">
  5169. <div class="group_title">
  5170. <el-tooltip
  5171. class="item"
  5172. effect="light"
  5173. :content="g.name"
  5174. placement="top"
  5175. >
  5176. <div class="group_name">{{ g.name }}</div>
  5177. </el-tooltip>
  5178. </div>
  5179. <div
  5180. class="group_work"
  5181. v-if="
  5182. g.works &&
  5183. g.works.length &&
  5184. g.works[toolIndex].length
  5185. "
  5186. >
  5187. <div
  5188. class="works"
  5189. style="
  5190. width: 200px;
  5191. height: 140px;
  5192. margin: 10px 10px 10px 0;
  5193. border-radius: 15px;
  5194. box-shadow: 0 0 6px 1px #dfdada;
  5195. "
  5196. v-for="(w, wIndex) in g.works[toolIndex]"
  5197. :key="wIndex"
  5198. :class="w.type == 1 ? 'isTypeOne' : ''"
  5199. >
  5200. <div class="workImg">
  5201. <img
  5202. :src="w.works"
  5203. @click="previewImg(w.works,w)"
  5204. alt
  5205. />
  5206. <div
  5207. class="answerScore"
  5208. v-if="w.score"
  5209. @click.stop="openScore(w)"
  5210. :class="{
  5211. rightW:
  5212. w.userid == userid ||
  5213. tType == 1 ||
  5214. tType == 4,
  5215. }"
  5216. >
  5217. {{ JSON.parse(w.score).wScore }}分
  5218. </div>
  5219. <div
  5220. class="answerScore"
  5221. @click.stop="openScore(w)"
  5222. v-else-if="courseDetail.userid == userid"
  5223. :class="{
  5224. rightW:
  5225. w.userid == userid ||
  5226. tType == 1 ||
  5227. tType == 4,
  5228. }"
  5229. >
  5230. 评分
  5231. </div>
  5232. <img
  5233. class="deleteImg"
  5234. src="../../assets/deleteworks.png"
  5235. v-if="
  5236. w.userid == userid || tType == 1 || tType == 4
  5237. "
  5238. @click.stop="deleteWorks(w.wid)"
  5239. alt
  5240. />
  5241. </div>
  5242. <div class="comment" style="min-width: 200px">
  5243. <div class="worksName">
  5244. <div>{{ w.sName }}</div>
  5245. </div>
  5246. <div class="commentList">
  5247. <div class="commentList">
  5248. <div
  5249. class="commentImg"
  5250. @click="
  5251. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5252. "
  5253. >
  5254. <img
  5255. :src="w.isLikes == true ? likes : noLikes"
  5256. alt=""
  5257. />
  5258. </div>
  5259. <div>{{ w.likesCount }}</div>
  5260. </div>
  5261. <div
  5262. class="commentList"
  5263. style="margin-right: 15px"
  5264. >
  5265. <div
  5266. class="commentImg"
  5267. @click="
  5268. commentOther(
  5269. w,
  5270. toolIndex,
  5271. wIndex,
  5272. null,
  5273. g.id
  5274. )
  5275. "
  5276. >
  5277. <img
  5278. src="../../assets/icon/comment/comment.png"
  5279. alt=""
  5280. />
  5281. </div>
  5282. <div>{{ w.commentCount }}</div>
  5283. </div>
  5284. </div>
  5285. </div>
  5286. </div>
  5287. </div>
  5288. <div class="group_work" v-else>暂无提交作业</div>
  5289. </div>
  5290. </div>
  5291. <div
  5292. :id="'tool-' + toolIndex"
  5293. :style="{
  5294. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5295. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5296. }"
  5297. class="worksDetailBox"
  5298. v-if="
  5299. worksStudent.length &&
  5300. worksStudent[toolIndex].length > 0
  5301. "
  5302. >
  5303. <div
  5304. class="works"
  5305. style="
  5306. width: 200px;
  5307. height: 140px;
  5308. margin: 10px 10px 10px 0;
  5309. border-radius: 15px;
  5310. box-shadow: 0 0 6px 1px #dfdada;
  5311. "
  5312. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5313. :key="wIndex"
  5314. >
  5315. <!-- @click="previewImg(w.works)" -->
  5316. <div class="workImg">
  5317. <img
  5318. :src="w.works"
  5319. @click="previewImg(w.works,w)"
  5320. alt
  5321. />
  5322. <div
  5323. class="answerScore"
  5324. v-if="w.score"
  5325. @click.stop="openScore(w)"
  5326. :class="{
  5327. rightW:
  5328. w.userid == userid || tType == 1 || tType == 4,
  5329. }"
  5330. >
  5331. {{ JSON.parse(w.score).wScore }}分
  5332. </div>
  5333. <div
  5334. class="answerScore"
  5335. @click.stop="openScore(w)"
  5336. v-else-if="courseDetail.userid == userid"
  5337. :class="{
  5338. rightW:
  5339. w.userid == userid || tType == 1 || tType == 4,
  5340. }"
  5341. >
  5342. 评分
  5343. </div>
  5344. <img
  5345. class="deleteImg"
  5346. src="../../assets/deleteworks.png"
  5347. v-if="
  5348. w.userid == userid || tType == 1 || tType == 4
  5349. "
  5350. @click.stop="deleteWorks(w.wid)"
  5351. alt
  5352. />
  5353. </div>
  5354. <div class="comment" style="min-width: 200px">
  5355. <div class="worksName">
  5356. <div>{{ w.sName }}</div>
  5357. </div>
  5358. <div class="commentList">
  5359. <div class="commentList">
  5360. <div
  5361. class="commentImg"
  5362. @click="
  5363. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5364. "
  5365. >
  5366. <img
  5367. :src="w.isLikes == true ? likes : noLikes"
  5368. alt=""
  5369. />
  5370. </div>
  5371. <div>{{ w.likesCount }}</div>
  5372. </div>
  5373. <div class="commentList" style="margin-right: 15px">
  5374. <div
  5375. class="commentImg"
  5376. @click="commentOther(w, toolIndex, wIndex)"
  5377. >
  5378. <img
  5379. src="../../assets/icon/comment/comment.png"
  5380. alt=""
  5381. />
  5382. </div>
  5383. <div>{{ w.commentCount }}</div>
  5384. </div>
  5385. </div>
  5386. </div>
  5387. </div>
  5388. </div>
  5389. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5390. 未提交
  5391. </div>
  5392. <div
  5393. class="noWorksS"
  5394. v-if="noWorksS && noWorksS[toolIndex].length"
  5395. >
  5396. <div
  5397. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5398. :key="sIndex"
  5399. class="noWorksName"
  5400. >
  5401. <el-tooltip effect="dark" :content="s.student" placement="top">
  5402. <span>{{ s.student }}</span>
  5403. </el-tooltip>
  5404. </div>
  5405. </div>
  5406. </div>
  5407. <div
  5408. v-if="
  5409. tType &&
  5410. ((tType == 2 && sIsOpen == true) ||
  5411. tType == 1 ||
  5412. tType == 4) &&
  5413. tool.tool.indexOf(7) != -1
  5414. "
  5415. class="worksBox"
  5416. >
  5417. <div
  5418. class="zuoyeYulan"
  5419. v-if="
  5420. (worksStudent.length &&
  5421. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5422. "
  5423. >
  5424. <div class="worksTop">
  5425. <div>作业预览</div>
  5426. <div
  5427. class="corOpen"
  5428. @click="contract(toolIndex)"
  5429. v-if="
  5430. (isCloseList[toolIndex].isCloseBoolean) &&
  5431. isCloseList[toolIndex].isClose == 0
  5432. "
  5433. >
  5434. 折叠
  5435. </div>
  5436. <div
  5437. class="corOpen"
  5438. @click="contract(toolIndex)"
  5439. v-if="isCloseList[toolIndex].isClose == 1"
  5440. >
  5441. 展开
  5442. </div>
  5443. </div>
  5444. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5445. </div>
  5446. <div
  5447. class="group_workBox"
  5448. v-for="(g, gindex) in courseGroup.group"
  5449. :key="gindex"
  5450. >
  5451. <div class="group_box">
  5452. <div class="group_title">
  5453. <el-tooltip
  5454. class="item"
  5455. effect="light"
  5456. :content="g.name"
  5457. placement="top"
  5458. >
  5459. <div class="group_name">{{ g.name }}</div>
  5460. </el-tooltip>
  5461. </div>
  5462. <div
  5463. class="group_work"
  5464. v-if="
  5465. g.works &&
  5466. g.works.length &&
  5467. g.works[toolIndex].length
  5468. "
  5469. >
  5470. <div
  5471. class="works"
  5472. style="
  5473. width: 200px;
  5474. height: 140px;
  5475. margin: 10px 10px 10px 0;
  5476. border-radius: 15px;
  5477. box-shadow: 0 0 6px 1px #dfdada;
  5478. "
  5479. v-for="(w, wIndex) in g.works[toolIndex]"
  5480. :key="wIndex"
  5481. :class="w.type == 1 ? 'isTypeOne' : ''"
  5482. >
  5483. <div class="workImg">
  5484. <img
  5485. :src="w.works"
  5486. @click="previewImg(w.works,w)"
  5487. alt
  5488. />
  5489. <div
  5490. class="answerScore"
  5491. v-if="w.score"
  5492. @click.stop="openScore(w)"
  5493. :class="{
  5494. rightW:
  5495. w.userid == userid ||
  5496. tType == 1 ||
  5497. tType == 4,
  5498. }"
  5499. >
  5500. {{ JSON.parse(w.score).wScore }}分
  5501. </div>
  5502. <div
  5503. class="answerScore"
  5504. @click.stop="openScore(w)"
  5505. v-else-if="courseDetail.userid == userid"
  5506. :class="{
  5507. rightW:
  5508. w.userid == userid ||
  5509. tType == 1 ||
  5510. tType == 4,
  5511. }"
  5512. >
  5513. 评分
  5514. </div>
  5515. <img
  5516. class="deleteImg"
  5517. src="../../assets/deleteworks.png"
  5518. v-if="
  5519. w.userid == userid || tType == 1 || tType == 4
  5520. "
  5521. @click.stop="deleteWorks(w.wid)"
  5522. alt
  5523. />
  5524. </div>
  5525. <div class="comment" style="min-width: 200px">
  5526. <div class="worksName">
  5527. <div>{{ w.sName }}</div>
  5528. </div>
  5529. <div class="commentList">
  5530. <div class="commentList">
  5531. <div
  5532. class="commentImg"
  5533. @click="
  5534. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5535. "
  5536. >
  5537. <img
  5538. :src="w.isLikes == true ? likes : noLikes"
  5539. alt=""
  5540. />
  5541. </div>
  5542. <div>{{ w.likesCount }}</div>
  5543. </div>
  5544. <div
  5545. class="commentList"
  5546. style="margin-right: 15px"
  5547. >
  5548. <div
  5549. class="commentImg"
  5550. @click="
  5551. commentOther(
  5552. w,
  5553. toolIndex,
  5554. wIndex,
  5555. null,
  5556. g.id
  5557. )
  5558. "
  5559. >
  5560. <img
  5561. src="../../assets/icon/comment/comment.png"
  5562. alt=""
  5563. />
  5564. </div>
  5565. <div>{{ w.commentCount }}</div>
  5566. </div>
  5567. </div>
  5568. </div>
  5569. </div>
  5570. </div>
  5571. <div class="group_work" v-else>暂无提交作业</div>
  5572. </div>
  5573. </div>
  5574. <div
  5575. :id="'tool-' + toolIndex"
  5576. :style="{
  5577. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5578. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5579. }"
  5580. class="worksDetailBox"
  5581. v-if="
  5582. worksStudent.length &&
  5583. worksStudent[toolIndex].length > 0
  5584. "
  5585. >
  5586. <div
  5587. class="works"
  5588. style="
  5589. width: 200px;
  5590. height: 140px;
  5591. margin: 10px 10px 10px 0;
  5592. border-radius: 15px;
  5593. box-shadow: 0 0 6px 1px #dfdada;
  5594. "
  5595. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5596. :key="wIndex"
  5597. >
  5598. <!-- @click="previewImg(w.works)" -->
  5599. <div class="workImg">
  5600. <img
  5601. :src="w.works"
  5602. @click="previewImg(w.works,w)"
  5603. alt
  5604. />
  5605. <div
  5606. class="answerScore"
  5607. v-if="w.score"
  5608. @click.stop="openScore(w)"
  5609. :class="{
  5610. rightW:
  5611. w.userid == userid || tType == 1 || tType == 4,
  5612. }"
  5613. >
  5614. {{ JSON.parse(w.score).wScore }}分
  5615. </div>
  5616. <div
  5617. class="answerScore"
  5618. @click.stop="openScore(w)"
  5619. v-else-if="courseDetail.userid == userid"
  5620. :class="{
  5621. rightW:
  5622. w.userid == userid || tType == 1 || tType == 4,
  5623. }"
  5624. >
  5625. 评分
  5626. </div>
  5627. <img
  5628. class="deleteImg"
  5629. src="../../assets/deleteworks.png"
  5630. v-if="
  5631. w.userid == userid || tType == 1 || tType == 4
  5632. "
  5633. @click.stop="deleteWorks(w.wid)"
  5634. alt
  5635. />
  5636. </div>
  5637. <div class="comment" style="min-width: 200px">
  5638. <div class="worksName">
  5639. <div>{{ w.sName }}</div>
  5640. </div>
  5641. <div class="commentList">
  5642. <div class="commentList">
  5643. <div
  5644. class="commentImg"
  5645. @click="
  5646. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5647. "
  5648. >
  5649. <img
  5650. :src="w.isLikes == true ? likes : noLikes"
  5651. alt=""
  5652. />
  5653. </div>
  5654. <div>{{ w.likesCount }}</div>
  5655. </div>
  5656. <div class="commentList" style="margin-right: 15px">
  5657. <div
  5658. class="commentImg"
  5659. @click="commentOther(w, toolIndex, wIndex)"
  5660. >
  5661. <img
  5662. src="../../assets/icon/comment/comment.png"
  5663. alt=""
  5664. />
  5665. </div>
  5666. <div>{{ w.commentCount }}</div>
  5667. </div>
  5668. </div>
  5669. </div>
  5670. </div>
  5671. </div>
  5672. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5673. 未提交
  5674. </div>
  5675. <div
  5676. class="noWorksS"
  5677. v-if="noWorksS && noWorksS[toolIndex].length"
  5678. >
  5679. <div
  5680. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5681. :key="sIndex"
  5682. class="noWorksName"
  5683. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5684. >
  5685. <el-tooltip effect="dark" :content="s.student" placement="top">
  5686. <span>{{ s.student }}</span>
  5687. </el-tooltip>
  5688. </div>
  5689. </div>
  5690. </div>
  5691. <div
  5692. v-if="
  5693. tType &&
  5694. ((tType == 2 && sIsOpen == true) ||
  5695. tType == 1 ||
  5696. tType == 4) &&
  5697. tool.tool.indexOf(26) != -1
  5698. "
  5699. class="worksBox"
  5700. >
  5701. <div
  5702. class="zuoyeYulan"
  5703. v-if="
  5704. worksStudent.length &&
  5705. worksStudent[toolIndex].length > 0
  5706. "
  5707. >
  5708. <div class="worksTop">
  5709. <div>作业预览</div>
  5710. <div
  5711. class="corOpen"
  5712. @click="contract(toolIndex)"
  5713. v-if="
  5714. (isCloseList[toolIndex].isCloseBoolean) &&
  5715. isCloseList[toolIndex].isClose == 0
  5716. "
  5717. >
  5718. 折叠
  5719. </div>
  5720. <div
  5721. class="corOpen"
  5722. @click="contract(toolIndex)"
  5723. v-if="isCloseList[toolIndex].isClose == 1"
  5724. >
  5725. 展开
  5726. </div>
  5727. </div>
  5728. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5729. </div>
  5730. <div
  5731. :id="'tool-' + toolIndex"
  5732. :style="{
  5733. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5734. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5735. }"
  5736. class="worksDetailBox"
  5737. v-if="
  5738. worksStudent.length &&
  5739. worksStudent[toolIndex].length > 0
  5740. "
  5741. >
  5742. <div
  5743. class="works"
  5744. style="width: 240px; height: 140px; overflow: hidden"
  5745. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5746. :key="wIndex"
  5747. :class="w.type == 1 ? 'isTypeOne' : ''"
  5748. >
  5749. <div class="workImg" v-if="w.type == 0">
  5750. <img
  5751. :src="w.works"
  5752. @click="previewImg(w.works,w)"
  5753. alt
  5754. />
  5755. <img
  5756. class="deleteImg"
  5757. src="../../assets/deleteworks.png"
  5758. v-if="
  5759. w.userid == userid || tType == 1 || tType == 4
  5760. "
  5761. @click.stop="deleteWorks(w.wid)"
  5762. alt
  5763. />
  5764. </div>
  5765. <div class="workImg" v-if="w.type == 1">
  5766. <img :src="word" @click="openFile(w.works)" alt />
  5767. <img
  5768. class="deleteImg"
  5769. src="../../assets/deleteworks.png"
  5770. v-if="
  5771. w.userid == userid || tType == 1 || tType == 4
  5772. "
  5773. @click.stop="deleteWorks(w.wid)"
  5774. alt
  5775. />
  5776. </div>
  5777. <div class="worksName">
  5778. <div>{{ w.sName }}</div>
  5779. </div>
  5780. </div>
  5781. </div>
  5782. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5783. 未提交
  5784. </div>
  5785. <div
  5786. class="noWorksS"
  5787. v-if="noWorksS && noWorksS[toolIndex].length"
  5788. >
  5789. <div
  5790. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5791. :key="sIndex"
  5792. class="noWorksName"
  5793. >
  5794. <el-tooltip effect="dark" :content="s.student" placement="top">
  5795. <span>{{ s.student }}</span>
  5796. </el-tooltip>
  5797. </div>
  5798. </div>
  5799. </div>
  5800. <div
  5801. v-if="
  5802. tType &&
  5803. ((tType == 2 && sIsOpen == true) ||
  5804. tType == 1 ||
  5805. tType == 4) &&
  5806. tool.tool.indexOf(40) != -1
  5807. "
  5808. class="worksBox"
  5809. >
  5810. <div
  5811. class="zuoyeYulan"
  5812. v-if="
  5813. worksStudent.length &&
  5814. worksStudent[toolIndex].length > 0
  5815. "
  5816. >
  5817. <div class="worksTop">
  5818. <div>作业预览</div>
  5819. <div
  5820. class="corOpen"
  5821. @click="contract(toolIndex)"
  5822. v-if="
  5823. (isCloseList[toolIndex].isCloseBoolean) &&
  5824. isCloseList[toolIndex].isClose == 0
  5825. "
  5826. >
  5827. 折叠
  5828. </div>
  5829. <div
  5830. class="corOpen"
  5831. @click="contract(toolIndex)"
  5832. v-if="isCloseList[toolIndex].isClose == 1"
  5833. >
  5834. 展开
  5835. </div>
  5836. </div>
  5837. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5838. </div>
  5839. <div
  5840. :id="'tool-' + toolIndex"
  5841. :style="{
  5842. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5843. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5844. }"
  5845. class="worksDetailBox"
  5846. v-if="
  5847. worksStudent.length &&
  5848. worksStudent[toolIndex].length > 0
  5849. "
  5850. >
  5851. <div
  5852. class="works"
  5853. style="
  5854. width: 200px;
  5855. height: 140px;
  5856. margin: 10px 10px 10px 0;
  5857. border-radius: 15px;
  5858. box-shadow: 0 0 6px 1px #dfdada;
  5859. "
  5860. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5861. :key="wIndex"
  5862. :class="w.type == 1 ? 'isTypeOne' : ''"
  5863. >
  5864. <div class="workImg">
  5865. <img
  5866. src="../../assets/icon/works/noImg.png"
  5867. @click="openPj(w.works, toolIndex)"
  5868. alt
  5869. />
  5870. <img
  5871. class="deleteImg"
  5872. src="../../assets/deleteworks.png"
  5873. v-if="
  5874. w.userid == userid || tType == 1 || tType == 4
  5875. "
  5876. @click.stop="deleteWorks(w.wid)"
  5877. alt
  5878. />
  5879. </div>
  5880. <div class="comment" style="min-width: 200px">
  5881. <div class="worksName">
  5882. <div>{{ w.sName }}</div>
  5883. </div>
  5884. <div class="commentList">
  5885. <div class="commentList">
  5886. <div
  5887. class="commentImg"
  5888. @click="
  5889. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5890. "
  5891. >
  5892. <img
  5893. :src="w.isLikes == true ? likes : noLikes"
  5894. alt=""
  5895. />
  5896. </div>
  5897. <div>{{ w.likesCount }}</div>
  5898. </div>
  5899. <div class="commentList" style="margin-right: 15px">
  5900. <div
  5901. class="commentImg"
  5902. @click="commentOther(w, toolIndex, wIndex)"
  5903. >
  5904. <img
  5905. src="../../assets/icon/comment/comment.png"
  5906. alt=""
  5907. />
  5908. </div>
  5909. <div>{{ w.commentCount }}</div>
  5910. </div>
  5911. </div>
  5912. </div>
  5913. </div>
  5914. </div>
  5915. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5916. 未提交
  5917. </div>
  5918. <div
  5919. class="noWorksS"
  5920. v-if="noWorksS && noWorksS[toolIndex].length"
  5921. >
  5922. <div
  5923. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5924. :key="sIndex"
  5925. class="noWorksName"
  5926. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5927. >
  5928. <el-tooltip effect="dark" :content="s.student" placement="top">
  5929. <span>{{ s.student }}</span>
  5930. </el-tooltip>
  5931. </div>
  5932. </div>
  5933. </div>
  5934. <div
  5935. v-if="
  5936. tType &&
  5937. tType == 2 &&
  5938. !sIsOpen &&
  5939. tool.tool.indexOf(40) != -1
  5940. "
  5941. class="worksBox"
  5942. >
  5943. <div
  5944. class="zuoyeYulan"
  5945. v-if="workStudent[toolIndex].length > 0"
  5946. >
  5947. <span class="worksTitle">作业预览</span>
  5948. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5949. </div>
  5950. <div
  5951. class="worksDetailBox"
  5952. v-if="workStudent[toolIndex].length > 0"
  5953. >
  5954. <div
  5955. class="works"
  5956. style="
  5957. width: 200px;
  5958. height: 140px;
  5959. margin: 10px 10px 10px 0;
  5960. "
  5961. v-for="(w, wIndex) in workStudent[toolIndex]"
  5962. :key="wIndex"
  5963. >
  5964. <div class="workImg">
  5965. <img
  5966. src="../../assets/icon/works/noImg.png"
  5967. @click="openPj(w.works, toolIndex)"
  5968. alt
  5969. />
  5970. <img
  5971. class="deleteImg"
  5972. src="../../assets/deleteworks.png"
  5973. v-if="
  5974. w.userid == userid || tType == 1 || tType == 4
  5975. "
  5976. @click.stop="deleteWorks(w.wid)"
  5977. alt
  5978. />
  5979. </div>
  5980. <div class="worksName">
  5981. <div>{{ w.sName }}</div>
  5982. </div>
  5983. </div>
  5984. </div>
  5985. </div>
  5986. <div
  5987. v-if="
  5988. tType &&
  5989. ((tType == 2 && sIsOpen == true) ||
  5990. tType == 1 ||
  5991. tType == 4) &&
  5992. tool.tool.indexOf(41) != -1
  5993. "
  5994. >
  5995. <AnswerData2
  5996. v-if="
  5997. worksStudent.length &&
  5998. worksStudent[toolIndex].length > 0
  5999. "
  6000. :problemJson="tool.selectJson.answer"
  6001. :people="worksStudent[toolIndex]"
  6002. ></AnswerData2>
  6003. </div>
  6004. <div
  6005. v-if="
  6006. tType &&
  6007. ((tType == 2 && sIsOpen == true) ||
  6008. tType == 1 ||
  6009. tType == 4) &&
  6010. tool.tool.indexOf(41) != -1
  6011. "
  6012. class="worksBox"
  6013. >
  6014. <div
  6015. class="zuoyeYulan"
  6016. v-if="
  6017. worksStudent.length &&
  6018. worksStudent[toolIndex].length > 0
  6019. "
  6020. >
  6021. <div class="worksTop">
  6022. <div>作业预览</div>
  6023. <div
  6024. class="corOpen"
  6025. @click="contract(toolIndex)"
  6026. v-if="
  6027. (isCloseList[toolIndex].isCloseBoolean) &&
  6028. isCloseList[toolIndex].isClose == 0
  6029. "
  6030. >
  6031. 折叠
  6032. </div>
  6033. <div
  6034. class="corOpen"
  6035. @click="contract(toolIndex)"
  6036. v-if="isCloseList[toolIndex].isClose == 1"
  6037. >
  6038. 展开
  6039. </div>
  6040. </div>
  6041. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6042. </div>
  6043. <div
  6044. :id="'tool-' + toolIndex"
  6045. :style="{
  6046. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6047. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6048. }"
  6049. class="worksDetailBox"
  6050. v-if="
  6051. worksStudent.length &&
  6052. worksStudent[toolIndex].length > 0
  6053. "
  6054. >
  6055. <div
  6056. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6057. :key="wIndex"
  6058. class="isWorksName2"
  6059. @click="openXz(w, toolIndex)"
  6060. >
  6061. {{ w.sName }}
  6062. <img
  6063. class="deleteImg deleteImg2"
  6064. src="../../assets/deleteworks.png"
  6065. v-if="w.userid == userid || tType == 1 || tType == 4"
  6066. @click.stop="deleteWorks(w.wid)"
  6067. alt
  6068. />
  6069. </div>
  6070. <!-- <div
  6071. class="works"
  6072. style="
  6073. width: 200px;
  6074. height: 140px;
  6075. margin: 10px 10px 10px 0;
  6076. border-radius: 15px;
  6077. box-shadow: 0 0 6px 1px #dfdada;
  6078. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6079. :class="w.type == 5 ? 'isTypeOne' : ''">
  6080. <div class="workImg">
  6081. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6082. </div>
  6083. <div class="worksName">
  6084. <div>{{ w.sName }}</div>
  6085. </div>
  6086. </div> -->
  6087. </div>
  6088. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6089. 未提交
  6090. </div>
  6091. <div
  6092. class="noWorksS"
  6093. v-if="noWorksS && noWorksS[toolIndex].length"
  6094. >
  6095. <div
  6096. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6097. :key="sIndex"
  6098. class="noWorksName"
  6099. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6100. >
  6101. <el-tooltip effect="dark" :content="s.student" placement="top">
  6102. <span>{{ s.student }}</span>
  6103. </el-tooltip>
  6104. </div>
  6105. </div>
  6106. </div>
  6107. <div
  6108. v-if="
  6109. tType &&
  6110. tType == 2 &&
  6111. !sIsOpen &&
  6112. tool.tool.indexOf(41) != -1
  6113. "
  6114. class="worksBox"
  6115. >
  6116. <div
  6117. class="zuoyeYulan"
  6118. v-if="workStudent[toolIndex].length > 0"
  6119. >
  6120. <span class="worksTitle">作业预览</span>
  6121. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6122. </div>
  6123. <div
  6124. class="worksDetailBox"
  6125. v-if="workStudent[toolIndex].length > 0"
  6126. >
  6127. <div
  6128. class="works"
  6129. style="
  6130. width: 200px;
  6131. height: 140px;
  6132. margin: 10px 10px 10px 0;
  6133. "
  6134. v-for="(w, wIndex) in workStudent[toolIndex]"
  6135. :key="wIndex"
  6136. >
  6137. <div class="workImg">
  6138. <img
  6139. src="../../assets/icon/works/noImg.png"
  6140. @click="openXz(w, toolIndex)"
  6141. alt
  6142. />
  6143. <img
  6144. class="deleteImg"
  6145. src="../../assets/deleteworks.png"
  6146. v-if="
  6147. w.userid == userid || tType == 1 || tType == 4
  6148. "
  6149. @click.stop="deleteWorks(w.wid)"
  6150. alt
  6151. />
  6152. </div>
  6153. <div class="worksName">
  6154. <div>{{ w.sName }}</div>
  6155. </div>
  6156. </div>
  6157. </div>
  6158. </div>
  6159. <div v-if="false" class="xuan_right_box">
  6160. <div
  6161. class="tool_right_box"
  6162. v-for="(item, index) in tool.sentenceList"
  6163. :key="index"
  6164. >
  6165. <div>
  6166. <span
  6167. style="word-break: break-all; white-space: normal"
  6168. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6169. >
  6170. </div>
  6171. <div class="right_box_xuan">
  6172. <span>正确率</span>
  6173. <span>{{
  6174. (checkJson[toolIndex][index].right
  6175. ? checkJson[toolIndex][index].right
  6176. : 0) + "%"
  6177. }}</span>
  6178. </div>
  6179. <div class="right_box_xuan">
  6180. <span>答对人数</span>
  6181. <span>{{
  6182. checkJson[toolIndex][index].rightPerson.length
  6183. }}</span>
  6184. </div>
  6185. </div>
  6186. </div>
  6187. <div
  6188. v-if="
  6189. tType &&
  6190. ((tType == 2 && sIsOpen == true) ||
  6191. tType == 1 ||
  6192. tType == 4) &&
  6193. tool.tool.indexOf(47) != -1
  6194. "
  6195. >
  6196. <AnswerData
  6197. v-if="
  6198. checkJson[toolIndex].length &&
  6199. (tool.sentenceList || tool.sentenceList.length > 0)
  6200. "
  6201. :people="checkJson[toolIndex]"
  6202. ></AnswerData>
  6203. </div>
  6204. <div
  6205. v-if="
  6206. tType &&
  6207. tType == 2 &&
  6208. !sIsOpen &&
  6209. tool.tool.indexOf(47) != -1
  6210. "
  6211. class="worksBox"
  6212. >
  6213. <div
  6214. class="zuoyeYulan"
  6215. v-if="workStudent[toolIndex].length > 0"
  6216. >
  6217. <span class="worksTitle">作业预览</span>
  6218. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6219. </div>
  6220. <div
  6221. class="worksDetailBox"
  6222. v-if="workStudent[toolIndex].length > 0"
  6223. >
  6224. <div
  6225. class="works"
  6226. style="
  6227. width: 200px;
  6228. height: 140px;
  6229. margin: 10px 10px 10px 0;
  6230. "
  6231. v-for="(w, wIndex) in workStudent[toolIndex]"
  6232. :key="wIndex"
  6233. >
  6234. <!-- @click="openXz(w, toolIndex)" -->
  6235. <div class="workImg" @click="openSen(w, toolIndex)">
  6236. <img src="../../assets/icon/works/noImg.png" alt />
  6237. <img
  6238. class="deleteImg"
  6239. src="../../assets/deleteworks.png"
  6240. v-if="
  6241. w.userid == userid || tType == 1 || tType == 4
  6242. "
  6243. @click.stop="deleteWorks(w.wid)"
  6244. alt
  6245. />
  6246. </div>
  6247. <div class="worksName">
  6248. <div>
  6249. {{ w.sName }}
  6250. </div>
  6251. </div>
  6252. </div>
  6253. </div>
  6254. </div>
  6255. <div
  6256. v-if="
  6257. tType &&
  6258. ((tType == 2 && sIsOpen == true) ||
  6259. tType == 1 ||
  6260. tType == 4) &&
  6261. tool.tool.indexOf(47) != -1
  6262. "
  6263. class="worksBox"
  6264. >
  6265. <div
  6266. class="zuoyeYulan"
  6267. v-if="
  6268. worksStudent.length &&
  6269. worksStudent[toolIndex].length > 0
  6270. "
  6271. >
  6272. <div class="worksTop">
  6273. <div>作业预览</div>
  6274. <div
  6275. class="corOpen"
  6276. @click="contract(toolIndex)"
  6277. v-if="
  6278. (isCloseList[toolIndex].isCloseBoolean) &&
  6279. isCloseList[toolIndex].isClose == 0
  6280. "
  6281. >
  6282. 折叠
  6283. </div>
  6284. <div
  6285. class="corOpen"
  6286. @click="contract(toolIndex)"
  6287. v-if="isCloseList[toolIndex].isClose == 1"
  6288. >
  6289. 展开
  6290. </div>
  6291. </div>
  6292. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6293. </div>
  6294. <div
  6295. :id="'tool-' + toolIndex"
  6296. :style="{
  6297. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6298. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6299. }"
  6300. class="worksDetailBox"
  6301. v-if="
  6302. worksStudent.length &&
  6303. worksStudent[toolIndex].length > 0
  6304. "
  6305. >
  6306. <!-- @click="openXz(w, toolIndex)" -->
  6307. <div
  6308. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6309. :key="wIndex"
  6310. class="isWorksName2"
  6311. @click="openSen(w, toolIndex)"
  6312. >
  6313. {{ w.sName }}
  6314. <img
  6315. class="deleteImg deleteImg2"
  6316. src="../../assets/deleteworks.png"
  6317. v-if="w.userid == userid || tType == 1 || tType == 4"
  6318. @click.stop="deleteWorks(w.wid)"
  6319. alt
  6320. />
  6321. </div>
  6322. </div>
  6323. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6324. 未提交
  6325. </div>
  6326. <div
  6327. class="noWorksS"
  6328. v-if="noWorksS && noWorksS[toolIndex].length"
  6329. >
  6330. <div
  6331. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6332. :key="sIndex"
  6333. class="noWorksName"
  6334. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6335. >
  6336. <el-tooltip effect="dark" :content="s.student" placement="top">
  6337. <span>{{ s.student }}</span>
  6338. </el-tooltip>
  6339. </div>
  6340. </div>
  6341. </div>
  6342. <div
  6343. v-if="
  6344. tType &&
  6345. ((tType == 2 && sIsOpen == true) ||
  6346. tType == 1 ||
  6347. tType == 4) &&
  6348. tool.tool.indexOf(48) != -1
  6349. "
  6350. class="worksBox"
  6351. >
  6352. <div
  6353. class="zuoyeYulan"
  6354. v-if="
  6355. worksStudent.length &&
  6356. worksStudent[toolIndex].length > 0
  6357. "
  6358. >
  6359. <div class="worksTop">
  6360. <div>作业预览</div>
  6361. <div
  6362. class="corOpen"
  6363. @click="contract(toolIndex)"
  6364. v-if="
  6365. (isCloseList[toolIndex].isCloseBoolean) &&
  6366. isCloseList[toolIndex].isClose == 0
  6367. "
  6368. >
  6369. 折叠
  6370. </div>
  6371. <div
  6372. class="corOpen"
  6373. @click="contract(toolIndex)"
  6374. v-if="isCloseList[toolIndex].isClose == 1"
  6375. >
  6376. 展开
  6377. </div>
  6378. </div>
  6379. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6380. </div>
  6381. <div
  6382. :id="'tool-' + toolIndex"
  6383. :style="{
  6384. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6385. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6386. }"
  6387. class="worksDetailBox"
  6388. v-if="
  6389. worksStudent.length &&
  6390. worksStudent[toolIndex].length > 0
  6391. "
  6392. >
  6393. <div
  6394. class="works"
  6395. style="
  6396. width: 200px;
  6397. height: 140px;
  6398. margin: 10px 10px 10px 0;
  6399. border-radius: 15px;
  6400. box-shadow: 0 0 6px 1px #dfdada;
  6401. "
  6402. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6403. :key="wIndex"
  6404. :class="w.type == 1 ? 'isTypeOne' : ''"
  6405. >
  6406. <div class="workImg">
  6407. <img :src="word" @click="openTable(w)" alt />
  6408. <!-- @click="openFile(w.works)" -->
  6409. <div
  6410. class="answerScore"
  6411. v-if="w.score"
  6412. @click.stop="openScore(w)"
  6413. :class="{
  6414. rightW:
  6415. w.userid == userid ||
  6416. tType == 1 ||
  6417. tType == 4 ||
  6418. w.ateacher == userid,
  6419. }"
  6420. >
  6421. {{ JSON.parse(w.score).wScore }}分
  6422. </div>
  6423. <div
  6424. class="answerScore"
  6425. @click.stop="openScore(w)"
  6426. v-else-if="courseDetail.userid == userid"
  6427. :class="{
  6428. rightW:
  6429. w.userid == userid ||
  6430. tType == 1 ||
  6431. tType == 4 ||
  6432. w.ateacher == userid,
  6433. }"
  6434. >
  6435. 评分
  6436. </div>
  6437. <img
  6438. class="deleteImg"
  6439. src="../../assets/deleteworks.png"
  6440. v-if="
  6441. w.userid == userid || tType == 1 || tType == 4
  6442. "
  6443. @click.stop="deleteWorks(w.wid)"
  6444. alt
  6445. />
  6446. </div>
  6447. <div class="comment" style="min-width: 200px">
  6448. <div class="worksName">
  6449. <div>{{ w.sName }}</div>
  6450. </div>
  6451. <div class="commentList">
  6452. <div class="commentList">
  6453. <div
  6454. class="commentImg"
  6455. @click="
  6456. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6457. "
  6458. >
  6459. <img
  6460. :src="w.isLikes == true ? likes : noLikes"
  6461. alt=""
  6462. />
  6463. </div>
  6464. <div>{{ w.likesCount }}</div>
  6465. </div>
  6466. <div class="commentList" style="margin-right: 15px">
  6467. <div
  6468. class="commentImg"
  6469. @click="commentOther(w, toolIndex, wIndex)"
  6470. >
  6471. <img
  6472. src="../../assets/icon/comment/comment.png"
  6473. alt=""
  6474. />
  6475. </div>
  6476. <div>{{ w.commentCount }}</div>
  6477. </div>
  6478. </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(48, 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(48) != -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. box-shadow: 0 0 6px 1px #dfdada;
  6528. "
  6529. v-for="(w, wIndex) in workStudent[toolIndex]"
  6530. :key="wIndex"
  6531. >
  6532. <div class="workImg">
  6533. <img :src="word" @click="openTable(w)" alt />
  6534. <div
  6535. class="answerScore"
  6536. v-if="w.score"
  6537. @click.stop="openScore(w)"
  6538. :class="{
  6539. rightW:
  6540. w.userid == userid || tType == 1 || tType == 4,
  6541. }"
  6542. >
  6543. {{ JSON.parse(w.score).wScore }}分
  6544. </div>
  6545. <div
  6546. class="answerScore"
  6547. @click.stop="openScore(w)"
  6548. v-else-if="courseDetail.userid == userid"
  6549. :class="{
  6550. rightW:
  6551. w.userid == userid || tType == 1 || tType == 4,
  6552. }"
  6553. >
  6554. 评分
  6555. </div>
  6556. <img
  6557. class="deleteImg"
  6558. src="../../assets/deleteworks.png"
  6559. v-if="
  6560. w.userid == userid || tType == 1 || tType == 4
  6561. "
  6562. @click.stop="deleteWorks(w.wid)"
  6563. alt
  6564. />
  6565. </div>
  6566. <div class="worksName">
  6567. <div>{{ w.sName }}</div>
  6568. </div>
  6569. </div>
  6570. </div>
  6571. </div>
  6572. <div
  6573. v-if="
  6574. tType &&
  6575. ((tType == 2 && sIsOpen == true) ||
  6576. tType == 1 ||
  6577. tType == 4) &&
  6578. tool.tool.indexOf(52) != -1
  6579. "
  6580. class="worksBox"
  6581. >
  6582. <div
  6583. class="zuoyeYulan"
  6584. v-if="
  6585. worksStudent.length &&
  6586. worksStudent[toolIndex].length > 0
  6587. "
  6588. >
  6589. <div class="worksTop">
  6590. <div>作业预览</div>
  6591. <div
  6592. class="corOpen"
  6593. @click="contract(toolIndex)"
  6594. v-if="
  6595. (isCloseList[toolIndex].isCloseBoolean) &&
  6596. isCloseList[toolIndex].isClose == 0
  6597. "
  6598. >
  6599. 折叠
  6600. </div>
  6601. <div
  6602. class="corOpen"
  6603. @click="contract(toolIndex)"
  6604. v-if="isCloseList[toolIndex].isClose == 1"
  6605. >
  6606. 展开
  6607. </div>
  6608. </div>
  6609. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6610. </div>
  6611. <div
  6612. :id="'tool-' + toolIndex"
  6613. :style="{
  6614. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6615. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6616. }"
  6617. class="worksDetailBox"
  6618. v-if="
  6619. worksStudent.length &&
  6620. worksStudent[toolIndex].length > 0
  6621. "
  6622. >
  6623. <div
  6624. class="works"
  6625. style="
  6626. width: 200px;
  6627. height: 140px;
  6628. margin: 10px 10px 10px 0;
  6629. border-radius: 15px;
  6630. box-shadow: 0 0 6px 1px #dfdada;
  6631. "
  6632. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6633. :key="wIndex"
  6634. :class="w.type == 1 ? 'isTypeOne' : ''"
  6635. >
  6636. <div class="workImg">
  6637. <img :src="word" @click="openWord(w)" alt />
  6638. <!-- @click="openFile(w.works)" -->
  6639. <div
  6640. class="answerScore"
  6641. v-if="w.score"
  6642. @click.stop="openScore(w)"
  6643. :class="{
  6644. rightW:
  6645. w.userid == userid ||
  6646. tType == 1 ||
  6647. tType == 4 ||
  6648. w.ateacher == userid,
  6649. }"
  6650. >
  6651. {{ JSON.parse(w.score).wScore }}分
  6652. </div>
  6653. <div
  6654. class="answerScore"
  6655. @click.stop="openScore(w)"
  6656. v-else-if="courseDetail.userid == userid"
  6657. :class="{
  6658. rightW:
  6659. w.userid == userid ||
  6660. tType == 1 ||
  6661. tType == 4 ||
  6662. w.ateacher == userid,
  6663. }"
  6664. >
  6665. 评分
  6666. </div>
  6667. <img
  6668. class="deleteImg"
  6669. src="../../assets/deleteworks.png"
  6670. v-if="
  6671. w.userid == userid || tType == 1 || tType == 4
  6672. "
  6673. @click.stop="deleteWorks(w.wid)"
  6674. alt
  6675. />
  6676. </div>
  6677. <div class="comment" style="min-width: 200px">
  6678. <div class="worksName">
  6679. <div>{{ w.sName }}</div>
  6680. </div>
  6681. <div class="commentList">
  6682. <div class="commentList">
  6683. <div
  6684. class="commentImg"
  6685. @click="
  6686. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6687. "
  6688. >
  6689. <img
  6690. :src="w.isLikes == true ? likes : noLikes"
  6691. alt=""
  6692. />
  6693. </div>
  6694. <div>{{ w.likesCount }}</div>
  6695. </div>
  6696. <div class="commentList" style="margin-right: 15px">
  6697. <div
  6698. class="commentImg"
  6699. @click="commentOther(w, toolIndex, wIndex)"
  6700. >
  6701. <img
  6702. src="../../assets/icon/comment/comment.png"
  6703. alt=""
  6704. />
  6705. </div>
  6706. <div>{{ w.commentCount }}</div>
  6707. </div>
  6708. </div>
  6709. </div>
  6710. </div>
  6711. </div>
  6712. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6713. 未提交
  6714. </div>
  6715. <div
  6716. class="noWorksS"
  6717. v-if="noWorksS && noWorksS[toolIndex].length"
  6718. >
  6719. <div
  6720. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6721. :key="sIndex"
  6722. class="noWorksName"
  6723. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6724. >
  6725. <el-tooltip effect="dark" :content="s.student" placement="top">
  6726. <span>{{ s.student }}</span>
  6727. </el-tooltip>
  6728. </div>
  6729. </div>
  6730. </div>
  6731. <div
  6732. v-if="
  6733. tType &&
  6734. tType == 2 &&
  6735. !sIsOpen &&
  6736. tool.tool.indexOf(52) != -1
  6737. "
  6738. class="worksBox"
  6739. >
  6740. <div
  6741. class="zuoyeYulan"
  6742. v-if="workStudent[toolIndex].length > 0"
  6743. >
  6744. <span class="worksTitle">作业预览</span>
  6745. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6746. </div>
  6747. <div
  6748. class="worksDetailBox"
  6749. v-if="workStudent[toolIndex].length > 0"
  6750. >
  6751. <div
  6752. class="works"
  6753. style="
  6754. width: 200px;
  6755. height: 140px;
  6756. margin: 10px 10px 10px 0;
  6757. box-shadow: 0 0 6px 1px #dfdada;
  6758. "
  6759. v-for="(w, wIndex) in workStudent[toolIndex]"
  6760. :key="wIndex"
  6761. >
  6762. <div class="workImg">
  6763. <img :src="word" @click="openWord(w)" alt />
  6764. <div
  6765. class="answerScore"
  6766. v-if="w.score"
  6767. @click.stop="openScore(w)"
  6768. :class="{
  6769. rightW:
  6770. w.userid == userid || tType == 1 || tType == 4,
  6771. }"
  6772. >
  6773. {{ JSON.parse(w.score).wScore }}分
  6774. </div>
  6775. <div
  6776. class="answerScore"
  6777. @click.stop="openScore(w)"
  6778. v-else-if="courseDetail.userid == userid"
  6779. :class="{
  6780. rightW:
  6781. w.userid == userid || tType == 1 || tType == 4,
  6782. }"
  6783. >
  6784. 评分
  6785. </div>
  6786. <img
  6787. class="deleteImg"
  6788. src="../../assets/deleteworks.png"
  6789. v-if="
  6790. w.userid == userid || tType == 1 || tType == 4
  6791. "
  6792. @click.stop="deleteWorks(w.wid)"
  6793. alt
  6794. />
  6795. </div>
  6796. <div class="worksName">
  6797. <div>{{ w.sName }}</div>
  6798. </div>
  6799. </div>
  6800. </div>
  6801. </div>
  6802. <div
  6803. v-if="tool.tool.indexOf(49) != -1"
  6804. class="xuan_right_box"
  6805. style="margin: 0 15px 0 25px; width: 93%"
  6806. >
  6807. <div
  6808. v-if="courseDetail.userid == userid"
  6809. style="
  6810. display: flex;
  6811. justify-content: flex-end;
  6812. margin-right: 10px;
  6813. "
  6814. >
  6815. <el-button
  6816. type="primary"
  6817. size="small"
  6818. @click="addTools(49, toolIndex, taskCount)"
  6819. >分组设置</el-button
  6820. >
  6821. </div>
  6822. <div
  6823. v-if="groupStudentUid[toolIndex]"
  6824. class="group_staic_box"
  6825. >
  6826. <div
  6827. v-for="(gp, gd) in tool.groupJson.group"
  6828. :key="gd"
  6829. class="group_staic"
  6830. >
  6831. <span> {{ gp.name }}</span>
  6832. <span>
  6833. 目前人数{{
  6834. groupStudentUid[toolIndex][gd].length
  6835. }}人</span
  6836. >
  6837. </div>
  6838. </div>
  6839. </div>
  6840. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6841. <div
  6842. class="zuoyeYulan"
  6843. v-if="
  6844. worksStudent.length &&
  6845. worksStudent[toolIndex].length > 0
  6846. "
  6847. >
  6848. <span class="worksTitle">作业预览</span>
  6849. </div>
  6850. <div>
  6851. <div
  6852. class="group_workBox"
  6853. v-for="(g, gindex) in tool.groupJson.group"
  6854. :key="gindex"
  6855. >
  6856. <div
  6857. class="group_box"
  6858. v-if="
  6859. groupStudentUid[toolIndex] &&
  6860. worksStudent[toolIndex] &&
  6861. (worksStudent[toolIndex][gindex].length ||
  6862. groupStudentUid[toolIndex][gindex].indexOf(
  6863. userid
  6864. ) != -1)
  6865. "
  6866. >
  6867. <div class="group_title">
  6868. <el-tooltip
  6869. class="item"
  6870. effect="light"
  6871. :content="g.name"
  6872. placement="top"
  6873. >
  6874. <div class="group_name">{{ g.name }}</div>
  6875. </el-tooltip>
  6876. <el-button
  6877. type="primary"
  6878. v-if="
  6879. groupStudentUid[toolIndex][gindex].indexOf(
  6880. userid
  6881. ) != -1
  6882. "
  6883. @click="groupUpload(toolIndex, taskCount, gindex)"
  6884. >上传作业</el-button
  6885. >
  6886. </div>
  6887. <div class="group_work">
  6888. <div
  6889. class="works"
  6890. style="
  6891. width: 200px;
  6892. height: 140px;
  6893. margin: 10px 10px 10px 0;
  6894. border-radius: 15px;
  6895. box-shadow: 0 0 6px 1px #dfdada;
  6896. "
  6897. v-for="(w, wIndex) in worksStudent[toolIndex][
  6898. gindex
  6899. ]"
  6900. :key="wIndex"
  6901. :class="w.type == 1 ? 'isTypeOne' : ''"
  6902. >
  6903. <div class="workImg" v-if="w.type == 0">
  6904. <img
  6905. :src="w.works"
  6906. @click="previewImg(w.works,w)"
  6907. alt
  6908. />
  6909. <div
  6910. class="answerScore"
  6911. v-if="w.score"
  6912. @click.stop="openScore(w)"
  6913. :class="{
  6914. rightW:
  6915. w.userid == userid ||
  6916. tType == 1 ||
  6917. tType == 4 ||
  6918. w.ateacher == userid,
  6919. }"
  6920. >
  6921. {{ JSON.parse(w.score).wScore }}分
  6922. </div>
  6923. <div
  6924. class="answerScore"
  6925. @click.stop="openScore(w)"
  6926. v-else-if="courseDetail.userid == userid"
  6927. :class="{
  6928. rightW:
  6929. w.userid == userid ||
  6930. tType == 1 ||
  6931. tType == 4 ||
  6932. w.ateacher == userid,
  6933. }"
  6934. >
  6935. 评分
  6936. </div>
  6937. <img
  6938. class="deleteImg"
  6939. src="../../assets/deleteworks.png"
  6940. v-if="
  6941. w.userid == userid ||
  6942. tType == 1 ||
  6943. tType == 4
  6944. "
  6945. @click.stop="deleteWorks(w.wid)"
  6946. alt
  6947. />
  6948. </div>
  6949. <div class="workImg" v-if="w.type == 1">
  6950. <img
  6951. :src="word"
  6952. @click="openFile(w.works)"
  6953. alt
  6954. />
  6955. <!-- @click="openFile(w.works)" -->
  6956. <div
  6957. class="answerScore"
  6958. v-if="w.score"
  6959. @click.stop="openScore(w)"
  6960. :class="{
  6961. rightW:
  6962. w.userid == userid ||
  6963. tType == 1 ||
  6964. tType == 4 ||
  6965. w.ateacher == userid,
  6966. }"
  6967. >
  6968. {{ JSON.parse(w.score).wScore }}分
  6969. </div>
  6970. <div
  6971. class="answerScore"
  6972. @click.stop="openScore(w)"
  6973. v-else-if="courseDetail.userid == userid"
  6974. :class="{
  6975. rightW:
  6976. w.userid == userid ||
  6977. tType == 1 ||
  6978. tType == 4 ||
  6979. w.ateacher == userid,
  6980. }"
  6981. >
  6982. 评分
  6983. </div>
  6984. <img
  6985. class="deleteImg"
  6986. src="../../assets/deleteworks.png"
  6987. v-if="
  6988. w.userid == userid ||
  6989. tType == 1 ||
  6990. tType == 4
  6991. "
  6992. @click.stop="deleteWorks(w.wid)"
  6993. alt
  6994. />
  6995. </div>
  6996. <div class="workImg" v-if="w.type == 3">
  6997. <img
  6998. style="cursor: pointer"
  6999. :src="video"
  7000. @click="openVideo(w)"
  7001. alt
  7002. />
  7003. <!-- @click="openVideo(w.works)" -->
  7004. <div
  7005. class="answerScore"
  7006. v-if="w.score"
  7007. @click.stop="openScore(w)"
  7008. :class="{
  7009. rightW:
  7010. w.userid == userid ||
  7011. tType == 1 ||
  7012. tType == 4 ||
  7013. w.ateacher == userid,
  7014. }"
  7015. >
  7016. {{ JSON.parse(w.score).wScore }}分
  7017. </div>
  7018. <div
  7019. class="answerScore"
  7020. @click.stop="openScore(w)"
  7021. v-else-if="courseDetail.userid == userid"
  7022. :class="{
  7023. rightW:
  7024. w.userid == userid ||
  7025. tType == 1 ||
  7026. tType == 4 ||
  7027. w.ateacher == userid,
  7028. }"
  7029. >
  7030. 评分
  7031. </div>
  7032. <img
  7033. class="deleteImg"
  7034. src="../../assets/deleteworks.png"
  7035. v-if="
  7036. w.userid == userid ||
  7037. tType == 1 ||
  7038. tType == 4
  7039. "
  7040. @click.stop="deleteWorks(w.wid)"
  7041. alt
  7042. />
  7043. </div>
  7044. <div class="workImg" v-if="w.type == 12">
  7045. <img
  7046. style="cursor: pointer"
  7047. :src="word2"
  7048. @click="downloadFile(w.works)"
  7049. alt
  7050. />
  7051. <!-- @click="openVideo(w.works)" -->
  7052. <div
  7053. class="answerScore"
  7054. v-if="w.score"
  7055. @click.stop="openScore(w)"
  7056. :class="{
  7057. rightW:
  7058. w.userid == userid ||
  7059. tType == 1 ||
  7060. tType == 4 ||
  7061. w.ateacher == userid,
  7062. }"
  7063. >
  7064. {{ JSON.parse(w.score).wScore }}分
  7065. </div>
  7066. <div
  7067. class="answerScore"
  7068. @click.stop="openScore(w)"
  7069. v-else-if="courseDetail.userid == userid"
  7070. :class="{
  7071. rightW:
  7072. w.userid == userid ||
  7073. tType == 1 ||
  7074. tType == 4 ||
  7075. w.ateacher == userid,
  7076. }"
  7077. >
  7078. 评分
  7079. </div>
  7080. <img
  7081. class="deleteImg"
  7082. src="../../assets/deleteworks.png"
  7083. v-if="
  7084. w.userid == userid ||
  7085. tType == 1 ||
  7086. tType == 4
  7087. "
  7088. @click.stop="deleteWorks(w.wid)"
  7089. alt
  7090. />
  7091. </div>
  7092. <div class="comment" style="min-width: 200px">
  7093. <div class="worksName">
  7094. <div>{{ w.sName }}</div>
  7095. </div>
  7096. <div class="commentList">
  7097. <div class="commentList">
  7098. <div
  7099. class="commentImg"
  7100. @click="
  7101. isLikes(
  7102. w.wid,
  7103. userid,
  7104. 1,
  7105. null,
  7106. w.isLikes,
  7107. w.sName
  7108. )
  7109. "
  7110. >
  7111. <img
  7112. :src="
  7113. w.isLikes == true ? likes : noLikes
  7114. "
  7115. alt=""
  7116. />
  7117. </div>
  7118. <div>{{ w.likesCount }}</div>
  7119. </div>
  7120. <div
  7121. class="commentList"
  7122. style="margin-right: 15px"
  7123. >
  7124. <div
  7125. class="commentImg"
  7126. @click="
  7127. commentOther(
  7128. w,
  7129. toolIndex,
  7130. wIndex,
  7131. gindex
  7132. )
  7133. "
  7134. >
  7135. <img
  7136. src="../../assets/icon/comment/comment.png"
  7137. alt=""
  7138. />
  7139. </div>
  7140. <div>{{ w.commentCount }}</div>
  7141. </div>
  7142. </div>
  7143. </div>
  7144. </div>
  7145. </div>
  7146. </div>
  7147. </div>
  7148. </div>
  7149. </div>
  7150. </div>
  7151. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7152. 上传文件
  7153. <input
  7154. type="file"
  7155. accept="image/png, image/gif, image/jpeg"
  7156. style="display: none"
  7157. @change="beforeUpload1($event, 2, index)"
  7158. />
  7159. </div>-->
  7160. </div>
  7161. </div>
  7162. <!-- <div
  7163. class="vedioBox"
  7164. style="margin-top: 10px"
  7165. v-if="
  7166. courseDetail.userid == userid ||
  7167. (courseDetail.course_teacher &&
  7168. courseDetail.course_teacher.indexOf(userid) != -1)
  7169. "
  7170. :style="{
  7171. borderRadius:
  7172. !(
  7173. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7174. .toolChoose[0].tool &&
  7175. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7176. .toolChoose[0].tool.length > 0
  7177. ) &&
  7178. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7179. .taskDetail == '' &&
  7180. vChapterData[taskCount].length == 0 &&
  7181. fileC[taskCount].length == 0
  7182. ? '0 0 20px 20px'
  7183. : '20px',
  7184. }"
  7185. >
  7186. <div
  7187. class="queTop"
  7188. @click="isClose = !isClose"
  7189. style="
  7190. padding: 15px 0 15px 37px;
  7191. justify-content: space-between;
  7192. "
  7193. >
  7194. <div class="queTopTitle">新增工具</div>
  7195. <div class="queTopRight">
  7196. <div class="queTopClose" v-if="isClose == 0">
  7197. 展开
  7198. <div class="closeImg">
  7199. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7200. </div>
  7201. </div>
  7202. <div class="queTopClose" v-if="isClose == 1">
  7203. 折叠
  7204. <div class="openImg">
  7205. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7206. </div>
  7207. </div>
  7208. <el-button
  7209. style="margin: 0 30px 0 auto"
  7210. type="primary"
  7211. size="small"
  7212. v-if="isClose == 1 && checktoolArray.length > 0"
  7213. @click.stop="addToolChoose"
  7214. >确定</el-button
  7215. >
  7216. </div>
  7217. </div>
  7218. <div
  7219. class="tool_work_box"
  7220. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7221. >
  7222. <div class="tool_box">
  7223. <div class="tool_type_box">
  7224. <div class="chooseWho">
  7225. <div
  7226. :class="toolType == 0 ? 'isChooseActive' : ''"
  7227. @click="(toolType = 0), $forceUpdate()"
  7228. >
  7229. 互动类
  7230. </div>
  7231. <div
  7232. :class="toolType == 1 ? 'isChooseActive' : ''"
  7233. @click="(toolType = 1), $forceUpdate()"
  7234. >
  7235. 思维类
  7236. </div>
  7237. <div
  7238. :class="toolType == 2 ? 'isChooseActive' : ''"
  7239. @click="(toolType = 2), $forceUpdate()"
  7240. >
  7241. 测评类
  7242. </div>
  7243. <div
  7244. :class="toolType == 3 ? 'isChooseActive' : ''"
  7245. @click="(toolType = 3), $forceUpdate()"
  7246. >
  7247. 编程类
  7248. </div>
  7249. <div
  7250. :class="toolType == 5 ? 'isChooseActive' : ''"
  7251. @click="(toolType = 5), $forceUpdate()"
  7252. >
  7253. 学科类
  7254. </div>
  7255. </div>
  7256. </div>
  7257. <div>
  7258. <div class="toolSort" v-if="toolType == 0">
  7259. <div class="tool">
  7260. <div class="whiteBIcon" @click="addTools2(10)">
  7261. <img
  7262. src="../../assets/icon/thirdToolList/time.png"
  7263. alt
  7264. />
  7265. <div style="margin: 5px 0">倒计时</div>
  7266. </div>
  7267. <div class="check" @click="addTools2(10)">
  7268. <img
  7269. src="../../assets/icon/checkNo.png"
  7270. alt
  7271. v-if="checktoolArray.indexOf(10) == -1"
  7272. />
  7273. <div class="checkDiv" v-else>
  7274. <img src="../../assets/icon/checkedIs.png" alt /><span
  7275. >已选择</span
  7276. >
  7277. </div>
  7278. </div>
  7279. </div>
  7280. <div class="tool">
  7281. <div class="whiteBIcon" @click="addTools2(65)">
  7282. <img
  7283. src="../../assets/icon/firstToolList/pickPeople.png"
  7284. alt
  7285. />
  7286. <div style="margin: 5px 0">挑人</div>
  7287. </div>
  7288. <div class="check" @click="addTools2(65)">
  7289. <img
  7290. src="../../assets/icon/checkNo.png"
  7291. alt
  7292. v-if="checktoolArray.indexOf(65) == -1"
  7293. />
  7294. <div class="checkDiv" v-else>
  7295. <img src="../../assets/icon/checkedIs.png" alt /><span
  7296. >已选择</span
  7297. >
  7298. </div>
  7299. </div>
  7300. </div>
  7301. </div>
  7302. <div class="toolSort" v-if="toolType == 1">
  7303. <div class="tool">
  7304. <div class="whiteBIcon" @click="addTools2(7)">
  7305. <img
  7306. src="../../assets/icon/secondToolList/mindNetwork.png"
  7307. alt
  7308. />
  7309. <div style="margin: 5px 0">思维网格</div>
  7310. </div>
  7311. <div class="check" @click="addTools2(7)">
  7312. <img
  7313. src="../../assets/icon/checkNo.png"
  7314. alt
  7315. v-if="checktoolArray.indexOf(7) == -1"
  7316. />
  7317. <div class="checkDiv" v-else>
  7318. <img src="../../assets/icon/checkedIs.png" alt /><span
  7319. >已选择</span
  7320. >
  7321. </div>
  7322. </div>
  7323. </div>
  7324. <div class="tool">
  7325. <div class="whiteBIcon" @click="addTools2(1)">
  7326. <img
  7327. src="../../assets/icon/secondToolList/whiteBoard.png"
  7328. alt
  7329. />
  7330. <div style="margin: 5px 0">电子白板</div>
  7331. </div>
  7332. <div class="check" @click="addTools2(1)">
  7333. <img
  7334. src="../../assets/icon/checkNo.png"
  7335. alt
  7336. v-if="checktoolArray.indexOf(1) == -1"
  7337. />
  7338. <div class="checkDiv" v-else>
  7339. <img src="../../assets/icon/checkedIs.png" alt /><span
  7340. >已选择</span
  7341. >
  7342. </div>
  7343. </div>
  7344. </div>
  7345. <div class="tool">
  7346. <div class="whiteBIcon" @click="addTools2(52)">
  7347. <img
  7348. src="../../assets/icon/fourthToolList/text.png"
  7349. alt
  7350. />
  7351. <div style="margin: 5px 0">文档</div>
  7352. </div>
  7353. <div class="check" @click="addTools2(52)">
  7354. <img
  7355. src="../../assets/icon/checkNo.png"
  7356. alt
  7357. v-if="checktoolArray.indexOf(52) == -1"
  7358. />
  7359. <div class="checkDiv" v-else>
  7360. <img src="../../assets/icon/checkedIs.png" alt /><span
  7361. >已选择</span
  7362. >
  7363. </div>
  7364. </div>
  7365. </div>
  7366. <div class="tool">
  7367. <div class="whiteBIcon" @click="addTools2(3)">
  7368. <img
  7369. src="../../assets/icon/secondToolList/mindMapping.png"
  7370. alt
  7371. />
  7372. <div style="margin: 5px 0">思维导图</div>
  7373. </div>
  7374. <div class="check" @click="addTools2(3)">
  7375. <img
  7376. src="../../assets/icon/checkNo.png"
  7377. alt
  7378. v-if="checktoolArray.indexOf(3) == -1"
  7379. />
  7380. <div class="checkDiv" v-else>
  7381. <img src="../../assets/icon/checkedIs.png" alt /><span
  7382. >已选择</span
  7383. >
  7384. </div>
  7385. </div>
  7386. </div>
  7387. <div class="tool">
  7388. <div class="whiteBIcon" @click="addTools2(48)">
  7389. <img
  7390. src="../../assets/icon/fourthToolList/table.png"
  7391. alt
  7392. />
  7393. <div style="margin: 5px 0">表格</div>
  7394. </div>
  7395. <div class="check" @click="addTools2(48)">
  7396. <img
  7397. src="../../assets/icon/checkNo.png"
  7398. alt
  7399. v-if="checktoolArray.indexOf(48) == -1"
  7400. />
  7401. <div class="checkDiv" v-else>
  7402. <img src="../../assets/icon/checkedIs.png" alt /><span
  7403. >已选择</span
  7404. >
  7405. </div>
  7406. </div>
  7407. </div>
  7408. </div>
  7409. <div class="toolSort" v-if="toolType == 6">
  7410. <div v-show="tooC == 49">
  7411. <img
  7412. @click="addTools(tooC, toolIndex, taskCount)"
  7413. src="../../assets/icon/fourthToolList/group.png"
  7414. alt
  7415. />
  7416. <div style="margin: 5px 0">学生分组</div>
  7417. </div>
  7418. </div>
  7419. <div class="toolSort" v-if="toolType == 2">
  7420. <div class="tool">
  7421. <div class="whiteBIcon" @click="addTools2(16)">
  7422. <img
  7423. src="../../assets/icon/thirdToolList/work.png"
  7424. alt
  7425. />
  7426. <div style="margin: 5px 0">作业提交</div>
  7427. </div>
  7428. <div class="check" @click="addTools2(16)">
  7429. <img
  7430. src="../../assets/icon/checkNo.png"
  7431. alt
  7432. v-if="checktoolArray.indexOf(16) == -1"
  7433. />
  7434. <div class="checkDiv" v-else>
  7435. <img src="../../assets/icon/checkedIs.png" alt /><span
  7436. >已选择</span
  7437. >
  7438. </div>
  7439. </div>
  7440. </div>
  7441. <div class="tool">
  7442. <div class="whiteBIcon" @click="addTools2(50)">
  7443. <img
  7444. src="../../assets/icon/thirdToolList/plwork.png"
  7445. alt
  7446. />
  7447. <div style="margin: 5px 0">批量上传</div>
  7448. </div>
  7449. <div class="check" @click="addTools2(50)">
  7450. <img
  7451. src="../../assets/icon/checkNo.png"
  7452. alt
  7453. v-if="checktoolArray.indexOf(50) == -1"
  7454. />
  7455. <div class="checkDiv" v-else>
  7456. <img src="../../assets/icon/checkedIs.png" alt /><span
  7457. >已选择</span
  7458. >
  7459. </div>
  7460. </div>
  7461. </div>
  7462. </div>
  7463. <div class="toolSort" v-if="toolType == 3">
  7464. <div class="tool">
  7465. <div class="whiteBIcon" @click="addTools2(18)">
  7466. <img
  7467. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7468. alt
  7469. />
  7470. <div style="margin: 5px 0">训练平台</div>
  7471. </div>
  7472. <div class="check" @click="addTools2(18)">
  7473. <img
  7474. src="../../assets/icon/checkNo.png"
  7475. alt
  7476. v-if="checktoolArray.indexOf(18) == -1"
  7477. />
  7478. <div class="checkDiv" v-else>
  7479. <img src="../../assets/icon/checkedIs.png" alt /><span
  7480. >已选择</span
  7481. >
  7482. </div>
  7483. </div>
  7484. </div>
  7485. <div class="tool">
  7486. <div class="whiteBIcon" @click="addTools2(21)">
  7487. <img
  7488. src="../../assets/icon/fourthToolList/program.png"
  7489. alt
  7490. />
  7491. <div style="margin: 5px 0">AIoT Blockly</div>
  7492. </div>
  7493. <div class="check" @click="addTools2(21)">
  7494. <img
  7495. src="../../assets/icon/checkNo.png"
  7496. alt
  7497. v-if="checktoolArray.indexOf(21) == -1"
  7498. />
  7499. <div class="checkDiv" v-else>
  7500. <img src="../../assets/icon/checkedIs.png" alt /><span
  7501. >已选择</span
  7502. >
  7503. </div>
  7504. </div>
  7505. </div>
  7506. <div class="tool">
  7507. <div class="whiteBIcon" @click="addTools2(23)">
  7508. <img
  7509. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7510. alt
  7511. />
  7512. <div style="margin: 5px 0">AI Python</div>
  7513. </div>
  7514. <div class="check" @click="addTools2(23)">
  7515. <img
  7516. src="../../assets/icon/checkNo.png"
  7517. alt
  7518. v-if="checktoolArray.indexOf(23) == -1"
  7519. />
  7520. <div class="checkDiv" v-else>
  7521. <img src="../../assets/icon/checkedIs.png" alt /><span
  7522. >已选择</span
  7523. >
  7524. </div>
  7525. </div>
  7526. </div>
  7527. <div class="tool">
  7528. <div class="whiteBIcon" @click="addTools2(24)">
  7529. <img
  7530. src="../../assets/icon/fourthToolList/AIprogram.png"
  7531. alt
  7532. />
  7533. <div style="margin: 5px 0">AI Blockly</div>
  7534. </div>
  7535. <div class="check" @click="addTools2(24)">
  7536. <img
  7537. src="../../assets/icon/checkNo.png"
  7538. alt
  7539. v-if="checktoolArray.indexOf(24) == -1"
  7540. />
  7541. <div class="checkDiv" v-else>
  7542. <img src="../../assets/icon/checkedIs.png" alt /><span
  7543. >已选择</span
  7544. >
  7545. </div>
  7546. </div>
  7547. </div>
  7548. <div class="tool">
  7549. <div class="whiteBIcon" @click="addTools2(32)">
  7550. <img
  7551. src="../../assets/icon/thirdToolList/code.png"
  7552. alt
  7553. />
  7554. <div style="margin: 5px 0">源码编辑</div>
  7555. </div>
  7556. <div class="check" @click="addTools2(32)">
  7557. <img
  7558. src="../../assets/icon/checkNo.png"
  7559. alt
  7560. v-if="checktoolArray.indexOf(32) == -1"
  7561. />
  7562. <div class="checkDiv" v-else>
  7563. <img src="../../assets/icon/checkedIs.png" alt /><span
  7564. >已选择</span
  7565. >
  7566. </div>
  7567. </div>
  7568. </div>
  7569. <div class="tool">
  7570. <div class="whiteBIcon" @click="addTools2(57)">
  7571. <img
  7572. src="../../assets/icon/fourthToolList/cocopi.png"
  7573. alt
  7574. />
  7575. <div style="margin: 5px 0">CocoPi</div>
  7576. </div>
  7577. <div class="check" @click="addTools2(57)">
  7578. <img
  7579. src="../../assets/icon/checkNo.png"
  7580. alt
  7581. v-if="checktoolArray.indexOf(57) == -1"
  7582. />
  7583. <div class="checkDiv" v-else>
  7584. <img src="../../assets/icon/checkedIs.png" alt /><span
  7585. >已选择</span
  7586. >
  7587. </div>
  7588. </div>
  7589. </div>
  7590. <div class="tool">
  7591. <div class="whiteBIcon" @click="addTools2(63)">
  7592. <img
  7593. src="../../assets/icon/fourthToolList/Wood.png"
  7594. alt
  7595. />
  7596. <div style="margin: 5px 0">海龟编程</div>
  7597. </div>
  7598. <div class="check" @click="addTools2(63)">
  7599. <img
  7600. src="../../assets/icon/checkNo.png"
  7601. alt
  7602. v-if="checktoolArray.indexOf(63) == -1"
  7603. />
  7604. <div class="checkDiv" v-else>
  7605. <img src="../../assets/icon/checkedIs.png" alt /><span
  7606. >已选择</span
  7607. >
  7608. </div>
  7609. </div>
  7610. </div>
  7611. </div>
  7612. <div class="toolSort" v-if="toolType == 5">
  7613. <div class="tool">
  7614. <div class="whiteBIcon" @click="addTools2(28)">
  7615. <img
  7616. src="../../assets/icon/secondToolList/translation.png"
  7617. alt
  7618. />
  7619. <div style="margin: 5px 0">翻译</div>
  7620. </div>
  7621. <div class="check" @click="addTools2(28)">
  7622. <img
  7623. src="../../assets/icon/checkNo.png"
  7624. alt
  7625. v-if="checktoolArray.indexOf(28) == -1"
  7626. />
  7627. <div class="checkDiv" v-else>
  7628. <img src="../../assets/icon/checkedIs.png" alt /><span
  7629. >已选择</span
  7630. >
  7631. </div>
  7632. </div>
  7633. </div>
  7634. <div class="tool">
  7635. <div class="whiteBIcon" @click="addTools2(31)">
  7636. <img
  7637. src="../../assets/icon/secondToolList/networkPanel.png"
  7638. alt
  7639. />
  7640. <div style="margin: 5px 0">数字画板</div>
  7641. </div>
  7642. <div class="check" @click="addTools2(31)">
  7643. <img
  7644. src="../../assets/icon/checkNo.png"
  7645. alt
  7646. v-if="checktoolArray.indexOf(31) == -1"
  7647. />
  7648. <div class="checkDiv" v-else>
  7649. <img src="../../assets/icon/checkedIs.png" alt /><span
  7650. >已选择</span
  7651. >
  7652. </div>
  7653. </div>
  7654. </div>
  7655. <div class="tool">
  7656. <div class="whiteBIcon" @click="addTools2(39)">
  7657. <img
  7658. src="../../assets/icon/secondToolList/GeoGebra.png"
  7659. alt
  7660. />
  7661. <div style="margin: 5px 0">GeoGebra</div>
  7662. </div>
  7663. <div class="check" @click="addTools2(39)">
  7664. <img
  7665. src="../../assets/icon/checkNo.png"
  7666. alt
  7667. v-if="checktoolArray.indexOf(39) == -1"
  7668. />
  7669. <div class="checkDiv" v-else>
  7670. <img src="../../assets/icon/checkedIs.png" alt /><span
  7671. >已选择</span
  7672. >
  7673. </div>
  7674. </div>
  7675. </div>
  7676. <div class="tool">
  7677. <div class="whiteBIcon" @click="addTools2(66)">
  7678. <img
  7679. src="../../assets/icon/secondToolList/formulaEdi.png"
  7680. alt
  7681. />
  7682. <div style="margin: 5px 0">公式编辑</div>
  7683. </div>
  7684. <div class="check" @click="addTools2(66)">
  7685. <img
  7686. src="../../assets/icon/checkNo.png"
  7687. alt
  7688. v-if="checktoolArray.indexOf(66) == -1"
  7689. />
  7690. <div class="checkDiv" v-else>
  7691. <img src="../../assets/icon/checkedIs.png" alt /><span
  7692. >已选择</span
  7693. >
  7694. </div>
  7695. </div>
  7696. </div>
  7697. <div class="tool">
  7698. <div class="whiteBIcon" @click="addTools2(67)">
  7699. <img
  7700. src="../../assets/icon/secondToolList/molStr.png"
  7701. alt
  7702. />
  7703. <div style="margin: 5px 0">分子结构</div>
  7704. </div>
  7705. <div class="check" @click="addTools2(67)">
  7706. <img
  7707. src="../../assets/icon/checkNo.png"
  7708. alt
  7709. v-if="checktoolArray.indexOf(67) == -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(68)">
  7720. <img
  7721. src="../../assets/icon/secondToolList/timeAxis.png"
  7722. alt
  7723. />
  7724. <div style="margin: 5px 0">时间轴</div>
  7725. </div>
  7726. <div class="check" @click="addTools2(68)">
  7727. <img
  7728. src="../../assets/icon/checkNo.png"
  7729. alt
  7730. v-if="checktoolArray.indexOf(68) == -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>
  7740. <div class="toolSort" v-if="toolType == 7">
  7741. <div class="tool">
  7742. <div class="whiteBIcon" @click="addTools2(40)">
  7743. <img
  7744. src="../../assets/icon/secondToolList/eval.png"
  7745. alt
  7746. />
  7747. <div style="margin: 5px 0">个人评价</div>
  7748. </div>
  7749. <div class="check" @click="addTools2(40)">
  7750. <img
  7751. src="../../assets/icon/checkNo.png"
  7752. alt
  7753. v-if="checktoolArray.indexOf(40) == -1"
  7754. />
  7755. <div class="checkDiv" v-else>
  7756. <img src="../../assets/icon/checkedIs.png" alt /><span
  7757. >已选择</span
  7758. >
  7759. </div>
  7760. </div>
  7761. </div>
  7762. </div>
  7763. <div class="toolSort" v-if="toolType == 4">
  7764. <div class="tool">
  7765. <div class="whiteBIcon" @click="addTools2(26)">
  7766. <img
  7767. src="../../assets/icon/thirdToolList/courseDesign.png"
  7768. alt
  7769. />
  7770. <div style="margin: 5px 0">课程设计</div>
  7771. </div>
  7772. <div class="check" @click="addTools2(26)">
  7773. <img
  7774. src="../../assets/icon/checkNo.png"
  7775. alt
  7776. v-if="checktoolArray.indexOf(26) == -1"
  7777. />
  7778. <div class="checkDiv" v-else>
  7779. <img src="../../assets/icon/checkedIs.png" alt /><span
  7780. >已选择</span
  7781. >
  7782. </div>
  7783. </div>
  7784. </div>
  7785. <div class="tool">
  7786. <div class="whiteBIcon" @click="addTools2(25)">
  7787. <img
  7788. src="../../assets/icon/thirdToolList/evalua.png"
  7789. alt
  7790. />
  7791. <div style="margin: 5px 0">目标管理</div>
  7792. </div>
  7793. <div class="check" @click="addTools2(25)">
  7794. <img
  7795. src="../../assets/icon/checkNo.png"
  7796. alt
  7797. v-if="checktoolArray.indexOf(25) == -1"
  7798. />
  7799. <div class="checkDiv" v-else>
  7800. <img src="../../assets/icon/checkedIs.png" alt /><span
  7801. >已选择</span
  7802. >
  7803. </div>
  7804. </div>
  7805. </div>
  7806. </div>
  7807. </div>
  7808. </div>
  7809. </div>
  7810. </div> -->
  7811. <div
  7812. class="vedioBox"
  7813. style="margin-top: 10px; border-radius: 20px"
  7814. v-if="
  7815. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7816. .eList &&
  7817. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7818. .eList.length &&
  7819. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7820. .eList.length > 0 &&
  7821. tType != 2
  7822. "
  7823. >
  7824. <div
  7825. class="queTop"
  7826. style="
  7827. font-size: 20px;
  7828. padding: 15px 0 15px 37px;
  7829. font-weight: bold;
  7830. "
  7831. >
  7832. <!-- <div class="question" style="width: 30px">
  7833. <img src="../assets/icon/toolIcon.png" alt />
  7834. </div>
  7835. <div class="queTitle">
  7836. <div>工具</div>
  7837. </div>-->
  7838. 评一评
  7839. </div>
  7840. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7841. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7842. <el-table
  7843. :data="
  7844. chapInfoList[courseType].chapterInfo[0].taskJson[
  7845. taskCount
  7846. ].eList
  7847. "
  7848. :header-cell-style="{ background: '#F0F4FA' }"
  7849. :row-class-name="tableRowClassName"
  7850. border
  7851. stripe
  7852. style="width: 100%"
  7853. >
  7854. <el-table-column
  7855. label="评价名称"
  7856. align="center"
  7857. >
  7858. <template slot-scope="scope"
  7859. ><div>{{ scope.row.value }}</div></template
  7860. >
  7861. </el-table-column>
  7862. <el-table-column
  7863. label="评价描述"
  7864. align="center"
  7865. >
  7866. <template slot-scope="scope"
  7867. ><div>
  7868. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7869. </div></template
  7870. >
  7871. </el-table-column>
  7872. <el-table-column label="目标" align="center">
  7873. <template slot-scope="scope"
  7874. ><div>
  7875. {{
  7876. scope.row.target
  7877. ? scope.row.target[scope.row.target.length - 1]
  7878. : "-"
  7879. }}
  7880. </div></template
  7881. ></el-table-column
  7882. >
  7883. </el-table>
  7884. <!-- <div
  7885. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7886. .chapterInfo[0].taskJson[taskCount].eList"
  7887. :key="eIndex"
  7888. class="elist_input_box"
  7889. >
  7890. <div style="width: 95%">
  7891. <div
  7892. style="
  7893. display: flex;
  7894. flex-direction: row;
  7895. flex-wrap: nowrap;
  7896. align-items: center;
  7897. "
  7898. >
  7899. <div style="max-width: calc(100% - 285px)">
  7900. <span>{{ eItem.value }}</span>
  7901. </div>
  7902. <div
  7903. style="
  7904. padding-left: 25px;
  7905. display: flex;
  7906. flex-direction: row;
  7907. align-items: center;
  7908. "
  7909. >
  7910. <el-rate
  7911. v-model="eItem.score"
  7912. :colors="colors"
  7913. disabled
  7914. ></el-rate>
  7915. </div>
  7916. </div>
  7917. <div class="elist_inptu_text" style="padding-left: 10px">
  7918. <span v-if="eItem.detail != ''">{{
  7919. eItem.detail
  7920. }}</span>
  7921. <span v-else style="color: #b2b1b3; font-size: 14px"
  7922. >暂无描述...</span
  7923. >
  7924. </div>
  7925. </div>
  7926. </div> -->
  7927. </div>
  7928. <div
  7929. v-if="evalua"
  7930. style="
  7931. border: 1px solid #e5e5e5;
  7932. max-width: 650px;
  7933. width: 100%;
  7934. margin-top: 20px;
  7935. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7936. "
  7937. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7938. >
  7939. <div class="e_add_top">
  7940. <div class="e_add_title" style="width: 100%">
  7941. <!-- <span>目标管理名称</span> -->
  7942. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7943. <img
  7944. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7945. src="../../assets/line.png"
  7946. class="cru_line"
  7947. style="
  7948. width: 125px;
  7949. height: 20px;
  7950. bottom: -10px;
  7951. left: 5px;
  7952. "
  7953. />
  7954. <!-- <el-input
  7955. v-model="eTitle"
  7956. placeholder="请输入名称"
  7957. @change="setMindData"
  7958. ></el-input>-->
  7959. <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>
  7960. <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>
  7961. </div>
  7962. </div>
  7963. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7964. <div class="e_add_list_pbox">
  7965. <div class="e_add_list_pbox_title">
  7966. <!-- <span class="type_title">切换模式</span> -->
  7967. <div class="type_content">
  7968. <span
  7969. :class="{ active: typeMode == 1 }"
  7970. @click="typeMode = 1"
  7971. >目标树</span
  7972. >
  7973. <span
  7974. :class="{ active: typeMode == 2 }"
  7975. @click="typeMode = 2"
  7976. >目标罗盘</span
  7977. >
  7978. <!-- <span
  7979. :class="{ active: typeMode == 3 }"
  7980. @click="typeMode = 3"
  7981. >目标看板</span
  7982. > -->
  7983. </div>
  7984. </div>
  7985. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7986. <Mind
  7987. :showBar="false"
  7988. :mindData="data"
  7989. style="width: 100%"
  7990. v-show="typeMode == 1"
  7991. ></Mind>
  7992. <Sunburst
  7993. :Josn="eJson"
  7994. :num="eJSONNum"
  7995. style="width: 100%"
  7996. v-if="typeMode == 2"
  7997. ></Sunburst>
  7998. <SeeBoard
  7999. :Josn="eJson"
  8000. :num="eJSONNum"
  8001. :ename="eTitle"
  8002. style="width: 100%"
  8003. v-if="typeMode == 3"
  8004. >
  8005. </SeeBoard>
  8006. </div>
  8007. </div>
  8008. </div>
  8009. </div>
  8010. </div>
  8011. </div>
  8012. <!-- <div
  8013. class="project_box"
  8014. style="margin-top: 15px; padding-bottom: 30px"
  8015. >
  8016. <div
  8017. style="
  8018. display: flex;
  8019. flex-wrap: nowrap;
  8020. flex-direction: column;
  8021. position: relative;
  8022. "
  8023. >
  8024. <div class="queTop">
  8025. <div class="question">
  8026. <img src="../../assets/icon/homeWork.png" alt="" />
  8027. </div>
  8028. <div class="queTitle">
  8029. <div>作业提交<span>(提交图文视频等)</span></div>
  8030. <div>:任务:{{ task.task }}</div>
  8031. </div>
  8032. </div>
  8033. <div class="ediBottom">
  8034. <div
  8035. class="addEditor"
  8036. style="margin-top: 23px"
  8037. @click="openAddWork"
  8038. v-if="!isNoHomeWork"
  8039. >
  8040. 选择文件
  8041. </div>
  8042. <div
  8043. class="addEditor"
  8044. style="margin-top: 23px"
  8045. @click="openAddWork"
  8046. v-else
  8047. >
  8048. 已提交
  8049. </div>
  8050. </div>
  8051. </div>
  8052. </div>-->
  8053. </div>
  8054. </div>
  8055. <el-dialog
  8056. title="作业提交"
  8057. :visible.sync="dialogVisible"
  8058. :append-to-body="true"
  8059. width="500px"
  8060. :before-close="handleClose"
  8061. class="dialog_change"
  8062. >
  8063. <div class="marginT">
  8064. <div>上传文件</div>
  8065. <div
  8066. class="chapter_add"
  8067. @click="addImg($event)"
  8068. v-if="studyJuri[0].cover.length == 0"
  8069. >
  8070. <div class="up_photo">
  8071. <img src="../../assets/icon/uploadImg.png" alt />
  8072. </div>
  8073. <!-- <input
  8074. type="file"
  8075. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8076. style="display: none"
  8077. @change="beforeUpload1($event, 1)"
  8078. /> -->
  8079. <input
  8080. type="file"
  8081. accept="*"
  8082. style="display: none"
  8083. @change="beforeUpload1($event, 1)"
  8084. />
  8085. <!-- <input
  8086. type="file"
  8087. accept="image/*"
  8088. capture="camera"
  8089. style="display: none"
  8090. @change="beforeUpload1($event, 1)"
  8091. /> -->
  8092. </div>
  8093. <div
  8094. class="chapter_add"
  8095. style="
  8096. display: flex;
  8097. width: 100%;
  8098. flex-direction: row;
  8099. flex-wrap: wrap;
  8100. justify-content: flex-start;
  8101. padding: 15px 0;
  8102. "
  8103. v-if="studyJuri[0].cover.length > 0"
  8104. >
  8105. <div class="upCover">
  8106. <img
  8107. :src="studyJuri[0].cover[0].url"
  8108. alt
  8109. v-if="fileType == 0"
  8110. />
  8111. <img :src="word" alt v-else-if="fileType == 1" />
  8112. <img :src="video" alt v-else-if="fileType == 2" />
  8113. <img :src="word2" alt v-else-if="fileType == 3" />
  8114. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8115. <div class="deleteWord" @click="clean(1)">
  8116. <img src="../../assets/icon/deleteWorks.png" alt />
  8117. </div>
  8118. </div>
  8119. </div>
  8120. </div>
  8121. <div
  8122. class="upload_send"
  8123. @click="addCourseWorks(taskCount)"
  8124. v-if="!proVisible"
  8125. >
  8126. 提交
  8127. </div>
  8128. </el-dialog>
  8129. </div>
  8130. </div>
  8131. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8132. <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(
  8133. '/courseDetail?userid=' +
  8134. userid +
  8135. '&oid=' +
  8136. oid +
  8137. '&org=' +
  8138. org +
  8139. '&cid=' +
  8140. classId +
  8141. '&courseId=' +
  8142. id +
  8143. '&tType=' +
  8144. tType +
  8145. '&screenType=' +
  8146. screenType
  8147. )"></classRoomHelper>
  8148. <div
  8149. class="pButton"
  8150. @click="(pzDialog = true), selectPz()"
  8151. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8152. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8153. >
  8154. <!-- 批 -->
  8155. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8156. </div>
  8157. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8158. <div class="pzTop2">
  8159. <!-- <div>评论</div>
  8160. <div @click="pzDialog = false">
  8161. <img src="../../assets/close1.png" alt="" />
  8162. </div> -->
  8163. <div class="checkbox">
  8164. <!-- <div class="check" style="font-size: 25px; position: unset">
  8165. 评论
  8166. </div> -->
  8167. <div class="cb-tabList">
  8168. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8169. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8170. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8171. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8172. </div>
  8173. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8174. <el-option label="时间降序" :value="1"></el-option>
  8175. <el-option label="时间升序" :value="2"></el-option>
  8176. <el-option label="我的评课" :value="3"></el-option>
  8177. </el-select>
  8178. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8179. </div>
  8180. </div>
  8181. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8182. <div class="pzListBox" v-if="pzList && pzList.length">
  8183. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8184. <div class="pzNavTop">
  8185. <div>评</div>
  8186. <div>
  8187. {{
  8188. pz.username && pz.username.length > 5
  8189. ? pz.username.substring(0, 5) + "..."
  8190. : pz.username
  8191. }}的评论
  8192. </div>
  8193. <div
  8194. class="pzDelete"
  8195. v-if="pz.userid == userid"
  8196. @click="deletePz(pz.id)"
  8197. >
  8198. 删除
  8199. </div>
  8200. </div>
  8201. <div
  8202. @click="checkImg(getImgList(pz.content))"
  8203. class="pzContent cont"
  8204. v-html="pz.content"
  8205. v-if="pz.type == '1'"
  8206. ></div>
  8207. <div class="pzContent" v-if="pz.type == '2'">
  8208. <audio :src="pz.content" controls="controls" ref="audio">
  8209. Your browser does not support the audio element.
  8210. </audio>
  8211. </div>
  8212. <div class="pzContent" v-if="pz.type == '3'">
  8213. <img
  8214. :src="pz.content"
  8215. style="width: 90%; margin: 0 auto; display: block"
  8216. @click="previewImg(pz.content)"
  8217. />
  8218. </div>
  8219. <div class="timeAndReply">
  8220. <div class="time">
  8221. {{ pz.time }}
  8222. </div>
  8223. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8224. </div>
  8225. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8226. <div
  8227. v-for="(h, hIndex) in pz.hfList"
  8228. :key="hIndex"
  8229. class="hfItem"
  8230. >
  8231. <div class="whoReplyWho">
  8232. <div class="hfName">{{ h.username }}</div>
  8233. <div class="hfImg">
  8234. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8235. </div>
  8236. <div class="hfName">{{ pz.username }}</div>
  8237. </div>
  8238. <div class="hfContent" v-html="h.content"></div>
  8239. <div class="hfBottom">
  8240. <div class="hfTime">{{ h.time }}</div>
  8241. <div
  8242. class="deleteHfItem"
  8243. @click="deleteReply(h.id)"
  8244. v-if="userid == h.userid"
  8245. >
  8246. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8247. </div>
  8248. </div>
  8249. </div>
  8250. </div>
  8251. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8252. <div class="replyInput">
  8253. <el-input v-model="reply[pzIndex]"></el-input>
  8254. </div>
  8255. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8256. </div> -->
  8257. </div>
  8258. </div>
  8259. <div class="noPz" v-else>
  8260. <img src="../../assets/icon/noPz.png" alt="" />
  8261. </div>
  8262. <div class="addPzButton">
  8263. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8264. 添加评论
  8265. </div>
  8266. <!-- <div class="img1">
  8267. <div @click="(addPzDialog = true), (pzType = 2)">
  8268. <img src="../../assets/audio.png" /><span>音频</span>
  8269. </div>
  8270. </div> -->
  8271. </div>
  8272. </div>
  8273. <div class="scoreList" v-if="commentTagShow==1">
  8274. <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"/>
  8275. </div>
  8276. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8277. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8278. </div>
  8279. </div>
  8280. <div
  8281. v-if="toolDialogVisible == true"
  8282. class="toolMask"
  8283. @click="toolDialogVisible = false"
  8284. ></div>
  8285. <div v-if="toolDialogVisible == true" class="addToolCss">
  8286. <div class="toolTop">
  8287. <div style="font-weight: bold">新增工具</div>
  8288. <div @click="toolDialogVisible = false">
  8289. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8290. </div>
  8291. </div>
  8292. <div class="tool_box">
  8293. <div class="tool_type_box">
  8294. <div class="chooseWho">
  8295. <div
  8296. :class="toolType == 0 ? 'isChooseActive' : ''"
  8297. @click="(toolType = 0), $forceUpdate()"
  8298. >
  8299. 互动类
  8300. </div>
  8301. <div
  8302. :class="toolType == 1 ? 'isChooseActive' : ''"
  8303. @click="(toolType = 1), $forceUpdate()"
  8304. >
  8305. 思维类
  8306. </div>
  8307. <div
  8308. :class="toolType == 2 ? 'isChooseActive' : ''"
  8309. @click="(toolType = 2), $forceUpdate()"
  8310. >
  8311. 测评类
  8312. </div>
  8313. <div
  8314. :class="toolType == 3 ? 'isChooseActive' : ''"
  8315. @click="(toolType = 3), $forceUpdate()"
  8316. >
  8317. 编程类
  8318. </div>
  8319. <div
  8320. :class="toolType == 5 ? 'isChooseActive' : ''"
  8321. @click="(toolType = 5), $forceUpdate()"
  8322. >
  8323. 学科类
  8324. </div>
  8325. </div>
  8326. </div>
  8327. <div>
  8328. <div class="toolSort" v-if="toolType == 0">
  8329. <div
  8330. class="tool"
  8331. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8332. @click="addTools2(10)"
  8333. >
  8334. <div class="whiteBIcon">
  8335. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8336. <div style="margin: 5px 0">倒计时</div>
  8337. </div>
  8338. <div class="check">
  8339. <div
  8340. v-if="checktoolArray.indexOf(10) == -1"
  8341. class="noChoose"
  8342. ></div>
  8343. <div v-else class="isChoose"></div>
  8344. </div>
  8345. </div>
  8346. <div
  8347. class="tool"
  8348. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8349. @click="addTools2(65)"
  8350. >
  8351. <div class="whiteBIcon">
  8352. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8353. <div style="margin: 5px 0">挑人</div>
  8354. </div>
  8355. <div class="check">
  8356. <div
  8357. v-if="checktoolArray.indexOf(65) == -1"
  8358. class="noChoose"
  8359. ></div>
  8360. <div v-else class="isChoose"></div>
  8361. </div>
  8362. </div>
  8363. </div>
  8364. <div class="toolSort" v-if="toolType == 1">
  8365. <div
  8366. class="tool"
  8367. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8368. @click="addTools2(7)"
  8369. >
  8370. <div class="whiteBIcon">
  8371. <img
  8372. src="../../assets/icon/secondToolList/mindNetwork.png"
  8373. alt
  8374. />
  8375. <div style="margin: 5px 0">思维网格</div>
  8376. </div>
  8377. <div class="check">
  8378. <div
  8379. v-if="checktoolArray.indexOf(7) == -1"
  8380. class="noChoose"
  8381. ></div>
  8382. <div v-else class="isChoose"></div>
  8383. </div>
  8384. </div>
  8385. <div
  8386. class="tool"
  8387. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8388. @click="addTools2(1)"
  8389. >
  8390. <div class="whiteBIcon">
  8391. <img
  8392. src="../../assets/icon/secondToolList/whiteBoard.png"
  8393. alt
  8394. />
  8395. <div style="margin: 5px 0">电子白板</div>
  8396. </div>
  8397. <div class="check">
  8398. <div
  8399. v-if="checktoolArray.indexOf(1) == -1"
  8400. class="noChoose"
  8401. ></div>
  8402. <div v-else class="isChoose"></div>
  8403. </div>
  8404. </div>
  8405. <div
  8406. class="tool"
  8407. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8408. @click="addTools2(52)"
  8409. >
  8410. <div class="whiteBIcon">
  8411. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8412. <div style="margin: 5px 0">文档</div>
  8413. </div>
  8414. <div class="check">
  8415. <div
  8416. v-if="checktoolArray.indexOf(52) == -1"
  8417. class="noChoose"
  8418. ></div>
  8419. <div v-else class="isChoose"></div>
  8420. </div>
  8421. </div>
  8422. <div
  8423. class="tool"
  8424. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8425. @click="addTools2(3)"
  8426. >
  8427. <div class="whiteBIcon">
  8428. <img
  8429. src="../../assets/icon/secondToolList/mindMapping.png"
  8430. alt
  8431. />
  8432. <div style="margin: 5px 0">思维导图</div>
  8433. </div>
  8434. <div class="check">
  8435. <div
  8436. v-if="checktoolArray.indexOf(3) == -1"
  8437. class="noChoose"
  8438. ></div>
  8439. <div v-else class="isChoose"></div>
  8440. </div>
  8441. </div>
  8442. <div
  8443. class="tool"
  8444. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8445. @click="addTools2(48)"
  8446. >
  8447. <div class="whiteBIcon">
  8448. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8449. <div style="margin: 5px 0">表格</div>
  8450. </div>
  8451. <div class="check">
  8452. <div
  8453. v-if="checktoolArray.indexOf(48) == -1"
  8454. class="noChoose"
  8455. ></div>
  8456. <div v-else class="isChoose"></div>
  8457. </div>
  8458. </div>
  8459. </div>
  8460. <div class="toolSort" v-if="toolType == 6">
  8461. <div v-show="tooC == 49">
  8462. <img
  8463. @click="addTools(tooC, toolIndex, taskCount)"
  8464. src="../../assets/icon/fourthToolList/group.png"
  8465. alt
  8466. />
  8467. <div style="margin: 5px 0">学生分组</div>
  8468. </div>
  8469. </div>
  8470. <div class="toolSort" v-if="toolType == 2">
  8471. <div
  8472. class="tool"
  8473. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8474. @click="addTools2(16)"
  8475. >
  8476. <div class="whiteBIcon">
  8477. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8478. <div style="margin: 5px 0">作业提交</div>
  8479. </div>
  8480. <div class="check">
  8481. <div
  8482. v-if="checktoolArray.indexOf(16) == -1"
  8483. class="noChoose"
  8484. ></div>
  8485. <div v-else class="isChoose"></div>
  8486. </div>
  8487. </div>
  8488. <div
  8489. class="tool"
  8490. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8491. @click="addTools2(50)"
  8492. >
  8493. <div class="whiteBIcon">
  8494. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8495. <div style="margin: 5px 0">批量上传</div>
  8496. </div>
  8497. <div class="check">
  8498. <div
  8499. v-if="checktoolArray.indexOf(50) == -1"
  8500. class="noChoose"
  8501. ></div>
  8502. <div v-else class="isChoose"></div>
  8503. </div>
  8504. </div>
  8505. </div>
  8506. <div class="toolSort" v-if="toolType == 3">
  8507. <div
  8508. class="tool"
  8509. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8510. @click="addTools2(18)"
  8511. >
  8512. <div class="whiteBIcon">
  8513. <img
  8514. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8515. alt
  8516. />
  8517. <div style="margin: 5px 0">训练平台</div>
  8518. </div>
  8519. <div class="check">
  8520. <div
  8521. v-if="checktoolArray.indexOf(18) == -1"
  8522. class="noChoose"
  8523. ></div>
  8524. <div v-else class="isChoose"></div>
  8525. </div>
  8526. </div>
  8527. <div
  8528. class="tool"
  8529. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8530. @click="addTools2(21)"
  8531. >
  8532. <div class="whiteBIcon">
  8533. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8534. <div style="margin: 5px 0">AIoT Blockly</div>
  8535. </div>
  8536. <div class="check">
  8537. <div
  8538. v-if="checktoolArray.indexOf(21) == -1"
  8539. class="noChoose"
  8540. ></div>
  8541. <div v-else class="isChoose"></div>
  8542. </div>
  8543. </div>
  8544. <div
  8545. class="tool"
  8546. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8547. @click="addTools2(23)"
  8548. >
  8549. <div class="whiteBIcon">
  8550. <img
  8551. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8552. alt
  8553. />
  8554. <div style="margin: 5px 0">AI Python</div>
  8555. </div>
  8556. <div class="check">
  8557. <div
  8558. v-if="checktoolArray.indexOf(23) == -1"
  8559. class="noChoose"
  8560. ></div>
  8561. <div v-else class="isChoose"></div>
  8562. </div>
  8563. </div>
  8564. <div
  8565. class="tool"
  8566. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8567. @click="addTools2(24)"
  8568. >
  8569. <div class="whiteBIcon">
  8570. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8571. <div style="margin: 5px 0">AI Blockly</div>
  8572. </div>
  8573. <div class="check">
  8574. <div
  8575. v-if="checktoolArray.indexOf(24) == -1"
  8576. class="noChoose"
  8577. ></div>
  8578. <div v-else class="isChoose"></div>
  8579. </div>
  8580. </div>
  8581. <div
  8582. class="tool"
  8583. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8584. @click="addTools2(32)"
  8585. >
  8586. <div class="whiteBIcon">
  8587. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8588. <div style="margin: 5px 0">源码编辑</div>
  8589. </div>
  8590. <div class="check">
  8591. <div
  8592. v-if="checktoolArray.indexOf(32) == -1"
  8593. class="noChoose"
  8594. ></div>
  8595. <div v-else class="isChoose"></div>
  8596. </div>
  8597. </div>
  8598. <div
  8599. class="tool"
  8600. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8601. @click="addTools2(57)"
  8602. >
  8603. <div class="whiteBIcon">
  8604. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8605. <div style="margin: 5px 0">CocoPi</div>
  8606. </div>
  8607. <div class="check">
  8608. <div
  8609. v-if="checktoolArray.indexOf(57) == -1"
  8610. class="noChoose"
  8611. ></div>
  8612. <div v-else class="isChoose"></div>
  8613. </div>
  8614. </div>
  8615. <div
  8616. class="tool"
  8617. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8618. @click="addTools2(63)"
  8619. >
  8620. <div class="whiteBIcon">
  8621. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8622. <div style="margin: 5px 0">海龟编程</div>
  8623. </div>
  8624. <div class="check">
  8625. <div
  8626. v-if="checktoolArray.indexOf(63) == -1"
  8627. class="noChoose"
  8628. ></div>
  8629. <div v-else class="isChoose"></div>
  8630. </div>
  8631. </div>
  8632. <div
  8633. class="tool"
  8634. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8635. @click="addTools2(71)"
  8636. >
  8637. <div class="whiteBIcon">
  8638. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  8639. <div style="margin: 5px 0">AI智能体</div>
  8640. </div>
  8641. <div class="check">
  8642. <div
  8643. v-if="checktoolArray.indexOf(71) == -1"
  8644. class="noChoose"
  8645. ></div>
  8646. <div v-else class="isChoose"></div>
  8647. </div>
  8648. </div>
  8649. </div>
  8650. <div class="toolSort" v-if="toolType == 7">
  8651. <div
  8652. class="tool"
  8653. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8654. @click="addTools2(40)"
  8655. >
  8656. <div class="whiteBIcon">
  8657. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8658. <div style="margin: 5px 0">个人评价</div>
  8659. </div>
  8660. <div class="check">
  8661. <div
  8662. v-if="checktoolArray.indexOf(40) == -1"
  8663. class="noChoose"
  8664. ></div>
  8665. <div v-else class="isChoose"></div>
  8666. </div>
  8667. </div>
  8668. </div>
  8669. <div class="toolSort" v-if="toolType == 5">
  8670. <div
  8671. class="tool"
  8672. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8673. @click="addTools2(28)"
  8674. >
  8675. <div class="whiteBIcon">
  8676. <img
  8677. src="../../assets/icon/secondToolList/translation.png"
  8678. alt
  8679. />
  8680. <div style="margin: 5px 0">翻译</div>
  8681. </div>
  8682. <div class="check">
  8683. <div
  8684. v-if="checktoolArray.indexOf(28) == -1"
  8685. class="noChoose"
  8686. ></div>
  8687. <div v-else class="isChoose"></div>
  8688. </div>
  8689. </div>
  8690. <div
  8691. class="tool"
  8692. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8693. @click="addTools2(31)"
  8694. >
  8695. <div class="whiteBIcon">
  8696. <img
  8697. src="../../assets/icon/secondToolList/networkPanel.png"
  8698. alt
  8699. />
  8700. <div style="margin: 5px 0">数字画板</div>
  8701. </div>
  8702. <div class="check">
  8703. <div
  8704. v-if="checktoolArray.indexOf(31) == -1"
  8705. class="noChoose"
  8706. ></div>
  8707. <div v-else class="isChoose"></div>
  8708. </div>
  8709. </div>
  8710. <div
  8711. class="tool"
  8712. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8713. @click="addTools2(39)"
  8714. >
  8715. <div class="whiteBIcon">
  8716. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8717. <div style="margin: 5px 0">GeoGebra</div>
  8718. </div>
  8719. <div class="check">
  8720. <div
  8721. v-if="checktoolArray.indexOf(39) == -1"
  8722. class="noChoose"
  8723. ></div>
  8724. <div v-else class="isChoose"></div>
  8725. </div>
  8726. </div>
  8727. <div
  8728. class="tool"
  8729. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8730. @click="addTools2(66)"
  8731. >
  8732. <div class="whiteBIcon">
  8733. <img
  8734. src="../../assets/icon/secondToolList/formulaEdi.png"
  8735. alt
  8736. />
  8737. <div style="margin: 5px 0">公式编辑</div>
  8738. </div>
  8739. <div class="check">
  8740. <div
  8741. v-if="checktoolArray.indexOf(66) == -1"
  8742. class="noChoose"
  8743. ></div>
  8744. <div v-else class="isChoose"></div>
  8745. </div>
  8746. </div>
  8747. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8748. <div class="whiteBIcon" @click="addTools2(67)">
  8749. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8750. <div style="margin: 5px 0">分子结构</div>
  8751. </div>
  8752. <div class="check" @click="addTools2(67)">
  8753. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8754. <div v-else class="isChoose"></div>
  8755. </div>
  8756. </div> -->
  8757. <div
  8758. class="tool"
  8759. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8760. @click="addTools2(68)"
  8761. >
  8762. <div class="whiteBIcon">
  8763. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8764. <div style="margin: 5px 0">时间轴</div>
  8765. </div>
  8766. <div class="check">
  8767. <div
  8768. v-if="checktoolArray.indexOf(68) == -1"
  8769. class="noChoose"
  8770. ></div>
  8771. <div v-else class="isChoose"></div>
  8772. </div>
  8773. </div>
  8774. <!-- <div
  8775. class="tool"
  8776. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8777. @click="addTools2(69)"
  8778. >
  8779. <div class="whiteBIcon">
  8780. <img src="../../assets/icon/secondToolList/english.png" alt />
  8781. <div style="margin: 5px 0">英语写作</div>
  8782. </div>
  8783. <div class="check">
  8784. <div
  8785. v-if="checktoolArray.indexOf(69) == -1"
  8786. class="noChoose"
  8787. ></div>
  8788. <div v-else class="isChoose"></div>
  8789. </div>
  8790. </div> -->
  8791. </div>
  8792. <div class="toolSort" v-if="toolType == 4">
  8793. <div
  8794. class="tool"
  8795. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8796. @click="addTools2(26)"
  8797. >
  8798. <div class="whiteBIcon">
  8799. <img
  8800. src="../../assets/icon/thirdToolList/courseDesign.png"
  8801. alt
  8802. />
  8803. <div style="margin: 5px 0">课程设计</div>
  8804. </div>
  8805. <div class="check">
  8806. <div
  8807. v-if="checktoolArray.indexOf(26) == -1"
  8808. class="noChoose"
  8809. ></div>
  8810. <div v-else class="isChoose"></div>
  8811. </div>
  8812. </div>
  8813. <div
  8814. class="tool"
  8815. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8816. @click="addTools2(25)"
  8817. >
  8818. <div class="whiteBIcon">
  8819. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8820. <div style="margin: 5px 0">目标管理</div>
  8821. </div>
  8822. <div class="check">
  8823. <div
  8824. v-if="checktoolArray.indexOf(25) == -1"
  8825. class="noChoose"
  8826. ></div>
  8827. <div v-else class="isChoose"></div>
  8828. </div>
  8829. </div>
  8830. </div>
  8831. </div>
  8832. </div>
  8833. <span
  8834. slot="footer"
  8835. class="dialog-footer"
  8836. style="display: block; text-align: center; padding: 0 0 10px 0"
  8837. >
  8838. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8839. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8840. </span>
  8841. </div>
  8842. <div
  8843. v-if="replyDialogVisible == true"
  8844. class="addDialogCss"
  8845. v-el-drag-dialog
  8846. >
  8847. <div class="pzTop">
  8848. <div class="teacherPz">
  8849. <div class="teacherPzImg">
  8850. <img src="../../assets/icon/teacherPz.png" alt="" />
  8851. </div>
  8852. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8853. </div>
  8854. <div @click="replyDialogVisible = false">
  8855. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8856. </div>
  8857. </div>
  8858. <div class="addPzBox">
  8859. <!-- <div class="addPzCheck">
  8860. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8861. >文本</span
  8862. >
  8863. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8864. >音频</span
  8865. >
  8866. </div> -->
  8867. <div style="height: calc(100% - 50px)">
  8868. <editor-bar
  8869. class="binfo_input pzConText"
  8870. style="width: 100% !important; margin: 0 auto"
  8871. placeholder="请输入回复描述"
  8872. v-model="reply"
  8873. @change="change"
  8874. ></editor-bar>
  8875. </div>
  8876. <div class="addTextCss" @click="addHf">确定</div>
  8877. </div>
  8878. </div>
  8879. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8880. <div class="pzTop">
  8881. <div class="teacherPz">
  8882. <div class="teacherPzImg">
  8883. <img src="../../assets/icon/teacherPz.png" alt="" />
  8884. </div>
  8885. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8886. </div>
  8887. <div @click="addPzDialog = false">
  8888. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8889. </div>
  8890. </div>
  8891. <div class="addPzBox">
  8892. <div class="addPzCheck">
  8893. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8894. >文本</span
  8895. >
  8896. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8897. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8898. >音频</span
  8899. >
  8900. </div>
  8901. <div style="height: calc(100% - 95px)">
  8902. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8903. v-if="pzType == 1"></textarea> -->
  8904. <editor-bar
  8905. class="binfo_input pzConText"
  8906. style="width: 100% !important"
  8907. placeholder="请输入任务描述"
  8908. v-model="pzConText"
  8909. @change="change"
  8910. v-if="pzType == 1"
  8911. ></editor-bar>
  8912. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8913. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8914. <div @click="addImg($event)">
  8915. <el-button type="primary">上传图片</el-button>
  8916. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8917. @change="beforeUpload1($event, 4)" />
  8918. </div>
  8919. </div> -->
  8920. </div>
  8921. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8922. 确定
  8923. </div>
  8924. </div>
  8925. </div>
  8926. <div v-if="proVisible" class="mask">
  8927. <div class="progressBox">
  8928. <!-- <div id="closePro" class="closeCss">
  8929. <img src="../../assets/icon/close.png" alt />
  8930. </div> -->
  8931. <div class="lbox">
  8932. <img src="../../assets/loading.gif" />上传中,请稍后
  8933. </div>
  8934. <div style="margin-bottom: 10px">
  8935. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8936. </div>
  8937. <el-progress
  8938. :text-inside="true"
  8939. :stroke-width="20"
  8940. :percentage="progress"
  8941. style="width: 80%"
  8942. ></el-progress>
  8943. </div>
  8944. </div>
  8945. <div v-if="proVisible2" class="mask">
  8946. <div class="progressBox">
  8947. <div class="lbox">
  8948. <img src="../../assets/loading.gif" />上传中,请稍后
  8949. </div>
  8950. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8951. </div>
  8952. </div>
  8953. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8954. <img width="100%" :src="dialogImageUrl" alt />
  8955. </el-dialog>
  8956. <el-dialog
  8957. :title="noteName != '' ? noteName : '查看问卷'"
  8958. :visible.sync="dialogVisible5"
  8959. :append-to-body="true"
  8960. width="1000px"
  8961. :before-close="handleClose"
  8962. class="dialog_diy dialog_diy3"
  8963. >
  8964. <div>
  8965. <div
  8966. class="a_add_title"
  8967. style="
  8968. display: flex;
  8969. flex-direction: row;
  8970. align-items: center;
  8971. justify-content: center;
  8972. "
  8973. >
  8974. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8975. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8976. </div>
  8977. <div class="a_addBox">
  8978. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8979. 题目内容
  8980. </div>
  8981. <div
  8982. class="a_add_box"
  8983. v-for="(item1, index1) in askJson.askCount"
  8984. :key="index1"
  8985. >
  8986. <div class="a_add_head">
  8987. <div style="display: flex">
  8988. <span class="askIndex"> {{ index1 + 1 }}</span>
  8989. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8990. </div>
  8991. <img
  8992. v-if="askJson.askJson[index1].img"
  8993. :src="askJson.askJson[index1].img"
  8994. style="height: 300px; margin-top: 10px; max-width: 100%"
  8995. />
  8996. </div>
  8997. <div class="a_add_body">
  8998. <div class="a_add_input">
  8999. <el-radio-group
  9000. v-model="radio[index1]"
  9001. v-if="
  9002. askJson.askJson[index1].type == '1' ||
  9003. !askJson.askJson[index1].type
  9004. "
  9005. >
  9006. <el-radio
  9007. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9008. .checkList"
  9009. :key="checkIndex"
  9010. :label="checkIndex"
  9011. :disabled="isAnswer"
  9012. class="redioStyle"
  9013. ><span v-html="item2"></span
  9014. ></el-radio>
  9015. </el-radio-group>
  9016. <el-checkbox-group
  9017. v-model="radio[index1]"
  9018. v-if="askJson.askJson[index1].type == '2'"
  9019. >
  9020. <el-checkbox
  9021. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9022. .checkList"
  9023. :key="checkIndex1"
  9024. :label="checkIndex1"
  9025. :disabled="isAnswer"
  9026. class="redioStyle"
  9027. ><span v-html="item2"></span>
  9028. </el-checkbox>
  9029. </el-checkbox-group>
  9030. </div>
  9031. </div>
  9032. </div>
  9033. </div>
  9034. </div>
  9035. <span slot="footer" class="dialog-footer">
  9036. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9037. >取 消</el-button
  9038. >
  9039. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9040. >确 定</el-button
  9041. >
  9042. </span>
  9043. </el-dialog>
  9044. <el-dialog
  9045. :title="noteName != '' ? noteName : '查看问卷'"
  9046. :visible.sync="dialogVisible5Teacher"
  9047. :append-to-body="true"
  9048. width="1000px"
  9049. :before-close="handleClose"
  9050. class="dialog_diy dialog_diy3"
  9051. >
  9052. <div>
  9053. <div class="w_name">
  9054. 学生姓名:<span>{{ sStudent.student }}</span>
  9055. </div>
  9056. <div
  9057. class="a_add_title"
  9058. style="
  9059. display: flex;
  9060. flex-direction: row;
  9061. align-items: center;
  9062. justify-content: center;
  9063. "
  9064. >
  9065. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9066. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9067. </div>
  9068. <div class="a_addBox">
  9069. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9070. 题目内容
  9071. </div>
  9072. <div
  9073. class="a_add_box"
  9074. v-for="(item1, index1) in askJson.askCount"
  9075. :key="index1"
  9076. >
  9077. <div class="a_add_head">
  9078. <div style="display: flex">
  9079. <span class="askIndex">{{ index1 + 1 }}</span>
  9080. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9081. </div>
  9082. <img
  9083. v-if="askJson.askJson[index1].img"
  9084. :src="askJson.askJson[index1].img"
  9085. style="height: 300px; margin-top: 10px; max-width: 100%"
  9086. />
  9087. </div>
  9088. <div class="a_add_body">
  9089. <div class="a_add_input">
  9090. <el-radio-group
  9091. v-model="radio[index1]"
  9092. v-if="
  9093. askJson.askJson[index1].type == '1' ||
  9094. !askJson.askJson[index1].type
  9095. "
  9096. >
  9097. <el-radio
  9098. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9099. .checkList"
  9100. :key="checkIndex"
  9101. :label="checkIndex"
  9102. :disabled="isAnswer"
  9103. class="redioStyle"
  9104. ><span v-html="item2"></span
  9105. ></el-radio>
  9106. </el-radio-group>
  9107. <el-checkbox-group
  9108. v-model="radio[index1]"
  9109. v-if="askJson.askJson[index1].type == '2'"
  9110. >
  9111. <el-checkbox
  9112. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9113. .checkList"
  9114. :key="checkIndex1"
  9115. :label="checkIndex1"
  9116. :disabled="isAnswer"
  9117. class="redioStyle"
  9118. ><span v-html="item2"></span>
  9119. </el-checkbox>
  9120. </el-checkbox-group>
  9121. </div>
  9122. </div>
  9123. </div>
  9124. </div>
  9125. </div>
  9126. <span slot="footer" class="dialog-footer">
  9127. <el-button
  9128. @click="dialogVisible5Teacher = false"
  9129. v-show="noteName == ''"
  9130. >取 消</el-button
  9131. >
  9132. <el-button
  9133. type="primary"
  9134. @click="addStudentAskTeacher"
  9135. v-show="noteName == ''"
  9136. >确 定</el-button
  9137. >
  9138. </span>
  9139. </el-dialog>
  9140. <el-dialog
  9141. :title="noteName != '' ? noteName : '查看选择题'"
  9142. :visible.sync="dialogVisibleChoice"
  9143. :append-to-body="true"
  9144. width="1000px"
  9145. :before-close="handleClose"
  9146. class="dialog_diy dialog_diy3"
  9147. >
  9148. <div>
  9149. <!-- <div class="a_add_title" style="
  9150. display: flex;
  9151. flex-direction: row;
  9152. align-items: center;
  9153. justify-content: center;
  9154. ">
  9155. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9156. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9157. </div> -->
  9158. <div class="a_addBox">
  9159. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9160. 题目内容
  9161. </div>
  9162. <div
  9163. class="a_add_box"
  9164. v-for="(item1, index1) in testJson.testCount"
  9165. :key="index1"
  9166. >
  9167. <div class="a_add_head">
  9168. <div style="display: flex">
  9169. <span class="askIndex">{{ index1 + 1 }}</span>
  9170. <div
  9171. v-if="testJson.testJson[index1].type == '1'"
  9172. style="margin-right: 5px; min-width: 70px"
  9173. >
  9174. (单选题)
  9175. </div>
  9176. <div
  9177. v-if="testJson.testJson[index1].type == '2'"
  9178. style="margin-right: 5px; min-width: 70px"
  9179. >
  9180. (多选题)
  9181. </div>
  9182. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9183. </div>
  9184. <img
  9185. v-if="testJson.testJson[index1].img"
  9186. :src="testJson.testJson[index1].img"
  9187. style="height: 300px; margin-top: 10px; max-width: 100%"
  9188. />
  9189. </div>
  9190. <div
  9191. class="timuImgBox"
  9192. v-if="
  9193. testJson.testJson[index1].timuList &&
  9194. testJson.testJson[index1].timuList.length
  9195. "
  9196. >
  9197. <div
  9198. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9199. :key="tIndex"
  9200. class="timuImg"
  9201. @click.stop="previewImg(timg.src)"
  9202. >
  9203. <img :src="timg.src" alt="" />
  9204. </div>
  9205. </div>
  9206. <div class="a_add_body">
  9207. <div class="a_add_input">
  9208. <el-radio-group
  9209. v-model="radio[index1]"
  9210. v-if="testJson.testJson[index1].type == '1'"
  9211. >
  9212. <div class="radioBox">
  9213. <el-radio
  9214. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9215. .checkList"
  9216. :key="checkIndex"
  9217. :label="checkIndex"
  9218. :disabled="isAnswer"
  9219. class="redioStyle"
  9220. >
  9221. <div
  9222. style="margin-right: 10px"
  9223. v-if="item2 && item2.imgType && item2.imgType == 1"
  9224. >
  9225. <div class="inImg" @click.stop="previewImg(item2.src)">
  9226. <img :src="item2.src" alt="" />
  9227. </div>
  9228. </div>
  9229. <span v-else v-html="item2"></span>
  9230. </el-radio>
  9231. </div>
  9232. </el-radio-group>
  9233. <el-checkbox-group
  9234. v-model="radio[index1]"
  9235. v-if="testJson.testJson[index1].type == '2'"
  9236. >
  9237. <div class="radioBox">
  9238. <el-checkbox
  9239. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9240. .checkList"
  9241. :key="checkIndex"
  9242. :label="checkIndex"
  9243. :disabled="isAnswer"
  9244. class="redioStyle"
  9245. >
  9246. <div
  9247. style="margin-right: 10px"
  9248. v-if="item2 && item2.imgType && item2.imgType == 1"
  9249. >
  9250. <div class="inImg" @click.stop="previewImg(item2.src)">
  9251. <img :src="item2.src" alt="" />
  9252. </div>
  9253. </div>
  9254. <span v-else v-html="item2"></span>
  9255. </el-checkbox>
  9256. </div>
  9257. </el-checkbox-group>
  9258. </div>
  9259. </div>
  9260. </div>
  9261. </div>
  9262. </div>
  9263. <span slot="footer" class="dialog-footer">
  9264. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9265. >取 消</el-button
  9266. >
  9267. <el-button
  9268. type="primary"
  9269. @click="addStudentTest"
  9270. v-show="noteName == ''"
  9271. >确 定</el-button
  9272. >
  9273. </span>
  9274. </el-dialog>
  9275. <el-dialog
  9276. :title="noteName != '' ? noteName : '查看选择题'"
  9277. :visible.sync="dialogVisibleChoiceTeacher"
  9278. :append-to-body="true"
  9279. width="1000px"
  9280. :before-close="handleClose"
  9281. class="dialog_diy dialog_diy3"
  9282. >
  9283. <div>
  9284. <div class="w_name">
  9285. 学生姓名:<span>{{ sStudent.student }}</span>
  9286. </div>
  9287. <div class="a_addBox">
  9288. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9289. 题目内容
  9290. </div>
  9291. <div
  9292. class="a_add_box"
  9293. v-for="(item1, index1) in testJson.testCount"
  9294. :key="index1"
  9295. >
  9296. <div class="a_add_head">
  9297. <div style="display: flex">
  9298. <span class="askIndex">{{ index1 + 1 }}</span>
  9299. <div
  9300. v-if="testJson.testJson[index1].type == '1'"
  9301. style="margin-right: 5px; min-width: 70px"
  9302. >
  9303. (单选题)
  9304. </div>
  9305. <div
  9306. v-if="testJson.testJson[index1].type == '2'"
  9307. style="margin-right: 5px; min-width: 70px"
  9308. >
  9309. (多选题)
  9310. </div>
  9311. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9312. </div>
  9313. <img
  9314. v-if="testJson.testJson[index1].img"
  9315. :src="testJson.testJson[index1].img"
  9316. style="height: 300px; margin-top: 10px; max-width: 100%"
  9317. />
  9318. </div>
  9319. <div
  9320. class="timuImgBox"
  9321. v-if="
  9322. testJson.testJson[index1].timuList &&
  9323. testJson.testJson[index1].timuList.length
  9324. "
  9325. >
  9326. <div
  9327. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9328. :key="tIndex"
  9329. class="timuImg"
  9330. @click.stop="previewImg(timg.src)"
  9331. >
  9332. <img :src="timg.src" alt="" />
  9333. </div>
  9334. </div>
  9335. <div class="a_add_body">
  9336. <div class="a_add_input">
  9337. <el-radio-group
  9338. v-model="radio[index1]"
  9339. v-if="testJson.testJson[index1].type == '1'"
  9340. >
  9341. <div class="radioBox">
  9342. <el-radio
  9343. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9344. .checkList"
  9345. :key="checkIndex"
  9346. :label="checkIndex"
  9347. :disabled="isAnswer"
  9348. class="redioStyle"
  9349. >
  9350. <div
  9351. style="margin-right: 10px"
  9352. v-if="item2 && item2.imgType && item2.imgType == 1"
  9353. >
  9354. <div class="inImg" @click.stop="previewImg(item2.src)">
  9355. <img :src="item2.src" alt="" />
  9356. </div>
  9357. </div>
  9358. <span v-else v-html="item2"></span>
  9359. </el-radio>
  9360. </div>
  9361. </el-radio-group>
  9362. <el-checkbox-group
  9363. v-model="radio[index1]"
  9364. v-if="testJson.testJson[index1].type == '2'"
  9365. >
  9366. <div class="radioBox">
  9367. <el-checkbox
  9368. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9369. .checkList"
  9370. :key="checkIndex"
  9371. :label="checkIndex"
  9372. :disabled="isAnswer"
  9373. class="redioStyle"
  9374. >
  9375. <div
  9376. style="margin-right: 10px"
  9377. v-if="item2 && item2.imgType && item2.imgType == 1"
  9378. >
  9379. <div class="inImg" @click.stop="previewImg(item2.src)">
  9380. <img :src="item2.src" alt="" />
  9381. </div>
  9382. </div>
  9383. <span v-else v-html="item2"></span>
  9384. </el-checkbox>
  9385. </div>
  9386. </el-checkbox-group>
  9387. </div>
  9388. </div>
  9389. </div>
  9390. </div>
  9391. </div>
  9392. <span slot="footer" class="dialog-footer">
  9393. <el-button
  9394. @click="dialogVisibleChoiceTeacher = false"
  9395. v-show="noteName == ''"
  9396. >取 消</el-button
  9397. >
  9398. <el-button
  9399. type="primary"
  9400. @click="addStudentTestTeacher"
  9401. v-show="noteName == ''"
  9402. >确 定</el-button
  9403. >
  9404. </span>
  9405. </el-dialog>
  9406. <el-dialog
  9407. title="查看富文本"
  9408. :visible.sync="dialogVisible1"
  9409. :append-to-body="true"
  9410. width="500px"
  9411. :before-close="handleClose"
  9412. class="dialog_diy textCss"
  9413. >
  9414. <el-form style="font-size: 20px">
  9415. <el-form-item label="文本标题" class="textTitle">
  9416. <div style="font-size: 20px">{{ text.name }}</div>
  9417. </el-form-item>
  9418. <div>富文本内容</div>
  9419. <div
  9420. v-html="text.url"
  9421. style="font-size: 18px; padding: 40px 0 0 0"
  9422. ></div>
  9423. </el-form>
  9424. <span slot="footer" class="dialog-footer">
  9425. <el-button type="primary" @click="dialogVisible1 = false"
  9426. >确定</el-button
  9427. >
  9428. </span>
  9429. </el-dialog>
  9430. <el-dialog
  9431. title="文件预览"
  9432. :visible.sync="dialogVisible3"
  9433. width="50%"
  9434. :before-close="handleClose"
  9435. class="dialog_diy"
  9436. :class="{ fullStyle: full }"
  9437. >
  9438. <div slot="title" class="header-title">
  9439. <div style="color: #fff">文件预览</div>
  9440. <div style="position: absolute; top: 19px; right: 50px">
  9441. <img
  9442. src="../../assets/full.png"
  9443. style="height: 16px; cursor: pointer"
  9444. alt=""
  9445. @click="fullTools"
  9446. />
  9447. </div>
  9448. </div>
  9449. <pdf
  9450. v-if="showPDF"
  9451. :pdfUrl="pptImgUrl"
  9452. style="width: 100%; height: 520px; overflow: auto"
  9453. :class="{ fullStyle: full }"
  9454. ></pdf>
  9455. <iframe
  9456. v-else
  9457. :src="pptImgUrl"
  9458. frameborder="0"
  9459. width="100%"
  9460. height="600"
  9461. :class="{ fullStyle: full }"
  9462. ></iframe>
  9463. </el-dialog>
  9464. <el-dialog
  9465. title="文件预览"
  9466. :visible.sync="dialogVisible6"
  9467. width="50%"
  9468. :before-close="handleClose"
  9469. class="dialog_diy"
  9470. >
  9471. <iframe
  9472. :src="pptImgUrl1"
  9473. frameborder="0"
  9474. width="100%"
  9475. height="600"
  9476. ></iframe>
  9477. </el-dialog>
  9478. <el-dialog
  9479. title="提示"
  9480. :visible.sync="dialogVisible4"
  9481. :append-to-body="true"
  9482. width="800px"
  9483. :before-close="handleClose"
  9484. class="dialog_diy notice"
  9485. >
  9486. <div>此功能暂未开放!</div>
  9487. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9488. </el-dialog>
  9489. <el-dialog
  9490. title="问答"
  9491. :visible.sync="answerDialogVisible"
  9492. :append-to-body="true"
  9493. width="800px"
  9494. :before-close="handleClose"
  9495. class="dialog_diy"
  9496. >
  9497. <div>
  9498. <div
  9499. style="
  9500. display: flex;
  9501. flex-wrap: nowrap;
  9502. flex-direction: column;
  9503. position: relative;
  9504. "
  9505. >
  9506. <div class="queTop" style="padding: 20px 0 20px 0">
  9507. <div class="question">
  9508. <img src="../../assets/icon/question.png" alt />
  9509. </div>
  9510. <div class="queTitle">
  9511. <div style="width: 90px; min-width: 90px">提问:</div>
  9512. <div>{{ answerQ }}</div>
  9513. </div>
  9514. </div>
  9515. <div class="ediBottom">
  9516. <textarea
  9517. rows="6"
  9518. class="binfo_input"
  9519. cols
  9520. style="width: 95%; height: 120px"
  9521. v-model="questionAnswer"
  9522. ></textarea>
  9523. </div>
  9524. </div>
  9525. </div>
  9526. <div slot="footer">
  9527. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9528. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9529. </div>
  9530. </el-dialog>
  9531. <el-dialog
  9532. title="问答"
  9533. :visible.sync="answerDialogVisibleTeacher"
  9534. :append-to-body="true"
  9535. width="800px"
  9536. :before-close="handleClose"
  9537. class="dialog_diy"
  9538. >
  9539. <div>
  9540. <div class="w_name">
  9541. 学生姓名:<span>{{ sStudent.student }}</span>
  9542. </div>
  9543. <div
  9544. style="
  9545. display: flex;
  9546. flex-wrap: nowrap;
  9547. flex-direction: column;
  9548. position: relative;
  9549. "
  9550. >
  9551. <div class="queTop" style="padding: 20px 0 20px 0">
  9552. <div class="question">
  9553. <img src="../../assets/icon/question.png" alt />
  9554. </div>
  9555. <div class="queTitle">
  9556. <div style="width: 90px; min-width: 90px">提问:</div>
  9557. <div>{{ answerQ }}</div>
  9558. </div>
  9559. </div>
  9560. <div class="ediBottom">
  9561. <textarea
  9562. rows="6"
  9563. class="binfo_input"
  9564. cols
  9565. style="width: 95%; height: 120px"
  9566. v-model="questionAnswer"
  9567. ></textarea>
  9568. </div>
  9569. </div>
  9570. </div>
  9571. <div slot="footer">
  9572. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9573. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9574. </div>
  9575. </el-dialog>
  9576. <el-dialog
  9577. title="倒计时"
  9578. :visible.sync="timeDialogVisible"
  9579. :append-to-body="true"
  9580. width="800px"
  9581. :before-close="handleClose"
  9582. class="dialog_diy"
  9583. >
  9584. <div>
  9585. <div style="margin-bottom: 20px; color: #999">
  9586. 提示:点击“+”或“-”修改倒计时时长。
  9587. </div>
  9588. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9589. </div>
  9590. <div slot="footer">
  9591. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9592. </div>
  9593. </el-dialog>
  9594. <el-dialog
  9595. title="权限设置"
  9596. :visible.sync="juriVisible"
  9597. :append-to-body="true"
  9598. width="400px"
  9599. :before-close="handleClose"
  9600. class="dialog_diy"
  9601. >
  9602. <div>
  9603. <div class="open_box">
  9604. <div class="switch_box">
  9605. <span>允许学生查看所有作业</span>
  9606. <el-switch
  9607. v-model="sIsOpen"
  9608. active-text=""
  9609. class="switchCss"
  9610. @change="updateSLook"
  9611. ></el-switch>
  9612. </div>
  9613. <div
  9614. class="switch_box"
  9615. v-if="
  9616. courseDetail.userid == userid ||
  9617. (courseDetail.course_teacher &&
  9618. courseDetail.course_teacher.indexOf(userid) != -1)
  9619. "
  9620. >
  9621. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9622. <span>禁止学生查看所有阶段</span>
  9623. <el-switch
  9624. v-model="IsLookOpen"
  9625. active-text=""
  9626. class="switchCss"
  9627. @change="updateLookOpen"
  9628. ></el-switch>
  9629. </div>
  9630. <div class="switch_box" v-if="courseDetail.userid == userid">
  9631. <span>开启跟随模式</span>
  9632. <el-switch
  9633. v-model="IsFollow"
  9634. active-text=""
  9635. class="switchCss"
  9636. @change="updateFollow"
  9637. ></el-switch>
  9638. </div>
  9639. </div>
  9640. </div>
  9641. <div slot="footer">
  9642. <el-button
  9643. style="background: #409efe; color: #fff"
  9644. @click="juriVisible = false"
  9645. >关 闭</el-button
  9646. >
  9647. </div>
  9648. </el-dialog>
  9649. <el-dialog
  9650. title="查看视频"
  9651. :visible.sync="videoVisible"
  9652. :append-to-body="true"
  9653. width="1000px"
  9654. :before-close="handleClose"
  9655. class="dialog_diy1"
  9656. >
  9657. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9658. <video-player
  9659. class="video-player vjs-custom-skin"
  9660. :playsinline="true"
  9661. :options="videoDetail"
  9662. @play="onPlayerPlay($event)"
  9663. style="width: 100%; height: 100%"
  9664. ></video-player>
  9665. </div>
  9666. <div slot="footer">
  9667. <el-button
  9668. style="background: #409efe; color: #fff"
  9669. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9670. >
  9671. 关 闭</el-button
  9672. >
  9673. </div>
  9674. </el-dialog>
  9675. <el-dialog
  9676. title="查看详情"
  9677. :visible.sync="commentDialogVisible"
  9678. :append-to-body="true"
  9679. width="800px"
  9680. :before-close="handleClose"
  9681. class="dialog_diy"
  9682. >
  9683. <div class="commentTop">
  9684. <div class="studentDetail">
  9685. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9686. <div class="nameAndTime">
  9687. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9688. <div>{{ commentDetail.time }}</div>
  9689. </div>
  9690. <div
  9691. class="returnBtn"
  9692. style="margin-left: auto; width: 80px"
  9693. v-if="
  9694. commentDetail.works &&
  9695. commentDetail.type == 0 &&
  9696. (tType == 1 || tType == 4)
  9697. "
  9698. @click="
  9699. showPicturePaint(
  9700. commentDetail.img ? commentDetail.img : commentDetail.works
  9701. )
  9702. "
  9703. >
  9704. 教师批注
  9705. </div>
  9706. </div>
  9707. <div
  9708. class="worksAnswer"
  9709. v-if="commentDetail.works && commentDetail.type == 2"
  9710. >
  9711. {{ JSON.parse(commentDetail.works)[0].answer }}
  9712. </div>
  9713. <div
  9714. class="worksAnswer"
  9715. v-if="commentDetail.works && commentDetail.type == 1"
  9716. >
  9717. <img
  9718. src="../../assets/teacherWork.png"
  9719. v-if="commentDetail.ateacher"
  9720. class="w_teachert"
  9721. />
  9722. <pdf
  9723. v-if="showPDF"
  9724. :pdfUrl="pptImgUrl"
  9725. style="width: 100%; height: 520px; overflow: auto"
  9726. :class="{ fullStyle: full }"
  9727. ></pdf>
  9728. <iframe
  9729. v-else
  9730. :src="pptImgUrl"
  9731. frameborder="0"
  9732. width="100%"
  9733. height="600"
  9734. :class="{ fullStyle: full }"
  9735. ></iframe>
  9736. </div>
  9737. <div
  9738. class="worksAnswer"
  9739. v-if="commentDetail.works && commentDetail.type == 0"
  9740. >
  9741. <img
  9742. src="../../assets/teacherWork.png"
  9743. v-if="commentDetail.ateacher"
  9744. class="w_teachert"
  9745. style="right: 105px"
  9746. />
  9747. <img
  9748. :src="commentDetail.works"
  9749. alt=""
  9750. @click="previewImg(commentDetail.works)"
  9751. />
  9752. </div>
  9753. <div
  9754. class="worksAnswer"
  9755. v-if="commentDetail.works && commentDetail.type == 3"
  9756. >
  9757. <img
  9758. src="../../assets/teacherWork.png"
  9759. v-if="commentDetail.ateacher"
  9760. class="w_teachert"
  9761. />
  9762. <video-player
  9763. class="video-player vjs-custom-skin"
  9764. :playsinline="true"
  9765. :options="videoDetail"
  9766. @play="onPlayerPlay($event)"
  9767. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9768. ></video-player>
  9769. </div>
  9770. <div
  9771. class="worksAnswer"
  9772. v-if="commentDetail.works && commentDetail.type == 10"
  9773. >
  9774. <div class="cont" v-html="commentDetail.works.text"></div>
  9775. </div>
  9776. <div
  9777. class="worksAnswer codeFileBox"
  9778. v-if="commentDetail.works && commentDetail.type == 12"
  9779. @click="downloadFile(commentDetail.works)"
  9780. >
  9781. <img src="../../assets/icon/codeFile.png" />
  9782. <div>点击下载文件</div>
  9783. </div>
  9784. <div
  9785. class="worksAnswer codeFileBox"
  9786. v-if="commentDetail.works && commentDetail.type == 15"
  9787. @click="
  9788. openCocoPi(
  9789. 57,
  9790. commentIndexJson.toolIndex,
  9791. commentDetail.userid,
  9792. commentDetail.sName
  9793. )
  9794. "
  9795. >
  9796. <img src="../../assets/icon/codeFile.png" />
  9797. <div>点击打开CocoPi</div>
  9798. </div>
  9799. <div
  9800. class="worksAnswer"
  9801. v-if="commentDetail.works && commentDetail.type == 13"
  9802. >
  9803. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9804. </div>
  9805. <div
  9806. class="worksAnswer"
  9807. v-if="commentDetail.works && commentDetail.type == 4"
  9808. >
  9809. <div class="evalCss">
  9810. <div class="nav">请选择星星进行评分</div>
  9811. <div class="middleBox" v-if="eScore.eStar">
  9812. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9813. <div class="nameAndrate">
  9814. <div>{{ e.value }}</div>
  9815. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9816. </div>
  9817. <div v-if="e.detail">{{ e.detail }}</div>
  9818. </div>
  9819. <div class="bz">
  9820. <textarea
  9821. disabled
  9822. rows="4"
  9823. class="pj"
  9824. style="
  9825. padding: 10px 5px;
  9826. width: 70%;
  9827. background: #f7f6f9;
  9828. font-size: 14px;
  9829. text-indent: 10px;
  9830. color: #000;
  9831. "
  9832. cols
  9833. v-model="eScore.eBzText"
  9834. placeholder="请输入评价内容..."
  9835. ></textarea>
  9836. </div>
  9837. </div>
  9838. </div>
  9839. </div>
  9840. <div class="comment">
  9841. <div class="commentList">
  9842. <div class="commentImg">
  9843. <img
  9844. @click="
  9845. isLikes(
  9846. commentDetail.wid,
  9847. userid,
  9848. 1,
  9849. null,
  9850. commentDetail.isLikes,
  9851. commentDetail.sName
  9852. )
  9853. "
  9854. :src="commentDetail.isLikes == true ? likes : noLikes"
  9855. alt=""
  9856. />
  9857. </div>
  9858. <div>{{ commentDetail.likesCount }}</div>
  9859. </div>
  9860. <div class="commentList">
  9861. <div class="commentImg">
  9862. <img src="../../assets/icon/comment/comment.png" alt="" />
  9863. </div>
  9864. <div>{{ commentDetail.commentCount }}</div>
  9865. </div>
  9866. </div>
  9867. <div class="drawPBox" v-if="commentDetail.img">
  9868. <span>教师批注</span>
  9869. <img
  9870. :src="commentDetail.img"
  9871. alt=""
  9872. @click="previewImg(commentDetail.img)"
  9873. />
  9874. <span
  9875. class="deleteImg"
  9876. v-if="tType == 1 || tType == 4"
  9877. @click.stop="deletePicturePaint(commentDetail.wid)"
  9878. style="
  9879. font-size: 14px;
  9880. width: auto !important;
  9881. color: #b4b4b4;
  9882. top: unset;
  9883. bottom: 0;
  9884. border: none;
  9885. padding: 0;
  9886. height: auto !important;
  9887. margin: 0;
  9888. "
  9889. >删除</span
  9890. >
  9891. </div>
  9892. </div>
  9893. <div class="commentBox">
  9894. <div class="pl">评论:</div>
  9895. <div style="max-height: 200px; overflow: auto">
  9896. <div
  9897. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9898. style="padding: 10px 0 0 0"
  9899. >
  9900. <div
  9901. class="studentDetail"
  9902. style="padding-top: 10px"
  9903. v-for="(co, coIndex) in commentDetail.commentJson"
  9904. :key="coIndex"
  9905. >
  9906. <div class="tx" style="min-width: 50px">
  9907. <img src="../../assets/avatar.png" alt="" />
  9908. </div>
  9909. <div class="plPerson">
  9910. <div class="plName">
  9911. <div>{{ co.commentPeople }}</div>
  9912. <div style="margin-left: 5px">
  9913. {{ co.commentTime }}
  9914. </div>
  9915. <div
  9916. class="deleteComment"
  9917. v-if="userid == co.userid"
  9918. @click="deleteComment(co.wid)"
  9919. >
  9920. 删除
  9921. </div>
  9922. </div>
  9923. <div class="plContent">{{ co.commentText }}</div>
  9924. </div>
  9925. </div>
  9926. </div>
  9927. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9928. </div>
  9929. </div>
  9930. <div style="margin-top: 10px">
  9931. <div class="displayBox">
  9932. <div
  9933. style="
  9934. color: #556db4;
  9935. font-size: 14px;
  9936. font-weight: bold;
  9937. padding-bottom: 10px;
  9938. "
  9939. >
  9940. 评价
  9941. </div>
  9942. <div class="easy_comment" v-if="false">
  9943. <div
  9944. v-for="(p, pIndex) in PlTextList"
  9945. :key="pIndex"
  9946. @click="fastText(p, 1)"
  9947. >
  9948. {{ p }}
  9949. </div>
  9950. </div>
  9951. </div>
  9952. <div>
  9953. <textarea
  9954. rows="3"
  9955. class="pj"
  9956. style="padding: 10px 5px"
  9957. cols
  9958. v-model="commentText"
  9959. placeholder="请输入评论"
  9960. ></textarea>
  9961. </div>
  9962. </div>
  9963. <div slot="footer">
  9964. <el-button
  9965. @click="
  9966. (commentDialogVisible = false),
  9967. (commentIndexJson = {}),
  9968. videoDetail.sources && videoDetail.sources[0]
  9969. ? (videoDetail.sources[0].src = '')
  9970. : ''
  9971. "
  9972. >取 消</el-button
  9973. >
  9974. <el-button
  9975. type="primary"
  9976. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  9977. >确 定</el-button
  9978. >
  9979. </div>
  9980. </el-dialog>
  9981. <el-dialog
  9982. title="查看文档"
  9983. :visible.sync="fullDialogVisible"
  9984. :append-to-body="true"
  9985. width="100%"
  9986. :before-close="handleClose"
  9987. :show-close="false"
  9988. class="dialog_diy full_diy"
  9989. :class="{ full_diy2: fulltype == 3 }"
  9990. >
  9991. <div slot="title" class="header-title">
  9992. <div style="color: #fff">查看文档</div>
  9993. <div
  9994. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  9995. style="
  9996. cursor: pointer;
  9997. position: absolute;
  9998. top: 20px;
  9999. right: 20px;
  10000. color: #fff;
  10001. "
  10002. >
  10003. 退出全屏
  10004. </div>
  10005. </div>
  10006. <div style="height: 100%">
  10007. <div
  10008. class="wheel"
  10009. v-if="
  10010. fulltype == 2 &&
  10011. fullUrl.indexOf(
  10012. 'https://view.officeapps.live.com/op/view.aspx?src='
  10013. ) != -1
  10014. "
  10015. style="width: 100%;height:100%; margin: 0 auto"
  10016. >
  10017. <iframe
  10018. style="width: 100%; height: 100%; border: none"
  10019. :src="fullUrl"
  10020. ></iframe>
  10021. </div>
  10022. <iframe
  10023. v-else-if="fulltype == 2"
  10024. style="width: 100%; height: 100%; border: none"
  10025. :src="fullUrl"
  10026. security="restricted"
  10027. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10028. ></iframe>
  10029. <pdf
  10030. v-else-if="fulltype == 3"
  10031. :pdfUrl="fullUrl"
  10032. style="width: 100%; height: 100%; overflow: auto"
  10033. ></pdf>
  10034. <div
  10035. class="wheel"
  10036. v-if="fulltype == 1"
  10037. style="
  10038. box-shadow: 0 0 6px 1px #f2f2f2;
  10039. height:100%;
  10040. width: 100%;
  10041. background: #f1f1f1;
  10042. "
  10043. >
  10044. <div class="title" style="width: 100%; box-sizing: border-box">
  10045. 查看文档
  10046. </div>
  10047. <el-form class="textBox" style="height: 90%">
  10048. <el-form-item class="textTitle">
  10049. <div style="font-size: 22px">
  10050. {{ fullUrl.name }}
  10051. </div>
  10052. </el-form-item>
  10053. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10054. <div
  10055. v-html="fullUrl.url"
  10056. class="textContent"
  10057. style="height: auto"
  10058. ></div>
  10059. </el-form>
  10060. </div>
  10061. </div>
  10062. <!-- <div slot="footer">
  10063. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10064. </div> -->
  10065. </el-dialog>
  10066. <el-dialog
  10067. title="个人评价"
  10068. :visible.sync="studentEvalDialogVisible"
  10069. :append-to-body="true"
  10070. width="800px"
  10071. :before-close="handleClose"
  10072. class="dialog_diy"
  10073. >
  10074. <div class="evalCss">
  10075. <div class="nav">请选择星星进行评分</div>
  10076. <div class="middleBox" v-if="eScore.eStar">
  10077. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10078. <div class="nameAndrate">
  10079. <div>{{ e.value }}</div>
  10080. <el-rate
  10081. v-model="eScore.eStar[eIndex]"
  10082. :disabled="isStar"
  10083. ></el-rate>
  10084. </div>
  10085. <div v-if="e.detail">{{ e.detail }}</div>
  10086. </div>
  10087. <div class="easy_comment" v-if="false">
  10088. <div
  10089. v-for="(p, pIndex) in PlTextList"
  10090. :key="pIndex"
  10091. @click="fastText(p, 2)"
  10092. >
  10093. {{ p }}
  10094. </div>
  10095. </div>
  10096. <div class="bz">
  10097. <textarea
  10098. :disabled="isStar"
  10099. rows="4"
  10100. class="pj"
  10101. style="
  10102. padding: 10px 5px;
  10103. width: 70%;
  10104. background: #f7f6f9;
  10105. font-size: 14px;
  10106. text-indent: 10px;
  10107. "
  10108. cols
  10109. v-model="eScore.eBzText"
  10110. placeholder="请输入评价内容..."
  10111. ></textarea>
  10112. </div>
  10113. </div>
  10114. </div>
  10115. <div slot="footer">
  10116. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10117. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10118. >确 定</el-button
  10119. >
  10120. </div>
  10121. </el-dialog>
  10122. <el-dialog
  10123. title="个人评价"
  10124. :visible.sync="studentEvalDialogVisibleTeacher"
  10125. :append-to-body="true"
  10126. width="800px"
  10127. :before-close="handleClose"
  10128. class="dialog_diy"
  10129. >
  10130. <div class="w_name">
  10131. 学生姓名:<span>{{ sStudent.student }}</span>
  10132. </div>
  10133. <div class="evalCss">
  10134. <div class="nav">请选择星星进行评分</div>
  10135. <div class="middleBox" v-if="eScore.eStar">
  10136. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10137. <div class="nameAndrate">
  10138. <div>{{ e.value }}</div>
  10139. <el-rate
  10140. v-model="eScore.eStar[eIndex]"
  10141. :disabled="isStar"
  10142. ></el-rate>
  10143. </div>
  10144. <div v-if="e.detail">{{ e.detail }}</div>
  10145. </div>
  10146. <div class="easy_comment" v-if="false">
  10147. <div
  10148. v-for="(p, pIndex) in PlTextList"
  10149. :key="pIndex"
  10150. @click="fastText(p, 2)"
  10151. >
  10152. {{ p }}
  10153. </div>
  10154. </div>
  10155. <div class="bz">
  10156. <textarea
  10157. :disabled="isStar"
  10158. rows="4"
  10159. class="pj"
  10160. style="
  10161. padding: 10px 5px;
  10162. width: 70%;
  10163. background: #f7f6f9;
  10164. font-size: 14px;
  10165. text-indent: 10px;
  10166. "
  10167. cols
  10168. v-model="eScore.eBzText"
  10169. placeholder="请输入评价内容..."
  10170. ></textarea>
  10171. </div>
  10172. </div>
  10173. </div>
  10174. <div slot="footer">
  10175. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10176. >取 消</el-button
  10177. >
  10178. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10179. >确 定</el-button
  10180. >
  10181. </div>
  10182. </el-dialog>
  10183. <el-dialog
  10184. title="选择匹配"
  10185. :visible.sync="dialogVisibleSelect"
  10186. :append-to-body="true"
  10187. width="90%"
  10188. :before-close="handleClose"
  10189. class="dialog_diy dialog_diy3"
  10190. >
  10191. <div v-if="selectJson">
  10192. <div class="select_box2">
  10193. <div class="select_box2_title">
  10194. <div>选择匹配</div>
  10195. <div>请选择对应的答案进行答题!</div>
  10196. </div>
  10197. <div class="select_box2_box">
  10198. <div class="select_box2_img">
  10199. <img
  10200. :src="selectJson.url"
  10201. @click="previewImg(selectJson.url)"
  10202. alt=""
  10203. />
  10204. </div>
  10205. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10206. <div style="padding-top: 15px">
  10207. <div class="select_answer_title" v-if="isSelect">
  10208. {{ selectAnswer.stu }}
  10209. </div>
  10210. <div class="select_answer_title" v-else>
  10211. 根据题目选择对应答案
  10212. </div>
  10213. <div
  10214. class="select_box2_answer_box"
  10215. v-for="(item2, checkIndex) in selectJson.select"
  10216. :key="checkIndex"
  10217. >
  10218. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10219. <el-select
  10220. :disabled="isSelect"
  10221. v-model="selectAnswer.answer[checkIndex]"
  10222. placeholder="请选择正确答案"
  10223. >
  10224. <el-option
  10225. v-for="(e, eIndex) in selectJson.select"
  10226. :key="eIndex"
  10227. :label="e"
  10228. :value="eIndex"
  10229. >
  10230. </el-option>
  10231. </el-select>
  10232. </div>
  10233. </div>
  10234. <div
  10235. class="rightAnswerCss"
  10236. v-if="isSelect && (tType == 1 || tType == 4)"
  10237. >
  10238. <div
  10239. v-for="(a, aIndex) in selectJson.answer"
  10240. :key="aIndex"
  10241. class="rightAnswer"
  10242. >
  10243. <div
  10244. v-if="selectAnswer.answer[aIndex] === a"
  10245. style="color: #767de1"
  10246. >
  10247. 回答正确
  10248. </div>
  10249. <div v-else>回答错误</div>
  10250. <div
  10251. style="margin-left: 10px"
  10252. v-if="selectAnswer.answer[aIndex] !== a"
  10253. >
  10254. 正确答案:
  10255. </div>
  10256. <div
  10257. :class="
  10258. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10259. "
  10260. >
  10261. {{ selectJson.select[a] }}
  10262. </div>
  10263. </div>
  10264. </div>
  10265. </div>
  10266. <div class="upAnswerCss">
  10267. <el-button
  10268. type="primary"
  10269. @click="addSelectAnswer"
  10270. v-if="!isSelect"
  10271. >提交答案</el-button
  10272. >
  10273. </div>
  10274. </div>
  10275. </div>
  10276. </div>
  10277. </el-dialog>
  10278. <el-dialog
  10279. title="选择匹配"
  10280. :visible.sync="dialogVisibleSelectTeacher"
  10281. :append-to-body="true"
  10282. width="90%"
  10283. :before-close="handleClose"
  10284. class="dialog_diy dialog_diy3"
  10285. >
  10286. <div v-if="selectJson">
  10287. <div class="w_name">
  10288. 学生姓名:<span>{{ sStudent.student }}</span>
  10289. </div>
  10290. <div class="select_box2">
  10291. <div class="select_box2_title">
  10292. <div>选择匹配</div>
  10293. <div>请选择对应的答案进行答题!</div>
  10294. </div>
  10295. <div class="select_box2_box">
  10296. <div class="select_box2_img">
  10297. <img
  10298. :src="selectJson.url"
  10299. @click="previewImg(selectJson.url)"
  10300. alt=""
  10301. />
  10302. </div>
  10303. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10304. <div style="padding-top: 15px">
  10305. <div class="select_answer_title" v-if="isSelect">
  10306. {{ selectAnswer.stu }}
  10307. </div>
  10308. <div class="select_answer_title" v-else>
  10309. 根据题目选择对应答案
  10310. </div>
  10311. <div
  10312. class="select_box2_answer_box"
  10313. v-for="(item2, checkIndex) in selectJson.select"
  10314. :key="checkIndex"
  10315. >
  10316. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10317. <el-select
  10318. :disabled="isSelect"
  10319. v-model="selectAnswer.answer[checkIndex]"
  10320. placeholder="请选择正确答案"
  10321. >
  10322. <el-option
  10323. v-for="(e, eIndex) in selectJson.select"
  10324. :key="eIndex"
  10325. :label="e"
  10326. :value="eIndex"
  10327. >
  10328. </el-option>
  10329. </el-select>
  10330. </div>
  10331. </div>
  10332. <div
  10333. class="rightAnswerCss"
  10334. v-if="isSelect && (tType == 1 || tType == 4)"
  10335. >
  10336. <div
  10337. v-for="(a, aIndex) in selectJson.answer"
  10338. :key="aIndex"
  10339. class="rightAnswer"
  10340. >
  10341. <div
  10342. v-if="selectAnswer.answer[aIndex] === a"
  10343. style="color: #767de1"
  10344. >
  10345. 回答正确
  10346. </div>
  10347. <div v-else>回答错误</div>
  10348. <div
  10349. style="margin-left: 10px"
  10350. v-if="selectAnswer.answer[aIndex] !== a"
  10351. >
  10352. 正确答案:
  10353. </div>
  10354. <div
  10355. :class="
  10356. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10357. "
  10358. >
  10359. {{ selectJson.select[a] }}
  10360. </div>
  10361. </div>
  10362. </div>
  10363. </div>
  10364. <div class="upAnswerCss">
  10365. <el-button
  10366. type="primary"
  10367. @click="addSelectAnswerTeacher"
  10368. v-if="!isSelect"
  10369. >提交答案</el-button
  10370. >
  10371. </div>
  10372. </div>
  10373. </div>
  10374. </div>
  10375. </el-dialog>
  10376. <el-dialog
  10377. title="教师评分"
  10378. :visible.sync="dialogVisibleScore"
  10379. :append-to-body="true"
  10380. width="800px"
  10381. :before-close="handleClose"
  10382. class="dialog_diy"
  10383. >
  10384. <div>
  10385. <div class="studentDetail">
  10386. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10387. <div class="nameAndTime">
  10388. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10389. <div>{{ commentDetail.time }}</div>
  10390. </div>
  10391. </div>
  10392. <div
  10393. class="worksAnswer"
  10394. v-if="commentDetail.works && commentDetail.type == 2"
  10395. >
  10396. {{ JSON.parse(commentDetail.works)[0].answer }}
  10397. </div>
  10398. <div
  10399. class="worksAnswer"
  10400. v-if="commentDetail.works && commentDetail.type == 1"
  10401. >
  10402. <pdf
  10403. v-if="showPDF"
  10404. :pdfUrl="pptImgUrl"
  10405. style="width: 100%; height: 520px; overflow: auto"
  10406. :class="{ fullStyle: full }"
  10407. ></pdf>
  10408. <iframe
  10409. v-else
  10410. :src="pptImgUrl"
  10411. frameborder="0"
  10412. width="100%"
  10413. height="600"
  10414. :class="{ fullStyle: full }"
  10415. ></iframe>
  10416. </div>
  10417. <div
  10418. class="worksAnswer"
  10419. v-if="commentDetail.works && commentDetail.type == 0"
  10420. >
  10421. <img
  10422. :src="commentDetail.works"
  10423. alt=""
  10424. @click="previewImg(commentDetail.works)"
  10425. />
  10426. </div>
  10427. <div
  10428. class="worksAnswer"
  10429. v-if="commentDetail.works && commentDetail.type == 3"
  10430. >
  10431. <video-player
  10432. class="video-player vjs-custom-skin"
  10433. :playsinline="true"
  10434. :options="videoDetail"
  10435. @play="onPlayerPlay($event)"
  10436. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10437. ></video-player>
  10438. </div>
  10439. <div
  10440. class="worksAnswer codeFileBox"
  10441. v-if="commentDetail.works && commentDetail.type == 12"
  10442. @click="downloadFile(commentDetail.works)"
  10443. >
  10444. <img src="../../assets/icon/codeFile.png" />
  10445. <div>点击下载文件</div>
  10446. </div>
  10447. <div
  10448. class="worksAnswer codeFileBox"
  10449. v-if="commentDetail.works && commentDetail.type == 15"
  10450. @click="
  10451. openCocoPi(
  10452. 57,
  10453. commentIndexJson.toolIndex,
  10454. commentDetail.userid,
  10455. commentDetail.sName
  10456. )
  10457. "
  10458. >
  10459. <img src="../../assets/icon/codeFile.png" />
  10460. <div>点击打开CocoPi</div>
  10461. </div>
  10462. <div
  10463. class="worksAnswer"
  10464. v-if="commentDetail.works && commentDetail.type == 13"
  10465. >
  10466. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10467. </div>
  10468. <div class="scoreBox">
  10469. <span class="t">请输入分数</span>
  10470. <el-input-number
  10471. :disabled="courseDetail.userid != userid"
  10472. v-model="wScore"
  10473. :controls="false"
  10474. :min="0"
  10475. :max="100"
  10476. ></el-input-number>
  10477. </div>
  10478. <div class="scoreDetailBox">
  10479. <span class="t">评分评论</span>
  10480. <el-input
  10481. type="textarea"
  10482. :rows="5"
  10483. :disabled="courseDetail.userid != userid"
  10484. resize="none"
  10485. v-model="scoreDetail"
  10486. placeholder="请输入对学生的评价"
  10487. >
  10488. </el-input>
  10489. </div>
  10490. </div>
  10491. <span slot="footer" class="dialog-footer">
  10492. <el-button
  10493. @click="
  10494. (dialogVisibleScore = false),
  10495. (commentIndexJson = {}),
  10496. videoDetail.sources && videoDetail.sources[0]
  10497. ? (videoDetail.sources[0].src = '')
  10498. : ''
  10499. "
  10500. >取 消</el-button
  10501. >
  10502. <el-button
  10503. type="primary"
  10504. v-if="courseDetail.userid == userid"
  10505. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10506. >确 定
  10507. </el-button>
  10508. </span>
  10509. </el-dialog>
  10510. <el-dialog
  10511. title="排序"
  10512. :visible.sync="dialogVisibleSentence"
  10513. :append-to-body="true"
  10514. width="1000px"
  10515. :before-close="handleClose"
  10516. class="dialog_diy dialog_diy3"
  10517. >
  10518. <div>
  10519. <div class="sentenBox">
  10520. <div
  10521. v-for="(st, stIndex) in sentenceList"
  10522. :key="stIndex"
  10523. style="padding-bottom: 20px"
  10524. >
  10525. <div
  10526. style="padding: 15px 0 10px 20px"
  10527. class="sentenceTitle"
  10528. :index="stIndex + 1"
  10529. >
  10530. 题目{{ stIndex + 1 }}:请选择正确顺序
  10531. </div>
  10532. <div class="cardList" v-if="st.chooseSenList">
  10533. <div class="cardBox">
  10534. <div
  10535. v-for="(r, rIndex) in st.chooseSenList"
  10536. :key="rIndex"
  10537. @click="returnCard(r, stIndex, rIndex)"
  10538. >
  10539. <el-tooltip
  10540. class="item"
  10541. effect="light"
  10542. :content="r"
  10543. placement="top"
  10544. v-if="r != '' && r != undefined"
  10545. >
  10546. <div
  10547. :class="{
  10548. isCard: r,
  10549. isChooseCard: r == '' || r == undefined,
  10550. }"
  10551. >
  10552. <div>{{ r }}</div>
  10553. </div>
  10554. </el-tooltip>
  10555. <div
  10556. :class="{
  10557. isCard: r,
  10558. isChooseCard: r == '' || r == undefined,
  10559. }"
  10560. v-else
  10561. >
  10562. <div>{{ r }}</div>
  10563. </div>
  10564. </div>
  10565. </div>
  10566. </div>
  10567. <div class="cardList" v-if="st.addChangeSen">
  10568. <div class="cardBox">
  10569. <div
  10570. v-for="(s, sIndex) in st.addChangeSen"
  10571. :key="sIndex"
  10572. @click="setRightAnswer(s, stIndex, sIndex)"
  10573. >
  10574. <el-tooltip
  10575. class="item"
  10576. effect="light"
  10577. :content="s"
  10578. placement="top"
  10579. v-if="s != '' && s != undefined"
  10580. >
  10581. <div
  10582. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10583. >
  10584. <div>{{ s }}</div>
  10585. </div>
  10586. </el-tooltip>
  10587. <div
  10588. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10589. v-else
  10590. >
  10591. <div>{{ s }}</div>
  10592. </div>
  10593. </div>
  10594. </div>
  10595. </div>
  10596. </div>
  10597. </div>
  10598. </div>
  10599. <span slot="footer" class="dialog-footer">
  10600. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10601. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10602. </span>
  10603. </el-dialog>
  10604. <el-dialog
  10605. title="排序"
  10606. :visible.sync="dialogVisibleSentenceTeacher"
  10607. :append-to-body="true"
  10608. width="1000px"
  10609. :before-close="handleClose"
  10610. class="dialog_diy dialog_diy3"
  10611. >
  10612. <div>
  10613. <div class="w_name">
  10614. 学生姓名:<span>{{ sStudent.student }}</span>
  10615. </div>
  10616. <div class="sentenBox">
  10617. <div
  10618. v-for="(st, stIndex) in sentenceList"
  10619. :key="stIndex"
  10620. style="padding-bottom: 20px"
  10621. >
  10622. <div
  10623. style="padding: 15px 0 10px 20px"
  10624. class="sentenceTitle"
  10625. :index="stIndex + 1"
  10626. >
  10627. 题目{{ stIndex + 1 }}:请选择正确顺序
  10628. </div>
  10629. <div class="cardList" v-if="st.chooseSenList">
  10630. <div class="cardBox">
  10631. <div
  10632. v-for="(r, rIndex) in st.chooseSenList"
  10633. :key="rIndex"
  10634. @click="returnCard(r, stIndex, rIndex)"
  10635. >
  10636. <el-tooltip
  10637. class="item"
  10638. effect="light"
  10639. :content="r"
  10640. placement="top"
  10641. v-if="r != '' && r != undefined"
  10642. >
  10643. <div
  10644. :class="{
  10645. isCard: r,
  10646. isChooseCard: r == '' || r == undefined,
  10647. }"
  10648. >
  10649. <div>{{ r }}</div>
  10650. </div>
  10651. </el-tooltip>
  10652. <div
  10653. :class="{
  10654. isCard: r,
  10655. isChooseCard: r == '' || r == undefined,
  10656. }"
  10657. v-else
  10658. >
  10659. <div>{{ r }}</div>
  10660. </div>
  10661. </div>
  10662. </div>
  10663. </div>
  10664. <div class="cardList" v-if="st.addChangeSen">
  10665. <div class="cardBox">
  10666. <div
  10667. v-for="(s, sIndex) in st.addChangeSen"
  10668. :key="sIndex"
  10669. @click="setRightAnswer(s, stIndex, sIndex)"
  10670. >
  10671. <el-tooltip
  10672. class="item"
  10673. effect="light"
  10674. :content="s"
  10675. placement="top"
  10676. v-if="s != '' && s != undefined"
  10677. >
  10678. <div
  10679. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10680. >
  10681. <div>{{ s }}</div>
  10682. </div>
  10683. </el-tooltip>
  10684. <div
  10685. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10686. v-else
  10687. >
  10688. <div>{{ s }}</div>
  10689. </div>
  10690. </div>
  10691. </div>
  10692. </div>
  10693. </div>
  10694. </div>
  10695. </div>
  10696. <span slot="footer" class="dialog-footer">
  10697. <el-button @click="dialogVisibleSentenceTeacher = false"
  10698. >取 消</el-button
  10699. >
  10700. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10701. </span>
  10702. </el-dialog>
  10703. <el-dialog
  10704. title="排序"
  10705. :visible.sync="dialogVisibleSentence1"
  10706. :append-to-body="true"
  10707. width="1000px"
  10708. :before-close="handleClose"
  10709. class="dialog_diy dialog_diy3"
  10710. >
  10711. <div>
  10712. <div class="sentenBox">
  10713. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10714. {{ sentenceList1.stuName }}的作业
  10715. </div>
  10716. <div
  10717. v-for="(st, stIndex) in sentenceList1"
  10718. :key="stIndex"
  10719. style="padding-bottom: 20px"
  10720. >
  10721. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10722. 第{{ stIndex + 1 }}题
  10723. </div>
  10724. <div class="isWrong">
  10725. <div class="cardList1" v-if="st.chooseSenList">
  10726. <div class="cardBox">
  10727. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10728. <el-tooltip
  10729. class="item"
  10730. effect="light"
  10731. :content="s"
  10732. placement="top"
  10733. >
  10734. <div class="isCard">
  10735. <div>{{ s }}</div>
  10736. </div>
  10737. </el-tooltip>
  10738. </div>
  10739. </div>
  10740. <div class="cardAnswerBox">
  10741. 组成句子:{{ st.chooseSenList.join(" ") }}
  10742. </div>
  10743. </div>
  10744. <div v-if="tType == 2" class="isTj">
  10745. <div class="isTjImg">
  10746. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10747. </div>
  10748. <div>已提交</div>
  10749. </div>
  10750. <div
  10751. class="answerRight isTj"
  10752. v-if="
  10753. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10754. (tType == 1 || tType == 4)
  10755. "
  10756. >
  10757. <div class="isTjImg">
  10758. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10759. </div>
  10760. <div>回答正确</div>
  10761. </div>
  10762. <div
  10763. class="answerRight isTj"
  10764. v-if="
  10765. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10766. (tType == 1 || tType == 4)
  10767. "
  10768. >
  10769. <div class="isTjImg">
  10770. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10771. </div>
  10772. <div>回答错误</div>
  10773. </div>
  10774. </div>
  10775. <div
  10776. v-if="
  10777. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10778. (tType == 1 || tType == 4)
  10779. "
  10780. >
  10781. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10782. <div
  10783. class="cardList"
  10784. v-if="st.rightAnswer"
  10785. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10786. >
  10787. <div class="cardBox">
  10788. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10789. <el-tooltip
  10790. class="item"
  10791. effect="light"
  10792. :content="r"
  10793. placement="top"
  10794. >
  10795. <div class="isCard1">
  10796. <div>{{ r }}</div>
  10797. </div>
  10798. </el-tooltip>
  10799. </div>
  10800. </div>
  10801. <div class="cardAnswerBox">
  10802. 组成句子:{{ st.rightAnswer.join(" ") }}
  10803. </div>
  10804. </div>
  10805. </div>
  10806. </div>
  10807. </div>
  10808. </div>
  10809. <span slot="footer" class="dialog-footer">
  10810. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10811. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10812. >确 定</el-button
  10813. >
  10814. </span>
  10815. </el-dialog>
  10816. <el-dialog
  10817. title="教师提交作业"
  10818. :visible.sync="dialogVisibleWorks"
  10819. :append-to-body="true"
  10820. width="500px"
  10821. :before-close="handleClose"
  10822. class="dialog_change"
  10823. >
  10824. <div class="marginT">
  10825. <div class="w_name">
  10826. 学生姓名:<span>{{ sStudent.student }}</span>
  10827. </div>
  10828. <div>上传文件</div>
  10829. <div
  10830. class="chapter_add"
  10831. @click="addImg($event)"
  10832. v-if="studyJuri[0].cover.length == 0"
  10833. >
  10834. <div class="up_photo">
  10835. <img src="../../assets/uploadImg2.png" alt />
  10836. </div>
  10837. <!-- <input
  10838. type="file"
  10839. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10840. style="display: none"
  10841. @change="beforeUpload1($event, 1)"
  10842. /> -->
  10843. <input
  10844. type="file"
  10845. accept="*"
  10846. style="display: none"
  10847. @change="beforeUpload1($event, 1)"
  10848. />
  10849. </div>
  10850. <!-- capture="camera" -->
  10851. <div
  10852. class="chapter_add"
  10853. style="
  10854. display: flex;
  10855. width: 100%;
  10856. flex-direction: row;
  10857. flex-wrap: wrap;
  10858. justify-content: flex-start;
  10859. padding: 15px 0;
  10860. "
  10861. v-if="studyJuri[0].cover.length > 0"
  10862. >
  10863. <div class="upCover">
  10864. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10865. <img :src="word" alt v-else-if="fileType == 1" />
  10866. <img :src="video" alt v-else-if="fileType == 2" />
  10867. <img :src="word2" alt v-else-if="fileType == 3" />
  10868. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10869. <div class="deleteWord" @click="clean(1)">
  10870. <img src="../../assets/icon/deleteWorks.png" alt />
  10871. </div>
  10872. </div>
  10873. </div>
  10874. </div>
  10875. <div
  10876. class="upload_send"
  10877. @click="addCourseWorksTeacher(taskCount)"
  10878. v-if="!proVisible"
  10879. >
  10880. 提交
  10881. </div>
  10882. </el-dialog>
  10883. <ImgDraw
  10884. :drawShow="drawShow"
  10885. @closeDraw="closeDraw"
  10886. @addImgDraw="addImgDraw"
  10887. :bg="bg"
  10888. ></ImgDraw>
  10889. <el-dialog
  10890. title="表格"
  10891. :visible.sync="dialogVisibleTable"
  10892. :append-to-body="true"
  10893. width="95%"
  10894. :before-close="handleClose"
  10895. class="dialog_diy"
  10896. >
  10897. <el-form>
  10898. <div
  10899. style="
  10900. display: flex;
  10901. align-items: center;
  10902. justify-content: space-between;
  10903. "
  10904. >
  10905. <span>表格内容</span>
  10906. <el-button type="primary" size="small" @click="returnTableText"
  10907. >还原模板</el-button
  10908. >
  10909. </div>
  10910. <Table
  10911. v-model="tableJson.text"
  10912. @change="change"
  10913. v-if="dialogVisibleTable"
  10914. ></Table>
  10915. </el-form>
  10916. <span slot="footer" class="dialog-footer">
  10917. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10918. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10919. </span>
  10920. </el-dialog>
  10921. <el-dialog
  10922. title="表格"
  10923. :visible.sync="dialogVisibleTableTeacher"
  10924. :append-to-body="true"
  10925. width="95%"
  10926. :before-close="handleClose"
  10927. class="dialog_diy"
  10928. >
  10929. <el-form>
  10930. <div class="w_name">
  10931. 学生姓名:<span>{{ sStudent.student }}</span>
  10932. </div>
  10933. <div>表格内容</div>
  10934. <Table
  10935. v-model="tableJson.text"
  10936. @change="change"
  10937. v-if="dialogVisibleTableTeacher"
  10938. ></Table>
  10939. </el-form>
  10940. <span slot="footer" class="dialog-footer">
  10941. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10942. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10943. </span>
  10944. </el-dialog>
  10945. <el-dialog
  10946. title="文档"
  10947. :visible.sync="dialogVisibleWord"
  10948. :append-to-body="true"
  10949. width="95%"
  10950. :before-close="handleClose"
  10951. class="dialog_diy"
  10952. >
  10953. <el-form>
  10954. <div
  10955. style="
  10956. display: flex;
  10957. align-items: center;
  10958. justify-content: space-between;
  10959. "
  10960. >
  10961. <span>文档内容</span>
  10962. <el-button type="primary" size="small" @click="returnWordText"
  10963. >还原模板</el-button
  10964. >
  10965. </div>
  10966. <editor-bar
  10967. v-model="wordJson.text"
  10968. v-if="dialogVisibleWord"
  10969. ></editor-bar>
  10970. </el-form>
  10971. <span slot="footer" class="dialog-footer">
  10972. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10973. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10974. </span>
  10975. </el-dialog>
  10976. <el-dialog
  10977. title="文档"
  10978. :visible.sync="dialogVisibleWordTeacher"
  10979. :append-to-body="true"
  10980. width="95%"
  10981. :before-close="handleClose"
  10982. class="dialog_diy"
  10983. >
  10984. <el-form>
  10985. <div class="w_name">
  10986. 学生姓名:<span>{{ sStudent.student }}</span>
  10987. </div>
  10988. <div>文档内容</div>
  10989. <editor-bar
  10990. v-model="wordJson.text"
  10991. v-if="dialogVisibleWordTeacher"
  10992. ></editor-bar>
  10993. </el-form>
  10994. <span slot="footer" class="dialog-footer">
  10995. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10996. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10997. </span>
  10998. </el-dialog>
  10999. <el-dialog
  11000. title="表格"
  11001. :visible.sync="dialogVisibleTable2"
  11002. :append-to-body="true"
  11003. width="95%"
  11004. :before-close="handleClose"
  11005. class="dialog_diy"
  11006. >
  11007. <el-form>
  11008. <div class="cont" v-html="tableJson.text"></div>
  11009. </el-form>
  11010. <span slot="footer" class="dialog-footer">
  11011. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11012. </span>
  11013. </el-dialog>
  11014. <el-dialog
  11015. title="文档"
  11016. :visible.sync="dialogVisibleTable3"
  11017. :append-to-body="true"
  11018. width="95%"
  11019. :before-close="handleClose"
  11020. class="dialog_diy"
  11021. >
  11022. <el-form>
  11023. <div class="cont" v-html="tableJson.text"></div>
  11024. </el-form>
  11025. <span slot="footer" class="dialog-footer">
  11026. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11027. </span>
  11028. </el-dialog>
  11029. <el-dialog
  11030. title="分组设置"
  11031. :visible.sync="dialogVisibleGroup"
  11032. :append-to-body="true"
  11033. width="95%"
  11034. :before-close="handleClose"
  11035. class="dialog_diy"
  11036. >
  11037. <div v-if="dialogVisibleGroup">
  11038. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11039. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11040. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11041. </div>
  11042. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11043. @click="lockChair">
  11044. 锁定位置
  11045. </div>
  11046. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11047. 解锁位置
  11048. </div> -->
  11049. <div class="group_switch">
  11050. <span>开放选座</span>
  11051. <el-switch
  11052. v-model="islock"
  11053. active-text=""
  11054. class="switchCss"
  11055. @change="lockChair"
  11056. ></el-switch>
  11057. </div>
  11058. <div
  11059. type="primary"
  11060. @click="updateGroup"
  11061. class="returnBtn"
  11062. style="background-color: #225bc7"
  11063. >
  11064. 分组设置
  11065. </div>
  11066. </div>
  11067. <div>
  11068. <div
  11069. class="g_d_box"
  11070. v-if="groupJson.group && groupStudent[toolindex]"
  11071. >
  11072. <div
  11073. class="g_d_group"
  11074. v-for="(g, gindex) in groupJson.group"
  11075. :key="gindex"
  11076. >
  11077. <div class="g_d_group_chair">
  11078. <div v-if="groupJson.number > 1">
  11079. <span
  11080. :class="{
  11081. isChair:
  11082. groupStudent[toolindex][gindex] &&
  11083. groupStudent[toolindex][gindex][0],
  11084. updateChair:
  11085. courseDetail.userid == userid &&
  11086. groupStudent[toolindex][gindex] &&
  11087. groupStudent[toolindex][gindex][0] &&
  11088. groupJson.islock == 2,
  11089. }"
  11090. ><span
  11091. class="updateChairBtn"
  11092. @click="
  11093. updateGroupChair(
  11094. groupStudent[toolindex][gindex] &&
  11095. groupStudent[toolindex][gindex][0]
  11096. )
  11097. "
  11098. >修改</span
  11099. ></span
  11100. ><span>{{
  11101. groupStudent[toolindex][gindex] &&
  11102. groupStudent[toolindex][gindex][0]
  11103. ? groupStudent[toolindex][gindex] &&
  11104. groupStudent[toolindex][gindex][0].name
  11105. : "空位置"
  11106. }}</span>
  11107. </div>
  11108. <div v-if="groupJson.number > 4">
  11109. <span
  11110. :class="{
  11111. isChair:
  11112. groupStudent[toolindex][gindex] &&
  11113. groupStudent[toolindex][gindex][4],
  11114. updateChair:
  11115. courseDetail.userid == userid &&
  11116. groupStudent[toolindex][gindex] &&
  11117. groupStudent[toolindex][gindex][4] &&
  11118. groupJson.islock == 2,
  11119. }"
  11120. ><span
  11121. class="updateChairBtn"
  11122. @click="
  11123. updateGroupChair(
  11124. groupStudent[toolindex][gindex] &&
  11125. groupStudent[toolindex][gindex][4]
  11126. )
  11127. "
  11128. >修改</span
  11129. ></span
  11130. ><span>{{
  11131. groupStudent[toolindex][gindex] &&
  11132. groupStudent[toolindex][gindex][4]
  11133. ? groupStudent[toolindex][gindex] &&
  11134. groupStudent[toolindex][gindex][4].name
  11135. : "空位置"
  11136. }}</span>
  11137. </div>
  11138. <div v-if="groupJson.number > 8">
  11139. <span
  11140. :class="{
  11141. isChair:
  11142. groupStudent[toolindex][gindex] &&
  11143. groupStudent[toolindex][gindex][8],
  11144. updateChair:
  11145. courseDetail.userid == userid &&
  11146. groupStudent[toolindex][gindex] &&
  11147. groupStudent[toolindex][gindex][8] &&
  11148. groupJson.islock == 2,
  11149. }"
  11150. ><span
  11151. class="updateChairBtn"
  11152. @click="
  11153. updateGroupChair(
  11154. groupStudent[toolindex][gindex] &&
  11155. groupStudent[toolindex][gindex][8]
  11156. )
  11157. "
  11158. >修改</span
  11159. ></span
  11160. ><span>{{
  11161. groupStudent[toolindex][gindex] &&
  11162. groupStudent[toolindex][gindex][8]
  11163. ? groupStudent[toolindex][gindex] &&
  11164. groupStudent[toolindex][gindex][8].name
  11165. : "空位置"
  11166. }}</span>
  11167. </div>
  11168. </div>
  11169. <div class="g_d_group_tableBox">
  11170. <div class="g_d_group_chair2">
  11171. <div v-if="groupJson.number > 2">
  11172. <span
  11173. :class="{
  11174. isChair:
  11175. groupStudent[toolindex][gindex] &&
  11176. groupStudent[toolindex][gindex][2],
  11177. updateChair:
  11178. courseDetail.userid == userid &&
  11179. groupStudent[toolindex][gindex] &&
  11180. groupStudent[toolindex][gindex][2] &&
  11181. groupJson.islock == 2,
  11182. }"
  11183. ><span
  11184. class="updateChairBtn"
  11185. @click="
  11186. updateGroupChair(
  11187. groupStudent[toolindex][gindex] &&
  11188. groupStudent[toolindex][gindex][2]
  11189. )
  11190. "
  11191. >修改</span
  11192. ></span
  11193. ><span>{{
  11194. groupStudent[toolindex][gindex] &&
  11195. groupStudent[toolindex][gindex][2]
  11196. ? groupStudent[toolindex][gindex] &&
  11197. groupStudent[toolindex][gindex][2].name
  11198. : "空位置"
  11199. }}</span>
  11200. </div>
  11201. <div v-if="groupJson.number > 6">
  11202. <span
  11203. :class="{
  11204. isChair:
  11205. groupStudent[toolindex][gindex] &&
  11206. groupStudent[toolindex][gindex][6],
  11207. updateChair:
  11208. courseDetail.userid == userid &&
  11209. groupStudent[toolindex][gindex] &&
  11210. groupStudent[toolindex][gindex][6] &&
  11211. groupJson.islock == 2,
  11212. }"
  11213. ><span
  11214. class="updateChairBtn"
  11215. @click="
  11216. updateGroupChair(
  11217. groupStudent[toolindex][gindex] &&
  11218. groupStudent[toolindex][gindex][6]
  11219. )
  11220. "
  11221. >修改</span
  11222. ></span
  11223. ><span>{{
  11224. groupStudent[toolindex][gindex] &&
  11225. groupStudent[toolindex][gindex][6]
  11226. ? groupStudent[toolindex][gindex] &&
  11227. groupStudent[toolindex][gindex][6].name
  11228. : "空位置"
  11229. }}</span>
  11230. </div>
  11231. </div>
  11232. <div class="g_d_group_table">
  11233. <div>
  11234. {{ g.name }}
  11235. </div>
  11236. <div>
  11237. <div
  11238. v-if="
  11239. courseDetail.userid == userid && groupJson.islock == 2
  11240. "
  11241. @click="deleteGroupChair(gindex)"
  11242. >
  11243. 移除组员
  11244. </div>
  11245. <div
  11246. @click="selectGroup(gindex)"
  11247. v-else-if="
  11248. groupStudentUid[toolindex] &&
  11249. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11250. "
  11251. >
  11252. 加入分组
  11253. </div>
  11254. <div
  11255. @click="
  11256. exitGroup(
  11257. groupStudent[toolindex][gindex] &&
  11258. groupStudent[toolindex][gindex][
  11259. groupStudentUid[toolindex][gindex].indexOf(userid)
  11260. ].id
  11261. )
  11262. "
  11263. v-else-if="
  11264. groupStudentUid[toolindex] &&
  11265. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11266. "
  11267. >
  11268. 退出分组
  11269. </div>
  11270. </div>
  11271. </div>
  11272. <div class="g_d_group_chair2">
  11273. <div v-if="groupJson.number > 3">
  11274. <span
  11275. :class="{
  11276. isChair:
  11277. groupStudent[toolindex][gindex] &&
  11278. groupStudent[toolindex][gindex][3],
  11279. updateChair:
  11280. courseDetail.userid == userid &&
  11281. groupStudent[toolindex][gindex] &&
  11282. groupStudent[toolindex][gindex][3] &&
  11283. groupJson.islock == 2,
  11284. }"
  11285. ><span
  11286. class="updateChairBtn"
  11287. @click="
  11288. updateGroupChair(
  11289. groupStudent[toolindex][gindex] &&
  11290. groupStudent[toolindex][gindex][3]
  11291. )
  11292. "
  11293. >修改</span
  11294. ></span
  11295. ><span>{{
  11296. groupStudent[toolindex][gindex] &&
  11297. groupStudent[toolindex][gindex][3]
  11298. ? groupStudent[toolindex][gindex] &&
  11299. groupStudent[toolindex][gindex][3].name
  11300. : "空位置"
  11301. }}</span>
  11302. </div>
  11303. <div v-if="groupJson.number > 7">
  11304. <span
  11305. :class="{
  11306. isChair:
  11307. groupStudent[toolindex][gindex] &&
  11308. groupStudent[toolindex][gindex][7],
  11309. updateChair:
  11310. courseDetail.userid == userid &&
  11311. groupStudent[toolindex][gindex] &&
  11312. groupStudent[toolindex][gindex][7] &&
  11313. groupJson.islock == 2,
  11314. }"
  11315. ><span
  11316. class="updateChairBtn"
  11317. @click="
  11318. updateGroupChair(
  11319. groupStudent[toolindex][gindex] &&
  11320. groupStudent[toolindex][gindex][7]
  11321. )
  11322. "
  11323. >修改</span
  11324. ></span
  11325. ><span>{{
  11326. groupStudent[toolindex][gindex] &&
  11327. groupStudent[toolindex][gindex][7]
  11328. ? groupStudent[toolindex][gindex] &&
  11329. groupStudent[toolindex][gindex][7].name
  11330. : "空位置"
  11331. }}</span>
  11332. </div>
  11333. </div>
  11334. </div>
  11335. <div class="g_d_group_chair">
  11336. <div v-if="groupJson.number > 1">
  11337. <span
  11338. :class="{
  11339. isChair:
  11340. groupStudent[toolindex][gindex] &&
  11341. groupStudent[toolindex][gindex][1],
  11342. updateChair:
  11343. courseDetail.userid == userid &&
  11344. groupStudent[toolindex][gindex] &&
  11345. groupStudent[toolindex][gindex][1] &&
  11346. groupJson.islock == 2,
  11347. }"
  11348. ><span
  11349. class="updateChairBtn"
  11350. @click="
  11351. updateGroupChair(
  11352. groupStudent[toolindex][gindex] &&
  11353. groupStudent[toolindex][gindex][1]
  11354. )
  11355. "
  11356. >修改</span
  11357. ></span
  11358. ><span>{{
  11359. groupStudent[toolindex][gindex] &&
  11360. groupStudent[toolindex][gindex][1]
  11361. ? groupStudent[toolindex][gindex] &&
  11362. groupStudent[toolindex][gindex][1].name
  11363. : "空位置"
  11364. }}</span>
  11365. </div>
  11366. <div v-if="groupJson.number > 5">
  11367. <span
  11368. :class="{
  11369. isChair:
  11370. groupStudent[toolindex][gindex] &&
  11371. groupStudent[toolindex][gindex][5],
  11372. updateChair:
  11373. courseDetail.userid == userid &&
  11374. groupStudent[toolindex][gindex] &&
  11375. groupStudent[toolindex][gindex][5] &&
  11376. groupJson.islock == 2,
  11377. }"
  11378. ><span
  11379. class="updateChairBtn"
  11380. @click="
  11381. updateGroupChair(
  11382. groupStudent[toolindex][gindex] &&
  11383. groupStudent[toolindex][gindex][5]
  11384. )
  11385. "
  11386. >修改</span
  11387. ></span
  11388. ><span>{{
  11389. groupStudent[toolindex][gindex] &&
  11390. groupStudent[toolindex][gindex][5]
  11391. ? groupStudent[toolindex][gindex] &&
  11392. groupStudent[toolindex][gindex][5].name
  11393. : "空位置"
  11394. }}</span>
  11395. </div>
  11396. <div v-if="groupJson.number > 9">
  11397. <span
  11398. :class="{
  11399. isChair:
  11400. groupStudent[toolindex][gindex] &&
  11401. groupStudent[toolindex][gindex][9],
  11402. updateChair:
  11403. courseDetail.userid == userid &&
  11404. groupStudent[toolindex][gindex] &&
  11405. groupStudent[toolindex][gindex][9] &&
  11406. groupJson.islock == 2,
  11407. }"
  11408. ><span
  11409. class="updateChairBtn"
  11410. @click="
  11411. updateGroupChair(
  11412. groupStudent[toolindex][gindex] &&
  11413. groupStudent[toolindex][gindex][9]
  11414. )
  11415. "
  11416. >修改</span
  11417. ></span
  11418. ><span>{{
  11419. groupStudent[toolindex][gindex] &&
  11420. groupStudent[toolindex][gindex][9]
  11421. ? groupStudent[toolindex][gindex] &&
  11422. groupStudent[toolindex][gindex][9].name
  11423. : "空位置"
  11424. }}</span>
  11425. </div>
  11426. </div>
  11427. </div>
  11428. </div>
  11429. </div>
  11430. </div>
  11431. <span slot="footer" class="dialog-footer">
  11432. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11433. </span>
  11434. </el-dialog>
  11435. <el-dialog
  11436. title="分组设置"
  11437. :visible.sync="dialogVisibleGroup2"
  11438. :append-to-body="true"
  11439. width="650px"
  11440. :before-close="handleClose"
  11441. class="dialog_diy"
  11442. >
  11443. <div class="groupBox">
  11444. <div v-if="groupJson2.group" class="groupContent">
  11445. <div class="groupTitle">请设置小组数量及名称</div>
  11446. <div
  11447. v-for="(item, index) in groupJson2.group"
  11448. :key="index"
  11449. class="groupName"
  11450. >
  11451. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11452. <el-input
  11453. v-model="item.name"
  11454. placeholder="请输入名称..."
  11455. style="width: 250px"
  11456. ></el-input>
  11457. <!-- <div class="groupBtn">
  11458. <el-button type="primary" size="small" @click="addGroup(index)">
  11459. 添加</el-button>
  11460. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11461. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11462. </div> -->
  11463. </div>
  11464. </div>
  11465. <div class="groupContent">
  11466. <div class="groupTitle">请设置每组人数</div>
  11467. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11468. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11469. <el-input
  11470. v-model="groupJson.number"
  11471. style="width: 150px"
  11472. placeholder="请输入2-10的数字"
  11473. @change="numberPan"
  11474. ></el-input>
  11475. </div>
  11476. </div>
  11477. <span slot="footer" class="dialog-footer">
  11478. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11479. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11480. </span>
  11481. </el-dialog>
  11482. <el-dialog
  11483. title="作业提交"
  11484. :visible.sync="dialogVisibleGroupWork"
  11485. :append-to-body="true"
  11486. width="500px"
  11487. :before-close="handleClose"
  11488. class="dialog_change"
  11489. >
  11490. <div class="marginT">
  11491. <div>上传文件</div>
  11492. <div
  11493. class="chapter_add"
  11494. @click="addImg($event)"
  11495. v-if="studyJuri[0].cover.length == 0"
  11496. >
  11497. <div class="up_photo">
  11498. <img src="../../assets/icon/uploadImg.png" alt />
  11499. </div>
  11500. <!-- <input
  11501. type="file"
  11502. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11503. style="display: none"
  11504. @change="beforeUpload1($event, 1)"
  11505. /> -->
  11506. <input
  11507. type="file"
  11508. accept="*"
  11509. style="display: none"
  11510. @change="beforeUpload1($event, 1)"
  11511. />
  11512. </div>
  11513. <!-- capture="camera" -->
  11514. <div
  11515. class="chapter_add"
  11516. style="
  11517. display: flex;
  11518. width: 100%;
  11519. flex-direction: row;
  11520. flex-wrap: wrap;
  11521. justify-content: flex-start;
  11522. padding: 15px 0;
  11523. "
  11524. v-if="studyJuri[0].cover.length > 0"
  11525. >
  11526. <div class="upCover">
  11527. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11528. <img :src="word" alt v-else-if="fileType == 1" />
  11529. <img :src="video" alt v-else-if="fileType == 2" />
  11530. <img :src="word2" alt v-else-if="fileType == 3" />
  11531. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11532. <div class="deleteWord" @click="clean(1)">
  11533. <img src="../../assets/icon/deleteWorks.png" alt />
  11534. </div>
  11535. </div>
  11536. </div>
  11537. </div>
  11538. <div
  11539. class="upload_send"
  11540. @click="addCourseWorks2(taskCount)"
  11541. v-if="!proVisible"
  11542. >
  11543. 提交
  11544. </div>
  11545. </el-dialog>
  11546. <el-dialog
  11547. title="修改分组"
  11548. :visible.sync="dialogVisibleUpdateGroup"
  11549. :append-to-body="true"
  11550. width="350px"
  11551. :before-close="handleClose"
  11552. class="dialog_diy"
  11553. >
  11554. <div>
  11555. <h2>
  11556. {{ this.updateGroupUser.name }}
  11557. </h2>
  11558. <div style="color: rgb(171 171 171); margin-top: 10px">
  11559. 请选择要进入的分组
  11560. </div>
  11561. <el-radio-group v-model="checkChair">
  11562. <el-radio
  11563. style="display: block; margin-top: 20px"
  11564. v-for="(item, index) in updateGroupArray"
  11565. :label="item.label"
  11566. :key="index"
  11567. >{{ item.name }}</el-radio
  11568. >
  11569. </el-radio-group>
  11570. </div>
  11571. <span slot="footer" class="dialog-footer">
  11572. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11573. <el-button type="primary" @click="updateChair">确定</el-button>
  11574. </span>
  11575. </el-dialog>
  11576. <el-dialog
  11577. title="移除组员"
  11578. :visible.sync="dialogVisibleDeleteGroup"
  11579. :append-to-body="true"
  11580. width="350px"
  11581. :before-close="handleClose"
  11582. class="dialog_diy"
  11583. >
  11584. <div>
  11585. <h2>
  11586. {{ this.deleteGroupArray.name }}
  11587. </h2>
  11588. <div style="color: rgb(171 171 171); margin-top: 10px">
  11589. 请选择要删除的组员
  11590. </div>
  11591. <el-checkbox-group v-model="checkDeleteGroup">
  11592. <el-checkbox
  11593. style="display: flex; margin-top: 20px"
  11594. v-for="(item, index) in deleteGroupUser"
  11595. :label="item.userid"
  11596. :key="index"
  11597. >{{ item.name }}</el-checkbox
  11598. >
  11599. </el-checkbox-group>
  11600. </div>
  11601. <span slot="footer" class="dialog-footer">
  11602. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11603. <el-button type="primary" @click="deleteChair">确定</el-button>
  11604. </span>
  11605. </el-dialog>
  11606. <el-dialog
  11607. title="批量上传"
  11608. :visible.sync="dialogVisiblePl"
  11609. :append-to-body="true"
  11610. width="700px"
  11611. :before-close="handleClose"
  11612. class="dialog_change"
  11613. >
  11614. <div class="marginT">
  11615. <div class="plworkBox">
  11616. <div
  11617. class="chapter_add"
  11618. style="
  11619. display: flex;
  11620. width: 150px;
  11621. flex-direction: row;
  11622. flex-wrap: wrap;
  11623. justify-content: flex-start;
  11624. margin: 0 10px 10px 0;
  11625. "
  11626. v-for="(item, index) in plworkFile"
  11627. :key="index"
  11628. >
  11629. <div class="upCover2">
  11630. <img
  11631. :src="item.url"
  11632. alt
  11633. v-if="item.fileType == 1"
  11634. @click="previewImg(item.url)"
  11635. />
  11636. <img :src="word" alt v-else-if="item.fileType == 4" />
  11637. <img :src="video" alt v-else />
  11638. <!-- <span class="picName">{{ item.name }}</span> -->
  11639. <!-- <el-input
  11640. v-model="item.username"
  11641. placeholder="请输入学生名字"
  11642. style="margin-top: 10px"
  11643. ></el-input> -->
  11644. <div
  11645. class="pl_select_box"
  11646. @click="
  11647. getUpdateMore(true, checkUpload(), item.username, index)
  11648. "
  11649. >
  11650. {{ getSName(item.username) }}
  11651. </div>
  11652. <!-- <el-select
  11653. style="margin-top: 10px"
  11654. v-model="item.username"
  11655. filterable
  11656. allow-create
  11657. placeholder="请选择学生"
  11658. >
  11659. <el-option
  11660. v-for="item1 in checkUpload()"
  11661. :key="item1.userid"
  11662. :label="item1.name ? item1.name : item1.username"
  11663. :value="item1.userid"
  11664. >
  11665. </el-option>
  11666. </el-select> -->
  11667. <div class="deleteWord" @click="clean2(index)">
  11668. <img src="../../assets/icon/deleteWorks.png" alt />
  11669. </div>
  11670. </div>
  11671. </div>
  11672. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11673. <div class="up_photo2">
  11674. <img src="../../assets/icon/plwork.png" alt />
  11675. <span>点击上传文件</span>
  11676. </div>
  11677. <input
  11678. type="file"
  11679. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11680. multiple="multiple"
  11681. style="display: none"
  11682. @change="beforeUpload3($event, 6)"
  11683. />
  11684. </div>
  11685. </div>
  11686. </div>
  11687. <!-- capture="camera" -->
  11688. <div
  11689. class="upload_send"
  11690. @click="addCourseWorksPl(taskCount)"
  11691. v-if="!proVisible2"
  11692. >
  11693. 提交
  11694. </div>
  11695. </el-dialog>
  11696. <el-dialog
  11697. title="修改名称"
  11698. :visible.sync="dialogVisibleSname"
  11699. width="500px"
  11700. :before-close="handleClose"
  11701. class="dialog_diy"
  11702. center
  11703. >
  11704. <div
  11705. style="
  11706. text-align: center;
  11707. display: flex;
  11708. align-items: center;
  11709. justify-content: center;
  11710. "
  11711. >
  11712. <span class="tian1">名称</span>
  11713. <div
  11714. class="pl_select_box"
  11715. style="margin-left: 10px; width: 200px"
  11716. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11717. >
  11718. {{ getSName(worksSName) }}
  11719. </div>
  11720. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11721. placeholder="请选择学生">
  11722. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11723. :value="item.userid">
  11724. </el-option>
  11725. </el-select> -->
  11726. <!-- <el-input
  11727. v-model="worksSName"
  11728. style="width: 250px; margin: 15px 0px"
  11729. ></el-input> -->
  11730. </div>
  11731. <span slot="footer" class="dialog-footer">
  11732. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11733. <el-button type="primary" @click="updateName">确 定</el-button>
  11734. </span>
  11735. </el-dialog>
  11736. <el-dialog
  11737. title="英语写作"
  11738. :visible.sync="engDialogVisible"
  11739. :append-to-body="true"
  11740. width="800px"
  11741. :before-close="handleClose"
  11742. class="dialog_diy"
  11743. >
  11744. <onlineWrite
  11745. v-if="engDialogVisible"
  11746. :englishList="englishList"
  11747. :myAnswerList1="myAnswerList1"
  11748. ref="engJson"
  11749. ></onlineWrite>
  11750. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11751. <el-button @click="engDialogVisible = false">取 消</el-button>
  11752. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11753. </span>
  11754. </el-dialog>
  11755. <el-dialog
  11756. title="英语写作"
  11757. :visible.sync="engUpdateDialogVisible"
  11758. :append-to-body="true"
  11759. width="800px"
  11760. :before-close="handleClose"
  11761. class="dialog_diy fullStyle"
  11762. >
  11763. <div class="engUpBox">
  11764. <div class="engUpTop">
  11765. <div class="engTitle">
  11766. <div>作文题目:</div>
  11767. <div>{{ englishList1.engTitle }}</div>
  11768. </div>
  11769. <div class="engText">
  11770. <div>作文内容:</div>
  11771. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11772. </div>
  11773. </div>
  11774. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11775. <div class="oldBox">
  11776. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11777. <div class="oldText">
  11778. <div class="detailBox">
  11779. <div class="oldDetail">
  11780. <div>标题:</div>
  11781. <div>{{ oldEnglishJson.engTitle }} </div>
  11782. </div>
  11783. <div class="oldDetail1">
  11784. <div>正文:</div>
  11785. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11786. </div>
  11787. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11788. <div>图片:</div>
  11789. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11790. </div>
  11791. </div>
  11792. </div>
  11793. </div>
  11794. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11795. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11796. <div class="oldText">
  11797. <div class="detailBox" style="position: relative;">
  11798. <div class="oldDetail">
  11799. <div>标题:</div>
  11800. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11801. <div v-else v-html="newEnglishList.engTitle"></div>
  11802. </div>
  11803. <div class="oldDetail">
  11804. <div>正文:</div>
  11805. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11806. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11807. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11808. </div>
  11809. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11810. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11811. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11812. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11813. </div>
  11814. </div>
  11815. </div>
  11816. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11817. <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">
  11818. <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>
  11819. <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>
  11820. </div>
  11821. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11822. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11823. <div class="detailBox" style="position: relative;">
  11824. <div class="oldDetail">
  11825. <div>标题:</div>
  11826. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11827. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11828. </div>
  11829. <div class="oldDetail">
  11830. <div>正文:</div>
  11831. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11832. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11833. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  11834. </div>
  11835. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11836. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11837. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11838. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11839. </div>
  11840. </div>
  11841. <div class="oldText" v-else-if="newEngIndex == -1">
  11842. <div class="detailBox" style="position: relative;">
  11843. <div class="oldDetail">
  11844. <div>标题:</div>
  11845. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11846. <div v-else v-html="newEnglishList.engTitle"></div>
  11847. </div>
  11848. <div class="oldDetail">
  11849. <div>正文:</div>
  11850. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11851. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11852. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11853. </div>
  11854. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11855. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11856. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11857. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11858. </div>
  11859. </div>
  11860. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11861. <div class="detailBox" style="position: relative;">
  11862. <div class="oldDetail">
  11863. <div>标题:</div>
  11864. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11865. <div v-else>
  11866. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  11867. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11868. </div>
  11869. </div>
  11870. <div class="oldDetail">
  11871. <div>正文:</div>
  11872. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  11873. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11874. <div v-else>
  11875. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11876. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11877. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  11878. </div>
  11879. </div>
  11880. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11881. <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>
  11882. <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>
  11883. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11884. </div>
  11885. </div>
  11886. </div>
  11887. </div>
  11888. </div>
  11889. <span slot="footer" class="dialog-footer">
  11890. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11891. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11892. </span>
  11893. </el-dialog>
  11894. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11895. <interVideo
  11896. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11897. :videoJson="videoJson"
  11898. :userid="userid"
  11899. :id="id"
  11900. :courseType="courseType"
  11901. :taskCount="taskCount"
  11902. :toolindex="toolindex"
  11903. :videoType="videoType"
  11904. ></interVideo>
  11905. <UpdateMore
  11906. :dialogVisibleMember.sync="dialogVisibleMember"
  11907. :cList="uploadStudentJuri"
  11908. :userid="userid"
  11909. :searchTN="worksSName2"
  11910. @setPlname="setPlname"
  11911. ></UpdateMore>
  11912. <wordCloud
  11913. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11914. :data="wordCloudData"
  11915. ></wordCloud>
  11916. <el-dialog
  11917. title="挑人"
  11918. :visible.sync="dialogVisiblePickPeople"
  11919. width="650px"
  11920. :before-close="handleClose"
  11921. class="dialog_diy"
  11922. center
  11923. >
  11924. <div class="pick_box">
  11925. <div
  11926. class="noWorksName"
  11927. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11928. v-for="(item, index) in uploadStudentJuri"
  11929. :key="index"
  11930. @click="pickStudent(item)"
  11931. >
  11932. {{ item.name }}
  11933. </div>
  11934. </div>
  11935. </el-dialog>
  11936. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11937. :englishVoiceJson='englishVoiceJson'
  11938. :userid="userid"
  11939. :id="id"
  11940. :courseType="courseType"
  11941. :taskCount="taskCount"
  11942. :toolindex="toolindex"
  11943. @selectSWorks="selectSWorks"
  11944. @selectStudent="selectStudent"
  11945. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11946. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11947. :userid="userid"
  11948. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11949. :commentDetail="commentDetail"
  11950. :courseDetail="courseDetail"
  11951. :wScore="wScore"
  11952. :scoreDetail="scoreDetail"
  11953. @selectSWorks="selectSWorks"
  11954. @selectStudent="selectStudent"></checkEnglishVoice>
  11955. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  11956. <choseWorksDetailDialog
  11957. ref="choseWorksDetailDialogRef"
  11958. :worksStudentData="this.worksStudent"
  11959. :noWorksSData="noWorksS"
  11960. :chapInfoListData="chapInfoList"
  11961. :courseType="courseType"
  11962. :taskCount="taskCount"
  11963. @deleteWorks="deleteWorks"
  11964. @openTools="openTools"
  11965. @openWord="openWord"
  11966. @openScore="openScore"
  11967. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  11968. />
  11969. </div>
  11970. </template>
  11971. <script>
  11972. import "../../common/aws-sdk-2.235.1.min.js";
  11973. // import pdf from "../components/pdf3";
  11974. import pdf from "../components/vpdf";
  11975. import AskStatic from "../components/askStatic";
  11976. import AskStatic2 from "../components/askStatic2";
  11977. import AnswerData2 from "../components/answerData2";
  11978. import AnswerData from "../components/answerData";
  11979. import EditorBar from "../tools/wangEnduit.vue";
  11980. import Table from "../tools/table.vue";
  11981. import Time from "../tools/time.vue";
  11982. import Mind from "../tools/jsmind.vue";
  11983. import Sunburst from "../tools/sunburst";
  11984. import SeeBoard from "../tools/seeBoard";
  11985. import * as imageConversion from "image-conversion";
  11986. import Audio from "../components/audio.vue";
  11987. import ImgDraw from "../tools/imgDraw/imgDraw";
  11988. import { Empty } from "element-ui";
  11989. import RecordRTC from "recordrtc";
  11990. import interVideo from "../interVideo/index.vue";
  11991. import UpdateMore from "../updateMore/updateMore.vue";
  11992. import wordCloud from "../wordCloud/index.vue";
  11993. import axios from "axios";
  11994. import JSZip from "jszip";
  11995. import FileSaver from "file-saver";
  11996. import onlineWrite from "./commpont/onlineWrite";
  11997. import englishEva from "../components/englishEva";
  11998. import * as Diff from 'diff'
  11999. import EnglishVoice from '../EnglishVoice2/index.vue'
  12000. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  12001. import correctText from '../components/correctText.vue'
  12002. import scoreItem from '../scoreList/scoreItem.vue'
  12003. import scoreZong from '../scoreZong/index.vue'
  12004. import classRoomHelper from '../classRoomHelper/index.vue'
  12005. import MarkdownIt from "markdown-it";
  12006. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  12007. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  12008. import { v4 as uuidv4 } from "uuid";
  12009. const getFile = (url) => {
  12010. return new Promise((resolve, reject) => {
  12011. var credentials = {
  12012. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12013. secretAccessKey: "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",
  12014. }; //秘钥形式的登录上传
  12015. window.AWS.config.update(credentials);
  12016. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12017. let url2 = url;
  12018. let _url2 = "";
  12019. if (
  12020. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12021. ) {
  12022. _url2 = url2.split(
  12023. "https://view.officeapps.live.com/op/view.aspx?src="
  12024. )[1];
  12025. } else {
  12026. _url2 = url2;
  12027. }
  12028. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12029. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12030. var params = {
  12031. Bucket: "ccrb",
  12032. Key: name
  12033. };
  12034. s3.getObject(params, function (err, data) {
  12035. if (err) {
  12036. console.log(err, err.stack)
  12037. resolve({ data: 1 });
  12038. }else {
  12039. resolve({ data: data.Body });
  12040. console.log(data);
  12041. } // sxuccessful response
  12042. });
  12043. // axios({
  12044. // method: "get",
  12045. // url,
  12046. // responseType: "blob",
  12047. // })
  12048. // .then((data) => {
  12049. // resolve({ data: data.data });
  12050. // })
  12051. // .catch((error) => {
  12052. // resolve({ data: 1 });
  12053. // // reject(error.toString());
  12054. // });
  12055. });
  12056. };
  12057. export default {
  12058. components: {
  12059. EditorBar,
  12060. Time,
  12061. pdf,
  12062. AskStatic,
  12063. AskStatic2,
  12064. Mind,
  12065. Sunburst,
  12066. SeeBoard,
  12067. AnswerData2,
  12068. AnswerData,
  12069. Audio,
  12070. ImgDraw,
  12071. Table,
  12072. interVideo,
  12073. UpdateMore,
  12074. wordCloud,
  12075. onlineWrite,
  12076. englishEva,
  12077. EnglishVoice,
  12078. checkEnglishVoice,
  12079. correctText,
  12080. scoreItem,
  12081. classRoomHelper,
  12082. scoreZong,
  12083. statisticalAnalysis,
  12084. choseWorksDetailDialog
  12085. },
  12086. data() {
  12087. return {
  12088. bg: null,
  12089. drawShow: false,
  12090. dialogVisible: false,
  12091. dialogVisiblePl: false,
  12092. commentDialogVisible: false,
  12093. dialogVisibleMember: false,
  12094. dialogVisibleWordCloud: false,
  12095. videoVisible: false,
  12096. isStar: false,
  12097. studentEvalDialogVisible: false,
  12098. studentEvalDialogVisibleTeacher: false,
  12099. dialogVisibleSelect: false,
  12100. dialogVisibleSelectTeacher: false,
  12101. dialogVisibleScore: false,
  12102. dialogVisibleENScore: false,
  12103. dialogVisibleSentence: false,
  12104. dialogVisibleSentenceTeacher: false,
  12105. dialogVisibleSentence1: false,
  12106. dialogVisibleWorks: false,
  12107. dialogVisibleTable: false,
  12108. dialogVisibleTableTeacher: false,
  12109. dialogVisibleWord: false,
  12110. dialogVisibleWordTeacher: false,
  12111. dialogVisibleTable2: false,
  12112. dialogVisibleTable3: false,
  12113. dialogVisibleGroupWork: false,
  12114. dialogVisibleUpdateGroup: false,
  12115. dialogVisibleDeleteGroup: false,
  12116. dialogVisibleSname: false,
  12117. dialogVisibleVideo: false,
  12118. dialogVisiblePickPeople: false,
  12119. worksSName: "",
  12120. classJuri: [],
  12121. uploadStudentJuri: [],
  12122. uploadCid: "",
  12123. snameWid: "",
  12124. sStudent: {},
  12125. sTool: "",
  12126. bzText: "",
  12127. commentDetail: [],
  12128. selectAnswer: [],
  12129. videoDetail: {},
  12130. selectJson: {},
  12131. eScore: { eBzText: "", eStar: [] },
  12132. id: this.$route.query.courseId,
  12133. userid: this.$route.query.userid,
  12134. classId: this.$route.query.cid,
  12135. // courseTypeLine: this.$route.query.type,
  12136. oid: this.$route.query.oid,
  12137. org: this.$route.query.org,
  12138. tType: this.$route.query.tType,
  12139. courseType: this.$route.query.type,
  12140. screenType: this.$route.query.screenType,
  12141. tcid2: this.$route.query.tcid,
  12142. tcid: "",
  12143. pptImgUrl: "",
  12144. pptImgUrl1: "",
  12145. commentText: "",
  12146. full: false,
  12147. sIsOpen: false,
  12148. IsLookOpen: false,
  12149. IsFollow: false,
  12150. pzDialog: false,
  12151. contentDialog: false,
  12152. mlDialog: false,
  12153. type: 1,
  12154. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12155. sentenceList1: [],
  12156. tableJson: [],
  12157. tableJsonO: [],
  12158. wordJson: [],
  12159. wordJsonO: [],
  12160. vedio: [],
  12161. text: [],
  12162. textList: [],
  12163. line: [],
  12164. lineList: [],
  12165. chapTools: [],
  12166. chapToolList: [],
  12167. file: [],
  12168. fileC: [],
  12169. vedioTime: [],
  12170. upToolImg: "",
  12171. preTime: 0,
  12172. rateList: {
  12173. ca: 0,
  12174. },
  12175. rateParams: [],
  12176. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12177. studyJuri: [
  12178. {
  12179. content: "",
  12180. cover: [],
  12181. upVedio: [],
  12182. upFile: [],
  12183. },
  12184. ],
  12185. isClose: 0,
  12186. plworkFile: [],
  12187. mr: require("../../assets/vedioPic.png"),
  12188. word: require("../../assets/icon/isWord.png"),
  12189. word2: require("../../assets/icon/word2.png"),
  12190. video: require("../../assets/icon/isVideo.png"),
  12191. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12192. likes: require("../../assets/icon/comment/likes.png"),
  12193. scoreImg: require("../../assets/score.png"),
  12194. courseDetail: {},
  12195. reply: "",
  12196. isSelect: false,
  12197. chapInfo: [],
  12198. chapInfoList: [],
  12199. taskCount: 0,
  12200. imgList: [],
  12201. noImgList: [],
  12202. pzList: [],
  12203. timeWorkList: [],
  12204. PlTextList: [
  12205. "Excellent!",
  12206. "nice!",
  12207. "很有创意!",
  12208. "还不错哦~",
  12209. "继续努力哦~",
  12210. ],
  12211. isClickNav: "",
  12212. navId: "",
  12213. playerOptions: {
  12214. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12215. autoplay: false, //如果true,浏览器准备好时开始回放。
  12216. muted: false, // 默认情况下将会消除任何音频。
  12217. loop: false, // 导致视频一结束就重新开始。
  12218. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12219. language: "zh-CN",
  12220. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12221. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12222. sources: [
  12223. {
  12224. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12225. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12226. },
  12227. ],
  12228. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12229. // poster: dataRes.imgUrl, //你的封面地址
  12230. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12231. controlBar: {
  12232. timeDivider: true, //当前时间和持续时间的分隔符
  12233. durationDisplay: true, //显示持续时间
  12234. remainingTimeDisplay: false, //是否显示剩余时间功能
  12235. fullscreenToggle: true, //全屏按钮
  12236. },
  12237. },
  12238. playerOptions1: {
  12239. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12240. autoplay: false, //如果true,浏览器准备好时开始回放。
  12241. muted: false, // 默认情况下将会消除任何音频。
  12242. loop: false, // 导致视频一结束就重新开始。
  12243. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12244. language: "zh-CN",
  12245. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12246. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12247. sources: [
  12248. {
  12249. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12250. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12251. },
  12252. ],
  12253. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12254. // poster: dataRes.imgUrl, //你的封面地址
  12255. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12256. controlBar: {
  12257. timeDivider: true, //当前时间和持续时间的分隔符
  12258. durationDisplay: true, //显示持续时间
  12259. remainingTimeDisplay: false, //是否显示剩余时间功能
  12260. fullscreenToggle: true, //全屏按钮
  12261. },
  12262. },
  12263. playerO: {},
  12264. noneBtnImg: false,
  12265. proVisible: false,
  12266. proVisible2: false,
  12267. progress: 0,
  12268. isFinishSize: 0,
  12269. isAllSize: 0,
  12270. questionAnswer: "",
  12271. answerQ: "", //问答标题
  12272. rateJson: [],
  12273. wbCount: 0,
  12274. wordCount: 0,
  12275. mindCount: 0,
  12276. askCount: 0,
  12277. noteCount: 0,
  12278. mindNetWorkCount: 0,
  12279. libraryCount: 0,
  12280. workCount: 0,
  12281. timeCount: 0,
  12282. answerCount: 0,
  12283. trainCount: 0,
  12284. evalCount: 0,
  12285. dialogImageUrl: "",
  12286. pictureDialog: false,
  12287. toolTypeList: [],
  12288. dialogVisible1: false,
  12289. dialogVisible2: false,
  12290. dialogVisible3: false,
  12291. dialogVisible6: false,
  12292. dialogVisible4: false,
  12293. isNoHomeWork: false,
  12294. dialogVisible5: false,
  12295. dialogVisible5Teacher: false,
  12296. dialogVisibleChoice: false,
  12297. dialogVisibleChoiceTeacher: false,
  12298. answerDialogVisible: false,
  12299. answerDialogVisibleTeacher: false,
  12300. juriVisible: false,
  12301. timeDialogVisible: false,
  12302. replyDialogVisible: false,
  12303. toolDialogVisible: false,
  12304. engDialogVisible: false,
  12305. engUpdateDialogVisible:false,
  12306. engEvaDialogVisible: false,
  12307. evaEngJson: {
  12308. teacherJson: {},
  12309. studentJson: {},
  12310. message: {},
  12311. },
  12312. isNoUserid:false,
  12313. engListLength:0,
  12314. engWid:"",
  12315. newEnglishList:{
  12316. engTitle:"",
  12317. engText:"",
  12318. },
  12319. newEnglishList1:[],
  12320. oldEnglishJson:{},
  12321. oldEnglishJson1:{},
  12322. englishList1:{},
  12323. englishList:{},
  12324. myAnswerList1:{},
  12325. topHeight:0,
  12326. newEngIndex:-1,
  12327. englishToolIndex:0,
  12328. userMes:{},
  12329. englishToolIndex:0,
  12330. replyIndex: 0,
  12331. replyPid: "",
  12332. radio: [],
  12333. isAsk: false,
  12334. askJson: {
  12335. askCount: 1,
  12336. askTitle: "",
  12337. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12338. },
  12339. testJson: {},
  12340. englishList: {},
  12341. topHeight:0,
  12342. checkJson: [],
  12343. askList: [],
  12344. answerList: [],
  12345. navList: [],
  12346. addPzDialog: false,
  12347. pzConText: "",
  12348. worksStudent: [],
  12349. isCloseList: [],
  12350. workStudent: [],
  12351. groupStudent: [],
  12352. groupStudentUid: [],
  12353. noWorksS: [],
  12354. isWorksS: [],
  12355. noWorksStudent: [],
  12356. toolindex: 0,
  12357. toolDetailIndex: null,
  12358. groupIndex: 0,
  12359. workTypeB: false,
  12360. workTypeC: false,
  12361. isAnswer: false,
  12362. isHovered: false,
  12363. isHovered1: false,
  12364. isHovered2: false,
  12365. commentTagShow:0,
  12366. timer: null,
  12367. opertimer: null,
  12368. showType: '',
  12369. fileType: 0,
  12370. showPDF: false,
  12371. noteName: "",
  12372. evaJuri: [],
  12373. evalua: "",
  12374. eTitle: "",
  12375. eName: "",
  12376. eJson: {},
  12377. fid: "", //一级
  12378. sid: "", //二级
  12379. tid: "", //二级
  12380. typeMode: 1,
  12381. eJSONNum: 0,
  12382. Etype: 1,
  12383. data: {
  12384. meta: {
  12385. name: "example",
  12386. author: "dd@163.com",
  12387. version: "0.2",
  12388. },
  12389. format: "node_array",
  12390. data: [{ id: "root", isroot: true, topic: "" }],
  12391. },
  12392. fullDialogVisible: false,
  12393. fulltype: "",
  12394. fullUrl: "",
  12395. commentIndexJson: {},
  12396. Stbodywidth: 0,
  12397. ispzType: 0,
  12398. pzType: 1,
  12399. wScore: 0,
  12400. scoreDetail: "",
  12401. videoStart: false,
  12402. recorder: null,
  12403. groupJson: {},
  12404. islock: false,
  12405. groupJson2: {},
  12406. dialogVisibleGroup: false,
  12407. dialogVisibleGroup2: false,
  12408. updateGroupArray: [],
  12409. updateGroupUser: {},
  12410. deleteGroupUser: [],
  12411. deleteGroupArray: {},
  12412. checkChair: "",
  12413. checkDeleteGroup: [],
  12414. inviteCode: "",
  12415. courseGroupStudent: [],
  12416. courseGroupStudentUid: [],
  12417. courseGroup: {},
  12418. isGroup: false,
  12419. toolIndex: null,
  12420. tool: {},
  12421. isWorkTool: [
  12422. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12423. ], //, 40
  12424. videoJson: {},
  12425. videoType:0,
  12426. toolType: 0,
  12427. checktoolArray: [],
  12428. vChapterData: [],
  12429. isUpdateToolDetail: false,
  12430. isUpdateToolDetail1: false,
  12431. updateToolDetailInner: "",
  12432. checkboxList: [],
  12433. plIndex: "",
  12434. worksSName2: "",
  12435. worksSid: "",
  12436. wordCloudData: [],
  12437. isPickStudent: [],
  12438. pzStype: 1,
  12439. myAnList: {},
  12440. downLoading: false,
  12441. greyType: false,
  12442. correctWord: [],
  12443. EnglishVoiceDialog: false,
  12444. englishVoiceJson: {},
  12445. englishVoiceJsonWork:[],
  12446. scoreList:{
  12447. listdata:[],
  12448. isScoreList:[],
  12449. },
  12450. classRoomHelperWidth: '85px',
  12451. orgArray:[],
  12452. oidArray:[],
  12453. splitScreenData:{
  12454. isOpen:false,
  12455. userId:"",
  12456. uid:"",
  12457. myUid:"",
  12458. loading:false,
  12459. behavior:null,
  12460. }
  12461. };
  12462. },
  12463. methods: {
  12464. getAIJ(){
  12465. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12466. let oid = res.data[0];
  12467. let org = res.data[1];
  12468. let oidArray = [];
  12469. let orgArray = [];
  12470. oid.forEach(i=>oidArray.push(i.oid))
  12471. org.forEach(i=>orgArray.push(i.oid))
  12472. this.orgArray = orgArray;
  12473. this.oidArray = oidArray;
  12474. })
  12475. },
  12476. insertMemorandum(_html){//保存行为操作
  12477. //variable
  12478. //btn
  12479. let params = [{
  12480. uid:this.userid,
  12481. courseId:this.id+(this.tcid2?this.tcid2:''),
  12482. content:_html
  12483. }]
  12484. console.log(params)
  12485. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12486. if(res.data==1){
  12487. console.log('保存操作成功')
  12488. }else{
  12489. console.log('保存操作失败')
  12490. }
  12491. }).catch(e=>{
  12492. console.log('保存操作失败')
  12493. console.log(e)
  12494. })
  12495. },
  12496. gx(){
  12497. this.$forceUpdate();
  12498. },
  12499. isUpdateCorrect(t,p){
  12500. if(this.greyType == false){
  12501. this.isUpdateText = t;
  12502. this.greyType = true;
  12503. }else{
  12504. if(p == 1){
  12505. this.newEnglishList.engText = this.isUpdateText;
  12506. }else if(p == 2){
  12507. this.oldEnglishJson1.engText = this.isUpdateText;
  12508. }else if(p == 3){
  12509. this.newEnglishList.engText = this.isUpdateText;
  12510. }else{
  12511. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12512. }
  12513. this.greyType = false
  12514. }
  12515. },
  12516. aiCorrect(t,p){
  12517. let aiText = "";
  12518. const loading = this.$loading.service({
  12519. background: "rgba(255, 255, 255)",
  12520. target: document.querySelectorAll(".loadingText")[0],
  12521. });
  12522. let param = {
  12523. model: "gpt-3.5-turbo",
  12524. temperature: 0,
  12525. max_tokens: 2048,
  12526. top_p: 1,
  12527. frequency_penalty: 0,
  12528. presence_penalty: 0,
  12529. messages: [
  12530. {
  12531. role: "user",
  12532. content:
  12533.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12534. },
  12535. ],
  12536. uid: this.userid,
  12537. stream: false,
  12538. };
  12539. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12540. (res) => {
  12541. if (
  12542. res.data.FunctionResponse &&
  12543. res.data.FunctionResponse.result &&
  12544. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12545. ) {
  12546. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12547. return;
  12548. }
  12549. aiText =
  12550. res.data.FunctionResponse.choices[0].message.content;
  12551. aiText = aiText.replace(/%/g,"%25");
  12552. // let w = "";
  12553. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12554. // for(var k = 0;k<a.length;k++){
  12555. // //diffWordsWithSpace
  12556. // if(a.length > 1){
  12557. // if(a[k].added == true){
  12558. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12559. // }else if(a[k].removed == true){
  12560. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12561. // }else{
  12562. // w += '<span>' + a[k].value + '</span>';
  12563. // }
  12564. // }else{
  12565. // if(p == 1){
  12566. // w = this.newEnglishList.engText;
  12567. // }else if(p == 2){
  12568. // w = this.oldEnglishJson1.engText;
  12569. // }else if(p == 3){
  12570. // w = this.newEnglishList.engText;
  12571. // }else{
  12572. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12573. // }
  12574. // }
  12575. // }
  12576. if(p == 1){
  12577. this.newEnglishList.engText = aiText;
  12578. }else if(p == 2){
  12579. this.oldEnglishJson1.engText = aiText;
  12580. }else if(p == 3){
  12581. this.newEnglishList.engText = aiText;
  12582. }else{
  12583. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12584. }
  12585. loading.close();
  12586. },
  12587. (err) => {
  12588. console.log(err);
  12589. loading.close();
  12590. }
  12591. );
  12592. },
  12593. addToolChoose() {
  12594. if (!this.checktoolArray.length) {
  12595. this.$message.error("请选择要添加的任务");
  12596. return;
  12597. }
  12598. if (
  12599. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12600. this.taskCount
  12601. ].toolChoose[0].tool.length
  12602. ) {
  12603. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12604. this.taskCount
  12605. ].toolChoose[0].tool = this.checktoolArray;
  12606. } else {
  12607. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12608. this.taskCount
  12609. ].toolChoose.push({
  12610. tool: this.checktoolArray,
  12611. toolDetail: "",
  12612. toolType: 0,
  12613. askCount: 1,
  12614. askTitle: "",
  12615. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12616. });
  12617. }
  12618. let params = [
  12619. {
  12620. cid: this.id,
  12621. chapters: JSON.stringify(this.chapInfoList),
  12622. uid: this.userid,
  12623. unitIndex: this.courseType,
  12624. },
  12625. ];
  12626. this.ajax
  12627. .post(this.$store.state.api + "updateWorkNew4", params)
  12628. .then((res) => {
  12629. this.$message({
  12630. message: "添加成功",
  12631. type: "success",
  12632. });
  12633. this.checktoolArray = [];
  12634. this.getCourseDetail(2);
  12635. this.checkBz(
  12636. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12637. this.taskCount
  12638. ].toolChoose.length - 1
  12639. );
  12640. this.toolDialogVisible = false;
  12641. this.refreshCourse();
  12642. this.$forceUpdate();
  12643. })
  12644. .catch((err) => {
  12645. console.error(err);
  12646. });
  12647. },
  12648. checkBz(index) {
  12649. this.isUpdateToolDetail = false;
  12650. this.$forceUpdate();
  12651. setTimeout(() => {
  12652. document.scrollingElement.scrollTop =
  12653. document.querySelectorAll(".filebox")[index].offsetTop +
  12654. document.querySelector(".student_body").offsetTop;
  12655. }, 500);
  12656. },
  12657. updateToolDetail(i, type) {
  12658. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12659. this.toolDetailIndex = i
  12660. this.isUpdateToolDetail1 = true;
  12661. setTimeout(() => {
  12662. this.updateToolDetailInner = JSON.parse(
  12663. JSON.stringify(
  12664. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12665. this.taskCount
  12666. ].toolChoose[i].toolDetail
  12667. )
  12668. );
  12669. document.querySelector(".checkTextArea").focus();
  12670. }, 0);
  12671. } else if((this.isUpdateToolDetail1 && type != 2)){
  12672. // this.toolDetailIndex = i;
  12673. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12674. this.taskCount
  12675. ].toolChoose[i].toolDetail = JSON.parse(
  12676. JSON.stringify(this.updateToolDetailInner)
  12677. );
  12678. let params = [
  12679. {
  12680. cid: this.id,
  12681. chapters: JSON.stringify(this.chapInfoList),
  12682. uid: this.userid,
  12683. unitIndex: this.courseType,
  12684. },
  12685. ];
  12686. this.ajax
  12687. .post(this.$store.state.api + "updateWorkNew4", params)
  12688. .then((res) => {
  12689. this.isUpdateToolDetail1 = false;
  12690. this.$message({
  12691. message: "修改成功",
  12692. type: "success",
  12693. });
  12694. this.toolDetailIndex = null;
  12695. this.updateToolDetailInner = "";
  12696. this.getCourseDetail(2);
  12697. this.$forceUpdate();
  12698. })
  12699. .catch((err) => {
  12700. console.error(err);
  12701. });
  12702. } else if((this.isUpdateToolDetail1 && type == 2)){
  12703. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12704. this.taskCount
  12705. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12706. JSON.stringify(this.updateToolDetailInner)
  12707. );
  12708. let params = [
  12709. {
  12710. cid: this.id,
  12711. chapters: JSON.stringify(this.chapInfoList),
  12712. uid: this.userid,
  12713. unitIndex: this.courseType,
  12714. },
  12715. ];
  12716. this.ajax
  12717. .post(this.$store.state.api + "updateWorkNew4", params)
  12718. .then((res) => {
  12719. this.$message({
  12720. message: "修改成功",
  12721. type: "success",
  12722. });
  12723. this.toolDetailIndex = i;
  12724. this.isUpdateToolDetail1 = true;
  12725. setTimeout(() => {
  12726. this.updateToolDetailInner = JSON.parse(
  12727. JSON.stringify(
  12728. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12729. this.taskCount
  12730. ].toolChoose[i].toolDetail
  12731. )
  12732. );
  12733. document.querySelector(".checkTextArea").focus();
  12734. }, 0);
  12735. this.getCourseDetail(2);
  12736. this.$forceUpdate();
  12737. })
  12738. .catch((err) => {
  12739. console.error(err);
  12740. });
  12741. }
  12742. },
  12743. jumpGj(i, j, k, l) {
  12744. for (var z = 0; z < this.navList.length; z++) {
  12745. for (var q = 0; q < this.navList[z].task.length; q++) {
  12746. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12747. this.navList[z].task[q].tool[w].isTool = false;
  12748. }
  12749. }
  12750. }
  12751. console.log(this.navList);
  12752. this.navList[i].task[j].tool[k].isTool =
  12753. !this.navList[i].task[j].tool[k].isTool;
  12754. var a = document.scrollingElement;
  12755. let target = document.querySelector(`#gj${k}`);
  12756. if (target) {
  12757. target.scrollIntoView(true);
  12758. setTimeout(() => {
  12759. a.scrollTop = a.scrollTop - 150;
  12760. }, 0);
  12761. }
  12762. this.navId = ""
  12763. let flag = this.courseType == i;
  12764. let flag2 = this.taskCount == j
  12765. if (l) {
  12766. this.courseType = i;
  12767. // this.navId = l;
  12768. this.taskCount = j;
  12769. this.selectPz();
  12770. this.getHomeWork();
  12771. this.getCourseDetail(2);
  12772. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  12773. if(flag){
  12774. if(flag2){
  12775. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12776. }else{
  12777. 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>`)
  12778. }
  12779. }else{
  12780. 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>`)
  12781. }
  12782. }
  12783. // var b = this.$refs["bz" + k][0];
  12784. // a.scrollTop = b.offsetTop;
  12785. },
  12786. addTools2(i) {
  12787. if (i == 4) {
  12788. // this.openTools2(4);
  12789. this.$message.error("暂未开放");
  12790. return;
  12791. }
  12792. if (i == 45) {
  12793. // this.openTools2(45);
  12794. this.$message.error("暂未开放");
  12795. return;
  12796. }
  12797. if (i == 47) {
  12798. // this.openTools2(47);
  12799. this.$message.error("暂未开放");
  12800. return;
  12801. }
  12802. if (i == 49) {
  12803. // this.openTools2(49);
  12804. this.$message.error("暂未开放");
  12805. return;
  12806. }
  12807. if (i == 62) {
  12808. // this.openTools(itemTaskIndex, 62, toolIndex);
  12809. this.$message.error("暂未开放");
  12810. return;
  12811. }
  12812. if (i == 15) {
  12813. // this.openTools(itemTaskIndex, 15, toolIndex);
  12814. this.$message.error("暂未开放");
  12815. return;
  12816. }
  12817. if (i == 40) {
  12818. // this.openTools(itemTaskIndex, 40, toolIndex);
  12819. this.$message.error("暂未开放");
  12820. return;
  12821. }
  12822. if (i == 41) {
  12823. // this.openTools(itemTaskIndex, 41, toolIndex);
  12824. this.$message.error("暂未开放");
  12825. return;
  12826. }
  12827. if (i == 42) {
  12828. // this.openTools(itemTaskIndex, 42, toolIndex);
  12829. this.$message.error("暂未开放");
  12830. return;
  12831. }
  12832. if (this.checktoolArray.length > 0) {
  12833. if (this.checktoolArray.indexOf(i) != -1) {
  12834. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12835. } else {
  12836. this.checktoolArray = [];
  12837. this.checktoolArray.push(i);
  12838. }
  12839. } else {
  12840. this.checktoolArray.push(i);
  12841. }
  12842. this.$forceUpdate();
  12843. },
  12844. jump() {
  12845. window.parent.postMessage({ tools: "43" }, "*");
  12846. },
  12847. getUpdateMore(f, checkboxList, searchTN, index) {
  12848. this.dialogVisibleMember = f;
  12849. this.checkboxList = checkboxList;
  12850. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12851. this.plIndex = index;
  12852. },
  12853. setPlname(a) {
  12854. if (this.plworkFile.length) {
  12855. this.plworkFile[this.plIndex].username = a;
  12856. } else {
  12857. this.worksSName = a;
  12858. }
  12859. this.dialogVisibleMember = false;
  12860. },
  12861. previewImg(url,w) {
  12862. this.$hevueImgPreview(url);
  12863. if(w){
  12864. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  12865. }
  12866. },
  12867. checkImg(list) {
  12868. if (!list.length) {
  12869. return;
  12870. }
  12871. this.$hevueImgPreview({
  12872. multiple: true, // 开启多图预览模式
  12873. imgList: list, // 需要预览的多图数组
  12874. });
  12875. },
  12876. change(val) {
  12877. console.log(val);
  12878. },
  12879. goTo(path) {
  12880. this.$router.push(path);
  12881. },
  12882. handlePictureCardPreview(url) {
  12883. this.dialogImageUrl = url;
  12884. this.pictureDialog = true;
  12885. },
  12886. clean(type) {
  12887. if (type == 1) {
  12888. this.studyJuri[0].cover.splice(0, 1);
  12889. } else if (type == 2) {
  12890. this.studyJuri[0].upVedio.splice(0, 1);
  12891. } else {
  12892. this.studyJuri[0].upFile.splice(0, 1);
  12893. }
  12894. },
  12895. clean2(index) {
  12896. this.plworkFile.splice(index, 1);
  12897. },
  12898. handleClose(done) {
  12899. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12900. this.videoDetail.sources[0].src = "";
  12901. }
  12902. this.commentIndexJson = {};
  12903. done();
  12904. },
  12905. fullTools() {
  12906. this.full = !this.full;
  12907. },
  12908. imgChange(file, fileList, type) {
  12909. if (type == 1) {
  12910. var _tmp = this.studyJuri[0].cover;
  12911. } else if (type == 2) {
  12912. var _tmp = this.studyJuri[0].upVedio;
  12913. } else {
  12914. var _tmp = this.studyJuri[0].upFile;
  12915. }
  12916. this.noneBtnImg = _tmp.length >= 1;
  12917. },
  12918. setContent(bool) {
  12919. this.contentDialog = bool;
  12920. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12921. document.querySelector(".workd_media").style.height = "650px";
  12922. } else if (document.querySelector(".workd_media")) {
  12923. document.querySelector(".workd_media").style.height = "auto";
  12924. }
  12925. },
  12926. setContent2(bool) {
  12927. this.mlDialog = bool;
  12928. if (
  12929. bool &&
  12930. this.contentDialog &&
  12931. document.querySelector(".workd_media")
  12932. ) {
  12933. document.querySelector(".workd_media").style.height = "650px";
  12934. } else if (document.querySelector(".workd_media")) {
  12935. document.querySelector(".workd_media").style.height = "auto";
  12936. }
  12937. },
  12938. openToolAll() {
  12939. this.toolDialogVisible = true;
  12940. },
  12941. addImg(e) {
  12942. var el = e.currentTarget;
  12943. // this.$message.success('触发上传')
  12944. el.getElementsByTagName("input")[0].click();
  12945. e.target.value = "";
  12946. },
  12947. addSelectAnswer() {
  12948. let params = [
  12949. {
  12950. uid: this.userid,
  12951. cid: this.id,
  12952. stage: this.courseType,
  12953. task: this.taskCount,
  12954. tool: this.toolindex,
  12955. content: this.selectAnswer.answer,
  12956. type: 7,
  12957. },
  12958. ];
  12959. this.ajax
  12960. .post(this.$store.state.api + "addCourseWorks", params)
  12961. .then((res) => {
  12962. this.$message({
  12963. message: "提交成功",
  12964. type: "success",
  12965. });
  12966. this.dialogVisibleSelect = false;
  12967. // this.selectAnswer = {};
  12968. this.selectSWorks();
  12969. this.selectStudent();
  12970. })
  12971. .catch((err) => {
  12972. this.$message.error("提交失败");
  12973. console.error(err);
  12974. });
  12975. },
  12976. addSelectAnswerTeacher() {
  12977. let params = [
  12978. {
  12979. uid: this.sStudent.userid,
  12980. cid: this.id,
  12981. stage: this.courseType,
  12982. task: this.taskCount,
  12983. tool: this.toolindex,
  12984. content: this.selectAnswer.answer,
  12985. type: 7,
  12986. },
  12987. ];
  12988. this.ajax
  12989. .post(this.$store.state.api + "addCourseWorks", params)
  12990. .then((res) => {
  12991. this.$message({
  12992. message: "提交成功",
  12993. type: "success",
  12994. });
  12995. this.dialogVisibleSelectTeacher = false;
  12996. // this.selectAnswer = {};
  12997. this.selectSWorks();
  12998. this.selectStudent();
  12999. })
  13000. .catch((err) => {
  13001. this.$message.error("提交失败");
  13002. console.error(err);
  13003. });
  13004. },
  13005. addSenWorks() {
  13006. for (var i = 0; i < this.sentenceList.length; i++) {
  13007. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13008. if (
  13009. this.sentenceList[i].chooseSenList[j] == undefined ||
  13010. this.sentenceList[i].chooseSenList[j] == ""
  13011. ) {
  13012. this.$message.error("请将答案填写完整!");
  13013. return;
  13014. }
  13015. }
  13016. }
  13017. let params = [
  13018. {
  13019. uid: this.userid,
  13020. cid: this.id,
  13021. stage: this.courseType,
  13022. task: this.taskCount,
  13023. tool: this.toolindex,
  13024. content: JSON.stringify(this.sentenceList),
  13025. type: 9,
  13026. },
  13027. ];
  13028. this.ajax
  13029. .post(this.$store.state.api + "addCourseWorks", params)
  13030. .then((res) => {
  13031. this.$message({
  13032. message: "提交成功",
  13033. type: "success",
  13034. });
  13035. this.dialogVisibleSentence = false;
  13036. // this.selectAnswer = {};
  13037. this.selectSWorks();
  13038. this.selectStudent();
  13039. })
  13040. .catch((err) => {
  13041. this.$message.error("提交失败");
  13042. console.error(err);
  13043. });
  13044. },
  13045. addSenWorksTeacher() {
  13046. for (var i = 0; i < this.sentenceList.length; i++) {
  13047. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13048. if (
  13049. this.sentenceList[i].chooseSenList[j] == undefined ||
  13050. this.sentenceList[i].chooseSenList[j] == ""
  13051. ) {
  13052. this.$message.error("请将答案填写完整!");
  13053. return;
  13054. }
  13055. }
  13056. }
  13057. let params = [
  13058. {
  13059. uid: this.sStudent.userid,
  13060. cid: this.id,
  13061. stage: this.courseType,
  13062. task: this.taskCount,
  13063. tool: this.toolindex,
  13064. content: JSON.stringify(this.sentenceList),
  13065. type: 9,
  13066. },
  13067. ];
  13068. this.ajax
  13069. .post(this.$store.state.api + "addCourseWorks", params)
  13070. .then((res) => {
  13071. this.$message({
  13072. message: "提交成功",
  13073. type: "success",
  13074. });
  13075. this.dialogVisibleSentenceTeacher = false;
  13076. // this.selectAnswer = {};
  13077. this.selectSWorks();
  13078. this.selectStudent();
  13079. })
  13080. .catch((err) => {
  13081. this.$message.error("提交失败");
  13082. console.error(err);
  13083. });
  13084. },
  13085. returnTableText() {
  13086. this.$confirm("确定还原此模板吗?", "提示", {
  13087. confirmButtonText: "确定",
  13088. cancelButtonText: "取消",
  13089. type: "warning",
  13090. })
  13091. .then(() => {
  13092. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13093. })
  13094. .catch(() => {});
  13095. },
  13096. addTableWorks() {
  13097. let params = [
  13098. {
  13099. uid: this.userid,
  13100. cid: this.id,
  13101. stage: this.courseType,
  13102. task: this.taskCount,
  13103. tool: this.toolindex,
  13104. content: JSON.stringify(this.tableJson),
  13105. type: 10,
  13106. },
  13107. ];
  13108. this.ajax
  13109. .post(this.$store.state.api + "addCourseWorks", params)
  13110. .then((res) => {
  13111. this.$message({
  13112. message: "提交成功",
  13113. type: "success",
  13114. });
  13115. this.dialogVisibleTable = false;
  13116. // this.selectAnswer = {};
  13117. this.selectSWorks();
  13118. this.selectStudent();
  13119. })
  13120. .catch((err) => {
  13121. this.$message.error("提交失败");
  13122. console.error(err);
  13123. });
  13124. },
  13125. tableRowClassName({ row, rowIndex }) {
  13126. if ((rowIndex + 1) % 2 === 0) {
  13127. return "even_row";
  13128. } else {
  13129. return "";
  13130. }
  13131. },
  13132. addTableWorksTeacher() {
  13133. let params = [
  13134. {
  13135. uid: this.sStudent.userid,
  13136. cid: this.id,
  13137. stage: this.courseType,
  13138. task: this.taskCount,
  13139. tool: this.toolindex,
  13140. content: JSON.stringify(this.tableJson),
  13141. type: 10,
  13142. },
  13143. ];
  13144. this.ajax
  13145. .post(this.$store.state.api + "addCourseWorks", params)
  13146. .then((res) => {
  13147. this.$message({
  13148. message: "提交成功",
  13149. type: "success",
  13150. });
  13151. this.dialogVisibleTableTeacher = false;
  13152. // this.selectAnswer = {};
  13153. this.selectSWorks();
  13154. this.selectStudent();
  13155. })
  13156. .catch((err) => {
  13157. this.$message.error("提交失败");
  13158. console.error(err);
  13159. });
  13160. },
  13161. returnWordText() {
  13162. this.$confirm("确定还原此模板吗?", "提示", {
  13163. confirmButtonText: "确定",
  13164. cancelButtonText: "取消",
  13165. type: "warning",
  13166. })
  13167. .then(() => {
  13168. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13169. })
  13170. .catch(() => {});
  13171. },
  13172. addWordWorks() {
  13173. let params = [
  13174. {
  13175. uid: this.userid,
  13176. cid: this.id,
  13177. stage: this.courseType,
  13178. task: this.taskCount,
  13179. tool: this.toolindex,
  13180. content: JSON.stringify(this.wordJson),
  13181. type: 13,
  13182. atool: 52,
  13183. },
  13184. ];
  13185. this.ajax
  13186. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13187. .then((res) => {
  13188. this.$message({
  13189. message: "提交成功",
  13190. type: "success",
  13191. });
  13192. this.dialogVisibleWord = false;
  13193. // this.selectAnswer = {};
  13194. this.selectSWorks();
  13195. this.selectStudent();
  13196. })
  13197. .catch((err) => {
  13198. this.$message.error("提交失败");
  13199. console.error(err);
  13200. });
  13201. },
  13202. addWordWorksTeacher() {
  13203. let params = [
  13204. {
  13205. uid: this.sStudent.userid,
  13206. cid: this.id,
  13207. stage: this.courseType,
  13208. task: this.taskCount,
  13209. tool: this.toolindex,
  13210. content: JSON.stringify(this.wordJson),
  13211. type: 13,
  13212. atool: 52,
  13213. },
  13214. ];
  13215. this.ajax
  13216. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13217. .then((res) => {
  13218. this.$message({
  13219. message: "提交成功",
  13220. type: "success",
  13221. });
  13222. this.dialogVisibleWordTeacher = false;
  13223. // this.selectAnswer = {};
  13224. this.selectSWorks();
  13225. this.selectStudent();
  13226. })
  13227. .catch((err) => {
  13228. this.$message.error("提交失败");
  13229. console.error(err);
  13230. });
  13231. },
  13232. addCourseWorks(i) {
  13233. var typesql;
  13234. if (this.fileType === 0) {
  13235. typesql = 1;
  13236. } else if (this.fileType === 1) {
  13237. typesql = 4;
  13238. } else if (this.fileType === 2) {
  13239. typesql = 5;
  13240. } else if (this.fileType === 3) {
  13241. typesql = 12;
  13242. }
  13243. if (!this.studyJuri[0].cover[0].url) {
  13244. this.$message.error("请上传文件");
  13245. return;
  13246. }
  13247. let params = [
  13248. {
  13249. uid: this.userid,
  13250. cid: this.id,
  13251. stage: this.courseType,
  13252. task: i,
  13253. tool: this.toolindex,
  13254. content: this.studyJuri[0].cover[0].url,
  13255. type: typesql,
  13256. },
  13257. ];
  13258. this.ajax
  13259. .post(this.$store.state.api + "addCourseWorksR", params)
  13260. .then((res) => {
  13261. this.$message({
  13262. message: "提交成功",
  13263. type: "success",
  13264. });
  13265. this.studyJuri[0].cover = [];
  13266. this.dialogVisible = false;
  13267. this.getCourseDetail(2);
  13268. })
  13269. .catch((err) => {
  13270. this.$message.error("提交失败");
  13271. console.error(err);
  13272. });
  13273. },
  13274. addCourseWorksPl(i) {
  13275. let _files = this.plworkFile;
  13276. var c = 1;
  13277. for (var k = 0; k < _files.length; k++) {
  13278. if (!_files[k].username) {
  13279. c = 2;
  13280. }
  13281. }
  13282. if (c == 2) {
  13283. this.$message.error("请填写学生姓名");
  13284. return;
  13285. }
  13286. let params = [
  13287. {
  13288. ateacher: this.userid,
  13289. cid: this.id,
  13290. stage: this.courseType,
  13291. task: i,
  13292. tool: this.toolindex,
  13293. content: JSON.stringify(_files),
  13294. },
  13295. ];
  13296. this.ajax
  13297. .post(this.$store.state.api + "addCourseWorksPl", params)
  13298. .then((res) => {
  13299. this.$message({
  13300. message: "提交成功",
  13301. type: "success",
  13302. });
  13303. this.plworkFile = [];
  13304. this.dialogVisiblePl = false;
  13305. this.getCourseDetail(2);
  13306. })
  13307. .catch((err) => {
  13308. this.$message.error("提交失败");
  13309. console.error(err);
  13310. });
  13311. },
  13312. addCourseWorks2(i) {
  13313. var typesql;
  13314. if (this.fileType === 0) {
  13315. typesql = 0;
  13316. } else if (this.fileType === 1) {
  13317. typesql = 1;
  13318. } else if (this.fileType === 2) {
  13319. typesql = 3;
  13320. } else if (this.fileType === 3) {
  13321. typesql = 12;
  13322. }
  13323. if (!this.studyJuri[0].cover[0].url) {
  13324. this.$message.error("请上传文件");
  13325. return;
  13326. }
  13327. let params = [
  13328. {
  13329. uid: this.userid,
  13330. cid: this.id,
  13331. stage: this.courseType,
  13332. task: i,
  13333. tool: this.toolindex,
  13334. content: JSON.stringify({
  13335. type: typesql,
  13336. groupIndex: this.groupIndex,
  13337. url: this.studyJuri[0].cover[0].url,
  13338. }),
  13339. type: 11,
  13340. atool: 49,
  13341. text: "",
  13342. },
  13343. ];
  13344. this.ajax
  13345. .post(this.$store.state.api + "addCourseWorks5", params)
  13346. .then((res) => {
  13347. this.$message({
  13348. message: "提交成功",
  13349. type: "success",
  13350. });
  13351. this.studyJuri[0].cover = [];
  13352. this.dialogVisibleGroupWork = false;
  13353. this.getCourseDetail(2);
  13354. })
  13355. .catch((err) => {
  13356. this.$message.error("提交失败");
  13357. console.error(err);
  13358. });
  13359. },
  13360. addEnglishWork() {
  13361. this.myAnList = this.$refs['engJson'].myAnswerList;
  13362. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13363. this.$message.error("请输入作文标题和正文!");
  13364. return;
  13365. }
  13366. let params = [
  13367. {
  13368. uid: this.userid,
  13369. cid: this.id,
  13370. stage: this.courseType,
  13371. task: this.taskCount,
  13372. tool: this.englishToolIndex,
  13373. content: JSON.stringify(this.myAnList),
  13374. type: 16,
  13375. atool: 69,
  13376. text: "",
  13377. },
  13378. ];
  13379. this.ajax
  13380. .post(this.$store.state.api + "addCourseWorks5", params)
  13381. .then((res) => {
  13382. this.$message({
  13383. message: "提交成功",
  13384. type: "success",
  13385. });
  13386. this.myAnList = {};
  13387. this.englishList = {};
  13388. this.englishToolIndex = 0;
  13389. this.engDialogVisible = false;
  13390. this.selectSWorks();
  13391. this.selectStudent();
  13392. })
  13393. .catch((err) => {
  13394. this.$message.error("提交失败");
  13395. console.error(err);
  13396. });
  13397. },
  13398. addCourseWorksGong(i, data, tool) {
  13399. let params = [
  13400. {
  13401. uid: this.userid,
  13402. cid: this.id,
  13403. stage: this.courseType,
  13404. task: this.taskCount,
  13405. tool: i,
  13406. content: data,
  13407. type: 12,
  13408. atool: tool,
  13409. text: "",
  13410. },
  13411. ];
  13412. this.ajax
  13413. .post(this.$store.state.api + "addCourseWorks5", params)
  13414. .then((res) => {
  13415. this.$message({
  13416. message: "提交成功",
  13417. type: "success",
  13418. });
  13419. this.studyJuri[0].cover = [];
  13420. this.selectSWorks();
  13421. this.selectStudent();
  13422. })
  13423. .catch((err) => {
  13424. this.$message.error("提交失败");
  13425. console.error(err);
  13426. });
  13427. },
  13428. addCourseWorksGongTeacher(i, data, tool) {
  13429. let params = [
  13430. {
  13431. uid: this.sStudent.userid,
  13432. cid: this.id,
  13433. stage: this.courseType,
  13434. task: this.taskCount,
  13435. tool: i,
  13436. content: data,
  13437. type: 12,
  13438. atool: tool,
  13439. text: "",
  13440. },
  13441. ];
  13442. this.ajax
  13443. .post(this.$store.state.api + "addCourseWorks5", params)
  13444. .then((res) => {
  13445. this.$message({
  13446. message: "提交成功",
  13447. type: "success",
  13448. });
  13449. this.studyJuri[0].cover = [];
  13450. this.dialogVisibleWorks = false;
  13451. this.selectSWorks();
  13452. this.selectStudent();
  13453. })
  13454. .catch((err) => {
  13455. this.$message.error("提交失败");
  13456. console.error(err);
  13457. });
  13458. },
  13459. addCourseWorksGongPl(i, data, tool, type) {
  13460. let params = [
  13461. {
  13462. uid: this.sStudent.userid,
  13463. cid: this.id,
  13464. stage: this.courseType,
  13465. task: this.taskCount,
  13466. tool: i,
  13467. content: data,
  13468. type: type,
  13469. atool: tool,
  13470. text: "",
  13471. },
  13472. ];
  13473. this.ajax
  13474. .post(this.$store.state.api + "addCourseWorks5", params)
  13475. .then((res) => {
  13476. this.$message({
  13477. message: "提交成功",
  13478. type: "success",
  13479. });
  13480. this.studyJuri[0].cover = [];
  13481. this.dialogVisibleWorks = false;
  13482. this.selectSWorks();
  13483. this.selectStudent();
  13484. })
  13485. .catch((err) => {
  13486. this.$message.error("提交失败");
  13487. console.error(err);
  13488. });
  13489. },
  13490. addCourseWorksTeacher(i) {
  13491. var typesql;
  13492. if (this.sTool == 32) {
  13493. this.addCourseWorksGongTeacher(
  13494. this.toolindex,
  13495. this.studyJuri[0].cover[0].url,
  13496. this.sTool
  13497. );
  13498. return;
  13499. }
  13500. if (this.fileType === 0) {
  13501. typesql = 1;
  13502. } else if (this.fileType === 1) {
  13503. typesql = 4;
  13504. } else if (this.fileType === 2) {
  13505. typesql = 5;
  13506. } else if (this.fileType === 3) {
  13507. typesql = 12;
  13508. }
  13509. if (this.sTool == 50) {
  13510. this.addCourseWorksGongPl(
  13511. this.toolindex,
  13512. this.studyJuri[0].cover[0].url,
  13513. this.sTool,
  13514. typesql
  13515. );
  13516. return;
  13517. }
  13518. if (!this.studyJuri[0].cover[0].url) {
  13519. this.$message.error("请上传文件");
  13520. return;
  13521. }
  13522. let params = [
  13523. {
  13524. uid: this.sStudent.userid,
  13525. cid: this.id,
  13526. stage: this.courseType,
  13527. task: i,
  13528. tool: this.toolindex,
  13529. content: this.studyJuri[0].cover[0].url,
  13530. type: typesql,
  13531. ateacher: this.userid,
  13532. },
  13533. ];
  13534. this.ajax
  13535. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13536. .then((res) => {
  13537. this.$message({
  13538. message: "提交成功",
  13539. type: "success",
  13540. });
  13541. this.studyJuri[0].cover = [];
  13542. this.dialogVisibleWorks = false;
  13543. this.getCourseDetail(2);
  13544. })
  13545. .catch((err) => {
  13546. this.$message.error("提交失败");
  13547. console.error(err);
  13548. });
  13549. },
  13550. selectUploadStudent(type) {
  13551. const loading = this.$loading.service({
  13552. background: "rgba(255, 255, 255, 0.7)",
  13553. target: document.body,
  13554. });
  13555. let params = {
  13556. cid: this.uploadCid,
  13557. oid: this.oid,
  13558. cn: "",
  13559. };
  13560. this.ajax
  13561. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13562. .then((res) => {
  13563. loading.close();
  13564. var studentK = [];
  13565. if (this.isWorksS[this.toolindex].length > 0) {
  13566. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13567. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13568. }
  13569. studentK = studentK.join(",");
  13570. }
  13571. this.uploadStudentJuri = res.data[0].filter((el) => {
  13572. return studentK.indexOf(el.userid) == -1;
  13573. });
  13574. if (this.worksSName && this.worksSid) {
  13575. this.uploadStudentJuri.push({
  13576. userid: this.worksSid,
  13577. name: this.worksSName,
  13578. });
  13579. }
  13580. if (type == 1) {
  13581. this.plworkFile = [];
  13582. this.dialogVisibleSname = true;
  13583. } else if (type == 2) {
  13584. this.dialogVisiblePl = true;
  13585. }
  13586. })
  13587. .catch((err) => {
  13588. loading.close();
  13589. console.error(err);
  13590. });
  13591. },
  13592. selectPickStudent() {
  13593. const loading = this.$loading.service({
  13594. background: "rgba(255, 255, 255, 0.7)",
  13595. target: document.body,
  13596. });
  13597. let params = {
  13598. cid: this.uploadCid,
  13599. oid: this.oid,
  13600. cn: "",
  13601. };
  13602. this.ajax
  13603. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13604. .then((res) => {
  13605. loading.close();
  13606. this.uploadStudentJuri = res.data[0];
  13607. this.dialogVisiblePickPeople = true;
  13608. })
  13609. .catch((err) => {
  13610. loading.close();
  13611. console.error(err);
  13612. });
  13613. },
  13614. arrayToArray(arrayo, arrayt) {
  13615. let array1 = arrayo;
  13616. let array2 = arrayt;
  13617. let commonElements = [];
  13618. for (let i = 0; i < array1.length; i++) {
  13619. for (let j = 0; j < array2.length; j++) {
  13620. if (array1[i] === array2[j]) {
  13621. commonElements.push(array1[i]);
  13622. }
  13623. }
  13624. }
  13625. return commonElements;
  13626. },
  13627. selectWorksStudent() {
  13628. let params = {
  13629. oid: this.oid,
  13630. cid: this.courseDetail.juri,
  13631. };
  13632. this.ajax
  13633. .get(this.$store.state.api + "selectWorksStudent", params)
  13634. .then((res) => {
  13635. var a = res.data[0];
  13636. for (var i = 0; i < this.isWorksS.length; i++) {
  13637. this.noWorksS[i] = [];
  13638. var studentK = [];
  13639. if (this.isWorksS[i].length > 0) {
  13640. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13641. studentK.push(this.isWorksS[i][z].uid);
  13642. }
  13643. studentK = studentK.join(",");
  13644. for (var j = 0; j < a.length; j++) {
  13645. if (studentK.indexOf(a[j].userid) == -1) {
  13646. if (this.tcid) {
  13647. // a[j].classid.indexOf(this.tcid) != -1
  13648. if (
  13649. this.arrayToArray(
  13650. a[j].classid.split(","),
  13651. this.tcid.split(",")
  13652. ).length
  13653. ) {
  13654. this.noWorksS[i].push({
  13655. student: a[j].name,
  13656. userid: a[j].userid,
  13657. });
  13658. }
  13659. } else {
  13660. this.noWorksS[i].push({
  13661. student: a[j].name,
  13662. userid: a[j].userid,
  13663. });
  13664. }
  13665. }
  13666. }
  13667. } else {
  13668. for (var k = 0; k < a.length; k++) {
  13669. if (this.tcid) {
  13670. if (
  13671. this.arrayToArray(
  13672. a[k].classid.split(","),
  13673. this.tcid.split(",")
  13674. ).length
  13675. ) {
  13676. this.noWorksS[i].push({
  13677. student: a[k].name,
  13678. userid: a[k].userid,
  13679. });
  13680. }
  13681. } else {
  13682. this.noWorksS[i].push({
  13683. student: a[k].name,
  13684. userid: a[k].userid,
  13685. });
  13686. }
  13687. }
  13688. }
  13689. }
  13690. this.$forceUpdate();
  13691. if (
  13692. Object.keys(this.commentDetail).length &&
  13693. Object.keys(this.commentIndexJson).length &&
  13694. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13695. ) {
  13696. let a = 1;
  13697. let c = this.commentIndexJson;
  13698. if (
  13699. this.commentIndexJson.gindex ||
  13700. this.commentIndexJson.gindex === 0
  13701. ) {
  13702. for (
  13703. var i = 0;
  13704. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13705. i++
  13706. ) {
  13707. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13708. groupA: for (var k = 0; k < _el.length; k++) {
  13709. let el = _el[k];
  13710. if (el.wid == this.commentDetail.wid) {
  13711. a = 2;
  13712. this.commentOther(
  13713. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13714. this.commentIndexJson.toolIndex,
  13715. k,
  13716. this.commentIndexJson.gindex
  13717. );
  13718. break groupA;
  13719. }
  13720. }
  13721. }
  13722. if (a === 1) {
  13723. this.commentDetail = [];
  13724. this.commentIndexJson = {};
  13725. this.commentDialogVisible = false;
  13726. this.$message("此作业已被删除");
  13727. }
  13728. } else {
  13729. if (this.isGroup && this.commentIndexJson.gid) {
  13730. groupA: for (
  13731. var i = 0;
  13732. i < this.courseGroup.group.length;
  13733. i++
  13734. ) {
  13735. let _group = this.courseGroup.group[i];
  13736. if (_group.id == this.commentIndexJson.gid) {
  13737. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13738. for (var k = 0; k < _el2.length; k++) {
  13739. let el2 = _el2[k];
  13740. if (el2.wid == this.commentDetail.wid) {
  13741. a = 2;
  13742. this.commentOther(
  13743. _el2[k],
  13744. this.commentIndexJson.toolIndex,
  13745. k,
  13746. null,
  13747. this.commentIndexJson.gid
  13748. );
  13749. break groupA;
  13750. }
  13751. }
  13752. }
  13753. }
  13754. }
  13755. if (a == 1) {
  13756. for (
  13757. var i = 0;
  13758. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13759. i++
  13760. ) {
  13761. let el =
  13762. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13763. if (el.wid == this.commentDetail.wid) {
  13764. a = 2;
  13765. this.commentOther(
  13766. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13767. this.commentIndexJson.toolIndex,
  13768. i
  13769. );
  13770. break;
  13771. }
  13772. }
  13773. }
  13774. if (a === 1) {
  13775. this.commentDetail = [];
  13776. this.commentIndexJson = {};
  13777. this.commentDialogVisible = false;
  13778. this.$message("此作业已被删除");
  13779. }
  13780. }
  13781. }
  13782. })
  13783. .catch((err) => {
  13784. console.error(err);
  13785. });
  13786. },
  13787. selectStudent() {
  13788. //学生查看自己作业
  13789. let params = {
  13790. uid: this.userid,
  13791. cid: this.id,
  13792. s: this.courseType,
  13793. t: this.taskCount,
  13794. };
  13795. this.ajax
  13796. .get(this.$store.state.api + "selectStudentWorks", params)
  13797. .then((res) => {
  13798. var a =
  13799. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13800. this.taskCount
  13801. ].toolChoose;
  13802. var b = res.data[0];
  13803. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13804. var y = [
  13805. "AVI",
  13806. "NAVI",
  13807. "MPEG",
  13808. "ASF",
  13809. "MOV",
  13810. "WMV",
  13811. "3GP",
  13812. "RM",
  13813. "RMVB",
  13814. "FLV",
  13815. "F4V",
  13816. "H.264",
  13817. "H.265",
  13818. "REAL VIDEO",
  13819. "MKV",
  13820. "WebM",
  13821. "HDDVD",
  13822. "MP4",
  13823. "MPG",
  13824. "M4V",
  13825. "MGV",
  13826. "OGV",
  13827. "QTM",
  13828. "STR",
  13829. "AMC",
  13830. "DVX",
  13831. "EVO",
  13832. "DAT",
  13833. "OGG",
  13834. "OGM",
  13835. ];
  13836. for (var i = 0; i < a.length; i++) {
  13837. this.workStudent[i] = [];
  13838. for (var j = 0; j < b.length; j++) {
  13839. if (i == b[j].tool) {
  13840. if (
  13841. (b[j].type == 1 ||
  13842. b[j].type == 4 ||
  13843. b[j].type == 5 ||
  13844. b[j].type == 6 ||
  13845. b[j].type == 12 ||
  13846. b[j].type == 7) &&
  13847. a[i].tool[0] != 15 &&
  13848. a[i].tool[0] != 4 &&
  13849. a[i].tool[0] != 45 &&
  13850. a[i].tool[0] != 50 &&
  13851. a[i].tool[0] != 32 &&
  13852. a[i].tool[0] != 57 &&
  13853. a[i].tool[0] != 52 &&
  13854. a[i].tool[0] != 69
  13855. ) {
  13856. if (
  13857. c.indexOf(
  13858. b[j].content
  13859. .split(".")
  13860. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13861. ) != -1 &&
  13862. a[i].tool[0] == 16 &&
  13863. b[j].atool != 50
  13864. ) {
  13865. this.workStudent[i].push({
  13866. works: b[j].content,
  13867. sName: b[j].name,
  13868. score: b[j].score,
  13869. img: b[j].img,
  13870. type: 1,
  13871. time: b[j].time,
  13872. userid: b[j].userid,
  13873. wid: b[j].id,
  13874. });
  13875. } else if (
  13876. y.indexOf(
  13877. b[j].content
  13878. .split(".")
  13879. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13880. ) != -1 &&
  13881. a[i].tool[0] == 16 &&
  13882. b[j].atool != 50
  13883. ) {
  13884. this.workStudent[i].push({
  13885. userid: b[j].userid,
  13886. wid: b[j].id,
  13887. works: b[j].content,
  13888. sName: b[j].name,
  13889. score: b[j].score,
  13890. img: b[j].img,
  13891. type: 3,
  13892. time: b[j].time,
  13893. });
  13894. } else if (b[j].type == 6 && b[j].atool != 50) {
  13895. this.workStudent[i].push({
  13896. userid: b[j].userid,
  13897. wid: b[j].id,
  13898. works: b[j].content,
  13899. sName: b[j].name,
  13900. score: b[j].score,
  13901. img: b[j].img,
  13902. type: 4,
  13903. time: b[j].time,
  13904. });
  13905. } else if (b[j].type == 7 && b[j].atool != 50) {
  13906. this.workStudent[i].push({
  13907. userid: b[j].userid,
  13908. wid: b[j].id,
  13909. works: b[j].content,
  13910. sName: b[j].name,
  13911. score: b[j].score,
  13912. img: b[j].img,
  13913. type: 5,
  13914. time: b[j].time,
  13915. });
  13916. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13917. this.workStudent[i].push({
  13918. works: b[j].content,
  13919. sName: b[j].name,
  13920. score: b[j].score,
  13921. img: b[j].img,
  13922. type: 12,
  13923. time: b[j].time,
  13924. userid: b[j].userid,
  13925. wid: b[j].id,
  13926. });
  13927. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13928. this.workStudent[i].push({
  13929. works: b[j].content,
  13930. sName: b[j].name,
  13931. score: b[j].score,
  13932. img: b[j].img,
  13933. type: 0,
  13934. time: b[j].time,
  13935. userid: b[j].userid,
  13936. wid: b[j].id,
  13937. });
  13938. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13939. this.workStudent[i].push({
  13940. works: b[j].content,
  13941. sName: b[j].name,
  13942. score: b[j].score,
  13943. img: b[j].img,
  13944. type: 0,
  13945. time: b[j].time,
  13946. userid: b[j].userid,
  13947. wid: b[j].id,
  13948. });
  13949. }
  13950. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13951. this.workStudent[i].push({
  13952. works: b[j].content,
  13953. sName: b[j].name,
  13954. score: b[j].score,
  13955. img: b[j].img,
  13956. type: 2,
  13957. time: b[j].time,
  13958. userid: b[j].userid,
  13959. wid: b[j].id,
  13960. });
  13961. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13962. //问卷
  13963. this.workStudent[i].push({
  13964. works: b[j].content,
  13965. sName: b[j].name,
  13966. score: b[j].score,
  13967. img: b[j].img,
  13968. type: 2,
  13969. time: b[j].time,
  13970. userid: b[j].userid,
  13971. wid: b[j].id,
  13972. });
  13973. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13974. //选择题
  13975. this.workStudent[i].push({
  13976. works: b[j].content,
  13977. sName: b[j].name,
  13978. score: b[j].score,
  13979. img: b[j].img,
  13980. type: 8,
  13981. time: b[j].time,
  13982. userid: b[j].userid,
  13983. wid: b[j].id,
  13984. });
  13985. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13986. //选择题
  13987. this.workStudent[i].push({
  13988. works: b[j].content,
  13989. sName: b[j].name,
  13990. score: b[j].score,
  13991. img: b[j].img,
  13992. type: 9,
  13993. time: b[j].time,
  13994. userid: b[j].userid,
  13995. wid: b[j].id,
  13996. });
  13997. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13998. //选择题
  13999. this.workStudent[i].push({
  14000. works: b[j].content,
  14001. sName: b[j].name,
  14002. score: b[j].score,
  14003. img: b[j].img,
  14004. type: 10,
  14005. time: b[j].time,
  14006. userid: b[j].userid,
  14007. wid: b[j].id,
  14008. });
  14009. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14010. //选择题
  14011. this.workStudent[i].push({
  14012. works: b[j].content,
  14013. sName: b[j].name,
  14014. score: b[j].score,
  14015. img: b[j].img,
  14016. type: 13,
  14017. time: b[j].time,
  14018. userid: b[j].userid,
  14019. wid: b[j].id,
  14020. });
  14021. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14022. //选择题
  14023. this.workStudent[i].push({
  14024. works: b[j].content,
  14025. sName: b[j].name,
  14026. score: b[j].score,
  14027. img: b[j].img,
  14028. type: 12,
  14029. time: b[j].time,
  14030. userid: b[j].userid,
  14031. wid: b[j].id,
  14032. });
  14033. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14034. //选择题
  14035. this.workStudent[i].push({
  14036. works: b[j].content,
  14037. sName: b[j].name,
  14038. score: b[j].score,
  14039. img: b[j].img,
  14040. type: 12,
  14041. time: b[j].time,
  14042. userid: b[j].userid,
  14043. wid: b[j].id,
  14044. });
  14045. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14046. //选择题
  14047. this.workStudent[i].push({
  14048. works: b[j].content,
  14049. sName: b[j].name,
  14050. score: b[j].score,
  14051. img: b[j].img,
  14052. type: 15,
  14053. time: b[j].time,
  14054. userid: b[j].userid,
  14055. wid: b[j].id,
  14056. });
  14057. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14058. //英语写作
  14059. this.workStudent[i].push({
  14060. works: b[j].content,
  14061. sName: b[j].name,
  14062. score: b[j].score,
  14063. img: b[j].img,
  14064. type: 16,
  14065. time: b[j].time,
  14066. userid: b[j].userid,
  14067. wid: b[j].id,
  14068. aiCode: b[j].aiCode,
  14069. teacherCode: b[j].teacherCode
  14070. });
  14071. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14072. //英语口语
  14073. this.workStudent[i].push({
  14074. works: b[j].content,
  14075. sName: b[j].name,
  14076. score: b[j].score,
  14077. img: b[j].img,
  14078. type: 17,
  14079. time: b[j].time,
  14080. userid: b[j].userid,
  14081. wid: b[j].id,
  14082. });
  14083. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14084. //交互视频
  14085. this.workStudent[i].push({
  14086. works: b[j].content,
  14087. sName: b[j].name,
  14088. score: b[j].score,
  14089. img: b[j].img,
  14090. type: 14,
  14091. time: b[j].time,
  14092. userid: b[j].userid,
  14093. wid: b[j].id,
  14094. });
  14095. }
  14096. }
  14097. }
  14098. }
  14099. })
  14100. .catch((err) => {
  14101. console.error(err);
  14102. });
  14103. },
  14104. openVideo(w) {
  14105. this.videoDetail = {};
  14106. this.playerOptions1.sources[0].src = w.works;
  14107. this.videoDetail = this.playerOptions1;
  14108. this.videoVisible = true;
  14109. },
  14110. isLikes(wid, uid, t, c, isLikes,sName) {
  14111. if (isLikes == false) {
  14112. let params = [
  14113. {
  14114. wid: wid,
  14115. lid: uid,
  14116. t: t,
  14117. c: c,
  14118. },
  14119. ];
  14120. this.ajax
  14121. .post(this.$store.state.api + "insertComment", params)
  14122. .then((res) => {
  14123. this.$message({
  14124. message: "点赞成功",
  14125. type: "success",
  14126. });
  14127. this.selectSWorks();
  14128. this.selectStudent();
  14129. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14130. })
  14131. .catch((err) => {
  14132. this.$message.error("点赞失败");
  14133. console.error(err);
  14134. });
  14135. } else {
  14136. let params = {
  14137. wid: wid,
  14138. lid: uid,
  14139. type: t,
  14140. };
  14141. this.ajax
  14142. .get(this.$store.state.api + "deleteComment", params)
  14143. .then((res) => {
  14144. this.$message({
  14145. message: "取消点赞成功",
  14146. type: "success",
  14147. });
  14148. this.selectSWorks();
  14149. this.selectStudent();
  14150. })
  14151. .catch((err) => {
  14152. console.error(err);
  14153. });
  14154. }
  14155. },
  14156. deleteComment(wid) {
  14157. this.$confirm("确定删除此评论吗?", "提示", {
  14158. confirmButtonText: "确定",
  14159. cancelButtonText: "取消",
  14160. type: "warning",
  14161. })
  14162. .then(() => {
  14163. let params = {
  14164. id: wid,
  14165. };
  14166. this.ajax
  14167. .get(this.$store.state.api + "deleteComment2", params)
  14168. .then((res) => {
  14169. this.$message({
  14170. message: "删除评论成功",
  14171. type: "success",
  14172. });
  14173. this.selectSWorks();
  14174. this.selectStudent();
  14175. })
  14176. .catch((err) => {
  14177. console.error(err);
  14178. });
  14179. })
  14180. .catch(() => {});
  14181. },
  14182. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14183. this.commentIndexJson = {
  14184. toolIndex: toolIndex,
  14185. wIndex: wIndex,
  14186. gindex: gindex,
  14187. gid: gid,
  14188. };
  14189. this.commentDetail = [];
  14190. this.commentDialogVisible = true;
  14191. this.commentDetail = w;
  14192. if (w.works && w.type == 1) {
  14193. // this.pptImgUrl = "";
  14194. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14195. if (
  14196. a.indexOf(
  14197. w.works
  14198. .split(".")
  14199. [w.works.split(".").length - 1].toLocaleUpperCase()
  14200. ) != -1
  14201. ) {
  14202. let _uuurl = await this.checkLink(w.works);
  14203. console.log(_uuurl)
  14204. this.pptImgUrl =
  14205. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14206. this.showPDF = false;
  14207. } else if (
  14208. w.works
  14209. .split(".")
  14210. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14211. ) {
  14212. this.pptImgUrl = w.works;
  14213. this.showPDF = true;
  14214. }
  14215. } else if (w.works && w.type == 3) {
  14216. this.videoDetail = {};
  14217. this.playerOptions1.sources[0].src = w.works;
  14218. this.videoDetail = this.playerOptions1;
  14219. // this.videoVisible = true;
  14220. } else if (w.works && w.type == 4) {
  14221. this.eScore = JSON.parse(w.works);
  14222. this.rateJson =
  14223. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14224. this.taskCount
  14225. ].toolChoose[toolIndex].rateJson;
  14226. } else if (w.works && w.type == 10) {
  14227. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14228. } else if (w.works && w.type == 13) {
  14229. this.wordJson =
  14230. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14231. this.taskCount
  14232. ].toolChoose[toolIndex].wordJson;
  14233. }
  14234. },
  14235. async openScore(w, index) {
  14236. this.wScore = 0;
  14237. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14238. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14239. this.commentDetail = [];
  14240. if(w.type == 17){
  14241. this.dialogVisibleENScore = true;
  14242. }else{
  14243. this.dialogVisibleScore = true;
  14244. }
  14245. this.commentDetail = w;
  14246. if (w.works && w.type == 1) {
  14247. this.pptImgUrl = "";
  14248. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14249. if (
  14250. a.indexOf(
  14251. w.works
  14252. .split(".")
  14253. [w.works.split(".").length - 1].toLocaleUpperCase()
  14254. ) != -1
  14255. ) {
  14256. let _uuurl = await this.checkLink(w.works);
  14257. console.log(_uuurl)
  14258. this.pptImgUrl =
  14259. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14260. this.showPDF = false;
  14261. } else if (
  14262. w.works
  14263. .split(".")
  14264. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14265. ) {
  14266. this.pptImgUrl = w.works;
  14267. this.showPDF = true;
  14268. }
  14269. } else if (w.works && w.type == 3) {
  14270. this.videoDetail = {};
  14271. this.playerOptions1.sources[0].src = w.works;
  14272. this.videoDetail = this.playerOptions1;
  14273. }else if(w.type == 17){
  14274. let englishVoiceJson = {}
  14275. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14276. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14277. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14278. .toolChoose[index].englishVoiceJson
  14279. : {};
  14280. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14281. }
  14282. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14283. },
  14284. addComment(wid, uid, t,detail) {
  14285. if (this.commentText == "") {
  14286. this.$message.error("请输入评论");
  14287. return;
  14288. }
  14289. let params2 = [
  14290. {
  14291. wid: wid,
  14292. lid: uid,
  14293. t: t,
  14294. },
  14295. ];
  14296. this.ajax
  14297. .post(this.$store.state.api + "getComment", params2)
  14298. .then((res) => {
  14299. if (res.data[0].length > 0) {
  14300. this.$message.error("一个作业只能评论一条");
  14301. } else {
  14302. let params = [
  14303. {
  14304. wid: wid,
  14305. lid: uid,
  14306. t: t,
  14307. c: this.commentText,
  14308. },
  14309. ];
  14310. this.ajax
  14311. .post(this.$store.state.api + "insertComment", params)
  14312. .then((res) => {
  14313. this.$message({
  14314. message: "评论成功",
  14315. type: "success",
  14316. });
  14317. this.commentText = "";
  14318. this.selectSWorks();
  14319. this.selectStudent();
  14320. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14321. })
  14322. .catch((err) => {
  14323. this.$message.error("评论失败");
  14324. console.error(err);
  14325. });
  14326. }
  14327. })
  14328. .catch((err) => {
  14329. // this.$message.error("评论失败");
  14330. console.error(err);
  14331. });
  14332. },
  14333. scoreWork(wid,sName) {
  14334. if (this.wScore == 0) {
  14335. this.$message.error("请评分");
  14336. return;
  14337. }
  14338. let params = [
  14339. {
  14340. wid: wid,
  14341. score: JSON.stringify({
  14342. wScore: this.wScore,
  14343. detail: this.scoreDetail,
  14344. }),
  14345. },
  14346. ];
  14347. this.ajax
  14348. .post(this.$store.state.api + "scoreWork", params)
  14349. .then((res) => {
  14350. this.$message({
  14351. message: "评分成功",
  14352. type: "success",
  14353. });
  14354. this.wScore = 0;
  14355. this.scoreDetail = "";
  14356. this.dialogVisibleScore = false;
  14357. this.selectSWorks();
  14358. this.selectStudent();
  14359. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14360. })
  14361. .catch((err) => {
  14362. this.$message.error("评分失败");
  14363. console.error(err);
  14364. });
  14365. },
  14366. openXz(w, i) {
  14367. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14368. .taskJson[this.taskCount].toolChoose[i].selectJson
  14369. ? JSON.parse(
  14370. JSON.stringify(
  14371. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14372. this.taskCount
  14373. ].toolChoose[i].selectJson
  14374. )
  14375. )
  14376. : { url: "", select: [], answer: [] };
  14377. var a = w.works.split(",");
  14378. for (var k = 0; k < a.length; k++) {
  14379. a[k] = parseInt(a[k]);
  14380. }
  14381. this.selectAnswer = { answer: a, stu: w.sName };
  14382. this.isSelect = true;
  14383. this.dialogVisibleSelect = true;
  14384. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14385. },
  14386. openSen(w, i) {
  14387. this.sentenceList1 = JSON.parse(w.works);
  14388. this.sentenceList1.stuName = w.sName;
  14389. this.dialogVisibleSentence1 = true;
  14390. },
  14391. openPj(w, toolindex) {
  14392. this.isStar = true;
  14393. this.eScore = JSON.parse(w);
  14394. this.rateJson =
  14395. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14396. this.taskCount
  14397. ].toolChoose[toolindex].rateJson;
  14398. this.studentEvalDialogVisible = true;
  14399. },
  14400. openEnglishEva(id,i){
  14401. let params = {
  14402. wid: id
  14403. };
  14404. this.ajax
  14405. .get(this.$store.state.api + "selectEngWork", params)
  14406. .then((res) => {
  14407. this.evaEngJson.message = res.data[0][0];
  14408. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14409. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14410. .toolChoose[i].englishList;
  14411. this.engEvaDialogVisible = true;
  14412. })
  14413. .catch((err) => {
  14414. console.error(err);
  14415. });
  14416. },
  14417. deleteWorks(id) {
  14418. this.$confirm("确定删除此作业吗?", "提示", {
  14419. confirmButtonText: "确定",
  14420. cancelButtonText: "取消",
  14421. type: "warning",
  14422. })
  14423. .then(() => {
  14424. let params = [
  14425. {
  14426. id: id,
  14427. },
  14428. ];
  14429. this.ajax
  14430. .post(this.$store.state.api + "deleteCourseWork", params)
  14431. .then((res) => {
  14432. this.$message({
  14433. message: "删除成功",
  14434. type: "success",
  14435. });
  14436. this.selectStudent();
  14437. this.selectSWorks();
  14438. this.selectSLook();
  14439. })
  14440. .catch((err) => {
  14441. this.$message.error("网络异常");
  14442. console.error(err);
  14443. });
  14444. })
  14445. .catch(() => {});
  14446. },
  14447. selectSWorks(gindex) {
  14448. //教师查看全部作业
  14449. let params = {
  14450. cid: this.id,
  14451. s: this.courseType,
  14452. t: this.taskCount,
  14453. };
  14454. this.ajax
  14455. .get(this.$store.state.api + "selectSWorks", params)
  14456. .then((res) => {
  14457. var a =
  14458. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14459. this.taskCount
  14460. ].toolChoose;
  14461. var b = res.data[0];
  14462. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14463. var y = [
  14464. "AVI",
  14465. "NAVI",
  14466. "MPEG",
  14467. "ASF",
  14468. "MOV",
  14469. "WMV",
  14470. "3GP",
  14471. "RM",
  14472. "RMVB",
  14473. "FLV",
  14474. "F4V",
  14475. "H.264",
  14476. "H.265",
  14477. "REAL VIDEO",
  14478. "MKV",
  14479. "WebM",
  14480. "HDDVD",
  14481. "MP4",
  14482. "MPG",
  14483. "M4V",
  14484. "MGV",
  14485. "OGV",
  14486. "QTM",
  14487. "STR",
  14488. "AMC",
  14489. "DVX",
  14490. "EVO",
  14491. "DAT",
  14492. "OGG",
  14493. "OGM",
  14494. ];
  14495. var d = res.data[1];
  14496. var e = res.data[2];
  14497. var f = res.data[3];
  14498. let _worksStudent = [];
  14499. var _worksStudent2 = [];
  14500. for (var i = 0; i < a.length; i++) {
  14501. _worksStudent[i] = [];
  14502. _worksStudent2[i] = [];
  14503. if (
  14504. !this.isCloseList[i] ||
  14505. this.isCloseList[i].isClose == undefined
  14506. ) {
  14507. this.isCloseList[i] = { isClose: 0 };
  14508. }
  14509. this.groupStudent[i] = [];
  14510. this.groupStudentUid[i] = [];
  14511. if (this.isGroup) {
  14512. for (
  14513. var groupI = 0;
  14514. groupI < this.courseGroup.group.length;
  14515. groupI++
  14516. ) {
  14517. this.courseGroup.group[groupI].works[i] = [];
  14518. }
  14519. }
  14520. this.isWorksS[i] = [];
  14521. this.checkJson[i] = [];
  14522. if (a[i].tool[0] == 49) {
  14523. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14524. this.groupStudent[i][gA] = [];
  14525. this.groupStudentUid[i][gA] = [];
  14526. _worksStudent[i][gA] = [];
  14527. _worksStudent2[i][gA] = [];
  14528. this.isCloseList[i][gA] = [];
  14529. for (var g = 0; g < f.length; g++) {
  14530. if (
  14531. f[g].ttype == 2 &&
  14532. this.tcid &&
  14533. this.arrayToArray(
  14534. (f[g].classid ? f[g].classid.split(",") : []),
  14535. this.tcid.split(",")
  14536. ).length == 0
  14537. ) {
  14538. continue;
  14539. }
  14540. let _classId = this.arrayToArray(
  14541. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14542. this.classId ? this.classId.split(",") : []
  14543. )
  14544. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14545. (f[g].classid ? f[g].classid.split(",") : []),
  14546. this.tcid.split(",")
  14547. ).length !== 0 || this.arrayToArray(
  14548. (f[g].classid ? f[g].classid.split(",") : []),
  14549. _classId
  14550. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14551. this.groupStudent[i][gA].push(f[g]);
  14552. this.groupStudentUid[i][gA].push(f[g].userid);
  14553. }
  14554. }
  14555. }
  14556. this.$forceUpdate();
  14557. }
  14558. for (var j = 0; j < b.length; j++) {
  14559. if (
  14560. b[j].ttype == 2 &&
  14561. this.tcid &&
  14562. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14563. .length == 0
  14564. ) {
  14565. continue;
  14566. }
  14567. var likesCount = 0;
  14568. var commentCount = 0;
  14569. var isLikes = false;
  14570. var commentJson = [];
  14571. var likeJson = [];
  14572. var data = b[j];
  14573. if (i == b[j].tool) {
  14574. if (data.type == 2 && a[i].tool[0] == 4) {
  14575. // if(JSON.parse(data.content)[0].anwer){
  14576. var checkL =
  14577. JSON.parse(data.content)[0].anwer instanceof Array
  14578. ? JSON.parse(data.content)[0].anwer
  14579. : JSON.parse(data.content)[0].anwer.split(",");
  14580. for (var z = 0; z < checkL.length; z++) {
  14581. if (!this.checkJson[i][z]) {
  14582. this.checkJson[i].push({
  14583. checkCount: [],
  14584. checkPerson: [],
  14585. rightPerson: [],
  14586. });
  14587. }
  14588. if (!this.checkJson[i][z].checkCount.length) {
  14589. this.checkJson[i][z].checkCount = [];
  14590. let _askItemCount = JSON.parse(data.content)[0].askJson
  14591. .askJson[z].askItem;
  14592. for (var aic = 0; aic < _askItemCount; aic++) {
  14593. this.checkJson[i][z].checkCount.push(0);
  14594. }
  14595. }
  14596. if (checkL[z] instanceof Array) {
  14597. if (
  14598. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14599. checkL[z].sort().join(",")
  14600. ) {
  14601. this.checkJson[i][z].rightPerson.push(data.name);
  14602. }
  14603. for (var q = 0; q < checkL[z].length; q++) {
  14604. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14605. ? this.checkJson[i][z].checkPerson[
  14606. parseInt(checkL[z][q])
  14607. ].push(data.name)
  14608. : (this.checkJson[i][z].checkPerson[
  14609. parseInt(checkL[z][q])
  14610. ] = [data.name]);
  14611. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14612. ? this.checkJson[i][z].checkCount[
  14613. parseInt(checkL[z][q])
  14614. ]++
  14615. : (this.checkJson[i][z].checkCount[
  14616. parseInt(checkL[z][q])
  14617. ] = 1);
  14618. }
  14619. } else {
  14620. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14621. this.checkJson[i][z].rightPerson.push(data.name);
  14622. }
  14623. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14624. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14625. ? this.checkJson[i][z].checkPerson[
  14626. parseInt(checkL[z])
  14627. ].push(data.name)
  14628. : (this.checkJson[i][z].checkPerson[
  14629. parseInt(checkL[z])
  14630. ] = [data.name]);
  14631. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14632. ? this.checkJson[i][z].checkCount[
  14633. parseInt(checkL[z])
  14634. ]++
  14635. : (this.checkJson[i][z].checkCount[
  14636. parseInt(checkL[z])
  14637. ] = 1);
  14638. }
  14639. }
  14640. }
  14641. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14642. var checkL = JSON.parse(data.content)[0].anwer;
  14643. for (var z = 0; z < checkL.length; z++) {
  14644. if (!this.checkJson[i][z]) {
  14645. this.checkJson[i].push({
  14646. checkCount: [],
  14647. checkPerson: [],
  14648. rightPerson: [],
  14649. });
  14650. }
  14651. if (!this.checkJson[i][z].checkCount.length) {
  14652. this.checkJson[i][z].checkCount = [];
  14653. let _askItemCount = JSON.parse(data.content)[0].testJson
  14654. .testJson[z].testItem;
  14655. for (var aic = 0; aic < _askItemCount; aic++) {
  14656. this.checkJson[i][z].checkCount.push(0);
  14657. }
  14658. }
  14659. if (checkL[z] instanceof Array) {
  14660. if (
  14661. JSON.parse(data.content)[0]
  14662. .testJson.testJson[z].answer.sort()
  14663. .join(",") == checkL[z].sort().join(",")
  14664. ) {
  14665. this.checkJson[i][z].rightPerson.push(data.name);
  14666. }
  14667. for (var q = 0; q < checkL[z].length; q++) {
  14668. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14669. ? this.checkJson[i][z].checkPerson[
  14670. parseInt(checkL[z][q])
  14671. ].push(data.name)
  14672. : (this.checkJson[i][z].checkPerson[
  14673. parseInt(checkL[z][q])
  14674. ] = [data.name]);
  14675. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14676. ? this.checkJson[i][z].checkCount[
  14677. parseInt(checkL[z][q])
  14678. ]++
  14679. : (this.checkJson[i][z].checkCount[
  14680. parseInt(checkL[z][q])
  14681. ] = 1);
  14682. }
  14683. } else {
  14684. if (
  14685. JSON.parse(data.content)[0].testJson.testJson[z]
  14686. .answer == checkL[z]
  14687. ) {
  14688. this.checkJson[i][z].rightPerson.push(data.name);
  14689. }
  14690. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14691. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14692. ? this.checkJson[i][z].checkPerson[
  14693. parseInt(checkL[z])
  14694. ].push(data.name)
  14695. : (this.checkJson[i][z].checkPerson[
  14696. parseInt(checkL[z])
  14697. ] = [data.name]);
  14698. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14699. ? this.checkJson[i][z].checkCount[
  14700. parseInt(checkL[z])
  14701. ]++
  14702. : (this.checkJson[i][z].checkCount[
  14703. parseInt(checkL[z])
  14704. ] = 1);
  14705. }
  14706. }
  14707. }
  14708. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14709. var checkL = JSON.parse(data.content);
  14710. for (var z = 0; z < checkL.length; z++) {
  14711. if (!this.checkJson[i][z]) {
  14712. this.checkJson[i].push({
  14713. checkCount: [],
  14714. checkPerson: [],
  14715. rightPerson: [],
  14716. });
  14717. }
  14718. this.checkJson[i][z].checkPerson.push(data.name);
  14719. if (
  14720. checkL[z].chooseSenList.toString() ==
  14721. checkL[z].rightAnswer.toString()
  14722. ) {
  14723. this.checkJson[i][z].rightPerson.push(data.name);
  14724. }
  14725. }
  14726. }
  14727. for (var k = 0; k < d.length; k++) {
  14728. //点赞
  14729. if (d[k].workId == b[j].id) {
  14730. likesCount++;
  14731. likeJson.push(d[k])
  14732. if (d[k].likesId == this.userid) {
  14733. isLikes = true;
  14734. }
  14735. }
  14736. }
  14737. for (var l = 0; l < e.length; l++) {
  14738. //评论
  14739. if (e[l].workId == b[j].id) {
  14740. if (e[l].comment != "") {
  14741. commentCount++;
  14742. commentJson.push({
  14743. commentText: e[l].comment,
  14744. commentTime: e[l].commentTime,
  14745. commentPeople: e[l].commentPeople,
  14746. userid: e[l].userid,
  14747. wid: e[l].id,
  14748. });
  14749. }
  14750. }
  14751. }
  14752. if (
  14753. (b[j].type == 1 ||
  14754. b[j].type == 4 ||
  14755. b[j].type == 5 ||
  14756. b[j].type == 6 ||
  14757. b[j].type == 12 ||
  14758. b[j].type == 7) &&
  14759. a[i].tool[0] != 15 &&
  14760. a[i].tool[0] != 4 &&
  14761. a[i].tool[0] != 45 &&
  14762. a[i].tool[0] != 50 &&
  14763. a[i].tool[0] != 32 &&
  14764. a[i].tool[0] != 57 &&
  14765. a[i].tool[0] != 52
  14766. ) {
  14767. if (
  14768. c.indexOf(
  14769. b[j].content
  14770. .split(".")
  14771. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14772. ) != -1 &&
  14773. a[i].tool[0] == 16 &&
  14774. b[j].atool != 50
  14775. ) {
  14776. let _works = {
  14777. userid: b[j].userid,
  14778. ateacher: b[j].ateacher,
  14779. wid: b[j].id,
  14780. works: b[j].content,
  14781. sName: b[j].name,
  14782. type: 1,
  14783. ttype:b[j].ttype,
  14784. time: b[j].time,
  14785. score: b[j].score,
  14786. img: b[j].img,
  14787. likesCount: likesCount,
  14788. commentCount: commentCount,
  14789. isLikes: isLikes,
  14790. commentJson: commentJson,
  14791. likeJson:likeJson
  14792. };
  14793. if (this.isGroup) {
  14794. let isGw = 1;
  14795. for (
  14796. var groupI = 0;
  14797. groupI < this.courseGroup.group.length;
  14798. groupI++
  14799. ) {
  14800. let gid = this.courseGroup.group[groupI].id;
  14801. if (
  14802. this.courseGroupStudentUid[gid].indexOf(
  14803. b[j].userid
  14804. ) != -1
  14805. ) {
  14806. isGw = 2;
  14807. this.courseGroup.group[groupI].works[i].push(_works);
  14808. break;
  14809. }
  14810. }
  14811. if (isGw == 1) {
  14812. _worksStudent[i].push(_works);
  14813. }
  14814. } else {
  14815. _worksStudent[i].push(_works);
  14816. }
  14817. _worksStudent2[i].push(_works);
  14818. this.isWorksS[i].push({
  14819. uid: b[j].userid,
  14820. sName: b[j].name,
  14821. });
  14822. } else if (
  14823. y.indexOf(
  14824. b[j].content
  14825. .split(".")
  14826. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14827. ) != -1 &&
  14828. a[i].tool[0] == 16 &&
  14829. b[j].atool != 50
  14830. ) {
  14831. let _works = {
  14832. userid: b[j].userid,
  14833. ateacher: b[j].ateacher,
  14834. wid: b[j].id,
  14835. works: b[j].content,
  14836. sName: b[j].name,
  14837. type: 3,
  14838. ttype:b[j].ttype,
  14839. time: b[j].time,
  14840. score: b[j].score,
  14841. img: b[j].img,
  14842. likesCount: likesCount,
  14843. commentCount: commentCount,
  14844. isLikes: isLikes,
  14845. commentJson: commentJson,
  14846. likeJson:likeJson
  14847. };
  14848. if (this.isGroup) {
  14849. let isGw = 1;
  14850. for (
  14851. var groupI = 0;
  14852. groupI < this.courseGroup.group.length;
  14853. groupI++
  14854. ) {
  14855. let gid = this.courseGroup.group[groupI].id;
  14856. if (
  14857. this.courseGroupStudentUid[gid].indexOf(
  14858. b[j].userid
  14859. ) != -1
  14860. ) {
  14861. isGw = 2;
  14862. this.courseGroup.group[groupI].works[i].push(_works);
  14863. break;
  14864. }
  14865. }
  14866. if (isGw == 1) {
  14867. _worksStudent[i].push(_works);
  14868. }
  14869. } else {
  14870. _worksStudent[i].push(_works);
  14871. }
  14872. _worksStudent2[i].push(_works);
  14873. this.isWorksS[i].push({
  14874. uid: b[j].userid,
  14875. sName: b[j].name,
  14876. });
  14877. } else if (b[j].type == 6 && b[j].atool != 50) {
  14878. let _works = {
  14879. userid: b[j].userid,
  14880. ateacher: b[j].ateacher,
  14881. wid: b[j].id,
  14882. works: b[j].content,
  14883. sName: b[j].name,
  14884. type: 4,
  14885. ttype:b[j].ttype,
  14886. time: b[j].time,
  14887. score: b[j].score,
  14888. img: b[j].img,
  14889. likesCount: likesCount,
  14890. commentCount: commentCount,
  14891. isLikes: isLikes,
  14892. commentJson: commentJson,
  14893. likeJson:likeJson
  14894. };
  14895. _worksStudent[i].push(_works);
  14896. _worksStudent2[i].push(_works);
  14897. this.isWorksS[i].push({
  14898. uid: b[j].userid,
  14899. sName: b[j].name,
  14900. });
  14901. } else if (b[j].type == 7 && b[j].atool != 50) {
  14902. let _work = {
  14903. userid: b[j].userid,
  14904. ateacher: b[j].ateacher,
  14905. wid: b[j].id,
  14906. works: b[j].content,
  14907. sName: b[j].name,
  14908. type: 5,
  14909. ttype:b[j].ttype,
  14910. time: b[j].time,
  14911. score: b[j].score,
  14912. img: b[j].img,
  14913. likesCount: likesCount,
  14914. commentCount: commentCount,
  14915. isLikes: isLikes,
  14916. commentJson: commentJson,
  14917. likeJson:likeJson
  14918. };
  14919. _worksStudent[i].push(_work);
  14920. _worksStudent2[i].push(_work);
  14921. this.isWorksS[i].push({
  14922. uid: b[j].userid,
  14923. sName: b[j].name,
  14924. });
  14925. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14926. let _works = {
  14927. userid: b[j].userid,
  14928. ateacher: b[j].ateacher,
  14929. wid: b[j].id,
  14930. works: b[j].content,
  14931. sName: b[j].name,
  14932. type: 12,
  14933. ttype:b[j].ttype,
  14934. time: b[j].time,
  14935. score: b[j].score,
  14936. img: b[j].img,
  14937. likesCount: likesCount,
  14938. commentCount: commentCount,
  14939. isLikes: isLikes,
  14940. commentJson: commentJson,
  14941. likeJson:likeJson
  14942. };
  14943. if (this.isGroup) {
  14944. let isGw = 1;
  14945. for (
  14946. var groupI = 0;
  14947. groupI < this.courseGroup.group.length;
  14948. groupI++
  14949. ) {
  14950. let gid = this.courseGroup.group[groupI].id;
  14951. if (
  14952. this.courseGroupStudentUid[gid].indexOf(
  14953. b[j].userid
  14954. ) != -1
  14955. ) {
  14956. isGw = 2;
  14957. this.courseGroup.group[groupI].works[i].push(_works);
  14958. break;
  14959. }
  14960. }
  14961. if (isGw == 1) {
  14962. _worksStudent[i].push(_works);
  14963. }
  14964. } else {
  14965. _worksStudent[i].push(_works);
  14966. }
  14967. _worksStudent2[i].push(_works);
  14968. this.isWorksS[i].push({
  14969. uid: b[j].userid,
  14970. sName: b[j].name,
  14971. });
  14972. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14973. let _works = {
  14974. userid: b[j].userid,
  14975. ateacher: b[j].ateacher,
  14976. wid: b[j].id,
  14977. works: b[j].content,
  14978. sName: b[j].name,
  14979. type: 0,
  14980. ttype:b[j].ttype,
  14981. time: b[j].time,
  14982. score: b[j].score,
  14983. img: b[j].img,
  14984. likesCount: likesCount,
  14985. commentCount: commentCount,
  14986. isLikes: isLikes,
  14987. commentJson: commentJson,
  14988. likeJson:likeJson
  14989. };
  14990. if (this.isGroup) {
  14991. let isGw = 1;
  14992. for (
  14993. var groupI = 0;
  14994. groupI < this.courseGroup.group.length;
  14995. groupI++
  14996. ) {
  14997. let gid = this.courseGroup.group[groupI].id;
  14998. if (
  14999. this.courseGroupStudentUid[gid].indexOf(
  15000. b[j].userid
  15001. ) != -1
  15002. ) {
  15003. isGw = 2;
  15004. this.courseGroup.group[groupI].works[i].push(_works);
  15005. break;
  15006. }
  15007. }
  15008. if (isGw == 1) {
  15009. _worksStudent[i].push(_works);
  15010. }
  15011. } else {
  15012. _worksStudent[i].push(_works);
  15013. }
  15014. _worksStudent2[i].push(_works);
  15015. this.isWorksS[i].push({
  15016. uid: b[j].userid,
  15017. sName: b[j].name,
  15018. });
  15019. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15020. let _works = {
  15021. userid: b[j].userid,
  15022. ateacher: b[j].ateacher,
  15023. wid: b[j].id,
  15024. works: b[j].content,
  15025. sName: b[j].name,
  15026. type: 0,
  15027. ttype:b[j].ttype,
  15028. time: b[j].time,
  15029. score: b[j].score,
  15030. img: b[j].img,
  15031. likesCount: likesCount,
  15032. commentCount: commentCount,
  15033. isLikes: isLikes,
  15034. commentJson: commentJson,
  15035. likeJson:likeJson
  15036. };
  15037. if (this.isGroup) {
  15038. let isGw = 1;
  15039. for (
  15040. var groupI = 0;
  15041. groupI < this.courseGroup.group.length;
  15042. groupI++
  15043. ) {
  15044. let gid = this.courseGroup.group[groupI].id;
  15045. if (
  15046. this.courseGroupStudentUid[gid].indexOf(
  15047. b[j].userid
  15048. ) != -1
  15049. ) {
  15050. isGw = 2;
  15051. this.courseGroup.group[groupI].works[i].push(_works);
  15052. break;
  15053. }
  15054. }
  15055. if (isGw == 1) {
  15056. _worksStudent[i].push(_works);
  15057. }
  15058. } else {
  15059. _worksStudent[i].push(_works);
  15060. }
  15061. _worksStudent2[i].push(_works);
  15062. this.isWorksS[i].push({
  15063. uid: b[j].userid,
  15064. sName: b[j].name,
  15065. });
  15066. }
  15067. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15068. let _works = {
  15069. userid: b[j].userid,
  15070. ateacher: b[j].ateacher,
  15071. wid: b[j].id,
  15072. works: b[j].content,
  15073. sName: b[j].name,
  15074. type: 2,
  15075. ttype:b[j].ttype,
  15076. time: b[j].time,
  15077. score: b[j].score,
  15078. img: b[j].img,
  15079. likesCount: likesCount,
  15080. commentCount: commentCount,
  15081. isLikes: isLikes,
  15082. commentJson: commentJson,
  15083. likeJson:likeJson
  15084. };
  15085. if (this.isGroup) {
  15086. let isGw = 1;
  15087. for (
  15088. var groupI = 0;
  15089. groupI < this.courseGroup.group.length;
  15090. groupI++
  15091. ) {
  15092. let gid = this.courseGroup.group[groupI].id;
  15093. if (
  15094. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15095. -1
  15096. ) {
  15097. isGw = 2;
  15098. this.courseGroup.group[groupI].works[i].push(_works);
  15099. break;
  15100. }
  15101. }
  15102. if (isGw == 1) {
  15103. _worksStudent[i].push(_works);
  15104. }
  15105. } else {
  15106. _worksStudent[i].push(_works);
  15107. }
  15108. _worksStudent2[i].push(_works);
  15109. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15110. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15111. //问卷
  15112. let _work = {
  15113. userid: b[j].userid,
  15114. ateacher: b[j].ateacher,
  15115. wid: b[j].id,
  15116. works: b[j].content,
  15117. sName: b[j].name,
  15118. type: 2,
  15119. ttype:b[j].ttype,
  15120. time: b[j].time,
  15121. score: b[j].score,
  15122. img: b[j].img,
  15123. likesCount: likesCount,
  15124. commentCount: commentCount,
  15125. isLikes: isLikes,
  15126. commentJson: commentJson,
  15127. likeJson:likeJson
  15128. };
  15129. _worksStudent[i].push(_work);
  15130. _worksStudent2[i].push(_work);
  15131. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15132. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15133. //选择题
  15134. let _work = {
  15135. userid: b[j].userid,
  15136. ateacher: b[j].ateacher,
  15137. wid: b[j].id,
  15138. works: b[j].content,
  15139. sName: b[j].name,
  15140. type: 8,
  15141. ttype:b[j].ttype,
  15142. time: b[j].time,
  15143. score: b[j].score,
  15144. img: b[j].img,
  15145. likesCount: likesCount,
  15146. commentCount: commentCount,
  15147. isLikes: isLikes,
  15148. commentJson: commentJson,
  15149. likeJson:likeJson
  15150. };
  15151. _worksStudent[i].push(_work);
  15152. _worksStudent2[i].push(_work);
  15153. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15154. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15155. //选择题
  15156. let _work = {
  15157. userid: b[j].userid,
  15158. ateacher: b[j].ateacher,
  15159. wid: b[j].id,
  15160. works: b[j].content,
  15161. sName: b[j].name,
  15162. type: 9,
  15163. ttype:b[j].ttype,
  15164. time: b[j].time,
  15165. score: b[j].score,
  15166. img: b[j].img,
  15167. likesCount: likesCount,
  15168. commentCount: commentCount,
  15169. isLikes: isLikes,
  15170. commentJson: commentJson,
  15171. likeJson:likeJson
  15172. };
  15173. _worksStudent[i].push(_work);
  15174. _worksStudent2[i].push(_work);
  15175. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15176. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15177. //选择题
  15178. let _work = {
  15179. userid: b[j].userid,
  15180. ateacher: b[j].ateacher,
  15181. wid: b[j].id,
  15182. works: b[j].content,
  15183. sName: b[j].name,
  15184. type: 10,
  15185. ttype:b[j].ttype,
  15186. time: b[j].time,
  15187. score: b[j].score,
  15188. img: b[j].img,
  15189. likesCount: likesCount,
  15190. commentCount: commentCount,
  15191. isLikes: isLikes,
  15192. commentJson: commentJson,
  15193. likeJson:likeJson
  15194. };
  15195. _worksStudent[i].push(_work);
  15196. _worksStudent2[i].push(_work);
  15197. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15198. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15199. //选择题
  15200. let _work = {
  15201. userid: b[j].userid,
  15202. ateacher: b[j].ateacher,
  15203. wid: b[j].id,
  15204. works: b[j].content,
  15205. sName: b[j].name,
  15206. type: 13,
  15207. ttype:b[j].ttype,
  15208. time: b[j].time,
  15209. score: b[j].score,
  15210. img: b[j].img,
  15211. likesCount: likesCount,
  15212. commentCount: commentCount,
  15213. isLikes: isLikes,
  15214. commentJson: commentJson,
  15215. likeJson:likeJson
  15216. };
  15217. _worksStudent[i].push(_work);
  15218. _worksStudent2[i].push(_work);
  15219. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15220. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15221. //选择题
  15222. let _work = {
  15223. userid: b[j].userid,
  15224. ateacher: b[j].ateacher,
  15225. wid: b[j].id,
  15226. works: b[j].content,
  15227. sName: b[j].name,
  15228. type: 16,
  15229. ttype:b[j].ttype,
  15230. time: b[j].time,
  15231. score: b[j].score,
  15232. img: b[j].img,
  15233. likesCount: likesCount,
  15234. commentCount: commentCount,
  15235. isLikes: isLikes,
  15236. commentJson: commentJson,
  15237. aiCode: b[j].aiCode,
  15238. teacherCode: b[j].teacherCode,
  15239. likeJson:likeJson
  15240. };
  15241. _worksStudent[i].push(_work);
  15242. _worksStudent2[i].push(_work);
  15243. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15244. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15245. //英语口语
  15246. let _work = {
  15247. userid: b[j].userid,
  15248. ateacher: b[j].ateacher,
  15249. wid: b[j].id,
  15250. works: b[j].content,
  15251. sName: b[j].name,
  15252. type: 17,
  15253. ttype:b[j].ttype,
  15254. time: b[j].time,
  15255. score: b[j].score,
  15256. img: b[j].img,
  15257. likesCount: likesCount,
  15258. commentCount: commentCount,
  15259. isLikes: isLikes,
  15260. commentJson: commentJson,
  15261. likeJson:likeJson
  15262. };
  15263. _worksStudent[i].push(_work);
  15264. _worksStudent2[i].push(_work);
  15265. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15266. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15267. //交互视频
  15268. let _work = {
  15269. userid: b[j].userid,
  15270. ateacher: b[j].ateacher,
  15271. wid: b[j].id,
  15272. works: b[j].content,
  15273. sName: b[j].name,
  15274. type: 14,
  15275. ttype:b[j].ttype,
  15276. time: b[j].time,
  15277. score: b[j].score,
  15278. img: b[j].img,
  15279. likesCount: likesCount,
  15280. commentCount: commentCount,
  15281. isLikes: isLikes,
  15282. commentJson: commentJson,
  15283. likeJson:likeJson
  15284. };
  15285. _worksStudent[i].push(_work);
  15286. _worksStudent2[i].push(_work);
  15287. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15288. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15289. let _gindex = JSON.parse(b[j].content);
  15290. if (
  15291. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15292. b[j].userid
  15293. ) != -1
  15294. ) {
  15295. let _work = {
  15296. userid: b[j].userid,
  15297. ateacher: b[j].ateacher,
  15298. wid: b[j].id,
  15299. works: _gindex.url,
  15300. sName: b[j].name,
  15301. type: _gindex.type,
  15302. ttype:b[j].ttype,
  15303. time: b[j].time,
  15304. score: b[j].score,
  15305. img: b[j].img,
  15306. likesCount: likesCount,
  15307. commentCount: commentCount,
  15308. isLikes: isLikes,
  15309. commentJson: commentJson,
  15310. likeJson:likeJson
  15311. };
  15312. _worksStudent[i][_gindex.groupIndex].push(_work);
  15313. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15314. }
  15315. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15316. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15317. let _work = {
  15318. userid: b[j].userid,
  15319. ateacher: b[j].ateacher,
  15320. wid: b[j].id,
  15321. works: b[j].content,
  15322. sName: b[j].name ? b[j].name : b[j].userid,
  15323. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15324. ttype:b[j].ttype,
  15325. time: b[j].time,
  15326. score: b[j].score,
  15327. img: b[j].img,
  15328. likesCount: likesCount,
  15329. commentCount: commentCount,
  15330. isLikes: isLikes,
  15331. commentJson: commentJson,
  15332. likeJson:likeJson
  15333. };
  15334. _worksStudent[i].push(_work);
  15335. _worksStudent2[i].push(_work);
  15336. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15337. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15338. let _work = {
  15339. userid: b[j].userid,
  15340. ateacher: b[j].ateacher,
  15341. wid: b[j].id,
  15342. works: b[j].content,
  15343. sName: b[j].name ? b[j].name : b[j].userid,
  15344. type: 12,
  15345. ttype:b[j].ttype,
  15346. time: b[j].time,
  15347. score: b[j].score,
  15348. img: b[j].img,
  15349. likesCount: likesCount,
  15350. commentCount: commentCount,
  15351. isLikes: isLikes,
  15352. commentJson: commentJson,
  15353. likeJson:likeJson
  15354. };
  15355. _worksStudent[i].push(_work);
  15356. _worksStudent2[i].push(_work);
  15357. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15358. } else if (
  15359. a[i].tool[0] == 57 &&
  15360. b[j].atool == 57 &&
  15361. b[j].type == 12
  15362. ) {
  15363. let _work = {
  15364. userid: b[j].userid,
  15365. ateacher: b[j].ateacher,
  15366. wid: b[j].id,
  15367. works: b[j].content,
  15368. sName: b[j].name ? b[j].name : b[j].userid,
  15369. type: 12,
  15370. ttype:b[j].ttype,
  15371. time: b[j].time,
  15372. score: b[j].score,
  15373. img: b[j].img,
  15374. likesCount: likesCount,
  15375. commentCount: commentCount,
  15376. isLikes: isLikes,
  15377. commentJson: commentJson,
  15378. likeJson:likeJson
  15379. };
  15380. _worksStudent[i].push(_work);
  15381. _worksStudent2[i].push(_work);
  15382. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15383. } else if (
  15384. a[i].tool[0] == 57 &&
  15385. b[j].atool == 57 &&
  15386. b[j].type == 15
  15387. ) {
  15388. let _work = {
  15389. userid: b[j].userid,
  15390. ateacher: b[j].ateacher,
  15391. wid: b[j].id,
  15392. works: b[j].content,
  15393. sName: b[j].name ? b[j].name : b[j].userid,
  15394. type: 15,
  15395. ttype:b[j].ttype,
  15396. time: b[j].time,
  15397. score: b[j].score,
  15398. img: b[j].img,
  15399. likesCount: likesCount,
  15400. commentCount: commentCount,
  15401. isLikes: isLikes,
  15402. commentJson: commentJson,
  15403. likeJson:likeJson
  15404. };
  15405. _worksStudent[i].push(_work);
  15406. _worksStudent2[i].push(_work);
  15407. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15408. }
  15409. }
  15410. }
  15411. if (_worksStudent[i] && _worksStudent[i].length) {
  15412. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15413. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15414. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15415. var scoreA = parseFloat(jscoreA);
  15416. var scoreB = parseFloat(jscoreB);
  15417. if (scoreA == scoreB) {
  15418. return b.likesCount - a.likesCount;
  15419. }
  15420. return scoreB - scoreA;
  15421. });
  15422. if (this.isGroup) {
  15423. for (
  15424. var groupI = 0;
  15425. groupI < this.courseGroup.group.length;
  15426. groupI++
  15427. ) {
  15428. this.courseGroup.group[groupI].works[i] =
  15429. this.courseGroup.group[groupI].works[i].sort(function (
  15430. a,
  15431. b
  15432. ) {
  15433. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15434. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15435. var scoreA = parseFloat(jscoreA);
  15436. var scoreB = parseFloat(jscoreB);
  15437. if (scoreA == scoreB) {
  15438. return b.likesCount - a.likesCount;
  15439. }
  15440. return scoreB - scoreA;
  15441. });
  15442. }
  15443. }
  15444. }
  15445. }
  15446. this.timeWorkList = _worksStudent2;
  15447. for (var i = 0; i < a.length; i++) {
  15448. for (var j = 0; j < b.length; j++) {
  15449. var data = b[j];
  15450. if (i == b[j].tool) {
  15451. if (data.type == 2 || data.type == 8) {
  15452. for (var z = 0; z < this.checkJson[i].length; z++) {
  15453. this.checkJson[i][z].checkPerent = [];
  15454. this.checkJson[i][z].right = Math.round(
  15455. (this.checkJson[i][z].rightPerson.length /
  15456. parseInt(_worksStudent[i].length)) *
  15457. 100
  15458. );
  15459. let aaaa = this.checkJson[i][z];
  15460. for (
  15461. var k = 0;
  15462. k < this.checkJson[i][z].checkCount.length;
  15463. k++
  15464. ) {
  15465. this.checkJson[i][z].checkPerent.push(
  15466. Math.round(
  15467. (this.checkJson[i][z].checkCount[k] /
  15468. parseInt(_worksStudent[i].length)) *
  15469. 100
  15470. )
  15471. );
  15472. }
  15473. }
  15474. } else if (data.type == 9) {
  15475. for (var z = 0; z < this.checkJson[i].length; z++) {
  15476. this.checkJson[i][z].checkPerent = [];
  15477. this.checkJson[i][z].right = Math.round(
  15478. (this.checkJson[i][z].rightPerson.length /
  15479. this.checkJson[i][z].checkPerson.length) *
  15480. 100
  15481. );
  15482. }
  15483. }
  15484. }
  15485. }
  15486. }
  15487. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15488. this.joinGroup(gindex);
  15489. }
  15490. this.worksStudent = _worksStudent;
  15491. this.selectWorksStudent();
  15492. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15493. this.$nextTick(()=>{
  15494. setTimeout(()=>{
  15495. setTimeout(()=>{
  15496. this.panToolHeight('tool-'+ci);
  15497. }, 500)
  15498. }, 0)
  15499. })
  15500. }
  15501. })
  15502. .catch((err) => {
  15503. console.error(err);
  15504. });
  15505. },
  15506. pngToWhiteBg(file) {
  15507. const _file = file;
  15508. let read = new FileReader();
  15509. read.readAsDataURL(file); // 文件转base64
  15510. return new Promise((resolve, reject) => {
  15511. read.onload = (e) => {
  15512. let img = new Image();
  15513. img.src = e.target.result;
  15514. img.onload = async () => {
  15515. // 生成canvas
  15516. let canvas = document.createElement("canvas");
  15517. let context = canvas.getContext("2d");
  15518. // 绘制图片到canvas上
  15519. canvas.width = img.width;
  15520. canvas.height = img.height;
  15521. // 在canvas绘制前填充白色背景
  15522. context.fillStyle = "#fff";
  15523. context.fillRect(0, 0, canvas.width, canvas.height);
  15524. context.drawImage(img, 0, 0);
  15525. let base64 = canvas.toDataURL(file["type"], 1);
  15526. let newFile = this.dataUrlToFile(base64, _file);
  15527. resolve(newFile);
  15528. };
  15529. };
  15530. });
  15531. },
  15532. dataUrlToFile(dataurl, file) {
  15533. let arr = dataurl.split(","),
  15534. mime = arr[0].match(/:(.*?);/)[1],
  15535. bstr = atob(arr[1]),
  15536. n = bstr.length,
  15537. u8arr = new Uint8Array(n);
  15538. while (n--) {
  15539. u8arr[n] = bstr.charCodeAt(n);
  15540. }
  15541. // return new Blob([u8arr], { type: mime });
  15542. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15543. type: mime,
  15544. });
  15545. },
  15546. async beforeUpload1(event, type, i) {
  15547. // this.$message.success('进入上传')
  15548. var file = "";
  15549. if (type == 5) {
  15550. file = event;
  15551. } else {
  15552. file = event.target.files[0];
  15553. }
  15554. var credentials = {
  15555. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15556. secretAccessKey: "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",
  15557. }; //秘钥形式的登录上传
  15558. window.AWS.config.update(credentials);
  15559. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15560. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15561. var _this = this;
  15562. _this.progress = 0;
  15563. _this.proVisible = true;
  15564. _this.isFinishSize = 0;
  15565. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15566. var b = [
  15567. "DOC",
  15568. "DOCX",
  15569. "DOCM",
  15570. "DOTM",
  15571. "DOTX",
  15572. "PPTX",
  15573. "PPSX",
  15574. "PPT",
  15575. "PPS",
  15576. "PPTM",
  15577. "POTM",
  15578. "PPAM",
  15579. "POTX",
  15580. "PPSM",
  15581. ];
  15582. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15583. var photoA = [
  15584. "BMP",
  15585. "GIF",
  15586. "PNG",
  15587. "JPEG",
  15588. "JPEG",
  15589. "JPG",
  15590. "TIF",
  15591. "PCX",
  15592. "TGA",
  15593. "EXIF",
  15594. "FPX",
  15595. "SVG",
  15596. "APNG",
  15597. ];
  15598. // if (
  15599. // b.indexOf(
  15600. // file.name
  15601. // .split(".")
  15602. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15603. // ) != -1
  15604. // ) {
  15605. // if (file.size / 1024 / 1024 > 10) {
  15606. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15607. // return;
  15608. // }
  15609. // } else if (
  15610. // excelA.indexOf(
  15611. // file.name
  15612. // .split(".")
  15613. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15614. // ) != "-1"
  15615. // ) {
  15616. // if (file.size / 1024 / 1024 > 5) {
  15617. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15618. // return;
  15619. // }
  15620. // }
  15621. if (
  15622. photoA.indexOf(
  15623. file.name
  15624. .split(".")
  15625. [file.name.split(".").length - 1].toLocaleUpperCase()
  15626. ) != -1 &&
  15627. type != 4
  15628. ) {
  15629. // const blob = await imageConversion.compress(file, 0.8)
  15630. file = await this.pngToWhiteBg(file);
  15631. const blob = await imageConversion.compressAccurately(file, 256);
  15632. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15633. file = new File([blob], file.name, { type: file.type });
  15634. }
  15635. if (file) {
  15636. var params = {
  15637. Key:
  15638. file.name.split(".")[0] +
  15639. new Date().getTime() +
  15640. "." +
  15641. file.name.split(".")[file.name.split(".").length - 1],
  15642. ContentType: file.type,
  15643. Body: file,
  15644. "Access-Control-Allow-Credentials": "*",
  15645. ACL: "public-read",
  15646. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15647. var options = {
  15648. // partSize: 2048 * 1024 * 1024,
  15649. partSize: 1024 * 1024 * 1024,
  15650. queueSize: 2,
  15651. leavePartsOnError: true,
  15652. };
  15653. bucket
  15654. .upload(params, options)
  15655. .on("httpUploadProgress", function (evt) {
  15656. //这里可以写进度条
  15657. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15658. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15659. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15660. })
  15661. .send(function (err, data) {
  15662. _this.progress = 100;
  15663. _this.isFinishSize = _this.isAllSize;
  15664. setTimeout(() => {
  15665. _this.proVisible = false;
  15666. }, 1000);
  15667. if (err) {
  15668. var a = _this.$refs.upload1.uploadFiles;
  15669. a.splice(a.length - 1, a.length);
  15670. _this.$message.error("上传失败");
  15671. } else {
  15672. // _this.$message.success('上传成功')
  15673. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15674. var c = [
  15675. "AVI",
  15676. "NAVI",
  15677. "MPEG",
  15678. "ASF",
  15679. "MOV",
  15680. "WMV",
  15681. "3GP",
  15682. "RM",
  15683. "RMVB",
  15684. "FLV",
  15685. "F4V",
  15686. "H.264",
  15687. "H.265",
  15688. "REAL VIDEO",
  15689. "MKV",
  15690. "WebM",
  15691. "HDDVD",
  15692. "MP4",
  15693. "MPG",
  15694. "M4V",
  15695. "MGV",
  15696. "OGV",
  15697. "QTM",
  15698. "STR",
  15699. "AMC",
  15700. "DVX",
  15701. "EVO",
  15702. "DAT",
  15703. "OGG",
  15704. "OGM",
  15705. ];
  15706. if (type == 1) {
  15707. _this.studyJuri[0].cover.push({
  15708. name: file.name,
  15709. url: data.Location,
  15710. uid: file.uid,
  15711. });
  15712. if (
  15713. c.indexOf(
  15714. _this.studyJuri[0].cover[0].url
  15715. .split(".")
  15716. [
  15717. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15718. ].toLocaleUpperCase()
  15719. ) != -1
  15720. ) {
  15721. _this.fileType = 2;
  15722. } else if (
  15723. b.indexOf(
  15724. _this.studyJuri[0].cover[0].url
  15725. .split(".")
  15726. [
  15727. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15728. ].toLocaleUpperCase()
  15729. ) != -1
  15730. ) {
  15731. _this.fileType = 1;
  15732. } else if (
  15733. photoA.indexOf(
  15734. _this.studyJuri[0].cover[0].url
  15735. .split(".")
  15736. [
  15737. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15738. ].toLocaleUpperCase()
  15739. ) != -1
  15740. ) {
  15741. _this.fileType = 0;
  15742. } else {
  15743. _this.fileType = 3;
  15744. }
  15745. _this.imgChange(null, null, type);
  15746. } else if (type == 2) {
  15747. _this.upToolImg = data.Location;
  15748. _this.imgChange(null, null, type);
  15749. _this.addCourseWorks(i);
  15750. } else if (type == 4) {
  15751. _this.addPz("3", data.Location);
  15752. } else if (type == 5) {
  15753. _this.addImgDrawImG(data.Location);
  15754. } else if (type == 6) {
  15755. var _ftype = 1;
  15756. if (
  15757. c.indexOf(
  15758. data.Location.split(".")[
  15759. data.Location.split(".").length - 1
  15760. ].toLocaleUpperCase()
  15761. ) != -1
  15762. ) {
  15763. _ftype = 5;
  15764. } else if (
  15765. b.indexOf(
  15766. data.Location.split(".")[
  15767. data.Location.split(".").length - 1
  15768. ].toLocaleUpperCase()
  15769. ) != -1
  15770. ) {
  15771. _ftype = 4;
  15772. } else {
  15773. _ftype = 1;
  15774. }
  15775. _this.plworkFile.push({
  15776. name: file.name,
  15777. url: data.Location,
  15778. uid: file.uid,
  15779. fileType: _ftype,
  15780. username:
  15781. _this.plworkFile.length > 10
  15782. ? _this.plworkFile.length + 1
  15783. : "0" + (_this.plworkFile.length + 1),
  15784. });
  15785. } else if (type == 7) {
  15786. _this.addCourseWorksGong(i, data.Location, 32);
  15787. } else if (type == 8) {
  15788. _this.addCourseWorksGong(i, data.Location, 57);
  15789. }
  15790. _this.imgChange(null, null, type);
  15791. console.log(data.Location);
  15792. // _this.$message.success('上传成功'+data.Location)
  15793. }
  15794. });
  15795. }
  15796. },
  15797. async beforeUpload3(event, type, i) {
  15798. // this.$message.success('进入上传')
  15799. let file = "";
  15800. let cfindex2 = 0;
  15801. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15802. file = event.target.files[cfindex];
  15803. var credentials = {
  15804. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15805. secretAccessKey: "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",
  15806. }; //秘钥形式的登录上传
  15807. window.AWS.config.update(credentials);
  15808. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15809. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15810. var _this = this;
  15811. // _this.progress = 0;
  15812. _this.proVisible2 = true;
  15813. var b = [
  15814. "DOC",
  15815. "DOCX",
  15816. "DOCM",
  15817. "DOTM",
  15818. "DOTX",
  15819. "PPTX",
  15820. "PPSX",
  15821. "PPT",
  15822. "PPS",
  15823. "PPTM",
  15824. "POTM",
  15825. "PPAM",
  15826. "POTX",
  15827. "PPSM",
  15828. ];
  15829. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15830. var photoA = [
  15831. "BMP",
  15832. "GIF",
  15833. "PNG",
  15834. "JPEG",
  15835. "JPG",
  15836. "TIF",
  15837. "PCX",
  15838. "TGA",
  15839. "EXIF",
  15840. "FPX",
  15841. "SVG",
  15842. "APNG",
  15843. ];
  15844. if (
  15845. photoA.indexOf(
  15846. file.name
  15847. .split(".")
  15848. [file.name.split(".").length - 1].toLocaleUpperCase()
  15849. ) != -1 &&
  15850. type != 4
  15851. ) {
  15852. // const blob = await imageConversion.compress(file, 0.8)
  15853. file = await this.pngToWhiteBg(file);
  15854. const blob = await imageConversion.compressAccurately(file, 256);
  15855. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15856. file = new File([blob], file.name, { type: file.type });
  15857. }
  15858. if (file) {
  15859. var params = {
  15860. Key:
  15861. file.name.split(".")[0] +
  15862. new Date().getTime() +
  15863. "." +
  15864. file.name.split(".")[file.name.split(".").length - 1],
  15865. ContentType: file.type,
  15866. Body: file,
  15867. "Access-Control-Allow-Credentials": "*",
  15868. ACL: "public-read",
  15869. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15870. var options = {
  15871. // partSize: 2048 * 1024 * 1024,
  15872. partSize: 1024 * 1024 * 1024,
  15873. queueSize: 2,
  15874. leavePartsOnError: true,
  15875. };
  15876. bucket
  15877. .upload(params, options)
  15878. .on("httpUploadProgress", function (evt) {
  15879. //这里可以写进度条
  15880. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15881. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15882. })
  15883. .send(function (err, data) {
  15884. // _this.progress = 100;
  15885. cfindex2++;
  15886. setTimeout(() => {
  15887. if (
  15888. cfindex2 == event.target.files.length - 1 ||
  15889. cfindex2 > event.target.files.length - 1
  15890. ) {
  15891. _this.proVisible2 = false;
  15892. }
  15893. }, 1000);
  15894. if (err) {
  15895. var a = _this.$refs.upload1.uploadFiles;
  15896. a.splice(a.length - 1, a.length);
  15897. _this.$message.error("上传失败");
  15898. } else {
  15899. // _this.$message.success('上传成功')
  15900. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15901. var c = [
  15902. "AVI",
  15903. "NAVI",
  15904. "MPEG",
  15905. "ASF",
  15906. "MOV",
  15907. "WMV",
  15908. "3GP",
  15909. "RM",
  15910. "RMVB",
  15911. "FLV",
  15912. "F4V",
  15913. "H.264",
  15914. "H.265",
  15915. "REAL VIDEO",
  15916. "MKV",
  15917. "WebM",
  15918. "HDDVD",
  15919. "MP4",
  15920. "MPG",
  15921. "M4V",
  15922. "MGV",
  15923. "OGV",
  15924. "QTM",
  15925. "STR",
  15926. "AMC",
  15927. "DVX",
  15928. "EVO",
  15929. "DAT",
  15930. "OGG",
  15931. "OGM",
  15932. ];
  15933. if (type == 1) {
  15934. _this.studyJuri[0].cover.push({
  15935. name: file.name,
  15936. url: data.Location,
  15937. uid: file.uid,
  15938. });
  15939. if (
  15940. c.indexOf(
  15941. _this.studyJuri[0].cover[0].url
  15942. .split(".")
  15943. [
  15944. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15945. ].toLocaleUpperCase()
  15946. ) != -1
  15947. ) {
  15948. _this.fileType = 2;
  15949. } else if (
  15950. b.indexOf(
  15951. _this.studyJuri[0].cover[0].url
  15952. .split(".")
  15953. [
  15954. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15955. ].toLocaleUpperCase()
  15956. ) != -1
  15957. ) {
  15958. _this.fileType = 1;
  15959. } else {
  15960. _this.fileType = 0;
  15961. }
  15962. _this.imgChange(null, null, type);
  15963. } else if (type == 2) {
  15964. _this.upToolImg = data.Location;
  15965. _this.imgChange(null, null, type);
  15966. _this.addCourseWorks(i);
  15967. } else if (type == 4) {
  15968. _this.addPz("3", data.Location);
  15969. } else if (type == 5) {
  15970. _this.addImgDrawImG(data.Location);
  15971. } else if (type == 6) {
  15972. var _ftype = 1;
  15973. if (
  15974. c.indexOf(
  15975. data.Location.split(".")[
  15976. data.Location.split(".").length - 1
  15977. ].toLocaleUpperCase()
  15978. ) != -1
  15979. ) {
  15980. _ftype = 5;
  15981. } else if (
  15982. b.indexOf(
  15983. data.Location.split(".")[
  15984. data.Location.split(".").length - 1
  15985. ].toLocaleUpperCase()
  15986. ) != -1
  15987. ) {
  15988. _ftype = 4;
  15989. } else {
  15990. _ftype = 1;
  15991. }
  15992. _this.plworkFile.push({
  15993. name: file.name,
  15994. url: data.Location,
  15995. uid: file.uid,
  15996. fileType: _ftype,
  15997. username:
  15998. _this.plworkFile.length + 1 > 9
  15999. ? _this.plworkFile.length + 1
  16000. : "0" + (_this.plworkFile.length + 1),
  16001. });
  16002. }
  16003. _this.imgChange(null, null, type);
  16004. console.log(data.Location);
  16005. // _this.$message.success('上传成功'+data.Location)
  16006. }
  16007. });
  16008. }
  16009. }
  16010. },
  16011. beforeUpload2(event, type) {
  16012. var file = event.target.files[0];
  16013. var credentials = {
  16014. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16015. secretAccessKey: "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",
  16016. }; //秘钥形式的登录上传
  16017. window.AWS.config.update(credentials);
  16018. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16019. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16020. var _this = this;
  16021. _this.progress = 0;
  16022. _this.proVisible = true;
  16023. if (file) {
  16024. var params = {
  16025. Key:
  16026. file.name.split(".")[0] +
  16027. new Date().getTime() +
  16028. "." +
  16029. file.name.split(".")[file.name.split(".").length - 1],
  16030. ContentType: file.type,
  16031. Body: file,
  16032. "Access-Control-Allow-Credentials": "*",
  16033. ACL: "public-read",
  16034. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16035. var options = {
  16036. partSize: 2048 * 1024 * 1024,
  16037. queueSize: 2,
  16038. leavePartsOnError: true,
  16039. };
  16040. bucket
  16041. .upload(params, options)
  16042. .on("httpUploadProgress", function (evt) {
  16043. //这里可以写进度条
  16044. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16045. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16046. })
  16047. .send(function (err, data) {
  16048. _this.progress = 100;
  16049. setTimeout(() => {
  16050. _this.proVisible = false;
  16051. }, 1000);
  16052. if (err) {
  16053. var a = _this.$refs.upload1.uploadFiles;
  16054. a.splice(a.length - 1, a.length);
  16055. _this.$message.error("上传失败");
  16056. } else {
  16057. if (type == 2) {
  16058. _this.studyJuri[0].upVedio.push({
  16059. name: file.name,
  16060. url: data.Location,
  16061. uid: file.uid,
  16062. });
  16063. _this.imgChange(null, null, type);
  16064. } else if (type == 3) {
  16065. _this.studyJuri[0].upFile.push({
  16066. name: file.name,
  16067. url: data.Location,
  16068. uid: file.uid,
  16069. });
  16070. _this.imgChange(null, null, type);
  16071. }
  16072. console.log(data.Location);
  16073. }
  16074. });
  16075. }
  16076. },
  16077. allScrell() {
  16078. window.parent.postMessage({ allScreen: this.screenType }, "*");
  16079. },
  16080. nextOrpreSteps(t) {
  16081. if (this.IsFollow && this.tType == 2) {
  16082. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16083. return;
  16084. }
  16085. var b = this.chapInfoList.length - 1;
  16086. if (t == 0) {
  16087. if (this.courseType == 0) {
  16088. if (this.taskCount == 0) {
  16089. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16090. if (this.IsLookOpen) {
  16091. if (
  16092. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16093. ) {
  16094. if (
  16095. this.courseDetail.userid != this.userid &&
  16096. (!this.courseDetail.course_teacher ||
  16097. (this.courseDetail.course_teacher &&
  16098. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16099. ) {
  16100. this.$message.error("任务未解锁");
  16101. } else {
  16102. this.$message.error("上一任务未解锁");
  16103. }
  16104. return;
  16105. }
  16106. }
  16107. this.navList[this.courseType].isOpen = false;
  16108. this.courseType = b;
  16109. this.taskCount =
  16110. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16111. .length - 1;
  16112. this.navList[this.courseType].isOpen = true;
  16113. } else {
  16114. this.taskCount--;
  16115. }
  16116. } else {
  16117. if (this.taskCount == 0) {
  16118. this.navList[this.courseType].isOpen = false;
  16119. this.courseType--;
  16120. this.taskCount =
  16121. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16122. .length - 1;
  16123. this.navList[this.courseType].isOpen = true;
  16124. } else {
  16125. this.taskCount--;
  16126. }
  16127. }
  16128. } else {
  16129. if (this.courseType == b) {
  16130. if (
  16131. this.taskCount ==
  16132. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16133. 1
  16134. ) {
  16135. this.navList[this.courseType].isOpen = false;
  16136. this.courseType = 0;
  16137. this.taskCount = 0;
  16138. this.navList[this.courseType].isOpen = true;
  16139. } else {
  16140. var bbb = parseInt(this.taskCount) + 1;
  16141. if (
  16142. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16143. .isLook &&
  16144. this.courseDetail.userid != this.userid &&
  16145. (!this.courseDetail.course_teacher ||
  16146. (this.courseDetail.course_teacher &&
  16147. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16148. this.IsLookOpen
  16149. ) {
  16150. this.$message.error("任务未解锁");
  16151. return;
  16152. }
  16153. this.taskCount++;
  16154. if (this.IsLookOpen) {
  16155. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16156. this.taskCount
  16157. ].isLook = true;
  16158. this.addCourseState(3);
  16159. }
  16160. }
  16161. } else {
  16162. if (
  16163. this.taskCount ==
  16164. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16165. 1
  16166. ) {
  16167. var bbb = parseInt(this.courseType) + 1;
  16168. if (
  16169. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16170. this.courseDetail.userid != this.userid &&
  16171. (!this.courseDetail.course_teacher ||
  16172. (this.courseDetail.course_teacher &&
  16173. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16174. this.IsLookOpen
  16175. ) {
  16176. this.$message.error("任务未解锁");
  16177. return;
  16178. }
  16179. this.navList[this.courseType].isOpen = false;
  16180. this.courseType++;
  16181. this.taskCount = 0;
  16182. this.navList[this.courseType].isOpen = true;
  16183. } else {
  16184. var bbb = parseInt(this.taskCount) + 1;
  16185. if (
  16186. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16187. .isLook &&
  16188. this.courseDetail.userid != this.userid &&
  16189. (!this.courseDetail.course_teacher ||
  16190. (this.courseDetail.course_teacher &&
  16191. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16192. this.IsLookOpen
  16193. ) {
  16194. this.$message.error("任务未解锁");
  16195. return;
  16196. }
  16197. this.taskCount++;
  16198. }
  16199. if (this.IsLookOpen) {
  16200. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16201. this.taskCount
  16202. ].isLook = true;
  16203. this.addCourseState(3);
  16204. }
  16205. }
  16206. // if (
  16207. // this.taskCount ==
  16208. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16209. // ) {
  16210. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16211. // } else {
  16212. // this.taskCount++;
  16213. // }
  16214. }
  16215. document.scrollingElement.scrollTop = 0;
  16216. this.showType = 7;
  16217. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16218. // if (this.vedio[this.taskCount].length > 0) {
  16219. // var a =
  16220. // document.getElementsByClassName("box_course")[this.taskCount]
  16221. // .offsetHeight;
  16222. // document.getElementsByClassName("vedioList")[
  16223. // this.taskCount
  16224. // ].style.height = a + "px";
  16225. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16226. // a - 40 + "px";
  16227. // }
  16228. this.isNoHomeWork = false;
  16229. (this.studyJuri = [
  16230. {
  16231. content: "",
  16232. cover: [],
  16233. upVedio: [],
  16234. upFile: [],
  16235. },
  16236. ]),
  16237. (this.radio = []);
  16238. this.isClickNav = "";
  16239. this.selectPz();
  16240. this.getHomeWork();
  16241. this.getCourseDetail(2);
  16242. this.$forceUpdate();
  16243. },
  16244. openTask(s, n, i) {
  16245. if (this.IsFollow && this.tType == 2) {
  16246. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16247. return;
  16248. }
  16249. if (this.IsLookOpen) {
  16250. if (
  16251. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16252. this.courseDetail.userid != this.userid &&
  16253. (!this.courseDetail.course_teacher ||
  16254. (this.courseDetail.course_teacher &&
  16255. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16256. ) {
  16257. this.$message.error("任务未解锁");
  16258. return;
  16259. }
  16260. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16261. if (
  16262. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16263. .isLook
  16264. ) {
  16265. this.$message.error("上一任务未解锁");
  16266. return;
  16267. }
  16268. } else if (s > this.courseType) {
  16269. if (n > 0) {
  16270. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16271. this.$message.error("上一任务未解锁");
  16272. return;
  16273. }
  16274. } else {
  16275. if (
  16276. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16277. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16278. ].isLook
  16279. ) {
  16280. this.$message.error("上一任务未解锁");
  16281. return;
  16282. }
  16283. }
  16284. }
  16285. }
  16286. if (this.navList[s].task[n].isOpen == true) {
  16287. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16288. return;
  16289. }
  16290. let flag = this.courseType==s;
  16291. this.courseType = s;
  16292. this.navId = i;
  16293. this.taskCount = n;
  16294. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,navId:this.navId}})
  16295. this.navList[this.courseType].task[this.taskCount].isOpen =
  16296. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16297. if (this.IsLookOpen) {
  16298. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16299. this.taskCount
  16300. ].isLook = true;
  16301. this.addCourseState(3);
  16302. }
  16303. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  16304. this.isCloseList[ci].isClose = 0;
  16305. this.isCloseList[ci].isCloseBoolean = false;
  16306. this.$nextTick(()=>{
  16307. setTimeout(()=>{
  16308. setTimeout(()=>{
  16309. this.panToolHeight('tool-'+ci);
  16310. }, 0)
  16311. }, 0)
  16312. })
  16313. }
  16314. this.showType = 7;
  16315. this.isNoHomeWork = false;
  16316. (this.studyJuri = [
  16317. {
  16318. content: "",
  16319. cover: [],
  16320. upVedio: [],
  16321. upFile: [],
  16322. },
  16323. ]),
  16324. (this.radio = []);
  16325. document.scrollingElement.scrollTop = 0;
  16326. // setTimeout(() => {
  16327. // let a = document.getElementById(i);
  16328. // if (a.offsetTop - 110 == 0) {
  16329. // window.scrollTo(0, 0);
  16330. // } else {
  16331. // window.scrollTo(0, a.offsetTop);
  16332. // }
  16333. // }, 0);
  16334. for (var z = 0; z < this.navList.length; z++) {
  16335. for (var q = 0; q < this.navList[z].task.length; q++) {
  16336. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16337. this.navList[z].task[q].tool[w].isTool = false;
  16338. }
  16339. }
  16340. }
  16341. this.selectPz();
  16342. this.getHomeWork();
  16343. this.getCourseDetail(2);
  16344. if(flag){
  16345. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16346. }else{
  16347. 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>`)
  16348. }
  16349. },
  16350. get(i) {
  16351. if (this.IsFollow && this.tType == 2) {
  16352. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16353. return;
  16354. }
  16355. // for(var k=0;k<this.navList.length;k++){
  16356. // this.navList[k].isOpen = false;
  16357. // }
  16358. // this.navList[i].isOpen = true;
  16359. this.navList[i].isOpen = !this.navList[i].isOpen;
  16360. if (this.navList[i].isOpen) {
  16361. this.openTask(i, 0, i + "-0");
  16362. }
  16363. },
  16364. addQuestion() {
  16365. this.answerList.push({
  16366. answerTitle: this.answerQ,
  16367. answer: this.questionAnswer,
  16368. });
  16369. let params = [
  16370. {
  16371. uid: this.userid,
  16372. cid: this.id,
  16373. stage: this.courseType,
  16374. task: this.taskCount,
  16375. tool: this.toolindex,
  16376. content: JSON.stringify(this.answerList),
  16377. type: 3,
  16378. },
  16379. ];
  16380. this.ajax
  16381. .post(this.$store.state.api + "addCourseWorks", params)
  16382. .then((res) => {
  16383. this.$message({
  16384. message: "提交成功",
  16385. type: "success",
  16386. });
  16387. this.answerList = [];
  16388. this.answerDialogVisible = false;
  16389. this.selectStudent();
  16390. this.selectSWorks();
  16391. this.selectSLook();
  16392. })
  16393. .catch((err) => {
  16394. this.$message.error("提交失败");
  16395. console.error(err);
  16396. });
  16397. },
  16398. addQuestionTeacher() {
  16399. this.answerList.push({
  16400. answerTitle: this.answerQ,
  16401. answer: this.questionAnswer,
  16402. });
  16403. let params = [
  16404. {
  16405. uid: this.sStudent.userid,
  16406. cid: this.id,
  16407. stage: this.courseType,
  16408. task: this.taskCount,
  16409. tool: this.toolindex,
  16410. content: JSON.stringify(this.answerList),
  16411. type: 3,
  16412. ateacher: this.userid,
  16413. },
  16414. ];
  16415. this.ajax
  16416. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16417. .then((res) => {
  16418. this.$message({
  16419. message: "提交成功",
  16420. type: "success",
  16421. });
  16422. this.answerList = [];
  16423. this.questionAnswer = "";
  16424. this.answerDialogVisibleTeacher = false;
  16425. this.selectStudent();
  16426. this.selectSWorks();
  16427. this.selectSLook();
  16428. })
  16429. .catch((err) => {
  16430. this.$message.error("提交失败");
  16431. console.error(err);
  16432. });
  16433. },
  16434. refreshCourse() {
  16435. // window.location.reload();
  16436. this.navList = [];
  16437. this.getCourseDetail(1);
  16438. },
  16439. getCourseDetail(type, gindex) {
  16440. let loading;
  16441. if (type != 2) {
  16442. loading = this.$loading.service({
  16443. background: "rgba(255, 255, 255, 0.7)",
  16444. target: document.querySelector(".student_table"),
  16445. });
  16446. }
  16447. this.downLoading = false
  16448. // this.navList[0].isOpen = false;
  16449. // this.navList[this.courseType].isOpen = true;
  16450. // this.courseType = this.courseTypeLine;
  16451. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16452. let params = {
  16453. courseId: this.id,
  16454. };
  16455. this.ajax
  16456. .get(this.$store.state.api + "selectCourseDetail3", params)
  16457. .then((res) => {
  16458. if (type != 2) {
  16459. loading.close();
  16460. if (
  16461. this.courseType >
  16462. JSON.parse(res.data[0][0].chapters).length - 1
  16463. ) {
  16464. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16465. }
  16466. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16467. .chapterInfo[0].taskJson;
  16468. var b = [
  16469. "AVI",
  16470. "NAVI",
  16471. "MPEG",
  16472. "ASF",
  16473. "MOV",
  16474. "WMV",
  16475. "3GP",
  16476. "RM",
  16477. "RMVB",
  16478. "FLV",
  16479. "F4V",
  16480. "H.264",
  16481. "H.265",
  16482. "REAL VIDEO",
  16483. "MKV",
  16484. "WebM",
  16485. "HDDVD",
  16486. "MP4",
  16487. "MPG",
  16488. "M4V",
  16489. "MGV",
  16490. "OGV",
  16491. "QTM",
  16492. "STR",
  16493. "AMC",
  16494. "DVX",
  16495. "EVO",
  16496. "DAT",
  16497. "OGG",
  16498. "OGM",
  16499. "MP3",
  16500. ];
  16501. let _chapterData = [];
  16502. for (var i = 0; i < a.length; i++) {
  16503. var c = a[i].chapterData;
  16504. this.vedio[i] = [];
  16505. this.textList[i] = [];
  16506. this.lineList[i] = [];
  16507. this.chapToolList[i] = [];
  16508. this.file[i] = [];
  16509. this.fileC[i] = [];
  16510. _chapterData[i] = c.filter((el) => {
  16511. return el.type != 12;
  16512. });
  16513. this.fileC[i] = c.filter((el) => {
  16514. return el.type == 12;
  16515. });
  16516. // else if (c[j].type == 12) {
  16517. // this.fileC[i].push(c[j]);
  16518. // }
  16519. for (var j = 0; j < c.length; j++) {
  16520. if (c[j].type == 7) {
  16521. this.chapToolList[i].push(c[j]);
  16522. } else if (c[j].type == 8 || c[j].type == 14) {
  16523. this.lineList[i].push(c[j]);
  16524. } else if (c[j].type == 6) {
  16525. this.textList[i].push(c[j]);
  16526. } else {
  16527. if (
  16528. b.indexOf(
  16529. c[j].url
  16530. .split(".")
  16531. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16532. ) != -1
  16533. ) {
  16534. this.vedio[i].push(c[j]);
  16535. } else {
  16536. this.file[i].push(c[j]);
  16537. }
  16538. }
  16539. }
  16540. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16541. d.sources[0].src =
  16542. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16543. this.playerO[i] = d;
  16544. }
  16545. this.courseDetail = res.data[0][0];
  16546. this.tcid = this.arrayToArray(
  16547. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16548. this.tcid2 ? this.tcid2.split(",") : []
  16549. ).join(",");
  16550. this.evalua = res.data[0][0].evaId;
  16551. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16552. this.courseType
  16553. ];
  16554. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16555. if (this.tcid && res.data[1].length) {
  16556. let _inviteA = [];
  16557. for (var ik = 0; ik < res.data[1].length; ik++) {
  16558. _inviteA.push({
  16559. cid: res.data[1][ik].classid,
  16560. ic: res.data[1][ik].code,
  16561. });
  16562. }
  16563. for (var ik = 0; ik < _inviteA.length; ik++) {
  16564. if (
  16565. this.arrayToArray(
  16566. _inviteA[ik].cid.split(","),
  16567. this.tcid.split(",")
  16568. ).length
  16569. ) {
  16570. this.inviteCode = _inviteA[ik].ic;
  16571. break;
  16572. }
  16573. }
  16574. }
  16575. for (var l = 0; l < this.chapInfoList.length; l++) {
  16576. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16577. for (var m = 0; m < w.length; m++) {
  16578. w[m].id = l + "-" + m;
  16579. }
  16580. }
  16581. let taskCount = 0;
  16582. if (
  16583. _chapterData[taskCount].length &&
  16584. _chapterData[taskCount][0].type == 2
  16585. ) {
  16586. this.showType = 0;
  16587. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  16588. } else {
  16589. if (_chapterData[taskCount].length > 0) {
  16590. let _url = _chapterData[taskCount][0].url;
  16591. if (
  16592. _chapterData[taskCount][0].type == 8 ||
  16593. _chapterData[taskCount][0].type == 14
  16594. ) {
  16595. this.showType = 2;
  16596. if (
  16597. _url.indexOf("https://") == -1 &&
  16598. _url.indexOf("http://") == -1
  16599. ) {
  16600. _url = "https://" + _url;
  16601. }
  16602. this.pptImgUrl1 = _url;
  16603. } else if (_chapterData[taskCount][0].type == 3) {
  16604. if (
  16605. _url
  16606. .split(".")
  16607. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16608. ) {
  16609. this.showType = 3;
  16610. this.pptImgUrl1 = _url;
  16611. } else if (
  16612. this.isAssetTypeAnImage(
  16613. _url
  16614. .split(".")
  16615. [_url.split(".").length - 1].toLocaleLowerCase()
  16616. )
  16617. ) {
  16618. this.showType = 4;
  16619. this.pptImgUrl1 = _url;
  16620. } else {
  16621. this.showType = 2;
  16622. this.pptImgUrl1 =
  16623. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16624. encodeURIComponent(_url);
  16625. }
  16626. } else if (_chapterData[taskCount][0].type == 13) {
  16627. this.showType = 4;
  16628. this.pptImgUrl1 = _url;
  16629. } else if (_chapterData[taskCount][0].type == 6) {
  16630. this.showType = 1;
  16631. this.text = this.textList[taskCount][0];
  16632. }
  16633. }
  16634. }
  16635. this.isClickNav = 0;
  16636. if (
  16637. !_chapterData[taskCount].length ||
  16638. _chapterData[taskCount][0].type == 12
  16639. ) {
  16640. this.isClickNav = "";
  16641. this.showType = "";
  16642. }
  16643. this.vChapterData = _chapterData;
  16644. } else {
  16645. this.showType = 0;
  16646. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16647. .chapterInfo[0].taskJson;
  16648. var b = [
  16649. "AVI",
  16650. "NAVI",
  16651. "MPEG",
  16652. "ASF",
  16653. "MOV",
  16654. "WMV",
  16655. "3GP",
  16656. "RM",
  16657. "RMVB",
  16658. "FLV",
  16659. "F4V",
  16660. "H.264",
  16661. "H.265",
  16662. "REAL VIDEO",
  16663. "MKV",
  16664. "WebM",
  16665. "HDDVD",
  16666. "MP4",
  16667. "MPG",
  16668. "M4V",
  16669. "MGV",
  16670. "OGV",
  16671. "QTM",
  16672. "STR",
  16673. "AMC",
  16674. "DVX",
  16675. "EVO",
  16676. "DAT",
  16677. "OGG",
  16678. "OGM",
  16679. "MP3",
  16680. ];
  16681. let _chapterData = [];
  16682. for (var i = 0; i < a.length; i++) {
  16683. var c = a[i].chapterData;
  16684. this.vedio[i] = [];
  16685. this.textList[i] = [];
  16686. this.lineList[i] = [];
  16687. this.chapToolList[i] = [];
  16688. this.file[i] = [];
  16689. this.fileC[i] = [];
  16690. _chapterData[i] = c.filter((el) => {
  16691. return el.type != 12;
  16692. });
  16693. this.fileC[i] = c.filter((el) => {
  16694. return el.type == 12;
  16695. });
  16696. for (var j = 0; j < c.length; j++) {
  16697. if (c[j].type == 7) {
  16698. this.chapToolList[i].push(c[j]);
  16699. } else if (c[j].type == 8 || c[j].type == 14) {
  16700. this.lineList[i].push(c[j]);
  16701. } else if (c[j].type == 6) {
  16702. this.textList[i].push(c[j]);
  16703. } else {
  16704. if (
  16705. b.indexOf(
  16706. c[j].url
  16707. .split(".")
  16708. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16709. ) != -1
  16710. ) {
  16711. this.vedio[i].push(c[j]);
  16712. } else {
  16713. this.file[i].push(c[j]);
  16714. }
  16715. }
  16716. }
  16717. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16718. d.sources[0].src =
  16719. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16720. this.playerO[i] = d;
  16721. }
  16722. let taskCount = 0;
  16723. if (
  16724. _chapterData[taskCount].length &&
  16725. _chapterData[taskCount][0].type == 2
  16726. ) {
  16727. this.showType = 0;
  16728. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  16729. } else {
  16730. if (_chapterData[taskCount].length > 0) {
  16731. let _url = _chapterData[taskCount][0].url;
  16732. if (
  16733. _chapterData[taskCount][0].type == 8 ||
  16734. _chapterData[taskCount][0].type == 14
  16735. ) {
  16736. this.showType = 2;
  16737. if (
  16738. _url.indexOf("https://") == -1 &&
  16739. _url.indexOf("http://") == -1
  16740. ) {
  16741. _url = "https://" + _url;
  16742. }
  16743. this.pptImgUrl1 = _url;
  16744. } else if (_chapterData[taskCount][0].type == 3) {
  16745. if (
  16746. _url
  16747. .split(".")
  16748. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16749. ) {
  16750. this.showType = 3;
  16751. this.pptImgUrl1 = _url;
  16752. } else if (
  16753. this.isAssetTypeAnImage(
  16754. _url
  16755. .split(".")
  16756. [_url.split(".").length - 1].toLocaleLowerCase()
  16757. )
  16758. ) {
  16759. this.showType = 4;
  16760. this.pptImgUrl1 = _url;
  16761. } else {
  16762. this.showType = 2;
  16763. this.pptImgUrl1 =
  16764. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16765. encodeURIComponent(_url);
  16766. }
  16767. } else if (_chapterData[taskCount][0].type == 13) {
  16768. this.showType = 4;
  16769. this.pptImgUrl1 = _url;
  16770. } else if (_chapterData[taskCount][0].type == 6) {
  16771. this.showType = 1;
  16772. this.text = this.textList[taskCount][0];
  16773. }
  16774. }
  16775. }
  16776. this.isClickNav = 0;
  16777. if (
  16778. !_chapterData[taskCount].length ||
  16779. _chapterData[taskCount][0].type == 12
  16780. ) {
  16781. this.isClickNav = "";
  16782. this.showType = "";
  16783. }
  16784. this.vChapterData = _chapterData;
  16785. this.$forceUpdate();
  16786. }
  16787. // else {
  16788. // this.courseDetail = res.data[0][0];
  16789. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16790. // }
  16791. let _this = this;
  16792. if (_this.timer) {
  16793. clearInterval(_this.timer);
  16794. _this.timer = null;
  16795. }
  16796. if (_this.tcid) {
  16797. _this.getCourseGroup(gindex);
  16798. } else {
  16799. _this.selectSWorks(gindex);
  16800. }
  16801. _this.selectStudent();
  16802. _this.selectSLook();
  16803. _this.getPick();
  16804. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16805. _this.setCTask();
  16806. }
  16807. if (_this.dialogVisibleGroup) {
  16808. _this.groupJson =
  16809. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16810. _this.taskCount
  16811. ].toolChoose[_this.toolindex].groupJson;
  16812. }
  16813. _this.$nextTick(() => {
  16814. setTimeout(() => {
  16815. _this.checkEva();
  16816. }, 1000);
  16817. });
  16818. _this.timer = setInterval(function () {
  16819. // _this.getCourseDetail(2);
  16820. if (_this.tcid) {
  16821. _this.getCourseGroup(gindex);
  16822. } else {
  16823. _this.selectSWorks(gindex);
  16824. }
  16825. _this.selectStudent();
  16826. _this.selectSLook();
  16827. _this.getPick();
  16828. _this.getSplitScreenData();//获取分屏数据
  16829. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16830. _this.setCTask();
  16831. }
  16832. if (_this.dialogVisibleGroup) {
  16833. _this.groupJson =
  16834. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16835. _this.taskCount
  16836. ].toolChoose[_this.toolindex].groupJson;
  16837. }
  16838. if (_this.tType == 4 || _this.ispzType == 4) {
  16839. _this.selectPz();
  16840. }
  16841. }, 5000);
  16842. _this.$nextTick(function () {
  16843. setTimeout(() => {
  16844. // var a =
  16845. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16846. // document.getElementsByClassName("vedioList")[0].style.height =
  16847. // a + "px";
  16848. // document.getElementsByClassName("navBox")[0].style.height =
  16849. // a - 40 + "px";
  16850. // if (_this.vedio[_this.taskCount].length > 0) {
  16851. // _this.vedioTime = [];
  16852. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16853. // _this.vedioTime[i] = document.getElementsByClassName(
  16854. // "vjs-duration-display"
  16855. // )[i].textContent;
  16856. // }
  16857. // }
  16858. }, 1000);
  16859. });
  16860. })
  16861. .catch((err) => {
  16862. loading.close();
  16863. console.error(err);
  16864. });
  16865. },
  16866. getCourseGroup(gindex) {
  16867. let params = {
  16868. cid: this.id,
  16869. classid: this.tcid ? this.tcid : "1",
  16870. };
  16871. this.ajax
  16872. .get(this.$store.state.api + "getCourseGroup", params)
  16873. .then((res) => {
  16874. if (res.data && res.data[0].length) {
  16875. if (!this.isGroup) {
  16876. let courseGroup = JSON.parse(res.data[0][0].group);
  16877. courseGroup.group = courseGroup.group.filter((el) => {
  16878. el.works = [];
  16879. return el;
  16880. });
  16881. if (courseGroup.isopen == 2) {
  16882. this.isGroup = false;
  16883. this.selectSWorks(gindex);
  16884. return;
  16885. }
  16886. this.courseGroup = courseGroup;
  16887. let groupPerson = res.data[1];
  16888. let group = JSON.parse(res.data[0][0].group).group;
  16889. let courseGroupStudent = {};
  16890. let courseGroupStudentUid = {};
  16891. for (var i = 0; i < group.length; i++) {
  16892. courseGroupStudent[group[i].id] = [];
  16893. courseGroupStudentUid[group[i].id] = [];
  16894. for (var j = 0; j < groupPerson.length; j++) {
  16895. if (groupPerson[j].groupCid == group[i].id) {
  16896. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16897. courseGroupStudentUid[group[i].id].push(
  16898. groupPerson[j].userid
  16899. );
  16900. }
  16901. }
  16902. }
  16903. this.courseGroupStudent = courseGroupStudent;
  16904. this.courseGroupStudentUid = courseGroupStudentUid;
  16905. }
  16906. if (this.courseGroup.isopen == 2) {
  16907. this.isGroup = false;
  16908. } else {
  16909. this.isGroup = true;
  16910. }
  16911. this.selectSWorks(gindex);
  16912. } else {
  16913. this.selectSWorks(gindex);
  16914. this.isGroup = false;
  16915. }
  16916. })
  16917. .catch((err) => {
  16918. // this.$message.error("网络不佳");
  16919. console.error(err);
  16920. });
  16921. },
  16922. setOperationTime() {
  16923. let _this = this;
  16924. if (_this.opertimer) {
  16925. clearInterval(_this.opertimer);
  16926. _this.opertimer = null;
  16927. }
  16928. _this.opertimer = setInterval(() => {
  16929. _this.setoTime("600");
  16930. }, 600000);
  16931. },
  16932. setoTime(time) {
  16933. let params = [
  16934. {
  16935. uid: this.userid,
  16936. cid: this.id,
  16937. type: "2",
  16938. time: time,
  16939. },
  16940. ];
  16941. this.ajax
  16942. .post(this.$store.state.api + "addOperationTimeT2", params)
  16943. .then((res) => {})
  16944. .catch((err) => {
  16945. console.error(err);
  16946. });
  16947. },
  16948. addPz(type, content) {
  16949. if (type == "1" && this.pzConText == "") {
  16950. this.$message.error("评论不能为空!");
  16951. return;
  16952. }
  16953. let params = [
  16954. {
  16955. cid: this.id,
  16956. uid: this.userid,
  16957. s: this.courseType,
  16958. t: this.taskCount,
  16959. c: type == "1" ? this.pzConText : content,
  16960. type: type,
  16961. },
  16962. ];
  16963. this.ajax
  16964. .post(this.$store.state.api + "addPz2", params)
  16965. .then((res) => {
  16966. this.$message({
  16967. message: "添加成功",
  16968. type: "success",
  16969. });
  16970. this.pzConText = "";
  16971. this.addPzDialog = false;
  16972. this.selectPz();
  16973. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  16974. })
  16975. .catch((err) => {
  16976. this.$message.error("添加失败");
  16977. console.error(err);
  16978. });
  16979. },
  16980. setReplyIndex(id, i) {
  16981. this.replyIndex = i;
  16982. this.replyPid = id;
  16983. this.replyDialogVisible = true;
  16984. },
  16985. addHf() {
  16986. if (this.reply == "") {
  16987. this.$message.error("回复不能为空!");
  16988. return;
  16989. }
  16990. let params = [
  16991. {
  16992. cid: this.id,
  16993. uid: this.userid,
  16994. s: this.courseType,
  16995. t: this.taskCount,
  16996. type: "1",
  16997. ct: 2,
  16998. pid: this.replyPid,
  16999. c: this.reply,
  17000. },
  17001. ];
  17002. this.ajax
  17003. .post(this.$store.state.api + "addHf", params)
  17004. .then((res) => {
  17005. this.reply = "";
  17006. this.$message({
  17007. message: "回复成功",
  17008. type: "success",
  17009. });
  17010. this.replyDialogVisible = false;
  17011. this.selectPz();
  17012. })
  17013. .catch((err) => {
  17014. this.$message.error("回复失败");
  17015. console.error(err);
  17016. });
  17017. },
  17018. deletePz(id) {
  17019. this.$confirm("确定删除此评论吗?", "提示", {
  17020. confirmButtonText: "确定",
  17021. cancelButtonText: "取消",
  17022. type: "warning",
  17023. })
  17024. .then(() => {
  17025. let params = [
  17026. {
  17027. id: id,
  17028. },
  17029. ];
  17030. this.ajax
  17031. .post(this.$store.state.api + "deletePz", params)
  17032. .then((res) => {
  17033. this.$message({
  17034. message: "删除成功",
  17035. type: "success",
  17036. });
  17037. this.selectPz();
  17038. })
  17039. .catch((err) => {
  17040. this.$message.error("网络异常");
  17041. console.error(err);
  17042. });
  17043. })
  17044. .catch(() => {});
  17045. },
  17046. deleteReply(id) {
  17047. this.$confirm("确定删除此回复吗?", "提示", {
  17048. confirmButtonText: "确定",
  17049. cancelButtonText: "取消",
  17050. type: "warning",
  17051. })
  17052. .then(() => {
  17053. let params = [
  17054. {
  17055. id: id,
  17056. },
  17057. ];
  17058. this.ajax
  17059. .post(this.$store.state.api + "deleteReply", params)
  17060. .then((res) => {
  17061. this.$message({
  17062. message: "删除成功",
  17063. type: "success",
  17064. });
  17065. this.selectPz();
  17066. })
  17067. .catch((err) => {
  17068. this.$message.error("网络异常");
  17069. console.error(err);
  17070. });
  17071. })
  17072. .catch(() => {});
  17073. },
  17074. setPz() {
  17075. if (this.ispzType == 4) {
  17076. this.ispzType = 0;
  17077. this.pzDialog = false;
  17078. return;
  17079. }
  17080. this.ispzType = 4;
  17081. this.pzDialog = true;
  17082. this.selectPz();
  17083. },
  17084. selectPz() {
  17085. let params = {
  17086. cid: this.id,
  17087. s: this.courseType,
  17088. t: this.taskCount,
  17089. type: this.pzStype,
  17090. uid: this.userid,
  17091. };
  17092. this.ajax
  17093. .get(this.$store.state.api + "selectPzListType", params)
  17094. .then((res) => {
  17095. this.pzList = res.data[0];
  17096. var a = res.data[1];
  17097. for (var i = 0; i < a.length; i++) {
  17098. for (var j = 0; j < this.pzList.length; j++) {
  17099. if (!this.pzList[j].hfList) {
  17100. this.pzList[j].hfList = [];
  17101. }
  17102. if (a[i].pid == this.pzList[j].id) {
  17103. this.pzList[j].hfList.push(a[i]);
  17104. }
  17105. }
  17106. }
  17107. })
  17108. .catch((err) => {
  17109. console.error(err);
  17110. });
  17111. },
  17112. // selectHf() {
  17113. // let params = {
  17114. // cid: this.id,
  17115. // s: this.courseType,
  17116. // t: this.taskCount,
  17117. // };
  17118. // this.ajax
  17119. // .get(this.$store.state.api + "selectHfList", params)
  17120. // .then((res) => {
  17121. // var a = res.data[0];
  17122. // for (var i = 0; i < a.length; i++) {
  17123. // for (var j = 0; j < this.pzList.length; j++) {
  17124. // if (!this.pzList[i].hfList) {
  17125. // this.pzList[i].hfList = [];
  17126. // }
  17127. // if (a[i].pid == this.pzList[j].id) {
  17128. // this.pzList[i].hfList.push(a[i]);
  17129. // }
  17130. // }
  17131. // }
  17132. // })
  17133. // .catch((err) => {
  17134. // console.error(err);
  17135. // });
  17136. // },
  17137. updateSLook() {
  17138. let params = {
  17139. sopen: this.sIsOpen == false ? 1 : 2,
  17140. cid: this.id,
  17141. };
  17142. this.ajax
  17143. .get(this.$store.state.api + "updateCourseSLook", params)
  17144. .then((res) => {
  17145. if (this.sIsOpen == true) {
  17146. this.$message({
  17147. message: "权限设置成功",
  17148. type: "success",
  17149. });
  17150. } else {
  17151. this.$message({
  17152. message: "权限关闭成功",
  17153. type: "success",
  17154. });
  17155. }
  17156. })
  17157. .catch((err) => {
  17158. console.error(err);
  17159. });
  17160. },
  17161. updateFollow() {
  17162. let params = [
  17163. {
  17164. sopen: this.IsFollow == false ? 1 : 2,
  17165. cid: this.id,
  17166. },
  17167. ];
  17168. this.ajax
  17169. .post(this.$store.state.api + "updateCourseFollow", params)
  17170. .then((res) => {
  17171. if (this.IsFollow == true) {
  17172. this.$message({
  17173. message: "开启成功",
  17174. type: "success",
  17175. });
  17176. } else {
  17177. this.$message({
  17178. message: "关闭成功",
  17179. type: "success",
  17180. });
  17181. }
  17182. this.setCTask();
  17183. })
  17184. .catch((err) => {
  17185. console.error(err);
  17186. });
  17187. },
  17188. setCTask() {
  17189. let params = [
  17190. {
  17191. sopen: this.courseType + "-" + this.taskCount,
  17192. cid: this.id,
  17193. },
  17194. ];
  17195. this.ajax
  17196. .post(this.$store.state.api + "updateCourseFollowC", params)
  17197. .then((res) => {})
  17198. .catch((err) => {
  17199. console.error(err);
  17200. });
  17201. },
  17202. updateLookOpen() {
  17203. let params = [
  17204. {
  17205. sopen: this.IsLookOpen == false ? 1 : 2,
  17206. cid: this.id,
  17207. },
  17208. ];
  17209. this.ajax
  17210. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17211. .then((res) => {
  17212. if (this.IsLookOpen == true) {
  17213. // if (this.courseType != 0 && this.taskCount != 0) {
  17214. // this.openTask(0, 0, "0-0");
  17215. // }
  17216. this.$message({
  17217. message: "权限设置成功",
  17218. type: "success",
  17219. });
  17220. } else {
  17221. this.$message({
  17222. message: "权限关闭成功",
  17223. type: "success",
  17224. });
  17225. }
  17226. this.getCourseState(2);
  17227. })
  17228. .catch((err) => {
  17229. console.error(err);
  17230. });
  17231. },
  17232. selectSLook() {
  17233. let params = {
  17234. cid: this.id,
  17235. };
  17236. this.ajax
  17237. .get(this.$store.state.api + "selectCourseSLook", params)
  17238. .then((res) => {
  17239. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17240. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17241. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17242. if (!this.IsLookOpen) {
  17243. this.setNavList();
  17244. } else {
  17245. this.getCourseState(1);
  17246. }
  17247. if ((this.IsFollow && this.tType == 2)) {
  17248. this.setContent2(false);
  17249. let _followC = res.data[0][0].followC.split("-");
  17250. if (
  17251. this.courseType != _followC[0] ||
  17252. this.taskCount != _followC[1]
  17253. ) {
  17254. this.navList[this.courseType].isOpen = false;
  17255. this.courseType = _followC[0];
  17256. this.navList[this.courseType].isOpen = true;
  17257. this.taskCount = parseInt(_followC[1]);
  17258. this.navId = res.data[0][0].followC;
  17259. document.scrollingElement.scrollTop = 0;
  17260. this.getCourseDetail(2);
  17261. }
  17262. }
  17263. })
  17264. .catch((err) => {
  17265. console.error(err);
  17266. });
  17267. },
  17268. setNavList() {
  17269. if (this.navList.length == 0) {
  17270. this.navList = [];
  17271. var copyList = [];
  17272. for (var l = 0; l < this.chapInfoList.length; l++) {
  17273. var q = this.chapInfoList[l].dyName;
  17274. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17275. var e;
  17276. copyList.push({
  17277. dyName: q,
  17278. isOpen: l === 0 ? true : false,
  17279. task: [],
  17280. });
  17281. for (var r = 0; r < w.length; r++) {
  17282. e = w[r].task;
  17283. if (this.chapInfoList[l].easy == 1) {
  17284. copyList[l].task.push({
  17285. taskName: q,
  17286. id: l + "-" + r,
  17287. isLook: w[r].isLook,
  17288. isOpen: r === 0 ? true : false,
  17289. tool: [],
  17290. });
  17291. } else {
  17292. copyList[l].task.push({
  17293. taskName: e,
  17294. id: l + "-" + r,
  17295. isLook: w[r].isLook,
  17296. isOpen: r === 0 ? true : false,
  17297. tool: [],
  17298. });
  17299. }
  17300. var t = w[r].toolChoose;
  17301. for (var k = 0; k < t.length; k++) {
  17302. var tool = t[k].tool[0];
  17303. copyList[l].task[r].tool.push({
  17304. tool: tool,
  17305. isTool: false,
  17306. });
  17307. }
  17308. // this.navId = this.navId ? this.navId : l + "-" + r;
  17309. // this.navId = l + "-" + r;
  17310. }
  17311. }
  17312. this.navList = copyList;
  17313. this.navList[0].isOpen = false;
  17314. this.navList[this.courseType].isOpen = true;
  17315. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17316. } else {
  17317. this.setNavList2();
  17318. }
  17319. },
  17320. setNavList2() {
  17321. for (var l = 0; l < this.chapInfoList.length; l++) {
  17322. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17323. for (var r = 0; r < w.length; r++) {
  17324. this.navList[l].task[r].isLook = w[r].isLook;
  17325. }
  17326. }
  17327. if (
  17328. this.IsLookOpen &&
  17329. !this.navList[this.courseType].task[this.taskCount].isLook
  17330. ) {
  17331. this.openTask(0, 0, "0-0");
  17332. }
  17333. this.$forceUpdate();
  17334. },
  17335. getCourseState(type) {
  17336. let params = {
  17337. cid: this.id,
  17338. };
  17339. this.ajax
  17340. .get(this.$store.state.api + "getCourseState", params)
  17341. .then((res) => {
  17342. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17343. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17344. this.setNavList();
  17345. this.$forceUpdate();
  17346. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17347. this.addCourseState(2);
  17348. } else {
  17349. this.addCourseState(1);
  17350. }
  17351. })
  17352. .catch((err) => {
  17353. console.error(err);
  17354. });
  17355. },
  17356. addCourseState(type) {
  17357. let _state = this.chapInfoList;
  17358. // this.courseType this.taskCount
  17359. if (type == 1 || type == 2) {
  17360. for (var i = 0; i < _state.length; i++) {
  17361. let el = _state[i].chapterInfo[0].taskJson;
  17362. for (var j = 0; j < el.length; j++) {
  17363. // if (i == 0 && j == 0) {
  17364. // el[j].isLook = true;
  17365. // } else {
  17366. // el[j].isLook = false;
  17367. // }
  17368. if (
  17369. this.courseType > i ||
  17370. (this.courseType == i && this.taskCount + 1 > j)
  17371. ) {
  17372. el[j].isLook = true;
  17373. } else {
  17374. el[j].isLook = false;
  17375. }
  17376. }
  17377. }
  17378. }
  17379. let params = [
  17380. {
  17381. cid: this.id,
  17382. state: JSON.stringify(_state),
  17383. },
  17384. ];
  17385. this.ajax
  17386. .post(
  17387. this.$store.state.api +
  17388. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17389. params
  17390. )
  17391. .then((res) => {
  17392. if (this.IsLookOpen) {
  17393. this.setNavList();
  17394. }
  17395. if (type == 3 && type == 2) {
  17396. this.getCourseState(1);
  17397. }
  17398. })
  17399. .catch((err) => {
  17400. console.error(err);
  17401. });
  17402. },
  17403. getHomeWork() {
  17404. let params = {
  17405. cid: this.id,
  17406. stage: this.courseType,
  17407. task: this.taskCount,
  17408. uid: this.userid,
  17409. };
  17410. this.ajax
  17411. .get(this.$store.state.api + "selectWork", params)
  17412. .then((res) => {
  17413. if (res.data[0].length > 0) {
  17414. this.studyJuri = JSON.parse(res.data[0][0].content);
  17415. this.isNoHomeWork = true;
  17416. }
  17417. })
  17418. .catch((err) => {
  17419. console.error(err);
  17420. });
  17421. },
  17422. isAssetTypeAnImage(ext) {
  17423. return (
  17424. [
  17425. "png",
  17426. "jpg",
  17427. "jpeg",
  17428. "bmp",
  17429. "gif",
  17430. "webp",
  17431. "psd",
  17432. "svg",
  17433. "tiff",
  17434. ].indexOf(ext) !== -1
  17435. );
  17436. },
  17437. switchVideo(media) {
  17438. this.playerO = {};
  17439. this.playerOptions.poster = "";
  17440. this.playerOptions.sources[0].src = media;
  17441. this.playerO = this.playerOptions;
  17442. },
  17443. onPlayerPlay() {},
  17444. onPlayerTimeupdate(player) {
  17445. let gklog = player.cache_.currentTime; //当前播放的秒数
  17446. let a = player.cache_.duration; //视频的总时长
  17447. let gklog2 = parseInt(gklog);
  17448. // if(gklog2 == '3'){
  17449. // player.pause()
  17450. // setTimeout(()=>{
  17451. // player.currentTime(gklog2+1)
  17452. // player.play()
  17453. // },1000)
  17454. // }
  17455. console.log(" onPlayerTimeupdate!", gklog);
  17456. console.log(" onPlayerTimeupdate!", gklog2);
  17457. },
  17458. lookVedio(u, i) {
  17459. this.isClickNav = "";
  17460. // this.playerOptions.sources[0].src = u;
  17461. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17462. d.sources[0].src = u;
  17463. this.playerO[0] = d;
  17464. this.showType = 0;
  17465. // this.isClickNav = "video" + i;
  17466. this.isClickNav = i;
  17467. this.$forceUpdate();
  17468. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17469. },
  17470. lookText(i, t) {
  17471. this.isClickNav = "";
  17472. // this.text = this.textList[i][t];
  17473. this.text = this.vChapterData[i][t];
  17474. // this.dialogVisible1 = true;
  17475. this.showType = 1;
  17476. // this.isClickNav = "text" + t;
  17477. this.isClickNav = t;
  17478. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17479. },
  17480. lookTools(i, t) {
  17481. this.chapTools = this.chapToolList[i][t];
  17482. this.dialogVisible2 = true;
  17483. },
  17484. async openFile(f) {
  17485. this.pptImgUrl = "";
  17486. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17487. if (
  17488. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17489. -1
  17490. ) {
  17491. let _uuurl = await this.checkLink(f);
  17492. console.log(_uuurl)
  17493. this.pptImgUrl =
  17494. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17495. this.showPDF = false;
  17496. this.dialogVisible3 = true;
  17497. } else if (
  17498. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17499. ) {
  17500. this.pptImgUrl = f;
  17501. this.showPDF = true;
  17502. this.dialogVisible3 = true;
  17503. }
  17504. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17505. },
  17506. openTable(f) {
  17507. this.tableJson = JSON.parse(f.works);
  17508. this.dialogVisibleTable2 = true;
  17509. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17510. },
  17511. openWord(f) {
  17512. this.tableJson = JSON.parse(f.works);
  17513. this.dialogVisibleTable3 = true;
  17514. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17515. },
  17516. doUrl(url, i) {
  17517. this.isClickNav = "";
  17518. this.pptImgUrl1 = "";
  17519. this.showType = 2;
  17520. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17521. url = "https://" + url;
  17522. }
  17523. this.pptImgUrl1 = "";
  17524. setTimeout(() => {
  17525. this.pptImgUrl1 = url;
  17526. }, 500);
  17527. // this.isClickNav = "line" + i;
  17528. this.isClickNav = i;
  17529. this.$forceUpdate();
  17530. },
  17531. checkPhoto(f, i) {
  17532. this.showType = 4;
  17533. this.pptImgUrl1 = f.url;
  17534. this.isClickNav = i;
  17535. this.$forceUpdate();
  17536. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17537. },
  17538. async downFile(f, i) {
  17539. this.isClickNav = "";
  17540. this.pptImgUrl1 = "";
  17541. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17542. if (
  17543. a.indexOf(
  17544. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17545. ) != -1
  17546. ) {
  17547. let _uuurl = await this.checkLink(f.url);
  17548. console.log(_uuurl)
  17549. this.pptImgUrl1 =
  17550. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17551. // this.dialogVisible3 = true;
  17552. this.showType = 2;
  17553. } else if (
  17554. this.isAssetTypeAnImage(
  17555. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17556. )
  17557. ) {
  17558. this.showType = 4;
  17559. this.pptImgUrl1 = f.url;
  17560. } else if (
  17561. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17562. "PDF"
  17563. ) {
  17564. this.pptImgUrl1 = f.url;
  17565. // this.dialogVisible3 = true;
  17566. this.showType = 3;
  17567. } else {
  17568. window.open(this.file[i].url);
  17569. }
  17570. // this.isClickNav = "word" + i;
  17571. this.isClickNav = i;
  17572. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17573. },
  17574. downFileList(i) {
  17575. window.open(this.noImgList[i].url);
  17576. },
  17577. openAddWork() {
  17578. this.dialogVisible = true;
  17579. },
  17580. addBzWorks() {
  17581. let params = [
  17582. {
  17583. uid: this.userid,
  17584. cid: this.id,
  17585. stage: this.courseType,
  17586. task: this.taskCount,
  17587. tool: this.toolindex,
  17588. content: JSON.stringify(this.eScore),
  17589. type: 6,
  17590. },
  17591. ];
  17592. this.ajax
  17593. .post(this.$store.state.api + "addCourseWorks", params)
  17594. .then((res) => {
  17595. this.$message({
  17596. message: "提交成功",
  17597. type: "success",
  17598. });
  17599. this.eScore = { eBzText: "", eStar: [] };
  17600. this.studentEvalDialogVisible = false;
  17601. this.selectSWorks();
  17602. })
  17603. .catch((err) => {
  17604. this.$message.error("提交失败");
  17605. console.error(err);
  17606. });
  17607. },
  17608. addBzWorksTeacher() {
  17609. let params = [
  17610. {
  17611. uid: this.sStudent.userid,
  17612. cid: this.id,
  17613. stage: this.courseType,
  17614. task: this.taskCount,
  17615. tool: this.toolindex,
  17616. content: JSON.stringify(this.eScore),
  17617. type: 6,
  17618. },
  17619. ];
  17620. this.ajax
  17621. .post(this.$store.state.api + "addCourseWorks", params)
  17622. .then((res) => {
  17623. this.$message({
  17624. message: "提交成功",
  17625. type: "success",
  17626. });
  17627. this.eScore = { eBzText: "", eStar: [] };
  17628. this.studentEvalDialogVisibleTeacher = false;
  17629. this.selectSWorks();
  17630. })
  17631. .catch((err) => {
  17632. this.$message.error("提交失败");
  17633. console.error(err);
  17634. });
  17635. },
  17636. addStudentAsk() {
  17637. if (!this.radio.length) {
  17638. this.$message.error("请选择选项");
  17639. return;
  17640. }
  17641. for (var i = 0; i < this.askJson.askCount; i++) {
  17642. if (
  17643. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17644. (this.radio[i] !== 0 && !this.radio[i])
  17645. ) {
  17646. this.$message.error("请选择选项");
  17647. return;
  17648. }
  17649. }
  17650. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17651. let params = [
  17652. {
  17653. uid: this.userid,
  17654. cid: this.id,
  17655. stage: this.courseType,
  17656. task: this.taskCount,
  17657. tool: this.toolindex,
  17658. content: JSON.stringify(this.askList),
  17659. type: 2,
  17660. },
  17661. ];
  17662. this.ajax
  17663. .post(this.$store.state.api + "addCourseWorks", params)
  17664. .then((res) => {
  17665. this.$message({
  17666. message: "提交成功",
  17667. type: "success",
  17668. });
  17669. this.askList = [];
  17670. this.dialogVisible5 = false;
  17671. this.selectStudent();
  17672. this.selectSWorks();
  17673. this.selectSLook();
  17674. })
  17675. .catch((err) => {
  17676. this.$message.error("提交失败");
  17677. console.error(err);
  17678. });
  17679. },
  17680. addStudentAskTeacher() {
  17681. if (!this.radio.length) {
  17682. this.$message.error("请选择选项");
  17683. return;
  17684. }
  17685. for (var i = 0; i < this.askJson.askCount; i++) {
  17686. if (
  17687. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17688. (this.radio[i] !== 0 && !this.radio[i])
  17689. ) {
  17690. this.$message.error("请选择选项");
  17691. return;
  17692. }
  17693. }
  17694. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17695. let params = [
  17696. {
  17697. uid: this.sStudent.userid,
  17698. cid: this.id,
  17699. stage: this.courseType,
  17700. task: this.taskCount,
  17701. tool: this.toolindex,
  17702. content: JSON.stringify(this.askList),
  17703. type: 2,
  17704. },
  17705. ];
  17706. this.ajax
  17707. .post(this.$store.state.api + "addCourseWorks", params)
  17708. .then((res) => {
  17709. this.$message({
  17710. message: "提交成功",
  17711. type: "success",
  17712. });
  17713. this.askList = [];
  17714. this.dialogVisible5Teacher = false;
  17715. this.selectStudent();
  17716. this.selectSWorks();
  17717. this.selectSLook();
  17718. })
  17719. .catch((err) => {
  17720. this.$message.error("提交失败");
  17721. console.error(err);
  17722. });
  17723. },
  17724. addStudentTest() {
  17725. if (!this.radio.length) {
  17726. this.$message.error("请选择选项");
  17727. return;
  17728. }
  17729. for (var i = 0; i < this.testJson.testCount; i++) {
  17730. if (
  17731. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17732. (this.radio[i] !== 0 && !this.radio[i])
  17733. ) {
  17734. this.$message.error("请选择选项");
  17735. return;
  17736. }
  17737. }
  17738. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17739. let params = [
  17740. {
  17741. uid: this.userid,
  17742. cid: this.id,
  17743. stage: this.courseType,
  17744. task: this.taskCount,
  17745. tool: this.toolindex,
  17746. content: JSON.stringify(this.askList),
  17747. type: 8,
  17748. },
  17749. ];
  17750. this.ajax
  17751. .post(this.$store.state.api + "addCourseWorks", params)
  17752. .then((res) => {
  17753. this.$message({
  17754. message: "提交成功",
  17755. type: "success",
  17756. });
  17757. this.askList = [];
  17758. this.dialogVisibleChoice = false;
  17759. this.selectStudent();
  17760. this.selectSWorks();
  17761. this.selectSLook();
  17762. })
  17763. .catch((err) => {
  17764. this.$message.error("提交失败");
  17765. console.error(err);
  17766. });
  17767. },
  17768. addStudentTestTeacher() {
  17769. if (!this.radio.length) {
  17770. this.$message.error("请选择选项");
  17771. return;
  17772. }
  17773. for (var i = 0; i < this.testJson.testCount; i++) {
  17774. if (
  17775. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17776. (this.radio[i] !== 0 && !this.radio[i])
  17777. ) {
  17778. this.$message.error("请选择选项");
  17779. return;
  17780. }
  17781. }
  17782. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17783. let params = [
  17784. {
  17785. uid: this.sStudent.userid,
  17786. cid: this.id,
  17787. stage: this.courseType,
  17788. task: this.taskCount,
  17789. tool: this.toolindex,
  17790. content: JSON.stringify(this.askList),
  17791. type: 8,
  17792. },
  17793. ];
  17794. this.ajax
  17795. .post(this.$store.state.api + "addCourseWorks", params)
  17796. .then((res) => {
  17797. this.$message({
  17798. message: "提交成功",
  17799. type: "success",
  17800. });
  17801. this.askList = [];
  17802. this.dialogVisibleChoiceTeacher = false;
  17803. this.selectStudent();
  17804. this.selectSWorks();
  17805. this.selectSLook();
  17806. })
  17807. .catch((err) => {
  17808. this.$message.error("提交失败");
  17809. console.error(err);
  17810. });
  17811. },
  17812. addWork() {
  17813. if (this.studyJuri[0].content == "") {
  17814. this.$message.error("请将信息填写完整");
  17815. return;
  17816. } else if (this.studyJuri[0].cover.length == 0) {
  17817. this.$message.error("请将信息填写完整");
  17818. return;
  17819. } else if (this.studyJuri[0].upVedio.length == 0) {
  17820. this.$message.error("请将信息填写完整");
  17821. return;
  17822. }
  17823. if (this.isNoHomeWork) {
  17824. this.$confirm(
  17825. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17826. "提示",
  17827. {
  17828. confirmButtonText: "确定",
  17829. cancelButtonText: "取消",
  17830. type: "warning",
  17831. }
  17832. )
  17833. .then(() => {
  17834. let params = [
  17835. {
  17836. uid: this.userid,
  17837. cid: this.id,
  17838. stage: this.courseType,
  17839. task: this.taskCount,
  17840. content: JSON.stringify(this.studyJuri),
  17841. },
  17842. ];
  17843. this.ajax
  17844. .post(this.$store.state.api + "addWorks", params)
  17845. .then((res) => {
  17846. this.$message({
  17847. message: "提交成功",
  17848. type: "success",
  17849. });
  17850. this.isNoHomeWork = true;
  17851. this.dialogVisible = false;
  17852. })
  17853. .catch((err) => {
  17854. this.$message.error("提交失败");
  17855. console.error(err);
  17856. });
  17857. })
  17858. .catch(() => {});
  17859. } else {
  17860. let params = [
  17861. {
  17862. uid: this.userid,
  17863. cid: this.id,
  17864. stage: this.courseType,
  17865. task: this.taskCount,
  17866. content: JSON.stringify(this.studyJuri),
  17867. },
  17868. ];
  17869. this.ajax
  17870. .post(this.$store.state.api + "addWorks", params)
  17871. .then((res) => {
  17872. this.$message({
  17873. message: "提交成功",
  17874. type: "success",
  17875. });
  17876. this.isNoHomeWork = true;
  17877. this.dialogVisible = false;
  17878. })
  17879. .catch((err) => {
  17880. this.$message.error("提交失败");
  17881. console.error(err);
  17882. });
  17883. }
  17884. },
  17885. selectCount() {
  17886. let params = {
  17887. cid: this.id,
  17888. chid: this.courseType,
  17889. uid: this.userid,
  17890. };
  17891. this.ajax
  17892. .get(this.$store.state.api + "selectToolsCount", params)
  17893. .then((res) => {
  17894. for (var i = 0; i < res.data[0].length; i++) {
  17895. if (res.data[0][i].tools == 1) {
  17896. this.wbCount = res.data[0][i].count;
  17897. } else if (res.data[0][i].tools == 2) {
  17898. this.wordCount = res.data[0][i].count;
  17899. } else if (res.data[0][i].tools == 3) {
  17900. this.mindCount = res.data[0][i].count;
  17901. } else if (res.data[0][i].tools == 4) {
  17902. this.askCount = res.data[0][i].count;
  17903. } else if (res.data[0][i].tools == 6) {
  17904. this.noteCount = res.data[0][i].count;
  17905. } else if (res.data[0][i].tools == 7) {
  17906. this.mindNetWorkCount = res.data[0][i].count;
  17907. } else if (res.data[0][i].tools == 8) {
  17908. this.libraryCount = res.data[0][i].count;
  17909. } else if (res.data[0][i].tools == 16) {
  17910. this.workCount = res.data[0][i].count;
  17911. } else if (res.data[0][i].tools == 10) {
  17912. this.timeCount = res.data[0][i].count;
  17913. } else if (res.data[0][i].tools == 15) {
  17914. this.answerCount = res.data[0][i].count;
  17915. } else if (res.data[0][i].tools == 18) {
  17916. this.trainCount = res.data[0][i].count;
  17917. }
  17918. }
  17919. })
  17920. .catch((err) => {
  17921. console.error(err);
  17922. });
  17923. },
  17924. openTools(t, i, index, c, sName,id) {
  17925. var z = JSON.parse(c);
  17926. this.noteName = sName;
  17927. if (t == 4) {
  17928. this.radio = [];
  17929. this.isAnswer = false;
  17930. let b = z[0].anwer;
  17931. this.radio = b;
  17932. this.askJson = z[0].askJson;
  17933. this.isAnswer = true;
  17934. this.dialogVisible5 = true;
  17935. } else if (t == 45) {
  17936. this.radio = [];
  17937. this.isAnswer = false;
  17938. let b = z[0].anwer;
  17939. this.radio = b;
  17940. this.testJson = z[0].testJson;
  17941. this.isAnswer = true;
  17942. this.dialogVisibleChoice = true;
  17943. }else if(t == 69){
  17944. this.oldEnglishJson1 = {}
  17945. this.oldEnglishJson = {}
  17946. this.englishList1 = {}
  17947. this.newEngIndex = -1;
  17948. this.isNoUserid = false;
  17949. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17950. .toolChoose[i].englishList;
  17951. this.oldEnglishJson = z;
  17952. this.engWid = id;
  17953. this.newEnglishList = { engTitle:"",engText:"" }
  17954. this.newEnglishList1 = []
  17955. this.selectEngC(id,z);
  17956. }else if(t == 62){
  17957. this.videoType = 1;
  17958. this.videoJson = {};
  17959. this.videoJson = JSON.parse(c);
  17960. // this.videoJson =
  17961. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17962. // index
  17963. // ].toolChoose[i].videoJson;
  17964. this.dialogVisibleVideo = true;
  17965. }
  17966. // else if (t == 15) {
  17967. // this.answerQ = "";
  17968. // this.questionAnswer = "";
  17969. // this.answerQ = z[0].answerTitle;
  17970. // this.questionAnswer = z[0].answer;
  17971. // this.answerDialogVisible = true;
  17972. // }
  17973. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  17974. },
  17975. fastText(p, t) {
  17976. if (t == 1) {
  17977. this.commentText += p;
  17978. } else {
  17979. this.eScore.eBzText += p;
  17980. }
  17981. },
  17982. addTools(t, i, index) {
  17983. var a = 0;
  17984. // this.taskCount = index;
  17985. this.toolindex = i;
  17986. if (t == 1) {
  17987. if (this.wbCount > 0) {
  17988. this.updateCount(this.wbCount, t);
  17989. } else {
  17990. this.wbCount++;
  17991. a = this.wbCount;
  17992. this.toolsCount(a, t);
  17993. }
  17994. window.parent.postMessage(
  17995. {
  17996. tools: "1",
  17997. cid: this.id,
  17998. stage: this.courseType,
  17999. task: this.taskCount,
  18000. tool: i,
  18001. },
  18002. "*"
  18003. );
  18004. } else if (t == 2) {
  18005. if (this.wordCount > 0) {
  18006. this.updateCount(this.wordCount, t);
  18007. } else {
  18008. this.wordCount++;
  18009. a = this.wordCount;
  18010. this.toolsCount(a, t);
  18011. }
  18012. window.parent.postMessage({ tools: "2" }, "*");
  18013. } else if (t == 3) {
  18014. if (this.mindCount > 0) {
  18015. this.updateCount(this.mindCount, t);
  18016. } else {
  18017. this.mindCount++;
  18018. a = this.mindCount;
  18019. this.toolsCount(a, t);
  18020. }
  18021. window.parent.postMessage(
  18022. {
  18023. tools: "3",
  18024. cid: this.id,
  18025. stage: this.courseType,
  18026. task: this.taskCount,
  18027. tool: i,
  18028. },
  18029. "*"
  18030. );
  18031. } else if (t == 4) {
  18032. this.radio = [];
  18033. this.noteName = "";
  18034. this.isAnswer = false;
  18035. if (this.askCount > 0) {
  18036. this.updateCount(this.askCount, t);
  18037. } else {
  18038. this.askCount++;
  18039. a = this.askCount;
  18040. this.toolsCount(a, t);
  18041. }
  18042. if (!this.dialogVisible2) {
  18043. this.askJson.askJson =
  18044. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18045. index
  18046. ].toolChoose[i].askJson;
  18047. this.askJson.askTitle =
  18048. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18049. index
  18050. ].toolChoose[i].askTitle;
  18051. this.askJson.askCount =
  18052. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18053. index
  18054. ].toolChoose[i].askCount;
  18055. } else {
  18056. this.askJson.askJson = this.chapTools.askJson.askJson;
  18057. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18058. this.askJson.askCount = this.chapTools.askJson.askCount;
  18059. }
  18060. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18061. if (this.askJson.askJson[k].type == "2") {
  18062. this.radio.push([]);
  18063. } else {
  18064. this.radio.push("");
  18065. }
  18066. }
  18067. this.dialogVisible5 = true;
  18068. // window.parent.postMessage({ tools: "4" }, "*");
  18069. } else if (t == 45) {
  18070. this.noteName = "";
  18071. this.radio = [];
  18072. this.isAnswer = false;
  18073. if (this.askCount > 0) {
  18074. this.updateCount(this.askCount, t);
  18075. } else {
  18076. this.askCount++;
  18077. a = this.askCount;
  18078. this.toolsCount(a, t);
  18079. }
  18080. this.testJson =
  18081. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18082. index
  18083. ].toolChoose[i].testJson;
  18084. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18085. if (this.testJson.testJson[k].type == "2") {
  18086. this.radio.push([]);
  18087. } else {
  18088. this.radio.push("");
  18089. }
  18090. }
  18091. this.dialogVisibleChoice = true;
  18092. // window.parent.postMessage({ tools: "4" }, "*");
  18093. } else if (t == 5) {
  18094. if (this.scoreCount > 0) {
  18095. this.updateCount(this.scoreCount, t);
  18096. } else {
  18097. this.scoreCount++;
  18098. a = this.scoreCount;
  18099. this.toolsCount(a, t);
  18100. }
  18101. this.dialogVisible4 = true;
  18102. // window.parent.postMessage({ tools: "5" }, "*");
  18103. } else if (t == 6) {
  18104. if (this.noteCount > 0) {
  18105. this.updateCount(this.noteCount, t);
  18106. } else {
  18107. this.noteCount++;
  18108. a = this.noteCount;
  18109. this.toolsCount(a, t);
  18110. }
  18111. window.parent.postMessage(
  18112. {
  18113. tools: "6",
  18114. cid: this.id,
  18115. stage: this.courseType,
  18116. task: this.taskCount,
  18117. tool: i,
  18118. },
  18119. "*"
  18120. );
  18121. } else if (t == 7) {
  18122. if (this.mindNetWorkCount > 0) {
  18123. this.updateCount(this.mindNetWorkCount, t);
  18124. } else {
  18125. this.mindNetWorkCount++;
  18126. a = this.mindNetWorkCount;
  18127. this.toolsCount(a, t);
  18128. }
  18129. window.parent.postMessage(
  18130. {
  18131. tools: "7",
  18132. cid: this.id,
  18133. stage: this.courseType,
  18134. task: this.taskCount,
  18135. tool: i,
  18136. },
  18137. "*"
  18138. );
  18139. } else if (t == 16) {
  18140. if (this.workCount > 0) {
  18141. this.updateCount(this.workCount, t);
  18142. } else {
  18143. this.workCount++;
  18144. a = this.workCount;
  18145. this.toolsCount(a, t);
  18146. }
  18147. this.dialogVisible = true;
  18148. } else if (t == 50) {
  18149. if (this.tType == 2) {
  18150. this.$message.error("不支持学生使用");
  18151. return;
  18152. }
  18153. this.plworkFile = [];
  18154. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18155. if (!this.uploadCid) {
  18156. this.$message.error(
  18157. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18158. );
  18159. return;
  18160. }
  18161. // this.uploadCid =
  18162. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18163. // index
  18164. // ].toolChoose[i].uploadJson[0];
  18165. this.selectUploadStudent(2);
  18166. } else if (t == 8) {
  18167. if (this.libraryCount > 0) {
  18168. this.updateCount(this.libraryCount, t);
  18169. } else {
  18170. this.libraryCount++;
  18171. a = this.libraryCount;
  18172. this.toolsCount(a, t);
  18173. }
  18174. window.parent.postMessage({ tools: "8" }, "*");
  18175. } else if (t == 17) {
  18176. if (this.libraryCount > 0) {
  18177. this.updateCount(this.libraryCount, t);
  18178. } else {
  18179. this.libraryCount++;
  18180. a = this.libraryCount;
  18181. this.toolsCount(a, t);
  18182. }
  18183. window.parent.postMessage({ tools: "17" }, "*");
  18184. } else if (t == 18) {
  18185. if (this.trainCount > 0) {
  18186. this.updateCount(this.trainCount, t);
  18187. } else {
  18188. this.trainCount++;
  18189. a = this.trainCount;
  18190. this.toolsCount(a, t);
  18191. }
  18192. window.parent.postMessage({ tools: "18" }, "*");
  18193. } else if (t == 10) {
  18194. if (this.timeCount > 0) {
  18195. this.updateCount(this.timeCount, t);
  18196. } else {
  18197. this.timeCount++;
  18198. a = this.timeCount;
  18199. this.toolsCount(a, t);
  18200. }
  18201. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18202. .taskJson[index].toolChoose[i].preTime
  18203. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18204. .toolChoose[i].preTime
  18205. : "";
  18206. this.timeDialogVisible = true;
  18207. } else if (t == 15) {
  18208. this.answerQ = "";
  18209. this.questionAnswer = "";
  18210. if (this.answerCount > 0) {
  18211. this.updateCount(this.answerCount, t);
  18212. } else {
  18213. this.answerCount++;
  18214. a = this.answerCount;
  18215. this.toolsCount(a, t);
  18216. }
  18217. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18218. .taskJson[index].toolChoose[i].answerQ
  18219. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18220. .toolChoose[i].answerQ
  18221. : "";
  18222. this.answerDialogVisible = true;
  18223. } else if (t == 21) {
  18224. window.parent.postMessage({ tools: "21" }, "*");
  18225. } else if (t == 22) {
  18226. window.parent.postMessage({ tools: "22" }, "*");
  18227. } else if (t == 23) {
  18228. window.parent.postMessage({ tools: "23" }, "*");
  18229. } else if (t == 24) {
  18230. window.parent.postMessage({ tools: "24" }, "*");
  18231. } else if (t == 25) {
  18232. window.parent.postMessage({ tools: "25" }, "*");
  18233. } else if (t == 31) {
  18234. window.parent.postMessage({ tools: "31" }, "*");
  18235. } else if (t == 28) {
  18236. window.parent.postMessage({ tools: "28" }, "*");
  18237. } else if (t == 37) {
  18238. window.parent.postMessage({ tools: "37" }, "*");
  18239. } else if (t == 38) {
  18240. window.parent.postMessage({ tools: "38" }, "*");
  18241. } else if (t == 39) {
  18242. window.parent.postMessage({ tools: "39" }, "*");
  18243. } else if (t == 32) {
  18244. window.parent.postMessage({ tools: "32" }, "*");
  18245. } else if (t == 66) {
  18246. window.parent.postMessage({ tools: "66" }, "*");
  18247. } else if (t == 67) {
  18248. window.parent.postMessage({ tools: "67" }, "*");
  18249. } else if (t == 68) {
  18250. window.parent.postMessage({ tools: "68" }, "*");
  18251. } else if (t == 57) {
  18252. // window.parent.postMessage({ tools: "57" }, "*");
  18253. window.parent.postMessage(
  18254. {
  18255. tools: "57u",
  18256. cid: this.id,
  18257. stage: this.courseType,
  18258. task: this.taskCount,
  18259. tool: i,
  18260. },
  18261. "*"
  18262. );
  18263. } else if (t == 58) {
  18264. window.parent.postMessage({ tools: "58" }, "*");
  18265. } else if (t == 59) {
  18266. window.parent.postMessage({ tools: "59" }, "*");
  18267. } else if (t == 60) {
  18268. window.parent.postMessage({ tools: "60" }, "*");
  18269. } else if (t == 61) {
  18270. window.parent.postMessage({ tools: "61" }, "*");
  18271. } else if (t == 63) {
  18272. window.parent.postMessage({ tools: "63" }, "*");
  18273. } else if (t == 71) {
  18274. if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  18275. this.$message.error("该工具不可使用");
  18276. return
  18277. }
  18278. window.parent.postMessage({ tools: "71" }, "*");
  18279. } else if (t == 69) {
  18280. if (this.worksStudent[i].length) {
  18281. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18282. if (this.userid == this.worksStudent[i][k].userid) {
  18283. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18284. break;
  18285. } else {
  18286. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18287. }
  18288. }
  18289. } else {
  18290. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18291. }
  18292. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18293. .taskJson[index].toolChoose[i].englishList
  18294. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18295. .toolChoose[i].englishList
  18296. : {};
  18297. this.englishToolIndex = i;
  18298. this.myAnList = this.myAnswerList1;
  18299. this.engDialogVisible = true;
  18300. } else if (t == 70) {
  18301. if (this.worksStudent[i].length) {
  18302. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18303. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18304. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18305. break;
  18306. } else {
  18307. this.englishVoiceJsonWork = [];
  18308. }
  18309. }
  18310. } else {
  18311. this.englishVoiceJsonWork = [];
  18312. }
  18313. let englishVoiceJson = {}
  18314. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18315. .taskJson[index].toolChoose[i].englishVoiceJson
  18316. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18317. .toolChoose[i].englishVoiceJson
  18318. : {};
  18319. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18320. this.EnglishVoiceDialog = true;
  18321. } else if (t == 65) {
  18322. if (this.tType == 2) {
  18323. this.$message.error("不支持学生使用");
  18324. return;
  18325. }
  18326. this.uploadCid = this.tcid;
  18327. if (!this.uploadCid) {
  18328. this.$message.error(
  18329. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18330. );
  18331. return;
  18332. }
  18333. this.selectPickStudent();
  18334. } else if (t == 26) {
  18335. window.parent.postMessage(
  18336. {
  18337. tools: "26",
  18338. cid: this.id,
  18339. stage: this.courseType,
  18340. task: this.taskCount,
  18341. tool: i,
  18342. },
  18343. "*"
  18344. );
  18345. } else if (t == 40) {
  18346. if (this.evalCount > 0) {
  18347. this.updateCount(this.evalCount, t);
  18348. } else {
  18349. this.evalCount++;
  18350. a = this.evalCount;
  18351. this.toolsCount(a, t);
  18352. }
  18353. this.eScore = { eBzText: "", eStar: [] };
  18354. if (this.worksStudent[i].length) {
  18355. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18356. if (this.userid == this.worksStudent[i][k].userid) {
  18357. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18358. this.rateJson =
  18359. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18360. index
  18361. ].toolChoose[i].rateJson;
  18362. break;
  18363. } else {
  18364. this.rateJson =
  18365. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18366. index
  18367. ].toolChoose[i].rateJson;
  18368. }
  18369. }
  18370. } else {
  18371. this.rateJson =
  18372. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18373. index
  18374. ].toolChoose[i].rateJson;
  18375. }
  18376. this.isStar = false;
  18377. this.studentEvalDialogVisible = true;
  18378. } else if (t == 41) {
  18379. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18380. .taskJson[index].toolChoose[i].selectJson
  18381. ? JSON.parse(
  18382. JSON.stringify(
  18383. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18384. index
  18385. ].toolChoose[i].selectJson
  18386. )
  18387. )
  18388. : { url: "", select: [], answer: [] };
  18389. if (this.worksStudent[i].length) {
  18390. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18391. if (this.userid == this.worksStudent[i][k].userid) {
  18392. var a = this.worksStudent[i][k].works.split(",");
  18393. for (var ki = 0; ki < a.length; ki++) {
  18394. a[ki] = parseInt(a[ki]);
  18395. }
  18396. this.selectAnswer = {
  18397. answer: a,
  18398. stu: this.worksStudent[i][k].sName,
  18399. };
  18400. break;
  18401. } else {
  18402. this.selectAnswer = { answer: [], stu: "" };
  18403. }
  18404. }
  18405. } else {
  18406. this.selectAnswer = { answer: [], stu: "" };
  18407. }
  18408. this.isSelect = false;
  18409. this.dialogVisibleSelect = true;
  18410. } else if (t == 44) {
  18411. window.parent.postMessage({ tools: "44" }, "*");
  18412. } else if (t == 47) {
  18413. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18414. .taskJson[index].toolChoose[i].sentenceList
  18415. ? JSON.parse(
  18416. JSON.stringify(
  18417. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18418. index
  18419. ].toolChoose[i].sentenceList
  18420. )
  18421. )
  18422. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18423. for (var q = 0; q < this.sentenceList.length; q++) {
  18424. this.sentenceList[q].chooseSenList = [];
  18425. this.sentenceList[q].addChangeSen = [];
  18426. this.sentenceList[q].addChangeSen = JSON.parse(
  18427. JSON.stringify(this.sentenceList[q].addSentence)
  18428. );
  18429. this.sentenceList[q].chooseSenList.length =
  18430. this.sentenceList[q].rightAnswer.length;
  18431. }
  18432. this.dialogVisibleSentence = true;
  18433. } else if (t == 48) {
  18434. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18435. .taskJson[index].toolChoose[i].tableJson
  18436. ? JSON.parse(
  18437. JSON.stringify(
  18438. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18439. index
  18440. ].toolChoose[i].tableJson
  18441. )
  18442. )
  18443. : { text: "" };
  18444. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18445. if (this.worksStudent[i].length) {
  18446. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18447. if (this.userid == this.worksStudent[i][k].userid) {
  18448. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18449. break;
  18450. }
  18451. }
  18452. }
  18453. this.dialogVisibleTable = true;
  18454. } else if (t == 52) {
  18455. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18456. .taskJson[index].toolChoose[i].wordJson
  18457. ? JSON.parse(
  18458. JSON.stringify(
  18459. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18460. index
  18461. ].toolChoose[i].wordJson
  18462. )
  18463. )
  18464. : { text: "" };
  18465. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18466. if (this.worksStudent[i].length) {
  18467. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18468. if (this.userid == this.worksStudent[i][k].userid) {
  18469. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18470. break;
  18471. }
  18472. }
  18473. }
  18474. this.dialogVisibleWord = true;
  18475. } else if (t == 49) {
  18476. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18477. return
  18478. }
  18479. this.groupJson =
  18480. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18481. index
  18482. ].toolChoose[i].groupJson;
  18483. this.islock = this.groupJson.islock == 1 ? true : false;
  18484. this.dialogVisibleGroup = true;
  18485. } else if (t == 62) {
  18486. this.videoType = 0;
  18487. this.videoJson = {};
  18488. this.videoJson =
  18489. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18490. index
  18491. ].toolChoose[i].videoJson;
  18492. this.dialogVisibleVideo = true;
  18493. }
  18494. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18495. },
  18496. teacherWorkSubmit(t, i, index, s) {
  18497. this.sStudent = s;
  18498. this.toolindex = i;
  18499. this.sTool = t;
  18500. if (this.tType !== "1" && this.tType !== "4") {
  18501. return;
  18502. }
  18503. if (t == 16 || t == 32 || t == 50) {
  18504. this.dialogVisibleWorks = true;
  18505. } else if (t == 15) {
  18506. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18507. .taskJson[index].toolChoose[i].answerQ
  18508. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18509. .toolChoose[i].answerQ
  18510. : "";
  18511. this.questionAnswer = "";
  18512. this.answerDialogVisibleTeacher = true; //问答
  18513. } else if (t == 52) {
  18514. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18515. .taskJson[index].toolChoose[i].wordJson
  18516. ? JSON.parse(
  18517. JSON.stringify(
  18518. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18519. index
  18520. ].toolChoose[i].wordJson
  18521. )
  18522. )
  18523. : { text: "" };
  18524. if (this.worksStudent[i].length) {
  18525. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18526. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18527. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18528. break;
  18529. }
  18530. }
  18531. }
  18532. this.dialogVisibleWordTeacher = true; //文档
  18533. } else if (t == 4) {
  18534. this.radio = [];
  18535. this.noteName = "";
  18536. this.isAnswer = false;
  18537. if (this.askCount > 0) {
  18538. this.updateCount(this.askCount, t);
  18539. } else {
  18540. this.askCount++;
  18541. a = this.askCount;
  18542. this.toolsCount(a, t);
  18543. }
  18544. if (!this.dialogVisible2) {
  18545. this.askJson.askJson =
  18546. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18547. index
  18548. ].toolChoose[i].askJson;
  18549. this.askJson.askTitle =
  18550. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18551. index
  18552. ].toolChoose[i].askTitle;
  18553. this.askJson.askCount =
  18554. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18555. index
  18556. ].toolChoose[i].askCount;
  18557. } else {
  18558. this.askJson.askJson = this.chapTools.askJson.askJson;
  18559. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18560. this.askJson.askCount = this.chapTools.askJson.askCount;
  18561. }
  18562. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18563. if (this.askJson.askJson[k].type == "2") {
  18564. this.radio.push([]);
  18565. } else {
  18566. this.radio.push("");
  18567. }
  18568. }
  18569. this.dialogVisible5Teacher = true;
  18570. } else if (t == 45) {
  18571. this.noteName = "";
  18572. this.radio = [];
  18573. this.isAnswer = false;
  18574. if (this.askCount > 0) {
  18575. this.updateCount(this.askCount, t);
  18576. } else {
  18577. this.askCount++;
  18578. a = this.askCount;
  18579. this.toolsCount(a, t);
  18580. }
  18581. this.testJson =
  18582. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18583. index
  18584. ].toolChoose[i].testJson;
  18585. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18586. if (this.testJson.testJson[k].type == "2") {
  18587. this.radio.push([]);
  18588. } else {
  18589. this.radio.push("");
  18590. }
  18591. }
  18592. this.dialogVisibleChoiceTeacher = true;
  18593. } else if (t == 41) {
  18594. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18595. .taskJson[index].toolChoose[i].selectJson
  18596. ? JSON.parse(
  18597. JSON.stringify(
  18598. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18599. index
  18600. ].toolChoose[i].selectJson
  18601. )
  18602. )
  18603. : { url: "", select: [], answer: [] };
  18604. if (this.worksStudent[i].length) {
  18605. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18606. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18607. var a = this.worksStudent[i][k].works.split(",");
  18608. for (var ki = 0; ki < a.length; ki++) {
  18609. a[ki] = parseInt(a[ki]);
  18610. }
  18611. this.selectAnswer = {
  18612. answer: a,
  18613. stu: this.worksStudent[i][k].sName,
  18614. };
  18615. break;
  18616. } else {
  18617. this.selectAnswer = { answer: [], stu: "" };
  18618. }
  18619. }
  18620. } else {
  18621. this.selectAnswer = { answer: [], stu: "" };
  18622. }
  18623. this.isSelect = false;
  18624. this.dialogVisibleSelectTeacher = true;
  18625. } else if (t == 47) {
  18626. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18627. .taskJson[index].toolChoose[i].sentenceList
  18628. ? JSON.parse(
  18629. JSON.stringify(
  18630. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18631. index
  18632. ].toolChoose[i].sentenceList
  18633. )
  18634. )
  18635. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18636. for (var q = 0; q < this.sentenceList.length; q++) {
  18637. this.sentenceList[q].chooseSenList = [];
  18638. this.sentenceList[q].addChangeSen = [];
  18639. this.sentenceList[q].addChangeSen = JSON.parse(
  18640. JSON.stringify(this.sentenceList[q].addSentence)
  18641. );
  18642. this.sentenceList[q].chooseSenList.length =
  18643. this.sentenceList[q].rightAnswer.length;
  18644. }
  18645. this.dialogVisibleSentenceTeacher = true;
  18646. } else if (t == 48) {
  18647. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18648. .taskJson[index].toolChoose[i].tableJson
  18649. ? JSON.parse(
  18650. JSON.stringify(
  18651. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18652. index
  18653. ].toolChoose[i].tableJson
  18654. )
  18655. )
  18656. : { text: "" };
  18657. if (this.worksStudent[i].length) {
  18658. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18659. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18660. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18661. break;
  18662. }
  18663. }
  18664. }
  18665. this.dialogVisibleTableTeacher = true;
  18666. } else if (t == 40) {
  18667. if (this.evalCount > 0) {
  18668. this.updateCount(this.evalCount, t);
  18669. } else {
  18670. this.evalCount++;
  18671. a = this.evalCount;
  18672. this.toolsCount(a, t);
  18673. }
  18674. this.eScore = { eBzText: "", eStar: [] };
  18675. if (this.worksStudent[i].length) {
  18676. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18677. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18678. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18679. this.rateJson =
  18680. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18681. index
  18682. ].toolChoose[i].rateJson;
  18683. break;
  18684. } else {
  18685. this.rateJson =
  18686. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18687. index
  18688. ].toolChoose[i].rateJson;
  18689. }
  18690. }
  18691. } else {
  18692. this.rateJson =
  18693. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18694. index
  18695. ].toolChoose[i].rateJson;
  18696. }
  18697. this.isStar = false;
  18698. this.studentEvalDialogVisibleTeacher = true;
  18699. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18700. window.parent.postMessage(
  18701. {
  18702. tools: t + "teacher",
  18703. cid: this.id,
  18704. stage: this.courseType,
  18705. task: this.taskCount,
  18706. tool: i,
  18707. student: this.sStudent,
  18708. },
  18709. "*"
  18710. );
  18711. }
  18712. },
  18713. openCocoPi(tool, i, uid, uname) {
  18714. let student = {
  18715. userid: uid,
  18716. student: uname,
  18717. };
  18718. if (tool == 57) {
  18719. window.parent.postMessage(
  18720. {
  18721. tools: tool + "teacher",
  18722. cid: this.id,
  18723. stage: this.courseType,
  18724. task: this.taskCount,
  18725. tool: i,
  18726. student: student,
  18727. },
  18728. "*"
  18729. );
  18730. }
  18731. },
  18732. setRightAnswer(s, i, j) {
  18733. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18734. if (
  18735. this.sentenceList[i].chooseSenList[q] == undefined ||
  18736. this.sentenceList[i].chooseSenList[q] == ""
  18737. ) {
  18738. this.sentenceList[i].chooseSenList[q] = s;
  18739. this.sentenceList[i].addChangeSen[j] = "";
  18740. break;
  18741. }
  18742. }
  18743. this.$forceUpdate();
  18744. },
  18745. returnCard(r, i, j) {
  18746. var a = this.sentenceList[i].addSentence.indexOf(r);
  18747. this.sentenceList[i].chooseSenList[j] = "";
  18748. this.sentenceList[i].addChangeSen[a] = r;
  18749. this.$forceUpdate();
  18750. },
  18751. // addSentenceTool() {
  18752. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18753. // this.taskCount
  18754. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18755. // this.sentenceList = [
  18756. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18757. // ];
  18758. // this.dialogVisibleSentence = false;
  18759. // },
  18760. toolsCount(a, t) {
  18761. let params = {
  18762. cid: this.id,
  18763. chid: this.courseType,
  18764. uid: this.userid,
  18765. tid: t,
  18766. count: a,
  18767. };
  18768. this.ajax
  18769. .get(this.$store.state.api + "insertToolsCount", params)
  18770. .then((res) => {
  18771. this.selectCount();
  18772. })
  18773. .catch((err) => {
  18774. console.error(err);
  18775. });
  18776. },
  18777. updateCount(c, t) {
  18778. c++;
  18779. let params = {
  18780. cid: this.id,
  18781. chid: this.courseType,
  18782. uid: this.userid,
  18783. tid: t,
  18784. count: c,
  18785. };
  18786. this.ajax
  18787. .get(this.$store.state.api + "updateToolsCount", params)
  18788. .then((res) => {
  18789. this.selectCount();
  18790. })
  18791. .catch((err) => {
  18792. console.error(err);
  18793. });
  18794. },
  18795. checkEva() {
  18796. if (this.evalua != "") {
  18797. for (var i = 0; i < this.evaJuri.length; i++) {
  18798. if (this.evalua == this.evaJuri[i].id) {
  18799. this.eTitle = this.evaJuri[i].title;
  18800. this.eJson = JSON.parse(this.evaJuri[i].content);
  18801. }
  18802. }
  18803. this.$forceUpdate();
  18804. setTimeout(() => {
  18805. this.setMindData();
  18806. }, 0);
  18807. }
  18808. },
  18809. selectEva() {
  18810. let params = {
  18811. oid: this.oid,
  18812. };
  18813. this.ajax
  18814. .get(this.$store.state.api + "selectAllEvaluation", params)
  18815. .then((res) => {
  18816. this.evaJuri = res.data[0];
  18817. })
  18818. .catch((err) => {
  18819. console.error(err);
  18820. });
  18821. },
  18822. setMindData() {
  18823. this.data.data = [];
  18824. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18825. let _eJson = Object.keys(this.eJson);
  18826. let _e = this.eJson;
  18827. for (let i = 0; i < _eJson.length; i++) {
  18828. let element = _e[_eJson[i]];
  18829. this.data.data.push({
  18830. id: element.id,
  18831. parentid: "root",
  18832. topic: element.name,
  18833. });
  18834. let _eJsonc = Object.keys(element.child);
  18835. let _e2 = element.child;
  18836. for (let j = 0; j < _eJsonc.length; j++) {
  18837. let _ec = _e2[_eJsonc[j]];
  18838. this.data.data.push({
  18839. id: _ec.id,
  18840. parentid: element.id,
  18841. topic: _ec.name,
  18842. });
  18843. let _eJsonz = Object.keys(_ec.child);
  18844. let _e3 = _ec.child;
  18845. for (let z = 0; z < _eJsonz.length; z++) {
  18846. let _ez = _e3[_eJsonz[z]];
  18847. this.data.data.push({
  18848. id: _ez.id,
  18849. parentid: _ec.id,
  18850. topic: _ez.name,
  18851. });
  18852. }
  18853. }
  18854. }
  18855. this.$forceUpdate();
  18856. },
  18857. checkFileFull(type, url) {
  18858. this.fullDialogVisible = true;
  18859. this.fulltype = type;
  18860. this.fullUrl = url;
  18861. },
  18862. async checkFileFull1(t, f) {
  18863. this.fullDialogVisible = true;
  18864. if (t == 6) {
  18865. this.fulltype = 1;
  18866. this.fullUrl = JSON.parse(JSON.stringify(f));
  18867. } else if (t == 8) {
  18868. this.fulltype = 2;
  18869. this.fullUrl = f.url;
  18870. } else if (
  18871. t == 3 &&
  18872. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18873. "PDF"
  18874. ) {
  18875. this.fulltype = 3;
  18876. this.fullUrl = f.url;
  18877. } else if (t == 3) {
  18878. this.fulltype = 2;
  18879. let _uuurl = await this.checkLink(f.url);
  18880. console.log(_uuurl)
  18881. this.fullUrl =
  18882. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18883. }
  18884. this.changeSplitScreenBehavior({code:0,form:[t,f]})
  18885. },
  18886. openSname(n, id, i, uid) {
  18887. this.snameWid = id;
  18888. this.worksSName = n;
  18889. this.worksSid = uid == n ? "" : uid;
  18890. this.toolindex = i;
  18891. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18892. if (!this.uploadCid) {
  18893. this.$message.error(
  18894. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18895. );
  18896. return;
  18897. }
  18898. this.selectUploadStudent(1);
  18899. },
  18900. updateName() {
  18901. let params = {
  18902. n: this.worksSName,
  18903. cid: this.snameWid,
  18904. };
  18905. this.ajax
  18906. .get(this.$store.state.api + "updateCourseWorksName", params)
  18907. .then((res) => {
  18908. this.$message({
  18909. message: "修改成功",
  18910. type: "success",
  18911. });
  18912. this.dialogVisibleSname = false;
  18913. this.getCourseDetail(2);
  18914. this.snameWid = "";
  18915. this.worksSName = "";
  18916. })
  18917. .catch((err) => {
  18918. console.error(err);
  18919. });
  18920. },
  18921. downloadFile2(f) {
  18922. // const loading = this.$loading.service({
  18923. // background: "rgba(255, 255, 255, 0.7)",
  18924. // target: document.body,
  18925. // text: "文件加载中...",
  18926. // });
  18927. // let url2 = f.url;
  18928. // let _url2 = "";
  18929. // if (
  18930. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18931. // ) {
  18932. // _url2 = url2.split(
  18933. // "https://view.officeapps.live.com/op/view.aspx?src="
  18934. // )[1];
  18935. // } else {
  18936. // _url2 = url2;
  18937. // }
  18938. // let params = {
  18939. // url: _url2,
  18940. // name: f.name,
  18941. // };
  18942. // this.ajax
  18943. // .get(this.$store.state.api + "download", params)
  18944. // .then((res) => {
  18945. // loading.close();
  18946. // let content = res.data.data.data;
  18947. // let ab = new ArrayBuffer(content.length);
  18948. // let view = new Uint8Array(ab);
  18949. // for (var i = 0; i < content.length; ++i) {
  18950. // view[i] = content[i];
  18951. // }
  18952. // let elink = document.createElement("a");
  18953. // elink.download = f.name;
  18954. // elink.style.display = "none";
  18955. // let blob = new Blob([ab], {
  18956. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18957. // });
  18958. // elink.href = URL.createObjectURL(blob);
  18959. // document.body.appendChild(elink);
  18960. // elink.click();
  18961. // document.body.removeChild(elink);
  18962. // })
  18963. // .catch((err) => {
  18964. // loading.close();
  18965. // console.error(err);
  18966. // });
  18967. var credentials = {
  18968. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18969. secretAccessKey: "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",
  18970. }; //秘钥形式的登录上传
  18971. window.AWS.config.update(credentials);
  18972. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18973. let url2 = f.url;
  18974. let _url2 = "";
  18975. if (
  18976. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18977. ) {
  18978. _url2 = url2.split(
  18979. "https://view.officeapps.live.com/op/view.aspx?src="
  18980. )[1];
  18981. } else {
  18982. _url2 = url2;
  18983. }
  18984. let _this = this;
  18985. _this.downLoading = true
  18986. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18987. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18988. var params = {
  18989. Bucket: "ccrb",
  18990. Key: name
  18991. };
  18992. s3.getObject(params, function (err, data) {
  18993. _this.downLoading = false
  18994. if (err) console.log(err, err.stack); // an error occurred
  18995. else {
  18996. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18997. let a = document.createElement("a");
  18998. a.name = f.name;
  18999. a.href = url;
  19000. a.download = f.name;
  19001. a.click();
  19002. console.log(data);
  19003. } // sxuccessful response
  19004. });
  19005. return;
  19006. let url = f.url;
  19007. let _url = "";
  19008. if (
  19009. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19010. ) {
  19011. _url = url.split(
  19012. "https://view.officeapps.live.com/op/view.aspx?src="
  19013. )[1];
  19014. } else {
  19015. _url = url;
  19016. }
  19017. _this.downLoading = true
  19018. // const loading = _this.$loading.service({
  19019. // background: "rgba(255, 255, 255, 0.7)",
  19020. // target: document.body,
  19021. // text: "文件加载中...",
  19022. // });
  19023. let x = new XMLHttpRequest();
  19024. x.open("GET", _url, true);
  19025. x.responseType = "blob";
  19026. x.onload = function () {
  19027. _this.downLoading = false
  19028. // loading.close();
  19029. let url = window.URL.createObjectURL(new Blob([x.response]));
  19030. let a = document.createElement("a");
  19031. a.name = f.name;
  19032. a.href = url;
  19033. a.download = f.name;
  19034. a.click();
  19035. };
  19036. x.send();
  19037. },
  19038. downloadFile(url) {
  19039. var credentials = {
  19040. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19041. secretAccessKey: "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",
  19042. }; //秘钥形式的登录上传
  19043. window.AWS.config.update(credentials);
  19044. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19045. let url2 = url;
  19046. let _url2 = "";
  19047. if (
  19048. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19049. ) {
  19050. _url2 = url2.split(
  19051. "https://view.officeapps.live.com/op/view.aspx?src="
  19052. )[1];
  19053. } else {
  19054. _url2 = url2;
  19055. }
  19056. const loading2 = this.$loading.service({
  19057. background: "rgba(255, 255, 255, 0.7)",
  19058. target: document.body,
  19059. text: "文件加载中...",
  19060. });
  19061. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19062. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19063. var params = {
  19064. Bucket: "ccrb",
  19065. Key: name
  19066. };
  19067. s3.getObject(params, function (err, data) {
  19068. loading2.close();
  19069. if (err) console.log(err, err.stack); // an error occurred
  19070. else {
  19071. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19072. let a = document.createElement("a");
  19073. a.name = name;
  19074. a.href = url;
  19075. a.download = name;
  19076. a.click();
  19077. console.log(data);
  19078. } // sxuccessful response
  19079. });
  19080. return;
  19081. let _this = this;
  19082. let _url = "";
  19083. if (
  19084. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19085. ) {
  19086. _url = url.split(
  19087. "https://view.officeapps.live.com/op/view.aspx?src="
  19088. )[1];
  19089. } else {
  19090. _url = url;
  19091. }
  19092. const x = new XMLHttpRequest();
  19093. x.open("GET", _url, true);
  19094. x.responseType = "blob";
  19095. // this.downLoading = true
  19096. const loading = _this.$loading.service({
  19097. background: "rgba(255, 255, 255, 0.7)",
  19098. target: document.body,
  19099. text: "文件加载中...",
  19100. });
  19101. // _this.$message.success("文件下载中...");
  19102. x.onload = function (e) {
  19103. this.downLoading = false
  19104. loading.close();
  19105. let content = x.response;
  19106. let elink = document.createElement("a");
  19107. elink.download = decodeURI(
  19108. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19109. );
  19110. elink.style.display = "none";
  19111. let blob = new Blob([content]);
  19112. elink.href = URL.createObjectURL(blob);
  19113. document.body.appendChild(elink);
  19114. elink.click();
  19115. document.body.removeChild(elink);
  19116. };
  19117. x.send();
  19118. },
  19119. openLine(url) {
  19120. window.open(url);
  19121. },
  19122. resize() {
  19123. if (document.getElementsByClassName("box_course").length) {
  19124. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19125. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19126. if (this.showType == 2 || this.showType == 3) {
  19127. document.getElementsByClassName("navBox")[0].style.height =
  19128. a - 40 + 0+ "px";
  19129. } else {
  19130. document.getElementsByClassName("navBox")[0].style.height =
  19131. a - 40 + "px";
  19132. }
  19133. }
  19134. this.Stbodywidth =
  19135. document.getElementsByClassName("student_body").length &&
  19136. document.getElementsByClassName("student_body")[0].offsetWidth;
  19137. },
  19138. closeDraw() {
  19139. this.bg = null;
  19140. this.drawShow = false;
  19141. },
  19142. showPicturePaint(url) {
  19143. let params = {
  19144. img: url,
  19145. };
  19146. this.ajax
  19147. .get(this.$store.state.api + "imgToBase64", params)
  19148. .then((res) => {
  19149. this.drawShow = true;
  19150. this.bg = res.data[0].img;
  19151. })
  19152. .catch((err) => {
  19153. console.error(err);
  19154. });
  19155. },
  19156. addImgDraw(base64) {
  19157. let file = { name: "批注图.png" };
  19158. let img = this.dataUrlToFile(base64, file);
  19159. this.beforeUpload1(img, 5);
  19160. },
  19161. addImgDrawImG(url) {
  19162. // console.log(url);
  19163. let params = [
  19164. {
  19165. wid: this.commentDetail.wid,
  19166. img: url,
  19167. },
  19168. ];
  19169. this.ajax
  19170. .post(this.$store.state.api + "updateCourseWorks", params)
  19171. .then((res) => {
  19172. this.$message({
  19173. message: "提交成功",
  19174. type: "success",
  19175. });
  19176. this.drawShow = false;
  19177. this.bg = "";
  19178. this.selectSWorks();
  19179. this.selectStudent();
  19180. })
  19181. .catch((err) => {
  19182. this.$message.error("提交失败");
  19183. console.error(err);
  19184. });
  19185. },
  19186. deletePicturePaint() {
  19187. this.$confirm("确定删除此批注吗?", "提示", {
  19188. confirmButtonText: "确定",
  19189. cancelButtonText: "取消",
  19190. type: "warning",
  19191. })
  19192. .then(() => {
  19193. let params = [
  19194. {
  19195. wid: this.commentDetail.wid,
  19196. img: "",
  19197. },
  19198. ];
  19199. this.ajax
  19200. .post(this.$store.state.api + "updateCourseWorks", params)
  19201. .then((res) => {
  19202. this.$message({
  19203. message: "删除成功",
  19204. type: "success",
  19205. });
  19206. this.selectSWorks();
  19207. this.selectStudent();
  19208. })
  19209. .catch((err) => {
  19210. this.$message.error("删除失败");
  19211. console.error(err);
  19212. });
  19213. })
  19214. .catch(() => {});
  19215. },
  19216. getAudioVideo(constraintsData) {
  19217. if (navigator.mediaDevices === undefined) {
  19218. navigator.mediaDevices = {};
  19219. }
  19220. if (navigator.mediaDevices.getUserMedia === undefined) {
  19221. navigator.mediaDevices.getUserMedia = function (constraints) {
  19222. // 首先,如果有getUserMedia的话,就获得它
  19223. var getUserMedia =
  19224. navigator.getUserMedia ||
  19225. navigator.webkitGetUserMedia ||
  19226. navigator.mozGetUserMedia ||
  19227. navigator.msGetUserMedia;
  19228. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19229. if (!getUserMedia) {
  19230. return Promise.reject({ code: 404 });
  19231. }
  19232. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19233. return new Promise(function (resolve, reject) {
  19234. getUserMedia.call(navigator, constraints, resolve, reject);
  19235. });
  19236. };
  19237. }
  19238. return navigator.mediaDevices.getUserMedia(constraintsData);
  19239. },
  19240. /**
  19241. * 开始录制
  19242. */
  19243. startRecording(callback) {
  19244. let _function = (screenStream) => {
  19245. this.addStreamStopListener(screenStream, () => {
  19246. console.log("流停止监听");
  19247. this.stopRecording();
  19248. this.$emit("streamStop", {});
  19249. // this.stopRecording();
  19250. });
  19251. var options = {
  19252. type: "video",
  19253. mimeType: "video/webm",
  19254. disableLogs: false,
  19255. getNativeBlob: false, // enable it for longer recordings
  19256. ignoreMutedMedia: false,
  19257. };
  19258. // this.video.srcObject = screenStream;
  19259. this.recorder = RecordRTC(screenStream, options);
  19260. this.recorder.startRecording();
  19261. this.recorder.screen = screenStream;
  19262. this.videoStart = true;
  19263. // callback(true);
  19264. };
  19265. this.getAudioVideo({ audio: true })
  19266. .then((res) => {
  19267. this.captureScreen(_function, true);
  19268. console.log("已点击允许,开启成功");
  19269. })
  19270. .catch((err) => {
  19271. // console.log('浏览器不支持,请更换浏览器')
  19272. // } else {
  19273. this.captureScreen(_function, false);
  19274. console.log("请检查是否存在麦克风");
  19275. });
  19276. },
  19277. /**
  19278. * 停止录制
  19279. */
  19280. stopRecording(callback) {
  19281. this.recorder.stopRecording(() => {
  19282. // this.video.src = this.video.srcObject = null;
  19283. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19284. const url = URL.createObjectURL(this.recorder.getBlob());
  19285. const a = document.createElement("a"); //this.fileName+
  19286. let videoFile = new File(
  19287. [this.recorder.getBlob()],
  19288. this.courseDetail.title + "录屏.mp4",
  19289. {
  19290. type: "video/mp4",
  19291. }
  19292. );
  19293. let downloadUrl = URL.createObjectURL(videoFile);
  19294. if(this.$refs.classRoomHelperRef){
  19295. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  19296. }
  19297. document.body.appendChild(a);
  19298. a.style.display = "none";
  19299. a.href = url;
  19300. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19301. a.click();
  19302. this.recorder.screen.stop();
  19303. this.recorder.destroy();
  19304. this.recorder = null;
  19305. this.videoStart = false;
  19306. // callback(false);
  19307. });
  19308. },
  19309. //初始化
  19310. captureScreen(callback, type) {
  19311. if (navigator.getDisplayMedia) {
  19312. //录制结束,文件下载
  19313. navigator
  19314. .getDisplayMedia({
  19315. video: true,
  19316. })
  19317. .then((screenStream) => {
  19318. if (type) {
  19319. navigator.mediaDevices
  19320. .getUserMedia({ audio: true })
  19321. .then((mic) => {
  19322. screenStream.addTrack(mic.getTracks()[0]);
  19323. callback(screenStream);
  19324. });
  19325. } else {
  19326. callback(screenStream);
  19327. }
  19328. })
  19329. .catch(function (error) {
  19330. console.log("error", error);
  19331. });
  19332. } else if (navigator.mediaDevices.getDisplayMedia) {
  19333. navigator.mediaDevices
  19334. .getDisplayMedia({
  19335. video: true,
  19336. })
  19337. .then((screenStream) => {
  19338. if (type) {
  19339. navigator.mediaDevices
  19340. .getUserMedia({ audio: true })
  19341. .then((mic) => {
  19342. screenStream.addTrack(mic.getTracks()[0]);
  19343. callback(screenStream);
  19344. });
  19345. } else {
  19346. callback(screenStream);
  19347. }
  19348. })
  19349. .catch(function (error) {
  19350. console.log("error", error);
  19351. });
  19352. } else {
  19353. var error = "getDisplayMedia API are not supported in this browser.";
  19354. console.log("error", error);
  19355. alert(error);
  19356. }
  19357. },
  19358. //流监听
  19359. addStreamStopListener(stream, callback) {
  19360. stream.addEventListener(
  19361. "ended",
  19362. function () {
  19363. callback();
  19364. callback = function () {};
  19365. },
  19366. false
  19367. );
  19368. stream.addEventListener(
  19369. "inactive",
  19370. function () {
  19371. callback();
  19372. callback = function () {};
  19373. },
  19374. false
  19375. );
  19376. stream.getTracks().forEach(function (track) {
  19377. track.addEventListener(
  19378. "ended",
  19379. function () {
  19380. callback();
  19381. callback = function () {};
  19382. },
  19383. false
  19384. );
  19385. track.addEventListener(
  19386. "inactive",
  19387. function () {
  19388. callback();
  19389. callback = function () {};
  19390. },
  19391. false
  19392. );
  19393. });
  19394. },
  19395. updateGroup() {
  19396. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19397. this.dialogVisibleGroup2 = true;
  19398. },
  19399. numberPan() {
  19400. if (
  19401. /[^\d]/.test(this.groupJson.number) ||
  19402. this.groupJson.number < 2 ||
  19403. this.groupJson.number > 10
  19404. ) {
  19405. this.$message.error("请输入2-10的数字");
  19406. this.groupJson.number = "";
  19407. }
  19408. },
  19409. updateGroupJson() {
  19410. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19411. if (
  19412. this.groupStudentUid[this.toolindex][i].length >
  19413. this.groupJson2.number
  19414. ) {
  19415. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19416. return;
  19417. }
  19418. }
  19419. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19420. this.islock = this.groupJson.islock == 1 ? true : false;
  19421. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19422. this.taskCount
  19423. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19424. let params = [
  19425. {
  19426. cid: this.id,
  19427. chapters: JSON.stringify(this.chapInfoList),
  19428. uid: this.userid,
  19429. unitIndex: this.courseType,
  19430. },
  19431. ];
  19432. this.ajax
  19433. .post(this.$store.state.api + "updateWorkNew4", params)
  19434. .then((res) => {
  19435. this.$message.success("设置成功");
  19436. this.getCourseDetail(2);
  19437. this.dialogVisibleGroup2 = false;
  19438. this.groupJson2 = {};
  19439. this.$forceUpdate();
  19440. })
  19441. .catch((err) => {
  19442. this.$message.error("网络不佳");
  19443. console.error(err);
  19444. });
  19445. },
  19446. lockChair() {
  19447. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19448. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19449. this.updateGroupJson();
  19450. },
  19451. selectGroup(index) {
  19452. this.getCourseDetail(2, index);
  19453. },
  19454. joinGroup(index) {
  19455. if (this.groupJson.islock == 2) {
  19456. this.$message.error("位置已被锁定,无法加入");
  19457. return;
  19458. }
  19459. if (
  19460. this.groupStudent[this.toolindex][index].length >
  19461. this.groupJson.number ||
  19462. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19463. ) {
  19464. this.$message.error("位置已满,无法加入");
  19465. return;
  19466. }
  19467. let params = [
  19468. {
  19469. cid: this.id,
  19470. stage: this.courseType,
  19471. task: this.taskCount,
  19472. tool: this.toolindex,
  19473. g: index,
  19474. uid: this.userid,
  19475. },
  19476. ];
  19477. this.ajax
  19478. .post(this.$store.state.api + "joinGroup", params)
  19479. .then((res) => {
  19480. this.$message.success("加入成功");
  19481. this.getCourseDetail(2);
  19482. })
  19483. .catch((err) => {
  19484. this.$message.error("网络不佳");
  19485. console.error(err);
  19486. });
  19487. },
  19488. exitGroup(id) {
  19489. if (this.groupJson.islock == 2) {
  19490. this.$message.error("位置已被锁定,无法退出");
  19491. return;
  19492. }
  19493. let params = [
  19494. {
  19495. gid: id,
  19496. },
  19497. ];
  19498. this.ajax
  19499. .post(this.$store.state.api + "exitGroup", params)
  19500. .then((res) => {
  19501. this.$message.success("退出成功");
  19502. this.getCourseDetail(2);
  19503. })
  19504. .catch((err) => {
  19505. this.$message.error("网络不佳");
  19506. console.error(err);
  19507. });
  19508. },
  19509. groupUpload(index, task, gindex) {
  19510. this.taskCount = task;
  19511. this.toolindex = index;
  19512. this.groupIndex = gindex;
  19513. this.dialogVisibleGroupWork = true;
  19514. },
  19515. updateGroupChair(user) {
  19516. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19517. el.label = index;
  19518. return index != user.group;
  19519. });
  19520. this.updateGroupUser = user;
  19521. this.dialogVisibleUpdateGroup = true;
  19522. },
  19523. updateChair() {
  19524. if (
  19525. this.groupStudent[this.toolindex][this.checkChair].length >
  19526. this.groupJson.number ||
  19527. this.groupStudent[this.toolindex][this.checkChair].length ==
  19528. this.groupJson.number
  19529. ) {
  19530. this.$message.error("位置已满,无法加入");
  19531. return;
  19532. }
  19533. let params = [
  19534. {
  19535. cid: this.id,
  19536. stage: this.courseType,
  19537. task: this.taskCount,
  19538. tool: this.toolindex,
  19539. g: this.checkChair,
  19540. uid: this.updateGroupUser.userid,
  19541. },
  19542. ];
  19543. this.ajax
  19544. .post(this.$store.state.api + "joinGroup", params)
  19545. .then((res) => {
  19546. this.$message.success("修改成功");
  19547. this.updateGroupUser = {};
  19548. this.checkChair = "";
  19549. this.updateGroupArray = {};
  19550. this.dialogVisibleUpdateGroup = false;
  19551. this.getCourseDetail(2);
  19552. })
  19553. .catch((err) => {
  19554. this.$message.error("网络不佳");
  19555. console.error(err);
  19556. });
  19557. },
  19558. deleteGroupChair(gindex) {
  19559. this.checkDeleteGroup = [];
  19560. this.deleteGroupUser = JSON.parse(
  19561. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19562. );
  19563. this.deleteGroupArray = this.groupJson.group[gindex];
  19564. this.groupIndex = gindex;
  19565. this.dialogVisibleDeleteGroup = true;
  19566. },
  19567. async deleteChair() {
  19568. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19569. const gid =
  19570. this.groupStudent[this.toolindex][this.groupIndex][
  19571. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19572. this.checkDeleteGroup[i]
  19573. )
  19574. ];
  19575. let params = [
  19576. {
  19577. gid: gid.id,
  19578. },
  19579. ];
  19580. var a = await this.deleteChairA(params);
  19581. if (i == this.checkDeleteGroup.length - 1) {
  19582. this.$message.success("退出成功");
  19583. this.dialogVisibleDeleteGroup = false;
  19584. this.deleteGroupUser = [];
  19585. this.deleteGroupArray = {};
  19586. this.groupIndex = "";
  19587. this.checkDeleteGroup = [];
  19588. this.getCourseDetail(2);
  19589. }
  19590. }
  19591. },
  19592. deleteChairA(params) {
  19593. return new Promise((resolve, reject) => {
  19594. this.ajax
  19595. .post(this.$store.state.api + "exitGroup", params)
  19596. .then((res) => {
  19597. resolve(1);
  19598. })
  19599. .catch((err) => {
  19600. this.$message.error("网络不佳");
  19601. console.error(err);
  19602. });
  19603. });
  19604. },
  19605. contract(i) {
  19606. if (this.isCloseList[i].isClose == 0) {
  19607. this.isCloseList[i].isClose = 1;
  19608. } else {
  19609. this.isCloseList[i].isClose = 0;
  19610. }
  19611. this.$forceUpdate();
  19612. },
  19613. openWordCloud(toolindex) {
  19614. let array = [];
  19615. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19616. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19617. array.push({ name: works });
  19618. }
  19619. if (this.isGroup) {
  19620. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19621. let works = this.courseGroup.group[i].works[toolindex];
  19622. for (var j = 0; j < works.length; j++) {
  19623. let answer = JSON.parse(works[j].works)[0].answer;
  19624. array.push({ name: answer });
  19625. }
  19626. }
  19627. }
  19628. this.wordCloudData = array;
  19629. this.dialogVisibleWordCloud = true;
  19630. },
  19631. uploadWorks(i) {
  19632. this.$confirm("确定导出作业吗?", "提示", {
  19633. confirmButtonText: "确定",
  19634. cancelButtonText: "取消",
  19635. type: "warning",
  19636. })
  19637. .then(() => {
  19638. const loading = this.$loading.service({
  19639. background: "rgba(255, 255, 255, 0.7)",
  19640. target: document.body,
  19641. text: "文件加载中...",
  19642. });
  19643. const _worksStudent = this.worksStudent;
  19644. let url = [];
  19645. var counts = {};
  19646. for (var l = 0; l < _worksStudent[i].length; l++) {
  19647. var item = _worksStudent[i][l];
  19648. var name = item.sName;
  19649. if (!counts.hasOwnProperty(name)) {
  19650. counts[name] = 0;
  19651. } else {
  19652. counts[name]++;
  19653. }
  19654. if (counts[name] > 0) {
  19655. item.sName += " (" + counts[name] + ")";
  19656. }
  19657. }
  19658. for (var l = 0; l < _worksStudent[i].length; l++) {
  19659. var item = _worksStudent[i][l];
  19660. if (
  19661. item.works.indexOf(
  19662. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19663. ) !== -1 &&
  19664. item.works.indexOf("img") === -1
  19665. ) {
  19666. url.push({ name: item.sName, url: item.works });
  19667. }
  19668. }
  19669. // var toolList = [
  19670. // { name: "电子白板", tool: 1 },
  19671. // { name: "思维导图", tool: 3 },
  19672. // { name: "协同文档", tool: 6 },
  19673. // { name: "思维网格", tool: 7 },
  19674. // { name: "素材库", tool: 8 },
  19675. // { name: "学习资料", tool: 17 },
  19676. // { name: "便签", tool: 2 },
  19677. // { name: "问卷调查", tool: 4 },
  19678. // { name: "选择题", tool: 45 },
  19679. // { name: "倒计时", tool: 10 },
  19680. // { name: "问答", tool: 15 },
  19681. // { name: "课程设计", tool: 26 },
  19682. // { name: "训练服务器", tool: 18 },
  19683. // { name: "作业提交", tool: 16 },
  19684. // { name: "批量上传", tool: 50 },
  19685. // { name: "AIoT Blockly", tool: 21 },
  19686. // { name: "AI Python", tool: 23 },
  19687. // { name: "AI Blockly", tool: 24 },
  19688. // { name: "目标管理", tool: 25 },
  19689. // { name: "数学画板", tool: 31 },
  19690. // { name: "翻译", tool: 28 },
  19691. // { name: "魔盒识字", tool: 37 },
  19692. // { name: "数学画板", tool: 31 },
  19693. // { name: "24点", tool: 38 },
  19694. // { name: "GeoGebra", tool: 39 },
  19695. // { name: "源码编辑", tool: 32 },
  19696. // { name: "个人评价", tool: 40 },
  19697. // { name: "选择匹配", tool: 41 },
  19698. // { name: "汉字宫", tool: 44 },
  19699. // { name: "排序", tool: 47 },
  19700. // { name: "表格", tool: 48 },
  19701. // { name: "文档", tool: 52 },
  19702. // { name: "学生分组", tool: 49 },
  19703. // { name: "CocoPi", tool: 57 },
  19704. // { name: "模拟驾驶", tool: 58 },
  19705. // { name: "路径搜索", tool: 59 },
  19706. // { name: "深度学习", tool: 60 },
  19707. // { name: "全历史", tool: 61 },
  19708. // { name: "交互视频", tool: 62 },
  19709. // { name: "海龟编程", tool: 63 },
  19710. // { name: "挑人", tool: 65 },
  19711. // { name: "公式编辑", tool: 66 },
  19712. // { name: "分子结构", tool: 67 },
  19713. // { name: "时间轴", tool: 68 },
  19714. // ];
  19715. // var toolName = "";
  19716. // for(var w = 0;w<toolList.length;w++){
  19717. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19718. // toolName = toolList[w].name;
  19719. // }
  19720. // }
  19721. console.log(url);
  19722. this.downLoadAll(url, loading);
  19723. })
  19724. .catch(() => {});
  19725. },
  19726. downLoadAll(url, loading) {
  19727. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19728. const zip = new JSZip();
  19729. const cache = {};
  19730. const promises = [];
  19731. data.forEach((item) => {
  19732. const promise = getFile(item.url).then((data) => {
  19733. if (data.data != 1) {
  19734. // 下载文件, 并存成ArrayBuffer对象
  19735. const file_name =
  19736. item.name +
  19737. "." +
  19738. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19739. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19740. cache[file_name] = data.data;
  19741. }
  19742. });
  19743. promises.push(promise);
  19744. });
  19745. Promise.all(promises).then(() => {
  19746. zip.generateAsync({ type: "blob" }).then((content) => {
  19747. // 生成二进制流
  19748. FileSaver.saveAs(
  19749. content,
  19750. this.courseDetail.title + "-" + "作业提交工具.zip"
  19751. ); // 利用file-saver保存文件 自定义文件名
  19752. setTimeout(() => {
  19753. loading.close();
  19754. }, 2000);
  19755. });
  19756. });
  19757. },
  19758. pickStudent(stu) {
  19759. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19760. return;
  19761. }
  19762. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19763. confirmButtonText: "确定",
  19764. cancelButtonText: "取消",
  19765. type: "warning",
  19766. })
  19767. .then(() => {
  19768. let params = [
  19769. {
  19770. uid: stu.userid,
  19771. cid: this.id,
  19772. stage: this.courseType,
  19773. task: this.taskCount,
  19774. tool: this.toolindex,
  19775. },
  19776. ];
  19777. this.ajax
  19778. .post(this.$store.state.api + "updateCoursePick", params)
  19779. .then((res) => {
  19780. this.$message.success("操作成功");
  19781. this.getPick();
  19782. })
  19783. .catch((err) => {
  19784. this.$message.error("网络不佳");
  19785. console.error(err);
  19786. });
  19787. })
  19788. .catch(() => {});
  19789. },
  19790. selectUser(){
  19791. let params = {
  19792. userid: this.userid,
  19793. };
  19794. this.ajax
  19795. .get(this.$store.state.api + "selectUser", params)
  19796. .then((res) => {
  19797. this.userMes = res.data[0];
  19798. })
  19799. .catch((err) => {
  19800. console.error(err);
  19801. });
  19802. },
  19803. setEngText(i){
  19804. this.newEngIndex = i;
  19805. this.$forceUpdate();
  19806. },
  19807. addCorrect(){
  19808. this.$confirm("你确定提交批改嘛?", "提示", {
  19809. confirmButtonText: "确定",
  19810. showCancelButton: false,
  19811. closeOnClickModal: false,
  19812. type: "warning",
  19813. })
  19814. .then(() => {
  19815. let params = {
  19816. cid: this.id,
  19817. s: parseInt(this.courseType),
  19818. t: this.taskCount,
  19819. tool: this.toolindex,
  19820. wid: this.engWid,
  19821. c: this.userid,
  19822. 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) : "",
  19823. };
  19824. this.ajax
  19825. .get(this.$store.state.api + "addEngC", params)
  19826. .then((res) => {
  19827. this.$message.success("提交成功");
  19828. this.engUpdateDialogVisible = false;
  19829. })
  19830. .catch((err) => {
  19831. console.error(err);
  19832. });
  19833. })
  19834. .catch(() => {});
  19835. },
  19836. selectEngC(id,z){
  19837. let params = {
  19838. workid: id,
  19839. };
  19840. this.ajax
  19841. .get(this.$store.state.api + "selectEngC", params)
  19842. .then((res) => {
  19843. if(res.data[0].length == 0){
  19844. this.newEnglishList.engTitle = z.engTitle;
  19845. this.newEnglishList.engText = z.engText;
  19846. }else{
  19847. var a = res.data[0];
  19848. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19849. if(this.userMes[0].type == 2){
  19850. var snum = 0;
  19851. for(var i = 0;i<a.length;i++){
  19852. if(this.userMes[0].userid == a[i].correct){
  19853. this.newEnglishList = JSON.parse(a[i].cWork);
  19854. snum = 1;
  19855. }
  19856. }
  19857. if(snum == 0){
  19858. this.newEnglishList = { engTitle:"",engText:"" };
  19859. this.newEnglishList.engTitle = z.engTitle;
  19860. this.newEnglishList.engText = z.engText;
  19861. }
  19862. }else if(this.userMes[0].type == 1){
  19863. var num = 0;
  19864. for(var w= 0;w<a.length;w++){
  19865. if(this.userMes[0].userid == a[w].correct){
  19866. num = 1;
  19867. }
  19868. }
  19869. if(num == 0){
  19870. this.isNoUserid = true;
  19871. var c = JSON.parse(JSON.stringify(z));
  19872. this.oldEnglishJson1 = c;
  19873. }else{
  19874. this.isNoUserid = false;
  19875. }
  19876. var b = a.sort((item, index) => {
  19877. console.log(item)
  19878. if (item.correct === this.userMes[0].userid) {
  19879. return -1; // 将a移到前面
  19880. } else if (index.correct === this.userMes[0].userid) {
  19881. return 1; // 将b移到前面
  19882. } else {
  19883. return 0; // 保持默认顺序
  19884. }
  19885. });
  19886. for(var p = 0;p<b.length;p++){
  19887. for(var y = 0;y<ppp.length;y++){
  19888. if(b[p].id == ppp[y].id){
  19889. b[p].cWork = JSON.parse(ppp[y].cWork);
  19890. break
  19891. }
  19892. }
  19893. }
  19894. this.newEnglishList1 = b;
  19895. }
  19896. }
  19897. this.greyType = false;
  19898. setTimeout(() => {
  19899. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19900. if(this.newEnglishList1.length > 0){
  19901. if(this.isNoUserid == true){
  19902. this.engListLength = this.newEnglishList1.length + 1;
  19903. this.newEngIndex = -1;
  19904. }else{
  19905. this.engListLength = this.newEnglishList1.length;
  19906. this.newEngIndex = 0;
  19907. }
  19908. }
  19909. if(this.userMes[0].type == 2){
  19910. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19911. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19912. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19913. }else if(this.newEngIndex == -1){
  19914. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19915. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19916. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19917. }
  19918. }, 500);
  19919. this.engUpdateDialogVisible = true;
  19920. this.$forceUpdate();
  19921. })
  19922. .catch((err) => {
  19923. console.error(err);
  19924. });
  19925. },
  19926. getPick() {
  19927. let params = {
  19928. cid: this.id,
  19929. };
  19930. this.ajax
  19931. .get(this.$store.state.api + "getPick", params)
  19932. .then((res) => {
  19933. let array = [];
  19934. for (var i = 0; i < res.data[0].length; i++) {
  19935. array.push(res.data[0][i].userid);
  19936. }
  19937. this.isPickStudent = array;
  19938. if (array.indexOf(this.userid) !== -1) {
  19939. this.$confirm("你被老师选到啦!", "提示", {
  19940. confirmButtonText: "确定",
  19941. showCancelButton: false,
  19942. closeOnClickModal: false,
  19943. type: "warning",
  19944. })
  19945. .then(() => {
  19946. let pa = [
  19947. {
  19948. uid: this.userid,
  19949. cid: this.id,
  19950. },
  19951. ];
  19952. this.ajax
  19953. .post(this.$store.state.api + "deletePick", pa)
  19954. .then((res) => {
  19955. this.getPick();
  19956. })
  19957. .catch((err) => {
  19958. this.$message.error("网络不佳");
  19959. console.error(err);
  19960. });
  19961. })
  19962. .catch(() => {});
  19963. }
  19964. })
  19965. .catch((err) => {
  19966. this.$message.error("网络不佳");
  19967. console.error(err);
  19968. });
  19969. },
  19970. foldEva() {
  19971. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19972. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19973. } else {
  19974. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19975. setTimeout(() => {
  19976. this.checkEva();
  19977. setTimeout(() => {
  19978. this.checkEva();
  19979. }, 500);
  19980. }, 0);
  19981. }
  19982. this.$forceUpdate();
  19983. },
  19984. panToolHeight(tool) {
  19985. var _tool = document.querySelectorAll('#'+tool)[0]
  19986. var _toolA = _tool ? _tool.offsetHeight : 0
  19987. var _toolC = 0
  19988. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19989. let boolean2 = (_toolA > _toolC) ? true : false
  19990. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19991. this.$forceUpdate();
  19992. },
  19993. async checkLink(url) {
  19994. // console.log(url)
  19995. let _url = url
  19996. try {
  19997. const response = await fetch(url);
  19998. if(!response.ok){
  19999. _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]))
  20000. }
  20001. // console.log(response.ok)
  20002. } catch (error) {
  20003. console.error('Error checking link:', error);
  20004. // console.log(false)
  20005. _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]))
  20006. }
  20007. // console.log(_url)
  20008. return _url
  20009. },
  20010. getScoreList(){
  20011. let params = {
  20012. cid: this.id,
  20013. };
  20014. this.ajax
  20015. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20016. .then((res) => {
  20017. let result = res.data;
  20018. this.scoreList.datalist = result[0];
  20019. this.scoreList.isScoreList = result[1];
  20020. })
  20021. .catch((err) => {
  20022. console.error(err);
  20023. });
  20024. },
  20025. setClassRoomHelperWidth(width){
  20026. this.classRoomHelperWidth = width
  20027. },
  20028. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  20029. this.$refs.choseWorksDetailDialogRef.open({
  20030. toolType:tooc,
  20031. tType: this.tType,
  20032. toolIndex: toolIndex
  20033. });
  20034. this.changeSplitScreenBehavior({
  20035. code: 1,
  20036. form: {
  20037. toolType:tooc,
  20038. toolIndex: toolIndex,
  20039. courseType: this.courseType,
  20040. taskCount: this.taskCount,
  20041. type: 0
  20042. }
  20043. });
  20044. },
  20045. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  20046. this.$refs.statisticalAnalysisRef.open({
  20047. worksStudent: this.worksStudent[toolIndex],
  20048. tType: this.tType,
  20049. toolIndex: toolIndex
  20050. });
  20051. this.changeSplitScreenBehavior({
  20052. code: 2,
  20053. form: {
  20054. toolType:4,
  20055. courseType: this.courseType,
  20056. taskCount: this.taskCount,
  20057. toolIndex: toolIndex,
  20058. type: 0
  20059. }
  20060. });
  20061. },
  20062. statisticalAnalysisRefresh(toolIndex) {
  20063. this.$refs.statisticalAnalysisRef.refreshData({
  20064. worksStudent: this.worksStudent[toolIndex],
  20065. tType: this.tType,
  20066. toolIndex: toolIndex
  20067. });
  20068. },
  20069. async splitScreenBehavior(type = 0) {
  20070. // return;
  20071. if (this.splitScreenData.loading)
  20072. return this.$message.info("操作过快,请稍等");
  20073. if (type == 0) {
  20074. //关闭分屏
  20075. this.splitScreenData.isOpen = false;
  20076. // this.splitScreenData.userId = "";
  20077. // this.splitScreenData.uid = "";
  20078. this.splitScreenData.behavior = null;
  20079. await this.updateSplitScreenData(1);
  20080. this.$message.success("已关闭分屏模式");
  20081. this.studentFreePreview(false);
  20082. this.OpenJobPreview(false);
  20083. // this.followingMode(false);
  20084. } else if (type == 1) {
  20085. //开启分屏
  20086. this.splitScreenData.isOpen = true;
  20087. this.splitScreenData.userId = this.userid;
  20088. this.splitScreenData.uid = this.splitScreenData.myUid;
  20089. this.splitScreenData.behavior = null;
  20090. let status = await this.updateSplitScreenData(0);
  20091. this.changeSplitScreenBehavior({form:{}})
  20092. if (status == 1) {
  20093. this.$message.success("已开启分屏");
  20094. this.studentFreePreview(true);
  20095. this.OpenJobPreview(true);
  20096. // this.followingMode(true);
  20097. } else {
  20098. this.splitScreenData.isOpen = false;
  20099. this.splitScreenData.userId = "";
  20100. this.splitScreenData.uid = "";
  20101. this.splitScreenData.behavior = null;
  20102. this.$message.success("分屏开启失败");
  20103. }
  20104. }
  20105. },
  20106. getSplitScreenData() {
  20107. // return;
  20108. if (this.tType != 1) return;
  20109. let params = {
  20110. cid: this.id
  20111. };
  20112. this.ajax
  20113. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  20114. .then(async res => {
  20115. let data = res.data[0][0]["splitScreenData"];
  20116. console.log("获取了分屏数:", data);
  20117. if (data) {
  20118. data = JSON.parse(data);
  20119. if (
  20120. !this.splitScreenData.isOpen &&
  20121. data.isOpen &&
  20122. this.splitScreenData.myUid == data.uid
  20123. ) {
  20124. this.splitScreenData.isOpen = false;
  20125. this.splitScreenData.userId = "";
  20126. this.splitScreenData.uid = "";
  20127. this.splitScreenData.behavior = null;
  20128. await this.updateSplitScreenData(1);
  20129. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  20130. this.splitScreenData.isOpen = true;
  20131. this.splitScreenData.uid = data.uid;
  20132. this.splitScreenData.userId = data.userId;
  20133. this.splitScreenData.behavior = data.behavior;
  20134. this.$message.success("分屏模式已开启");
  20135. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  20136. this.splitScreenData.isOpen = false;
  20137. this.splitScreenData.userId = "";
  20138. this.splitScreenData.uid = "";
  20139. this.splitScreenData.behavior = null;
  20140. this.$message.error("已结束分屏模式");
  20141. } else if (this.splitScreenData.isOpen && data.isOpen) {
  20142. this.splitScreenData.isOpen = true;
  20143. this.splitScreenData.uid = data.uid;
  20144. this.splitScreenData.userId = data.userId;
  20145. this.splitScreenData.behavior = data.behavior;
  20146. }
  20147. this.doSplitScreenBehavior();
  20148. } else {
  20149. if (this.splitScreenData.isOpen) {
  20150. this.splitScreenData.isOpen = false;
  20151. this.splitScreenData.userId = "";
  20152. this.splitScreenData.uid = "";
  20153. this.splitScreenData.behavior = null;
  20154. this.$message.error("已结束分屏模式");
  20155. }
  20156. }
  20157. })
  20158. .catch(e => {
  20159. console.log("获取分屏数出错:", e);
  20160. });
  20161. },
  20162. doSplitScreenBehavior() {
  20163. if (
  20164. this.splitScreenData.isOpen &&
  20165. this.splitScreenData.uid != this.splitScreenData.myUid
  20166. ) {
  20167. let behavior = this.splitScreenData.behavior;
  20168. if (behavior) {
  20169. if (behavior.code === 99) {
  20170. //初始化
  20171. this.fullDialogVisible = false;
  20172. if(this.$refs.choseWorksDetailDialogRef.show){
  20173. this.$refs.choseWorksDetailDialogRef.close();
  20174. }
  20175. if(this.$refs.statisticalAnalysisRef.show){
  20176. this.$refs.statisticalAnalysisRef.close();
  20177. }
  20178. } else if (behavior.code === 0) {
  20179. //开启内容列表弹窗
  20180. this.checkFileFull1(behavior.form[0], behavior.form[1]);
  20181. } else if (behavior.code === 1) {
  20182. //关于选择题的作业详细的操作
  20183. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  20184. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  20185. this.courseType = behavior.form.courseType;
  20186. this.taskCount = behavior.form.taskCount;
  20187. }
  20188. this.$nextTick(() => {
  20189. if (this.$refs.choseWorksDetailDialogRef.show) {
  20190. //已经打开了
  20191. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType})
  20192. } else {
  20193. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,})
  20194. }
  20195. });
  20196. }else if(behavior.code === 2){
  20197. if(this.$refs.statisticalAnalysisRef.show){
  20198. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  20199. }else{
  20200. this.$refs.statisticalAnalysisRef.open({
  20201. worksStudent: this.worksStudent[behavior.form.toolIndex],
  20202. tType: this.tType,
  20203. toolIndex: behavior.form.toolIndex
  20204. });
  20205. }
  20206. }
  20207. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  20208. if(this.courseType !=behavior.form.courseType){
  20209. this.courseType = behavior.form.courseType;
  20210. }
  20211. if(this.taskCount !=behavior.form.taskCount){
  20212. this.taskCount = behavior.form.taskCount;
  20213. }
  20214. var a = document.scrollingElement;
  20215. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  20216. if (target) {
  20217. target.scrollIntoView(true);
  20218. setTimeout(() => {
  20219. a.scrollTop = 0
  20220. }, 0);
  20221. }
  20222. if(behavior.form.navId){
  20223. this.navId = behavior.form.navId
  20224. }
  20225. this.setContent2(false)
  20226. }
  20227. } else {
  20228. }
  20229. }
  20230. },
  20231. updateSplitScreenData(empty = 0) {
  20232. return new Promise(resolve => {
  20233. if(this.userid!==this.courseDetail.userid){
  20234. if(!this.courseDetail.userid){
  20235. return setTimeout(()=>{
  20236. this.updateSplitScreenData(empty)
  20237. },2000)
  20238. }
  20239. return;
  20240. };
  20241. if (
  20242. this.splitScreenData.uid == this.splitScreenData.myUid &&
  20243. this.splitScreenData.userId == this.userid
  20244. ) {
  20245. this.splitScreenData.loading = true;
  20246. let params = [
  20247. {
  20248. cid: this.id,
  20249. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  20250. }
  20251. ];
  20252. this.ajax
  20253. .post(
  20254. this.$store.state.api + "update_courseSplitScreenData",
  20255. params
  20256. )
  20257. .then(res => {
  20258. this.splitScreenData.loading = false;
  20259. if (res.data == 1) {
  20260. resolve(1);
  20261. console.log("修改分屏数据成功");
  20262. }
  20263. })
  20264. .catch(e => {
  20265. this.splitScreenData.loading = false;
  20266. console.log("修改分屏数据失败", e);
  20267. resoleve(0);
  20268. });
  20269. } else if (empty == 2 && this.tType == 1) {
  20270. let params = [
  20271. {
  20272. cid: this.id,
  20273. nData: ""
  20274. }
  20275. ];
  20276. return this.ajax
  20277. .post(
  20278. this.$store.state.api + "update_courseSplitScreenData",
  20279. params
  20280. )
  20281. .then(_ => resolve(1))
  20282. .catch(_ => resolve(0));
  20283. } else {
  20284. return resolve(0);
  20285. }
  20286. });
  20287. },
  20288. changeSplitScreenBehavior(newValue) {
  20289. if (
  20290. this.splitScreenData.isOpen &&
  20291. this.splitScreenData.uid == this.splitScreenData.myUid
  20292. ) {
  20293. let _behavior = null;
  20294. if(!newValue){
  20295. _behavior = {}
  20296. }else{
  20297. _behavior = newValue
  20298. }
  20299. if(_behavior.form){
  20300. _behavior.form.taskCount = this.taskCount;
  20301. _behavior.form.courseType = this.courseType
  20302. }else{
  20303. _behavior.form = {
  20304. taskCount:this.taskCount,
  20305. courseType:this.courseType
  20306. }
  20307. }
  20308. this.splitScreenData.behavior = _behavior;
  20309. this.updateSplitScreenData(0);
  20310. }
  20311. },
  20312. studentFreePreview(flag) {
  20313. this.IsLookOpen = flag;
  20314. this.followingMode(flag)
  20315. this.updateLookOpen();
  20316. },
  20317. OpenJobPreview(flag) {
  20318. this.sIsOpen = flag;
  20319. this.updateSLook();
  20320. },
  20321. followingMode(flag) {
  20322. this.IsFollow = flag;
  20323. this.updateFollow();
  20324. }
  20325. },
  20326. directives: {
  20327. // 使用局部注册指令的方式
  20328. resize: {
  20329. // 指令的名称
  20330. bind(el, binding) {
  20331. // el为绑定的元素,binding为绑定给指令的对象
  20332. let width = "",
  20333. height = "";
  20334. function isReize() {
  20335. const style = document.defaultView.getComputedStyle(el);
  20336. if (width !== style.width || height !== style.height) {
  20337. binding.value(); // 关键
  20338. }
  20339. width = style.width;
  20340. height = style.height;
  20341. }
  20342. el.__vueSetInterval__ = setInterval(isReize, 300);
  20343. },
  20344. unbind(el) {
  20345. clearInterval(el.__vueSetInterval__);
  20346. },
  20347. },
  20348. autoHeight: {
  20349. update(el, binding) {
  20350. const { value } = binding
  20351. if (value && typeof value === 'number') {
  20352. el.style.height = `${value}px`
  20353. } else {
  20354. el.style.height = 'auto'
  20355. }
  20356. },
  20357. componentUpdated(el) {
  20358. el.style.height = `${el.scrollHeight + 5}px`
  20359. },
  20360. },
  20361. },
  20362. beforeDestroy() {
  20363. window.onresize = null;
  20364. clearInterval(this.timer);
  20365. this.timer = null;
  20366. clearInterval(this.opertimer);
  20367. this.opertimer = null;
  20368. this.updateSplitScreenData(1);
  20369. },
  20370. computed: {
  20371. getHeight(){
  20372. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20373. },
  20374. contentConvent() {
  20375. return function (c) {
  20376. return c
  20377. ? c
  20378. .replaceAll(/\r\n/g, "<br/>")
  20379. .replaceAll(/\n/g, "<br/>")
  20380. .replaceAll(/\s/g, " &nbsp")
  20381. : "";
  20382. };
  20383. },
  20384. MarkdownT() {
  20385. return function (c) {
  20386. let md = new MarkdownIt();
  20387. return c
  20388. ? md.render(c) : "";
  20389. };
  20390. },
  20391. commentRight(){
  20392. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  20393. return "35px";
  20394. }
  20395. return `calc(${this.classRoomHelperWidth} + 5px)`
  20396. // if(this.$refs["classRoomHelperRef"].type==0){
  20397. // return "100px";
  20398. // }else if(this.$refs["classRoomHelperRef"].type==1){
  20399. // return "502px"
  20400. // }else{
  20401. // return "0px"
  20402. // }
  20403. },
  20404. checkUpload() {
  20405. return function () {
  20406. var studentK = [];
  20407. if (this.plworkFile.length > 0) {
  20408. for (var z = 0; z < this.plworkFile.length; z++) {
  20409. studentK.push(this.plworkFile[z].username);
  20410. }
  20411. studentK = studentK.join(",");
  20412. }
  20413. var a = this.uploadStudentJuri.filter((el) => {
  20414. return studentK.indexOf(el.userid) == -1;
  20415. });
  20416. return a;
  20417. };
  20418. },
  20419. getSName() {
  20420. return function (name) {
  20421. var check = name;
  20422. this.uploadStudentJuri.forEach((el) => {
  20423. if (el.userid == check) {
  20424. check = el.name ? el.name : el.username;
  20425. }
  20426. });
  20427. return check;
  20428. };
  20429. },
  20430. getImgList() {
  20431. return function (val) {
  20432. let srcList = []; // 定义一个数组用来接收后面的img地址
  20433. val.replace(
  20434. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  20435. function (match, capture) {
  20436. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  20437. srcList.push(capture);
  20438. }
  20439. );
  20440. return srcList;
  20441. };
  20442. },
  20443. retrnToolHeight(){
  20444. return function (tool) {
  20445. var _tool = document.querySelectorAll('#'+tool)[0]
  20446. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  20447. };
  20448. },
  20449. Correct() {
  20450. return function (c,d) {
  20451. let w = "";
  20452. let a = this.correctWord;
  20453. for(var k = 0;k<a.length;k++){
  20454. //diffWordsWithSpace
  20455. if(a.length > 1){
  20456. if(a[k].added == true){
  20457. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20458. }else if(a[k].removed == true){
  20459. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20460. }else{
  20461. w += '<span>' + a[k].value + '</span>';
  20462. }
  20463. }else{
  20464. w = c
  20465. }
  20466. console.log("👇👇!+++==")
  20467. console.log(w)
  20468. //diffChars方法
  20469. // if(w == ""){
  20470. // if(a.length > 1){
  20471. // if(a[k].added == true){
  20472. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20473. // }else if(a[k].removed == true){
  20474. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20475. // }
  20476. // }else{
  20477. // w = c
  20478. // }
  20479. // }else{
  20480. // if(k == a.length - 1){
  20481. // if(a[k].added == true){
  20482. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20483. // }else if(a[k].removed == true){
  20484. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20485. // }
  20486. // }else{
  20487. // if(a[k].added == true){
  20488. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20489. // }else if(a[k].removed == true){
  20490. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20491. // }
  20492. // }
  20493. // }
  20494. }
  20495. c = w;
  20496. return c;
  20497. };
  20498. },
  20499. },
  20500. mounted() {
  20501. document.body.addEventListener("click", (e) => {
  20502. if (this.isUpdateToolDetail1) {
  20503. this.updateToolDetail(this.toolDetailIndex);
  20504. }
  20505. });
  20506. if (this.screenType == 2) {
  20507. window.parent.postMessage({ allScreen: 4 }, "*");
  20508. } else if (this.screenType == 3) {
  20509. window.parent.postMessage({ allScreen: 5 }, "*");
  20510. } else if (this.screenType == 1) {
  20511. window.parent.postMessage({ allScreen: 6 }, "*");
  20512. }
  20513. this.setOperationTime();
  20514. this.selectEva();
  20515. this.getCourseDetail();
  20516. this.selectCount();
  20517. this.getHomeWork();
  20518. this.selectUser();
  20519. this.getAIJ();
  20520. this.contentDialog = true;
  20521. this.setContent2(true);
  20522. if (this.tType == 4) {
  20523. this.pzDialog = true;
  20524. this.selectPz();
  20525. }
  20526. // 获取评分列表
  20527. this.getScoreList()
  20528. this.updateSplitScreenData(2);
  20529. this.splitScreenData.myUid = uuidv4();
  20530. document.scrollingElement.scrollTop = 0;
  20531. window.addEventListener("resize", () => {
  20532. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20533. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20534. if (this.showType == 2 || this.showType == 3) {
  20535. document.getElementsByClassName("navBox")[0].style.height =
  20536. a - 40 + 0+ "px";
  20537. } else {
  20538. document.getElementsByClassName("navBox")[0].style.height =
  20539. a - 40 + "px";
  20540. }
  20541. });
  20542. let _this = this;
  20543. setTimeout(() => {
  20544. // _this.vedioTime = [];
  20545. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20546. // _this.vedioTime[i] = document.getElementsByClassName(
  20547. // "vjs-duration-display"
  20548. // )[i].textContent;
  20549. // }
  20550. }, 1000);
  20551. },
  20552. };
  20553. </script>
  20554. <style scoped>
  20555. @media screen and (max-width: 1280px) {
  20556. /* .courseIndex > div:first-child(2) {
  20557. width: 15% !important;
  20558. } */
  20559. /* .navText {
  20560. width: 120px !important;
  20561. } */
  20562. .evaCss {
  20563. flex-direction: column !important;
  20564. align-items: center !important;
  20565. }
  20566. .elist_input {
  20567. width: 90% !important;
  20568. }
  20569. .dialog_diy1 >>> .el-dialog {
  20570. width: 100% !important;
  20571. }
  20572. .rightWidthCss {
  20573. width: 100% !important;
  20574. }
  20575. .dialog_diy3 >>> .el-dialog {
  20576. width: 100% !important;
  20577. }
  20578. .addToolCss {
  20579. right: 0 !important;
  20580. width: 100% !important;
  20581. min-width: unset !important;
  20582. }
  20583. }
  20584. .evaCssMax {
  20585. flex-direction: column !important;
  20586. align-items: center !important;
  20587. }
  20588. .dialog_diy >>> .el-dialog {
  20589. margin-top: 10vh !important;
  20590. }
  20591. .body_student {
  20592. width: 77%;
  20593. height: 100%;
  20594. position: absolute;
  20595. left: 22%;
  20596. top: 0;
  20597. }
  20598. .student_head {
  20599. width: 100%;
  20600. margin: 20px auto 0;
  20601. padding-bottom: 20px;
  20602. display: flex;
  20603. flex-direction: column;
  20604. flex-wrap: nowrap;
  20605. align-items: flex-start;
  20606. justify-content: flex-start;
  20607. }
  20608. .pb_left {
  20609. width: 20%;
  20610. margin-right: 10px;
  20611. background: rgb(255, 255, 255);
  20612. position: fixed;
  20613. height: calc(100% - 40px);
  20614. border-radius: 20px;
  20615. padding-bottom: 15px;
  20616. box-sizing: border-box;
  20617. }
  20618. .wheel > img,
  20619. .project > img,
  20620. .star > img,
  20621. .evaluate > img,
  20622. .up_photo > img,
  20623. .chapter_add > img,
  20624. .deleteWord > img,
  20625. .question > img,
  20626. .homework > img {
  20627. width: 100%;
  20628. height: 100%;
  20629. }
  20630. .upCover > img {
  20631. width: 131px;
  20632. height: 69px;
  20633. object-fit: cover;
  20634. }
  20635. .upCover {
  20636. width: calc(100% / 3.5);
  20637. position: relative;
  20638. margin: 0 15px 10px 0;
  20639. display: flex;
  20640. flex-direction: column;
  20641. flex-wrap: nowrap;
  20642. justify-content: center;
  20643. align-content: center;
  20644. align-items: center;
  20645. height: fit-content;
  20646. }
  20647. .upCover2 {
  20648. width: 100%;
  20649. position: relative;
  20650. margin: 0 15px 10px 0;
  20651. display: flex;
  20652. flex-direction: column;
  20653. flex-wrap: nowrap;
  20654. justify-content: center;
  20655. align-content: center;
  20656. align-items: center;
  20657. }
  20658. .upCover2 > img {
  20659. width: 100%;
  20660. height: 90px;
  20661. object-fit: contain;
  20662. }
  20663. .chapter_add {
  20664. width: 120px;
  20665. position: relative;
  20666. text-align: center;
  20667. }
  20668. .isAddThings {
  20669. margin-top: 20px;
  20670. position: relative;
  20671. text-align: center;
  20672. background: #f7f8fa;
  20673. height: 90px;
  20674. width: 90px;
  20675. display: flex;
  20676. flex-direction: column;
  20677. justify-content: center;
  20678. }
  20679. .deleteWord {
  20680. width: 22px;
  20681. height: 22px;
  20682. position: absolute;
  20683. right: -5px;
  20684. top: -5px;
  20685. cursor: pointer;
  20686. }
  20687. .box_course {
  20688. /* width: 60%; */
  20689. width: calc(100% - 300px);
  20690. }
  20691. .wheel {
  20692. width: 100%;
  20693. /* height: 100%; */
  20694. height: 650px;
  20695. }
  20696. .right_box {
  20697. display: flex;
  20698. flex-direction: column;
  20699. margin-left: 30px;
  20700. justify-content: space-around;
  20701. }
  20702. .right_box_title {
  20703. font-size: 23px;
  20704. }
  20705. .people {
  20706. display: flex;
  20707. }
  20708. .student_body {
  20709. width: 100%;
  20710. margin: 0 auto;
  20711. margin-top: 10px;
  20712. padding: 0 0 20px;
  20713. }
  20714. .study_top {
  20715. margin-top: 100px;
  20716. width: 100%;
  20717. height: auto;
  20718. padding-bottom: 20px;
  20719. }
  20720. .study_top .checkbox {
  20721. display: flex;
  20722. align-items: center;
  20723. padding: 15px 0 15px 30px;
  20724. flex: 0 0 auto;
  20725. font-weight: bold;
  20726. border-bottom: 1px solid #eee;
  20727. }
  20728. .study_top .check {
  20729. padding-bottom: 5px;
  20730. text-align: center;
  20731. cursor: pointer;
  20732. height: 30px;
  20733. box-sizing: border-box;
  20734. display: flex;
  20735. }
  20736. .study_top .checked {
  20737. border-bottom: 4px solid #3fc6a0;
  20738. padding-bottom: 5px;
  20739. color: #3fc6a0;
  20740. display: flex;
  20741. height: 35px;
  20742. }
  20743. .study_top .checked > div,
  20744. .study_top .check > div {
  20745. margin-right: 5px;
  20746. }
  20747. .videoTop {
  20748. display: flex;
  20749. flex-direction: row;
  20750. justify-content: space-between;
  20751. background: #fff;
  20752. align-items: center;
  20753. width: 95%;
  20754. padding: 20px;
  20755. }
  20756. .filebox {
  20757. display: flex;
  20758. flex-wrap: wrap;
  20759. flex-direction: column;
  20760. padding: 0 0 5px;
  20761. position: relative;
  20762. }
  20763. .filebox:before {
  20764. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20765. position: absolute;
  20766. top: 20px;
  20767. left: 13px;
  20768. border-left: 2px dotted #cad1dc;
  20769. height: calc(100% - 15px);
  20770. }
  20771. .toolHeng2 > div:last-child::before {
  20772. height: calc(100% - 43px);
  20773. }
  20774. .filebox .tooldetail {
  20775. width: calc(100%);
  20776. margin: 0px 12px;
  20777. padding: 12px;
  20778. line-height: 30px;
  20779. word-break: break-word;
  20780. background: #ffffff;
  20781. border-radius: 8px 8px 8px 8px;
  20782. opacity: 1;
  20783. border: 1px solid #cad1dc;
  20784. overflow:hidden;
  20785. box-sizing:border-box;
  20786. }
  20787. .file {
  20788. display: flex;
  20789. flex-direction: column;
  20790. align-items: center;
  20791. justify-content: center;
  20792. cursor: pointer;
  20793. width: 200px;
  20794. }
  20795. .file div {
  20796. margin-top: 10px;
  20797. width: 150px;
  20798. text-align: center;
  20799. overflow: hidden;
  20800. white-space: nowrap;
  20801. text-overflow: ellipsis;
  20802. }
  20803. .media {
  20804. display: flex;
  20805. flex-direction: column;
  20806. align-items: center;
  20807. justify-content: center;
  20808. margin: 0 20px 20px 0;
  20809. cursor: pointer;
  20810. margin: 12px 0 5px 15px;
  20811. overflow: hidden;
  20812. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  20813. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  20814. box-sizing: border-box;
  20815. }
  20816. .media img {
  20817. height: 90px;
  20818. width: 160px;
  20819. object-fit: cover;
  20820. }
  20821. .media .title {
  20822. padding: 5px;
  20823. text-align: left;
  20824. width: 100%;
  20825. box-sizing: border-box;
  20826. }
  20827. .media .btn {
  20828. width: 100%;
  20829. height: 35px;
  20830. line-height: 35px;
  20831. color: #fff;
  20832. background: #606060;
  20833. text-align: center;
  20834. overflow: hidden;
  20835. white-space: nowrap;
  20836. text-overflow: ellipsis;
  20837. }
  20838. .detail_content_top {
  20839. width: 100%;
  20840. padding: 25px 0 25px 0;
  20841. }
  20842. .detail_title {
  20843. text-align: center;
  20844. font-size: 24px;
  20845. }
  20846. .detail_time {
  20847. font-size: 13px;
  20848. padding: 15px 0 0 40px;
  20849. }
  20850. .detail_content {
  20851. line-height: 2pc;
  20852. width: 90%;
  20853. margin: 0 auto;
  20854. padding-top: 30px;
  20855. text-indent: 30px;
  20856. overflow: auto;
  20857. height: 200px;
  20858. }
  20859. .score_box >>> .el-rate {
  20860. margin-left: 10px;
  20861. }
  20862. .dialog_change >>> .el-dialog {
  20863. border-radius: 5px;
  20864. }
  20865. .dialog_change >>> .el-dialog__header {
  20866. background: #f2f2f2;
  20867. text-align: center;
  20868. }
  20869. .dialog_change >>> .el-dialog__title {
  20870. line-height: 5px;
  20871. }
  20872. .dialog_change >>> .el-dialog__body {
  20873. background: #fff;
  20874. padding: 10px 20px;
  20875. }
  20876. .score_box {
  20877. display: flex;
  20878. align-items: center;
  20879. margin-bottom: 18px;
  20880. margin-top: 20px;
  20881. }
  20882. .up_photo {
  20883. width: 120px;
  20884. cursor: pointer;
  20885. margin-top: 10px;
  20886. }
  20887. .up_photo2 {
  20888. width: 180px;
  20889. box-sizing: border-box;
  20890. min-width: 180px;
  20891. height: 180px;
  20892. max-height: 180px;
  20893. min-height: 180px;
  20894. cursor: pointer;
  20895. display: flex;
  20896. flex-direction: column;
  20897. align-items: center;
  20898. justify-content: center;
  20899. background: rgb(242, 246, 255);
  20900. /* padding: 25px; */
  20901. margin-bottom: 10px;
  20902. }
  20903. .up_photo2 img {
  20904. width: 50%;
  20905. height: auto;
  20906. }
  20907. .up_photo2 span {
  20908. color: #898989;
  20909. }
  20910. .plworkBox {
  20911. display: flex;
  20912. align-items: center;
  20913. margin-top: 10px;
  20914. flex-wrap: wrap;
  20915. }
  20916. .upload_send {
  20917. margin: 30px auto 30px;
  20918. width: 60%;
  20919. background: #3681fc;
  20920. text-align: center;
  20921. height: 35px;
  20922. line-height: 35px;
  20923. color: #fff;
  20924. border-radius: 5px;
  20925. cursor: pointer;
  20926. }
  20927. .marginT {
  20928. margin-top: 20px;
  20929. }
  20930. .cd_content_steps {
  20931. display: flex;
  20932. width: 90%;
  20933. justify-content: space-around;
  20934. border-top: 1px solid #eeeeee;
  20935. }
  20936. .cd_steps_box {
  20937. display: flex;
  20938. justify-content: center;
  20939. align-items: center;
  20940. flex-direction: column;
  20941. cursor: pointer;
  20942. }
  20943. .first {
  20944. display: flex;
  20945. align-items: center;
  20946. margin: 15px 0 20px 0;
  20947. font-size: 20px;
  20948. }
  20949. .first > div:nth-child(2) {
  20950. font-size: 16px !important;
  20951. padding-left: 10px;
  20952. line-height: 26px;
  20953. box-sizing: border-box;
  20954. }
  20955. .blue_box_one {
  20956. text-align: center;
  20957. color: #fff;
  20958. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  20959. border-radius: 7px;
  20960. margin: 10px;
  20961. cursor: pointer;
  20962. width: 95%;
  20963. height: 45px;
  20964. display: flex;
  20965. flex-direction: row;
  20966. justify-content: flex-start;
  20967. align-items: center;
  20968. }
  20969. .blue_box_one > div:nth-child(1) {
  20970. line-height: 30px;
  20971. margin: 0 5px 0 10px;
  20972. width: 30%;
  20973. min-width: 70px;
  20974. border-radius: 4px;
  20975. }
  20976. .blue_box_one > div:nth-child(2) {
  20977. white-space: nowrap;
  20978. text-overflow: ellipsis;
  20979. overflow: hidden;
  20980. word-break: break-all;
  20981. width: 70%;
  20982. text-align: left;
  20983. margin-right: 10px;
  20984. max-width: calc(100% - 85px);
  20985. }
  20986. .blue_box_one > div:nth-child(2):hover {
  20987. overflow: hidden;
  20988. text-overflow: ellipsis;
  20989. white-space: nowrap;
  20990. cursor: pointer;
  20991. }
  20992. .upFile {
  20993. margin: 0 auto;
  20994. width: 120px;
  20995. background: #3681fc;
  20996. color: #fff;
  20997. height: 30px;
  20998. text-align: center;
  20999. line-height: 30px;
  21000. border-radius: 5px;
  21001. font-size: 14px;
  21002. cursor: pointer;
  21003. }
  21004. .courseTitle {
  21005. width: 85%;
  21006. margin: 10px auto 26px auto;
  21007. display: flex;
  21008. flex-direction: row;
  21009. align-items: center;
  21010. justify-content: space-between;
  21011. text-align: center;
  21012. }
  21013. .courseTitle .ctitle {
  21014. font-size: 20px;
  21015. font-weight: bold;
  21016. color: #0e1e33;
  21017. white-space: nowrap;
  21018. overflow: hidden;
  21019. text-overflow: ellipsis;
  21020. }
  21021. .inviteBox {
  21022. font-size: 14px;
  21023. /* margin-top: 5px; */
  21024. color: #00000099;
  21025. text-align: center;
  21026. }
  21027. .courseTitle >>> .el-tooltip {
  21028. width: 100%;
  21029. white-space: nowrap;
  21030. overflow: hidden;
  21031. text-overflow: ellipsis;
  21032. word-break: break-word;
  21033. }
  21034. .ml {
  21035. margin-left: 20px;
  21036. color: #5b7dba;
  21037. border-left: 3px solid #5b7dba;
  21038. padding-left: 5px;
  21039. font-weight: bold;
  21040. }
  21041. .return {
  21042. width: 2rem;
  21043. height: 2rem;
  21044. cursor: pointer;
  21045. }
  21046. .return > img {
  21047. width: 100%;
  21048. height: 100%;
  21049. }
  21050. .returnBtn {
  21051. width: 86px;
  21052. height: 36px;
  21053. background: #3681fc;
  21054. border-radius: 4px;
  21055. color: #fff;
  21056. text-align: center;
  21057. line-height: 36px;
  21058. margin-right: 20px;
  21059. cursor: pointer;
  21060. font-size: 14px;
  21061. font-weight: 400;
  21062. display: flex;
  21063. flex-direction: row;
  21064. flex-wrap: nowrap;
  21065. align-items: center;
  21066. justify-content: center;
  21067. }
  21068. .reBtnIcon,
  21069. .commentIcon,
  21070. .vedioIcon,
  21071. .vedioIcon1 {
  21072. /* width: 36px; */
  21073. height: 36px;
  21074. border-radius: 4px;
  21075. position: relative;
  21076. /* background: #e0eafb; */
  21077. background: #0061ff;
  21078. cursor: pointer;
  21079. margin-right: 12px;
  21080. display: flex;
  21081. align-items: center;
  21082. padding: 0 10px;
  21083. box-sizing: border-box;
  21084. font-size: 14px;
  21085. color: #fff;
  21086. }
  21087. .reBtnIcon::before,
  21088. .commentIcon::before,
  21089. .vedioIcon::before,
  21090. .vedioIcon1::before {
  21091. content: "";
  21092. display: block;
  21093. background-size: 100% 100%;
  21094. background-repeat: no-repeat;
  21095. width: 20px;
  21096. height: 20px;
  21097. margin-right: 5px;
  21098. /* position: absolute; */
  21099. /* top: 8px;
  21100. left: 8px; */
  21101. }
  21102. .vedioIcon1 {
  21103. background: #f63564;
  21104. }
  21105. .reBtnIcon::before {
  21106. background-image: url("../../assets/icon/newIcons/refresh.png");
  21107. }
  21108. .commentIcon::before {
  21109. background-image: url("../../assets/icon/newIcons/comment.png");
  21110. }
  21111. .vedioIcon::before {
  21112. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21113. }
  21114. .vedioIcon1::before {
  21115. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  21116. background-image: url("../../assets/icon/newIcons/transcribe.png");
  21117. }
  21118. .tool {
  21119. display: flex;
  21120. flex-direction: column;
  21121. flex-wrap: nowrap;
  21122. width: 13%;
  21123. margin: 0 30px;
  21124. align-items: center;
  21125. position: relative;
  21126. padding: 10px 25px;
  21127. cursor: pointer;
  21128. }
  21129. .whiteBIcon {
  21130. width: 150px;
  21131. }
  21132. .whiteBIcon > img {
  21133. width: 100%;
  21134. height: 100%;
  21135. }
  21136. .mask {
  21137. background-color: rgba(0, 0, 0, 0);
  21138. position: fixed;
  21139. top: 0;
  21140. left: 0;
  21141. width: 100%;
  21142. height: 100%;
  21143. z-index: 20000;
  21144. display: flex;
  21145. align-items: center;
  21146. justify-content: center;
  21147. }
  21148. .progressBox {
  21149. width: 500px;
  21150. height: 180px;
  21151. background: #fff;
  21152. border-radius: 10px;
  21153. box-shadow: 0 0 6px 1px #bfbfbf;
  21154. display: flex;
  21155. align-items: center;
  21156. justify-content: center;
  21157. flex-direction: column;
  21158. position: relative;
  21159. color: #6c6c6c;
  21160. }
  21161. .progressBox >>> .el-progress-bar__outer {
  21162. background-color: #d1dfff !important;
  21163. }
  21164. .progressBox .lbox {
  21165. height: 50px;
  21166. font-size: 19px;
  21167. display: flex;
  21168. align-items: center;
  21169. color: #747474;
  21170. }
  21171. .progressBox .lbox img {
  21172. width: 40px;
  21173. margin-right: 20px;
  21174. }
  21175. .closeCss {
  21176. position: absolute;
  21177. top: 8px;
  21178. right: 8px;
  21179. cursor: pointer;
  21180. width: 20px;
  21181. height: 20px;
  21182. }
  21183. .closeCss > img {
  21184. width: 100%;
  21185. height: 100%;
  21186. }
  21187. .uploadVedio {
  21188. display: flex;
  21189. flex-direction: column;
  21190. flex-wrap: nowrap;
  21191. justify-content: center;
  21192. align-items: center;
  21193. margin: 0 15px 10px 0;
  21194. }
  21195. .uploadVedio > img {
  21196. width: 30px;
  21197. height: 30px;
  21198. }
  21199. .uploadVedio > span {
  21200. white-space: nowrap;
  21201. overflow: hidden;
  21202. text-overflow: ellipsis;
  21203. width: 75px;
  21204. margin-top: 7px;
  21205. }
  21206. .picName {
  21207. white-space: nowrap;
  21208. overflow: hidden;
  21209. text-overflow: ellipsis;
  21210. width: 75px;
  21211. margin-top: 7px;
  21212. }
  21213. .new_top {
  21214. display: flex;
  21215. background: #fff;
  21216. flex-direction: row;
  21217. justify-content: flex-start;
  21218. align-items: center;
  21219. height: 60px;
  21220. position: fixed;
  21221. top: 20px;
  21222. left: 22%;
  21223. width: 77%;
  21224. z-index: 999;
  21225. border-radius: 12px 12px 0 0;
  21226. border-bottom: 1px solid #cad1dc;
  21227. padding: 10px 0;
  21228. }
  21229. .new_topFixed {
  21230. width: 100%;
  21231. height: 40px;
  21232. position: fixed;
  21233. top: 0px;
  21234. display: block;
  21235. background: #f2f2f2;
  21236. z-index: 998;
  21237. }
  21238. .before {
  21239. position: absolute;
  21240. background: #c3dad4;
  21241. width: 6px;
  21242. height: 100%;
  21243. }
  21244. .courseIndex {
  21245. display: flex;
  21246. flex-direction: row;
  21247. align-items: center;
  21248. width: calc(100% - 745px);
  21249. }
  21250. .courseIndex > div:nth-child(1) {
  21251. margin: 0 0 0 10px;
  21252. font-size: 20px;
  21253. min-width: 100px;
  21254. font-weight: bold;
  21255. border-left: 4px solid #3363b9;
  21256. height: 32px;
  21257. text-align: center;
  21258. line-height: 35px;
  21259. }
  21260. .courseIndex > div:nth-child(2) {
  21261. font-size: 20px;
  21262. /* width: 300px; */
  21263. max-width: calc(100% - 105px);
  21264. white-space: nowrap;
  21265. overflow: hidden;
  21266. text-overflow: ellipsis;
  21267. }
  21268. .courseIndex > div:nth-child(3) {
  21269. border-bottom: 1px solid #d7d7d7;
  21270. padding-bottom: 5px;
  21271. background: #3681fc;
  21272. width: 55px;
  21273. min-width: 55px;
  21274. border-radius: 5px;
  21275. color: #fff;
  21276. text-align: center;
  21277. height: 20px;
  21278. line-height: 26px;
  21279. font-size: 14px;
  21280. margin: 0 0 0 10px;
  21281. }
  21282. .course_text {
  21283. padding: 20px 0 0 15px;
  21284. text-indent: 30px;
  21285. width: 80%;
  21286. min-height: 20px;
  21287. }
  21288. .vedioList {
  21289. background: #f2f2f2;
  21290. border: 1px solid #ececec;
  21291. /* width: 38.8%; */
  21292. /* width: 300px; */
  21293. width: 100%;
  21294. height: 445px;
  21295. border-radius: 10px;
  21296. overflow: hidden;
  21297. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  21298. }
  21299. .vedioNav {
  21300. margin: 10px 0 0 15px;
  21301. border-bottom: 1px solid #d7d7d7;
  21302. padding-bottom: 5px;
  21303. background: #3681fc;
  21304. width: 55px;
  21305. min-width: 55px;
  21306. border-radius: 5px;
  21307. color: #fff;
  21308. text-align: center;
  21309. height: 20px;
  21310. line-height: 26px;
  21311. font-size: 14px;
  21312. }
  21313. .queTop {
  21314. display: flex;
  21315. padding: 20px 0 20px 30px;
  21316. width: 100%;
  21317. flex-direction: row;
  21318. justify-content: flex-start;
  21319. align-items: center;
  21320. box-sizing: border-box;
  21321. }
  21322. .queTopTitle {
  21323. display: flex;
  21324. flex-direction: row;
  21325. flex-wrap: nowrap;
  21326. align-items: center;
  21327. font-weight: bold;
  21328. font-size: 20px;
  21329. color: rgb(14, 30, 51);
  21330. }
  21331. .queTopTitle::before {
  21332. content: "";
  21333. width: 2px;
  21334. height: 22px;
  21335. background: #3681fc;
  21336. border-radius: 3px;
  21337. display: block;
  21338. margin: 2px 6px 0 0;
  21339. }
  21340. .queTopRight {
  21341. display: flex;
  21342. flex-direction: row;
  21343. flex-wrap: nowrap;
  21344. align-items: center;
  21345. }
  21346. .queTopClose {
  21347. margin-right: 20px;
  21348. cursor: pointer;
  21349. position: relative;
  21350. display: flex;
  21351. }
  21352. .closeImg,
  21353. .openImg {
  21354. width: 25px;
  21355. height: 25px;
  21356. position: absolute;
  21357. left: -20px;
  21358. top: -1px;
  21359. }
  21360. .closeImg > img,
  21361. .openImg > img {
  21362. width: 100%;
  21363. height: 100%;
  21364. }
  21365. .question {
  21366. width: 40px;
  21367. margin-right: 10px;
  21368. margin-top: 7px;
  21369. }
  21370. .queTitle {
  21371. margin-left: 5px;
  21372. font-size: 25px;
  21373. display: flex;
  21374. align-items: center;
  21375. }
  21376. .addEditor {
  21377. width: 100px;
  21378. height: 30px;
  21379. background: #42cda6;
  21380. color: #fff;
  21381. border-radius: 5px;
  21382. text-align: center;
  21383. line-height: 30px;
  21384. box-shadow: 1px 3px 6px 1px #bfbfbf;
  21385. cursor: pointer;
  21386. }
  21387. /* .vedioName {
  21388. cursor: pointer;
  21389. margin: 0px 0px 10px 5px;
  21390. white-space: nowrap;
  21391. overflow: hidden;
  21392. text-overflow: ellipsis;
  21393. width: 100%;
  21394. } */
  21395. .vedioTime {
  21396. width: 35px;
  21397. position: absolute;
  21398. color: #fff;
  21399. bottom: 0px;
  21400. right: 0px;
  21401. text-align: center;
  21402. background: #46411f;
  21403. height: 20px;
  21404. font-size: 14px;
  21405. line-height: 20px;
  21406. }
  21407. .homework {
  21408. width: 200px;
  21409. display: flex;
  21410. flex-direction: column;
  21411. flex-wrap: nowrap;
  21412. align-items: center;
  21413. cursor: pointer;
  21414. }
  21415. .homebox {
  21416. display: flex;
  21417. flex-wrap: wrap;
  21418. flex-direction: row;
  21419. justify-content: flex-start;
  21420. align-items: center;
  21421. padding: 15px 0;
  21422. }
  21423. .isChooseActive {
  21424. color: #3681fc !important;
  21425. font-weight: bold !important;
  21426. }
  21427. .chooseWho {
  21428. display: flex;
  21429. width: 100%;
  21430. flex-direction: row;
  21431. flex-wrap: nowrap;
  21432. justify-content: flex-start;
  21433. padding-bottom: 10px;
  21434. }
  21435. .chooseWho > div {
  21436. cursor: pointer;
  21437. padding-bottom: 10px;
  21438. margin: 0 30px 0 0;
  21439. font-weight: 400;
  21440. color: #0e1e33;
  21441. }
  21442. .addPoint > div > img {
  21443. cursor: pointer;
  21444. width: 85px;
  21445. border-radius: 15px;
  21446. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  21447. }
  21448. .addPoint > div {
  21449. display: flex;
  21450. flex-direction: column;
  21451. flex-wrap: nowrap;
  21452. align-items: center;
  21453. }
  21454. .isBorder > div {
  21455. margin: 0 0 10px 0;
  21456. align-items: flex-start !important;
  21457. }
  21458. .noiframeBox {
  21459. display: flex;
  21460. flex-wrap: wrap;
  21461. }
  21462. .iframeBox iframe {
  21463. width: 100%;
  21464. height: 800px;
  21465. border: none;
  21466. margin-bottom: 20px;
  21467. border: 1px solid #ccc;
  21468. }
  21469. .upload_toolBtn {
  21470. background: #3681fc;
  21471. color: #fff;
  21472. width: 110px;
  21473. text-align: center;
  21474. height: 35px;
  21475. line-height: 35px;
  21476. font-size: 14px;
  21477. border-radius: 5px;
  21478. cursor: pointer;
  21479. position: absolute;
  21480. right: 10px;
  21481. bottom: 0;
  21482. }
  21483. .binfo_input,
  21484. .pj {
  21485. font: inherit;
  21486. color: currentColor;
  21487. width: 100%;
  21488. margin: 0;
  21489. padding: 15px 14px;
  21490. display: block;
  21491. min-width: 0;
  21492. outline: none;
  21493. box-sizing: content-box;
  21494. background: none;
  21495. -webkit-tap-highlight-color: transparent;
  21496. border: 1px solid rgba(0, 0, 0, 0.23);
  21497. border-radius: 4px;
  21498. box-sizing: border-box;
  21499. resize: none;
  21500. }
  21501. .binfo_input:focus-visible {
  21502. border: 1px solid rgba(61, 103, 188);
  21503. }
  21504. .dialog_diy >>> .el-dialog__header,
  21505. .dialog_diy1 >>> .el-dialog__header {
  21506. background: #454545 !important;
  21507. padding: 15px 20px;
  21508. }
  21509. .dialog_diy >>> .el-dialog__title,
  21510. .dialog_diy1 >>> .el-dialog__title {
  21511. color: #fff;
  21512. }
  21513. .dialog_diy >>> .el-dialog__headerbtn,
  21514. .dialog_diy1 >>> .el-dialog__headerbtn {
  21515. top: 19px;
  21516. }
  21517. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21518. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21519. color: #fff;
  21520. }
  21521. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21522. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21523. color: #fff;
  21524. }
  21525. .dialog_diy1 >>> .el-dialog__body {
  21526. padding: 0;
  21527. }
  21528. .dialog_diy >>> .el-dialog__body,
  21529. .dialog_diy >>> .el-dialog__footer,
  21530. .dialog_diy1 >>> .el-dialog__footer {
  21531. background: #fafafa;
  21532. }
  21533. .a_addBox {
  21534. padding: 0 0 0 15px;
  21535. }
  21536. .a_add_box {
  21537. padding: 10px;
  21538. background: #fff;
  21539. margin-bottom: 10px;
  21540. border-radius: 5px;
  21541. box-shadow: 0 0 5px 0 #d5d5d5;
  21542. }
  21543. .a_add_head {
  21544. display: flex;
  21545. align-items: flex-start;
  21546. /* justify-content: space-between; */
  21547. flex-direction: column;
  21548. /* flex-direction: row; */
  21549. margin: 10px 0 20px 0;
  21550. font-size: 18px;
  21551. width: 100%;
  21552. }
  21553. .askIndex {
  21554. background: #3681fc;
  21555. border-radius: 50%;
  21556. color: #fff;
  21557. width: 25px;
  21558. height: 25px;
  21559. min-width: 25px;
  21560. min-height: 25px;
  21561. text-align: center;
  21562. line-height: 25px;
  21563. margin-right: 5px;
  21564. }
  21565. .a_add_head .a_add_head_input {
  21566. width: 300px;
  21567. }
  21568. .a_add_head .a_add_head_div {
  21569. display: flex;
  21570. align-items: center;
  21571. justify-content: space-between;
  21572. }
  21573. .a_add_body {
  21574. display: flex;
  21575. align-items: center;
  21576. }
  21577. .a_add_input {
  21578. display: flex;
  21579. align-items: center;
  21580. flex-wrap: wrap;
  21581. width: 100%;
  21582. }
  21583. .a_add_input >>> .el-radio-group,
  21584. .a_add_input >>> .el-checkbox-group {
  21585. width: 100%;
  21586. }
  21587. .a_add_input >>> .el-radio,
  21588. .a_add_input >>> .el-checkbox {
  21589. display: flex;
  21590. flex-direction: row;
  21591. flex-wrap: nowrap;
  21592. align-items: center;
  21593. padding: 15px 0;
  21594. }
  21595. .a_add_input >>> .el-radio:not(:last-child),
  21596. .a_add_input >>> .el-checkbox:not(:last-child) {
  21597. width: 100%;
  21598. border-bottom: 1px solid #efefef;
  21599. }
  21600. .redioStyle >>> .el-radio__label {
  21601. font-size: 18px;
  21602. }
  21603. .redioStyle >>> .el-radio__label > span,
  21604. .redioStyle >>> .el-checkbox__label > span {
  21605. word-break: break-all;
  21606. white-space: normal;
  21607. }
  21608. .redioStyle >>> .el-checkbox__label {
  21609. font-size: 18px;
  21610. }
  21611. .toolHeng2 {
  21612. width: 100%;
  21613. padding-left: 15px;
  21614. box-sizing: border-box;
  21615. }
  21616. .workNav {
  21617. font-size: 20px;
  21618. font-weight: bold;
  21619. color: #0e1e33;
  21620. display: flex;
  21621. flex-direction: row;
  21622. flex-wrap: nowrap;
  21623. align-items: center;
  21624. padding: 15px 0 15px 0;
  21625. }
  21626. .workNav::before {
  21627. content: "";
  21628. width: 2px;
  21629. height: 22px;
  21630. background: #3681fc;
  21631. border-radius: 3px;
  21632. display: block;
  21633. margin: 2px 6px 0 0;
  21634. }
  21635. .toolHeng {
  21636. display: flex;
  21637. flex-direction: row;
  21638. flex-wrap: wrap;
  21639. justify-content: flex-start;
  21640. align-items: center;
  21641. width: 100%;
  21642. }
  21643. .toolHeng > div {
  21644. padding-left: 20px;
  21645. }
  21646. .isWidth {
  21647. width: 20%;
  21648. }
  21649. .textTitle {
  21650. display: flex;
  21651. flex-direction: row;
  21652. flex-wrap: nowrap;
  21653. align-items: center;
  21654. width: 95%;
  21655. }
  21656. .textTitle >>> .el-form-item__label {
  21657. font-size: 22px;
  21658. color: #918f8f;
  21659. width: 100px;
  21660. }
  21661. .textTitle >>> .el-form-item__content {
  21662. width: calc(100% - 100px);
  21663. }
  21664. .textCss >>> .el-dialog {
  21665. width: 800px !important;
  21666. height: 400px;
  21667. background: #fafafa;
  21668. }
  21669. .textCss >>> .el-dialog__body {
  21670. margin: 55px 8% 0 8%;
  21671. padding: 0 !important;
  21672. }
  21673. .textCss >>> .el-dialog__footer {
  21674. padding-top: 38px;
  21675. }
  21676. .toolsCss >>> .el-dialog__body {
  21677. padding: 20px;
  21678. }
  21679. .lineCss >>> .el-dialog__body {
  21680. display: flex;
  21681. flex-direction: row;
  21682. align-items: center;
  21683. justify-content: center;
  21684. }
  21685. .newNav {
  21686. display: flex;
  21687. flex-direction: row;
  21688. align-items: baseline;
  21689. justify-content: flex-start;
  21690. }
  21691. .navListItem {
  21692. width: calc(100% - 20px);
  21693. height: 50px;
  21694. margin: 0px auto 10px;
  21695. display: flex;
  21696. flex-direction: row;
  21697. flex-wrap: nowrap;
  21698. align-items: center;
  21699. justify-content: space-between;
  21700. background: #f0f4fa;
  21701. border-radius: 6px 6px 6px 6px;
  21702. }
  21703. .navText {
  21704. cursor: pointer;
  21705. white-space: nowrap;
  21706. overflow: hidden;
  21707. text-overflow: ellipsis;
  21708. width: 220px;
  21709. padding: 0 10px;
  21710. font-weight: 400;
  21711. color: #0e1e33;
  21712. }
  21713. .downIcon {
  21714. width: 20px;
  21715. min-width: 20px;
  21716. height: 20px;
  21717. margin-right: 15px;
  21718. cursor: pointer;
  21719. }
  21720. .downIcon > img {
  21721. width: 100%;
  21722. height: 100%;
  21723. }
  21724. .noVedio {
  21725. display: flex;
  21726. flex-direction: row;
  21727. justify-content: center;
  21728. align-content: center;
  21729. }
  21730. .noNavText {
  21731. cursor: pointer;
  21732. margin: 0px 0px 10px 5px;
  21733. width: 112px;
  21734. }
  21735. .listNoVedio {
  21736. margin: 0 0 0 30px;
  21737. width: 97%;
  21738. }
  21739. .video-player >>> .video-js {
  21740. height: 100%;
  21741. }
  21742. .hangVedioList {
  21743. width: 90% !important;
  21744. height: 150px !important;
  21745. margin: 20px 0 0 30px;
  21746. }
  21747. .hangVedio {
  21748. width: 100%;
  21749. height: 170px !important;
  21750. align-items: flex-start !important;
  21751. }
  21752. .hangHand {
  21753. height: 150px !important;
  21754. }
  21755. .twoChild {
  21756. width: 95%;
  21757. margin: 10px;
  21758. border-radius: 5px;
  21759. background: #f2f2f2;
  21760. display: flex;
  21761. flex-direction: column;
  21762. flex-wrap: nowrap;
  21763. justify-content: flex-start;
  21764. align-items: flex-start;
  21765. transition: all 0.5s;
  21766. overflow: hidden;
  21767. height: 0;
  21768. background: #e7f3ff;
  21769. }
  21770. .twoChild > div:nth-child(1) {
  21771. margin-top: 5px;
  21772. }
  21773. .navChild {
  21774. width: 100%;
  21775. cursor: pointer;
  21776. margin-bottom: 10px;
  21777. position: relative;
  21778. }
  21779. .navChild img {
  21780. position: absolute;
  21781. right: 11px;
  21782. width: 15px;
  21783. top: 50%;
  21784. transform: translateY(-50%);
  21785. }
  21786. .navActive,
  21787. .toolActive {
  21788. height: auto !important;
  21789. overflow: auto !important;
  21790. /* padding-bottom: 16px; */
  21791. }
  21792. .toolActive {
  21793. padding: 0;
  21794. }
  21795. .navTask {
  21796. display: flex;
  21797. flex-direction: row;
  21798. flex-wrap: nowrap;
  21799. align-items: center;
  21800. align-content: flex-start;
  21801. height: 40px;
  21802. justify-content: flex-start;
  21803. padding: 0 10px;
  21804. width: 100%;
  21805. box-sizing: border-box;
  21806. }
  21807. .navTaskname {
  21808. white-space: nowrap;
  21809. text-overflow: ellipsis;
  21810. overflow: hidden;
  21811. word-break: break-all;
  21812. padding-left: 5px;
  21813. }
  21814. .openTaskActive {
  21815. /* background-color: #e0eafb !important;
  21816. color: #0061ff; */
  21817. color:#fff;
  21818. background: rgb(55, 129, 252) !important;
  21819. }
  21820. .iframeName {
  21821. margin: 5px 0;
  21822. border-left: 4px solid #41c4a4;
  21823. padding-left: 4px;
  21824. }
  21825. .toolTitle {
  21826. margin: 0px 0px 20px;
  21827. font-size: 20px;
  21828. font-weight: 500;
  21829. border-left: 4px solid #41c4a4;
  21830. padding-left: 4px;
  21831. }
  21832. .cru_selectBox {
  21833. overflow: auto;
  21834. width: 95%;
  21835. margin: 17px auto 0;
  21836. height: calc(100% - 40px - 21px - 20px - 17px);
  21837. background: #fff;
  21838. border-radius: 8px;
  21839. }
  21840. .cru_selectBox::-webkit-scrollbar,
  21841. .study_top::-webkit-scrollbar,
  21842. .textContent::-webkit-scrollbar {
  21843. /*滚动条整体样式*/
  21844. width: 6px;
  21845. /*高宽分别对应横竖滚动条的尺寸*/
  21846. height: 6px;
  21847. }
  21848. /*定义滚动条轨道 内阴影+圆角*/
  21849. .cru_selectBox::-webkit-scrollbar-track,
  21850. .study_top::-webkit-scrollbar-track,
  21851. .textContent::-webkit-scrollbar {
  21852. border-radius: 10px;
  21853. background-color: #b8bdc9;
  21854. }
  21855. /*定义滑块 内阴影+圆角*/
  21856. .cru_selectBox::-webkit-scrollbar-thumb,
  21857. .study_top::-webkit-scrollbar-thumb,
  21858. .textContent::-webkit-scrollbar-thumb {
  21859. border-radius: 10px;
  21860. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  21861. background-color: #2c5ab3;
  21862. }
  21863. .vedioBox {
  21864. border-radius: 0 0 20px 20px;
  21865. background: #fff;
  21866. overflow: auto;
  21867. }
  21868. .taskBox {
  21869. width: 98%;
  21870. background: #f0f4fa;
  21871. margin: 10px auto;
  21872. padding: 0 10px;
  21873. border-radius: 4px;
  21874. box-sizing: border-box;
  21875. }
  21876. .vedioTaskBox {
  21877. width: 100%;
  21878. display: flex;
  21879. flex-direction: row;
  21880. flex-wrap: nowrap;
  21881. align-items: flex-start;
  21882. position: relative;
  21883. }
  21884. .toolBox {
  21885. margin: 15px 0 0 25px;
  21886. display: flex;
  21887. position: relative;
  21888. padding: 18px 20px;
  21889. border-top-left-radius: 5px;
  21890. border-top-right-radius: 5px;
  21891. width: 90%;
  21892. }
  21893. .btnAll {
  21894. position: absolute;
  21895. right: 0;
  21896. display: flex;
  21897. flex-direction: row;
  21898. flex-wrap: nowrap;
  21899. align-items: center;
  21900. }
  21901. .btnLeft,
  21902. .btnRight {
  21903. display: flex;
  21904. flex-direction: row;
  21905. flex-wrap: nowrap;
  21906. align-items: center;
  21907. padding: 5px 0;
  21908. }
  21909. .btnLeft {
  21910. border-right: 1px solid #cad1dc;
  21911. }
  21912. .btnLeft > .custom-tooltip {
  21913. background: #3681fc;
  21914. color: #fff;
  21915. }
  21916. .last:hover {
  21917. background: #3383fa !important;
  21918. color: #fff;
  21919. border: 1px solid #3383fa !important;
  21920. }
  21921. .last,
  21922. .returnBtn1 {
  21923. width: 90px;
  21924. height: 36px;
  21925. background: #ffffff;
  21926. border-radius: 4px;
  21927. border: 1px solid #0061ff;
  21928. color: #0061ff;
  21929. cursor: pointer;
  21930. display: flex;
  21931. flex-direction: row;
  21932. flex-wrap: nowrap;
  21933. align-items: center;
  21934. justify-content: center;
  21935. margin-left: 12px;
  21936. }
  21937. .returnBtn1 {
  21938. background: #f0f4fa;
  21939. border-radius: 4px;
  21940. border: 1px solid #cad1dc;
  21941. margin: 0 12px;
  21942. }
  21943. .lastImg {
  21944. min-width: 15px;
  21945. width: 15px;
  21946. height: 15px;
  21947. display: flex;
  21948. }
  21949. .lastText {
  21950. padding: 0 5px 0 5px;
  21951. box-sizing: border-box;
  21952. font-size: 14px;
  21953. }
  21954. .lastImg > img {
  21955. width: 100%;
  21956. height: 100%;
  21957. }
  21958. /* .vedioTimeBox {
  21959. display: flex;
  21960. flex-direction: row;
  21961. align-items: center;
  21962. flex-wrap: nowrap;
  21963. position: relative;
  21964. } */
  21965. .navBox {
  21966. background: #fff;
  21967. height: calc(100% - 40px);
  21968. overflow-y: auto;
  21969. overflow-x: hidden;
  21970. }
  21971. .worksBox {
  21972. margin: 0 0 10px 25px;
  21973. border-bottom: 1px solid #eeeeee;
  21974. padding: 18px 20px;
  21975. border-radius: 4px;
  21976. width: 90%;
  21977. }
  21978. .worksBTitle {
  21979. font-size: 20px;
  21980. padding-bottom: 15px;
  21981. border-bottom: 1px solid #eeeeee;
  21982. display: flex;
  21983. align-items: center;
  21984. }
  21985. .greenBox {
  21986. width: 5px;
  21987. height: 30px;
  21988. background: #63b6fa;
  21989. margin-right: 5px;
  21990. }
  21991. .worksDetailBox {
  21992. display: flex;
  21993. width: 100%;
  21994. flex-direction: row;
  21995. flex-wrap: wrap;
  21996. align-items: flex-end;
  21997. justify-content: flex-start;
  21998. padding: 15px 5px;
  21999. box-sizing: border-box;
  22000. }
  22001. .works {
  22002. display: flex;
  22003. flex-direction: column;
  22004. flex-wrap: nowrap;
  22005. align-items: flex-start;
  22006. justify-content: flex-start;
  22007. align-content: center;
  22008. max-width: 240px;
  22009. width: calc(100% / 3 - 10px);
  22010. height: auto;
  22011. margin-right: 10px;
  22012. margin-bottom: 10px;
  22013. overflow: hidden;
  22014. height: 140px;
  22015. box-shadow: 0 0 6px 1px #dfdada;
  22016. border-radius: 15px;
  22017. }
  22018. .workImg {
  22019. width: 100%;
  22020. /* height: calc(100% - 40px); */
  22021. height: 105px;
  22022. position: relative;
  22023. }
  22024. .workImg > img {
  22025. width: 100%;
  22026. height: 100%;
  22027. object-fit: contain;
  22028. cursor: pointer;
  22029. }
  22030. .worksName {
  22031. height: 40px;
  22032. line-height: 40px;
  22033. display: flex;
  22034. width: 100%;
  22035. flex-direction: row;
  22036. flex-wrap: nowrap;
  22037. justify-content: space-between;
  22038. align-items: center;
  22039. margin: 0 0 0 10px;
  22040. }
  22041. .worksName > div:nth-child(1) {
  22042. width: 110px;
  22043. white-space: nowrap;
  22044. overflow: hidden;
  22045. text-overflow: ellipsis;
  22046. }
  22047. .worksName > div:nth-child(2) {
  22048. color: #b7b4b5;
  22049. }
  22050. .noWorksS {
  22051. padding: 15px 0;
  22052. display: flex;
  22053. flex-direction: row;
  22054. flex-wrap: wrap;
  22055. align-items: center;
  22056. justify-content: flex-start;
  22057. }
  22058. .noWorksName,
  22059. .isWorksName,
  22060. .isWorksName2 {
  22061. background: #ddebf8;
  22062. color: #000;
  22063. width: 90px;
  22064. height: 25px;
  22065. text-align: center;
  22066. line-height: 25px;
  22067. border-radius: 4px;
  22068. margin: 10px 15px 10px 0;
  22069. white-space: nowrap;
  22070. overflow: hidden;
  22071. padding: 5px;
  22072. text-overflow: ellipsis;
  22073. cursor: pointer;
  22074. border: 1px solid #ddebf8;
  22075. }
  22076. .noWorksName {
  22077. background: #fff;
  22078. color: #0061ff;
  22079. border: 1px solid #0061ff;
  22080. }
  22081. .noWorksName > span{
  22082. max-width: 100%;
  22083. display: block;
  22084. overflow: hidden;
  22085. text-overflow: ellipsis;
  22086. white-space: nowrap;
  22087. }
  22088. .isWorksName2 {
  22089. width: 100px;
  22090. height: 40px;
  22091. line-height: 40px;
  22092. position: relative;
  22093. background: #dae6f9;
  22094. }
  22095. .isWorksName {
  22096. background: #e7ebf1 !important;
  22097. width: 100px;
  22098. height: 40px;
  22099. line-height: 40px;
  22100. position: relative;
  22101. color: #acb4bf;
  22102. border: 1px solid #cad1dc !important;
  22103. }
  22104. .isSelectName,
  22105. .noWorksName:hover {
  22106. background: #3383fa !important;
  22107. color: #fff !important;
  22108. border: 1px solid #3383fa !important;
  22109. }
  22110. .title {
  22111. background: #1e5cc9;
  22112. /* width: 98%; */
  22113. height: 45px;
  22114. color: #fff;
  22115. line-height: 45px;
  22116. padding-left: 20px;
  22117. box-sizing: border-box;
  22118. }
  22119. .textBox {
  22120. font-size: 20px;
  22121. width: 90%;
  22122. display: flex;
  22123. flex-direction: column;
  22124. align-items: center;
  22125. margin: 20px auto 0;
  22126. max-height: calc(100% - 75px);
  22127. overflow: auto;
  22128. }
  22129. .textContent {
  22130. font-size: 18px;
  22131. width: 95%;
  22132. max-width: 95%;
  22133. }
  22134. .answerBg {
  22135. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  22136. background-size: 100% 100%;
  22137. width: 100%;
  22138. height: 100%;
  22139. color: #fff;
  22140. text-align: center;
  22141. display: flex;
  22142. flex-direction: column;
  22143. flex-wrap: nowrap;
  22144. align-items: center;
  22145. position: relative;
  22146. justify-content: center;
  22147. }
  22148. .answerBg > div:nth-child(1) {
  22149. /* font-size: 22px;
  22150. padding: 25px 0 10px; */
  22151. }
  22152. .answerContent {
  22153. width: 215px;
  22154. max-height: 60px;
  22155. word-break: break-all;
  22156. text-align: center;
  22157. /* white-space: nowrap; */
  22158. overflow: hidden;
  22159. text-overflow: ellipsis;
  22160. /* padding: 23px 0 0; */
  22161. -webkit-line-clamp: 3;
  22162. -webkit-box-orient: vertical;
  22163. display: -webkit-box;
  22164. font-size: 15px;
  22165. cursor: pointer;
  22166. }
  22167. .elist_input_box {
  22168. display: flex;
  22169. align-items: flex-start;
  22170. flex-wrap: nowrap;
  22171. padding: 10px 0 15px 30px;
  22172. flex-direction: column;
  22173. }
  22174. .elist_input {
  22175. /* width: 40%; */
  22176. width: 45%;
  22177. margin: 20px;
  22178. }
  22179. .elist_input .elist_input_box input {
  22180. font: inherit;
  22181. color: currentColor;
  22182. width: 200px;
  22183. padding: 8px 14px;
  22184. display: block;
  22185. min-width: 0;
  22186. outline: none;
  22187. border: 1px solid rgba(0, 0, 0, 0.23);
  22188. border-radius: 4px;
  22189. box-sizing: border-box;
  22190. background: #fff;
  22191. margin: 0 20px 0 0;
  22192. }
  22193. .elist_input .elist_input_box span {
  22194. height: 36px;
  22195. line-height: 36px;
  22196. color: rgb(82, 82, 82);
  22197. }
  22198. .elist_input .elist_input_box .remove {
  22199. height: 20px;
  22200. width: 20px;
  22201. background-size: 100% 100%;
  22202. background-position: unset;
  22203. margin-left: 5px;
  22204. }
  22205. .elist_input_box >>> .el-rate {
  22206. display: flex;
  22207. height: 36px;
  22208. align-items: center;
  22209. }
  22210. .elist_input_box .elist_inptu_text {
  22211. min-height: 50px;
  22212. /* width: 500px;
  22213. max-height: 150px; */
  22214. width: 100%;
  22215. line-height: 50px;
  22216. color: rgb(82, 82, 82);
  22217. overflow: auto;
  22218. text-indent: 5px;
  22219. background: #f7f6f9;
  22220. border-radius: 10px;
  22221. }
  22222. .elist_input_box .elist_inptu_text input {
  22223. width: 500px;
  22224. }
  22225. .elist_input_box >>> .el-rate__icon {
  22226. font-size: 24px;
  22227. }
  22228. .isClick {
  22229. background: #4d9def;
  22230. }
  22231. .bzBox {
  22232. display: flex;
  22233. flex-direction: row;
  22234. align-items: center;
  22235. }
  22236. .bzBox .yCss {
  22237. width: 7px;
  22238. height: 7px;
  22239. background: #fff;
  22240. margin: 0 16px 0 6px;
  22241. border-radius: 50%;
  22242. border: 5px solid #3681fc;
  22243. z-index: 99;
  22244. }
  22245. .bzBox > div:nth-child(2) {
  22246. font-size: 18px;
  22247. font-weight: bold;
  22248. color: #0e1e33;
  22249. }
  22250. .navTitile {
  22251. padding: 0 0px 0 15px;
  22252. font-size: 16px;
  22253. font-weight: bold;
  22254. color: #0e1e33;
  22255. height: 40px;
  22256. line-height: 40px;
  22257. }
  22258. .isTypeOne {
  22259. width: 240px;
  22260. height: 170px;
  22261. /* border: 1px solid #f8f8f8; */
  22262. border-radius: 10px;
  22263. box-shadow: 0 0 6px 1px #dfdada;
  22264. }
  22265. .e_add_top {
  22266. display: flex;
  22267. justify-content: space-between;
  22268. padding: 10px 20px;
  22269. border-radius: 3px;
  22270. background: #fff;
  22271. }
  22272. .e_add_title2 {
  22273. display: flex;
  22274. align-items: center;
  22275. }
  22276. .e_add_title2 span {
  22277. width: 40px;
  22278. }
  22279. .e_add_title {
  22280. display: flex;
  22281. align-items: center;
  22282. color: #b8b8b8;
  22283. font-size: 18px;
  22284. position: relative;
  22285. height: 40px;
  22286. }
  22287. .e_add_title span {
  22288. margin-right: 10px;
  22289. }
  22290. .e_add_title .el_input {
  22291. width: 300px;
  22292. }
  22293. .e_add_title >>> .el-input__inner {
  22294. width: 400px;
  22295. }
  22296. .e_add_btn {
  22297. }
  22298. .e_add_content {
  22299. display: flex;
  22300. width: 100%;
  22301. max-width: 650px;
  22302. height: 550px;
  22303. }
  22304. .e_add_list {
  22305. background: #fff;
  22306. height: 500px;
  22307. width: 210px;
  22308. position: relative;
  22309. margin: 15px 5px 0 0;
  22310. flex-shrink: 0;
  22311. display: flex;
  22312. flex-direction: column;
  22313. }
  22314. .e_add_list_title {
  22315. font-size: 20px;
  22316. width: 100%;
  22317. box-sizing: border-box;
  22318. padding: 15px 40px;
  22319. text-align: center;
  22320. border-bottom: 1px solid #eaeaea;
  22321. position: relative;
  22322. display: flex;
  22323. align-items: center;
  22324. justify-content: center;
  22325. height: 57px;
  22326. background: #f6f6f6;
  22327. }
  22328. .e_add_list_title span {
  22329. overflow: hidden;
  22330. white-space: nowrap;
  22331. text-overflow: ellipsis;
  22332. }
  22333. .e_add_list_title img {
  22334. position: absolute;
  22335. right: 15px;
  22336. width: 25px;
  22337. cursor: pointer;
  22338. top: 50%;
  22339. transform: translateY(-50%);
  22340. }
  22341. .e_add_list_body {
  22342. height: calc(100% - 187px);
  22343. overflow: auto;
  22344. }
  22345. .e_add_list_child {
  22346. width: 100%;
  22347. display: flex;
  22348. align-items: center;
  22349. justify-content: center;
  22350. position: relative;
  22351. box-sizing: border-box;
  22352. padding: 15px 40px;
  22353. text-align: center;
  22354. }
  22355. .e_add_list_child span {
  22356. overflow: hidden;
  22357. white-space: nowrap;
  22358. text-overflow: ellipsis;
  22359. cursor: pointer;
  22360. }
  22361. .e_add_list_child img {
  22362. position: absolute;
  22363. right: 10px;
  22364. width: 21px;
  22365. cursor: pointer;
  22366. top: 50%;
  22367. transform: translateY(-50%);
  22368. }
  22369. .e_add_list_child + .e_add_list_child {
  22370. border-top: 1px solid #eaeaea;
  22371. }
  22372. .e_add_list_child .active {
  22373. color: #409eff;
  22374. }
  22375. .e_add_list_btn {
  22376. position: absolute;
  22377. bottom: 0;
  22378. height: 50px;
  22379. background: rgb(120, 120, 254);
  22380. width: 100%;
  22381. color: #fff;
  22382. font-size: 16px;
  22383. text-align: center;
  22384. line-height: 50px;
  22385. cursor: pointer;
  22386. }
  22387. .e_add_list_detail {
  22388. position: absolute;
  22389. bottom: 0;
  22390. height: 130px;
  22391. background: rgb(120, 120, 254);
  22392. width: 100%;
  22393. color: #fff;
  22394. font-size: 16px;
  22395. display: flex;
  22396. align-items: center;
  22397. justify-content: center;
  22398. }
  22399. .e_add_list_detail textarea {
  22400. height: 90%;
  22401. width: 95%;
  22402. border: none;
  22403. resize: none;
  22404. outline: none;
  22405. padding: 5px;
  22406. box-sizing: border-box;
  22407. }
  22408. .e_add_list_pbox {
  22409. width: 100%;
  22410. max-width: 650px;
  22411. /* height: 600px; */
  22412. }
  22413. .e_add_list_pbox_title {
  22414. height: 50px;
  22415. background: #fff;
  22416. display: flex;
  22417. align-items: center;
  22418. width: 100%;
  22419. box-sizing: border-box;
  22420. padding: 0 20px;
  22421. }
  22422. .type_title {
  22423. font-size: 18px;
  22424. font-weight: 700;
  22425. }
  22426. .type_content {
  22427. font-size: 16px;
  22428. /* margin-left: 30px; */
  22429. }
  22430. .type_content span + span {
  22431. margin-left: 20px;
  22432. }
  22433. .type_content span {
  22434. cursor: pointer;
  22435. padding-bottom: 5px;
  22436. box-sizing: border-box;
  22437. }
  22438. .type_content .active {
  22439. color: #409eff;
  22440. border-bottom: 2px solid #409eff;
  22441. }
  22442. .e_add_list_pbox_content {
  22443. height: calc(100% - 50px);
  22444. display: flex;
  22445. align-items: center;
  22446. width: 100%;
  22447. background: #fff;
  22448. }
  22449. .evaCss {
  22450. display: flex;
  22451. flex-direction: row;
  22452. flex-wrap: nowrap;
  22453. align-items: flex-start;
  22454. padding: 0 0 20px;
  22455. }
  22456. .cru_line {
  22457. position: absolute;
  22458. bottom: 0px;
  22459. transition: all 0.5s;
  22460. left: 0px;
  22461. width: 125px;
  22462. margin-left: -25px;
  22463. }
  22464. .isNoMessage {
  22465. width: 20%;
  22466. margin: 25% auto 0;
  22467. }
  22468. .isNoMessage > img {
  22469. width: 100%;
  22470. height: 100%;
  22471. }
  22472. .fullStyle >>> .el-dialog__body {
  22473. height: 100% !important;
  22474. }
  22475. .fullStyle >>> .el-dialog,
  22476. .fullStyle {
  22477. width: 100% !important;
  22478. max-width: 100% !important;
  22479. height: 100% !important;
  22480. margin: 0 !important;
  22481. }
  22482. .full_diy >>> .el-dialog {
  22483. margin: 0 !important;
  22484. height: 100%;
  22485. padding: 4px;
  22486. }
  22487. .full_diy >>> .el-dialog__body {
  22488. height: calc(100% - 100px);
  22489. }
  22490. .full_diy2 >>> .el-dialog__body {
  22491. height: calc(100% - 50px);
  22492. padding: 0;
  22493. }
  22494. .switchCss {
  22495. /* width: 100%; */
  22496. display: flex;
  22497. flex-direction: row;
  22498. flex-wrap: nowrap;
  22499. align-items: center;
  22500. /* justify-content: center; */
  22501. }
  22502. .isClickNav {
  22503. /* color: #499eef; */
  22504. color: #000;
  22505. }
  22506. .commentImg {
  22507. width: 25px;
  22508. height: 25px;
  22509. cursor: pointer;
  22510. }
  22511. .commentImg > img {
  22512. width: 100%;
  22513. height: 100%;
  22514. }
  22515. .comment {
  22516. background: #f9f9f9;
  22517. border-radius: 0 0 4px 4px;
  22518. display: flex;
  22519. flex-direction: row;
  22520. flex-wrap: nowrap;
  22521. align-items: center;
  22522. justify-content: flex-end;
  22523. height: 35px;
  22524. }
  22525. .commentList {
  22526. display: flex;
  22527. flex-direction: row;
  22528. flex-wrap: nowrap;
  22529. align-items: center;
  22530. justify-content: center;
  22531. align-content: center;
  22532. /* margin-left: 15px; */
  22533. /* margin-left: 8px; */
  22534. }
  22535. .scoreImg {
  22536. width: 17px;
  22537. height: 17px;
  22538. }
  22539. .studentDetail {
  22540. display: flex;
  22541. flex-direction: row;
  22542. flex-wrap: nowrap;
  22543. /* align-items: center; */
  22544. align-items: flex-start;
  22545. }
  22546. .tx {
  22547. width: 50px;
  22548. }
  22549. .tx > img {
  22550. width: 100%;
  22551. height: 100%;
  22552. }
  22553. .nameAndTime {
  22554. display: flex;
  22555. flex-direction: column;
  22556. flex-wrap: nowrap;
  22557. align-items: flex-start;
  22558. margin-left: 10px;
  22559. }
  22560. .worksAnswer {
  22561. color: #4078dd;
  22562. margin: 10px 0;
  22563. font-size: 16px;
  22564. position: relative;
  22565. }
  22566. .worksAnswer > img {
  22567. width: 500px;
  22568. height: 300px;
  22569. object-fit: contain;
  22570. margin: 0 auto;
  22571. display: block;
  22572. }
  22573. .commentTop {
  22574. border-bottom: 1px solid #eaeaea;
  22575. padding-bottom: 10px;
  22576. }
  22577. .commentBox {
  22578. padding-top: 15px;
  22579. }
  22580. .pl {
  22581. font-size: 18px;
  22582. }
  22583. .plPerson {
  22584. width: 100%;
  22585. }
  22586. .plName {
  22587. display: flex;
  22588. flex-direction: row;
  22589. flex-wrap: nowrap;
  22590. align-items: baseline;
  22591. color: #78787a;
  22592. width: 100%;
  22593. }
  22594. .deleteComment {
  22595. cursor: pointer;
  22596. margin-left: auto;
  22597. color: #237ade;
  22598. }
  22599. .plContent {
  22600. margin-top: 5px;
  22601. }
  22602. .evalCss {
  22603. background: #fff;
  22604. font-size: 18px;
  22605. }
  22606. .nav {
  22607. color: #9d9d9d;
  22608. padding: 5px 0 15px 20px;
  22609. }
  22610. .middleBox {
  22611. padding: 5px 0 15px 20px;
  22612. }
  22613. .pfBox {
  22614. padding-bottom: 30px;
  22615. }
  22616. .nameAndrate {
  22617. display: flex;
  22618. flex-direction: row;
  22619. flex-wrap: nowrap;
  22620. align-items: center;
  22621. padding-bottom: 10px;
  22622. height: 30px;
  22623. line-height: 30px;
  22624. }
  22625. .nameAndrate > div {
  22626. margin-left: 10px;
  22627. color: #000;
  22628. height: 30px;
  22629. }
  22630. .nameAndrate >>> .el-rate__icon {
  22631. font-size: 28px !important;
  22632. }
  22633. .pfBox > div:nth-child(2) {
  22634. background: #f7f6f9;
  22635. width: 400px;
  22636. min-height: 45px;
  22637. border-radius: 10px;
  22638. font-size: 16px;
  22639. display: flex;
  22640. flex-wrap: wrap;
  22641. align-items: center;
  22642. padding: 10px 20px;
  22643. box-sizing: border-box;
  22644. color: #000;
  22645. }
  22646. .bz {
  22647. display: flex;
  22648. flex-direction: row;
  22649. flex-wrap: nowrap;
  22650. align-items: flex-start;
  22651. }
  22652. .bz > div {
  22653. padding: 0 10px;
  22654. }
  22655. .select_box2_title {
  22656. background: #fff;
  22657. border-radius: 5px;
  22658. padding: 15px 10px;
  22659. box-sizing: border-box;
  22660. margin-bottom: 10px;
  22661. display: flex;
  22662. flex-direction: row;
  22663. flex-wrap: nowrap;
  22664. align-items: center;
  22665. }
  22666. .select_box2_title > div:nth-child(2) {
  22667. margin-left: 10px;
  22668. color: #c4c4c4;
  22669. }
  22670. .select_box2_box {
  22671. display: flex;
  22672. height: 500px;
  22673. }
  22674. .select_box2_img {
  22675. width: calc(100% - 310px);
  22676. height: 100%;
  22677. overflow: auto;
  22678. background: #fff;
  22679. border-radius: 5px;
  22680. }
  22681. .select_box2_img img {
  22682. width: 100%;
  22683. }
  22684. .select_box2_answer {
  22685. background: #fff;
  22686. margin-left: 10px;
  22687. border-radius: 5px;
  22688. width: 300px;
  22689. overflow: auto;
  22690. height: 90%;
  22691. display: flex;
  22692. flex-direction: column;
  22693. align-items: flex-start;
  22694. padding-top: 10px;
  22695. box-sizing: border-box;
  22696. position: relative;
  22697. }
  22698. .select_answer_title {
  22699. padding: 0 0 15px 20px;
  22700. color: #c4c4c4;
  22701. }
  22702. .select_box2_answer_box {
  22703. margin: 0 0 10px 20px;
  22704. width: 85%;
  22705. display: flex;
  22706. flex-direction: row;
  22707. flex-wrap: nowrap;
  22708. align-items: center;
  22709. }
  22710. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22711. color: #000;
  22712. }
  22713. .upAnswerCss {
  22714. position: absolute;
  22715. bottom: 15px;
  22716. right: 15px;
  22717. }
  22718. .upAnswerCss >>> .el-button {
  22719. width: 95px;
  22720. height: 35px;
  22721. line-height: 35px;
  22722. padding: 0;
  22723. }
  22724. .rightWidthCss {
  22725. width: 60%;
  22726. display: flex;
  22727. flex-direction: row;
  22728. align-items: flex-start;
  22729. }
  22730. .rightAnswer {
  22731. display: flex;
  22732. flex-direction: row;
  22733. flex-wrap: nowrap;
  22734. align-items: center;
  22735. color: red;
  22736. margin-bottom: 31px;
  22737. }
  22738. .rightAnswerCss {
  22739. display: flex;
  22740. flex-direction: column;
  22741. flex-wrap: nowrap;
  22742. padding-top: 60px;
  22743. }
  22744. .blueCss {
  22745. color: #767de1;
  22746. margin-left: 10px;
  22747. }
  22748. .redCss {
  22749. color: red;
  22750. }
  22751. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22752. color: rgb(0 123 255) !important;
  22753. }
  22754. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22755. color: rgb(0 123 255) !important;
  22756. }
  22757. .zuoyeYulan {
  22758. padding-top: 0;
  22759. font-size: 18px;
  22760. display: flex;
  22761. align-items: flex-end;
  22762. }
  22763. .buttonA {
  22764. margin-left: 10px;
  22765. padding: 0;
  22766. }
  22767. .displayBox {
  22768. margin-bottom: 10px;
  22769. display: block;
  22770. border-bottom: 3px solid #eee;
  22771. display: flex;
  22772. align-items: center;
  22773. }
  22774. .easy_comment {
  22775. width: calc(100% - 90px);
  22776. margin-left: 10px;
  22777. display: flex;
  22778. flex-wrap: wrap;
  22779. }
  22780. .easy_comment > div {
  22781. border: 1px solid #4a4a4a;
  22782. color: #666;
  22783. border-radius: 15px;
  22784. padding: 5px 10px;
  22785. font-size: 16px;
  22786. margin-bottom: 10px;
  22787. margin-right: 5px;
  22788. cursor: pointer;
  22789. }
  22790. .easy_comment div:hover {
  22791. border: 1px solid #f7ba2a;
  22792. color: #c69217;
  22793. }
  22794. .xuan_right_box {
  22795. padding: 10px 0;
  22796. background: #f0f4fa;
  22797. margin: 0 15px 0 25px;
  22798. border-bottom-left-radius: 5px;
  22799. border-bottom-right-radius: 5px;
  22800. width: 91.5%;
  22801. }
  22802. .tool_right_box {
  22803. display: flex;
  22804. align-items: center;
  22805. }
  22806. .tool_right_box + .tool_right_box {
  22807. margin-top: 10px;
  22808. }
  22809. .right_box_xuan {
  22810. border-radius: 5px;
  22811. padding: 5px;
  22812. margin-left: 10px;
  22813. min-width: 85px;
  22814. background: #fff;
  22815. color: #0061ff;
  22816. border: 1px solid #0061ff;
  22817. font-size: 14px;
  22818. }
  22819. .pButton:hover {
  22820. opacity: 1 !important;
  22821. }
  22822. .pButton {
  22823. position: fixed;
  22824. text-align: center;
  22825. cursor: pointer;
  22826. z-index: 999;
  22827. right: 20px;
  22828. top: 110px;
  22829. width: 50px;
  22830. height: 50px;
  22831. display: flex;
  22832. align-items: center;
  22833. justify-content: center;
  22834. border-radius: 5px;
  22835. }
  22836. .pzClass {
  22837. width: calc(100% - 340px);
  22838. }
  22839. .newDialogCss {
  22840. /* position: fixed;
  22841. right: 5%;
  22842. top: 50%;
  22843. width: 340px;
  22844. transform: translateY(-50%);
  22845. height: 60%;
  22846. box-shadow: 0px 0 8px 0px #555555;
  22847. border-radius: 15px;
  22848. z-index: 999; */
  22849. position: fixed;
  22850. right: 20px;
  22851. top: 101px;
  22852. width: 330px;
  22853. height: calc(100% - 80px);
  22854. z-index: 999;
  22855. background: #fff;
  22856. border-top-right-radius: 0px;
  22857. border-bottom-right-radius: 0px;
  22858. overflow: hidden;
  22859. }
  22860. .newDialogCss>.scoreList{
  22861. width:100%;
  22862. height:100%;
  22863. box-sizing:border-box;
  22864. padding:10px 15px;
  22865. overflow:auto;
  22866. padding-bottom:80px;
  22867. }
  22868. .pzTop {
  22869. color: #fff;
  22870. background: #000;
  22871. display: flex;
  22872. flex-direction: row;
  22873. flex-wrap: nowrap;
  22874. align-items: center;
  22875. justify-content: space-between;
  22876. height: 40px;
  22877. border-radius: 15px 15px 0 0;
  22878. user-select: none;
  22879. }
  22880. .pzTop2 .checkbox {
  22881. display: flex;
  22882. align-items: center;
  22883. padding: 5px 10px;
  22884. flex: 0 0 auto;
  22885. font-weight: bold;
  22886. border-bottom: 1px solid #eee;
  22887. justify-content: space-between;
  22888. }
  22889. .checkbox>.cb-tabList{
  22890. display:flex;
  22891. align-items:center;
  22892. }
  22893. .cb-tabList>div{
  22894. margin-right:20px;
  22895. font-weight:400;
  22896. cursor:pointer;
  22897. }
  22898. .cb-tabList>.cb-tabItem{
  22899. color:#1684FC;
  22900. position:relative;
  22901. }
  22902. .cb-tabItem::after{
  22903. content:"";
  22904. width:100%;
  22905. height:2px;
  22906. background:#1684FC;
  22907. position:absolute;
  22908. bottom:-5px;
  22909. left:0
  22910. }
  22911. .pzTop2 .check {
  22912. text-align: center;
  22913. cursor: pointer;
  22914. box-sizing: border-box;
  22915. display: flex;
  22916. }
  22917. .pzTop2 img {
  22918. width: 25px;
  22919. cursor: pointer;
  22920. }
  22921. .pzTop > div:nth-child(1) {
  22922. padding-left: 10px;
  22923. }
  22924. .pzTop > div:nth-child(2) {
  22925. width: 15px;
  22926. height: 15px;
  22927. padding-right: 10px;
  22928. cursor: pointer;
  22929. }
  22930. .pzTop > div:nth-child(2) > img {
  22931. width: 100%;
  22932. height: 100%;
  22933. }
  22934. .pzBox,
  22935. .noPzBox {
  22936. height: calc(100% - 60px);
  22937. /* background: #ededed; */
  22938. background: #fff;
  22939. /* border-radius: 0 0 15px 15px; */
  22940. }
  22941. .noPzBox {
  22942. display: flex;
  22943. flex-direction: column;
  22944. flex-wrap: nowrap;
  22945. justify-content: center;
  22946. align-items: center;
  22947. }
  22948. .pzList {
  22949. background: #f7f7f7;
  22950. width: 90%;
  22951. margin: 0 auto 15px;
  22952. border-radius: 5px;
  22953. }
  22954. .pzNavTop {
  22955. display: flex;
  22956. flex-direction: row;
  22957. flex-wrap: nowrap;
  22958. padding: 10px 10px 0 10px;
  22959. align-items: center;
  22960. }
  22961. .pzDelete {
  22962. cursor: pointer;
  22963. margin-left: auto;
  22964. font-size: 14px;
  22965. color: #afafaf;
  22966. }
  22967. .pzNavTop > div:nth-child(1) {
  22968. background: #3760af;
  22969. width: 35px;
  22970. height: 35px;
  22971. color: #fff;
  22972. text-align: center;
  22973. line-height: 35px;
  22974. border-radius: 50%;
  22975. font-size: 14px;
  22976. }
  22977. .pzNavTop > div:nth-child(2) {
  22978. font-size: 18px;
  22979. color: #959595;
  22980. margin-left: 5px;
  22981. }
  22982. .pzContent {
  22983. padding: 10px;
  22984. word-break: break-word;
  22985. }
  22986. .pzContent audio {
  22987. width: 100%;
  22988. }
  22989. .pzContent audio::-webkit-media-controls-panel {
  22990. background: #fff;
  22991. }
  22992. .pzContent >>> img {
  22993. max-width: 100%;
  22994. }
  22995. .pzListBox {
  22996. padding-top: 15px;
  22997. height: calc(100% - 110px);
  22998. overflow: auto;
  22999. }
  23000. .addPzButton {
  23001. position: relative;
  23002. margin-top: 3px;
  23003. width: 100%;
  23004. }
  23005. .addPzButton .img1 {
  23006. position: absolute;
  23007. top: 50%;
  23008. right: 25px;
  23009. transform: translateY(-50%);
  23010. height: 100%;
  23011. display: flex;
  23012. align-items: center;
  23013. }
  23014. .addPzButton .img1 div {
  23015. display: flex;
  23016. }
  23017. .addPzButton .img1 div img {
  23018. width: 28px;
  23019. margin-left: 10px;
  23020. cursor: pointer;
  23021. }
  23022. .addPzButton .img1 div span {
  23023. font-size: 14px;
  23024. margin: 4px 0 0 3px;
  23025. color: #afafaf;
  23026. }
  23027. .addPz {
  23028. background: #4b79ce;
  23029. width: 100px;
  23030. color: #fff;
  23031. font-size: 12px;
  23032. height: 30px;
  23033. margin: 0 auto;
  23034. text-align: center;
  23035. line-height: 30px;
  23036. border-radius: 10px;
  23037. cursor: pointer;
  23038. }
  23039. .addDialogCss {
  23040. position: fixed;
  23041. width: 600px;
  23042. height: 70%;
  23043. min-height: 450px;
  23044. box-shadow: 0px 0 8px 0px #555555;
  23045. border-radius: 15px;
  23046. z-index: 999;
  23047. left: 50%;
  23048. top: 50%;
  23049. margin: -18% 0 0 -300px;
  23050. }
  23051. .teacherPz {
  23052. display: flex;
  23053. flex-direction: row;
  23054. align-items: center;
  23055. flex-wrap: nowrap;
  23056. }
  23057. .teacherPzImg {
  23058. width: 30px;
  23059. height: 30px;
  23060. }
  23061. .teacherPzImg > img {
  23062. width: 100%;
  23063. height: 100%;
  23064. }
  23065. .addPzBox {
  23066. height: calc(100% - 40px);
  23067. background: #ededed;
  23068. border-bottom-left-radius: 15px;
  23069. border-bottom-right-radius: 15px;
  23070. }
  23071. .pzAudioClass {
  23072. margin: 15px 14px;
  23073. background: #fff;
  23074. height: 100%;
  23075. display: flex;
  23076. justify-content: center;
  23077. align-items: center;
  23078. }
  23079. .pzConText {
  23080. width: 95%;
  23081. height: 100%;
  23082. margin: 10px auto 0;
  23083. border: none;
  23084. background: #fff;
  23085. border-radius: 0px;
  23086. }
  23087. .pzConText >>> .text {
  23088. height: calc(100% - 82px);
  23089. }
  23090. .addTextCss {
  23091. background: #4b79ce;
  23092. width: 80px;
  23093. height: 30px;
  23094. text-align: center;
  23095. color: #fff;
  23096. line-height: 30px;
  23097. border-radius: 10px;
  23098. margin: 10px auto 0;
  23099. cursor: pointer;
  23100. }
  23101. .pzConText:focus-visible {
  23102. border: none !important;
  23103. }
  23104. .maxWidth {
  23105. width: 1000px;
  23106. }
  23107. .noPz {
  23108. width: 150px;
  23109. margin: 0 auto 20%;
  23110. }
  23111. .noPz > img {
  23112. width: 100%;
  23113. height: 100%;
  23114. }
  23115. .timeAndReply {
  23116. display: flex;
  23117. flex-direction: row;
  23118. flex-wrap: nowrap;
  23119. justify-content: space-between;
  23120. align-items: center;
  23121. font-size: 14px;
  23122. box-sizing: border-box;
  23123. padding: 0 10px 10px 0px;
  23124. }
  23125. .timeAndReply .time {
  23126. color: #bfbfbf;
  23127. padding: 0 0 0 10px;
  23128. box-sizing: border-box;
  23129. }
  23130. .timeAndReply > div:last-child {
  23131. cursor: pointer;
  23132. color: #777;
  23133. }
  23134. /* table 样式 */
  23135. .cont >>> table {
  23136. border-top: 1px solid #ccc;
  23137. border-left: 1px solid #ccc;
  23138. }
  23139. .cont >>> table td,
  23140. .cont >>> table th {
  23141. border-bottom: 1px solid #ccc;
  23142. border-right: 1px solid #ccc;
  23143. /* padding: 20px 5px; */
  23144. padding: 5px 10px;
  23145. max-width: 0px;
  23146. height: 30px;
  23147. vertical-align: baseline;
  23148. box-sizing: border-box;
  23149. }
  23150. .cont >>> table th {
  23151. border-bottom: 2px solid #ccc;
  23152. text-align: center;
  23153. }
  23154. /* blockquote 样式 */
  23155. .cont >>> blockquote {
  23156. display: block;
  23157. border-left: 8px solid #d0e5f2;
  23158. padding: 5px 10px;
  23159. margin: 10px 0;
  23160. line-height: 1.4;
  23161. font-size: 100%;
  23162. background-color: #f1f1f1;
  23163. }
  23164. /* code 样式 */
  23165. .cont >>> code {
  23166. display: inline-block;
  23167. /* *display: inline; */
  23168. zoom: 1;
  23169. background-color: #f1f1f1;
  23170. border-radius: 3px;
  23171. padding: 3px 5px;
  23172. margin: 0 3px;
  23173. }
  23174. .cont >>> pre code {
  23175. display: block;
  23176. }
  23177. /* ul ol 样式 */
  23178. .cont >>> ul,
  23179. ol {
  23180. margin: 10px 0 10px 20px;
  23181. }
  23182. .addPzCheck {
  23183. display: flex;
  23184. flex-direction: row;
  23185. flex-wrap: nowrap;
  23186. padding: 10px 15px 0;
  23187. }
  23188. .addPzCheck span {
  23189. cursor: pointer;
  23190. padding-bottom: 5px;
  23191. font-weight: bold;
  23192. }
  23193. .addPzCheck span + span {
  23194. margin-left: 10px;
  23195. }
  23196. .addPzCheck .isChooseActive {
  23197. color: #3e88f4;
  23198. border-bottom: 2px solid #2f80f3;
  23199. }
  23200. /* code 样式 */
  23201. .cont {
  23202. /* -webkit-user-modify: read-write; */
  23203. overflow-wrap: break-word;
  23204. -webkit-line-break: after-white-space;
  23205. word-break: break-word;
  23206. white-space: pre-line;
  23207. }
  23208. .scoreBox,
  23209. .scoreDetailBox {
  23210. display: flex;
  23211. align-items: center;
  23212. justify-content: flex-start;
  23213. margin-top: 20px;
  23214. font-size: 18px;
  23215. width: 100%;
  23216. }
  23217. .scoreBox .t,
  23218. .scoreDetailBox .t {
  23219. margin-right: 10px;
  23220. width: 100px;
  23221. text-align: right;
  23222. }
  23223. .scoreDetailBox {
  23224. align-items: flex-start;
  23225. }
  23226. .scoreDetailBox >>> .el-textarea {
  23227. width: calc(100% - 200px);
  23228. }
  23229. .scoreBox >>> .el-input {
  23230. width: 130px;
  23231. font-size: 38px;
  23232. }
  23233. .scoreBox >>> .el-input__inner {
  23234. height: 60px;
  23235. }
  23236. .answerScore {
  23237. position: absolute;
  23238. top: 10px;
  23239. right: 10px;
  23240. background: #0000008f;
  23241. border-radius: 5px;
  23242. padding: 3px 5px;
  23243. font-size: 14px;
  23244. color: #fff;
  23245. cursor: pointer;
  23246. }
  23247. .open_box .switch_box {
  23248. width: 100%;
  23249. margin: 0 auto;
  23250. display: flex;
  23251. justify-content: space-between;
  23252. }
  23253. .open_box .switch_box + .switch_box {
  23254. margin-top: 10px;
  23255. }
  23256. .deleteImg,.deleteImg1 {
  23257. width: 25px !important;
  23258. height: 25px !important;
  23259. cursor: pointer;
  23260. position: absolute;
  23261. top: 10px;
  23262. right: 10px;
  23263. }
  23264. .deleteImg2 {
  23265. width: 23px !important;
  23266. height: 23px !important;
  23267. top: 5px;
  23268. right: 5px;
  23269. }
  23270. .deleteImg1{
  23271. width: 23px !important;
  23272. height: 23px !important;
  23273. top: 5px !important;
  23274. right: 30px !important;
  23275. }
  23276. .rightW {
  23277. right: 40px;
  23278. }
  23279. .drawPBox {
  23280. display: flex;
  23281. flex-direction: column;
  23282. position: relative;
  23283. }
  23284. .drawPBox span {
  23285. font-size: 18px;
  23286. color: #606266;
  23287. padding-bottom: 10px;
  23288. margin: 10px 0;
  23289. border-bottom: 1px solid #eaeaea;
  23290. }
  23291. .drawPBox img {
  23292. width: 500px;
  23293. height: 300px;
  23294. object-fit: contain;
  23295. cursor: pointer;
  23296. margin: 0 auto;
  23297. }
  23298. .sentenBox {
  23299. background: #fff;
  23300. height: 450px;
  23301. overflow: auto;
  23302. background-image: url("../../assets/icon/conSentences/stuBg.png");
  23303. background-position: 102%;
  23304. background-repeat: no-repeat;
  23305. background-size: 60%;
  23306. }
  23307. .addSen {
  23308. background: #409efe;
  23309. width: 90px;
  23310. color: #fff;
  23311. height: 35px;
  23312. text-align: center;
  23313. line-height: 35px;
  23314. border-radius: 5px;
  23315. float: right;
  23316. margin: 10px 20px 0 0;
  23317. cursor: pointer;
  23318. }
  23319. .sentenTop {
  23320. display: flex;
  23321. flex-direction: row;
  23322. flex-wrap: nowrap;
  23323. align-items: center;
  23324. padding: 55px 0 0 20px;
  23325. box-sizing: border-box;
  23326. }
  23327. .sentenTop > div:nth-child(2) {
  23328. width: 300px;
  23329. margin: 0 15px;
  23330. }
  23331. .sentenTop > div:nth-child(3) {
  23332. background: #409efe;
  23333. color: #fff;
  23334. width: 65px;
  23335. height: 35px;
  23336. text-align: center;
  23337. line-height: 35px;
  23338. border-radius: 5px;
  23339. cursor: pointer;
  23340. }
  23341. .cardList,
  23342. .cardList1 {
  23343. padding: 10px 0 10px 0;
  23344. display: flex;
  23345. flex-direction: row;
  23346. flex-wrap: wrap;
  23347. align-items: center;
  23348. box-sizing: border-box;
  23349. border-bottom: 1px solid #f4f4f4;
  23350. width: 98%;
  23351. margin: 0 auto;
  23352. min-width: 60%;
  23353. max-width: 85%;
  23354. }
  23355. .cardList1 {
  23356. padding: 10px 0 10px 10px !important;
  23357. margin: 0 !important;
  23358. }
  23359. .cardBox {
  23360. display: flex;
  23361. flex-direction: row;
  23362. flex-wrap: wrap;
  23363. align-items: center;
  23364. align-content: center;
  23365. }
  23366. .cardBox > div {
  23367. margin-bottom: 10px;
  23368. }
  23369. .isCard,
  23370. .isChooseCard,
  23371. .noCard,
  23372. .isCard1 {
  23373. min-width: 130px;
  23374. width: auto;
  23375. height: 60px;
  23376. text-align: center;
  23377. line-height: 60px;
  23378. font-size: 20px;
  23379. cursor: pointer;
  23380. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  23381. background-size: cover;
  23382. transition: all 2s;
  23383. margin-right: 20px;
  23384. background-size: 100% 100%;
  23385. padding: 0 20px;
  23386. box-sizing: border-box;
  23387. }
  23388. .isCard > div,
  23389. .noCard > div,
  23390. .isCard1 > div {
  23391. white-space: nowrap;
  23392. overflow: hidden;
  23393. text-overflow: ellipsis;
  23394. width: 100%;
  23395. margin: 0 auto;
  23396. }
  23397. .noCard {
  23398. background-image: none;
  23399. }
  23400. .isCard1 {
  23401. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  23402. }
  23403. .isChooseCard {
  23404. background-image: none;
  23405. border: 1px dashed #b9b9b9;
  23406. border-radius: 10px;
  23407. }
  23408. .card {
  23409. width: 130px;
  23410. height: 60px;
  23411. }
  23412. .card > img {
  23413. width: 100%;
  23414. height: 100%;
  23415. }
  23416. .rightCardBox {
  23417. margin: 10px 0 0 10px;
  23418. }
  23419. .rightCardBox > div:nth-child(1) {
  23420. margin-bottom: 10px;
  23421. }
  23422. .cardCss {
  23423. display: flex;
  23424. flex-direction: column;
  23425. flex-wrap: nowrap;
  23426. align-items: center;
  23427. border-bottom: 3px solid #b4c3d3;
  23428. padding: 0 0 5px 0;
  23429. margin-right: 10px;
  23430. }
  23431. .cardCss > div:nth-child(2) {
  23432. background: #5b7b9d;
  23433. color: #fff;
  23434. width: 20px;
  23435. height: 20px;
  23436. border-radius: 50%;
  23437. text-align: center;
  23438. line-height: 20px;
  23439. }
  23440. .isWrong {
  23441. display: flex;
  23442. flex-direction: row;
  23443. flex-wrap: nowrap;
  23444. align-content: center;
  23445. align-items: center;
  23446. }
  23447. .answerRight {
  23448. width: 25%;
  23449. }
  23450. .isTj {
  23451. display: flex;
  23452. flex-direction: row;
  23453. flex-wrap: nowrap;
  23454. align-items: center;
  23455. }
  23456. .isTj > div:nth-child(2) {
  23457. color: #727070;
  23458. margin-left: 10px;
  23459. }
  23460. .isTjImg {
  23461. width: 30px;
  23462. height: 30px;
  23463. }
  23464. .isTjImg > img {
  23465. width: 100%;
  23466. height: 100%;
  23467. }
  23468. .cardAnswerBox {
  23469. font-size: 18px;
  23470. width: 97%;
  23471. border: 5px;
  23472. padding: 0;
  23473. border-radius: 5px;
  23474. margin: 10px auto;
  23475. word-break: break-word;
  23476. }
  23477. .w_name {
  23478. margin-bottom: 10px;
  23479. }
  23480. .w_name span {
  23481. font-size: 16px;
  23482. }
  23483. .w_teachert {
  23484. width: 50px !important;
  23485. position: absolute;
  23486. height: auto !important;
  23487. z-index: 10;
  23488. right: 25px;
  23489. top: -25px;
  23490. }
  23491. .group_workBox {
  23492. }
  23493. .group_workBox + .group_workBox {
  23494. margin-top: 20px;
  23495. }
  23496. .group_box {
  23497. padding-bottom: 20px;
  23498. border-bottom: 2px solid #f0f0f0;
  23499. margin-top: 10px;
  23500. }
  23501. .group_title {
  23502. display: flex;
  23503. align-items: center;
  23504. justify-content: space-between;
  23505. width: 95%;
  23506. }
  23507. .group_name {
  23508. background-image: url(../../assets/icon/groupN.png);
  23509. width: 220px;
  23510. background-size: 100% 100%;
  23511. height: 67px;
  23512. padding: 0 20px 0 43px;
  23513. box-sizing: border-box;
  23514. line-height: 63px;
  23515. color: #fff;
  23516. overflow: hidden;
  23517. white-space: nowrap;
  23518. text-overflow: ellipsis;
  23519. }
  23520. .group_work {
  23521. width: 100%;
  23522. padding: 0 10px;
  23523. box-sizing: border-box;
  23524. display: flex;
  23525. flex-wrap: wrap;
  23526. }
  23527. .g_d_box {
  23528. display: flex;
  23529. flex-flow: wrap;
  23530. justify-content: space-around;
  23531. }
  23532. .g_d_box .isChair {
  23533. background-image: url(../../assets/avatar.png) !important;
  23534. }
  23535. .g_d_group {
  23536. width: 500px;
  23537. margin-bottom: 80px;
  23538. }
  23539. .g_d_group_chair {
  23540. display: flex;
  23541. align-items: center;
  23542. justify-content: center;
  23543. }
  23544. .g_d_group_chair > div + div {
  23545. margin-left: 30px;
  23546. }
  23547. .g_d_group_chair > div,
  23548. .g_d_group_chair2 > div {
  23549. display: flex;
  23550. flex-direction: column;
  23551. align-items: center;
  23552. }
  23553. .g_d_group_chair > div > span:nth-child(1),
  23554. .g_d_group_chair2 > div > span:nth-child(1) {
  23555. background-image: url(../../assets/icon/chair.png);
  23556. width: 50px;
  23557. height: 50px;
  23558. display: block;
  23559. background-size: 100% 100%;
  23560. }
  23561. .g_d_group_tableBox {
  23562. display: flex;
  23563. align-items: center;
  23564. justify-content: center;
  23565. }
  23566. .g_d_group_chair2 {
  23567. display: flex;
  23568. flex-direction: column;
  23569. align-items: center;
  23570. justify-content: center;
  23571. }
  23572. .g_d_group_chair2 > div + div {
  23573. margin-top: 10px;
  23574. }
  23575. .g_d_group_table {
  23576. background-image: url(../../assets/icon/groupBg.png);
  23577. width: 354px;
  23578. height: 196px;
  23579. background-size: 100% 100%;
  23580. display: flex;
  23581. align-items: center;
  23582. justify-content: center;
  23583. flex-direction: column;
  23584. color: #fff;
  23585. }
  23586. .g_d_group_table > div:nth-child(1) {
  23587. font-size: 24px;
  23588. margin-bottom: 5px;
  23589. }
  23590. .g_d_group_table > div:nth-child(2) div {
  23591. cursor: pointer;
  23592. background: #2e77bf;
  23593. padding: 4px 10px;
  23594. border-radius: 5px;
  23595. }
  23596. .groupBox {
  23597. }
  23598. .groupContent + .groupContent {
  23599. margin-top: 30px;
  23600. }
  23601. .groupTitle {
  23602. font-size: 24px;
  23603. color: rgb(80, 80, 80);
  23604. margin-bottom: 20px;
  23605. }
  23606. .groupName {
  23607. display: flex;
  23608. align-items: center;
  23609. }
  23610. .groupn {
  23611. font-size: 15px;
  23612. margin-right: 10px;
  23613. }
  23614. .groupName + .groupName {
  23615. margin-top: 15px;
  23616. }
  23617. .groupBtn {
  23618. margin-left: 10px;
  23619. }
  23620. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23621. text-align: left;
  23622. }
  23623. .g_d_btnBox {
  23624. display: flex;
  23625. justify-content: flex-end;
  23626. align-items: center;
  23627. margin-bottom: 20px;
  23628. }
  23629. .updateChair {
  23630. position: relative;
  23631. }
  23632. .updateChairBtn {
  23633. position: absolute;
  23634. width: 50px;
  23635. height: 50px;
  23636. overflow: hidden;
  23637. /* display: flex; */
  23638. align-items: center;
  23639. justify-content: center;
  23640. background: #00000087;
  23641. color: #fff;
  23642. border-radius: 50px;
  23643. display: none;
  23644. cursor: pointer;
  23645. }
  23646. .updateChair:hover .updateChairBtn {
  23647. display: flex;
  23648. }
  23649. .group_staic_box {
  23650. display: flex;
  23651. padding: 30px 40px 10px;
  23652. flex-wrap: wrap;
  23653. }
  23654. .group_staic {
  23655. /* width: 50%; */
  23656. margin-bottom: 20px;
  23657. display: flex;
  23658. align-items: center;
  23659. }
  23660. .group_staic span:nth-child(1) {
  23661. width: 150px;
  23662. text-align: right;
  23663. margin-right: 15px;
  23664. }
  23665. .group_staic span:nth-child(2) {
  23666. background: rgb(0 123 255);
  23667. color: #fff;
  23668. border-radius: 5px;
  23669. padding: 5px;
  23670. }
  23671. .codeFileBox {
  23672. height: 300px;
  23673. background: #fff;
  23674. display: flex;
  23675. align-items: center;
  23676. justify-content: center;
  23677. }
  23678. .codeFileBox img {
  23679. width: 200px;
  23680. margin: 0;
  23681. height: auto;
  23682. }
  23683. .codeFileBox div {
  23684. background: rgb(80, 142, 226);
  23685. color: #fff;
  23686. padding: 10px 20px;
  23687. border-radius: 25px;
  23688. cursor: pointer;
  23689. margin-left: 15px;
  23690. }
  23691. .radioBox {
  23692. display: flex;
  23693. flex-direction: column;
  23694. flex-wrap: nowrap;
  23695. align-items: flex-start;
  23696. }
  23697. .radioBox > div {
  23698. margin: 10px 0 0 10px;
  23699. }
  23700. /* .radioBox >>> .el-radio__input,
  23701. .radioBox >>> .el-checkbox__inner {
  23702. margin-left: 10px;
  23703. } */
  23704. .radioBox >>> .el-radio__label,
  23705. .radioBox >>> .el-checkbox__label {
  23706. display: flex;
  23707. align-items: center;
  23708. width: 100%;
  23709. }
  23710. .radioBox >>> .el-radio__label > span {
  23711. width: 100%;
  23712. display: -webkit-box;
  23713. overflow: hidden;
  23714. white-space: normal !important;
  23715. text-overflow: ellipsis;
  23716. word-wrap: break-word;
  23717. }
  23718. .inImg {
  23719. width: 100px;
  23720. cursor: pointer;
  23721. }
  23722. .inImg > img {
  23723. width: 100%;
  23724. height: 100%;
  23725. object-fit: cover;
  23726. }
  23727. .timuImgBox {
  23728. margin: 10px 0;
  23729. display: flex;
  23730. flex-direction: column;
  23731. flex-wrap: wrap;
  23732. align-items: flex-start;
  23733. }
  23734. .timuImg {
  23735. width: 150px;
  23736. margin: 5px 0;
  23737. cursor: pointer;
  23738. }
  23739. .timuImg > img {
  23740. width: 100%;
  23741. height: 100%;
  23742. object-fit: cover;
  23743. }
  23744. .worksTop {
  23745. display: flex;
  23746. flex-direction: row;
  23747. align-items: flex-end;
  23748. }
  23749. .worksTitle {
  23750. display: flex;
  23751. flex-direction: row;
  23752. flex-wrap: nowrap;
  23753. align-items: center;
  23754. }
  23755. .worksTitle::before,
  23756. .worksTop::before {
  23757. content: "";
  23758. display: block;
  23759. width: 3px;
  23760. height: 20px;
  23761. background: #0061ff;
  23762. border-radius: 3px;
  23763. margin: 0 5px 0 0;
  23764. }
  23765. .corOpen {
  23766. margin: 0 0 0 10px;
  23767. font-size: 14px;
  23768. cursor: pointer;
  23769. color: #505050;
  23770. }
  23771. .corOpen:hover {
  23772. color: #499eef;
  23773. }
  23774. .navCorOpenBox {
  23775. display: flex;
  23776. flex-direction: row;
  23777. align-items: center;
  23778. justify-content: space-between;
  23779. height: 55px;
  23780. background: #ffffff;
  23781. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23782. border-radius: 8px 8px 0px 0px;
  23783. z-index: 9;
  23784. position: relative;
  23785. }
  23786. .navCorOpen {
  23787. padding-right: 15px;
  23788. cursor: pointer;
  23789. width: 45px;
  23790. display: flex;
  23791. }
  23792. .navCorOpen > img {
  23793. width: 100%;
  23794. height: 100%;
  23795. }
  23796. .mlImg {
  23797. width: 40px !important;
  23798. min-width: 40px;
  23799. cursor: pointer;
  23800. transform: rotate(180deg);
  23801. }
  23802. .mlImg > img {
  23803. width: 100%;
  23804. height: 100%;
  23805. }
  23806. .navLeftCss {
  23807. width: 100% !important;
  23808. left: 0 !important;
  23809. }
  23810. .isContentCss {
  23811. width: 100% !important;
  23812. }
  23813. .isAllWidth {
  23814. width: 100% !important;
  23815. }
  23816. .group_switch {
  23817. margin-right: 10px;
  23818. height: 30px;
  23819. display: flex;
  23820. align-items: center;
  23821. }
  23822. .group_switch > span {
  23823. margin-right: 5px;
  23824. }
  23825. .fileC_box {
  23826. padding-top: 15px;
  23827. }
  23828. .fileC_box > .fileC_title {
  23829. padding: 10px 5px 14px 10px;
  23830. border-top: 1px solid #cad1dc;
  23831. font-size: 14px;
  23832. font-weight: 400;
  23833. color: #cad1dc;
  23834. width: calc(100% - 20px);
  23835. margin: 0 auto;
  23836. box-sizing: border-box;
  23837. }
  23838. .pl_select_box {
  23839. height: 40px;
  23840. line-height: 40px;
  23841. width: 100%;
  23842. cursor: pointer;
  23843. padding: 0 20px;
  23844. box-sizing: border-box;
  23845. border-radius: 5px;
  23846. border: 1px solid #d6d6d6;
  23847. white-space: nowrap;
  23848. overflow: hidden;
  23849. text-overflow: ellipsis;
  23850. background: #fff;
  23851. text-align: left;
  23852. }
  23853. .newButton {
  23854. width: 102px;
  23855. height: 36px;
  23856. background: #e7ebf1;
  23857. border-radius: 4px;
  23858. color: #0e1e33;
  23859. font-weight: 400;
  23860. font-size: 14px;
  23861. border: none;
  23862. float: right;
  23863. margin-left: 10px;
  23864. }
  23865. .el-table >>> .even_row {
  23866. background-color: #f0f4fa;
  23867. }
  23868. .stageBoxCss,
  23869. .stageBoxIsCss {
  23870. display: flex;
  23871. flex-direction: row;
  23872. flex-wrap: nowrap;
  23873. align-items: center;
  23874. height: 50px;
  23875. border-bottom: 1px solid #e2f5fc;
  23876. cursor: pointer;
  23877. width: 100%;
  23878. }
  23879. .stageBoxIsCss {
  23880. background: #0061ff;
  23881. color: #fff;
  23882. border-radius: 8px;
  23883. }
  23884. .closeTri,
  23885. .closeTri1 {
  23886. min-width: 15px;
  23887. width: 15px;
  23888. height: 15px;
  23889. }
  23890. .closeTri1 {
  23891. padding-left: 10px;
  23892. cursor: pointer;
  23893. }
  23894. .closeTri > img,
  23895. .closeTri1 > img {
  23896. width: 100%;
  23897. height: 100%;
  23898. /* transition: all .5s; */
  23899. }
  23900. .noToolBlue {
  23901. min-width: 10px;
  23902. width: 10px;
  23903. height: 10px;
  23904. background: #0061ff;
  23905. border-radius: 50%;
  23906. margin-left: 13px;
  23907. }
  23908. .stageChild,
  23909. .toolChild {
  23910. height: 0;
  23911. overflow: hidden;
  23912. transition: all 0.5s;
  23913. }
  23914. .toolChild {
  23915. /* margin: 0 0 0 17px;
  23916. padding: 0 0 0 20px;
  23917. border-left: 1px solid #d7d7d7; */
  23918. }
  23919. .toolChild > div + div{
  23920. margin-top:5px;
  23921. }
  23922. .gjCss {
  23923. display: flex;
  23924. flex-direction: row;
  23925. flex-wrap: nowrap;
  23926. align-items: center;
  23927. padding: 10px 0 10px 40px;
  23928. box-sizing: border-box;
  23929. font-size: 14px;
  23930. cursor: pointer;
  23931. border-radius:5px;
  23932. }
  23933. .toolChild > div {
  23934. position: relative;
  23935. width: 100%;
  23936. }
  23937. .toolChild > div::before {
  23938. /* content: "";
  23939. width: 15px;
  23940. height: 1px;
  23941. background: #cad1dc;
  23942. position: absolute;
  23943. top: 24px;
  23944. left: -20px;
  23945. display: block; */
  23946. }
  23947. .isGjCss {
  23948. /* color: #0061ff; */
  23949. color:#fff;
  23950. background: rgb(55, 129, 252);
  23951. /* background-color: #e0eafb !important;
  23952. color: #0061ff !important; */
  23953. }
  23954. .navItem {
  23955. background: #ffffff;
  23956. border-radius: 4px;
  23957. width: 100%;
  23958. margin: 10px auto;
  23959. position: relative;
  23960. height: 40px;
  23961. display: flex;
  23962. flex-direction: row;
  23963. flex-wrap: nowrap;
  23964. align-items: center;
  23965. }
  23966. .navItemList {
  23967. display: flex;
  23968. flex-direction: row;
  23969. flex-wrap: nowrap;
  23970. align-items: center;
  23971. padding: 0 13px;
  23972. cursor: pointer;
  23973. width: calc(100% - 60px);
  23974. height: 100%;
  23975. }
  23976. .navItemList > div:first-child {
  23977. min-width: 60px;
  23978. }
  23979. .navItemList > div:last-child {
  23980. width: calc(100% - 80px);
  23981. white-space: nowrap;
  23982. overflow: hidden;
  23983. text-overflow: ellipsis;
  23984. word-break: break-word;
  23985. }
  23986. /* .isItemList > div {
  23987. color: #fff !important;
  23988. } */
  23989. .tool_work_box {
  23990. width: 100%;
  23991. padding: 0 37px 0;
  23992. box-sizing: border-box;
  23993. }
  23994. .tool_box {
  23995. width: 100%;
  23996. padding: 0 0 0 20px;
  23997. }
  23998. .tool_type_box {
  23999. display: flex;
  24000. flex-direction: row;
  24001. align-items: baseline;
  24002. flex-wrap: nowrap;
  24003. justify-content: flex-start;
  24004. position: relative;
  24005. }
  24006. .toolSort {
  24007. display: flex;
  24008. flex-direction: row;
  24009. flex-wrap: wrap;
  24010. justify-content: flex-start;
  24011. align-items: flex-start;
  24012. padding: 0 0 15px 0;
  24013. }
  24014. .toolSort > div {
  24015. margin: 0 10px 0 0;
  24016. width: 135px;
  24017. box-sizing: border-box;
  24018. border: 2px solid transparent;
  24019. }
  24020. .tools {
  24021. width: 100%;
  24022. display: flex;
  24023. flex-direction: column;
  24024. flex-wrap: nowrap;
  24025. align-items: flex-start;
  24026. }
  24027. .whiteBIcon {
  24028. width: fit-content;
  24029. cursor: pointer;
  24030. display: flex;
  24031. flex-direction: column;
  24032. flex-wrap: nowrap;
  24033. align-items: center;
  24034. font-size: 14px;
  24035. }
  24036. .tool:hover {
  24037. border: 2px solid #a5c7ff;
  24038. border-radius: 5px;
  24039. }
  24040. .whiteBIcon > img {
  24041. width: 65px;
  24042. height: 100%;
  24043. }
  24044. .whiteBIcon > img {
  24045. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  24046. border-radius: 15px;
  24047. }
  24048. .check {
  24049. /* width: 20px;
  24050. height: 20px; */
  24051. cursor: pointer;
  24052. margin: 10px 0;
  24053. position: absolute;
  24054. right: 2px;
  24055. top: -5px;
  24056. }
  24057. .noChoose,
  24058. .isChoose {
  24059. width: 15px;
  24060. height: 15px;
  24061. border-radius: 50%;
  24062. border: 1px solid #adadad;
  24063. }
  24064. .isChoose {
  24065. border: 4px solid #0363ff !important;
  24066. width: 10px;
  24067. height: 10px;
  24068. }
  24069. .isToolChoose {
  24070. border: 2px solid #5394ff !important;
  24071. border-radius: 5px;
  24072. box-shadow: 0 0 6px 0px #5394ff;
  24073. }
  24074. .checkDiv {
  24075. display: flex;
  24076. align-items: center;
  24077. }
  24078. .checkDiv span {
  24079. margin-left: 5px;
  24080. color: #858585;
  24081. }
  24082. .check img {
  24083. width: 20px;
  24084. height: 20px;
  24085. }
  24086. .lockTaskIcon {
  24087. width: 20px;
  24088. height: 20px;
  24089. position: absolute;
  24090. right: 10px;
  24091. top: 10px;
  24092. }
  24093. .lockTaskIcon > img {
  24094. width: 100%;
  24095. height: 100%;
  24096. }
  24097. .pick_box {
  24098. display: flex;
  24099. align-items: flex-start;
  24100. flex-wrap: wrap;
  24101. }
  24102. .selectBox {
  24103. width: 110px;
  24104. margin-left: 10px;
  24105. margin: 0 10px 0 auto;
  24106. }
  24107. .selectBox >>> .el-input__inner {
  24108. height: 30px;
  24109. line-height: 30px;
  24110. }
  24111. .selectBox >>> .el-input__icon {
  24112. line-height: 30px;
  24113. }
  24114. .sentenceTitle {
  24115. display: flex;
  24116. flex-direction: row;
  24117. flex-wrap: nowrap;
  24118. align-items: center;
  24119. }
  24120. .sentenceTitle::before {
  24121. content: attr(index);
  24122. background: #3681fc;
  24123. border-radius: 50%;
  24124. color: #fff;
  24125. width: 25px;
  24126. height: 25px;
  24127. min-width: 25px;
  24128. min-height: 25px;
  24129. text-align: center;
  24130. line-height: 25px;
  24131. margin-right: 5px;
  24132. }
  24133. .hfBox {
  24134. padding: 10px;
  24135. box-sizing: border-box;
  24136. }
  24137. .whoReplyWho {
  24138. display: flex;
  24139. flex-direction: row;
  24140. flex-wrap: nowrap;
  24141. align-items: baseline;
  24142. justify-content: flex-start;
  24143. }
  24144. .hfBottom {
  24145. display: flex;
  24146. flex-direction: row;
  24147. flex-wrap: nowrap;
  24148. align-items: center;
  24149. justify-content: space-between;
  24150. font-size: 14px;
  24151. }
  24152. .deleteHfItem {
  24153. cursor: pointer;
  24154. width: 20px;
  24155. height: 20px;
  24156. }
  24157. .deleteHfItem > img {
  24158. width: 100%;
  24159. height: 100%;
  24160. }
  24161. .whoReplyWho > .hfImg {
  24162. width: 12px;
  24163. height: 12px;
  24164. margin: 0 5px;
  24165. }
  24166. .whoReplyWho > .hfImg > img {
  24167. width: 100%;
  24168. height: 100%;
  24169. }
  24170. .hfContent {
  24171. padding-top: 10px;
  24172. box-sizing: border-box;
  24173. display: -webkit-box;
  24174. overflow: hidden;
  24175. white-space: normal !important;
  24176. text-overflow: ellipsis;
  24177. word-wrap: break-word;
  24178. -webkit-box-orient: vertical;
  24179. }
  24180. .hfTime {
  24181. text-align: left;
  24182. box-sizing: border-box;
  24183. padding: 10px 0 10px 0px;
  24184. color: #bfbfbf;
  24185. font-size: 14px;
  24186. }
  24187. .btnAllNT {
  24188. position: fixed;
  24189. bottom: 100px;
  24190. right: 40px;
  24191. z-index: 999;
  24192. display: flex;
  24193. flex-direction: row;
  24194. }
  24195. .btnAllNT > img {
  24196. cursor: pointer;
  24197. width: 80px;
  24198. }
  24199. .toolMask {
  24200. position: fixed;
  24201. width: 100%;
  24202. height: 100%;
  24203. background: #3f3c3c;
  24204. opacity: 0.5;
  24205. top: 0;
  24206. left: 0;
  24207. z-index: 999;
  24208. }
  24209. .addToolCss {
  24210. position: fixed;
  24211. z-index: 999;
  24212. background: #fff;
  24213. right: 5%;
  24214. bottom: 18%;
  24215. min-width: 1035px;
  24216. min-height: 300px;
  24217. border-radius: 10px;
  24218. box-shadow: 0 0 8px 1px #b2b2b2;
  24219. }
  24220. .toolTop {
  24221. display: flex;
  24222. flex-direction: row;
  24223. flex-wrap: nowrap;
  24224. justify-content: space-between;
  24225. align-items: center;
  24226. padding: 20px;
  24227. }
  24228. .toolTop > div:nth-child(2) {
  24229. width: 15px;
  24230. height: 15px;
  24231. padding-right: 10px;
  24232. cursor: pointer;
  24233. }
  24234. .toolTop > div:nth-child(2) > img {
  24235. width: 100%;
  24236. height: 100%;
  24237. }
  24238. .fullStyle>>>.el-dialog__body {
  24239. height: calc(100% - 125px) !important;
  24240. box-sizing: border-box;
  24241. padding: 30px 0 !important;
  24242. background: #fff !important;
  24243. }
  24244. .fullStyle>>>.el-dialog {
  24245. width: 100% !important;
  24246. max-width: 100% !important;
  24247. height: 100% !important;
  24248. margin: 0 !important;
  24249. }
  24250. .fullStyle {
  24251. width: 100% !important;
  24252. max-width: 100% !important;
  24253. height: 100% !important;
  24254. margin: 0 auto !important;
  24255. }
  24256. .fullStyle>>>.el-dialog__footer{
  24257. background: #fff !important;
  24258. }
  24259. .engUpBox {
  24260. width: 100%;
  24261. height: 100%;
  24262. }
  24263. .engTitle,
  24264. .engText {
  24265. display: flex;
  24266. flex-direction: row;
  24267. flex-wrap: nowrap;
  24268. align-items: flex-start;
  24269. padding: 0 20px 20px 20px;
  24270. box-sizing: border-box;
  24271. }
  24272. .engTitle > .div:first-child,
  24273. .engText > div:first-child {
  24274. min-width: 75px;
  24275. }
  24276. .correctBox{
  24277. width: 100%;
  24278. display: flex;
  24279. flex-direction: row;
  24280. flex-wrap: nowrap;
  24281. align-items: flex-start;
  24282. }
  24283. .oldBox{
  24284. width: 50%;
  24285. height: 100%;
  24286. display: flex;
  24287. flex-direction: column;
  24288. flex-wrap: nowrap;
  24289. align-items: center;
  24290. border-top: 1px solid #d9d9d9;
  24291. border-left: 1px solid #d9d9d9;
  24292. border-right: 1px solid #d9d9d9;
  24293. }
  24294. .oldBox>div:first-child{
  24295. width: 100%;
  24296. text-align: center;
  24297. background: #d9d9d9;
  24298. height: 35px;
  24299. line-height: 35px;
  24300. font-weight: bold;
  24301. }
  24302. .oldText{
  24303. width: 100%;
  24304. height: calc(100% - 35px);
  24305. overflow: auto;
  24306. margin: 10px 0;
  24307. display: flex;
  24308. flex-direction: column;
  24309. flex-wrap: nowrap;
  24310. align-content: center;
  24311. align-items: center;
  24312. }
  24313. .detailBox{
  24314. width: 50%;
  24315. padding: 10px;
  24316. background: #f6f6f6;
  24317. border-radius: 5px;
  24318. }
  24319. .oldDetail,.oldDetail1{
  24320. padding-bottom: 30px;
  24321. }
  24322. .oldImg{
  24323. width:30px;
  24324. height: 30px;
  24325. }
  24326. .oldImg>img{
  24327. width: 100%;
  24328. height: 100%;
  24329. }
  24330. .allName{
  24331. min-width: 200px;
  24332. white-space: nowrap;
  24333. overflow: hidden;
  24334. text-overflow: ellipsis;
  24335. word-break: break-word;
  24336. cursor: pointer;
  24337. text-align: center;
  24338. border: 1px solid #bcc2cc;
  24339. box-sizing: border-box;
  24340. }
  24341. .engUpTop{
  24342. max-height: 300px;
  24343. overflow: auto;
  24344. }
  24345. .isUpdateToolDetailClass{
  24346. padding: 0 !important;
  24347. }
  24348. .isUpdateToolDetailClass textarea{
  24349. padding:12px;
  24350. font-size: 16px;
  24351. min-height:100%;
  24352. width: 100%;
  24353. box-sizing:border-box;
  24354. outline: none;
  24355. border:none;
  24356. line-height: 30px;
  24357. resize: none;
  24358. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  24359. color: #838383;
  24360. }
  24361. .show_taskD {
  24362. min-width: fit-content;
  24363. margin-left: 10px;
  24364. display: flex;
  24365. align-items: center;
  24366. font-size: 14px;
  24367. cursor: pointer;
  24368. color: #717c8d;
  24369. }
  24370. .show_taskD > img {
  24371. width: 15px;
  24372. margin-right: 5px;
  24373. transition: 0.2s all;
  24374. transform: rotate(-90deg);
  24375. }
  24376. .show_taskD.show > img {
  24377. transform: rotate(0deg);
  24378. }
  24379. .correctCss{
  24380. position: absolute;
  24381. bottom: -70px;
  24382. background: #409eff;
  24383. color: #fff;
  24384. }
  24385. </style>