studyStudent.vue 820 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680
  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% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  228. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  229. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  230. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) ? '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)">
  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>
  996. <div v-if="tooC == 8">
  997. <img
  998. src="../../assets/icon/secondToolList/library.png"
  999. alt
  1000. @click="addTools(tooC, toolIndex, taskCount)"
  1001. />
  1002. <div style="margin: 5px 0">素材库</div>
  1003. </div>
  1004. <div v-if="tooC == 17">
  1005. <img
  1006. src="../../assets/icon/secondToolList/library.png"
  1007. alt
  1008. @click="addTools(tooC, toolIndex, taskCount)"
  1009. />
  1010. <div style="margin: 5px 0">学习资料</div>
  1011. </div>
  1012. <div v-if="tooC == 2">
  1013. <img
  1014. @click="addTools(tooC, toolIndex, taskCount)"
  1015. src="../../assets/icon/secondToolList/note.png"
  1016. alt
  1017. />
  1018. <div style="margin: 5px 0">便签</div>
  1019. </div>
  1020. <div v-if="tooC == 4">
  1021. <img
  1022. @click="addTools(tooC, toolIndex, taskCount)"
  1023. src="../../assets/icon/thirdToolList/ask.png"
  1024. alt
  1025. />
  1026. <div style="margin: 5px 0">问卷调查</div>
  1027. </div>
  1028. <div v-if="tooC == 45">
  1029. <img
  1030. @click="addTools(tooC, toolIndex, taskCount)"
  1031. src="../../assets/icon/thirdToolList/choose.png"
  1032. alt
  1033. />
  1034. <div style="margin: 5px 0">选择题</div>
  1035. </div>
  1036. <!-- <div v-if="tooC == 5">
  1037. <img
  1038. @click="addTools(tooC, toolIndex, taskCount)"
  1039. src="../../assets/icon/thirdToolList/score.png"
  1040. alt
  1041. />
  1042. <div style="margin: 5px 0">量规评分</div>
  1043. </div> -->
  1044. <div v-if="tooC == 10">
  1045. <img
  1046. @click="addTools(tooC, toolIndex, taskCount)"
  1047. src="../../assets/icon/thirdToolList/time.png"
  1048. alt
  1049. />
  1050. <div style="margin: 5px 0">倒计时</div>
  1051. </div>
  1052. <div v-if="tooC == 15">
  1053. <img
  1054. @click="addTools(tooC, toolIndex, taskCount)"
  1055. src="../../assets/icon/thirdToolList/answer.png"
  1056. alt
  1057. />
  1058. <div style="margin: 5px 0">问答</div>
  1059. </div>
  1060. <div v-if="tooC == 26">
  1061. <img
  1062. @click="addTools(tooC, toolIndex, taskCount)"
  1063. src="../../assets/icon/thirdToolList/courseDesign.png"
  1064. alt
  1065. />
  1066. <div style="margin: 5px 0">课程设计</div>
  1067. </div>
  1068. <div v-if="tooC == 18">
  1069. <img
  1070. @click="addTools(tooC, toolIndex, taskCount)"
  1071. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1072. alt
  1073. />
  1074. <div style="margin: 5px 0">训练服务器</div>
  1075. </div>
  1076. <div v-if="tooC == 16">
  1077. <img
  1078. @click="addTools(tooC, toolIndex, taskCount)"
  1079. src="../../assets/icon/thirdToolList/work.png"
  1080. alt
  1081. />
  1082. <div style="margin: 5px 0">作业提交</div>
  1083. </div>
  1084. <div v-if="tooC == 50">
  1085. <img
  1086. @click="addTools(tooC, toolIndex, taskCount)"
  1087. src="../../assets/icon/thirdToolList/plwork.png"
  1088. alt
  1089. />
  1090. <div style="margin: 5px 0">批量上传</div>
  1091. </div>
  1092. <div v-if="tooC == 21">
  1093. <img
  1094. @click="addTools(tooC, toolIndex, taskCount)"
  1095. src="../../assets/icon/fourthToolList/program.png"
  1096. alt
  1097. />
  1098. <div style="margin: 5px 0">AIoT Blockly</div>
  1099. </div>
  1100. <!-- <div v-if="tooC == 22">
  1101. <img
  1102. @click="addTools(tooC, toolIndex, taskCount)"
  1103. src="../../assets/icon/fourthToolList/program.png"
  1104. alt
  1105. />
  1106. <div style="margin: 5px 0">AI体验</div>
  1107. </div> -->
  1108. <div v-if="tooC == 23">
  1109. <img
  1110. @click="addTools(tooC, toolIndex, taskCount)"
  1111. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1112. alt
  1113. />
  1114. <div style="margin: 5px 0">AI Python</div>
  1115. </div>
  1116. <div v-if="tooC == 24">
  1117. <img
  1118. @click="addTools(tooC, toolIndex, taskCount)"
  1119. src="../../assets/icon/fourthToolList/AIprogram.png"
  1120. alt
  1121. />
  1122. <div style="margin: 5px 0">AI Blockly</div>
  1123. </div>
  1124. <div v-if="tooC == 25">
  1125. <img
  1126. @click="addTools(tooC, toolIndex, taskCount)"
  1127. src="../../assets/icon/thirdToolList/evalua.png"
  1128. alt
  1129. />
  1130. <div style="margin: 5px 0">目标管理</div>
  1131. </div>
  1132. <div v-if="tooC == 31">
  1133. <img
  1134. @click="addTools(tooC, toolIndex, taskCount)"
  1135. src="../../assets/icon/secondToolList/networkPanel.png"
  1136. alt
  1137. />
  1138. <div style="margin: 5px 0">数学画板</div>
  1139. </div>
  1140. <div v-if="tooC == 28">
  1141. <img
  1142. @click="addTools(tooC, toolIndex, taskCount)"
  1143. src="../../assets/icon/secondToolList/translation.png"
  1144. alt
  1145. />
  1146. <div style="margin: 5px 0">翻译</div>
  1147. </div>
  1148. <div v-if="tooC == 37">
  1149. <img
  1150. @click="addTools(tooC, toolIndex, taskCount)"
  1151. src="../../assets/icon/secondToolList/mohe.png"
  1152. alt
  1153. />
  1154. <div style="margin: 5px 0">魔盒识字</div>
  1155. </div>
  1156. <div v-if="tooC == 38">
  1157. <img
  1158. @click="addTools(tooC, toolIndex, taskCount)"
  1159. src="../../assets/icon/secondToolList/24game.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">24点</div>
  1163. </div>
  1164. <div v-if="tooC == 39">
  1165. <img
  1166. @click="addTools(tooC, toolIndex, taskCount)"
  1167. src="../../assets/icon/secondToolList/GeoGebra.png"
  1168. alt
  1169. />
  1170. <div style="margin: 5px 0">GeoGebra</div>
  1171. </div>
  1172. <div v-if="tooC == 32">
  1173. <img
  1174. @click="addTools(tooC, toolIndex, taskCount)"
  1175. src="../../assets/icon/thirdToolList/code.png"
  1176. alt
  1177. />
  1178. <div style="margin: 5px 0">源码编辑</div>
  1179. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1180. style="position: absolute;left: 110px;bottom: 30px;">
  1181. 上传文件
  1182. <input type="file" accept="*" style="display: none"
  1183. @change="beforeUpload1($event, 7, toolIndex)" />
  1184. </div> -->
  1185. </div>
  1186. <div v-if="tooC == 40">
  1187. <img
  1188. @click="addTools(tooC, toolIndex, taskCount)"
  1189. src="../../assets/icon/secondToolList/eval.png"
  1190. alt
  1191. />
  1192. <div style="margin: 5px 0">个人评价</div>
  1193. </div>
  1194. <div v-if="tooC == 41">
  1195. <img
  1196. @click="addTools(tooC, toolIndex, taskCount)"
  1197. src="../../assets/icon/thirdToolList/select.png"
  1198. alt
  1199. />
  1200. <div style="margin: 5px 0">选择匹配</div>
  1201. </div>
  1202. <div v-if="tooC == 44">
  1203. <img
  1204. @click="addTools(tooC, toolIndex, taskCount)"
  1205. src="../../assets/icon/thirdToolList/hanClass.png"
  1206. alt
  1207. />
  1208. <div style="margin: 5px 0">汉字宫</div>
  1209. </div>
  1210. <div v-if="tooC == 47">
  1211. <img
  1212. @click="addTools(tooC, toolIndex, taskCount)"
  1213. src="../../assets/icon/fourthToolList/conSentences.png"
  1214. alt
  1215. />
  1216. <div style="margin: 5px 0">排序</div>
  1217. </div>
  1218. <div v-if="tooC == 48">
  1219. <img
  1220. @click="addTools(tooC, toolIndex, taskCount)"
  1221. src="../../assets/icon/fourthToolList/table.png"
  1222. alt
  1223. />
  1224. <div style="margin: 5px 0">表格</div>
  1225. </div>
  1226. <div v-if="tooC == 52">
  1227. <img
  1228. @click="addTools(tooC, toolIndex, taskCount)"
  1229. src="../../assets/icon/fourthToolList/text.png"
  1230. alt
  1231. />
  1232. <div style="margin: 5px 0">文档</div>
  1233. </div>
  1234. <div v-if="tooC == 49">
  1235. <img
  1236. @click="addTools(tooC, toolIndex, taskCount)"
  1237. src="../../assets/icon/fourthToolList/group.png"
  1238. alt
  1239. />
  1240. <div style="margin: 5px 0">学生分组</div>
  1241. </div>
  1242. <div v-if="tooC == 57">
  1243. <img
  1244. @click="addTools(tooC, toolIndex, taskCount)"
  1245. src="../../assets/icon/fourthToolList/cocopi.png"
  1246. alt
  1247. />
  1248. <div style="margin: 5px 0">CocoPi</div>
  1249. </div>
  1250. <div v-if="tooC == 58">
  1251. <img
  1252. @click="addTools(tooC, toolIndex, taskCount)"
  1253. src="../../assets/icon/fourthToolList/car.png"
  1254. alt
  1255. />
  1256. <div style="margin: 5px 0">模拟驾驶</div>
  1257. </div>
  1258. <div v-if="tooC == 59">
  1259. <img
  1260. @click="addTools(tooC, toolIndex, taskCount)"
  1261. src="../../assets/icon/fourthToolList/lineSearch.png"
  1262. alt
  1263. />
  1264. <div style="margin: 5px 0">路径搜索</div>
  1265. </div>
  1266. <div v-if="tooC == 60">
  1267. <img
  1268. @click="addTools(tooC, toolIndex, taskCount)"
  1269. src="../../assets/icon/fourthToolList/deepLearning.png"
  1270. alt
  1271. />
  1272. <div style="margin: 5px 0">深度学习</div>
  1273. </div>
  1274. <div v-if="tooC == 61">
  1275. <img
  1276. @click="addTools(tooC, toolIndex, taskCount)"
  1277. src="../../assets/icon/fourthToolList/allHistory.png"
  1278. alt
  1279. />
  1280. <div style="margin: 5px 0">全历史</div>
  1281. </div>
  1282. <div v-if="tooC == 62">
  1283. <img
  1284. @click="addTools(tooC, toolIndex, taskCount)"
  1285. src="../../assets/icon/fourthToolList/interVideo.png"
  1286. alt
  1287. />
  1288. <div style="margin: 5px 0">交互视频</div>
  1289. </div>
  1290. <div v-if="tooC == 63">
  1291. <img
  1292. @click="addTools(tooC, toolIndex, taskCount)"
  1293. src="../../assets/icon/fourthToolList/Wood.png"
  1294. alt
  1295. />
  1296. <div style="margin: 5px 0">海龟编程</div>
  1297. </div>
  1298. <div v-if="tooC == 71">
  1299. <img
  1300. @click="addTools(tooC, toolIndex, taskCount)"
  1301. src="../../assets/icon/fourthToolList/chatgpt.png"
  1302. alt
  1303. />
  1304. <div style="margin: 5px 0">AI智能体</div>
  1305. </div>
  1306. <div v-if="tooC == 65">
  1307. <img
  1308. @click="addTools(tooC, toolIndex, taskCount)"
  1309. src="../../assets/icon/firstToolList/pickPeople.png"
  1310. alt
  1311. />
  1312. <div style="margin: 5px 0">挑人</div>
  1313. </div>
  1314. <div v-if="tooC == 66">
  1315. <img
  1316. @click="addTools(tooC, toolIndex, taskCount)"
  1317. src="../../assets/icon/secondToolList/formulaEdi.png"
  1318. alt
  1319. />
  1320. <div style="margin: 5px 0">公式编辑</div>
  1321. </div>
  1322. <div v-if="tooC == 67">
  1323. <img
  1324. @click="addTools(tooC, toolIndex, taskCount)"
  1325. src="../../assets/icon/secondToolList/molStr.png"
  1326. alt
  1327. />
  1328. <div style="margin: 5px 0">分子结构</div>
  1329. </div>
  1330. <div v-if="tooC == 68">
  1331. <img
  1332. @click="addTools(tooC, toolIndex, taskCount)"
  1333. src="../../assets/icon/secondToolList/timeAxis.png"
  1334. alt
  1335. />
  1336. <div style="margin: 5px 0">时间轴</div>
  1337. </div>
  1338. <div v-if="tooC == 69">
  1339. <img
  1340. @click="addTools(tooC, toolIndex, taskCount)"
  1341. src="../../assets/icon/secondToolList/english.png"
  1342. alt
  1343. />
  1344. <div style="margin: 5px 0">英语写作</div>
  1345. </div>
  1346. <div v-if="tooC == 70">
  1347. <img
  1348. @click="addTools(tooC, toolIndex, taskCount)"
  1349. src="../../assets/icon/thirdToolList/englishVoice.png"
  1350. alt
  1351. />
  1352. <div style="margin: 5px 0">英语口语</div>
  1353. </div>
  1354. </div>
  1355. </div>
  1356. </div>
  1357. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1358. <!-- <div class="toolTitle">工具描述</div> -->
  1359. <!-- @click.stop="updateToolDetail(toolIndex, 2)" 点击开启修改-->
  1360. <div style="height:100%;"
  1361. v-html="contentConvent(tool.toolDetail)"
  1362. v-if="toolDetailIndex != toolIndex"
  1363. ></div>
  1364. <div v-else @click.stop="" style="height:100%;">
  1365. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1366. </div>
  1367. </div>
  1368. <el-button
  1369. type="primary"
  1370. v-if="tool.tool[0] == 32"
  1371. style="position: absolute; right: 30px; top: -45px"
  1372. @click="addImg($event)"
  1373. >上传作业<input
  1374. type="file"
  1375. accept="*"
  1376. style="display: none"
  1377. @change="beforeUpload1($event, 7, toolIndex)"
  1378. /></el-button>
  1379. <el-button
  1380. type="primary"
  1381. v-if="tool.tool[0] == 15"
  1382. style="position: absolute; right: 30px; top: -45px"
  1383. @click="openWordCloud(toolIndex)"
  1384. >生成词云</el-button
  1385. >
  1386. <!-- <el-button
  1387. type="primary"
  1388. v-if="
  1389. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1390. "
  1391. style="position: absolute; right: 30px; top: -45px"
  1392. @click="uploadWorks(toolIndex)"
  1393. >导出作业</el-button
  1394. > -->
  1395. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1396. position: absolute;
  1397. right: 30px;
  1398. transform: translateY(-130%);
  1399. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1400. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1401. </div>
  1402. <div
  1403. v-if="
  1404. tType &&
  1405. tType == 2 &&
  1406. !sIsOpen &&
  1407. tool.tool.indexOf(16) != -1
  1408. "
  1409. class="worksBox"
  1410. >
  1411. <div
  1412. class="zuoyeYulan"
  1413. v-if="workStudent[toolIndex].length > 0"
  1414. >
  1415. <span class="worksTitle">作业预览</span>
  1416. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1417. </div>
  1418. <div
  1419. class="worksDetailBox"
  1420. v-if="workStudent[toolIndex].length > 0"
  1421. >
  1422. <div
  1423. class="works"
  1424. style="
  1425. width: 200px;
  1426. height: 140px;
  1427. margin: 10px 10px 10px 0;
  1428. box-shadow: 0 0 6px 1px #dfdada;
  1429. "
  1430. v-for="(w, wIndex) in workStudent[toolIndex]"
  1431. :key="wIndex"
  1432. >
  1433. <div class="workImg" v-if="w.type == 0">
  1434. <img
  1435. :src="w.works"
  1436. @click="previewImg(w.works,w)"
  1437. alt
  1438. />
  1439. <div
  1440. class="answerScore"
  1441. v-if="w.score"
  1442. @click.stop="openScore(w)"
  1443. :class="{
  1444. rightW:
  1445. w.userid == userid || tType == 1 || tType == 4,
  1446. }"
  1447. >
  1448. {{ JSON.parse(w.score).wScore }}分
  1449. </div>
  1450. <div
  1451. class="answerScore"
  1452. @click.stop="openScore(w)"
  1453. v-else-if="courseDetail.userid == userid"
  1454. :class="{
  1455. rightW:
  1456. w.userid == userid || tType == 1 || tType == 4,
  1457. }"
  1458. >
  1459. 评分
  1460. </div>
  1461. <img
  1462. class="deleteImg"
  1463. src="../../assets/deleteworks.png"
  1464. v-if="
  1465. w.userid == userid || tType == 1 || tType == 4
  1466. "
  1467. @click.stop="deleteWorks(w.wid)"
  1468. alt
  1469. />
  1470. </div>
  1471. <div class="workImg" v-if="w.type == 1">
  1472. <img :src="word" @click="openFile(w.works)" alt />
  1473. <div
  1474. class="answerScore"
  1475. v-if="w.score"
  1476. @click.stop="openScore(w)"
  1477. :class="{
  1478. rightW:
  1479. w.userid == userid || tType == 1 || tType == 4,
  1480. }"
  1481. >
  1482. {{ JSON.parse(w.score).wScore }}分
  1483. </div>
  1484. <div
  1485. class="answerScore"
  1486. @click.stop="openScore(w)"
  1487. v-else-if="courseDetail.userid == userid"
  1488. :class="{
  1489. rightW:
  1490. w.userid == userid || tType == 1 || tType == 4,
  1491. }"
  1492. >
  1493. 评分
  1494. </div>
  1495. <img
  1496. class="deleteImg"
  1497. src="../../assets/deleteworks.png"
  1498. v-if="
  1499. w.userid == userid || tType == 1 || tType == 4
  1500. "
  1501. @click.stop="deleteWorks(w.wid)"
  1502. alt
  1503. />
  1504. </div>
  1505. <div class="workImg" v-if="w.type == 3">
  1506. <img
  1507. style="cursor: pointer"
  1508. :src="video"
  1509. @click="openVideo(w)"
  1510. alt
  1511. />
  1512. <div
  1513. class="answerScore"
  1514. v-if="w.score"
  1515. @click.stop="openScore(w)"
  1516. :class="{
  1517. rightW:
  1518. w.userid == userid || tType == 1 || tType == 4,
  1519. }"
  1520. >
  1521. {{ JSON.parse(w.score).wScore }}分
  1522. </div>
  1523. <div
  1524. class="answerScore"
  1525. @click.stop="openScore(w)"
  1526. v-else-if="courseDetail.userid == userid"
  1527. :class="{
  1528. rightW:
  1529. w.userid == userid || tType == 1 || tType == 4,
  1530. }"
  1531. >
  1532. 评分
  1533. </div>
  1534. <img
  1535. class="deleteImg"
  1536. src="../../assets/deleteworks.png"
  1537. v-if="
  1538. w.userid == userid || tType == 1 || tType == 4
  1539. "
  1540. @click.stop="deleteWorks(w.wid)"
  1541. alt
  1542. />
  1543. </div>
  1544. <div class="workImg" v-if="w.type == 12">
  1545. <img
  1546. style="cursor: pointer"
  1547. :src="word2"
  1548. @click="downloadFile(w.works)"
  1549. alt
  1550. />
  1551. <div
  1552. class="answerScore"
  1553. v-if="w.score"
  1554. @click.stop="openScore(w)"
  1555. :class="{
  1556. rightW:
  1557. w.userid == userid || tType == 1 || tType == 4,
  1558. }"
  1559. >
  1560. {{ JSON.parse(w.score).wScore }}分
  1561. </div>
  1562. <div
  1563. class="answerScore"
  1564. @click.stop="openScore(w)"
  1565. v-else-if="courseDetail.userid == userid"
  1566. :class="{
  1567. rightW:
  1568. w.userid == userid || tType == 1 || tType == 4,
  1569. }"
  1570. >
  1571. 评分
  1572. </div>
  1573. <img
  1574. class="deleteImg"
  1575. src="../../assets/deleteworks.png"
  1576. v-if="
  1577. w.userid == userid || tType == 1 || tType == 4
  1578. "
  1579. @click.stop="deleteWorks(w.wid)"
  1580. alt
  1581. />
  1582. </div>
  1583. <div class="worksName">
  1584. <div>{{ w.sName }}</div>
  1585. </div>
  1586. </div>
  1587. </div>
  1588. </div>
  1589. <div
  1590. v-if="
  1591. tType &&
  1592. tType == 2 &&
  1593. !sIsOpen &&
  1594. tool.tool.indexOf(32) != -1
  1595. "
  1596. class="worksBox"
  1597. >
  1598. <div
  1599. class="zuoyeYulan"
  1600. v-if="workStudent[toolIndex].length > 0"
  1601. >
  1602. <span class="worksTitle">作业预览</span>
  1603. </div>
  1604. <div
  1605. class="worksDetailBox"
  1606. v-if="workStudent[toolIndex].length > 0"
  1607. >
  1608. <div
  1609. class="works"
  1610. style="
  1611. width: 200px;
  1612. height: 140px;
  1613. margin: 10px 10px 10px 0;
  1614. box-shadow: 0 0 6px 1px #dfdada;
  1615. "
  1616. v-for="(w, wIndex) in workStudent[toolIndex]"
  1617. :key="wIndex"
  1618. >
  1619. <div class="workImg">
  1620. <img
  1621. :src="word2"
  1622. @click="downloadFile(w.works)"
  1623. alt
  1624. />
  1625. <div
  1626. class="answerScore"
  1627. v-if="w.score"
  1628. @click.stop="openScore(w)"
  1629. :class="{
  1630. rightW:
  1631. w.userid == userid || tType == 1 || tType == 4,
  1632. }"
  1633. >
  1634. {{ JSON.parse(w.score).wScore }}分
  1635. </div>
  1636. <div
  1637. class="answerScore"
  1638. @click.stop="openScore(w)"
  1639. v-else-if="courseDetail.userid == userid"
  1640. :class="{
  1641. rightW:
  1642. w.userid == userid || tType == 1 || tType == 4,
  1643. }"
  1644. >
  1645. 评分
  1646. </div>
  1647. <img
  1648. class="deleteImg"
  1649. src="../../assets/deleteworks.png"
  1650. v-if="
  1651. w.userid == userid || tType == 1 || tType == 4
  1652. "
  1653. @click.stop="deleteWorks(w.wid)"
  1654. alt
  1655. />
  1656. </div>
  1657. <div class="worksName">
  1658. <div>{{ w.sName }}</div>
  1659. </div>
  1660. </div>
  1661. </div>
  1662. </div>
  1663. <div
  1664. v-if="
  1665. tType &&
  1666. tType == 2 &&
  1667. !sIsOpen &&
  1668. tool.tool.indexOf(57) != -1
  1669. "
  1670. class="worksBox"
  1671. >
  1672. <div
  1673. class="zuoyeYulan"
  1674. v-if="workStudent[toolIndex].length > 0"
  1675. >
  1676. <span class="worksTitle">作业预览</span>
  1677. </div>
  1678. <div
  1679. class="worksDetailBox"
  1680. v-if="workStudent[toolIndex].length > 0"
  1681. >
  1682. <div
  1683. class="works"
  1684. style="
  1685. width: 200px;
  1686. height: 140px;
  1687. margin: 10px 10px 10px 0;
  1688. box-shadow: 0 0 6px 1px #dfdada;
  1689. "
  1690. v-for="(w, wIndex) in workStudent[toolIndex]"
  1691. :key="wIndex"
  1692. >
  1693. <div class="workImg">
  1694. <img
  1695. :src="word2"
  1696. @click="downloadFile(w.works)"
  1697. v-if="w.type == 12"
  1698. alt
  1699. />
  1700. <img
  1701. :src="word2"
  1702. @click="
  1703. openCocoPi(57, toolIndex, w.userid, w.sName)
  1704. "
  1705. v-else-if="w.type == 15"
  1706. alt
  1707. />
  1708. <div
  1709. class="answerScore"
  1710. v-if="w.score"
  1711. @click.stop="openScore(w)"
  1712. :class="{
  1713. rightW:
  1714. w.userid == userid || tType == 1 || tType == 4,
  1715. }"
  1716. >
  1717. {{ JSON.parse(w.score).wScore }}分
  1718. </div>
  1719. <div
  1720. class="answerScore"
  1721. @click.stop="openScore(w)"
  1722. v-else-if="courseDetail.userid == userid"
  1723. :class="{
  1724. rightW:
  1725. w.userid == userid || tType == 1 || tType == 4,
  1726. }"
  1727. >
  1728. 评分
  1729. </div>
  1730. <img
  1731. class="deleteImg"
  1732. src="../../assets/deleteworks.png"
  1733. v-if="
  1734. w.userid == userid || tType == 1 || tType == 4
  1735. "
  1736. @click.stop="deleteWorks(w.wid)"
  1737. alt
  1738. />
  1739. </div>
  1740. <div class="worksName">
  1741. <div>{{ w.sName }}</div>
  1742. </div>
  1743. </div>
  1744. </div>
  1745. </div>
  1746. <div
  1747. v-if="
  1748. tType &&
  1749. tType == 2 &&
  1750. !sIsOpen &&
  1751. tool.tool.indexOf(4) != -1
  1752. "
  1753. class="worksBox"
  1754. >
  1755. <div
  1756. class="zuoyeYulan"
  1757. v-if="workStudent[toolIndex].length > 0"
  1758. >
  1759. <span class="worksTitle">作业预览</span>
  1760. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1761. </div>
  1762. <div
  1763. class="worksDetailBox"
  1764. v-if="workStudent[toolIndex].length > 0"
  1765. >
  1766. <div
  1767. class="isWorksName2"
  1768. v-for="(w, wIndex) in workStudent[toolIndex]"
  1769. :key="wIndex"
  1770. @click="
  1771. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1772. "
  1773. >
  1774. {{ w.sName }}
  1775. <img
  1776. class="deleteImg deleteImg2"
  1777. src="../../assets/deleteworks.png"
  1778. v-if="w.userid == userid || tType == 1 || tType == 4"
  1779. @click.stop="deleteWorks(w.wid)"
  1780. alt
  1781. />
  1782. </div>
  1783. <!-- <div
  1784. class="works"
  1785. style="
  1786. width: 200px;
  1787. height: 140px;
  1788. border-radius: 10px;
  1789. box-shadow: 0 0 6px 1px #dfdada;
  1790. overflow: hidden;
  1791. "
  1792. v-for="(w, wIndex) in workStudent[toolIndex]"
  1793. :key="wIndex"
  1794. >
  1795. <div class="workImg">
  1796. <img
  1797. src="../../assets/icon/works/noImg.png"
  1798. @click="
  1799. openTools(
  1800. 4,
  1801. toolIndex,
  1802. taskCount,
  1803. w.works,
  1804. w.sName
  1805. )
  1806. "
  1807. alt
  1808. />
  1809. </div>
  1810. <div class="worksName">
  1811. <div>{{ w.sName }}</div>
  1812. <div>{{ w.time }}</div>
  1813. </div>
  1814. </div> -->
  1815. </div>
  1816. </div>
  1817. <div
  1818. v-if="
  1819. tType &&
  1820. ((tType == 2 && sIsOpen == true) ||
  1821. tType == 1 ||
  1822. tType == 4) &&
  1823. tool.tool.indexOf(62) != -1
  1824. "
  1825. class="worksBox"
  1826. >
  1827. <div
  1828. class="zuoyeYulan"
  1829. v-if="
  1830. worksStudent.length &&
  1831. worksStudent[toolIndex].length > 0
  1832. "
  1833. >
  1834. <div class="worksTop">
  1835. <div>作业预览</div>
  1836. <div
  1837. class="corOpen"
  1838. @click="contract(toolIndex)"
  1839. v-if="
  1840. (isCloseList[toolIndex].isCloseBoolean) &&
  1841. isCloseList[toolIndex].isClose == 0
  1842. "
  1843. >
  1844. 折叠
  1845. </div>
  1846. <div
  1847. class="corOpen"
  1848. @click="contract(toolIndex)"
  1849. v-if="isCloseList[toolIndex].isClose == 1"
  1850. >
  1851. 展开
  1852. </div>
  1853. </div>
  1854. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1855. </div>
  1856. <div>
  1857. <div
  1858. :id="'tool-' + toolIndex"
  1859. :style="{
  1860. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1861. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1862. }"
  1863. class="worksDetailBox"
  1864. v-if="
  1865. worksStudent.length &&
  1866. worksStudent[toolIndex].length > 0
  1867. "
  1868. >
  1869. <div
  1870. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1871. :key="wIndex"
  1872. class="isWorksName2"
  1873. @click="
  1874. openTools(
  1875. 62,
  1876. toolIndex,
  1877. taskCount,
  1878. w.works,
  1879. w.sName
  1880. )
  1881. "
  1882. >
  1883. {{ w.sName }}
  1884. <img
  1885. class="deleteImg deleteImg2"
  1886. src="../../assets/deleteworks.png"
  1887. v-if="
  1888. w.userid == userid || tType == 1 || tType == 4
  1889. "
  1890. @click.stop="deleteWorks(w.wid)"
  1891. alt
  1892. />
  1893. </div>
  1894. </div>
  1895. </div>
  1896. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1897. 未提交
  1898. </div>
  1899. <div
  1900. class="noWorksS"
  1901. v-if="noWorksS && noWorksS[toolIndex].length"
  1902. >
  1903. <div
  1904. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1905. :key="sIndex"
  1906. class="noWorksName"
  1907. >
  1908. <el-tooltip effect="dark" :content="s.student" placement="top">
  1909. <span>{{ s.student }}</span>
  1910. </el-tooltip>
  1911. </div>
  1912. </div>
  1913. </div>
  1914. <div
  1915. v-if="
  1916. tType &&
  1917. tType == 2 &&
  1918. !sIsOpen &&
  1919. tool.tool.indexOf(62) != -1
  1920. "
  1921. class="worksBox"
  1922. >
  1923. <div
  1924. class="zuoyeYulan"
  1925. v-if="workStudent[toolIndex].length > 0"
  1926. >
  1927. <span class="worksTitle">作业预览</span>
  1928. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1929. </div>
  1930. <div
  1931. class="worksDetailBox"
  1932. v-if="workStudent[toolIndex].length > 0"
  1933. >
  1934. <div
  1935. class="isWorksName2"
  1936. v-for="(w, wIndex) in workStudent[toolIndex]"
  1937. :key="wIndex"
  1938. @click="
  1939. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1940. "
  1941. >
  1942. {{ w.sName }}
  1943. <img
  1944. class="deleteImg deleteImg2"
  1945. src="../../assets/deleteworks.png"
  1946. v-if="w.userid == userid || tType == 1 || tType == 4"
  1947. @click.stop="deleteWorks(w.wid)"
  1948. alt
  1949. />
  1950. </div>
  1951. </div>
  1952. </div>
  1953. <div
  1954. v-if="
  1955. tType &&
  1956. tType == 2 &&
  1957. !sIsOpen &&
  1958. tool.tool.indexOf(45) != -1
  1959. "
  1960. class="worksBox"
  1961. >
  1962. <div
  1963. class="zuoyeYulan"
  1964. v-if="workStudent[toolIndex].length > 0"
  1965. >
  1966. <span class="worksTitle">作业预览</span>
  1967. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1968. </div>
  1969. <div
  1970. class="worksDetailBox"
  1971. v-if="workStudent[toolIndex].length > 0"
  1972. >
  1973. <div
  1974. class="isWorksName2"
  1975. v-for="(w, wIndex) in workStudent[toolIndex]"
  1976. :key="wIndex"
  1977. @click="
  1978. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1979. "
  1980. >
  1981. {{ w.sName }}
  1982. <img
  1983. class="deleteImg deleteImg2"
  1984. src="../../assets/deleteworks.png"
  1985. v-if="w.userid == userid || tType == 1 || tType == 4"
  1986. @click.stop="deleteWorks(w.wid)"
  1987. alt
  1988. />
  1989. </div>
  1990. </div>
  1991. </div>
  1992. <div
  1993. v-if="
  1994. tType &&
  1995. tType == 2 &&
  1996. !sIsOpen &&
  1997. tool.tool.indexOf(69) != -1
  1998. "
  1999. class="worksBox"
  2000. >
  2001. <div
  2002. class="zuoyeYulan"
  2003. v-if="workStudent[toolIndex].length > 0"
  2004. >
  2005. <span class="worksTitle">作业预览</span>
  2006. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2007. </div>
  2008. <div
  2009. class="worksDetailBox"
  2010. v-if="workStudent[toolIndex].length > 0"
  2011. >
  2012. <div
  2013. class="isWorksName2"
  2014. v-for="(w, wIndex) in workStudent[toolIndex]"
  2015. :key="wIndex"
  2016. @click="
  2017. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2018. "
  2019. >
  2020. {{ w.sName }}
  2021. <img
  2022. class="deleteImg deleteImg2"
  2023. src="../../assets/deleteworks.png"
  2024. v-if="w.userid == userid || tType == 1 || tType == 4"
  2025. @click.stop="deleteWorks(w.wid)"
  2026. alt
  2027. />
  2028. </div>
  2029. </div>
  2030. </div>
  2031. <div
  2032. v-if="
  2033. tType &&
  2034. tType == 2 &&
  2035. !sIsOpen &&
  2036. tool.tool.indexOf(15) != -1
  2037. "
  2038. class="worksBox"
  2039. >
  2040. <div
  2041. class="zuoyeYulan"
  2042. v-if="workStudent[toolIndex].length > 0"
  2043. >
  2044. <span class="worksTitle">作业预览</span>
  2045. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2046. </div>
  2047. <div
  2048. class="worksDetailBox"
  2049. v-if="workStudent[toolIndex].length > 0"
  2050. >
  2051. <div
  2052. class="works"
  2053. v-for="(w, wIndex) in workStudent[toolIndex]"
  2054. :key="wIndex"
  2055. >
  2056. <div class="workImg">
  2057. <!-- <img
  2058. src="../../assets/icon/works/noImg.png"
  2059. @click="openTools(15, toolIndex, taskCount, w.works)"
  2060. alt=""
  2061. />-->
  2062. <div class="answerBg">
  2063. <!-- <div>{{ w.sName }}</div> -->
  2064. <el-tooltip
  2065. class="item"
  2066. effect="light"
  2067. :content="JSON.parse(w.works)[0].answer"
  2068. placement="top"
  2069. >
  2070. <div class="answerContent">
  2071. {{ JSON.parse(w.works)[0].answer }}
  2072. </div>
  2073. </el-tooltip>
  2074. <div
  2075. class="answerScore"
  2076. v-if="w.score"
  2077. @click.stop="openScore(w)"
  2078. :class="{
  2079. rightW:
  2080. w.userid == userid ||
  2081. tType == 1 ||
  2082. tType == 4,
  2083. }"
  2084. >
  2085. {{ JSON.parse(w.score).wScore }}分
  2086. </div>
  2087. <div
  2088. class="answerScore"
  2089. @click.stop="openScore(w)"
  2090. v-else-if="courseDetail.userid == userid"
  2091. :class="{
  2092. rightW:
  2093. w.userid == userid ||
  2094. tType == 1 ||
  2095. tType == 4,
  2096. }"
  2097. >
  2098. 评分
  2099. </div>
  2100. <img
  2101. class="deleteImg"
  2102. src="../../assets/deleteworks.png"
  2103. v-if="
  2104. w.userid == userid || tType == 1 || tType == 4
  2105. "
  2106. @click.stop="deleteWorks(w.wid)"
  2107. alt
  2108. />
  2109. </div>
  2110. <div class="comment">
  2111. <div class="worksName">
  2112. <div>{{ w.sName }}</div>
  2113. </div>
  2114. </div>
  2115. </div>
  2116. </div>
  2117. </div>
  2118. </div>
  2119. <div
  2120. v-if="
  2121. tType &&
  2122. tType == 2 &&
  2123. !sIsOpen &&
  2124. tool.tool.indexOf(1) != -1
  2125. "
  2126. class="worksBox"
  2127. >
  2128. <div
  2129. class="zuoyeYulan"
  2130. v-if="workStudent[toolIndex].length > 0"
  2131. >
  2132. <span class="worksTitle">作业预览</span>
  2133. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2134. </div>
  2135. <div
  2136. class="worksDetailBox"
  2137. v-if="workStudent[toolIndex].length > 0"
  2138. >
  2139. <div
  2140. class="works"
  2141. style="
  2142. width: 200px;
  2143. height: 140px;
  2144. margin: 10px 10px 10px 0;
  2145. box-shadow: 0 0 6px 1px #dfdada;
  2146. "
  2147. v-for="(w, wIndex) in workStudent[toolIndex]"
  2148. :key="wIndex"
  2149. >
  2150. <div class="workImg">
  2151. <img
  2152. :src="w.works"
  2153. @click="previewImg(w.works,w)"
  2154. alt
  2155. />
  2156. <div
  2157. class="answerScore"
  2158. v-if="w.score"
  2159. @click.stop="openScore(w)"
  2160. :class="{
  2161. rightW:
  2162. w.userid == userid || tType == 1 || tType == 4,
  2163. }"
  2164. >
  2165. {{ JSON.parse(w.score).wScore }}分
  2166. </div>
  2167. <div
  2168. class="answerScore"
  2169. @click.stop="openScore(w)"
  2170. v-else-if="courseDetail.userid == userid"
  2171. :class="{
  2172. rightW:
  2173. w.userid == userid || tType == 1 || tType == 4,
  2174. }"
  2175. >
  2176. 评分
  2177. </div>
  2178. <img
  2179. class="deleteImg"
  2180. src="../../assets/deleteworks.png"
  2181. v-if="
  2182. w.userid == userid || tType == 1 || tType == 4
  2183. "
  2184. @click.stop="deleteWorks(w.wid)"
  2185. alt
  2186. />
  2187. </div>
  2188. <div class="worksName">
  2189. <div>{{ w.sName }}</div>
  2190. </div>
  2191. </div>
  2192. </div>
  2193. </div>
  2194. <div
  2195. v-if="
  2196. tType &&
  2197. tType == 2 &&
  2198. !sIsOpen &&
  2199. tool.tool.indexOf(3) != -1
  2200. "
  2201. class="worksBox"
  2202. >
  2203. <div
  2204. class="zuoyeYulan"
  2205. v-if="workStudent[toolIndex].length > 0"
  2206. >
  2207. <span class="worksTitle">作业预览</span>
  2208. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2209. </div>
  2210. <div
  2211. class="worksDetailBox"
  2212. v-if="workStudent[toolIndex].length > 0"
  2213. >
  2214. <div
  2215. class="works"
  2216. style="
  2217. width: 200px;
  2218. height: 140px;
  2219. margin: 10px 10px 10px 0;
  2220. box-shadow: 0 0 6px 1px #dfdada;
  2221. "
  2222. v-for="(w, wIndex) in workStudent[toolIndex]"
  2223. :key="wIndex"
  2224. >
  2225. <div class="workImg">
  2226. <img
  2227. :src="w.works"
  2228. @click="previewImg(w.works,w)"
  2229. alt
  2230. />
  2231. <div
  2232. class="answerScore"
  2233. v-if="w.score"
  2234. @click.stop="openScore(w)"
  2235. :class="{
  2236. rightW:
  2237. w.userid == userid || tType == 1 || tType == 4,
  2238. }"
  2239. >
  2240. {{ JSON.parse(w.score).wScore }}分
  2241. </div>
  2242. <div
  2243. class="answerScore"
  2244. @click.stop="openScore(w)"
  2245. v-else-if="courseDetail.userid == userid"
  2246. :class="{
  2247. rightW:
  2248. w.userid == userid || tType == 1 || tType == 4,
  2249. }"
  2250. >
  2251. 评分
  2252. </div>
  2253. <img
  2254. class="deleteImg"
  2255. src="../../assets/deleteworks.png"
  2256. v-if="
  2257. w.userid == userid || tType == 1 || tType == 4
  2258. "
  2259. @click.stop="deleteWorks(w.wid)"
  2260. alt
  2261. />
  2262. </div>
  2263. <div class="worksName">
  2264. <div>{{ w.sName }}</div>
  2265. </div>
  2266. </div>
  2267. </div>
  2268. </div>
  2269. <div
  2270. v-if="
  2271. tType &&
  2272. tType == 2 &&
  2273. !sIsOpen &&
  2274. tool.tool.indexOf(6) != -1
  2275. "
  2276. class="worksBox"
  2277. >
  2278. <div
  2279. class="zuoyeYulan"
  2280. v-if="workStudent[toolIndex].length > 0"
  2281. >
  2282. <span class="worksTitle">作业预览</span>
  2283. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2284. </div>
  2285. <div
  2286. class="worksDetailBox"
  2287. v-if="workStudent[toolIndex].length > 0"
  2288. >
  2289. <div
  2290. class="works"
  2291. style="
  2292. width: 200px;
  2293. height: 140px;
  2294. margin: 10px 10px 10px 0;
  2295. box-shadow: 0 0 6px 1px #dfdada;
  2296. "
  2297. v-for="(w, wIndex) in workStudent[toolIndex]"
  2298. :key="wIndex"
  2299. >
  2300. <div class="workImg">
  2301. <img
  2302. :src="w.works"
  2303. @click="previewImg(w.works,w)"
  2304. alt
  2305. />
  2306. <div
  2307. class="answerScore"
  2308. v-if="w.score"
  2309. @click.stop="openScore(w)"
  2310. :class="{
  2311. rightW:
  2312. w.userid == userid || tType == 1 || tType == 4,
  2313. }"
  2314. >
  2315. {{ JSON.parse(w.score).wScore }}分
  2316. </div>
  2317. <div
  2318. class="answerScore"
  2319. @click.stop="openScore(w)"
  2320. v-else-if="courseDetail.userid == userid"
  2321. :class="{
  2322. rightW:
  2323. w.userid == userid || tType == 1 || tType == 4,
  2324. }"
  2325. >
  2326. 评分
  2327. </div>
  2328. <img
  2329. class="deleteImg"
  2330. src="../../assets/deleteworks.png"
  2331. v-if="
  2332. w.userid == userid || tType == 1 || tType == 4
  2333. "
  2334. @click.stop="deleteWorks(w.wid)"
  2335. alt
  2336. />
  2337. </div>
  2338. <div class="worksName">
  2339. <div>{{ w.sName }}</div>
  2340. </div>
  2341. </div>
  2342. </div>
  2343. </div>
  2344. <div
  2345. v-if="
  2346. tType &&
  2347. tType == 2 &&
  2348. !sIsOpen &&
  2349. tool.tool.indexOf(7) != -1
  2350. "
  2351. class="worksBox"
  2352. >
  2353. <div
  2354. class="zuoyeYulan"
  2355. v-if="workStudent[toolIndex].length > 0"
  2356. >
  2357. <span class="worksTitle">作业预览</span>
  2358. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2359. </div>
  2360. <div
  2361. class="worksDetailBox"
  2362. v-if="workStudent[toolIndex].length > 0"
  2363. >
  2364. <div
  2365. class="works"
  2366. style="
  2367. width: 200px;
  2368. height: 140px;
  2369. margin: 10px 10px 10px 0;
  2370. box-shadow: 0 0 6px 1px #dfdada;
  2371. "
  2372. v-for="(w, wIndex) in workStudent[toolIndex]"
  2373. :key="wIndex"
  2374. >
  2375. <div class="workImg">
  2376. <img
  2377. :src="w.works"
  2378. @click="previewImg(w.works,w)"
  2379. alt
  2380. />
  2381. <div
  2382. class="answerScore"
  2383. v-if="w.score"
  2384. @click.stop="openScore(w)"
  2385. :class="{
  2386. rightW:
  2387. w.userid == userid || tType == 1 || tType == 4,
  2388. }"
  2389. >
  2390. {{ JSON.parse(w.score).wScore }}分
  2391. </div>
  2392. <div
  2393. class="answerScore"
  2394. @click.stop="openScore(w)"
  2395. v-else-if="courseDetail.userid == userid"
  2396. :class="{
  2397. rightW:
  2398. w.userid == userid || tType == 1 || tType == 4,
  2399. }"
  2400. >
  2401. 评分
  2402. </div>
  2403. <img
  2404. class="deleteImg"
  2405. src="../../assets/deleteworks.png"
  2406. v-if="
  2407. w.userid == userid || tType == 1 || tType == 4
  2408. "
  2409. @click.stop="deleteWorks(w.wid)"
  2410. alt
  2411. />
  2412. </div>
  2413. <div class="worksName">
  2414. <div>{{ w.sName }}</div>
  2415. </div>
  2416. </div>
  2417. </div>
  2418. </div>
  2419. <div
  2420. v-if="
  2421. tType &&
  2422. tType == 2 &&
  2423. !sIsOpen &&
  2424. tool.tool.indexOf(26) != -1
  2425. "
  2426. class="worksBox"
  2427. >
  2428. <div
  2429. class="zuoyeYulan"
  2430. v-if="workStudent[toolIndex].length > 0"
  2431. >
  2432. <span class="worksTitle">作业预览</span>
  2433. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2434. </div>
  2435. <div
  2436. class="worksDetailBox"
  2437. v-if="workStudent[toolIndex].length > 0"
  2438. >
  2439. <div
  2440. class="works"
  2441. style="
  2442. width: 200px;
  2443. height: 140px;
  2444. margin: 10px 10px 10px 0;
  2445. box-shadow: 0 0 6px 1px #dfdada;
  2446. "
  2447. v-for="(w, wIndex) in workStudent[toolIndex]"
  2448. :key="wIndex"
  2449. >
  2450. <div class="workImg">
  2451. <img
  2452. :src="w.works"
  2453. @click="previewImg(w.works,w)"
  2454. alt
  2455. />
  2456. <img
  2457. class="deleteImg"
  2458. src="../../assets/deleteworks.png"
  2459. v-if="
  2460. w.userid == userid || tType == 1 || tType == 4
  2461. "
  2462. @click.stop="deleteWorks(w.wid)"
  2463. alt
  2464. />
  2465. </div>
  2466. <div class="worksName">
  2467. <div>{{ w.sName }}</div>
  2468. </div>
  2469. </div>
  2470. </div>
  2471. </div>
  2472. <div
  2473. v-if="
  2474. tType &&
  2475. ((tType == 2 && sIsOpen == true) ||
  2476. tType == 1 ||
  2477. tType == 4) &&
  2478. tool.tool.indexOf(16) != -1
  2479. "
  2480. class="worksBox"
  2481. >
  2482. <div
  2483. class="zuoyeYulan"
  2484. v-if="
  2485. (worksStudent.length &&
  2486. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2487. "
  2488. >
  2489. <div class="worksTop">
  2490. <div>作业预览</div>
  2491. <div
  2492. class="corOpen"
  2493. @click="contract(toolIndex)"
  2494. v-if="
  2495. (isCloseList[toolIndex].isCloseBoolean) &&
  2496. isCloseList[toolIndex].isClose == 0
  2497. "
  2498. >
  2499. 折叠
  2500. </div>
  2501. <div
  2502. class="corOpen"
  2503. @click="contract(toolIndex)"
  2504. v-if="isCloseList[toolIndex].isClose == 1"
  2505. >
  2506. 展开
  2507. </div>
  2508. </div>
  2509. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2510. </div>
  2511. <div
  2512. class="group_workBox"
  2513. v-for="(g, gindex) in courseGroup.group"
  2514. :key="gindex"
  2515. >
  2516. <div class="group_box">
  2517. <div class="group_title">
  2518. <el-tooltip
  2519. class="item"
  2520. effect="light"
  2521. :content="g.name"
  2522. placement="top"
  2523. >
  2524. <div class="group_name">{{ g.name }}</div>
  2525. </el-tooltip>
  2526. </div>
  2527. <div
  2528. class="group_work"
  2529. v-if="
  2530. g.works &&
  2531. g.works.length &&
  2532. g.works[toolIndex].length
  2533. "
  2534. >
  2535. <div
  2536. class="works"
  2537. style="
  2538. width: 200px;
  2539. height: 140px;
  2540. margin: 10px 10px 10px 0;
  2541. border-radius: 15px;
  2542. box-shadow: 0 0 6px 1px #dfdada;
  2543. "
  2544. v-for="(w, wIndex) in g.works[toolIndex]"
  2545. :key="wIndex"
  2546. :class="w.type == 1 ? 'isTypeOne' : ''"
  2547. >
  2548. <div class="workImg" v-if="w.type == 0">
  2549. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2550. <img
  2551. :src="w.works"
  2552. @click="previewImg(w.works,w)"
  2553. alt
  2554. />
  2555. <div
  2556. class="answerScore"
  2557. v-if="w.score"
  2558. @click.stop="openScore(w)"
  2559. :class="{
  2560. rightW:
  2561. w.userid == userid ||
  2562. tType == 1 ||
  2563. tType == 4 ||
  2564. w.ateacher == userid,
  2565. }"
  2566. >
  2567. {{ JSON.parse(w.score).wScore }}分
  2568. </div>
  2569. <div
  2570. class="answerScore"
  2571. @click.stop="openScore(w)"
  2572. v-else-if="courseDetail.userid == userid"
  2573. :class="{
  2574. rightW:
  2575. w.userid == userid ||
  2576. tType == 1 ||
  2577. tType == 4 ||
  2578. w.ateacher == userid,
  2579. }"
  2580. >
  2581. 评分
  2582. </div>
  2583. <img
  2584. class="deleteImg"
  2585. src="../../assets/deleteworks.png"
  2586. v-if="
  2587. w.userid == userid || tType == 1 || tType == 4
  2588. "
  2589. @click.stop="deleteWorks(w.wid)"
  2590. alt
  2591. />
  2592. </div>
  2593. <div class="workImg" v-if="w.type == 1">
  2594. <img :src="word" @click="openFile(w.works)" alt />
  2595. <!-- @click="openFile(w.works)" -->
  2596. <div
  2597. class="answerScore"
  2598. v-if="w.score"
  2599. @click.stop="openScore(w)"
  2600. :class="{
  2601. rightW:
  2602. w.userid == userid ||
  2603. tType == 1 ||
  2604. tType == 4 ||
  2605. w.ateacher == userid,
  2606. }"
  2607. >
  2608. {{ JSON.parse(w.score).wScore }}分
  2609. </div>
  2610. <div
  2611. class="answerScore"
  2612. @click.stop="openScore(w)"
  2613. v-else-if="courseDetail.userid == userid"
  2614. :class="{
  2615. rightW:
  2616. w.userid == userid ||
  2617. tType == 1 ||
  2618. tType == 4 ||
  2619. w.ateacher == userid,
  2620. }"
  2621. >
  2622. 评分
  2623. </div>
  2624. <img
  2625. class="deleteImg"
  2626. src="../../assets/deleteworks.png"
  2627. v-if="
  2628. w.userid == userid || tType == 1 || tType == 4
  2629. "
  2630. @click.stop="deleteWorks(w.wid)"
  2631. alt
  2632. />
  2633. </div>
  2634. <div class="workImg" v-if="w.type == 3">
  2635. <img
  2636. style="cursor: pointer"
  2637. :src="video"
  2638. @click="openVideo(w)"
  2639. alt
  2640. />
  2641. <!-- @click="openVideo(w.works)" -->
  2642. <div
  2643. class="answerScore"
  2644. v-if="w.score"
  2645. @click.stop="openScore(w)"
  2646. :class="{
  2647. rightW:
  2648. w.userid == userid ||
  2649. tType == 1 ||
  2650. tType == 4 ||
  2651. w.ateacher == userid,
  2652. }"
  2653. >
  2654. {{ JSON.parse(w.score).wScore }}分
  2655. </div>
  2656. <div
  2657. class="answerScore"
  2658. @click.stop="openScore(w)"
  2659. v-else-if="courseDetail.userid == userid"
  2660. :class="{
  2661. rightW:
  2662. w.userid == userid ||
  2663. tType == 1 ||
  2664. tType == 4 ||
  2665. w.ateacher == userid,
  2666. }"
  2667. >
  2668. 评分
  2669. </div>
  2670. <img
  2671. class="deleteImg"
  2672. src="../../assets/deleteworks.png"
  2673. v-if="
  2674. w.userid == userid || tType == 1 || tType == 4
  2675. "
  2676. @click.stop="deleteWorks(w.wid)"
  2677. alt
  2678. />
  2679. </div>
  2680. <div class="workImg" v-if="w.type == 12">
  2681. <img
  2682. style="cursor: pointer"
  2683. :src="word2"
  2684. @click="downloadFile(w.works)"
  2685. alt
  2686. />
  2687. <!-- @click="openVideo(w.works)" -->
  2688. <div
  2689. class="answerScore"
  2690. v-if="w.score"
  2691. @click.stop="openScore(w)"
  2692. :class="{
  2693. rightW:
  2694. w.userid == userid ||
  2695. tType == 1 ||
  2696. tType == 4 ||
  2697. w.ateacher == userid,
  2698. }"
  2699. >
  2700. {{ JSON.parse(w.score).wScore }}分
  2701. </div>
  2702. <div
  2703. class="answerScore"
  2704. @click.stop="openScore(w)"
  2705. v-else-if="courseDetail.userid == userid"
  2706. :class="{
  2707. rightW:
  2708. w.userid == userid ||
  2709. tType == 1 ||
  2710. tType == 4 ||
  2711. w.ateacher == userid,
  2712. }"
  2713. >
  2714. 评分
  2715. </div>
  2716. <img
  2717. class="deleteImg"
  2718. src="../../assets/deleteworks.png"
  2719. v-if="
  2720. w.userid == userid || tType == 1 || tType == 4
  2721. "
  2722. @click.stop="deleteWorks(w.wid)"
  2723. alt
  2724. />
  2725. </div>
  2726. <div class="comment" style="min-width: 200px">
  2727. <div class="worksName">
  2728. <div>{{ w.sName }}</div>
  2729. </div>
  2730. <div class="commentList">
  2731. <div class="commentList">
  2732. <div
  2733. class="commentImg"
  2734. @click="
  2735. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2736. "
  2737. >
  2738. <img
  2739. :src="w.isLikes == true ? likes : noLikes"
  2740. alt=""
  2741. />
  2742. </div>
  2743. <div>{{ w.likesCount }}</div>
  2744. </div>
  2745. <div
  2746. class="commentList"
  2747. style="margin-right: 15px"
  2748. >
  2749. <div
  2750. class="commentImg"
  2751. @click="
  2752. commentOther(
  2753. w,
  2754. toolIndex,
  2755. wIndex,
  2756. null,
  2757. g.id
  2758. )
  2759. "
  2760. >
  2761. <img
  2762. src="../../assets/icon/comment/comment.png"
  2763. alt=""
  2764. />
  2765. </div>
  2766. <div>{{ w.commentCount }}</div>
  2767. </div>
  2768. </div>
  2769. </div>
  2770. </div>
  2771. </div>
  2772. <div class="group_work" v-else>暂无提交作业</div>
  2773. </div>
  2774. </div>
  2775. <div
  2776. :id="'tool-' + toolIndex"
  2777. :style="{
  2778. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2779. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2780. }"
  2781. class="worksDetailBox"
  2782. v-if="
  2783. worksStudent.length &&
  2784. worksStudent[toolIndex].length > 0
  2785. "
  2786. >
  2787. <div
  2788. class="works"
  2789. style="
  2790. width: 200px;
  2791. height: 140px;
  2792. margin: 10px 10px 10px 0;
  2793. border-radius: 15px;
  2794. box-shadow: 0 0 6px 1px #dfdada;
  2795. "
  2796. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2797. :key="wIndex"
  2798. :class="w.type == 1 ? 'isTypeOne' : ''"
  2799. >
  2800. <div class="workImg" v-if="w.type == 0">
  2801. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2802. <img
  2803. :src="w.works"
  2804. @click="previewImg(w.works,w)"
  2805. alt
  2806. />
  2807. <div
  2808. class="answerScore"
  2809. v-if="w.score"
  2810. @click.stop="openScore(w)"
  2811. :class="{
  2812. rightW:
  2813. w.userid == userid ||
  2814. tType == 1 ||
  2815. tType == 4 ||
  2816. w.ateacher == userid,
  2817. }"
  2818. >
  2819. {{ JSON.parse(w.score).wScore }}分
  2820. </div>
  2821. <div
  2822. class="answerScore"
  2823. @click.stop="openScore(w)"
  2824. v-else-if="courseDetail.userid == userid"
  2825. :class="{
  2826. rightW:
  2827. w.userid == userid ||
  2828. tType == 1 ||
  2829. tType == 4 ||
  2830. w.ateacher == userid,
  2831. }"
  2832. >
  2833. 评分
  2834. </div>
  2835. <img
  2836. class="deleteImg"
  2837. src="../../assets/deleteworks.png"
  2838. v-if="
  2839. w.userid == userid || tType == 1 || tType == 4
  2840. "
  2841. @click.stop="deleteWorks(w.wid)"
  2842. alt
  2843. />
  2844. </div>
  2845. <div class="workImg" v-if="w.type == 1">
  2846. <img :src="word" @click="openFile(w.works)" alt />
  2847. <!-- @click="openFile(w.works)" -->
  2848. <div
  2849. class="answerScore"
  2850. v-if="w.score"
  2851. @click.stop="openScore(w)"
  2852. :class="{
  2853. rightW:
  2854. w.userid == userid ||
  2855. tType == 1 ||
  2856. tType == 4 ||
  2857. w.ateacher == userid,
  2858. }"
  2859. >
  2860. {{ JSON.parse(w.score).wScore }}分
  2861. </div>
  2862. <div
  2863. class="answerScore"
  2864. @click.stop="openScore(w)"
  2865. v-else-if="courseDetail.userid == userid"
  2866. :class="{
  2867. rightW:
  2868. w.userid == userid ||
  2869. tType == 1 ||
  2870. tType == 4 ||
  2871. w.ateacher == userid,
  2872. }"
  2873. >
  2874. 评分
  2875. </div>
  2876. <img
  2877. class="deleteImg"
  2878. src="../../assets/deleteworks.png"
  2879. v-if="
  2880. w.userid == userid || tType == 1 || tType == 4
  2881. "
  2882. @click.stop="deleteWorks(w.wid)"
  2883. alt
  2884. />
  2885. </div>
  2886. <div class="workImg" v-if="w.type == 3">
  2887. <img
  2888. style="cursor: pointer"
  2889. :src="video"
  2890. @click="openVideo(w)"
  2891. alt
  2892. />
  2893. <!-- @click="openVideo(w.works)" -->
  2894. <div
  2895. class="answerScore"
  2896. v-if="w.score"
  2897. @click.stop="openScore(w)"
  2898. :class="{
  2899. rightW:
  2900. w.userid == userid ||
  2901. tType == 1 ||
  2902. tType == 4 ||
  2903. w.ateacher == userid,
  2904. }"
  2905. >
  2906. {{ JSON.parse(w.score).wScore }}分
  2907. </div>
  2908. <div
  2909. class="answerScore"
  2910. @click.stop="openScore(w)"
  2911. v-else-if="courseDetail.userid == userid"
  2912. :class="{
  2913. rightW:
  2914. w.userid == userid ||
  2915. tType == 1 ||
  2916. tType == 4 ||
  2917. w.ateacher == userid,
  2918. }"
  2919. >
  2920. 评分
  2921. </div>
  2922. <img
  2923. class="deleteImg"
  2924. src="../../assets/deleteworks.png"
  2925. v-if="
  2926. w.userid == userid || tType == 1 || tType == 4
  2927. "
  2928. @click.stop="deleteWorks(w.wid)"
  2929. alt
  2930. />
  2931. </div>
  2932. <div class="workImg" v-if="w.type == 12">
  2933. <img
  2934. style="cursor: pointer"
  2935. :src="word2"
  2936. @click="downloadFile(w.works)"
  2937. alt
  2938. />
  2939. <!-- @click="openVideo(w.works)" -->
  2940. <div
  2941. class="answerScore"
  2942. v-if="w.score"
  2943. @click.stop="openScore(w)"
  2944. :class="{
  2945. rightW:
  2946. w.userid == userid ||
  2947. tType == 1 ||
  2948. tType == 4 ||
  2949. w.ateacher == userid,
  2950. }"
  2951. >
  2952. {{ JSON.parse(w.score).wScore }}分
  2953. </div>
  2954. <div
  2955. class="answerScore"
  2956. @click.stop="openScore(w)"
  2957. v-else-if="courseDetail.userid == userid"
  2958. :class="{
  2959. rightW:
  2960. w.userid == userid ||
  2961. tType == 1 ||
  2962. tType == 4 ||
  2963. w.ateacher == userid,
  2964. }"
  2965. >
  2966. 评分
  2967. </div>
  2968. <img
  2969. class="deleteImg"
  2970. src="../../assets/deleteworks.png"
  2971. v-if="
  2972. w.userid == userid || tType == 1 || tType == 4
  2973. "
  2974. @click.stop="deleteWorks(w.wid)"
  2975. alt
  2976. />
  2977. </div>
  2978. <div class="comment" style="min-width: 200px">
  2979. <div class="worksName">
  2980. <div>{{ w.sName }}</div>
  2981. </div>
  2982. <div class="commentList">
  2983. <div class="commentList">
  2984. <div
  2985. class="commentImg"
  2986. @click="
  2987. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2988. "
  2989. >
  2990. <img
  2991. :src="w.isLikes == true ? likes : noLikes"
  2992. alt=""
  2993. />
  2994. </div>
  2995. <div>{{ w.likesCount }}</div>
  2996. </div>
  2997. <div class="commentList" style="margin-right: 15px">
  2998. <div
  2999. class="commentImg"
  3000. @click="commentOther(w, toolIndex, wIndex)"
  3001. >
  3002. <img
  3003. src="../../assets/icon/comment/comment.png"
  3004. alt=""
  3005. />
  3006. </div>
  3007. <div>{{ w.commentCount }}</div>
  3008. </div>
  3009. </div>
  3010. </div>
  3011. </div>
  3012. </div>
  3013. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3014. 未提交
  3015. </div>
  3016. <div
  3017. class="noWorksS"
  3018. v-if="noWorksS && noWorksS[toolIndex].length"
  3019. >
  3020. <div
  3021. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3022. :key="sIndex"
  3023. class="noWorksName"
  3024. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3025. >
  3026. <el-tooltip effect="dark" :content="s.student" placement="top">
  3027. <span>{{ s.student }}</span>
  3028. </el-tooltip>
  3029. </div>
  3030. </div>
  3031. </div>
  3032. <div
  3033. v-if="
  3034. tType &&
  3035. ((tType == 2 && sIsOpen == true) ||
  3036. tType == 1 ||
  3037. tType == 4) &&
  3038. tool.tool.indexOf(70) != -1
  3039. "
  3040. class="worksBox"
  3041. >
  3042. <div
  3043. class="zuoyeYulan"
  3044. v-if="
  3045. (worksStudent.length &&
  3046. worksStudent[toolIndex].length > 0)
  3047. "
  3048. >
  3049. <div class="worksTop">
  3050. <div>作业预览</div>
  3051. <div
  3052. class="corOpen"
  3053. @click="contract(toolIndex)"
  3054. v-if="
  3055. (isCloseList[toolIndex].isCloseBoolean) &&
  3056. isCloseList[toolIndex].isClose == 0
  3057. "
  3058. >
  3059. 折叠
  3060. </div>
  3061. <div
  3062. class="corOpen"
  3063. @click="contract(toolIndex)"
  3064. v-if="isCloseList[toolIndex].isClose == 1"
  3065. >
  3066. 展开
  3067. </div>
  3068. </div>
  3069. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3070. </div>
  3071. <div
  3072. :id="'tool-' + toolIndex"
  3073. :style="{
  3074. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3075. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3076. }"
  3077. class="worksDetailBox"
  3078. v-if="
  3079. worksStudent.length &&
  3080. worksStudent[toolIndex].length > 0
  3081. "
  3082. >
  3083. <div
  3084. class="works"
  3085. style="
  3086. width: 200px;
  3087. height: 140px;
  3088. margin: 10px 10px 10px 0;
  3089. border-radius: 15px;
  3090. box-shadow: 0 0 6px 1px #dfdada;
  3091. "
  3092. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3093. :key="wIndex"
  3094. :class="w.type == 1 ? 'isTypeOne' : ''"
  3095. >
  3096. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3097. <img :src="word" alt />
  3098. <img
  3099. class="deleteImg"
  3100. src="../../assets/deleteworks.png"
  3101. v-if="
  3102. w.userid == userid || tType == 1 || tType == 4
  3103. "
  3104. @click.stop="deleteWorks(w.wid)"
  3105. alt
  3106. />
  3107. </div>
  3108. <div class="comment" style="min-width: 200px">
  3109. <div class="worksName">
  3110. <div>{{ w.sName }}</div>
  3111. </div>
  3112. </div>
  3113. </div>
  3114. </div>
  3115. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3116. 未提交
  3117. </div>
  3118. <div
  3119. class="noWorksS"
  3120. v-if="noWorksS && noWorksS[toolIndex].length"
  3121. >
  3122. <div
  3123. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3124. :key="sIndex"
  3125. class="noWorksName"
  3126. >
  3127. <el-tooltip effect="dark" :content="s.student" placement="top">
  3128. <span>{{ s.student }}</span>
  3129. </el-tooltip>
  3130. </div>
  3131. </div>
  3132. </div>
  3133. <div
  3134. v-if="
  3135. tType &&
  3136. tType == 2 &&
  3137. !sIsOpen &&
  3138. tool.tool.indexOf(70) != -1
  3139. "
  3140. class="worksBox"
  3141. >
  3142. <div
  3143. class="zuoyeYulan"
  3144. v-if="workStudent[toolIndex].length > 0"
  3145. >
  3146. <span class="worksTitle">作业预览</span>
  3147. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3148. </div>
  3149. <div
  3150. class="worksDetailBox"
  3151. v-if="workStudent[toolIndex].length > 0"
  3152. >
  3153. <div
  3154. class="works"
  3155. style="
  3156. width: 200px;
  3157. height: 140px;
  3158. margin: 10px 10px 10px 0;
  3159. box-shadow: 0 0 6px 1px #dfdada;
  3160. "
  3161. v-for="(w, wIndex) in workStudent[toolIndex]"
  3162. :key="wIndex"
  3163. >
  3164. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3165. <img :src="word" alt />
  3166. <img
  3167. class="deleteImg"
  3168. src="../../assets/deleteworks.png"
  3169. v-if="
  3170. w.userid == userid || tType == 1 || tType == 4
  3171. "
  3172. @click.stop="deleteWorks(w.wid)"
  3173. alt
  3174. />
  3175. </div>
  3176. <div class="worksName">
  3177. <div>{{ w.sName }}</div>
  3178. </div>
  3179. </div>
  3180. </div>
  3181. </div>
  3182. <div
  3183. v-if="
  3184. tType &&
  3185. ((tType == 2 && sIsOpen == true) ||
  3186. tType == 1 ||
  3187. tType == 4) &&
  3188. tool.tool.indexOf(32) != -1
  3189. "
  3190. class="worksBox"
  3191. >
  3192. <div
  3193. class="zuoyeYulan"
  3194. v-if="
  3195. worksStudent.length &&
  3196. worksStudent[toolIndex].length > 0
  3197. "
  3198. >
  3199. <div class="worksTop">
  3200. <div>作业预览</div>
  3201. <div
  3202. class="corOpen"
  3203. @click="contract(toolIndex)"
  3204. v-if="
  3205. (isCloseList[toolIndex].isCloseBoolean) &&
  3206. isCloseList[toolIndex].isClose == 0
  3207. "
  3208. >
  3209. 折叠
  3210. </div>
  3211. <div
  3212. class="corOpen"
  3213. @click="contract(toolIndex)"
  3214. v-if="isCloseList[toolIndex].isClose == 1"
  3215. >
  3216. 展开
  3217. </div>
  3218. </div>
  3219. </div>
  3220. <div
  3221. :id="'tool-' + toolIndex"
  3222. :style="{
  3223. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3224. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3225. }"
  3226. class="worksDetailBox"
  3227. v-if="
  3228. worksStudent.length &&
  3229. worksStudent[toolIndex].length > 0
  3230. "
  3231. >
  3232. <div
  3233. class="works"
  3234. style="
  3235. width: 200px;
  3236. height: 140px;
  3237. margin: 10px 10px 10px 0;
  3238. border-radius: 15px;
  3239. box-shadow: 0 0 6px 1px #dfdada;
  3240. "
  3241. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3242. :key="wIndex"
  3243. :class="w.type == 1 ? 'isTypeOne' : ''"
  3244. >
  3245. <div class="workImg">
  3246. <img
  3247. :src="word2"
  3248. @click="downloadFile(w.works)"
  3249. alt
  3250. />
  3251. <div
  3252. class="answerScore"
  3253. v-if="w.score"
  3254. @click.stop="openScore(w)"
  3255. :class="{
  3256. rightW:
  3257. w.userid == userid ||
  3258. tType == 1 ||
  3259. tType == 4 ||
  3260. w.ateacher == userid,
  3261. }"
  3262. >
  3263. {{ JSON.parse(w.score).wScore }}分
  3264. </div>
  3265. <div
  3266. class="answerScore"
  3267. @click.stop="openScore(w)"
  3268. v-else-if="courseDetail.userid == userid"
  3269. :class="{
  3270. rightW:
  3271. w.userid == userid ||
  3272. tType == 1 ||
  3273. tType == 4 ||
  3274. w.ateacher == userid,
  3275. }"
  3276. >
  3277. 评分
  3278. </div>
  3279. <img
  3280. class="deleteImg"
  3281. src="../../assets/deleteworks.png"
  3282. v-if="
  3283. w.userid == userid || tType == 1 || tType == 4
  3284. "
  3285. @click.stop="deleteWorks(w.wid)"
  3286. alt
  3287. />
  3288. </div>
  3289. <div class="comment" style="min-width: 200px">
  3290. <div class="worksName">
  3291. <div>{{ w.sName }}</div>
  3292. </div>
  3293. <div class="commentList">
  3294. <div class="commentList">
  3295. <div
  3296. class="commentImg"
  3297. @click="
  3298. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3299. "
  3300. >
  3301. <img
  3302. :src="w.isLikes == true ? likes : noLikes"
  3303. alt=""
  3304. />
  3305. </div>
  3306. <div>{{ w.likesCount }}</div>
  3307. </div>
  3308. <div class="commentList" style="margin-right: 15px">
  3309. <div
  3310. class="commentImg"
  3311. @click="commentOther(w, toolIndex, wIndex)"
  3312. >
  3313. <img
  3314. src="../../assets/icon/comment/comment.png"
  3315. alt=""
  3316. />
  3317. </div>
  3318. <div>{{ w.commentCount }}</div>
  3319. </div>
  3320. </div>
  3321. </div>
  3322. </div>
  3323. </div>
  3324. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3325. 未提交
  3326. </div>
  3327. <div
  3328. class="noWorksS"
  3329. v-if="noWorksS && noWorksS[toolIndex].length"
  3330. >
  3331. <div
  3332. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3333. :key="sIndex"
  3334. class="noWorksName"
  3335. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3336. >
  3337. <el-tooltip effect="dark" :content="s.student" placement="top">
  3338. <span>{{ s.student }}</span>
  3339. </el-tooltip>
  3340. </div>
  3341. </div>
  3342. </div>
  3343. <div
  3344. v-if="
  3345. tType &&
  3346. ((tType == 2 && sIsOpen == true) ||
  3347. tType == 1 ||
  3348. tType == 4) &&
  3349. tool.tool.indexOf(57) != -1
  3350. "
  3351. class="worksBox"
  3352. >
  3353. <div
  3354. class="zuoyeYulan"
  3355. v-if="
  3356. worksStudent.length &&
  3357. worksStudent[toolIndex].length > 0
  3358. "
  3359. >
  3360. <div class="worksTop">
  3361. <div>作业预览</div>
  3362. <div
  3363. class="corOpen"
  3364. @click="contract(toolIndex)"
  3365. v-if="
  3366. (isCloseList[toolIndex].isCloseBoolean) &&
  3367. isCloseList[toolIndex].isClose == 0
  3368. "
  3369. >
  3370. 折叠
  3371. </div>
  3372. <div
  3373. class="corOpen"
  3374. @click="contract(toolIndex)"
  3375. v-if="isCloseList[toolIndex].isClose == 1"
  3376. >
  3377. 展开
  3378. </div>
  3379. </div>
  3380. </div>
  3381. <div
  3382. :id="'tool-' + toolIndex"
  3383. :style="{
  3384. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3385. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3386. }"
  3387. class="worksDetailBox"
  3388. v-if="
  3389. worksStudent.length &&
  3390. worksStudent[toolIndex].length > 0
  3391. "
  3392. >
  3393. <div
  3394. class="works"
  3395. style="
  3396. width: 200px;
  3397. height: 140px;
  3398. margin: 10px 10px 10px 0;
  3399. border-radius: 15px;
  3400. box-shadow: 0 0 6px 1px #dfdada;
  3401. "
  3402. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3403. :key="wIndex"
  3404. :class="w.type == 1 ? 'isTypeOne' : ''"
  3405. >
  3406. <div class="workImg">
  3407. <img
  3408. :src="word2"
  3409. @click="downloadFile(w.works)"
  3410. v-if="w.type == 12"
  3411. alt
  3412. />
  3413. <img
  3414. :src="word2"
  3415. @click="
  3416. openCocoPi(57, toolIndex, w.userid, w.sName)
  3417. "
  3418. v-else-if="w.type == 15"
  3419. alt
  3420. />
  3421. <div
  3422. class="answerScore"
  3423. v-if="w.score"
  3424. @click.stop="openScore(w)"
  3425. :class="{
  3426. rightW:
  3427. w.userid == userid ||
  3428. tType == 1 ||
  3429. tType == 4 ||
  3430. w.ateacher == userid,
  3431. }"
  3432. >
  3433. {{ JSON.parse(w.score).wScore }}分
  3434. </div>
  3435. <div
  3436. class="answerScore"
  3437. @click.stop="openScore(w)"
  3438. v-else-if="courseDetail.userid == userid"
  3439. :class="{
  3440. rightW:
  3441. w.userid == userid ||
  3442. tType == 1 ||
  3443. tType == 4 ||
  3444. w.ateacher == userid,
  3445. }"
  3446. >
  3447. 评分
  3448. </div>
  3449. <img
  3450. class="deleteImg"
  3451. src="../../assets/deleteworks.png"
  3452. v-if="
  3453. w.userid == userid || tType == 1 || tType == 4
  3454. "
  3455. @click.stop="deleteWorks(w.wid)"
  3456. alt
  3457. />
  3458. </div>
  3459. <div class="comment" style="min-width: 200px">
  3460. <div class="worksName">
  3461. <div>{{ w.sName }}</div>
  3462. </div>
  3463. <div class="commentList">
  3464. <div class="commentList">
  3465. <div
  3466. class="commentImg"
  3467. @click="
  3468. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3469. "
  3470. >
  3471. <img
  3472. :src="w.isLikes == true ? likes : noLikes"
  3473. alt=""
  3474. />
  3475. </div>
  3476. <div>{{ w.likesCount }}</div>
  3477. </div>
  3478. <div class="commentList" style="margin-right: 15px">
  3479. <div
  3480. class="commentImg"
  3481. @click="commentOther(w, toolIndex, wIndex)"
  3482. >
  3483. <img
  3484. src="../../assets/icon/comment/comment.png"
  3485. alt=""
  3486. />
  3487. </div>
  3488. <div>{{ w.commentCount }}</div>
  3489. </div>
  3490. </div>
  3491. </div>
  3492. </div>
  3493. </div>
  3494. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3495. 未提交
  3496. </div>
  3497. <div
  3498. class="noWorksS"
  3499. v-if="noWorksS && noWorksS[toolIndex].length"
  3500. >
  3501. <div
  3502. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3503. :key="sIndex"
  3504. class="noWorksName"
  3505. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3506. >
  3507. <el-tooltip effect="dark" :content="s.student" placement="top">
  3508. <span>{{ s.student }}</span>
  3509. </el-tooltip>
  3510. </div>
  3511. </div>
  3512. </div>
  3513. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3514. <div
  3515. class="zuoyeYulan"
  3516. v-if="
  3517. worksStudent.length &&
  3518. worksStudent[toolIndex].length > 0
  3519. "
  3520. >
  3521. <span class="worksTitle">作业预览</span>
  3522. <div
  3523. class="corOpen"
  3524. @click="contract(toolIndex)"
  3525. v-if="
  3526. (isCloseList[toolIndex].isCloseBoolean) &&
  3527. isCloseList[toolIndex].isClose == 0
  3528. "
  3529. >
  3530. 折叠
  3531. </div>
  3532. <div
  3533. class="corOpen"
  3534. @click="contract(toolIndex)"
  3535. v-if="isCloseList[toolIndex].isClose == 1"
  3536. >
  3537. 展开
  3538. </div>
  3539. </div>
  3540. <div
  3541. :id="'tool-' + toolIndex"
  3542. :style="{
  3543. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3544. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3545. }"
  3546. class="worksDetailBox"
  3547. v-if="
  3548. worksStudent.length &&
  3549. worksStudent[toolIndex].length > 0
  3550. "
  3551. >
  3552. <div
  3553. class="works"
  3554. style="
  3555. width: 200px;
  3556. height: 140px;
  3557. margin: 10px 10px 10px 0;
  3558. border-radius: 15px;
  3559. box-shadow: 0 0 6px 1px #dfdada;
  3560. "
  3561. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3562. :key="wIndex"
  3563. :class="w.type == 1 ? 'isTypeOne' : ''"
  3564. >
  3565. <div class="workImg" v-if="w.type == 0">
  3566. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3567. <img
  3568. :src="w.works"
  3569. @click="previewImg(w.works,w)"
  3570. alt
  3571. />
  3572. <div
  3573. class="answerScore"
  3574. v-if="w.score"
  3575. @click.stop="openScore(w)"
  3576. :class="{
  3577. rightW:
  3578. w.userid == userid ||
  3579. tType == 1 ||
  3580. tType == 4 ||
  3581. w.ateacher == userid,
  3582. }"
  3583. >
  3584. {{ JSON.parse(w.score).wScore }}分
  3585. </div>
  3586. <div
  3587. class="answerScore"
  3588. @click.stop="openScore(w)"
  3589. v-else-if="courseDetail.userid == userid"
  3590. :class="{
  3591. rightW:
  3592. w.userid == userid ||
  3593. tType == 1 ||
  3594. tType == 4 ||
  3595. w.ateacher == userid,
  3596. }"
  3597. >
  3598. 评分
  3599. </div>
  3600. <img
  3601. class="deleteImg"
  3602. src="../../assets/deleteworks.png"
  3603. v-if="
  3604. w.userid == userid || tType == 1 || tType == 4
  3605. "
  3606. @click.stop="deleteWorks(w.wid)"
  3607. alt
  3608. />
  3609. </div>
  3610. <div
  3611. class="workImg"
  3612. style="cursor: pointer"
  3613. v-if="w.type == 1"
  3614. >
  3615. <img :src="word" @click="openFile(w.works)" alt />
  3616. <!-- @click="openFile(w.works)" -->
  3617. <div
  3618. class="answerScore"
  3619. v-if="w.score"
  3620. @click.stop="openScore(w)"
  3621. :class="{
  3622. rightW:
  3623. w.userid == userid ||
  3624. tType == 1 ||
  3625. tType == 4 ||
  3626. w.ateacher == userid,
  3627. }"
  3628. >
  3629. {{ JSON.parse(w.score).wScore }}分
  3630. </div>
  3631. <div
  3632. class="answerScore"
  3633. @click.stop="openScore(w)"
  3634. v-else-if="courseDetail.userid == userid"
  3635. :class="{
  3636. rightW:
  3637. w.userid == userid ||
  3638. tType == 1 ||
  3639. tType == 4 ||
  3640. w.ateacher == userid,
  3641. }"
  3642. >
  3643. 评分
  3644. </div>
  3645. <img
  3646. class="deleteImg"
  3647. src="../../assets/deleteworks.png"
  3648. v-if="
  3649. w.userid == userid || tType == 1 || tType == 4
  3650. "
  3651. @click.stop="deleteWorks(w.wid)"
  3652. alt
  3653. />
  3654. </div>
  3655. <div class="workImg" v-if="w.type == 3">
  3656. <img
  3657. style="cursor: pointer"
  3658. :src="video"
  3659. @click="openVideo(w)"
  3660. alt
  3661. />
  3662. <!-- @click="openVideo(w.works)" -->
  3663. <div
  3664. class="answerScore"
  3665. v-if="w.score"
  3666. @click.stop="openScore(w)"
  3667. :class="{
  3668. rightW:
  3669. w.userid == userid ||
  3670. tType == 1 ||
  3671. tType == 4 ||
  3672. w.ateacher == userid,
  3673. }"
  3674. >
  3675. {{ JSON.parse(w.score).wScore }}分
  3676. </div>
  3677. <div
  3678. class="answerScore"
  3679. @click.stop="openScore(w)"
  3680. v-else-if="courseDetail.userid == userid"
  3681. :class="{
  3682. rightW:
  3683. w.userid == userid ||
  3684. tType == 1 ||
  3685. tType == 4 ||
  3686. w.ateacher == userid,
  3687. }"
  3688. >
  3689. 评分
  3690. </div>
  3691. <img
  3692. class="deleteImg"
  3693. src="../../assets/deleteworks.png"
  3694. v-if="
  3695. w.userid == userid || tType == 1 || tType == 4
  3696. "
  3697. @click.stop="deleteWorks(w.wid)"
  3698. alt
  3699. />
  3700. </div>
  3701. <div class="comment" style="min-width: 200px">
  3702. <div class="worksName">
  3703. <div
  3704. style="cursor: pointer"
  3705. @click="
  3706. openSname(w.sName, w.wid, toolIndex, w.userid)
  3707. "
  3708. >
  3709. {{ w.sName }}
  3710. </div>
  3711. </div>
  3712. <div class="commentList">
  3713. <div class="commentList">
  3714. <div
  3715. class="commentImg"
  3716. @click="
  3717. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3718. "
  3719. >
  3720. <img
  3721. :src="w.isLikes == true ? likes : noLikes"
  3722. alt=""
  3723. />
  3724. </div>
  3725. <div>{{ w.likesCount }}</div>
  3726. </div>
  3727. <div class="commentList" style="margin-right: 15px">
  3728. <div
  3729. class="commentImg"
  3730. @click="commentOther(w, toolIndex, wIndex)"
  3731. >
  3732. <img
  3733. src="../../assets/icon/comment/comment.png"
  3734. alt=""
  3735. />
  3736. </div>
  3737. <div>{{ w.commentCount }}</div>
  3738. </div>
  3739. </div>
  3740. </div>
  3741. </div>
  3742. </div>
  3743. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3744. 未提交
  3745. </div>
  3746. <div
  3747. class="noWorksS"
  3748. v-if="noWorksS && noWorksS[toolIndex].length"
  3749. >
  3750. <div
  3751. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3752. :key="sIndex"
  3753. class="noWorksName"
  3754. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3755. >
  3756. <el-tooltip effect="dark" :content="s.student" placement="top">
  3757. <span>{{ s.student }}</span>
  3758. </el-tooltip>
  3759. </div>
  3760. </div>
  3761. </div>
  3762. <div
  3763. v-if="
  3764. tType &&
  3765. ((tType == 2 && sIsOpen == true) ||
  3766. tType == 1 ||
  3767. tType == 4) &&
  3768. tool.tool.indexOf(4) != -1 &&
  3769. (tool.askJson[0].answer ||
  3770. tool.askJson[0].answer === 0) &&
  3771. checkJson[toolIndex].length
  3772. "
  3773. class="xuan_right_box"
  3774. >
  3775. <div
  3776. class="tool_right_box"
  3777. v-for="(item, index) in tool.askJson"
  3778. :key="index"
  3779. >
  3780. <div style="width: calc(100% - 30px);">
  3781. <el-tooltip
  3782. effect="light"
  3783. :content="index + 1 + '、' + item.askstitle"
  3784. placement="top"
  3785. popper-class="text_tooltip"
  3786. >
  3787. <div
  3788. style="
  3789. width: calc(100% - 130px);
  3790. display: block;
  3791. white-space: nowrap;
  3792. overflow: hidden;
  3793. text-overflow: ellipsis;
  3794. word-break: break-word;
  3795. cursor: pointer;
  3796. "
  3797. >
  3798. {{ index + 1 + "、" + item.askstitle }}
  3799. </div>
  3800. </el-tooltip>
  3801. </div>
  3802. <div class="right_box_xuan">
  3803. <span>正确率</span>
  3804. <span>{{
  3805. (checkJson[toolIndex][index].right
  3806. ? checkJson[toolIndex][index].right
  3807. : 0) + "%"
  3808. }}</span>
  3809. </div>
  3810. </div>
  3811. </div>
  3812. <div
  3813. class="xuan_right_box"
  3814. style="background: unset; padding: 0 10px"
  3815. v-if="
  3816. tType &&
  3817. ((tType == 2 && sIsOpen == true) ||
  3818. tType == 1 ||
  3819. tType == 4) &&
  3820. tool.tool.indexOf(4) != -1
  3821. "
  3822. >
  3823. <AskStatic
  3824. v-if="
  3825. worksStudent.length &&
  3826. worksStudent[toolIndex].length > 0
  3827. "
  3828. :askJSON="tool"
  3829. :checkJson="checkJson[toolIndex]"
  3830. ></AskStatic>
  3831. </div>
  3832. <div
  3833. v-if="
  3834. tType &&
  3835. ((tType == 2 && sIsOpen == true) ||
  3836. tType == 1 ||
  3837. tType == 4) &&
  3838. tool.tool.indexOf(4) != -1
  3839. "
  3840. class="worksBox"
  3841. >
  3842. <div
  3843. class="zuoyeYulan"
  3844. v-if="
  3845. worksStudent.length &&
  3846. worksStudent[toolIndex].length > 0
  3847. "
  3848. >
  3849. <div class="worksTop">
  3850. <div>作业预览</div>
  3851. <div
  3852. class="corOpen"
  3853. @click="contract(toolIndex)"
  3854. v-if="
  3855. (isCloseList[toolIndex].isCloseBoolean) &&
  3856. isCloseList[toolIndex].isClose == 0
  3857. "
  3858. >
  3859. 折叠
  3860. </div>
  3861. <div
  3862. class="corOpen"
  3863. @click="contract(toolIndex)"
  3864. v-if="isCloseList[toolIndex].isClose == 1"
  3865. >
  3866. 展开
  3867. </div>
  3868. </div>
  3869. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3870. </div>
  3871. <div>
  3872. <div
  3873. :id="'tool-' + toolIndex"
  3874. :style="{
  3875. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3876. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3877. }"
  3878. class="worksDetailBox"
  3879. v-if="
  3880. worksStudent.length &&
  3881. worksStudent[toolIndex].length > 0
  3882. "
  3883. >
  3884. <div
  3885. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3886. :key="wIndex"
  3887. class="isWorksName2"
  3888. @click="
  3889. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3890. "
  3891. >
  3892. {{ w.sName }}
  3893. <img
  3894. class="deleteImg deleteImg2"
  3895. src="../../assets/deleteworks.png"
  3896. v-if="
  3897. w.userid == userid || tType == 1 || tType == 4
  3898. "
  3899. @click.stop="deleteWorks(w.wid)"
  3900. alt
  3901. />
  3902. </div>
  3903. <!-- <div class="works" style="
  3904. width: 200px;
  3905. height: 140px;
  3906. border-radius: 10px;
  3907. box-shadow: 0 0 6px 1px #dfdada;
  3908. overflow: hidden;
  3909. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3910. <div class="workImg">
  3911. <img src="../../assets/icon/works/noImg.png" @click="
  3912. openTools(
  3913. 4,
  3914. toolIndex,
  3915. taskCount,
  3916. w.works,
  3917. w.sName
  3918. )
  3919. " alt />
  3920. </div>
  3921. <div class="worksName">
  3922. <div>{{ w.sName }}</div>
  3923. <div>{{ w.time }}</div>
  3924. </div>
  3925. </div> -->
  3926. </div>
  3927. </div>
  3928. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3929. 未提交
  3930. </div>
  3931. <div
  3932. class="noWorksS"
  3933. v-if="noWorksS && noWorksS[toolIndex].length"
  3934. >
  3935. <div
  3936. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3937. :key="sIndex"
  3938. class="noWorksName"
  3939. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3940. >
  3941. <el-tooltip effect="dark" :content="s.student" placement="top">
  3942. <span>{{ s.student }}</span>
  3943. </el-tooltip>
  3944. </div>
  3945. </div>
  3946. </div>
  3947. <div
  3948. v-if="
  3949. tType &&
  3950. ((tType == 2 && sIsOpen == true) ||
  3951. tType == 1 ||
  3952. tType == 4) &&
  3953. tool.tool.indexOf(45) != -1 &&
  3954. (tool.testJson.testJson[0].answer ||
  3955. tool.testJson.testJson[0].answer === 0) &&
  3956. checkJson[toolIndex].length
  3957. "
  3958. class="xuan_right_box"
  3959. >
  3960. <div
  3961. class="tool_right_box"
  3962. v-for="(item, index) in tool.testJson.testJson"
  3963. :key="index"
  3964. >
  3965. <div class="right_box_xuan" style="margin-right: 10px">
  3966. <span>正确率</span>
  3967. <span>{{
  3968. (checkJson[toolIndex][index].right
  3969. ? checkJson[toolIndex][index].right
  3970. : 0) + "%"
  3971. }}</span>
  3972. </div>
  3973. <div style="width: calc(100% - 30px);">
  3974. <el-tooltip
  3975. effect="light"
  3976. :content="index + 1 + '、' + item.teststitle"
  3977. placement="top"
  3978. popper-class="text_tooltip"
  3979. >
  3980. <div
  3981. style="
  3982. width: calc(100% - 130px);
  3983. display: block;
  3984. white-space: nowrap;
  3985. overflow: hidden;
  3986. text-overflow: ellipsis;
  3987. word-break: break-word;
  3988. cursor: pointer;
  3989. "
  3990. >
  3991. {{ index + 1 + "、" + item.teststitle }}
  3992. </div>
  3993. </el-tooltip>
  3994. </div>
  3995. </div>
  3996. </div>
  3997. <div
  3998. class="xuan_right_box"
  3999. style="background: unset; padding: 0 10px; width: 91.5%"
  4000. v-if="
  4001. tType &&
  4002. ((tType == 2 && sIsOpen == true) ||
  4003. tType == 1 ||
  4004. tType == 4) &&
  4005. tool.tool.indexOf(45) != -1
  4006. "
  4007. >
  4008. <AskStatic2
  4009. v-if="
  4010. worksStudent.length &&
  4011. worksStudent[toolIndex].length > 0
  4012. "
  4013. :askJSON="tool"
  4014. :checkJson="checkJson[toolIndex]"
  4015. ></AskStatic2>
  4016. </div>
  4017. <div
  4018. v-if="
  4019. tType &&
  4020. ((tType == 2 && sIsOpen == true) ||
  4021. tType == 1 ||
  4022. tType == 4) &&
  4023. tool.tool.indexOf(45) != -1
  4024. "
  4025. class="worksBox"
  4026. >
  4027. <div
  4028. class="zuoyeYulan"
  4029. v-if="
  4030. worksStudent.length &&
  4031. worksStudent[toolIndex].length > 0
  4032. "
  4033. >
  4034. <div class="worksTop">
  4035. <div>作业预览</div>
  4036. <div
  4037. class="corOpen"
  4038. @click="contract(toolIndex)"
  4039. v-if="
  4040. (isCloseList[toolIndex].isCloseBoolean) &&
  4041. isCloseList[toolIndex].isClose == 0
  4042. "
  4043. >
  4044. 折叠
  4045. </div>
  4046. <div
  4047. class="corOpen"
  4048. @click="contract(toolIndex)"
  4049. v-if="isCloseList[toolIndex].isClose == 1"
  4050. >
  4051. 展开
  4052. </div>
  4053. </div>
  4054. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4055. </div>
  4056. <div>
  4057. <div
  4058. :id="'tool-' + toolIndex"
  4059. :style="{
  4060. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4061. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4062. }"
  4063. class="worksDetailBox"
  4064. v-if="
  4065. worksStudent.length &&
  4066. worksStudent[toolIndex].length > 0
  4067. "
  4068. >
  4069. <div
  4070. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4071. :key="wIndex"
  4072. class="isWorksName2"
  4073. @click="
  4074. openTools(
  4075. 45,
  4076. toolIndex,
  4077. taskCount,
  4078. w.works,
  4079. w.sName
  4080. )
  4081. "
  4082. >
  4083. {{ w.sName }}
  4084. <img
  4085. class="deleteImg deleteImg2"
  4086. src="../../assets/deleteworks.png"
  4087. v-if="
  4088. w.userid == userid || tType == 1 || tType == 4
  4089. "
  4090. @click.stop="deleteWorks(w.wid)"
  4091. alt
  4092. />
  4093. </div>
  4094. </div>
  4095. </div>
  4096. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4097. 未提交
  4098. </div>
  4099. <div
  4100. class="noWorksS"
  4101. v-if="noWorksS && noWorksS[toolIndex].length"
  4102. >
  4103. <div
  4104. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4105. :key="sIndex"
  4106. class="noWorksName"
  4107. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4108. >
  4109. <el-tooltip effect="dark" :content="s.student" placement="top">
  4110. <span>{{ s.student }}</span>
  4111. </el-tooltip>
  4112. </div>
  4113. </div>
  4114. </div>
  4115. <div
  4116. v-if="
  4117. tType &&
  4118. ((tType == 2 && sIsOpen == true) ||
  4119. tType == 1 ||
  4120. tType == 4) &&
  4121. tool.tool.indexOf(69) != -1
  4122. "
  4123. class="worksBox"
  4124. >
  4125. <div
  4126. class="zuoyeYulan"
  4127. v-if="
  4128. worksStudent.length &&
  4129. worksStudent[toolIndex].length > 0
  4130. "
  4131. >
  4132. <div class="worksTop">
  4133. <div>作业预览</div>
  4134. <div
  4135. class="corOpen"
  4136. @click="contract(toolIndex)"
  4137. v-if="
  4138. (isCloseList[toolIndex].isCloseBoolean) &&
  4139. isCloseList[toolIndex].isClose == 0
  4140. "
  4141. >
  4142. 折叠
  4143. </div>
  4144. <div
  4145. class="corOpen"
  4146. @click="contract(toolIndex)"
  4147. v-if="isCloseList[toolIndex].isClose == 1"
  4148. >
  4149. 展开
  4150. </div>
  4151. </div>
  4152. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4153. </div>
  4154. <div>
  4155. <div
  4156. :id="'tool-' + toolIndex"
  4157. :style="{
  4158. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4159. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4160. }"
  4161. class="worksDetailBox"
  4162. v-if="
  4163. worksStudent.length &&
  4164. worksStudent[toolIndex].length > 0
  4165. "
  4166. >
  4167. <div
  4168. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4169. :key="wIndex"
  4170. class="isWorksName2"
  4171. style="width: 160px;height: 65px;line-height: 65px;"
  4172. @click="
  4173. openTools(
  4174. 69,
  4175. toolIndex,
  4176. taskCount,
  4177. w.works,
  4178. w.sName,
  4179. w.wid
  4180. )
  4181. "
  4182. >
  4183. {{ w.sName }}
  4184. <img
  4185. class="deleteImg1"
  4186. src="../../assets/evaEnglish.png"
  4187. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4188. alt
  4189. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4190. />
  4191. <img
  4192. class="deleteImg deleteImg2"
  4193. src="../../assets/deleteworks.png"
  4194. v-if="
  4195. w.userid == userid || tType == 1 || tType == 4
  4196. "
  4197. @click.stop="deleteWorks(w.wid)"
  4198. alt
  4199. />
  4200. </div>
  4201. </div>
  4202. </div>
  4203. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4204. 未提交
  4205. </div>
  4206. <div
  4207. class="noWorksS"
  4208. v-if="noWorksS && noWorksS[toolIndex].length"
  4209. >
  4210. <div
  4211. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4212. :key="sIndex"
  4213. class="noWorksName"
  4214. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4215. >
  4216. <el-tooltip effect="dark" :content="s.student" placement="top">
  4217. <span>{{ s.student }}</span>
  4218. </el-tooltip>
  4219. </div>
  4220. </div>
  4221. </div>
  4222. <div
  4223. v-if="
  4224. tType &&
  4225. ((tType == 2 && sIsOpen == true) ||
  4226. tType == 1 ||
  4227. tType == 4) &&
  4228. tool.tool.indexOf(15) != -1
  4229. "
  4230. class="worksBox"
  4231. >
  4232. <div
  4233. class="zuoyeYulan"
  4234. v-if="
  4235. (worksStudent.length &&
  4236. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4237. "
  4238. >
  4239. <div class="worksTop">
  4240. <div>作业预览</div>
  4241. <div
  4242. class="corOpen"
  4243. @click="contract(toolIndex)"
  4244. v-if="
  4245. (isCloseList[toolIndex].isCloseBoolean) &&
  4246. isCloseList[toolIndex].isClose == 0
  4247. "
  4248. >
  4249. 折叠
  4250. </div>
  4251. <div
  4252. class="corOpen"
  4253. @click="contract(toolIndex)"
  4254. v-if="isCloseList[toolIndex].isClose == 1"
  4255. >
  4256. 展开
  4257. </div>
  4258. </div>
  4259. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4260. </div>
  4261. <div
  4262. class="group_workBox"
  4263. v-for="(g, gindex) in courseGroup.group"
  4264. :key="gindex"
  4265. >
  4266. <div class="group_box">
  4267. <div class="group_title">
  4268. <el-tooltip
  4269. class="item"
  4270. effect="light"
  4271. :content="g.name"
  4272. placement="top"
  4273. >
  4274. <div class="group_name">{{ g.name }}</div>
  4275. </el-tooltip>
  4276. </div>
  4277. <div
  4278. class="group_work"
  4279. v-if="
  4280. g.works &&
  4281. g.works.length &&
  4282. g.works[toolIndex].length
  4283. "
  4284. >
  4285. <div
  4286. class="works"
  4287. v-for="(w, wIndex) in g.works[toolIndex]"
  4288. :key="wIndex"
  4289. >
  4290. <div
  4291. class="workImg"
  4292. style="
  4293. border-radius: 15px;
  4294. box-shadow: 0px 0px 5px 5px #eee;
  4295. "
  4296. >
  4297. <div
  4298. class="answerBg"
  4299. style="border-radius: 15px 15px 0 0"
  4300. @click="
  4301. commentOther(w, toolIndex, wIndex, null, g.id)
  4302. "
  4303. >
  4304. <div class="answerContent">
  4305. {{ JSON.parse(w.works)[0].answer }}
  4306. </div>
  4307. <div
  4308. class="answerScore"
  4309. v-if="w.score"
  4310. @click.stop="openScore(w)"
  4311. :class="{
  4312. rightW:
  4313. w.userid == userid ||
  4314. tType == 1 ||
  4315. tType == 4,
  4316. }"
  4317. >
  4318. {{ JSON.parse(w.score).wScore }}分
  4319. </div>
  4320. <div
  4321. class="answerScore"
  4322. @click.stop="openScore(w)"
  4323. v-else-if="courseDetail.userid == userid"
  4324. :class="{
  4325. rightW:
  4326. w.userid == userid ||
  4327. tType == 1 ||
  4328. tType == 4,
  4329. }"
  4330. >
  4331. 评分
  4332. </div>
  4333. <img
  4334. class="deleteImg"
  4335. src="../../assets/deleteworks.png"
  4336. v-if="
  4337. w.userid == userid ||
  4338. tType == 1 ||
  4339. tType == 4
  4340. "
  4341. @click.stop="deleteWorks(w.wid)"
  4342. alt
  4343. />
  4344. </div>
  4345. <div class="comment">
  4346. <div class="worksName">
  4347. <div>{{ w.sName }}</div>
  4348. </div>
  4349. <div class="commentList">
  4350. <div
  4351. class="commentImg"
  4352. @click="
  4353. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4354. "
  4355. >
  4356. <img
  4357. :src="w.isLikes == true ? likes : noLikes"
  4358. alt=""
  4359. />
  4360. </div>
  4361. <div>{{ w.likesCount }}</div>
  4362. </div>
  4363. <div
  4364. class="commentList"
  4365. style="margin-right: 15px"
  4366. >
  4367. <div
  4368. class="commentImg"
  4369. @click="
  4370. commentOther(
  4371. w,
  4372. toolIndex,
  4373. wIndex,
  4374. null,
  4375. g.id
  4376. )
  4377. "
  4378. >
  4379. <img
  4380. src="../../assets/icon/comment/comment.png"
  4381. alt=""
  4382. />
  4383. </div>
  4384. <div>{{ w.commentCount }}</div>
  4385. </div>
  4386. </div>
  4387. </div>
  4388. </div>
  4389. </div>
  4390. <div class="group_work" v-else>暂无提交作业</div>
  4391. </div>
  4392. </div>
  4393. <div
  4394. :id="'tool-' + toolIndex"
  4395. :style="{
  4396. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4397. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4398. }"
  4399. class="worksDetailBox"
  4400. v-if="
  4401. worksStudent.length &&
  4402. worksStudent[toolIndex].length > 0
  4403. "
  4404. >
  4405. <div
  4406. class="works"
  4407. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4408. :key="wIndex"
  4409. >
  4410. <div
  4411. class="workImg"
  4412. style="
  4413. border-radius: 15px;
  4414. box-shadow: 0px 0px 5px 5px #eee;
  4415. "
  4416. >
  4417. <!-- <img
  4418. src="../../assets/icon/works/noImg.png"
  4419. @click="openTools(15, toolIndex, taskCount, w.works)"
  4420. alt=""
  4421. />-->
  4422. <div
  4423. class="answerBg"
  4424. style="border-radius: 15px 15px 0 0"
  4425. @click="commentOther(w, toolIndex, wIndex)"
  4426. >
  4427. <!-- <div>{{ w.sName }}</div> -->
  4428. <div class="answerContent">
  4429. {{ JSON.parse(w.works)[0].answer }}
  4430. </div>
  4431. <div
  4432. class="answerScore"
  4433. v-if="w.score"
  4434. @click.stop="openScore(w)"
  4435. :class="{
  4436. rightW:
  4437. w.userid == userid ||
  4438. tType == 1 ||
  4439. tType == 4,
  4440. }"
  4441. >
  4442. {{ JSON.parse(w.score).wScore }}分
  4443. </div>
  4444. <div
  4445. class="answerScore"
  4446. @click.stop="openScore(w)"
  4447. v-else-if="courseDetail.userid == userid"
  4448. :class="{
  4449. rightW:
  4450. w.userid == userid ||
  4451. tType == 1 ||
  4452. tType == 4,
  4453. }"
  4454. >
  4455. 评分
  4456. </div>
  4457. <img
  4458. class="deleteImg"
  4459. src="../../assets/deleteworks.png"
  4460. v-if="
  4461. w.userid == userid || tType == 1 || tType == 4
  4462. "
  4463. @click.stop="deleteWorks(w.wid)"
  4464. alt
  4465. />
  4466. </div>
  4467. <div class="comment">
  4468. <div class="worksName">
  4469. <div>{{ w.sName }}</div>
  4470. </div>
  4471. <div class="commentList">
  4472. <div
  4473. class="commentImg"
  4474. @click="
  4475. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4476. "
  4477. >
  4478. <img
  4479. :src="w.isLikes == true ? likes : noLikes"
  4480. alt=""
  4481. />
  4482. </div>
  4483. <div>{{ w.likesCount }}</div>
  4484. </div>
  4485. <div class="commentList" style="margin-right: 15px">
  4486. <div
  4487. class="commentImg"
  4488. @click="commentOther(w, toolIndex, wIndex)"
  4489. >
  4490. <img
  4491. src="../../assets/icon/comment/comment.png"
  4492. alt=""
  4493. />
  4494. </div>
  4495. <div>{{ w.commentCount }}</div>
  4496. </div>
  4497. </div>
  4498. </div>
  4499. </div>
  4500. </div>
  4501. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4502. 未提交
  4503. </div>
  4504. <div
  4505. class="noWorksS"
  4506. v-if="noWorksS && noWorksS[toolIndex].length"
  4507. >
  4508. <div
  4509. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4510. :key="sIndex"
  4511. class="noWorksName"
  4512. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4513. >
  4514. <el-tooltip effect="dark" :content="s.student" placement="top">
  4515. <span>{{ s.student }}</span>
  4516. </el-tooltip>
  4517. </div>
  4518. </div>
  4519. </div>
  4520. <div
  4521. v-if="
  4522. tType &&
  4523. ((tType == 2 && sIsOpen == true) ||
  4524. tType == 1 ||
  4525. tType == 4) &&
  4526. tool.tool.indexOf(1) != -1
  4527. "
  4528. class="worksBox"
  4529. >
  4530. <div
  4531. class="zuoyeYulan"
  4532. v-if="
  4533. (worksStudent.length &&
  4534. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4535. "
  4536. >
  4537. <div class="worksTop">
  4538. <div>作业预览</div>
  4539. <div
  4540. class="corOpen"
  4541. @click="contract(toolIndex)"
  4542. v-if="
  4543. (isCloseList[toolIndex].isCloseBoolean) &&
  4544. isCloseList[toolIndex].isClose == 0
  4545. "
  4546. >
  4547. 折叠
  4548. </div>
  4549. <div
  4550. class="corOpen"
  4551. @click="contract(toolIndex)"
  4552. v-if="isCloseList[toolIndex].isClose == 1"
  4553. >
  4554. 展开
  4555. </div>
  4556. </div>
  4557. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4558. </div>
  4559. <div
  4560. class="group_workBox"
  4561. v-for="(g, gindex) in courseGroup.group"
  4562. :key="gindex"
  4563. >
  4564. <div class="group_box">
  4565. <div class="group_title">
  4566. <el-tooltip
  4567. class="item"
  4568. effect="light"
  4569. :content="g.name"
  4570. placement="top"
  4571. >
  4572. <div class="group_name">{{ g.name }}</div>
  4573. </el-tooltip>
  4574. </div>
  4575. <div
  4576. class="group_work"
  4577. v-if="
  4578. g.works &&
  4579. g.works.length &&
  4580. g.works[toolIndex].length
  4581. "
  4582. >
  4583. <div
  4584. class="works"
  4585. style="
  4586. width: 200px;
  4587. height: 140px;
  4588. margin: 10px 10px 10px 0;
  4589. border-radius: 15px;
  4590. box-shadow: 0 0 6px 1px #dfdada;
  4591. "
  4592. v-for="(w, wIndex) in g.works[toolIndex]"
  4593. :key="wIndex"
  4594. :class="w.type == 1 ? 'isTypeOne' : ''"
  4595. >
  4596. <div class="workImg">
  4597. <img
  4598. :src="w.works"
  4599. @click="previewImg(w.works,w)"
  4600. alt
  4601. />
  4602. <div
  4603. class="answerScore"
  4604. v-if="w.score"
  4605. @click.stop="openScore(w)"
  4606. :class="{
  4607. rightW:
  4608. w.userid == userid ||
  4609. tType == 1 ||
  4610. tType == 4,
  4611. }"
  4612. >
  4613. {{ JSON.parse(w.score).wScore }}分
  4614. </div>
  4615. <div
  4616. class="answerScore"
  4617. @click.stop="openScore(w)"
  4618. v-else-if="courseDetail.userid == userid"
  4619. :class="{
  4620. rightW:
  4621. w.userid == userid ||
  4622. tType == 1 ||
  4623. tType == 4,
  4624. }"
  4625. >
  4626. 评分
  4627. </div>
  4628. <img
  4629. class="deleteImg"
  4630. src="../../assets/deleteworks.png"
  4631. v-if="
  4632. w.userid == userid || tType == 1 || tType == 4
  4633. "
  4634. @click.stop="deleteWorks(w.wid)"
  4635. alt
  4636. />
  4637. </div>
  4638. <div class="comment" style="min-width: 200px">
  4639. <div class="worksName">
  4640. <div>{{ w.sName }}</div>
  4641. </div>
  4642. <div class="commentList">
  4643. <div class="commentList">
  4644. <div
  4645. class="commentImg"
  4646. @click="
  4647. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4648. "
  4649. >
  4650. <img
  4651. :src="w.isLikes == true ? likes : noLikes"
  4652. alt=""
  4653. />
  4654. </div>
  4655. <div>{{ w.likesCount }}</div>
  4656. </div>
  4657. <div
  4658. class="commentList"
  4659. style="margin-right: 15px"
  4660. >
  4661. <div
  4662. class="commentImg"
  4663. @click="
  4664. commentOther(
  4665. w,
  4666. toolIndex,
  4667. wIndex,
  4668. null,
  4669. g.id
  4670. )
  4671. "
  4672. >
  4673. <img
  4674. src="../../assets/icon/comment/comment.png"
  4675. alt=""
  4676. />
  4677. </div>
  4678. <div>{{ w.commentCount }}</div>
  4679. </div>
  4680. </div>
  4681. </div>
  4682. </div>
  4683. </div>
  4684. <div class="group_work" v-else>暂无提交作业</div>
  4685. </div>
  4686. </div>
  4687. <div
  4688. :id="'tool-' + toolIndex"
  4689. :style="{
  4690. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4691. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4692. }"
  4693. class="worksDetailBox"
  4694. v-if="
  4695. worksStudent.length &&
  4696. worksStudent[toolIndex].length > 0
  4697. "
  4698. >
  4699. <div
  4700. class="works"
  4701. style="
  4702. width: 200px;
  4703. height: 140px;
  4704. margin: 10px 10px 10px 0;
  4705. border-radius: 15px;
  4706. box-shadow: 0 0 6px 1px #dfdada;
  4707. "
  4708. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4709. :key="wIndex"
  4710. >
  4711. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4712. <div class="workImg">
  4713. <img
  4714. :src="w.works"
  4715. @click="previewImg(w.works,w)"
  4716. alt
  4717. />
  4718. <div
  4719. class="answerScore"
  4720. v-if="w.score"
  4721. @click.stop="openScore(w)"
  4722. :class="{
  4723. rightW:
  4724. w.userid == userid || tType == 1 || tType == 4,
  4725. }"
  4726. >
  4727. {{ JSON.parse(w.score).wScore }}分
  4728. </div>
  4729. <div
  4730. class="answerScore"
  4731. @click.stop="openScore(w)"
  4732. v-else-if="courseDetail.userid == userid"
  4733. :class="{
  4734. rightW:
  4735. w.userid == userid || tType == 1 || tType == 4,
  4736. }"
  4737. >
  4738. 评分
  4739. </div>
  4740. <img
  4741. class="deleteImg"
  4742. src="../../assets/deleteworks.png"
  4743. v-if="
  4744. w.userid == userid || tType == 1 || tType == 4
  4745. "
  4746. @click.stop="deleteWorks(w.wid)"
  4747. alt
  4748. />
  4749. </div>
  4750. <div class="comment" style="min-width: 200px">
  4751. <div class="worksName">
  4752. <div>{{ w.sName }}</div>
  4753. </div>
  4754. <div class="commentList">
  4755. <div class="commentList">
  4756. <div
  4757. class="commentImg"
  4758. @click="
  4759. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4760. "
  4761. >
  4762. <img
  4763. :src="w.isLikes == true ? likes : noLikes"
  4764. alt=""
  4765. />
  4766. </div>
  4767. <div>{{ w.likesCount }}</div>
  4768. </div>
  4769. <div class="commentList" style="margin-right: 15px">
  4770. <div
  4771. class="commentImg"
  4772. @click="commentOther(w, toolIndex, wIndex)"
  4773. >
  4774. <img
  4775. src="../../assets/icon/comment/comment.png"
  4776. alt=""
  4777. />
  4778. </div>
  4779. <div>{{ w.commentCount }}</div>
  4780. </div>
  4781. </div>
  4782. </div>
  4783. </div>
  4784. </div>
  4785. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4786. 未提交
  4787. </div>
  4788. <div
  4789. class="noWorksS"
  4790. v-if="noWorksS && noWorksS[toolIndex].length"
  4791. >
  4792. <div
  4793. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4794. :key="sIndex"
  4795. class="noWorksName"
  4796. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4797. >
  4798. <el-tooltip effect="dark" :content="s.student" placement="top">
  4799. <span>{{ s.student }}</span>
  4800. </el-tooltip>
  4801. </div>
  4802. </div>
  4803. </div>
  4804. <div
  4805. v-if="
  4806. tType &&
  4807. ((tType == 2 && sIsOpen == true) ||
  4808. tType == 1 ||
  4809. tType == 4) &&
  4810. tool.tool.indexOf(3) != -1
  4811. "
  4812. class="worksBox"
  4813. >
  4814. <div
  4815. class="zuoyeYulan"
  4816. v-if="
  4817. (worksStudent.length &&
  4818. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4819. "
  4820. >
  4821. <div class="worksTop">
  4822. <div>作业预览</div>
  4823. <div
  4824. class="corOpen"
  4825. @click="contract(toolIndex)"
  4826. v-if="
  4827. (isCloseList[toolIndex].isCloseBoolean) &&
  4828. isCloseList[toolIndex].isClose == 0
  4829. "
  4830. >
  4831. 折叠
  4832. </div>
  4833. <div
  4834. class="corOpen"
  4835. @click="contract(toolIndex)"
  4836. v-if="isCloseList[toolIndex].isClose == 1"
  4837. >
  4838. 展开
  4839. </div>
  4840. </div>
  4841. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4842. </div>
  4843. <div
  4844. class="group_workBox"
  4845. v-for="(g, gindex) in courseGroup.group"
  4846. :key="gindex"
  4847. >
  4848. <div class="group_box">
  4849. <div class="group_title">
  4850. <el-tooltip
  4851. class="item"
  4852. effect="light"
  4853. :content="g.name"
  4854. placement="top"
  4855. >
  4856. <div class="group_name">{{ g.name }}</div>
  4857. </el-tooltip>
  4858. </div>
  4859. <div
  4860. class="group_work"
  4861. v-if="
  4862. g.works &&
  4863. g.works.length &&
  4864. g.works[toolIndex].length
  4865. "
  4866. >
  4867. <div
  4868. class="works"
  4869. style="
  4870. width: 200px;
  4871. height: 140px;
  4872. margin: 10px 10px 10px 0;
  4873. border-radius: 15px;
  4874. box-shadow: 0 0 6px 1px #dfdada;
  4875. "
  4876. v-for="(w, wIndex) in g.works[toolIndex]"
  4877. :key="wIndex"
  4878. :class="w.type == 1 ? 'isTypeOne' : ''"
  4879. >
  4880. <div class="workImg">
  4881. <img
  4882. :src="w.works"
  4883. @click="previewImg(w.works,w)"
  4884. alt
  4885. />
  4886. <div
  4887. class="answerScore"
  4888. v-if="w.score"
  4889. @click.stop="openScore(w)"
  4890. :class="{
  4891. rightW:
  4892. w.userid == userid ||
  4893. tType == 1 ||
  4894. tType == 4,
  4895. }"
  4896. >
  4897. {{ JSON.parse(w.score).wScore }}分
  4898. </div>
  4899. <div
  4900. class="answerScore"
  4901. @click.stop="openScore(w)"
  4902. v-else-if="courseDetail.userid == userid"
  4903. :class="{
  4904. rightW:
  4905. w.userid == userid ||
  4906. tType == 1 ||
  4907. tType == 4,
  4908. }"
  4909. >
  4910. 评分
  4911. </div>
  4912. <img
  4913. class="deleteImg"
  4914. src="../../assets/deleteworks.png"
  4915. v-if="
  4916. w.userid == userid || tType == 1 || tType == 4
  4917. "
  4918. @click.stop="deleteWorks(w.wid)"
  4919. alt
  4920. />
  4921. </div>
  4922. <div class="comment" style="min-width: 200px">
  4923. <div class="worksName">
  4924. <div>{{ w.sName }}</div>
  4925. </div>
  4926. <div class="commentList">
  4927. <div class="commentList">
  4928. <div
  4929. class="commentImg"
  4930. @click="
  4931. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4932. "
  4933. >
  4934. <img
  4935. :src="w.isLikes == true ? likes : noLikes"
  4936. alt=""
  4937. />
  4938. </div>
  4939. <div>{{ w.likesCount }}</div>
  4940. </div>
  4941. <div
  4942. class="commentList"
  4943. style="margin-right: 15px"
  4944. >
  4945. <div
  4946. class="commentImg"
  4947. @click="
  4948. commentOther(
  4949. w,
  4950. toolIndex,
  4951. wIndex,
  4952. null,
  4953. g.id
  4954. )
  4955. "
  4956. >
  4957. <img
  4958. src="../../assets/icon/comment/comment.png"
  4959. alt=""
  4960. />
  4961. </div>
  4962. <div>{{ w.commentCount }}</div>
  4963. </div>
  4964. </div>
  4965. </div>
  4966. </div>
  4967. </div>
  4968. <div class="group_work" v-else>暂无提交作业</div>
  4969. </div>
  4970. </div>
  4971. <div
  4972. :id="'tool-' + toolIndex"
  4973. :style="{
  4974. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4975. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4976. }"
  4977. class="worksDetailBox"
  4978. v-if="
  4979. worksStudent.length &&
  4980. worksStudent[toolIndex].length > 0
  4981. "
  4982. >
  4983. <div
  4984. class="works"
  4985. style="
  4986. width: 200px;
  4987. height: 140px;
  4988. margin: 10px 10px 10px 0;
  4989. border-radius: 15px;
  4990. box-shadow: 0 0 6px 1px #dfdada;
  4991. "
  4992. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4993. :key="wIndex"
  4994. >
  4995. <!-- @click="previewImg(w.works)" -->
  4996. <div class="workImg">
  4997. <img
  4998. :src="w.works"
  4999. @click="previewImg(w.works,w)"
  5000. alt
  5001. />
  5002. <div
  5003. class="answerScore"
  5004. v-if="w.score"
  5005. @click.stop="openScore(w)"
  5006. :class="{
  5007. rightW:
  5008. w.userid == userid || tType == 1 || tType == 4,
  5009. }"
  5010. >
  5011. {{ JSON.parse(w.score).wScore }}分
  5012. </div>
  5013. <div
  5014. class="answerScore"
  5015. @click.stop="openScore(w)"
  5016. v-else-if="courseDetail.userid == userid"
  5017. :class="{
  5018. rightW:
  5019. w.userid == userid || tType == 1 || tType == 4,
  5020. }"
  5021. >
  5022. 评分
  5023. </div>
  5024. <img
  5025. class="deleteImg"
  5026. src="../../assets/deleteworks.png"
  5027. v-if="
  5028. w.userid == userid || tType == 1 || tType == 4
  5029. "
  5030. @click.stop="deleteWorks(w.wid)"
  5031. alt
  5032. />
  5033. </div>
  5034. <div class="comment" style="min-width: 200px">
  5035. <div class="worksName">
  5036. <div>{{ w.sName }}</div>
  5037. </div>
  5038. <div class="commentList">
  5039. <div class="commentList">
  5040. <div
  5041. class="commentImg"
  5042. @click="
  5043. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5044. "
  5045. >
  5046. <img
  5047. :src="w.isLikes == true ? likes : noLikes"
  5048. alt=""
  5049. />
  5050. </div>
  5051. <div>{{ w.likesCount }}</div>
  5052. </div>
  5053. <div class="commentList" style="margin-right: 15px">
  5054. <div
  5055. class="commentImg"
  5056. @click="commentOther(w, toolIndex, wIndex)"
  5057. >
  5058. <img
  5059. src="../../assets/icon/comment/comment.png"
  5060. alt=""
  5061. />
  5062. </div>
  5063. <div>{{ w.commentCount }}</div>
  5064. </div>
  5065. </div>
  5066. </div>
  5067. </div>
  5068. </div>
  5069. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5070. 未提交
  5071. </div>
  5072. <div
  5073. class="noWorksS"
  5074. v-if="noWorksS && noWorksS[toolIndex].length"
  5075. >
  5076. <div
  5077. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5078. :key="sIndex"
  5079. class="noWorksName"
  5080. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5081. >
  5082. <el-tooltip effect="dark" :content="s.student" placement="top">
  5083. <span>{{ s.student }}</span>
  5084. </el-tooltip>
  5085. </div>
  5086. </div>
  5087. </div>
  5088. <div
  5089. v-if="
  5090. tType &&
  5091. ((tType == 2 && sIsOpen == true) ||
  5092. tType == 1 ||
  5093. tType == 4) &&
  5094. tool.tool.indexOf(6) != -1
  5095. "
  5096. class="worksBox"
  5097. >
  5098. <div
  5099. class="zuoyeYulan"
  5100. v-if="
  5101. (worksStudent.length &&
  5102. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5103. "
  5104. >
  5105. <div class="worksTop">
  5106. <div>作业预览</div>
  5107. <div
  5108. class="corOpen"
  5109. @click="contract(toolIndex)"
  5110. v-if="
  5111. (isCloseList[toolIndex].isCloseBoolean) &&
  5112. isCloseList[toolIndex].isClose == 0
  5113. "
  5114. >
  5115. 折叠
  5116. </div>
  5117. <div
  5118. class="corOpen"
  5119. @click="contract(toolIndex)"
  5120. v-if="isCloseList[toolIndex].isClose == 1"
  5121. >
  5122. 展开
  5123. </div>
  5124. </div>
  5125. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5126. </div>
  5127. <div
  5128. class="group_workBox"
  5129. v-for="(g, gindex) in courseGroup.group"
  5130. :key="gindex"
  5131. >
  5132. <div class="group_box">
  5133. <div class="group_title">
  5134. <el-tooltip
  5135. class="item"
  5136. effect="light"
  5137. :content="g.name"
  5138. placement="top"
  5139. >
  5140. <div class="group_name">{{ g.name }}</div>
  5141. </el-tooltip>
  5142. </div>
  5143. <div
  5144. class="group_work"
  5145. v-if="
  5146. g.works &&
  5147. g.works.length &&
  5148. g.works[toolIndex].length
  5149. "
  5150. >
  5151. <div
  5152. class="works"
  5153. style="
  5154. width: 200px;
  5155. height: 140px;
  5156. margin: 10px 10px 10px 0;
  5157. border-radius: 15px;
  5158. box-shadow: 0 0 6px 1px #dfdada;
  5159. "
  5160. v-for="(w, wIndex) in g.works[toolIndex]"
  5161. :key="wIndex"
  5162. :class="w.type == 1 ? 'isTypeOne' : ''"
  5163. >
  5164. <div class="workImg">
  5165. <img
  5166. :src="w.works"
  5167. @click="previewImg(w.works,w)"
  5168. alt
  5169. />
  5170. <div
  5171. class="answerScore"
  5172. v-if="w.score"
  5173. @click.stop="openScore(w)"
  5174. :class="{
  5175. rightW:
  5176. w.userid == userid ||
  5177. tType == 1 ||
  5178. tType == 4,
  5179. }"
  5180. >
  5181. {{ JSON.parse(w.score).wScore }}分
  5182. </div>
  5183. <div
  5184. class="answerScore"
  5185. @click.stop="openScore(w)"
  5186. v-else-if="courseDetail.userid == userid"
  5187. :class="{
  5188. rightW:
  5189. w.userid == userid ||
  5190. tType == 1 ||
  5191. tType == 4,
  5192. }"
  5193. >
  5194. 评分
  5195. </div>
  5196. <img
  5197. class="deleteImg"
  5198. src="../../assets/deleteworks.png"
  5199. v-if="
  5200. w.userid == userid || tType == 1 || tType == 4
  5201. "
  5202. @click.stop="deleteWorks(w.wid)"
  5203. alt
  5204. />
  5205. </div>
  5206. <div class="comment" style="min-width: 200px">
  5207. <div class="worksName">
  5208. <div>{{ w.sName }}</div>
  5209. </div>
  5210. <div class="commentList">
  5211. <div class="commentList">
  5212. <div
  5213. class="commentImg"
  5214. @click="
  5215. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5216. "
  5217. >
  5218. <img
  5219. :src="w.isLikes == true ? likes : noLikes"
  5220. alt=""
  5221. />
  5222. </div>
  5223. <div>{{ w.likesCount }}</div>
  5224. </div>
  5225. <div
  5226. class="commentList"
  5227. style="margin-right: 15px"
  5228. >
  5229. <div
  5230. class="commentImg"
  5231. @click="
  5232. commentOther(
  5233. w,
  5234. toolIndex,
  5235. wIndex,
  5236. null,
  5237. g.id
  5238. )
  5239. "
  5240. >
  5241. <img
  5242. src="../../assets/icon/comment/comment.png"
  5243. alt=""
  5244. />
  5245. </div>
  5246. <div>{{ w.commentCount }}</div>
  5247. </div>
  5248. </div>
  5249. </div>
  5250. </div>
  5251. </div>
  5252. <div class="group_work" v-else>暂无提交作业</div>
  5253. </div>
  5254. </div>
  5255. <div
  5256. :id="'tool-' + toolIndex"
  5257. :style="{
  5258. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5259. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5260. }"
  5261. class="worksDetailBox"
  5262. v-if="
  5263. worksStudent.length &&
  5264. worksStudent[toolIndex].length > 0
  5265. "
  5266. >
  5267. <div
  5268. class="works"
  5269. style="
  5270. width: 200px;
  5271. height: 140px;
  5272. margin: 10px 10px 10px 0;
  5273. border-radius: 15px;
  5274. box-shadow: 0 0 6px 1px #dfdada;
  5275. "
  5276. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5277. :key="wIndex"
  5278. >
  5279. <!-- @click="previewImg(w.works)" -->
  5280. <div class="workImg">
  5281. <img
  5282. :src="w.works"
  5283. @click="previewImg(w.works,w)"
  5284. alt
  5285. />
  5286. <div
  5287. class="answerScore"
  5288. v-if="w.score"
  5289. @click.stop="openScore(w)"
  5290. :class="{
  5291. rightW:
  5292. w.userid == userid || tType == 1 || tType == 4,
  5293. }"
  5294. >
  5295. {{ JSON.parse(w.score).wScore }}分
  5296. </div>
  5297. <div
  5298. class="answerScore"
  5299. @click.stop="openScore(w)"
  5300. v-else-if="courseDetail.userid == userid"
  5301. :class="{
  5302. rightW:
  5303. w.userid == userid || tType == 1 || tType == 4,
  5304. }"
  5305. >
  5306. 评分
  5307. </div>
  5308. <img
  5309. class="deleteImg"
  5310. src="../../assets/deleteworks.png"
  5311. v-if="
  5312. w.userid == userid || tType == 1 || tType == 4
  5313. "
  5314. @click.stop="deleteWorks(w.wid)"
  5315. alt
  5316. />
  5317. </div>
  5318. <div class="comment" style="min-width: 200px">
  5319. <div class="worksName">
  5320. <div>{{ w.sName }}</div>
  5321. </div>
  5322. <div class="commentList">
  5323. <div class="commentList">
  5324. <div
  5325. class="commentImg"
  5326. @click="
  5327. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5328. "
  5329. >
  5330. <img
  5331. :src="w.isLikes == true ? likes : noLikes"
  5332. alt=""
  5333. />
  5334. </div>
  5335. <div>{{ w.likesCount }}</div>
  5336. </div>
  5337. <div class="commentList" style="margin-right: 15px">
  5338. <div
  5339. class="commentImg"
  5340. @click="commentOther(w, toolIndex, wIndex)"
  5341. >
  5342. <img
  5343. src="../../assets/icon/comment/comment.png"
  5344. alt=""
  5345. />
  5346. </div>
  5347. <div>{{ w.commentCount }}</div>
  5348. </div>
  5349. </div>
  5350. </div>
  5351. </div>
  5352. </div>
  5353. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5354. 未提交
  5355. </div>
  5356. <div
  5357. class="noWorksS"
  5358. v-if="noWorksS && noWorksS[toolIndex].length"
  5359. >
  5360. <div
  5361. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5362. :key="sIndex"
  5363. class="noWorksName"
  5364. >
  5365. <el-tooltip effect="dark" :content="s.student" placement="top">
  5366. <span>{{ s.student }}</span>
  5367. </el-tooltip>
  5368. </div>
  5369. </div>
  5370. </div>
  5371. <div
  5372. v-if="
  5373. tType &&
  5374. ((tType == 2 && sIsOpen == true) ||
  5375. tType == 1 ||
  5376. tType == 4) &&
  5377. tool.tool.indexOf(7) != -1
  5378. "
  5379. class="worksBox"
  5380. >
  5381. <div
  5382. class="zuoyeYulan"
  5383. v-if="
  5384. (worksStudent.length &&
  5385. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5386. "
  5387. >
  5388. <div class="worksTop">
  5389. <div>作业预览</div>
  5390. <div
  5391. class="corOpen"
  5392. @click="contract(toolIndex)"
  5393. v-if="
  5394. (isCloseList[toolIndex].isCloseBoolean) &&
  5395. isCloseList[toolIndex].isClose == 0
  5396. "
  5397. >
  5398. 折叠
  5399. </div>
  5400. <div
  5401. class="corOpen"
  5402. @click="contract(toolIndex)"
  5403. v-if="isCloseList[toolIndex].isClose == 1"
  5404. >
  5405. 展开
  5406. </div>
  5407. </div>
  5408. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5409. </div>
  5410. <div
  5411. class="group_workBox"
  5412. v-for="(g, gindex) in courseGroup.group"
  5413. :key="gindex"
  5414. >
  5415. <div class="group_box">
  5416. <div class="group_title">
  5417. <el-tooltip
  5418. class="item"
  5419. effect="light"
  5420. :content="g.name"
  5421. placement="top"
  5422. >
  5423. <div class="group_name">{{ g.name }}</div>
  5424. </el-tooltip>
  5425. </div>
  5426. <div
  5427. class="group_work"
  5428. v-if="
  5429. g.works &&
  5430. g.works.length &&
  5431. g.works[toolIndex].length
  5432. "
  5433. >
  5434. <div
  5435. class="works"
  5436. style="
  5437. width: 200px;
  5438. height: 140px;
  5439. margin: 10px 10px 10px 0;
  5440. border-radius: 15px;
  5441. box-shadow: 0 0 6px 1px #dfdada;
  5442. "
  5443. v-for="(w, wIndex) in g.works[toolIndex]"
  5444. :key="wIndex"
  5445. :class="w.type == 1 ? 'isTypeOne' : ''"
  5446. >
  5447. <div class="workImg">
  5448. <img
  5449. :src="w.works"
  5450. @click="previewImg(w.works,w)"
  5451. alt
  5452. />
  5453. <div
  5454. class="answerScore"
  5455. v-if="w.score"
  5456. @click.stop="openScore(w)"
  5457. :class="{
  5458. rightW:
  5459. w.userid == userid ||
  5460. tType == 1 ||
  5461. tType == 4,
  5462. }"
  5463. >
  5464. {{ JSON.parse(w.score).wScore }}分
  5465. </div>
  5466. <div
  5467. class="answerScore"
  5468. @click.stop="openScore(w)"
  5469. v-else-if="courseDetail.userid == userid"
  5470. :class="{
  5471. rightW:
  5472. w.userid == userid ||
  5473. tType == 1 ||
  5474. tType == 4,
  5475. }"
  5476. >
  5477. 评分
  5478. </div>
  5479. <img
  5480. class="deleteImg"
  5481. src="../../assets/deleteworks.png"
  5482. v-if="
  5483. w.userid == userid || tType == 1 || tType == 4
  5484. "
  5485. @click.stop="deleteWorks(w.wid)"
  5486. alt
  5487. />
  5488. </div>
  5489. <div class="comment" style="min-width: 200px">
  5490. <div class="worksName">
  5491. <div>{{ w.sName }}</div>
  5492. </div>
  5493. <div class="commentList">
  5494. <div class="commentList">
  5495. <div
  5496. class="commentImg"
  5497. @click="
  5498. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5499. "
  5500. >
  5501. <img
  5502. :src="w.isLikes == true ? likes : noLikes"
  5503. alt=""
  5504. />
  5505. </div>
  5506. <div>{{ w.likesCount }}</div>
  5507. </div>
  5508. <div
  5509. class="commentList"
  5510. style="margin-right: 15px"
  5511. >
  5512. <div
  5513. class="commentImg"
  5514. @click="
  5515. commentOther(
  5516. w,
  5517. toolIndex,
  5518. wIndex,
  5519. null,
  5520. g.id
  5521. )
  5522. "
  5523. >
  5524. <img
  5525. src="../../assets/icon/comment/comment.png"
  5526. alt=""
  5527. />
  5528. </div>
  5529. <div>{{ w.commentCount }}</div>
  5530. </div>
  5531. </div>
  5532. </div>
  5533. </div>
  5534. </div>
  5535. <div class="group_work" v-else>暂无提交作业</div>
  5536. </div>
  5537. </div>
  5538. <div
  5539. :id="'tool-' + toolIndex"
  5540. :style="{
  5541. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5542. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5543. }"
  5544. class="worksDetailBox"
  5545. v-if="
  5546. worksStudent.length &&
  5547. worksStudent[toolIndex].length > 0
  5548. "
  5549. >
  5550. <div
  5551. class="works"
  5552. style="
  5553. width: 200px;
  5554. height: 140px;
  5555. margin: 10px 10px 10px 0;
  5556. border-radius: 15px;
  5557. box-shadow: 0 0 6px 1px #dfdada;
  5558. "
  5559. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5560. :key="wIndex"
  5561. >
  5562. <!-- @click="previewImg(w.works)" -->
  5563. <div class="workImg">
  5564. <img
  5565. :src="w.works"
  5566. @click="previewImg(w.works,w)"
  5567. alt
  5568. />
  5569. <div
  5570. class="answerScore"
  5571. v-if="w.score"
  5572. @click.stop="openScore(w)"
  5573. :class="{
  5574. rightW:
  5575. w.userid == userid || tType == 1 || tType == 4,
  5576. }"
  5577. >
  5578. {{ JSON.parse(w.score).wScore }}分
  5579. </div>
  5580. <div
  5581. class="answerScore"
  5582. @click.stop="openScore(w)"
  5583. v-else-if="courseDetail.userid == userid"
  5584. :class="{
  5585. rightW:
  5586. w.userid == userid || tType == 1 || tType == 4,
  5587. }"
  5588. >
  5589. 评分
  5590. </div>
  5591. <img
  5592. class="deleteImg"
  5593. src="../../assets/deleteworks.png"
  5594. v-if="
  5595. w.userid == userid || tType == 1 || tType == 4
  5596. "
  5597. @click.stop="deleteWorks(w.wid)"
  5598. alt
  5599. />
  5600. </div>
  5601. <div class="comment" style="min-width: 200px">
  5602. <div class="worksName">
  5603. <div>{{ w.sName }}</div>
  5604. </div>
  5605. <div class="commentList">
  5606. <div class="commentList">
  5607. <div
  5608. class="commentImg"
  5609. @click="
  5610. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5611. "
  5612. >
  5613. <img
  5614. :src="w.isLikes == true ? likes : noLikes"
  5615. alt=""
  5616. />
  5617. </div>
  5618. <div>{{ w.likesCount }}</div>
  5619. </div>
  5620. <div class="commentList" style="margin-right: 15px">
  5621. <div
  5622. class="commentImg"
  5623. @click="commentOther(w, toolIndex, wIndex)"
  5624. >
  5625. <img
  5626. src="../../assets/icon/comment/comment.png"
  5627. alt=""
  5628. />
  5629. </div>
  5630. <div>{{ w.commentCount }}</div>
  5631. </div>
  5632. </div>
  5633. </div>
  5634. </div>
  5635. </div>
  5636. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5637. 未提交
  5638. </div>
  5639. <div
  5640. class="noWorksS"
  5641. v-if="noWorksS && noWorksS[toolIndex].length"
  5642. >
  5643. <div
  5644. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5645. :key="sIndex"
  5646. class="noWorksName"
  5647. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5648. >
  5649. <el-tooltip effect="dark" :content="s.student" placement="top">
  5650. <span>{{ s.student }}</span>
  5651. </el-tooltip>
  5652. </div>
  5653. </div>
  5654. </div>
  5655. <div
  5656. v-if="
  5657. tType &&
  5658. ((tType == 2 && sIsOpen == true) ||
  5659. tType == 1 ||
  5660. tType == 4) &&
  5661. tool.tool.indexOf(26) != -1
  5662. "
  5663. class="worksBox"
  5664. >
  5665. <div
  5666. class="zuoyeYulan"
  5667. v-if="
  5668. worksStudent.length &&
  5669. worksStudent[toolIndex].length > 0
  5670. "
  5671. >
  5672. <div class="worksTop">
  5673. <div>作业预览</div>
  5674. <div
  5675. class="corOpen"
  5676. @click="contract(toolIndex)"
  5677. v-if="
  5678. (isCloseList[toolIndex].isCloseBoolean) &&
  5679. isCloseList[toolIndex].isClose == 0
  5680. "
  5681. >
  5682. 折叠
  5683. </div>
  5684. <div
  5685. class="corOpen"
  5686. @click="contract(toolIndex)"
  5687. v-if="isCloseList[toolIndex].isClose == 1"
  5688. >
  5689. 展开
  5690. </div>
  5691. </div>
  5692. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5693. </div>
  5694. <div
  5695. :id="'tool-' + toolIndex"
  5696. :style="{
  5697. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5698. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5699. }"
  5700. class="worksDetailBox"
  5701. v-if="
  5702. worksStudent.length &&
  5703. worksStudent[toolIndex].length > 0
  5704. "
  5705. >
  5706. <div
  5707. class="works"
  5708. style="width: 240px; height: 140px; overflow: hidden"
  5709. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5710. :key="wIndex"
  5711. :class="w.type == 1 ? 'isTypeOne' : ''"
  5712. >
  5713. <div class="workImg" v-if="w.type == 0">
  5714. <img
  5715. :src="w.works"
  5716. @click="previewImg(w.works,w)"
  5717. alt
  5718. />
  5719. <img
  5720. class="deleteImg"
  5721. src="../../assets/deleteworks.png"
  5722. v-if="
  5723. w.userid == userid || tType == 1 || tType == 4
  5724. "
  5725. @click.stop="deleteWorks(w.wid)"
  5726. alt
  5727. />
  5728. </div>
  5729. <div class="workImg" v-if="w.type == 1">
  5730. <img :src="word" @click="openFile(w.works)" alt />
  5731. <img
  5732. class="deleteImg"
  5733. src="../../assets/deleteworks.png"
  5734. v-if="
  5735. w.userid == userid || tType == 1 || tType == 4
  5736. "
  5737. @click.stop="deleteWorks(w.wid)"
  5738. alt
  5739. />
  5740. </div>
  5741. <div class="worksName">
  5742. <div>{{ w.sName }}</div>
  5743. </div>
  5744. </div>
  5745. </div>
  5746. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5747. 未提交
  5748. </div>
  5749. <div
  5750. class="noWorksS"
  5751. v-if="noWorksS && noWorksS[toolIndex].length"
  5752. >
  5753. <div
  5754. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5755. :key="sIndex"
  5756. class="noWorksName"
  5757. >
  5758. <el-tooltip effect="dark" :content="s.student" placement="top">
  5759. <span>{{ s.student }}</span>
  5760. </el-tooltip>
  5761. </div>
  5762. </div>
  5763. </div>
  5764. <div
  5765. v-if="
  5766. tType &&
  5767. ((tType == 2 && sIsOpen == true) ||
  5768. tType == 1 ||
  5769. tType == 4) &&
  5770. tool.tool.indexOf(40) != -1
  5771. "
  5772. class="worksBox"
  5773. >
  5774. <div
  5775. class="zuoyeYulan"
  5776. v-if="
  5777. worksStudent.length &&
  5778. worksStudent[toolIndex].length > 0
  5779. "
  5780. >
  5781. <div class="worksTop">
  5782. <div>作业预览</div>
  5783. <div
  5784. class="corOpen"
  5785. @click="contract(toolIndex)"
  5786. v-if="
  5787. (isCloseList[toolIndex].isCloseBoolean) &&
  5788. isCloseList[toolIndex].isClose == 0
  5789. "
  5790. >
  5791. 折叠
  5792. </div>
  5793. <div
  5794. class="corOpen"
  5795. @click="contract(toolIndex)"
  5796. v-if="isCloseList[toolIndex].isClose == 1"
  5797. >
  5798. 展开
  5799. </div>
  5800. </div>
  5801. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5802. </div>
  5803. <div
  5804. :id="'tool-' + toolIndex"
  5805. :style="{
  5806. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5807. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5808. }"
  5809. class="worksDetailBox"
  5810. v-if="
  5811. worksStudent.length &&
  5812. worksStudent[toolIndex].length > 0
  5813. "
  5814. >
  5815. <div
  5816. class="works"
  5817. style="
  5818. width: 200px;
  5819. height: 140px;
  5820. margin: 10px 10px 10px 0;
  5821. border-radius: 15px;
  5822. box-shadow: 0 0 6px 1px #dfdada;
  5823. "
  5824. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5825. :key="wIndex"
  5826. :class="w.type == 1 ? 'isTypeOne' : ''"
  5827. >
  5828. <div class="workImg">
  5829. <img
  5830. src="../../assets/icon/works/noImg.png"
  5831. @click="openPj(w.works, toolIndex)"
  5832. alt
  5833. />
  5834. <img
  5835. class="deleteImg"
  5836. src="../../assets/deleteworks.png"
  5837. v-if="
  5838. w.userid == userid || tType == 1 || tType == 4
  5839. "
  5840. @click.stop="deleteWorks(w.wid)"
  5841. alt
  5842. />
  5843. </div>
  5844. <div class="comment" style="min-width: 200px">
  5845. <div class="worksName">
  5846. <div>{{ w.sName }}</div>
  5847. </div>
  5848. <div class="commentList">
  5849. <div class="commentList">
  5850. <div
  5851. class="commentImg"
  5852. @click="
  5853. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5854. "
  5855. >
  5856. <img
  5857. :src="w.isLikes == true ? likes : noLikes"
  5858. alt=""
  5859. />
  5860. </div>
  5861. <div>{{ w.likesCount }}</div>
  5862. </div>
  5863. <div class="commentList" style="margin-right: 15px">
  5864. <div
  5865. class="commentImg"
  5866. @click="commentOther(w, toolIndex, wIndex)"
  5867. >
  5868. <img
  5869. src="../../assets/icon/comment/comment.png"
  5870. alt=""
  5871. />
  5872. </div>
  5873. <div>{{ w.commentCount }}</div>
  5874. </div>
  5875. </div>
  5876. </div>
  5877. </div>
  5878. </div>
  5879. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5880. 未提交
  5881. </div>
  5882. <div
  5883. class="noWorksS"
  5884. v-if="noWorksS && noWorksS[toolIndex].length"
  5885. >
  5886. <div
  5887. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5888. :key="sIndex"
  5889. class="noWorksName"
  5890. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5891. >
  5892. <el-tooltip effect="dark" :content="s.student" placement="top">
  5893. <span>{{ s.student }}</span>
  5894. </el-tooltip>
  5895. </div>
  5896. </div>
  5897. </div>
  5898. <div
  5899. v-if="
  5900. tType &&
  5901. tType == 2 &&
  5902. !sIsOpen &&
  5903. tool.tool.indexOf(40) != -1
  5904. "
  5905. class="worksBox"
  5906. >
  5907. <div
  5908. class="zuoyeYulan"
  5909. v-if="workStudent[toolIndex].length > 0"
  5910. >
  5911. <span class="worksTitle">作业预览</span>
  5912. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5913. </div>
  5914. <div
  5915. class="worksDetailBox"
  5916. v-if="workStudent[toolIndex].length > 0"
  5917. >
  5918. <div
  5919. class="works"
  5920. style="
  5921. width: 200px;
  5922. height: 140px;
  5923. margin: 10px 10px 10px 0;
  5924. "
  5925. v-for="(w, wIndex) in workStudent[toolIndex]"
  5926. :key="wIndex"
  5927. >
  5928. <div class="workImg">
  5929. <img
  5930. src="../../assets/icon/works/noImg.png"
  5931. @click="openPj(w.works, toolIndex)"
  5932. alt
  5933. />
  5934. <img
  5935. class="deleteImg"
  5936. src="../../assets/deleteworks.png"
  5937. v-if="
  5938. w.userid == userid || tType == 1 || tType == 4
  5939. "
  5940. @click.stop="deleteWorks(w.wid)"
  5941. alt
  5942. />
  5943. </div>
  5944. <div class="worksName">
  5945. <div>{{ w.sName }}</div>
  5946. </div>
  5947. </div>
  5948. </div>
  5949. </div>
  5950. <div
  5951. v-if="
  5952. tType &&
  5953. ((tType == 2 && sIsOpen == true) ||
  5954. tType == 1 ||
  5955. tType == 4) &&
  5956. tool.tool.indexOf(41) != -1
  5957. "
  5958. >
  5959. <AnswerData2
  5960. v-if="
  5961. worksStudent.length &&
  5962. worksStudent[toolIndex].length > 0
  5963. "
  5964. :problemJson="tool.selectJson.answer"
  5965. :people="worksStudent[toolIndex]"
  5966. ></AnswerData2>
  5967. </div>
  5968. <div
  5969. v-if="
  5970. tType &&
  5971. ((tType == 2 && sIsOpen == true) ||
  5972. tType == 1 ||
  5973. tType == 4) &&
  5974. tool.tool.indexOf(41) != -1
  5975. "
  5976. class="worksBox"
  5977. >
  5978. <div
  5979. class="zuoyeYulan"
  5980. v-if="
  5981. worksStudent.length &&
  5982. worksStudent[toolIndex].length > 0
  5983. "
  5984. >
  5985. <div class="worksTop">
  5986. <div>作业预览</div>
  5987. <div
  5988. class="corOpen"
  5989. @click="contract(toolIndex)"
  5990. v-if="
  5991. (isCloseList[toolIndex].isCloseBoolean) &&
  5992. isCloseList[toolIndex].isClose == 0
  5993. "
  5994. >
  5995. 折叠
  5996. </div>
  5997. <div
  5998. class="corOpen"
  5999. @click="contract(toolIndex)"
  6000. v-if="isCloseList[toolIndex].isClose == 1"
  6001. >
  6002. 展开
  6003. </div>
  6004. </div>
  6005. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6006. </div>
  6007. <div
  6008. :id="'tool-' + toolIndex"
  6009. :style="{
  6010. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6011. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6012. }"
  6013. class="worksDetailBox"
  6014. v-if="
  6015. worksStudent.length &&
  6016. worksStudent[toolIndex].length > 0
  6017. "
  6018. >
  6019. <div
  6020. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6021. :key="wIndex"
  6022. class="isWorksName2"
  6023. @click="openXz(w, toolIndex)"
  6024. >
  6025. {{ w.sName }}
  6026. <img
  6027. class="deleteImg deleteImg2"
  6028. src="../../assets/deleteworks.png"
  6029. v-if="w.userid == userid || tType == 1 || tType == 4"
  6030. @click.stop="deleteWorks(w.wid)"
  6031. alt
  6032. />
  6033. </div>
  6034. <!-- <div
  6035. class="works"
  6036. style="
  6037. width: 200px;
  6038. height: 140px;
  6039. margin: 10px 10px 10px 0;
  6040. border-radius: 15px;
  6041. box-shadow: 0 0 6px 1px #dfdada;
  6042. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6043. :class="w.type == 5 ? 'isTypeOne' : ''">
  6044. <div class="workImg">
  6045. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6046. </div>
  6047. <div class="worksName">
  6048. <div>{{ w.sName }}</div>
  6049. </div>
  6050. </div> -->
  6051. </div>
  6052. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6053. 未提交
  6054. </div>
  6055. <div
  6056. class="noWorksS"
  6057. v-if="noWorksS && noWorksS[toolIndex].length"
  6058. >
  6059. <div
  6060. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6061. :key="sIndex"
  6062. class="noWorksName"
  6063. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6064. >
  6065. <el-tooltip effect="dark" :content="s.student" placement="top">
  6066. <span>{{ s.student }}</span>
  6067. </el-tooltip>
  6068. </div>
  6069. </div>
  6070. </div>
  6071. <div
  6072. v-if="
  6073. tType &&
  6074. tType == 2 &&
  6075. !sIsOpen &&
  6076. tool.tool.indexOf(41) != -1
  6077. "
  6078. class="worksBox"
  6079. >
  6080. <div
  6081. class="zuoyeYulan"
  6082. v-if="workStudent[toolIndex].length > 0"
  6083. >
  6084. <span class="worksTitle">作业预览</span>
  6085. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6086. </div>
  6087. <div
  6088. class="worksDetailBox"
  6089. v-if="workStudent[toolIndex].length > 0"
  6090. >
  6091. <div
  6092. class="works"
  6093. style="
  6094. width: 200px;
  6095. height: 140px;
  6096. margin: 10px 10px 10px 0;
  6097. "
  6098. v-for="(w, wIndex) in workStudent[toolIndex]"
  6099. :key="wIndex"
  6100. >
  6101. <div class="workImg">
  6102. <img
  6103. src="../../assets/icon/works/noImg.png"
  6104. @click="openXz(w, toolIndex)"
  6105. alt
  6106. />
  6107. <img
  6108. class="deleteImg"
  6109. src="../../assets/deleteworks.png"
  6110. v-if="
  6111. w.userid == userid || tType == 1 || tType == 4
  6112. "
  6113. @click.stop="deleteWorks(w.wid)"
  6114. alt
  6115. />
  6116. </div>
  6117. <div class="worksName">
  6118. <div>{{ w.sName }}</div>
  6119. </div>
  6120. </div>
  6121. </div>
  6122. </div>
  6123. <div v-if="false" class="xuan_right_box">
  6124. <div
  6125. class="tool_right_box"
  6126. v-for="(item, index) in tool.sentenceList"
  6127. :key="index"
  6128. >
  6129. <div>
  6130. <span
  6131. style="word-break: break-all; white-space: normal"
  6132. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6133. >
  6134. </div>
  6135. <div class="right_box_xuan">
  6136. <span>正确率</span>
  6137. <span>{{
  6138. (checkJson[toolIndex][index].right
  6139. ? checkJson[toolIndex][index].right
  6140. : 0) + "%"
  6141. }}</span>
  6142. </div>
  6143. <div class="right_box_xuan">
  6144. <span>答对人数</span>
  6145. <span>{{
  6146. checkJson[toolIndex][index].rightPerson.length
  6147. }}</span>
  6148. </div>
  6149. </div>
  6150. </div>
  6151. <div
  6152. v-if="
  6153. tType &&
  6154. ((tType == 2 && sIsOpen == true) ||
  6155. tType == 1 ||
  6156. tType == 4) &&
  6157. tool.tool.indexOf(47) != -1
  6158. "
  6159. >
  6160. <AnswerData
  6161. v-if="
  6162. checkJson[toolIndex].length &&
  6163. (tool.sentenceList || tool.sentenceList.length > 0)
  6164. "
  6165. :people="checkJson[toolIndex]"
  6166. ></AnswerData>
  6167. </div>
  6168. <div
  6169. v-if="
  6170. tType &&
  6171. tType == 2 &&
  6172. !sIsOpen &&
  6173. tool.tool.indexOf(47) != -1
  6174. "
  6175. class="worksBox"
  6176. >
  6177. <div
  6178. class="zuoyeYulan"
  6179. v-if="workStudent[toolIndex].length > 0"
  6180. >
  6181. <span class="worksTitle">作业预览</span>
  6182. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6183. </div>
  6184. <div
  6185. class="worksDetailBox"
  6186. v-if="workStudent[toolIndex].length > 0"
  6187. >
  6188. <div
  6189. class="works"
  6190. style="
  6191. width: 200px;
  6192. height: 140px;
  6193. margin: 10px 10px 10px 0;
  6194. "
  6195. v-for="(w, wIndex) in workStudent[toolIndex]"
  6196. :key="wIndex"
  6197. >
  6198. <!-- @click="openXz(w, toolIndex)" -->
  6199. <div class="workImg" @click="openSen(w, toolIndex)">
  6200. <img src="../../assets/icon/works/noImg.png" alt />
  6201. <img
  6202. class="deleteImg"
  6203. src="../../assets/deleteworks.png"
  6204. v-if="
  6205. w.userid == userid || tType == 1 || tType == 4
  6206. "
  6207. @click.stop="deleteWorks(w.wid)"
  6208. alt
  6209. />
  6210. </div>
  6211. <div class="worksName">
  6212. <div>
  6213. {{ w.sName }}
  6214. </div>
  6215. </div>
  6216. </div>
  6217. </div>
  6218. </div>
  6219. <div
  6220. v-if="
  6221. tType &&
  6222. ((tType == 2 && sIsOpen == true) ||
  6223. tType == 1 ||
  6224. tType == 4) &&
  6225. tool.tool.indexOf(47) != -1
  6226. "
  6227. class="worksBox"
  6228. >
  6229. <div
  6230. class="zuoyeYulan"
  6231. v-if="
  6232. worksStudent.length &&
  6233. worksStudent[toolIndex].length > 0
  6234. "
  6235. >
  6236. <div class="worksTop">
  6237. <div>作业预览</div>
  6238. <div
  6239. class="corOpen"
  6240. @click="contract(toolIndex)"
  6241. v-if="
  6242. (isCloseList[toolIndex].isCloseBoolean) &&
  6243. isCloseList[toolIndex].isClose == 0
  6244. "
  6245. >
  6246. 折叠
  6247. </div>
  6248. <div
  6249. class="corOpen"
  6250. @click="contract(toolIndex)"
  6251. v-if="isCloseList[toolIndex].isClose == 1"
  6252. >
  6253. 展开
  6254. </div>
  6255. </div>
  6256. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6257. </div>
  6258. <div
  6259. :id="'tool-' + toolIndex"
  6260. :style="{
  6261. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6262. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6263. }"
  6264. class="worksDetailBox"
  6265. v-if="
  6266. worksStudent.length &&
  6267. worksStudent[toolIndex].length > 0
  6268. "
  6269. >
  6270. <!-- @click="openXz(w, toolIndex)" -->
  6271. <div
  6272. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6273. :key="wIndex"
  6274. class="isWorksName2"
  6275. @click="openSen(w, toolIndex)"
  6276. >
  6277. {{ w.sName }}
  6278. <img
  6279. class="deleteImg deleteImg2"
  6280. src="../../assets/deleteworks.png"
  6281. v-if="w.userid == userid || tType == 1 || tType == 4"
  6282. @click.stop="deleteWorks(w.wid)"
  6283. alt
  6284. />
  6285. </div>
  6286. </div>
  6287. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6288. 未提交
  6289. </div>
  6290. <div
  6291. class="noWorksS"
  6292. v-if="noWorksS && noWorksS[toolIndex].length"
  6293. >
  6294. <div
  6295. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6296. :key="sIndex"
  6297. class="noWorksName"
  6298. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6299. >
  6300. <el-tooltip effect="dark" :content="s.student" placement="top">
  6301. <span>{{ s.student }}</span>
  6302. </el-tooltip>
  6303. </div>
  6304. </div>
  6305. </div>
  6306. <div
  6307. v-if="
  6308. tType &&
  6309. ((tType == 2 && sIsOpen == true) ||
  6310. tType == 1 ||
  6311. tType == 4) &&
  6312. tool.tool.indexOf(48) != -1
  6313. "
  6314. class="worksBox"
  6315. >
  6316. <div
  6317. class="zuoyeYulan"
  6318. v-if="
  6319. worksStudent.length &&
  6320. worksStudent[toolIndex].length > 0
  6321. "
  6322. >
  6323. <div class="worksTop">
  6324. <div>作业预览</div>
  6325. <div
  6326. class="corOpen"
  6327. @click="contract(toolIndex)"
  6328. v-if="
  6329. (isCloseList[toolIndex].isCloseBoolean) &&
  6330. isCloseList[toolIndex].isClose == 0
  6331. "
  6332. >
  6333. 折叠
  6334. </div>
  6335. <div
  6336. class="corOpen"
  6337. @click="contract(toolIndex)"
  6338. v-if="isCloseList[toolIndex].isClose == 1"
  6339. >
  6340. 展开
  6341. </div>
  6342. </div>
  6343. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6344. </div>
  6345. <div
  6346. :id="'tool-' + toolIndex"
  6347. :style="{
  6348. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6349. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6350. }"
  6351. class="worksDetailBox"
  6352. v-if="
  6353. worksStudent.length &&
  6354. worksStudent[toolIndex].length > 0
  6355. "
  6356. >
  6357. <div
  6358. class="works"
  6359. style="
  6360. width: 200px;
  6361. height: 140px;
  6362. margin: 10px 10px 10px 0;
  6363. border-radius: 15px;
  6364. box-shadow: 0 0 6px 1px #dfdada;
  6365. "
  6366. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6367. :key="wIndex"
  6368. :class="w.type == 1 ? 'isTypeOne' : ''"
  6369. >
  6370. <div class="workImg">
  6371. <img :src="word" @click="openTable(w)" alt />
  6372. <!-- @click="openFile(w.works)" -->
  6373. <div
  6374. class="answerScore"
  6375. v-if="w.score"
  6376. @click.stop="openScore(w)"
  6377. :class="{
  6378. rightW:
  6379. w.userid == userid ||
  6380. tType == 1 ||
  6381. tType == 4 ||
  6382. w.ateacher == userid,
  6383. }"
  6384. >
  6385. {{ JSON.parse(w.score).wScore }}分
  6386. </div>
  6387. <div
  6388. class="answerScore"
  6389. @click.stop="openScore(w)"
  6390. v-else-if="courseDetail.userid == userid"
  6391. :class="{
  6392. rightW:
  6393. w.userid == userid ||
  6394. tType == 1 ||
  6395. tType == 4 ||
  6396. w.ateacher == userid,
  6397. }"
  6398. >
  6399. 评分
  6400. </div>
  6401. <img
  6402. class="deleteImg"
  6403. src="../../assets/deleteworks.png"
  6404. v-if="
  6405. w.userid == userid || tType == 1 || tType == 4
  6406. "
  6407. @click.stop="deleteWorks(w.wid)"
  6408. alt
  6409. />
  6410. </div>
  6411. <div class="comment" style="min-width: 200px">
  6412. <div class="worksName">
  6413. <div>{{ w.sName }}</div>
  6414. </div>
  6415. <div class="commentList">
  6416. <div class="commentList">
  6417. <div
  6418. class="commentImg"
  6419. @click="
  6420. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6421. "
  6422. >
  6423. <img
  6424. :src="w.isLikes == true ? likes : noLikes"
  6425. alt=""
  6426. />
  6427. </div>
  6428. <div>{{ w.likesCount }}</div>
  6429. </div>
  6430. <div class="commentList" style="margin-right: 15px">
  6431. <div
  6432. class="commentImg"
  6433. @click="commentOther(w, toolIndex, wIndex)"
  6434. >
  6435. <img
  6436. src="../../assets/icon/comment/comment.png"
  6437. alt=""
  6438. />
  6439. </div>
  6440. <div>{{ w.commentCount }}</div>
  6441. </div>
  6442. </div>
  6443. </div>
  6444. </div>
  6445. </div>
  6446. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6447. 未提交
  6448. </div>
  6449. <div
  6450. class="noWorksS"
  6451. v-if="noWorksS && noWorksS[toolIndex].length"
  6452. >
  6453. <div
  6454. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6455. :key="sIndex"
  6456. class="noWorksName"
  6457. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6458. >
  6459. <el-tooltip effect="dark" :content="s.student" placement="top">
  6460. <span>{{ s.student }}</span>
  6461. </el-tooltip>
  6462. </div>
  6463. </div>
  6464. </div>
  6465. <div
  6466. v-if="
  6467. tType &&
  6468. tType == 2 &&
  6469. !sIsOpen &&
  6470. tool.tool.indexOf(48) != -1
  6471. "
  6472. class="worksBox"
  6473. >
  6474. <div
  6475. class="zuoyeYulan"
  6476. v-if="workStudent[toolIndex].length > 0"
  6477. >
  6478. <span class="worksTitle">作业预览</span>
  6479. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6480. </div>
  6481. <div
  6482. class="worksDetailBox"
  6483. v-if="workStudent[toolIndex].length > 0"
  6484. >
  6485. <div
  6486. class="works"
  6487. style="
  6488. width: 200px;
  6489. height: 140px;
  6490. margin: 10px 10px 10px 0;
  6491. box-shadow: 0 0 6px 1px #dfdada;
  6492. "
  6493. v-for="(w, wIndex) in workStudent[toolIndex]"
  6494. :key="wIndex"
  6495. >
  6496. <div class="workImg">
  6497. <img :src="word" @click="openTable(w)" alt />
  6498. <div
  6499. class="answerScore"
  6500. v-if="w.score"
  6501. @click.stop="openScore(w)"
  6502. :class="{
  6503. rightW:
  6504. w.userid == userid || tType == 1 || tType == 4,
  6505. }"
  6506. >
  6507. {{ JSON.parse(w.score).wScore }}分
  6508. </div>
  6509. <div
  6510. class="answerScore"
  6511. @click.stop="openScore(w)"
  6512. v-else-if="courseDetail.userid == userid"
  6513. :class="{
  6514. rightW:
  6515. w.userid == userid || tType == 1 || tType == 4,
  6516. }"
  6517. >
  6518. 评分
  6519. </div>
  6520. <img
  6521. class="deleteImg"
  6522. src="../../assets/deleteworks.png"
  6523. v-if="
  6524. w.userid == userid || tType == 1 || tType == 4
  6525. "
  6526. @click.stop="deleteWorks(w.wid)"
  6527. alt
  6528. />
  6529. </div>
  6530. <div class="worksName">
  6531. <div>{{ w.sName }}</div>
  6532. </div>
  6533. </div>
  6534. </div>
  6535. </div>
  6536. <div
  6537. v-if="
  6538. tType &&
  6539. ((tType == 2 && sIsOpen == true) ||
  6540. tType == 1 ||
  6541. tType == 4) &&
  6542. tool.tool.indexOf(52) != -1
  6543. "
  6544. class="worksBox"
  6545. >
  6546. <div
  6547. class="zuoyeYulan"
  6548. v-if="
  6549. worksStudent.length &&
  6550. worksStudent[toolIndex].length > 0
  6551. "
  6552. >
  6553. <div class="worksTop">
  6554. <div>作业预览</div>
  6555. <div
  6556. class="corOpen"
  6557. @click="contract(toolIndex)"
  6558. v-if="
  6559. (isCloseList[toolIndex].isCloseBoolean) &&
  6560. isCloseList[toolIndex].isClose == 0
  6561. "
  6562. >
  6563. 折叠
  6564. </div>
  6565. <div
  6566. class="corOpen"
  6567. @click="contract(toolIndex)"
  6568. v-if="isCloseList[toolIndex].isClose == 1"
  6569. >
  6570. 展开
  6571. </div>
  6572. </div>
  6573. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6574. </div>
  6575. <div
  6576. :id="'tool-' + toolIndex"
  6577. :style="{
  6578. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6579. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6580. }"
  6581. class="worksDetailBox"
  6582. v-if="
  6583. worksStudent.length &&
  6584. worksStudent[toolIndex].length > 0
  6585. "
  6586. >
  6587. <div
  6588. class="works"
  6589. style="
  6590. width: 200px;
  6591. height: 140px;
  6592. margin: 10px 10px 10px 0;
  6593. border-radius: 15px;
  6594. box-shadow: 0 0 6px 1px #dfdada;
  6595. "
  6596. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6597. :key="wIndex"
  6598. :class="w.type == 1 ? 'isTypeOne' : ''"
  6599. >
  6600. <div class="workImg">
  6601. <img :src="word" @click="openWord(w)" alt />
  6602. <!-- @click="openFile(w.works)" -->
  6603. <div
  6604. class="answerScore"
  6605. v-if="w.score"
  6606. @click.stop="openScore(w)"
  6607. :class="{
  6608. rightW:
  6609. w.userid == userid ||
  6610. tType == 1 ||
  6611. tType == 4 ||
  6612. w.ateacher == userid,
  6613. }"
  6614. >
  6615. {{ JSON.parse(w.score).wScore }}分
  6616. </div>
  6617. <div
  6618. class="answerScore"
  6619. @click.stop="openScore(w)"
  6620. v-else-if="courseDetail.userid == userid"
  6621. :class="{
  6622. rightW:
  6623. w.userid == userid ||
  6624. tType == 1 ||
  6625. tType == 4 ||
  6626. w.ateacher == userid,
  6627. }"
  6628. >
  6629. 评分
  6630. </div>
  6631. <img
  6632. class="deleteImg"
  6633. src="../../assets/deleteworks.png"
  6634. v-if="
  6635. w.userid == userid || tType == 1 || tType == 4
  6636. "
  6637. @click.stop="deleteWorks(w.wid)"
  6638. alt
  6639. />
  6640. </div>
  6641. <div class="comment" style="min-width: 200px">
  6642. <div class="worksName">
  6643. <div>{{ w.sName }}</div>
  6644. </div>
  6645. <div class="commentList">
  6646. <div class="commentList">
  6647. <div
  6648. class="commentImg"
  6649. @click="
  6650. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6651. "
  6652. >
  6653. <img
  6654. :src="w.isLikes == true ? likes : noLikes"
  6655. alt=""
  6656. />
  6657. </div>
  6658. <div>{{ w.likesCount }}</div>
  6659. </div>
  6660. <div class="commentList" style="margin-right: 15px">
  6661. <div
  6662. class="commentImg"
  6663. @click="commentOther(w, toolIndex, wIndex)"
  6664. >
  6665. <img
  6666. src="../../assets/icon/comment/comment.png"
  6667. alt=""
  6668. />
  6669. </div>
  6670. <div>{{ w.commentCount }}</div>
  6671. </div>
  6672. </div>
  6673. </div>
  6674. </div>
  6675. </div>
  6676. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6677. 未提交
  6678. </div>
  6679. <div
  6680. class="noWorksS"
  6681. v-if="noWorksS && noWorksS[toolIndex].length"
  6682. >
  6683. <div
  6684. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6685. :key="sIndex"
  6686. class="noWorksName"
  6687. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6688. >
  6689. <el-tooltip effect="dark" :content="s.student" placement="top">
  6690. <span>{{ s.student }}</span>
  6691. </el-tooltip>
  6692. </div>
  6693. </div>
  6694. </div>
  6695. <div
  6696. v-if="
  6697. tType &&
  6698. tType == 2 &&
  6699. !sIsOpen &&
  6700. tool.tool.indexOf(52) != -1
  6701. "
  6702. class="worksBox"
  6703. >
  6704. <div
  6705. class="zuoyeYulan"
  6706. v-if="workStudent[toolIndex].length > 0"
  6707. >
  6708. <span class="worksTitle">作业预览</span>
  6709. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6710. </div>
  6711. <div
  6712. class="worksDetailBox"
  6713. v-if="workStudent[toolIndex].length > 0"
  6714. >
  6715. <div
  6716. class="works"
  6717. style="
  6718. width: 200px;
  6719. height: 140px;
  6720. margin: 10px 10px 10px 0;
  6721. box-shadow: 0 0 6px 1px #dfdada;
  6722. "
  6723. v-for="(w, wIndex) in workStudent[toolIndex]"
  6724. :key="wIndex"
  6725. >
  6726. <div class="workImg">
  6727. <img :src="word" @click="openWord(w)" alt />
  6728. <div
  6729. class="answerScore"
  6730. v-if="w.score"
  6731. @click.stop="openScore(w)"
  6732. :class="{
  6733. rightW:
  6734. w.userid == userid || tType == 1 || tType == 4,
  6735. }"
  6736. >
  6737. {{ JSON.parse(w.score).wScore }}分
  6738. </div>
  6739. <div
  6740. class="answerScore"
  6741. @click.stop="openScore(w)"
  6742. v-else-if="courseDetail.userid == userid"
  6743. :class="{
  6744. rightW:
  6745. w.userid == userid || tType == 1 || tType == 4,
  6746. }"
  6747. >
  6748. 评分
  6749. </div>
  6750. <img
  6751. class="deleteImg"
  6752. src="../../assets/deleteworks.png"
  6753. v-if="
  6754. w.userid == userid || tType == 1 || tType == 4
  6755. "
  6756. @click.stop="deleteWorks(w.wid)"
  6757. alt
  6758. />
  6759. </div>
  6760. <div class="worksName">
  6761. <div>{{ w.sName }}</div>
  6762. </div>
  6763. </div>
  6764. </div>
  6765. </div>
  6766. <div
  6767. v-if="tool.tool.indexOf(49) != -1"
  6768. class="xuan_right_box"
  6769. style="margin: 0 15px 0 25px; width: 93%"
  6770. >
  6771. <div
  6772. v-if="courseDetail.userid == userid"
  6773. style="
  6774. display: flex;
  6775. justify-content: flex-end;
  6776. margin-right: 10px;
  6777. "
  6778. >
  6779. <el-button
  6780. type="primary"
  6781. size="small"
  6782. @click="addTools(49, toolIndex, taskCount)"
  6783. >分组设置</el-button
  6784. >
  6785. </div>
  6786. <div
  6787. v-if="groupStudentUid[toolIndex]"
  6788. class="group_staic_box"
  6789. >
  6790. <div
  6791. v-for="(gp, gd) in tool.groupJson.group"
  6792. :key="gd"
  6793. class="group_staic"
  6794. >
  6795. <span> {{ gp.name }}</span>
  6796. <span>
  6797. 目前人数{{
  6798. groupStudentUid[toolIndex][gd].length
  6799. }}人</span
  6800. >
  6801. </div>
  6802. </div>
  6803. </div>
  6804. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6805. <div
  6806. class="zuoyeYulan"
  6807. v-if="
  6808. worksStudent.length &&
  6809. worksStudent[toolIndex].length > 0
  6810. "
  6811. >
  6812. <span class="worksTitle">作业预览</span>
  6813. </div>
  6814. <div>
  6815. <div
  6816. class="group_workBox"
  6817. v-for="(g, gindex) in tool.groupJson.group"
  6818. :key="gindex"
  6819. >
  6820. <div
  6821. class="group_box"
  6822. v-if="
  6823. groupStudentUid[toolIndex] &&
  6824. worksStudent[toolIndex] &&
  6825. (worksStudent[toolIndex][gindex].length ||
  6826. groupStudentUid[toolIndex][gindex].indexOf(
  6827. userid
  6828. ) != -1)
  6829. "
  6830. >
  6831. <div class="group_title">
  6832. <el-tooltip
  6833. class="item"
  6834. effect="light"
  6835. :content="g.name"
  6836. placement="top"
  6837. >
  6838. <div class="group_name">{{ g.name }}</div>
  6839. </el-tooltip>
  6840. <el-button
  6841. type="primary"
  6842. v-if="
  6843. groupStudentUid[toolIndex][gindex].indexOf(
  6844. userid
  6845. ) != -1
  6846. "
  6847. @click="groupUpload(toolIndex, taskCount, gindex)"
  6848. >上传作业</el-button
  6849. >
  6850. </div>
  6851. <div class="group_work">
  6852. <div
  6853. class="works"
  6854. style="
  6855. width: 200px;
  6856. height: 140px;
  6857. margin: 10px 10px 10px 0;
  6858. border-radius: 15px;
  6859. box-shadow: 0 0 6px 1px #dfdada;
  6860. "
  6861. v-for="(w, wIndex) in worksStudent[toolIndex][
  6862. gindex
  6863. ]"
  6864. :key="wIndex"
  6865. :class="w.type == 1 ? 'isTypeOne' : ''"
  6866. >
  6867. <div class="workImg" v-if="w.type == 0">
  6868. <img
  6869. :src="w.works"
  6870. @click="previewImg(w.works,w)"
  6871. alt
  6872. />
  6873. <div
  6874. class="answerScore"
  6875. v-if="w.score"
  6876. @click.stop="openScore(w)"
  6877. :class="{
  6878. rightW:
  6879. w.userid == userid ||
  6880. tType == 1 ||
  6881. tType == 4 ||
  6882. w.ateacher == userid,
  6883. }"
  6884. >
  6885. {{ JSON.parse(w.score).wScore }}分
  6886. </div>
  6887. <div
  6888. class="answerScore"
  6889. @click.stop="openScore(w)"
  6890. v-else-if="courseDetail.userid == userid"
  6891. :class="{
  6892. rightW:
  6893. w.userid == userid ||
  6894. tType == 1 ||
  6895. tType == 4 ||
  6896. w.ateacher == userid,
  6897. }"
  6898. >
  6899. 评分
  6900. </div>
  6901. <img
  6902. class="deleteImg"
  6903. src="../../assets/deleteworks.png"
  6904. v-if="
  6905. w.userid == userid ||
  6906. tType == 1 ||
  6907. tType == 4
  6908. "
  6909. @click.stop="deleteWorks(w.wid)"
  6910. alt
  6911. />
  6912. </div>
  6913. <div class="workImg" v-if="w.type == 1">
  6914. <img
  6915. :src="word"
  6916. @click="openFile(w.works)"
  6917. alt
  6918. />
  6919. <!-- @click="openFile(w.works)" -->
  6920. <div
  6921. class="answerScore"
  6922. v-if="w.score"
  6923. @click.stop="openScore(w)"
  6924. :class="{
  6925. rightW:
  6926. w.userid == userid ||
  6927. tType == 1 ||
  6928. tType == 4 ||
  6929. w.ateacher == userid,
  6930. }"
  6931. >
  6932. {{ JSON.parse(w.score).wScore }}分
  6933. </div>
  6934. <div
  6935. class="answerScore"
  6936. @click.stop="openScore(w)"
  6937. v-else-if="courseDetail.userid == userid"
  6938. :class="{
  6939. rightW:
  6940. w.userid == userid ||
  6941. tType == 1 ||
  6942. tType == 4 ||
  6943. w.ateacher == userid,
  6944. }"
  6945. >
  6946. 评分
  6947. </div>
  6948. <img
  6949. class="deleteImg"
  6950. src="../../assets/deleteworks.png"
  6951. v-if="
  6952. w.userid == userid ||
  6953. tType == 1 ||
  6954. tType == 4
  6955. "
  6956. @click.stop="deleteWorks(w.wid)"
  6957. alt
  6958. />
  6959. </div>
  6960. <div class="workImg" v-if="w.type == 3">
  6961. <img
  6962. style="cursor: pointer"
  6963. :src="video"
  6964. @click="openVideo(w)"
  6965. alt
  6966. />
  6967. <!-- @click="openVideo(w.works)" -->
  6968. <div
  6969. class="answerScore"
  6970. v-if="w.score"
  6971. @click.stop="openScore(w)"
  6972. :class="{
  6973. rightW:
  6974. w.userid == userid ||
  6975. tType == 1 ||
  6976. tType == 4 ||
  6977. w.ateacher == userid,
  6978. }"
  6979. >
  6980. {{ JSON.parse(w.score).wScore }}分
  6981. </div>
  6982. <div
  6983. class="answerScore"
  6984. @click.stop="openScore(w)"
  6985. v-else-if="courseDetail.userid == userid"
  6986. :class="{
  6987. rightW:
  6988. w.userid == userid ||
  6989. tType == 1 ||
  6990. tType == 4 ||
  6991. w.ateacher == userid,
  6992. }"
  6993. >
  6994. 评分
  6995. </div>
  6996. <img
  6997. class="deleteImg"
  6998. src="../../assets/deleteworks.png"
  6999. v-if="
  7000. w.userid == userid ||
  7001. tType == 1 ||
  7002. tType == 4
  7003. "
  7004. @click.stop="deleteWorks(w.wid)"
  7005. alt
  7006. />
  7007. </div>
  7008. <div class="workImg" v-if="w.type == 12">
  7009. <img
  7010. style="cursor: pointer"
  7011. :src="word2"
  7012. @click="downloadFile(w.works)"
  7013. alt
  7014. />
  7015. <!-- @click="openVideo(w.works)" -->
  7016. <div
  7017. class="answerScore"
  7018. v-if="w.score"
  7019. @click.stop="openScore(w)"
  7020. :class="{
  7021. rightW:
  7022. w.userid == userid ||
  7023. tType == 1 ||
  7024. tType == 4 ||
  7025. w.ateacher == userid,
  7026. }"
  7027. >
  7028. {{ JSON.parse(w.score).wScore }}分
  7029. </div>
  7030. <div
  7031. class="answerScore"
  7032. @click.stop="openScore(w)"
  7033. v-else-if="courseDetail.userid == userid"
  7034. :class="{
  7035. rightW:
  7036. w.userid == userid ||
  7037. tType == 1 ||
  7038. tType == 4 ||
  7039. w.ateacher == userid,
  7040. }"
  7041. >
  7042. 评分
  7043. </div>
  7044. <img
  7045. class="deleteImg"
  7046. src="../../assets/deleteworks.png"
  7047. v-if="
  7048. w.userid == userid ||
  7049. tType == 1 ||
  7050. tType == 4
  7051. "
  7052. @click.stop="deleteWorks(w.wid)"
  7053. alt
  7054. />
  7055. </div>
  7056. <div class="comment" style="min-width: 200px">
  7057. <div class="worksName">
  7058. <div>{{ w.sName }}</div>
  7059. </div>
  7060. <div class="commentList">
  7061. <div class="commentList">
  7062. <div
  7063. class="commentImg"
  7064. @click="
  7065. isLikes(
  7066. w.wid,
  7067. userid,
  7068. 1,
  7069. null,
  7070. w.isLikes,
  7071. w.sName
  7072. )
  7073. "
  7074. >
  7075. <img
  7076. :src="
  7077. w.isLikes == true ? likes : noLikes
  7078. "
  7079. alt=""
  7080. />
  7081. </div>
  7082. <div>{{ w.likesCount }}</div>
  7083. </div>
  7084. <div
  7085. class="commentList"
  7086. style="margin-right: 15px"
  7087. >
  7088. <div
  7089. class="commentImg"
  7090. @click="
  7091. commentOther(
  7092. w,
  7093. toolIndex,
  7094. wIndex,
  7095. gindex
  7096. )
  7097. "
  7098. >
  7099. <img
  7100. src="../../assets/icon/comment/comment.png"
  7101. alt=""
  7102. />
  7103. </div>
  7104. <div>{{ w.commentCount }}</div>
  7105. </div>
  7106. </div>
  7107. </div>
  7108. </div>
  7109. </div>
  7110. </div>
  7111. </div>
  7112. </div>
  7113. </div>
  7114. </div>
  7115. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7116. 上传文件
  7117. <input
  7118. type="file"
  7119. accept="image/png, image/gif, image/jpeg"
  7120. style="display: none"
  7121. @change="beforeUpload1($event, 2, index)"
  7122. />
  7123. </div>-->
  7124. </div>
  7125. </div>
  7126. <!-- <div
  7127. class="vedioBox"
  7128. style="margin-top: 10px"
  7129. v-if="
  7130. courseDetail.userid == userid ||
  7131. (courseDetail.course_teacher &&
  7132. courseDetail.course_teacher.indexOf(userid) != -1)
  7133. "
  7134. :style="{
  7135. borderRadius:
  7136. !(
  7137. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7138. .toolChoose[0].tool &&
  7139. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7140. .toolChoose[0].tool.length > 0
  7141. ) &&
  7142. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7143. .taskDetail == '' &&
  7144. vChapterData[taskCount].length == 0 &&
  7145. fileC[taskCount].length == 0
  7146. ? '0 0 20px 20px'
  7147. : '20px',
  7148. }"
  7149. >
  7150. <div
  7151. class="queTop"
  7152. @click="isClose = !isClose"
  7153. style="
  7154. padding: 15px 0 15px 37px;
  7155. justify-content: space-between;
  7156. "
  7157. >
  7158. <div class="queTopTitle">新增工具</div>
  7159. <div class="queTopRight">
  7160. <div class="queTopClose" v-if="isClose == 0">
  7161. 展开
  7162. <div class="closeImg">
  7163. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7164. </div>
  7165. </div>
  7166. <div class="queTopClose" v-if="isClose == 1">
  7167. 折叠
  7168. <div class="openImg">
  7169. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7170. </div>
  7171. </div>
  7172. <el-button
  7173. style="margin: 0 30px 0 auto"
  7174. type="primary"
  7175. size="small"
  7176. v-if="isClose == 1 && checktoolArray.length > 0"
  7177. @click.stop="addToolChoose"
  7178. >确定</el-button
  7179. >
  7180. </div>
  7181. </div>
  7182. <div
  7183. class="tool_work_box"
  7184. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7185. >
  7186. <div class="tool_box">
  7187. <div class="tool_type_box">
  7188. <div class="chooseWho">
  7189. <div
  7190. :class="toolType == 0 ? 'isChooseActive' : ''"
  7191. @click="(toolType = 0), $forceUpdate()"
  7192. >
  7193. 互动类
  7194. </div>
  7195. <div
  7196. :class="toolType == 1 ? 'isChooseActive' : ''"
  7197. @click="(toolType = 1), $forceUpdate()"
  7198. >
  7199. 思维类
  7200. </div>
  7201. <div
  7202. :class="toolType == 2 ? 'isChooseActive' : ''"
  7203. @click="(toolType = 2), $forceUpdate()"
  7204. >
  7205. 测评类
  7206. </div>
  7207. <div
  7208. :class="toolType == 3 ? 'isChooseActive' : ''"
  7209. @click="(toolType = 3), $forceUpdate()"
  7210. >
  7211. 编程类
  7212. </div>
  7213. <div
  7214. :class="toolType == 5 ? 'isChooseActive' : ''"
  7215. @click="(toolType = 5), $forceUpdate()"
  7216. >
  7217. 学科类
  7218. </div>
  7219. </div>
  7220. </div>
  7221. <div>
  7222. <div class="toolSort" v-if="toolType == 0">
  7223. <div class="tool">
  7224. <div class="whiteBIcon" @click="addTools2(10)">
  7225. <img
  7226. src="../../assets/icon/thirdToolList/time.png"
  7227. alt
  7228. />
  7229. <div style="margin: 5px 0">倒计时</div>
  7230. </div>
  7231. <div class="check" @click="addTools2(10)">
  7232. <img
  7233. src="../../assets/icon/checkNo.png"
  7234. alt
  7235. v-if="checktoolArray.indexOf(10) == -1"
  7236. />
  7237. <div class="checkDiv" v-else>
  7238. <img src="../../assets/icon/checkedIs.png" alt /><span
  7239. >已选择</span
  7240. >
  7241. </div>
  7242. </div>
  7243. </div>
  7244. <div class="tool">
  7245. <div class="whiteBIcon" @click="addTools2(65)">
  7246. <img
  7247. src="../../assets/icon/firstToolList/pickPeople.png"
  7248. alt
  7249. />
  7250. <div style="margin: 5px 0">挑人</div>
  7251. </div>
  7252. <div class="check" @click="addTools2(65)">
  7253. <img
  7254. src="../../assets/icon/checkNo.png"
  7255. alt
  7256. v-if="checktoolArray.indexOf(65) == -1"
  7257. />
  7258. <div class="checkDiv" v-else>
  7259. <img src="../../assets/icon/checkedIs.png" alt /><span
  7260. >已选择</span
  7261. >
  7262. </div>
  7263. </div>
  7264. </div>
  7265. </div>
  7266. <div class="toolSort" v-if="toolType == 1">
  7267. <div class="tool">
  7268. <div class="whiteBIcon" @click="addTools2(7)">
  7269. <img
  7270. src="../../assets/icon/secondToolList/mindNetwork.png"
  7271. alt
  7272. />
  7273. <div style="margin: 5px 0">思维网格</div>
  7274. </div>
  7275. <div class="check" @click="addTools2(7)">
  7276. <img
  7277. src="../../assets/icon/checkNo.png"
  7278. alt
  7279. v-if="checktoolArray.indexOf(7) == -1"
  7280. />
  7281. <div class="checkDiv" v-else>
  7282. <img src="../../assets/icon/checkedIs.png" alt /><span
  7283. >已选择</span
  7284. >
  7285. </div>
  7286. </div>
  7287. </div>
  7288. <div class="tool">
  7289. <div class="whiteBIcon" @click="addTools2(1)">
  7290. <img
  7291. src="../../assets/icon/secondToolList/whiteBoard.png"
  7292. alt
  7293. />
  7294. <div style="margin: 5px 0">电子白板</div>
  7295. </div>
  7296. <div class="check" @click="addTools2(1)">
  7297. <img
  7298. src="../../assets/icon/checkNo.png"
  7299. alt
  7300. v-if="checktoolArray.indexOf(1) == -1"
  7301. />
  7302. <div class="checkDiv" v-else>
  7303. <img src="../../assets/icon/checkedIs.png" alt /><span
  7304. >已选择</span
  7305. >
  7306. </div>
  7307. </div>
  7308. </div>
  7309. <div class="tool">
  7310. <div class="whiteBIcon" @click="addTools2(52)">
  7311. <img
  7312. src="../../assets/icon/fourthToolList/text.png"
  7313. alt
  7314. />
  7315. <div style="margin: 5px 0">文档</div>
  7316. </div>
  7317. <div class="check" @click="addTools2(52)">
  7318. <img
  7319. src="../../assets/icon/checkNo.png"
  7320. alt
  7321. v-if="checktoolArray.indexOf(52) == -1"
  7322. />
  7323. <div class="checkDiv" v-else>
  7324. <img src="../../assets/icon/checkedIs.png" alt /><span
  7325. >已选择</span
  7326. >
  7327. </div>
  7328. </div>
  7329. </div>
  7330. <div class="tool">
  7331. <div class="whiteBIcon" @click="addTools2(3)">
  7332. <img
  7333. src="../../assets/icon/secondToolList/mindMapping.png"
  7334. alt
  7335. />
  7336. <div style="margin: 5px 0">思维导图</div>
  7337. </div>
  7338. <div class="check" @click="addTools2(3)">
  7339. <img
  7340. src="../../assets/icon/checkNo.png"
  7341. alt
  7342. v-if="checktoolArray.indexOf(3) == -1"
  7343. />
  7344. <div class="checkDiv" v-else>
  7345. <img src="../../assets/icon/checkedIs.png" alt /><span
  7346. >已选择</span
  7347. >
  7348. </div>
  7349. </div>
  7350. </div>
  7351. <div class="tool">
  7352. <div class="whiteBIcon" @click="addTools2(48)">
  7353. <img
  7354. src="../../assets/icon/fourthToolList/table.png"
  7355. alt
  7356. />
  7357. <div style="margin: 5px 0">表格</div>
  7358. </div>
  7359. <div class="check" @click="addTools2(48)">
  7360. <img
  7361. src="../../assets/icon/checkNo.png"
  7362. alt
  7363. v-if="checktoolArray.indexOf(48) == -1"
  7364. />
  7365. <div class="checkDiv" v-else>
  7366. <img src="../../assets/icon/checkedIs.png" alt /><span
  7367. >已选择</span
  7368. >
  7369. </div>
  7370. </div>
  7371. </div>
  7372. </div>
  7373. <div class="toolSort" v-if="toolType == 6">
  7374. <div v-show="tooC == 49">
  7375. <img
  7376. @click="addTools(tooC, toolIndex, taskCount)"
  7377. src="../../assets/icon/fourthToolList/group.png"
  7378. alt
  7379. />
  7380. <div style="margin: 5px 0">学生分组</div>
  7381. </div>
  7382. </div>
  7383. <div class="toolSort" v-if="toolType == 2">
  7384. <div class="tool">
  7385. <div class="whiteBIcon" @click="addTools2(16)">
  7386. <img
  7387. src="../../assets/icon/thirdToolList/work.png"
  7388. alt
  7389. />
  7390. <div style="margin: 5px 0">作业提交</div>
  7391. </div>
  7392. <div class="check" @click="addTools2(16)">
  7393. <img
  7394. src="../../assets/icon/checkNo.png"
  7395. alt
  7396. v-if="checktoolArray.indexOf(16) == -1"
  7397. />
  7398. <div class="checkDiv" v-else>
  7399. <img src="../../assets/icon/checkedIs.png" alt /><span
  7400. >已选择</span
  7401. >
  7402. </div>
  7403. </div>
  7404. </div>
  7405. <div class="tool">
  7406. <div class="whiteBIcon" @click="addTools2(50)">
  7407. <img
  7408. src="../../assets/icon/thirdToolList/plwork.png"
  7409. alt
  7410. />
  7411. <div style="margin: 5px 0">批量上传</div>
  7412. </div>
  7413. <div class="check" @click="addTools2(50)">
  7414. <img
  7415. src="../../assets/icon/checkNo.png"
  7416. alt
  7417. v-if="checktoolArray.indexOf(50) == -1"
  7418. />
  7419. <div class="checkDiv" v-else>
  7420. <img src="../../assets/icon/checkedIs.png" alt /><span
  7421. >已选择</span
  7422. >
  7423. </div>
  7424. </div>
  7425. </div>
  7426. </div>
  7427. <div class="toolSort" v-if="toolType == 3">
  7428. <div class="tool">
  7429. <div class="whiteBIcon" @click="addTools2(18)">
  7430. <img
  7431. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7432. alt
  7433. />
  7434. <div style="margin: 5px 0">训练平台</div>
  7435. </div>
  7436. <div class="check" @click="addTools2(18)">
  7437. <img
  7438. src="../../assets/icon/checkNo.png"
  7439. alt
  7440. v-if="checktoolArray.indexOf(18) == -1"
  7441. />
  7442. <div class="checkDiv" v-else>
  7443. <img src="../../assets/icon/checkedIs.png" alt /><span
  7444. >已选择</span
  7445. >
  7446. </div>
  7447. </div>
  7448. </div>
  7449. <div class="tool">
  7450. <div class="whiteBIcon" @click="addTools2(21)">
  7451. <img
  7452. src="../../assets/icon/fourthToolList/program.png"
  7453. alt
  7454. />
  7455. <div style="margin: 5px 0">AIoT Blockly</div>
  7456. </div>
  7457. <div class="check" @click="addTools2(21)">
  7458. <img
  7459. src="../../assets/icon/checkNo.png"
  7460. alt
  7461. v-if="checktoolArray.indexOf(21) == -1"
  7462. />
  7463. <div class="checkDiv" v-else>
  7464. <img src="../../assets/icon/checkedIs.png" alt /><span
  7465. >已选择</span
  7466. >
  7467. </div>
  7468. </div>
  7469. </div>
  7470. <div class="tool">
  7471. <div class="whiteBIcon" @click="addTools2(23)">
  7472. <img
  7473. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7474. alt
  7475. />
  7476. <div style="margin: 5px 0">AI Python</div>
  7477. </div>
  7478. <div class="check" @click="addTools2(23)">
  7479. <img
  7480. src="../../assets/icon/checkNo.png"
  7481. alt
  7482. v-if="checktoolArray.indexOf(23) == -1"
  7483. />
  7484. <div class="checkDiv" v-else>
  7485. <img src="../../assets/icon/checkedIs.png" alt /><span
  7486. >已选择</span
  7487. >
  7488. </div>
  7489. </div>
  7490. </div>
  7491. <div class="tool">
  7492. <div class="whiteBIcon" @click="addTools2(24)">
  7493. <img
  7494. src="../../assets/icon/fourthToolList/AIprogram.png"
  7495. alt
  7496. />
  7497. <div style="margin: 5px 0">AI Blockly</div>
  7498. </div>
  7499. <div class="check" @click="addTools2(24)">
  7500. <img
  7501. src="../../assets/icon/checkNo.png"
  7502. alt
  7503. v-if="checktoolArray.indexOf(24) == -1"
  7504. />
  7505. <div class="checkDiv" v-else>
  7506. <img src="../../assets/icon/checkedIs.png" alt /><span
  7507. >已选择</span
  7508. >
  7509. </div>
  7510. </div>
  7511. </div>
  7512. <div class="tool">
  7513. <div class="whiteBIcon" @click="addTools2(32)">
  7514. <img
  7515. src="../../assets/icon/thirdToolList/code.png"
  7516. alt
  7517. />
  7518. <div style="margin: 5px 0">源码编辑</div>
  7519. </div>
  7520. <div class="check" @click="addTools2(32)">
  7521. <img
  7522. src="../../assets/icon/checkNo.png"
  7523. alt
  7524. v-if="checktoolArray.indexOf(32) == -1"
  7525. />
  7526. <div class="checkDiv" v-else>
  7527. <img src="../../assets/icon/checkedIs.png" alt /><span
  7528. >已选择</span
  7529. >
  7530. </div>
  7531. </div>
  7532. </div>
  7533. <div class="tool">
  7534. <div class="whiteBIcon" @click="addTools2(57)">
  7535. <img
  7536. src="../../assets/icon/fourthToolList/cocopi.png"
  7537. alt
  7538. />
  7539. <div style="margin: 5px 0">CocoPi</div>
  7540. </div>
  7541. <div class="check" @click="addTools2(57)">
  7542. <img
  7543. src="../../assets/icon/checkNo.png"
  7544. alt
  7545. v-if="checktoolArray.indexOf(57) == -1"
  7546. />
  7547. <div class="checkDiv" v-else>
  7548. <img src="../../assets/icon/checkedIs.png" alt /><span
  7549. >已选择</span
  7550. >
  7551. </div>
  7552. </div>
  7553. </div>
  7554. <div class="tool">
  7555. <div class="whiteBIcon" @click="addTools2(63)">
  7556. <img
  7557. src="../../assets/icon/fourthToolList/Wood.png"
  7558. alt
  7559. />
  7560. <div style="margin: 5px 0">海龟编程</div>
  7561. </div>
  7562. <div class="check" @click="addTools2(63)">
  7563. <img
  7564. src="../../assets/icon/checkNo.png"
  7565. alt
  7566. v-if="checktoolArray.indexOf(63) == -1"
  7567. />
  7568. <div class="checkDiv" v-else>
  7569. <img src="../../assets/icon/checkedIs.png" alt /><span
  7570. >已选择</span
  7571. >
  7572. </div>
  7573. </div>
  7574. </div>
  7575. </div>
  7576. <div class="toolSort" v-if="toolType == 5">
  7577. <div class="tool">
  7578. <div class="whiteBIcon" @click="addTools2(28)">
  7579. <img
  7580. src="../../assets/icon/secondToolList/translation.png"
  7581. alt
  7582. />
  7583. <div style="margin: 5px 0">翻译</div>
  7584. </div>
  7585. <div class="check" @click="addTools2(28)">
  7586. <img
  7587. src="../../assets/icon/checkNo.png"
  7588. alt
  7589. v-if="checktoolArray.indexOf(28) == -1"
  7590. />
  7591. <div class="checkDiv" v-else>
  7592. <img src="../../assets/icon/checkedIs.png" alt /><span
  7593. >已选择</span
  7594. >
  7595. </div>
  7596. </div>
  7597. </div>
  7598. <div class="tool">
  7599. <div class="whiteBIcon" @click="addTools2(31)">
  7600. <img
  7601. src="../../assets/icon/secondToolList/networkPanel.png"
  7602. alt
  7603. />
  7604. <div style="margin: 5px 0">数字画板</div>
  7605. </div>
  7606. <div class="check" @click="addTools2(31)">
  7607. <img
  7608. src="../../assets/icon/checkNo.png"
  7609. alt
  7610. v-if="checktoolArray.indexOf(31) == -1"
  7611. />
  7612. <div class="checkDiv" v-else>
  7613. <img src="../../assets/icon/checkedIs.png" alt /><span
  7614. >已选择</span
  7615. >
  7616. </div>
  7617. </div>
  7618. </div>
  7619. <div class="tool">
  7620. <div class="whiteBIcon" @click="addTools2(39)">
  7621. <img
  7622. src="../../assets/icon/secondToolList/GeoGebra.png"
  7623. alt
  7624. />
  7625. <div style="margin: 5px 0">GeoGebra</div>
  7626. </div>
  7627. <div class="check" @click="addTools2(39)">
  7628. <img
  7629. src="../../assets/icon/checkNo.png"
  7630. alt
  7631. v-if="checktoolArray.indexOf(39) == -1"
  7632. />
  7633. <div class="checkDiv" v-else>
  7634. <img src="../../assets/icon/checkedIs.png" alt /><span
  7635. >已选择</span
  7636. >
  7637. </div>
  7638. </div>
  7639. </div>
  7640. <div class="tool">
  7641. <div class="whiteBIcon" @click="addTools2(66)">
  7642. <img
  7643. src="../../assets/icon/secondToolList/formulaEdi.png"
  7644. alt
  7645. />
  7646. <div style="margin: 5px 0">公式编辑</div>
  7647. </div>
  7648. <div class="check" @click="addTools2(66)">
  7649. <img
  7650. src="../../assets/icon/checkNo.png"
  7651. alt
  7652. v-if="checktoolArray.indexOf(66) == -1"
  7653. />
  7654. <div class="checkDiv" v-else>
  7655. <img src="../../assets/icon/checkedIs.png" alt /><span
  7656. >已选择</span
  7657. >
  7658. </div>
  7659. </div>
  7660. </div>
  7661. <div class="tool">
  7662. <div class="whiteBIcon" @click="addTools2(67)">
  7663. <img
  7664. src="../../assets/icon/secondToolList/molStr.png"
  7665. alt
  7666. />
  7667. <div style="margin: 5px 0">分子结构</div>
  7668. </div>
  7669. <div class="check" @click="addTools2(67)">
  7670. <img
  7671. src="../../assets/icon/checkNo.png"
  7672. alt
  7673. v-if="checktoolArray.indexOf(67) == -1"
  7674. />
  7675. <div class="checkDiv" v-else>
  7676. <img src="../../assets/icon/checkedIs.png" alt /><span
  7677. >已选择</span
  7678. >
  7679. </div>
  7680. </div>
  7681. </div>
  7682. <div class="tool">
  7683. <div class="whiteBIcon" @click="addTools2(68)">
  7684. <img
  7685. src="../../assets/icon/secondToolList/timeAxis.png"
  7686. alt
  7687. />
  7688. <div style="margin: 5px 0">时间轴</div>
  7689. </div>
  7690. <div class="check" @click="addTools2(68)">
  7691. <img
  7692. src="../../assets/icon/checkNo.png"
  7693. alt
  7694. v-if="checktoolArray.indexOf(68) == -1"
  7695. />
  7696. <div class="checkDiv" v-else>
  7697. <img src="../../assets/icon/checkedIs.png" alt /><span
  7698. >已选择</span
  7699. >
  7700. </div>
  7701. </div>
  7702. </div>
  7703. </div>
  7704. <div class="toolSort" v-if="toolType == 7">
  7705. <div class="tool">
  7706. <div class="whiteBIcon" @click="addTools2(40)">
  7707. <img
  7708. src="../../assets/icon/secondToolList/eval.png"
  7709. alt
  7710. />
  7711. <div style="margin: 5px 0">个人评价</div>
  7712. </div>
  7713. <div class="check" @click="addTools2(40)">
  7714. <img
  7715. src="../../assets/icon/checkNo.png"
  7716. alt
  7717. v-if="checktoolArray.indexOf(40) == -1"
  7718. />
  7719. <div class="checkDiv" v-else>
  7720. <img src="../../assets/icon/checkedIs.png" alt /><span
  7721. >已选择</span
  7722. >
  7723. </div>
  7724. </div>
  7725. </div>
  7726. </div>
  7727. <div class="toolSort" v-if="toolType == 4">
  7728. <div class="tool">
  7729. <div class="whiteBIcon" @click="addTools2(26)">
  7730. <img
  7731. src="../../assets/icon/thirdToolList/courseDesign.png"
  7732. alt
  7733. />
  7734. <div style="margin: 5px 0">课程设计</div>
  7735. </div>
  7736. <div class="check" @click="addTools2(26)">
  7737. <img
  7738. src="../../assets/icon/checkNo.png"
  7739. alt
  7740. v-if="checktoolArray.indexOf(26) == -1"
  7741. />
  7742. <div class="checkDiv" v-else>
  7743. <img src="../../assets/icon/checkedIs.png" alt /><span
  7744. >已选择</span
  7745. >
  7746. </div>
  7747. </div>
  7748. </div>
  7749. <div class="tool">
  7750. <div class="whiteBIcon" @click="addTools2(25)">
  7751. <img
  7752. src="../../assets/icon/thirdToolList/evalua.png"
  7753. alt
  7754. />
  7755. <div style="margin: 5px 0">目标管理</div>
  7756. </div>
  7757. <div class="check" @click="addTools2(25)">
  7758. <img
  7759. src="../../assets/icon/checkNo.png"
  7760. alt
  7761. v-if="checktoolArray.indexOf(25) == -1"
  7762. />
  7763. <div class="checkDiv" v-else>
  7764. <img src="../../assets/icon/checkedIs.png" alt /><span
  7765. >已选择</span
  7766. >
  7767. </div>
  7768. </div>
  7769. </div>
  7770. </div>
  7771. </div>
  7772. </div>
  7773. </div>
  7774. </div> -->
  7775. <div
  7776. class="vedioBox"
  7777. style="margin-top: 10px; border-radius: 20px"
  7778. v-if="
  7779. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7780. .eList &&
  7781. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7782. .eList.length &&
  7783. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7784. .eList.length > 0 &&
  7785. tType != 2
  7786. "
  7787. >
  7788. <div
  7789. class="queTop"
  7790. style="
  7791. font-size: 20px;
  7792. padding: 15px 0 15px 37px;
  7793. font-weight: bold;
  7794. "
  7795. >
  7796. <!-- <div class="question" style="width: 30px">
  7797. <img src="../assets/icon/toolIcon.png" alt />
  7798. </div>
  7799. <div class="queTitle">
  7800. <div>工具</div>
  7801. </div>-->
  7802. 评一评
  7803. </div>
  7804. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7805. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7806. <el-table
  7807. :data="
  7808. chapInfoList[courseType].chapterInfo[0].taskJson[
  7809. taskCount
  7810. ].eList
  7811. "
  7812. :header-cell-style="{ background: '#F0F4FA' }"
  7813. :row-class-name="tableRowClassName"
  7814. border
  7815. stripe
  7816. style="width: 100%"
  7817. >
  7818. <el-table-column
  7819. label="评价名称"
  7820. align="center"
  7821. >
  7822. <template slot-scope="scope"
  7823. ><div>{{ scope.row.value }}</div></template
  7824. >
  7825. </el-table-column>
  7826. <el-table-column
  7827. label="评价描述"
  7828. align="center"
  7829. >
  7830. <template slot-scope="scope"
  7831. ><div>
  7832. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7833. </div></template
  7834. >
  7835. </el-table-column>
  7836. <el-table-column label="目标" align="center">
  7837. <template slot-scope="scope"
  7838. ><div>
  7839. {{
  7840. scope.row.target
  7841. ? scope.row.target[scope.row.target.length - 1]
  7842. : "-"
  7843. }}
  7844. </div></template
  7845. ></el-table-column
  7846. >
  7847. </el-table>
  7848. <!-- <div
  7849. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7850. .chapterInfo[0].taskJson[taskCount].eList"
  7851. :key="eIndex"
  7852. class="elist_input_box"
  7853. >
  7854. <div style="width: 95%">
  7855. <div
  7856. style="
  7857. display: flex;
  7858. flex-direction: row;
  7859. flex-wrap: nowrap;
  7860. align-items: center;
  7861. "
  7862. >
  7863. <div style="max-width: calc(100% - 285px)">
  7864. <span>{{ eItem.value }}</span>
  7865. </div>
  7866. <div
  7867. style="
  7868. padding-left: 25px;
  7869. display: flex;
  7870. flex-direction: row;
  7871. align-items: center;
  7872. "
  7873. >
  7874. <el-rate
  7875. v-model="eItem.score"
  7876. :colors="colors"
  7877. disabled
  7878. ></el-rate>
  7879. </div>
  7880. </div>
  7881. <div class="elist_inptu_text" style="padding-left: 10px">
  7882. <span v-if="eItem.detail != ''">{{
  7883. eItem.detail
  7884. }}</span>
  7885. <span v-else style="color: #b2b1b3; font-size: 14px"
  7886. >暂无描述...</span
  7887. >
  7888. </div>
  7889. </div>
  7890. </div> -->
  7891. </div>
  7892. <div
  7893. v-if="evalua"
  7894. style="
  7895. border: 1px solid #e5e5e5;
  7896. max-width: 650px;
  7897. width: 100%;
  7898. margin-top: 20px;
  7899. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7900. "
  7901. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7902. >
  7903. <div class="e_add_top">
  7904. <div class="e_add_title" style="width: 100%">
  7905. <!-- <span>目标管理名称</span> -->
  7906. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7907. <img
  7908. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7909. src="../../assets/line.png"
  7910. class="cru_line"
  7911. style="
  7912. width: 125px;
  7913. height: 20px;
  7914. bottom: -10px;
  7915. left: 5px;
  7916. "
  7917. />
  7918. <!-- <el-input
  7919. v-model="eTitle"
  7920. placeholder="请输入名称"
  7921. @change="setMindData"
  7922. ></el-input>-->
  7923. <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>
  7924. <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>
  7925. </div>
  7926. </div>
  7927. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7928. <div class="e_add_list_pbox">
  7929. <div class="e_add_list_pbox_title">
  7930. <!-- <span class="type_title">切换模式</span> -->
  7931. <div class="type_content">
  7932. <span
  7933. :class="{ active: typeMode == 1 }"
  7934. @click="typeMode = 1"
  7935. >目标树</span
  7936. >
  7937. <span
  7938. :class="{ active: typeMode == 2 }"
  7939. @click="typeMode = 2"
  7940. >目标罗盘</span
  7941. >
  7942. <!-- <span
  7943. :class="{ active: typeMode == 3 }"
  7944. @click="typeMode = 3"
  7945. >目标看板</span
  7946. > -->
  7947. </div>
  7948. </div>
  7949. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7950. <Mind
  7951. :showBar="false"
  7952. :mindData="data"
  7953. style="width: 100%"
  7954. v-show="typeMode == 1"
  7955. ></Mind>
  7956. <Sunburst
  7957. :Josn="eJson"
  7958. :num="eJSONNum"
  7959. style="width: 100%"
  7960. v-if="typeMode == 2"
  7961. ></Sunburst>
  7962. <SeeBoard
  7963. :Josn="eJson"
  7964. :num="eJSONNum"
  7965. :ename="eTitle"
  7966. style="width: 100%"
  7967. v-if="typeMode == 3"
  7968. >
  7969. </SeeBoard>
  7970. </div>
  7971. </div>
  7972. </div>
  7973. </div>
  7974. </div>
  7975. </div>
  7976. <!-- <div
  7977. class="project_box"
  7978. style="margin-top: 15px; padding-bottom: 30px"
  7979. >
  7980. <div
  7981. style="
  7982. display: flex;
  7983. flex-wrap: nowrap;
  7984. flex-direction: column;
  7985. position: relative;
  7986. "
  7987. >
  7988. <div class="queTop">
  7989. <div class="question">
  7990. <img src="../../assets/icon/homeWork.png" alt="" />
  7991. </div>
  7992. <div class="queTitle">
  7993. <div>作业提交<span>(提交图文视频等)</span></div>
  7994. <div>:任务:{{ task.task }}</div>
  7995. </div>
  7996. </div>
  7997. <div class="ediBottom">
  7998. <div
  7999. class="addEditor"
  8000. style="margin-top: 23px"
  8001. @click="openAddWork"
  8002. v-if="!isNoHomeWork"
  8003. >
  8004. 选择文件
  8005. </div>
  8006. <div
  8007. class="addEditor"
  8008. style="margin-top: 23px"
  8009. @click="openAddWork"
  8010. v-else
  8011. >
  8012. 已提交
  8013. </div>
  8014. </div>
  8015. </div>
  8016. </div>-->
  8017. </div>
  8018. </div>
  8019. <el-dialog
  8020. title="作业提交"
  8021. :visible.sync="dialogVisible"
  8022. :append-to-body="true"
  8023. width="500px"
  8024. :before-close="handleClose"
  8025. class="dialog_change"
  8026. >
  8027. <div class="marginT">
  8028. <div>上传文件</div>
  8029. <div
  8030. class="chapter_add"
  8031. @click="addImg($event)"
  8032. v-if="studyJuri[0].cover.length == 0"
  8033. >
  8034. <div class="up_photo">
  8035. <img src="../../assets/icon/uploadImg.png" alt />
  8036. </div>
  8037. <!-- <input
  8038. type="file"
  8039. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8040. style="display: none"
  8041. @change="beforeUpload1($event, 1)"
  8042. /> -->
  8043. <input
  8044. type="file"
  8045. accept="*"
  8046. style="display: none"
  8047. @change="beforeUpload1($event, 1)"
  8048. />
  8049. <!-- <input
  8050. type="file"
  8051. accept="image/*"
  8052. capture="camera"
  8053. style="display: none"
  8054. @change="beforeUpload1($event, 1)"
  8055. /> -->
  8056. </div>
  8057. <div
  8058. class="chapter_add"
  8059. style="
  8060. display: flex;
  8061. width: 100%;
  8062. flex-direction: row;
  8063. flex-wrap: wrap;
  8064. justify-content: flex-start;
  8065. padding: 15px 0;
  8066. "
  8067. v-if="studyJuri[0].cover.length > 0"
  8068. >
  8069. <div class="upCover">
  8070. <img
  8071. :src="studyJuri[0].cover[0].url"
  8072. alt
  8073. v-if="fileType == 0"
  8074. />
  8075. <img :src="word" alt v-else-if="fileType == 1" />
  8076. <img :src="video" alt v-else-if="fileType == 2" />
  8077. <img :src="word2" alt v-else-if="fileType == 3" />
  8078. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8079. <div class="deleteWord" @click="clean(1)">
  8080. <img src="../../assets/icon/deleteWorks.png" alt />
  8081. </div>
  8082. </div>
  8083. </div>
  8084. </div>
  8085. <div
  8086. class="upload_send"
  8087. @click="addCourseWorks(taskCount)"
  8088. v-if="!proVisible"
  8089. >
  8090. 提交
  8091. </div>
  8092. </el-dialog>
  8093. </div>
  8094. </div>
  8095. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8096. <classRoomHelper :videoStart="videoStart" @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(
  8097. '/courseDetail?userid=' +
  8098. userid +
  8099. '&oid=' +
  8100. oid +
  8101. '&org=' +
  8102. org +
  8103. '&cid=' +
  8104. classId +
  8105. '&courseId=' +
  8106. id +
  8107. '&tType=' +
  8108. tType +
  8109. '&screenType=' +
  8110. screenType
  8111. )"></classRoomHelper>
  8112. <div
  8113. class="pButton"
  8114. @click="(pzDialog = true), selectPz()"
  8115. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8116. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8117. >
  8118. <!-- 批 -->
  8119. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8120. </div>
  8121. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8122. <div class="pzTop2">
  8123. <!-- <div>评论</div>
  8124. <div @click="pzDialog = false">
  8125. <img src="../../assets/close1.png" alt="" />
  8126. </div> -->
  8127. <div class="checkbox">
  8128. <!-- <div class="check" style="font-size: 25px; position: unset">
  8129. 评论
  8130. </div> -->
  8131. <div class="cb-tabList">
  8132. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8133. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8134. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8135. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8136. </div>
  8137. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8138. <el-option label="时间降序" :value="1"></el-option>
  8139. <el-option label="时间升序" :value="2"></el-option>
  8140. <el-option label="我的评课" :value="3"></el-option>
  8141. </el-select>
  8142. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8143. </div>
  8144. </div>
  8145. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8146. <div class="pzListBox" v-if="pzList && pzList.length">
  8147. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8148. <div class="pzNavTop">
  8149. <div>评</div>
  8150. <div>
  8151. {{
  8152. pz.username && pz.username.length > 5
  8153. ? pz.username.substring(0, 5) + "..."
  8154. : pz.username
  8155. }}的评论
  8156. </div>
  8157. <div
  8158. class="pzDelete"
  8159. v-if="pz.userid == userid"
  8160. @click="deletePz(pz.id)"
  8161. >
  8162. 删除
  8163. </div>
  8164. </div>
  8165. <div
  8166. @click="checkImg(getImgList(pz.content))"
  8167. class="pzContent cont"
  8168. v-html="pz.content"
  8169. v-if="pz.type == '1'"
  8170. ></div>
  8171. <div class="pzContent" v-if="pz.type == '2'">
  8172. <audio :src="pz.content" controls="controls" ref="audio">
  8173. Your browser does not support the audio element.
  8174. </audio>
  8175. </div>
  8176. <div class="pzContent" v-if="pz.type == '3'">
  8177. <img
  8178. :src="pz.content"
  8179. style="width: 90%; margin: 0 auto; display: block"
  8180. @click="previewImg(pz.content)"
  8181. />
  8182. </div>
  8183. <div class="timeAndReply">
  8184. <div class="time">
  8185. {{ pz.time }}
  8186. </div>
  8187. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8188. </div>
  8189. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8190. <div
  8191. v-for="(h, hIndex) in pz.hfList"
  8192. :key="hIndex"
  8193. class="hfItem"
  8194. >
  8195. <div class="whoReplyWho">
  8196. <div class="hfName">{{ h.username }}</div>
  8197. <div class="hfImg">
  8198. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8199. </div>
  8200. <div class="hfName">{{ pz.username }}</div>
  8201. </div>
  8202. <div class="hfContent" v-html="h.content"></div>
  8203. <div class="hfBottom">
  8204. <div class="hfTime">{{ h.time }}</div>
  8205. <div
  8206. class="deleteHfItem"
  8207. @click="deleteReply(h.id)"
  8208. v-if="userid == h.userid"
  8209. >
  8210. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8211. </div>
  8212. </div>
  8213. </div>
  8214. </div>
  8215. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8216. <div class="replyInput">
  8217. <el-input v-model="reply[pzIndex]"></el-input>
  8218. </div>
  8219. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8220. </div> -->
  8221. </div>
  8222. </div>
  8223. <div class="noPz" v-else>
  8224. <img src="../../assets/icon/noPz.png" alt="" />
  8225. </div>
  8226. <div class="addPzButton">
  8227. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8228. 添加评论
  8229. </div>
  8230. <!-- <div class="img1">
  8231. <div @click="(addPzDialog = true), (pzType = 2)">
  8232. <img src="../../assets/audio.png" /><span>音频</span>
  8233. </div>
  8234. </div> -->
  8235. </div>
  8236. </div>
  8237. <div class="scoreList" v-if="commentTagShow==1">
  8238. <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"/>
  8239. </div>
  8240. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8241. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  8242. </div>
  8243. </div>
  8244. <div
  8245. v-if="toolDialogVisible == true"
  8246. class="toolMask"
  8247. @click="toolDialogVisible = false"
  8248. ></div>
  8249. <div v-if="toolDialogVisible == true" class="addToolCss">
  8250. <div class="toolTop">
  8251. <div style="font-weight: bold">新增工具</div>
  8252. <div @click="toolDialogVisible = false">
  8253. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8254. </div>
  8255. </div>
  8256. <div class="tool_box">
  8257. <div class="tool_type_box">
  8258. <div class="chooseWho">
  8259. <div
  8260. :class="toolType == 0 ? 'isChooseActive' : ''"
  8261. @click="(toolType = 0), $forceUpdate()"
  8262. >
  8263. 互动类
  8264. </div>
  8265. <div
  8266. :class="toolType == 1 ? 'isChooseActive' : ''"
  8267. @click="(toolType = 1), $forceUpdate()"
  8268. >
  8269. 思维类
  8270. </div>
  8271. <div
  8272. :class="toolType == 2 ? 'isChooseActive' : ''"
  8273. @click="(toolType = 2), $forceUpdate()"
  8274. >
  8275. 测评类
  8276. </div>
  8277. <div
  8278. :class="toolType == 3 ? 'isChooseActive' : ''"
  8279. @click="(toolType = 3), $forceUpdate()"
  8280. >
  8281. 编程类
  8282. </div>
  8283. <div
  8284. :class="toolType == 5 ? 'isChooseActive' : ''"
  8285. @click="(toolType = 5), $forceUpdate()"
  8286. >
  8287. 学科类
  8288. </div>
  8289. </div>
  8290. </div>
  8291. <div>
  8292. <div class="toolSort" v-if="toolType == 0">
  8293. <div
  8294. class="tool"
  8295. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8296. @click="addTools2(10)"
  8297. >
  8298. <div class="whiteBIcon">
  8299. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8300. <div style="margin: 5px 0">倒计时</div>
  8301. </div>
  8302. <div class="check">
  8303. <div
  8304. v-if="checktoolArray.indexOf(10) == -1"
  8305. class="noChoose"
  8306. ></div>
  8307. <div v-else class="isChoose"></div>
  8308. </div>
  8309. </div>
  8310. <div
  8311. class="tool"
  8312. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8313. @click="addTools2(65)"
  8314. >
  8315. <div class="whiteBIcon">
  8316. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8317. <div style="margin: 5px 0">挑人</div>
  8318. </div>
  8319. <div class="check">
  8320. <div
  8321. v-if="checktoolArray.indexOf(65) == -1"
  8322. class="noChoose"
  8323. ></div>
  8324. <div v-else class="isChoose"></div>
  8325. </div>
  8326. </div>
  8327. </div>
  8328. <div class="toolSort" v-if="toolType == 1">
  8329. <div
  8330. class="tool"
  8331. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8332. @click="addTools2(7)"
  8333. >
  8334. <div class="whiteBIcon">
  8335. <img
  8336. src="../../assets/icon/secondToolList/mindNetwork.png"
  8337. alt
  8338. />
  8339. <div style="margin: 5px 0">思维网格</div>
  8340. </div>
  8341. <div class="check">
  8342. <div
  8343. v-if="checktoolArray.indexOf(7) == -1"
  8344. class="noChoose"
  8345. ></div>
  8346. <div v-else class="isChoose"></div>
  8347. </div>
  8348. </div>
  8349. <div
  8350. class="tool"
  8351. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8352. @click="addTools2(1)"
  8353. >
  8354. <div class="whiteBIcon">
  8355. <img
  8356. src="../../assets/icon/secondToolList/whiteBoard.png"
  8357. alt
  8358. />
  8359. <div style="margin: 5px 0">电子白板</div>
  8360. </div>
  8361. <div class="check">
  8362. <div
  8363. v-if="checktoolArray.indexOf(1) == -1"
  8364. class="noChoose"
  8365. ></div>
  8366. <div v-else class="isChoose"></div>
  8367. </div>
  8368. </div>
  8369. <div
  8370. class="tool"
  8371. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8372. @click="addTools2(52)"
  8373. >
  8374. <div class="whiteBIcon">
  8375. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8376. <div style="margin: 5px 0">文档</div>
  8377. </div>
  8378. <div class="check">
  8379. <div
  8380. v-if="checktoolArray.indexOf(52) == -1"
  8381. class="noChoose"
  8382. ></div>
  8383. <div v-else class="isChoose"></div>
  8384. </div>
  8385. </div>
  8386. <div
  8387. class="tool"
  8388. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8389. @click="addTools2(3)"
  8390. >
  8391. <div class="whiteBIcon">
  8392. <img
  8393. src="../../assets/icon/secondToolList/mindMapping.png"
  8394. alt
  8395. />
  8396. <div style="margin: 5px 0">思维导图</div>
  8397. </div>
  8398. <div class="check">
  8399. <div
  8400. v-if="checktoolArray.indexOf(3) == -1"
  8401. class="noChoose"
  8402. ></div>
  8403. <div v-else class="isChoose"></div>
  8404. </div>
  8405. </div>
  8406. <div
  8407. class="tool"
  8408. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8409. @click="addTools2(48)"
  8410. >
  8411. <div class="whiteBIcon">
  8412. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8413. <div style="margin: 5px 0">表格</div>
  8414. </div>
  8415. <div class="check">
  8416. <div
  8417. v-if="checktoolArray.indexOf(48) == -1"
  8418. class="noChoose"
  8419. ></div>
  8420. <div v-else class="isChoose"></div>
  8421. </div>
  8422. </div>
  8423. </div>
  8424. <div class="toolSort" v-if="toolType == 6">
  8425. <div v-show="tooC == 49">
  8426. <img
  8427. @click="addTools(tooC, toolIndex, taskCount)"
  8428. src="../../assets/icon/fourthToolList/group.png"
  8429. alt
  8430. />
  8431. <div style="margin: 5px 0">学生分组</div>
  8432. </div>
  8433. </div>
  8434. <div class="toolSort" v-if="toolType == 2">
  8435. <div
  8436. class="tool"
  8437. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8438. @click="addTools2(16)"
  8439. >
  8440. <div class="whiteBIcon">
  8441. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8442. <div style="margin: 5px 0">作业提交</div>
  8443. </div>
  8444. <div class="check">
  8445. <div
  8446. v-if="checktoolArray.indexOf(16) == -1"
  8447. class="noChoose"
  8448. ></div>
  8449. <div v-else class="isChoose"></div>
  8450. </div>
  8451. </div>
  8452. <div
  8453. class="tool"
  8454. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8455. @click="addTools2(50)"
  8456. >
  8457. <div class="whiteBIcon">
  8458. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8459. <div style="margin: 5px 0">批量上传</div>
  8460. </div>
  8461. <div class="check">
  8462. <div
  8463. v-if="checktoolArray.indexOf(50) == -1"
  8464. class="noChoose"
  8465. ></div>
  8466. <div v-else class="isChoose"></div>
  8467. </div>
  8468. </div>
  8469. </div>
  8470. <div class="toolSort" v-if="toolType == 3">
  8471. <div
  8472. class="tool"
  8473. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8474. @click="addTools2(18)"
  8475. >
  8476. <div class="whiteBIcon">
  8477. <img
  8478. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8479. alt
  8480. />
  8481. <div style="margin: 5px 0">训练平台</div>
  8482. </div>
  8483. <div class="check">
  8484. <div
  8485. v-if="checktoolArray.indexOf(18) == -1"
  8486. class="noChoose"
  8487. ></div>
  8488. <div v-else class="isChoose"></div>
  8489. </div>
  8490. </div>
  8491. <div
  8492. class="tool"
  8493. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8494. @click="addTools2(21)"
  8495. >
  8496. <div class="whiteBIcon">
  8497. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8498. <div style="margin: 5px 0">AIoT Blockly</div>
  8499. </div>
  8500. <div class="check">
  8501. <div
  8502. v-if="checktoolArray.indexOf(21) == -1"
  8503. class="noChoose"
  8504. ></div>
  8505. <div v-else class="isChoose"></div>
  8506. </div>
  8507. </div>
  8508. <div
  8509. class="tool"
  8510. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8511. @click="addTools2(23)"
  8512. >
  8513. <div class="whiteBIcon">
  8514. <img
  8515. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8516. alt
  8517. />
  8518. <div style="margin: 5px 0">AI Python</div>
  8519. </div>
  8520. <div class="check">
  8521. <div
  8522. v-if="checktoolArray.indexOf(23) == -1"
  8523. class="noChoose"
  8524. ></div>
  8525. <div v-else class="isChoose"></div>
  8526. </div>
  8527. </div>
  8528. <div
  8529. class="tool"
  8530. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8531. @click="addTools2(24)"
  8532. >
  8533. <div class="whiteBIcon">
  8534. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8535. <div style="margin: 5px 0">AI Blockly</div>
  8536. </div>
  8537. <div class="check">
  8538. <div
  8539. v-if="checktoolArray.indexOf(24) == -1"
  8540. class="noChoose"
  8541. ></div>
  8542. <div v-else class="isChoose"></div>
  8543. </div>
  8544. </div>
  8545. <div
  8546. class="tool"
  8547. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8548. @click="addTools2(32)"
  8549. >
  8550. <div class="whiteBIcon">
  8551. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8552. <div style="margin: 5px 0">源码编辑</div>
  8553. </div>
  8554. <div class="check">
  8555. <div
  8556. v-if="checktoolArray.indexOf(32) == -1"
  8557. class="noChoose"
  8558. ></div>
  8559. <div v-else class="isChoose"></div>
  8560. </div>
  8561. </div>
  8562. <div
  8563. class="tool"
  8564. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8565. @click="addTools2(57)"
  8566. >
  8567. <div class="whiteBIcon">
  8568. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8569. <div style="margin: 5px 0">CocoPi</div>
  8570. </div>
  8571. <div class="check">
  8572. <div
  8573. v-if="checktoolArray.indexOf(57) == -1"
  8574. class="noChoose"
  8575. ></div>
  8576. <div v-else class="isChoose"></div>
  8577. </div>
  8578. </div>
  8579. <div
  8580. class="tool"
  8581. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8582. @click="addTools2(63)"
  8583. >
  8584. <div class="whiteBIcon">
  8585. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8586. <div style="margin: 5px 0">海龟编程</div>
  8587. </div>
  8588. <div class="check">
  8589. <div
  8590. v-if="checktoolArray.indexOf(63) == -1"
  8591. class="noChoose"
  8592. ></div>
  8593. <div v-else class="isChoose"></div>
  8594. </div>
  8595. </div>
  8596. <div
  8597. class="tool"
  8598. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8599. @click="addTools2(71)"
  8600. >
  8601. <div class="whiteBIcon">
  8602. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  8603. <div style="margin: 5px 0">AI智能体</div>
  8604. </div>
  8605. <div class="check">
  8606. <div
  8607. v-if="checktoolArray.indexOf(71) == -1"
  8608. class="noChoose"
  8609. ></div>
  8610. <div v-else class="isChoose"></div>
  8611. </div>
  8612. </div>
  8613. </div>
  8614. <div class="toolSort" v-if="toolType == 7">
  8615. <div
  8616. class="tool"
  8617. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8618. @click="addTools2(40)"
  8619. >
  8620. <div class="whiteBIcon">
  8621. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8622. <div style="margin: 5px 0">个人评价</div>
  8623. </div>
  8624. <div class="check">
  8625. <div
  8626. v-if="checktoolArray.indexOf(40) == -1"
  8627. class="noChoose"
  8628. ></div>
  8629. <div v-else class="isChoose"></div>
  8630. </div>
  8631. </div>
  8632. </div>
  8633. <div class="toolSort" v-if="toolType == 5">
  8634. <div
  8635. class="tool"
  8636. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8637. @click="addTools2(28)"
  8638. >
  8639. <div class="whiteBIcon">
  8640. <img
  8641. src="../../assets/icon/secondToolList/translation.png"
  8642. alt
  8643. />
  8644. <div style="margin: 5px 0">翻译</div>
  8645. </div>
  8646. <div class="check">
  8647. <div
  8648. v-if="checktoolArray.indexOf(28) == -1"
  8649. class="noChoose"
  8650. ></div>
  8651. <div v-else class="isChoose"></div>
  8652. </div>
  8653. </div>
  8654. <div
  8655. class="tool"
  8656. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8657. @click="addTools2(31)"
  8658. >
  8659. <div class="whiteBIcon">
  8660. <img
  8661. src="../../assets/icon/secondToolList/networkPanel.png"
  8662. alt
  8663. />
  8664. <div style="margin: 5px 0">数字画板</div>
  8665. </div>
  8666. <div class="check">
  8667. <div
  8668. v-if="checktoolArray.indexOf(31) == -1"
  8669. class="noChoose"
  8670. ></div>
  8671. <div v-else class="isChoose"></div>
  8672. </div>
  8673. </div>
  8674. <div
  8675. class="tool"
  8676. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8677. @click="addTools2(39)"
  8678. >
  8679. <div class="whiteBIcon">
  8680. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8681. <div style="margin: 5px 0">GeoGebra</div>
  8682. </div>
  8683. <div class="check">
  8684. <div
  8685. v-if="checktoolArray.indexOf(39) == -1"
  8686. class="noChoose"
  8687. ></div>
  8688. <div v-else class="isChoose"></div>
  8689. </div>
  8690. </div>
  8691. <div
  8692. class="tool"
  8693. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8694. @click="addTools2(66)"
  8695. >
  8696. <div class="whiteBIcon">
  8697. <img
  8698. src="../../assets/icon/secondToolList/formulaEdi.png"
  8699. alt
  8700. />
  8701. <div style="margin: 5px 0">公式编辑</div>
  8702. </div>
  8703. <div class="check">
  8704. <div
  8705. v-if="checktoolArray.indexOf(66) == -1"
  8706. class="noChoose"
  8707. ></div>
  8708. <div v-else class="isChoose"></div>
  8709. </div>
  8710. </div>
  8711. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8712. <div class="whiteBIcon" @click="addTools2(67)">
  8713. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8714. <div style="margin: 5px 0">分子结构</div>
  8715. </div>
  8716. <div class="check" @click="addTools2(67)">
  8717. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8718. <div v-else class="isChoose"></div>
  8719. </div>
  8720. </div> -->
  8721. <div
  8722. class="tool"
  8723. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8724. @click="addTools2(68)"
  8725. >
  8726. <div class="whiteBIcon">
  8727. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8728. <div style="margin: 5px 0">时间轴</div>
  8729. </div>
  8730. <div class="check">
  8731. <div
  8732. v-if="checktoolArray.indexOf(68) == -1"
  8733. class="noChoose"
  8734. ></div>
  8735. <div v-else class="isChoose"></div>
  8736. </div>
  8737. </div>
  8738. <!-- <div
  8739. class="tool"
  8740. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8741. @click="addTools2(69)"
  8742. >
  8743. <div class="whiteBIcon">
  8744. <img src="../../assets/icon/secondToolList/english.png" alt />
  8745. <div style="margin: 5px 0">英语写作</div>
  8746. </div>
  8747. <div class="check">
  8748. <div
  8749. v-if="checktoolArray.indexOf(69) == -1"
  8750. class="noChoose"
  8751. ></div>
  8752. <div v-else class="isChoose"></div>
  8753. </div>
  8754. </div> -->
  8755. </div>
  8756. <div class="toolSort" v-if="toolType == 4">
  8757. <div
  8758. class="tool"
  8759. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8760. @click="addTools2(26)"
  8761. >
  8762. <div class="whiteBIcon">
  8763. <img
  8764. src="../../assets/icon/thirdToolList/courseDesign.png"
  8765. alt
  8766. />
  8767. <div style="margin: 5px 0">课程设计</div>
  8768. </div>
  8769. <div class="check">
  8770. <div
  8771. v-if="checktoolArray.indexOf(26) == -1"
  8772. class="noChoose"
  8773. ></div>
  8774. <div v-else class="isChoose"></div>
  8775. </div>
  8776. </div>
  8777. <div
  8778. class="tool"
  8779. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8780. @click="addTools2(25)"
  8781. >
  8782. <div class="whiteBIcon">
  8783. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8784. <div style="margin: 5px 0">目标管理</div>
  8785. </div>
  8786. <div class="check">
  8787. <div
  8788. v-if="checktoolArray.indexOf(25) == -1"
  8789. class="noChoose"
  8790. ></div>
  8791. <div v-else class="isChoose"></div>
  8792. </div>
  8793. </div>
  8794. </div>
  8795. </div>
  8796. </div>
  8797. <span
  8798. slot="footer"
  8799. class="dialog-footer"
  8800. style="display: block; text-align: center; padding: 0 0 10px 0"
  8801. >
  8802. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8803. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8804. </span>
  8805. </div>
  8806. <div
  8807. v-if="replyDialogVisible == true"
  8808. class="addDialogCss"
  8809. v-el-drag-dialog
  8810. >
  8811. <div class="pzTop">
  8812. <div class="teacherPz">
  8813. <div class="teacherPzImg">
  8814. <img src="../../assets/icon/teacherPz.png" alt="" />
  8815. </div>
  8816. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8817. </div>
  8818. <div @click="replyDialogVisible = false">
  8819. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8820. </div>
  8821. </div>
  8822. <div class="addPzBox">
  8823. <!-- <div class="addPzCheck">
  8824. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8825. >文本</span
  8826. >
  8827. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8828. >音频</span
  8829. >
  8830. </div> -->
  8831. <div style="height: calc(100% - 50px)">
  8832. <editor-bar
  8833. class="binfo_input pzConText"
  8834. style="width: 100% !important; margin: 0 auto"
  8835. placeholder="请输入回复描述"
  8836. v-model="reply"
  8837. @change="change"
  8838. ></editor-bar>
  8839. </div>
  8840. <div class="addTextCss" @click="addHf">确定</div>
  8841. </div>
  8842. </div>
  8843. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8844. <div class="pzTop">
  8845. <div class="teacherPz">
  8846. <div class="teacherPzImg">
  8847. <img src="../../assets/icon/teacherPz.png" alt="" />
  8848. </div>
  8849. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8850. </div>
  8851. <div @click="addPzDialog = false">
  8852. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8853. </div>
  8854. </div>
  8855. <div class="addPzBox">
  8856. <div class="addPzCheck">
  8857. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8858. >文本</span
  8859. >
  8860. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8861. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8862. >音频</span
  8863. >
  8864. </div>
  8865. <div style="height: calc(100% - 95px)">
  8866. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8867. v-if="pzType == 1"></textarea> -->
  8868. <editor-bar
  8869. class="binfo_input pzConText"
  8870. style="width: 100% !important"
  8871. placeholder="请输入任务描述"
  8872. v-model="pzConText"
  8873. @change="change"
  8874. v-if="pzType == 1"
  8875. ></editor-bar>
  8876. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8877. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8878. <div @click="addImg($event)">
  8879. <el-button type="primary">上传图片</el-button>
  8880. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8881. @change="beforeUpload1($event, 4)" />
  8882. </div>
  8883. </div> -->
  8884. </div>
  8885. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8886. 确定
  8887. </div>
  8888. </div>
  8889. </div>
  8890. <div v-if="proVisible" class="mask">
  8891. <div class="progressBox">
  8892. <!-- <div id="closePro" class="closeCss">
  8893. <img src="../../assets/icon/close.png" alt />
  8894. </div> -->
  8895. <div class="lbox">
  8896. <img src="../../assets/loading.gif" />上传中,请稍后
  8897. </div>
  8898. <div style="margin-bottom: 10px">
  8899. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8900. </div>
  8901. <el-progress
  8902. :text-inside="true"
  8903. :stroke-width="20"
  8904. :percentage="progress"
  8905. style="width: 80%"
  8906. ></el-progress>
  8907. </div>
  8908. </div>
  8909. <div v-if="proVisible2" class="mask">
  8910. <div class="progressBox">
  8911. <div class="lbox">
  8912. <img src="../../assets/loading.gif" />上传中,请稍后
  8913. </div>
  8914. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8915. </div>
  8916. </div>
  8917. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8918. <img width="100%" :src="dialogImageUrl" alt />
  8919. </el-dialog>
  8920. <el-dialog
  8921. :title="noteName != '' ? noteName : '查看问卷'"
  8922. :visible.sync="dialogVisible5"
  8923. :append-to-body="true"
  8924. width="1000px"
  8925. :before-close="handleClose"
  8926. class="dialog_diy dialog_diy3"
  8927. >
  8928. <div>
  8929. <div
  8930. class="a_add_title"
  8931. style="
  8932. display: flex;
  8933. flex-direction: row;
  8934. align-items: center;
  8935. justify-content: center;
  8936. "
  8937. >
  8938. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8939. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8940. </div>
  8941. <div class="a_addBox">
  8942. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8943. 题目内容
  8944. </div>
  8945. <div
  8946. class="a_add_box"
  8947. v-for="(item1, index1) in askJson.askCount"
  8948. :key="index1"
  8949. >
  8950. <div class="a_add_head">
  8951. <div style="display: flex">
  8952. <span class="askIndex"> {{ index1 + 1 }}</span>
  8953. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8954. </div>
  8955. <img
  8956. v-if="askJson.askJson[index1].img"
  8957. :src="askJson.askJson[index1].img"
  8958. style="height: 300px; margin-top: 10px; max-width: 100%"
  8959. />
  8960. </div>
  8961. <div class="a_add_body">
  8962. <div class="a_add_input">
  8963. <el-radio-group
  8964. v-model="radio[index1]"
  8965. v-if="
  8966. askJson.askJson[index1].type == '1' ||
  8967. !askJson.askJson[index1].type
  8968. "
  8969. >
  8970. <el-radio
  8971. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8972. .checkList"
  8973. :key="checkIndex"
  8974. :label="checkIndex"
  8975. :disabled="isAnswer"
  8976. class="redioStyle"
  8977. ><span v-html="item2"></span
  8978. ></el-radio>
  8979. </el-radio-group>
  8980. <el-checkbox-group
  8981. v-model="radio[index1]"
  8982. v-if="askJson.askJson[index1].type == '2'"
  8983. >
  8984. <el-checkbox
  8985. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8986. .checkList"
  8987. :key="checkIndex1"
  8988. :label="checkIndex1"
  8989. :disabled="isAnswer"
  8990. class="redioStyle"
  8991. ><span v-html="item2"></span>
  8992. </el-checkbox>
  8993. </el-checkbox-group>
  8994. </div>
  8995. </div>
  8996. </div>
  8997. </div>
  8998. </div>
  8999. <span slot="footer" class="dialog-footer">
  9000. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9001. >取 消</el-button
  9002. >
  9003. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9004. >确 定</el-button
  9005. >
  9006. </span>
  9007. </el-dialog>
  9008. <el-dialog
  9009. :title="noteName != '' ? noteName : '查看问卷'"
  9010. :visible.sync="dialogVisible5Teacher"
  9011. :append-to-body="true"
  9012. width="1000px"
  9013. :before-close="handleClose"
  9014. class="dialog_diy dialog_diy3"
  9015. >
  9016. <div>
  9017. <div class="w_name">
  9018. 学生姓名:<span>{{ sStudent.student }}</span>
  9019. </div>
  9020. <div
  9021. class="a_add_title"
  9022. style="
  9023. display: flex;
  9024. flex-direction: row;
  9025. align-items: center;
  9026. justify-content: center;
  9027. "
  9028. >
  9029. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9030. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9031. </div>
  9032. <div class="a_addBox">
  9033. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9034. 题目内容
  9035. </div>
  9036. <div
  9037. class="a_add_box"
  9038. v-for="(item1, index1) in askJson.askCount"
  9039. :key="index1"
  9040. >
  9041. <div class="a_add_head">
  9042. <div style="display: flex">
  9043. <span class="askIndex">{{ index1 + 1 }}</span>
  9044. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9045. </div>
  9046. <img
  9047. v-if="askJson.askJson[index1].img"
  9048. :src="askJson.askJson[index1].img"
  9049. style="height: 300px; margin-top: 10px; max-width: 100%"
  9050. />
  9051. </div>
  9052. <div class="a_add_body">
  9053. <div class="a_add_input">
  9054. <el-radio-group
  9055. v-model="radio[index1]"
  9056. v-if="
  9057. askJson.askJson[index1].type == '1' ||
  9058. !askJson.askJson[index1].type
  9059. "
  9060. >
  9061. <el-radio
  9062. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9063. .checkList"
  9064. :key="checkIndex"
  9065. :label="checkIndex"
  9066. :disabled="isAnswer"
  9067. class="redioStyle"
  9068. ><span v-html="item2"></span
  9069. ></el-radio>
  9070. </el-radio-group>
  9071. <el-checkbox-group
  9072. v-model="radio[index1]"
  9073. v-if="askJson.askJson[index1].type == '2'"
  9074. >
  9075. <el-checkbox
  9076. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9077. .checkList"
  9078. :key="checkIndex1"
  9079. :label="checkIndex1"
  9080. :disabled="isAnswer"
  9081. class="redioStyle"
  9082. ><span v-html="item2"></span>
  9083. </el-checkbox>
  9084. </el-checkbox-group>
  9085. </div>
  9086. </div>
  9087. </div>
  9088. </div>
  9089. </div>
  9090. <span slot="footer" class="dialog-footer">
  9091. <el-button
  9092. @click="dialogVisible5Teacher = false"
  9093. v-show="noteName == ''"
  9094. >取 消</el-button
  9095. >
  9096. <el-button
  9097. type="primary"
  9098. @click="addStudentAskTeacher"
  9099. v-show="noteName == ''"
  9100. >确 定</el-button
  9101. >
  9102. </span>
  9103. </el-dialog>
  9104. <el-dialog
  9105. :title="noteName != '' ? noteName : '查看选择题'"
  9106. :visible.sync="dialogVisibleChoice"
  9107. :append-to-body="true"
  9108. width="1000px"
  9109. :before-close="handleClose"
  9110. class="dialog_diy dialog_diy3"
  9111. >
  9112. <div>
  9113. <!-- <div class="a_add_title" style="
  9114. display: flex;
  9115. flex-direction: row;
  9116. align-items: center;
  9117. justify-content: center;
  9118. ">
  9119. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9120. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9121. </div> -->
  9122. <div class="a_addBox">
  9123. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9124. 题目内容
  9125. </div>
  9126. <div
  9127. class="a_add_box"
  9128. v-for="(item1, index1) in testJson.testCount"
  9129. :key="index1"
  9130. >
  9131. <div class="a_add_head">
  9132. <div style="display: flex">
  9133. <span class="askIndex">{{ index1 + 1 }}</span>
  9134. <div
  9135. v-if="testJson.testJson[index1].type == '1'"
  9136. style="margin-right: 5px; min-width: 70px"
  9137. >
  9138. (单选题)
  9139. </div>
  9140. <div
  9141. v-if="testJson.testJson[index1].type == '2'"
  9142. style="margin-right: 5px; min-width: 70px"
  9143. >
  9144. (多选题)
  9145. </div>
  9146. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9147. </div>
  9148. <img
  9149. v-if="testJson.testJson[index1].img"
  9150. :src="testJson.testJson[index1].img"
  9151. style="height: 300px; margin-top: 10px; max-width: 100%"
  9152. />
  9153. </div>
  9154. <div
  9155. class="timuImgBox"
  9156. v-if="
  9157. testJson.testJson[index1].timuList &&
  9158. testJson.testJson[index1].timuList.length
  9159. "
  9160. >
  9161. <div
  9162. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9163. :key="tIndex"
  9164. class="timuImg"
  9165. @click.stop="previewImg(timg.src)"
  9166. >
  9167. <img :src="timg.src" alt="" />
  9168. </div>
  9169. </div>
  9170. <div class="a_add_body">
  9171. <div class="a_add_input">
  9172. <el-radio-group
  9173. v-model="radio[index1]"
  9174. v-if="testJson.testJson[index1].type == '1'"
  9175. >
  9176. <div class="radioBox">
  9177. <el-radio
  9178. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9179. .checkList"
  9180. :key="checkIndex"
  9181. :label="checkIndex"
  9182. :disabled="isAnswer"
  9183. class="redioStyle"
  9184. >
  9185. <div
  9186. style="margin-right: 10px"
  9187. v-if="item2 && item2.imgType && item2.imgType == 1"
  9188. >
  9189. <div class="inImg" @click.stop="previewImg(item2.src)">
  9190. <img :src="item2.src" alt="" />
  9191. </div>
  9192. </div>
  9193. <span v-else v-html="item2"></span>
  9194. </el-radio>
  9195. </div>
  9196. </el-radio-group>
  9197. <el-checkbox-group
  9198. v-model="radio[index1]"
  9199. v-if="testJson.testJson[index1].type == '2'"
  9200. >
  9201. <div class="radioBox">
  9202. <el-checkbox
  9203. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9204. .checkList"
  9205. :key="checkIndex"
  9206. :label="checkIndex"
  9207. :disabled="isAnswer"
  9208. class="redioStyle"
  9209. >
  9210. <div
  9211. style="margin-right: 10px"
  9212. v-if="item2 && item2.imgType && item2.imgType == 1"
  9213. >
  9214. <div class="inImg" @click.stop="previewImg(item2.src)">
  9215. <img :src="item2.src" alt="" />
  9216. </div>
  9217. </div>
  9218. <span v-else v-html="item2"></span>
  9219. </el-checkbox>
  9220. </div>
  9221. </el-checkbox-group>
  9222. </div>
  9223. </div>
  9224. </div>
  9225. </div>
  9226. </div>
  9227. <span slot="footer" class="dialog-footer">
  9228. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9229. >取 消</el-button
  9230. >
  9231. <el-button
  9232. type="primary"
  9233. @click="addStudentTest"
  9234. v-show="noteName == ''"
  9235. >确 定</el-button
  9236. >
  9237. </span>
  9238. </el-dialog>
  9239. <el-dialog
  9240. :title="noteName != '' ? noteName : '查看选择题'"
  9241. :visible.sync="dialogVisibleChoiceTeacher"
  9242. :append-to-body="true"
  9243. width="1000px"
  9244. :before-close="handleClose"
  9245. class="dialog_diy dialog_diy3"
  9246. >
  9247. <div>
  9248. <div class="w_name">
  9249. 学生姓名:<span>{{ sStudent.student }}</span>
  9250. </div>
  9251. <div class="a_addBox">
  9252. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9253. 题目内容
  9254. </div>
  9255. <div
  9256. class="a_add_box"
  9257. v-for="(item1, index1) in testJson.testCount"
  9258. :key="index1"
  9259. >
  9260. <div class="a_add_head">
  9261. <div style="display: flex">
  9262. <span class="askIndex">{{ index1 + 1 }}</span>
  9263. <div
  9264. v-if="testJson.testJson[index1].type == '1'"
  9265. style="margin-right: 5px; min-width: 70px"
  9266. >
  9267. (单选题)
  9268. </div>
  9269. <div
  9270. v-if="testJson.testJson[index1].type == '2'"
  9271. style="margin-right: 5px; min-width: 70px"
  9272. >
  9273. (多选题)
  9274. </div>
  9275. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9276. </div>
  9277. <img
  9278. v-if="testJson.testJson[index1].img"
  9279. :src="testJson.testJson[index1].img"
  9280. style="height: 300px; margin-top: 10px; max-width: 100%"
  9281. />
  9282. </div>
  9283. <div
  9284. class="timuImgBox"
  9285. v-if="
  9286. testJson.testJson[index1].timuList &&
  9287. testJson.testJson[index1].timuList.length
  9288. "
  9289. >
  9290. <div
  9291. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9292. :key="tIndex"
  9293. class="timuImg"
  9294. @click.stop="previewImg(timg.src)"
  9295. >
  9296. <img :src="timg.src" alt="" />
  9297. </div>
  9298. </div>
  9299. <div class="a_add_body">
  9300. <div class="a_add_input">
  9301. <el-radio-group
  9302. v-model="radio[index1]"
  9303. v-if="testJson.testJson[index1].type == '1'"
  9304. >
  9305. <div class="radioBox">
  9306. <el-radio
  9307. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9308. .checkList"
  9309. :key="checkIndex"
  9310. :label="checkIndex"
  9311. :disabled="isAnswer"
  9312. class="redioStyle"
  9313. >
  9314. <div
  9315. style="margin-right: 10px"
  9316. v-if="item2 && item2.imgType && item2.imgType == 1"
  9317. >
  9318. <div class="inImg" @click.stop="previewImg(item2.src)">
  9319. <img :src="item2.src" alt="" />
  9320. </div>
  9321. </div>
  9322. <span v-else v-html="item2"></span>
  9323. </el-radio>
  9324. </div>
  9325. </el-radio-group>
  9326. <el-checkbox-group
  9327. v-model="radio[index1]"
  9328. v-if="testJson.testJson[index1].type == '2'"
  9329. >
  9330. <div class="radioBox">
  9331. <el-checkbox
  9332. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9333. .checkList"
  9334. :key="checkIndex"
  9335. :label="checkIndex"
  9336. :disabled="isAnswer"
  9337. class="redioStyle"
  9338. >
  9339. <div
  9340. style="margin-right: 10px"
  9341. v-if="item2 && item2.imgType && item2.imgType == 1"
  9342. >
  9343. <div class="inImg" @click.stop="previewImg(item2.src)">
  9344. <img :src="item2.src" alt="" />
  9345. </div>
  9346. </div>
  9347. <span v-else v-html="item2"></span>
  9348. </el-checkbox>
  9349. </div>
  9350. </el-checkbox-group>
  9351. </div>
  9352. </div>
  9353. </div>
  9354. </div>
  9355. </div>
  9356. <span slot="footer" class="dialog-footer">
  9357. <el-button
  9358. @click="dialogVisibleChoiceTeacher = false"
  9359. v-show="noteName == ''"
  9360. >取 消</el-button
  9361. >
  9362. <el-button
  9363. type="primary"
  9364. @click="addStudentTestTeacher"
  9365. v-show="noteName == ''"
  9366. >确 定</el-button
  9367. >
  9368. </span>
  9369. </el-dialog>
  9370. <el-dialog
  9371. title="查看富文本"
  9372. :visible.sync="dialogVisible1"
  9373. :append-to-body="true"
  9374. width="500px"
  9375. :before-close="handleClose"
  9376. class="dialog_diy textCss"
  9377. >
  9378. <el-form style="font-size: 20px">
  9379. <el-form-item label="文本标题" class="textTitle">
  9380. <div style="font-size: 20px">{{ text.name }}</div>
  9381. </el-form-item>
  9382. <div>富文本内容</div>
  9383. <div
  9384. v-html="text.url"
  9385. style="font-size: 18px; padding: 40px 0 0 0"
  9386. ></div>
  9387. </el-form>
  9388. <span slot="footer" class="dialog-footer">
  9389. <el-button type="primary" @click="dialogVisible1 = false"
  9390. >确定</el-button
  9391. >
  9392. </span>
  9393. </el-dialog>
  9394. <el-dialog
  9395. title="文件预览"
  9396. :visible.sync="dialogVisible3"
  9397. width="50%"
  9398. :before-close="handleClose"
  9399. class="dialog_diy"
  9400. :class="{ fullStyle: full }"
  9401. >
  9402. <div slot="title" class="header-title">
  9403. <div style="color: #fff">文件预览</div>
  9404. <div style="position: absolute; top: 19px; right: 50px">
  9405. <img
  9406. src="../../assets/full.png"
  9407. style="height: 16px; cursor: pointer"
  9408. alt=""
  9409. @click="fullTools"
  9410. />
  9411. </div>
  9412. </div>
  9413. <pdf
  9414. v-if="showPDF"
  9415. :pdfUrl="pptImgUrl"
  9416. style="width: 100%; height: 520px; overflow: auto"
  9417. :class="{ fullStyle: full }"
  9418. ></pdf>
  9419. <iframe
  9420. v-else
  9421. :src="pptImgUrl"
  9422. frameborder="0"
  9423. width="100%"
  9424. height="600"
  9425. :class="{ fullStyle: full }"
  9426. ></iframe>
  9427. </el-dialog>
  9428. <el-dialog
  9429. title="文件预览"
  9430. :visible.sync="dialogVisible6"
  9431. width="50%"
  9432. :before-close="handleClose"
  9433. class="dialog_diy"
  9434. >
  9435. <iframe
  9436. :src="pptImgUrl1"
  9437. frameborder="0"
  9438. width="100%"
  9439. height="600"
  9440. ></iframe>
  9441. </el-dialog>
  9442. <el-dialog
  9443. title="提示"
  9444. :visible.sync="dialogVisible4"
  9445. :append-to-body="true"
  9446. width="800px"
  9447. :before-close="handleClose"
  9448. class="dialog_diy notice"
  9449. >
  9450. <div>此功能暂未开放!</div>
  9451. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9452. </el-dialog>
  9453. <el-dialog
  9454. title="问答"
  9455. :visible.sync="answerDialogVisible"
  9456. :append-to-body="true"
  9457. width="800px"
  9458. :before-close="handleClose"
  9459. class="dialog_diy"
  9460. >
  9461. <div>
  9462. <div
  9463. style="
  9464. display: flex;
  9465. flex-wrap: nowrap;
  9466. flex-direction: column;
  9467. position: relative;
  9468. "
  9469. >
  9470. <div class="queTop" style="padding: 20px 0 20px 0">
  9471. <div class="question">
  9472. <img src="../../assets/icon/question.png" alt />
  9473. </div>
  9474. <div class="queTitle">
  9475. <div style="width: 90px; min-width: 90px">提问:</div>
  9476. <div>{{ answerQ }}</div>
  9477. </div>
  9478. </div>
  9479. <div class="ediBottom">
  9480. <textarea
  9481. rows="6"
  9482. class="binfo_input"
  9483. cols
  9484. style="width: 95%; height: 120px"
  9485. v-model="questionAnswer"
  9486. ></textarea>
  9487. </div>
  9488. </div>
  9489. </div>
  9490. <div slot="footer">
  9491. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9492. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9493. </div>
  9494. </el-dialog>
  9495. <el-dialog
  9496. title="问答"
  9497. :visible.sync="answerDialogVisibleTeacher"
  9498. :append-to-body="true"
  9499. width="800px"
  9500. :before-close="handleClose"
  9501. class="dialog_diy"
  9502. >
  9503. <div>
  9504. <div class="w_name">
  9505. 学生姓名:<span>{{ sStudent.student }}</span>
  9506. </div>
  9507. <div
  9508. style="
  9509. display: flex;
  9510. flex-wrap: nowrap;
  9511. flex-direction: column;
  9512. position: relative;
  9513. "
  9514. >
  9515. <div class="queTop" style="padding: 20px 0 20px 0">
  9516. <div class="question">
  9517. <img src="../../assets/icon/question.png" alt />
  9518. </div>
  9519. <div class="queTitle">
  9520. <div style="width: 90px; min-width: 90px">提问:</div>
  9521. <div>{{ answerQ }}</div>
  9522. </div>
  9523. </div>
  9524. <div class="ediBottom">
  9525. <textarea
  9526. rows="6"
  9527. class="binfo_input"
  9528. cols
  9529. style="width: 95%; height: 120px"
  9530. v-model="questionAnswer"
  9531. ></textarea>
  9532. </div>
  9533. </div>
  9534. </div>
  9535. <div slot="footer">
  9536. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9537. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9538. </div>
  9539. </el-dialog>
  9540. <el-dialog
  9541. title="倒计时"
  9542. :visible.sync="timeDialogVisible"
  9543. :append-to-body="true"
  9544. width="800px"
  9545. :before-close="handleClose"
  9546. class="dialog_diy"
  9547. >
  9548. <div>
  9549. <div style="margin-bottom: 20px; color: #999">
  9550. 提示:点击“+”或“-”修改倒计时时长。
  9551. </div>
  9552. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9553. </div>
  9554. <div slot="footer">
  9555. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9556. </div>
  9557. </el-dialog>
  9558. <el-dialog
  9559. title="权限设置"
  9560. :visible.sync="juriVisible"
  9561. :append-to-body="true"
  9562. width="400px"
  9563. :before-close="handleClose"
  9564. class="dialog_diy"
  9565. >
  9566. <div>
  9567. <div class="open_box">
  9568. <div class="switch_box">
  9569. <span>允许学生查看所有作业</span>
  9570. <el-switch
  9571. v-model="sIsOpen"
  9572. active-text=""
  9573. class="switchCss"
  9574. @change="updateSLook"
  9575. ></el-switch>
  9576. </div>
  9577. <div
  9578. class="switch_box"
  9579. v-if="
  9580. courseDetail.userid == userid ||
  9581. (courseDetail.course_teacher &&
  9582. courseDetail.course_teacher.indexOf(userid) != -1)
  9583. "
  9584. >
  9585. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9586. <span>禁止学生查看所有阶段</span>
  9587. <el-switch
  9588. v-model="IsLookOpen"
  9589. active-text=""
  9590. class="switchCss"
  9591. @change="updateLookOpen"
  9592. ></el-switch>
  9593. </div>
  9594. <div class="switch_box" v-if="courseDetail.userid == userid">
  9595. <span>开启跟随模式</span>
  9596. <el-switch
  9597. v-model="IsFollow"
  9598. active-text=""
  9599. class="switchCss"
  9600. @change="updateFollow"
  9601. ></el-switch>
  9602. </div>
  9603. </div>
  9604. </div>
  9605. <div slot="footer">
  9606. <el-button
  9607. style="background: #409efe; color: #fff"
  9608. @click="juriVisible = false"
  9609. >关 闭</el-button
  9610. >
  9611. </div>
  9612. </el-dialog>
  9613. <el-dialog
  9614. title="查看视频"
  9615. :visible.sync="videoVisible"
  9616. :append-to-body="true"
  9617. width="1000px"
  9618. :before-close="handleClose"
  9619. class="dialog_diy1"
  9620. >
  9621. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9622. <video-player
  9623. class="video-player vjs-custom-skin"
  9624. :playsinline="true"
  9625. :options="videoDetail"
  9626. @play="onPlayerPlay($event)"
  9627. style="width: 100%; height: 100%"
  9628. ></video-player>
  9629. </div>
  9630. <div slot="footer">
  9631. <el-button
  9632. style="background: #409efe; color: #fff"
  9633. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9634. >
  9635. 关 闭</el-button
  9636. >
  9637. </div>
  9638. </el-dialog>
  9639. <el-dialog
  9640. title="查看详情"
  9641. :visible.sync="commentDialogVisible"
  9642. :append-to-body="true"
  9643. width="800px"
  9644. :before-close="handleClose"
  9645. class="dialog_diy"
  9646. >
  9647. <div class="commentTop">
  9648. <div class="studentDetail">
  9649. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9650. <div class="nameAndTime">
  9651. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9652. <div>{{ commentDetail.time }}</div>
  9653. </div>
  9654. <div
  9655. class="returnBtn"
  9656. style="margin-left: auto; width: 80px"
  9657. v-if="
  9658. commentDetail.works &&
  9659. commentDetail.type == 0 &&
  9660. (tType == 1 || tType == 4)
  9661. "
  9662. @click="
  9663. showPicturePaint(
  9664. commentDetail.img ? commentDetail.img : commentDetail.works
  9665. )
  9666. "
  9667. >
  9668. 教师批注
  9669. </div>
  9670. </div>
  9671. <div
  9672. class="worksAnswer"
  9673. v-if="commentDetail.works && commentDetail.type == 2"
  9674. >
  9675. {{ JSON.parse(commentDetail.works)[0].answer }}
  9676. </div>
  9677. <div
  9678. class="worksAnswer"
  9679. v-if="commentDetail.works && commentDetail.type == 1"
  9680. >
  9681. <img
  9682. src="../../assets/teacherWork.png"
  9683. v-if="commentDetail.ateacher"
  9684. class="w_teachert"
  9685. />
  9686. <pdf
  9687. v-if="showPDF"
  9688. :pdfUrl="pptImgUrl"
  9689. style="width: 100%; height: 520px; overflow: auto"
  9690. :class="{ fullStyle: full }"
  9691. ></pdf>
  9692. <iframe
  9693. v-else
  9694. :src="pptImgUrl"
  9695. frameborder="0"
  9696. width="100%"
  9697. height="600"
  9698. :class="{ fullStyle: full }"
  9699. ></iframe>
  9700. </div>
  9701. <div
  9702. class="worksAnswer"
  9703. v-if="commentDetail.works && commentDetail.type == 0"
  9704. >
  9705. <img
  9706. src="../../assets/teacherWork.png"
  9707. v-if="commentDetail.ateacher"
  9708. class="w_teachert"
  9709. style="right: 105px"
  9710. />
  9711. <img
  9712. :src="commentDetail.works"
  9713. alt=""
  9714. @click="previewImg(commentDetail.works)"
  9715. />
  9716. </div>
  9717. <div
  9718. class="worksAnswer"
  9719. v-if="commentDetail.works && commentDetail.type == 3"
  9720. >
  9721. <img
  9722. src="../../assets/teacherWork.png"
  9723. v-if="commentDetail.ateacher"
  9724. class="w_teachert"
  9725. />
  9726. <video-player
  9727. class="video-player vjs-custom-skin"
  9728. :playsinline="true"
  9729. :options="videoDetail"
  9730. @play="onPlayerPlay($event)"
  9731. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9732. ></video-player>
  9733. </div>
  9734. <div
  9735. class="worksAnswer"
  9736. v-if="commentDetail.works && commentDetail.type == 10"
  9737. >
  9738. <div class="cont" v-html="commentDetail.works.text"></div>
  9739. </div>
  9740. <div
  9741. class="worksAnswer codeFileBox"
  9742. v-if="commentDetail.works && commentDetail.type == 12"
  9743. @click="downloadFile(commentDetail.works)"
  9744. >
  9745. <img src="../../assets/icon/codeFile.png" />
  9746. <div>点击下载文件</div>
  9747. </div>
  9748. <div
  9749. class="worksAnswer codeFileBox"
  9750. v-if="commentDetail.works && commentDetail.type == 15"
  9751. @click="
  9752. openCocoPi(
  9753. 57,
  9754. commentIndexJson.toolIndex,
  9755. commentDetail.userid,
  9756. commentDetail.sName
  9757. )
  9758. "
  9759. >
  9760. <img src="../../assets/icon/codeFile.png" />
  9761. <div>点击打开CocoPi</div>
  9762. </div>
  9763. <div
  9764. class="worksAnswer"
  9765. v-if="commentDetail.works && commentDetail.type == 13"
  9766. >
  9767. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9768. </div>
  9769. <div
  9770. class="worksAnswer"
  9771. v-if="commentDetail.works && commentDetail.type == 4"
  9772. >
  9773. <div class="evalCss">
  9774. <div class="nav">请选择星星进行评分</div>
  9775. <div class="middleBox" v-if="eScore.eStar">
  9776. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9777. <div class="nameAndrate">
  9778. <div>{{ e.value }}</div>
  9779. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9780. </div>
  9781. <div v-if="e.detail">{{ e.detail }}</div>
  9782. </div>
  9783. <div class="bz">
  9784. <textarea
  9785. disabled
  9786. rows="4"
  9787. class="pj"
  9788. style="
  9789. padding: 10px 5px;
  9790. width: 70%;
  9791. background: #f7f6f9;
  9792. font-size: 14px;
  9793. text-indent: 10px;
  9794. color: #000;
  9795. "
  9796. cols
  9797. v-model="eScore.eBzText"
  9798. placeholder="请输入评价内容..."
  9799. ></textarea>
  9800. </div>
  9801. </div>
  9802. </div>
  9803. </div>
  9804. <div class="comment">
  9805. <div class="commentList">
  9806. <div class="commentImg">
  9807. <img
  9808. @click="
  9809. isLikes(
  9810. commentDetail.wid,
  9811. userid,
  9812. 1,
  9813. null,
  9814. commentDetail.isLikes,
  9815. commentDetail.sName
  9816. )
  9817. "
  9818. :src="commentDetail.isLikes == true ? likes : noLikes"
  9819. alt=""
  9820. />
  9821. </div>
  9822. <div>{{ commentDetail.likesCount }}</div>
  9823. </div>
  9824. <div class="commentList">
  9825. <div class="commentImg">
  9826. <img src="../../assets/icon/comment/comment.png" alt="" />
  9827. </div>
  9828. <div>{{ commentDetail.commentCount }}</div>
  9829. </div>
  9830. </div>
  9831. <div class="drawPBox" v-if="commentDetail.img">
  9832. <span>教师批注</span>
  9833. <img
  9834. :src="commentDetail.img"
  9835. alt=""
  9836. @click="previewImg(commentDetail.img)"
  9837. />
  9838. <span
  9839. class="deleteImg"
  9840. v-if="tType == 1 || tType == 4"
  9841. @click.stop="deletePicturePaint(commentDetail.wid)"
  9842. style="
  9843. font-size: 14px;
  9844. width: auto !important;
  9845. color: #b4b4b4;
  9846. top: unset;
  9847. bottom: 0;
  9848. border: none;
  9849. padding: 0;
  9850. height: auto !important;
  9851. margin: 0;
  9852. "
  9853. >删除</span
  9854. >
  9855. </div>
  9856. </div>
  9857. <div class="commentBox">
  9858. <div class="pl">评论:</div>
  9859. <div style="max-height: 200px; overflow: auto">
  9860. <div
  9861. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9862. style="padding: 10px 0 0 0"
  9863. >
  9864. <div
  9865. class="studentDetail"
  9866. style="padding-top: 10px"
  9867. v-for="(co, coIndex) in commentDetail.commentJson"
  9868. :key="coIndex"
  9869. >
  9870. <div class="tx" style="min-width: 50px">
  9871. <img src="../../assets/avatar.png" alt="" />
  9872. </div>
  9873. <div class="plPerson">
  9874. <div class="plName">
  9875. <div>{{ co.commentPeople }}</div>
  9876. <div style="margin-left: 5px">
  9877. {{ co.commentTime }}
  9878. </div>
  9879. <div
  9880. class="deleteComment"
  9881. v-if="userid == co.userid"
  9882. @click="deleteComment(co.wid)"
  9883. >
  9884. 删除
  9885. </div>
  9886. </div>
  9887. <div class="plContent">{{ co.commentText }}</div>
  9888. </div>
  9889. </div>
  9890. </div>
  9891. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9892. </div>
  9893. </div>
  9894. <div style="margin-top: 10px">
  9895. <div class="displayBox">
  9896. <div
  9897. style="
  9898. color: #556db4;
  9899. font-size: 14px;
  9900. font-weight: bold;
  9901. padding-bottom: 10px;
  9902. "
  9903. >
  9904. 评价
  9905. </div>
  9906. <div class="easy_comment" v-if="false">
  9907. <div
  9908. v-for="(p, pIndex) in PlTextList"
  9909. :key="pIndex"
  9910. @click="fastText(p, 1)"
  9911. >
  9912. {{ p }}
  9913. </div>
  9914. </div>
  9915. </div>
  9916. <div>
  9917. <textarea
  9918. rows="3"
  9919. class="pj"
  9920. style="padding: 10px 5px"
  9921. cols
  9922. v-model="commentText"
  9923. placeholder="请输入评论"
  9924. ></textarea>
  9925. </div>
  9926. </div>
  9927. <div slot="footer">
  9928. <el-button
  9929. @click="
  9930. (commentDialogVisible = false),
  9931. (commentIndexJson = {}),
  9932. videoDetail.sources && videoDetail.sources[0]
  9933. ? (videoDetail.sources[0].src = '')
  9934. : ''
  9935. "
  9936. >取 消</el-button
  9937. >
  9938. <el-button
  9939. type="primary"
  9940. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  9941. >确 定</el-button
  9942. >
  9943. </div>
  9944. </el-dialog>
  9945. <el-dialog
  9946. title="查看文档"
  9947. :visible.sync="fullDialogVisible"
  9948. :append-to-body="true"
  9949. width="100%"
  9950. :before-close="handleClose"
  9951. :show-close="false"
  9952. class="dialog_diy full_diy"
  9953. :class="{ full_diy2: fulltype == 3 }"
  9954. >
  9955. <div slot="title" class="header-title">
  9956. <div style="color: #fff">查看文档</div>
  9957. <div
  9958. @click="fullDialogVisible = false"
  9959. style="
  9960. cursor: pointer;
  9961. position: absolute;
  9962. top: 20px;
  9963. right: 20px;
  9964. color: #fff;
  9965. "
  9966. >
  9967. 退出全屏
  9968. </div>
  9969. </div>
  9970. <div style="height: 100%">
  9971. <div
  9972. class="wheel"
  9973. v-if="
  9974. fulltype == 2 &&
  9975. fullUrl.indexOf(
  9976. 'https://view.officeapps.live.com/op/view.aspx?src='
  9977. ) != -1
  9978. "
  9979. style="width: 95%; margin: 0 auto"
  9980. >
  9981. <iframe
  9982. style="width: 100%; height: 100%; border: none"
  9983. :src="fullUrl"
  9984. ></iframe>
  9985. </div>
  9986. <iframe
  9987. v-else-if="fulltype == 2"
  9988. style="width: 100%; height: 100%; border: none"
  9989. :src="fullUrl"
  9990. security="restricted"
  9991. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9992. ></iframe>
  9993. <pdf
  9994. v-else-if="fulltype == 3"
  9995. :pdfUrl="fullUrl"
  9996. style="width: 100%; height: 100%; overflow: auto"
  9997. ></pdf>
  9998. <div
  9999. class="wheel"
  10000. v-if="fulltype == 1"
  10001. style="
  10002. box-shadow: 0 0 6px 1px #f2f2f2;
  10003. width: 100%;
  10004. background: #f1f1f1;
  10005. "
  10006. >
  10007. <div class="title" style="width: 100%; box-sizing: border-box">
  10008. 查看文档
  10009. </div>
  10010. <el-form class="textBox" style="height: 90%">
  10011. <el-form-item class="textTitle">
  10012. <div style="font-size: 22px">
  10013. {{ fullUrl.name }}
  10014. </div>
  10015. </el-form-item>
  10016. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10017. <div
  10018. v-html="fullUrl.url"
  10019. class="textContent"
  10020. style="height: auto"
  10021. ></div>
  10022. </el-form>
  10023. </div>
  10024. </div>
  10025. <!-- <div slot="footer">
  10026. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10027. </div> -->
  10028. </el-dialog>
  10029. <el-dialog
  10030. title="个人评价"
  10031. :visible.sync="studentEvalDialogVisible"
  10032. :append-to-body="true"
  10033. width="800px"
  10034. :before-close="handleClose"
  10035. class="dialog_diy"
  10036. >
  10037. <div class="evalCss">
  10038. <div class="nav">请选择星星进行评分</div>
  10039. <div class="middleBox" v-if="eScore.eStar">
  10040. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10041. <div class="nameAndrate">
  10042. <div>{{ e.value }}</div>
  10043. <el-rate
  10044. v-model="eScore.eStar[eIndex]"
  10045. :disabled="isStar"
  10046. ></el-rate>
  10047. </div>
  10048. <div v-if="e.detail">{{ e.detail }}</div>
  10049. </div>
  10050. <div class="easy_comment" v-if="false">
  10051. <div
  10052. v-for="(p, pIndex) in PlTextList"
  10053. :key="pIndex"
  10054. @click="fastText(p, 2)"
  10055. >
  10056. {{ p }}
  10057. </div>
  10058. </div>
  10059. <div class="bz">
  10060. <textarea
  10061. :disabled="isStar"
  10062. rows="4"
  10063. class="pj"
  10064. style="
  10065. padding: 10px 5px;
  10066. width: 70%;
  10067. background: #f7f6f9;
  10068. font-size: 14px;
  10069. text-indent: 10px;
  10070. "
  10071. cols
  10072. v-model="eScore.eBzText"
  10073. placeholder="请输入评价内容..."
  10074. ></textarea>
  10075. </div>
  10076. </div>
  10077. </div>
  10078. <div slot="footer">
  10079. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10080. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10081. >确 定</el-button
  10082. >
  10083. </div>
  10084. </el-dialog>
  10085. <el-dialog
  10086. title="个人评价"
  10087. :visible.sync="studentEvalDialogVisibleTeacher"
  10088. :append-to-body="true"
  10089. width="800px"
  10090. :before-close="handleClose"
  10091. class="dialog_diy"
  10092. >
  10093. <div class="w_name">
  10094. 学生姓名:<span>{{ sStudent.student }}</span>
  10095. </div>
  10096. <div class="evalCss">
  10097. <div class="nav">请选择星星进行评分</div>
  10098. <div class="middleBox" v-if="eScore.eStar">
  10099. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10100. <div class="nameAndrate">
  10101. <div>{{ e.value }}</div>
  10102. <el-rate
  10103. v-model="eScore.eStar[eIndex]"
  10104. :disabled="isStar"
  10105. ></el-rate>
  10106. </div>
  10107. <div v-if="e.detail">{{ e.detail }}</div>
  10108. </div>
  10109. <div class="easy_comment" v-if="false">
  10110. <div
  10111. v-for="(p, pIndex) in PlTextList"
  10112. :key="pIndex"
  10113. @click="fastText(p, 2)"
  10114. >
  10115. {{ p }}
  10116. </div>
  10117. </div>
  10118. <div class="bz">
  10119. <textarea
  10120. :disabled="isStar"
  10121. rows="4"
  10122. class="pj"
  10123. style="
  10124. padding: 10px 5px;
  10125. width: 70%;
  10126. background: #f7f6f9;
  10127. font-size: 14px;
  10128. text-indent: 10px;
  10129. "
  10130. cols
  10131. v-model="eScore.eBzText"
  10132. placeholder="请输入评价内容..."
  10133. ></textarea>
  10134. </div>
  10135. </div>
  10136. </div>
  10137. <div slot="footer">
  10138. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10139. >取 消</el-button
  10140. >
  10141. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10142. >确 定</el-button
  10143. >
  10144. </div>
  10145. </el-dialog>
  10146. <el-dialog
  10147. title="选择匹配"
  10148. :visible.sync="dialogVisibleSelect"
  10149. :append-to-body="true"
  10150. width="90%"
  10151. :before-close="handleClose"
  10152. class="dialog_diy dialog_diy3"
  10153. >
  10154. <div v-if="selectJson">
  10155. <div class="select_box2">
  10156. <div class="select_box2_title">
  10157. <div>选择匹配</div>
  10158. <div>请选择对应的答案进行答题!</div>
  10159. </div>
  10160. <div class="select_box2_box">
  10161. <div class="select_box2_img">
  10162. <img
  10163. :src="selectJson.url"
  10164. @click="previewImg(selectJson.url)"
  10165. alt=""
  10166. />
  10167. </div>
  10168. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10169. <div style="padding-top: 15px">
  10170. <div class="select_answer_title" v-if="isSelect">
  10171. {{ selectAnswer.stu }}
  10172. </div>
  10173. <div class="select_answer_title" v-else>
  10174. 根据题目选择对应答案
  10175. </div>
  10176. <div
  10177. class="select_box2_answer_box"
  10178. v-for="(item2, checkIndex) in selectJson.select"
  10179. :key="checkIndex"
  10180. >
  10181. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10182. <el-select
  10183. :disabled="isSelect"
  10184. v-model="selectAnswer.answer[checkIndex]"
  10185. placeholder="请选择正确答案"
  10186. >
  10187. <el-option
  10188. v-for="(e, eIndex) in selectJson.select"
  10189. :key="eIndex"
  10190. :label="e"
  10191. :value="eIndex"
  10192. >
  10193. </el-option>
  10194. </el-select>
  10195. </div>
  10196. </div>
  10197. <div
  10198. class="rightAnswerCss"
  10199. v-if="isSelect && (tType == 1 || tType == 4)"
  10200. >
  10201. <div
  10202. v-for="(a, aIndex) in selectJson.answer"
  10203. :key="aIndex"
  10204. class="rightAnswer"
  10205. >
  10206. <div
  10207. v-if="selectAnswer.answer[aIndex] === a"
  10208. style="color: #767de1"
  10209. >
  10210. 回答正确
  10211. </div>
  10212. <div v-else>回答错误</div>
  10213. <div
  10214. style="margin-left: 10px"
  10215. v-if="selectAnswer.answer[aIndex] !== a"
  10216. >
  10217. 正确答案:
  10218. </div>
  10219. <div
  10220. :class="
  10221. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10222. "
  10223. >
  10224. {{ selectJson.select[a] }}
  10225. </div>
  10226. </div>
  10227. </div>
  10228. </div>
  10229. <div class="upAnswerCss">
  10230. <el-button
  10231. type="primary"
  10232. @click="addSelectAnswer"
  10233. v-if="!isSelect"
  10234. >提交答案</el-button
  10235. >
  10236. </div>
  10237. </div>
  10238. </div>
  10239. </div>
  10240. </el-dialog>
  10241. <el-dialog
  10242. title="选择匹配"
  10243. :visible.sync="dialogVisibleSelectTeacher"
  10244. :append-to-body="true"
  10245. width="90%"
  10246. :before-close="handleClose"
  10247. class="dialog_diy dialog_diy3"
  10248. >
  10249. <div v-if="selectJson">
  10250. <div class="w_name">
  10251. 学生姓名:<span>{{ sStudent.student }}</span>
  10252. </div>
  10253. <div class="select_box2">
  10254. <div class="select_box2_title">
  10255. <div>选择匹配</div>
  10256. <div>请选择对应的答案进行答题!</div>
  10257. </div>
  10258. <div class="select_box2_box">
  10259. <div class="select_box2_img">
  10260. <img
  10261. :src="selectJson.url"
  10262. @click="previewImg(selectJson.url)"
  10263. alt=""
  10264. />
  10265. </div>
  10266. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10267. <div style="padding-top: 15px">
  10268. <div class="select_answer_title" v-if="isSelect">
  10269. {{ selectAnswer.stu }}
  10270. </div>
  10271. <div class="select_answer_title" v-else>
  10272. 根据题目选择对应答案
  10273. </div>
  10274. <div
  10275. class="select_box2_answer_box"
  10276. v-for="(item2, checkIndex) in selectJson.select"
  10277. :key="checkIndex"
  10278. >
  10279. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10280. <el-select
  10281. :disabled="isSelect"
  10282. v-model="selectAnswer.answer[checkIndex]"
  10283. placeholder="请选择正确答案"
  10284. >
  10285. <el-option
  10286. v-for="(e, eIndex) in selectJson.select"
  10287. :key="eIndex"
  10288. :label="e"
  10289. :value="eIndex"
  10290. >
  10291. </el-option>
  10292. </el-select>
  10293. </div>
  10294. </div>
  10295. <div
  10296. class="rightAnswerCss"
  10297. v-if="isSelect && (tType == 1 || tType == 4)"
  10298. >
  10299. <div
  10300. v-for="(a, aIndex) in selectJson.answer"
  10301. :key="aIndex"
  10302. class="rightAnswer"
  10303. >
  10304. <div
  10305. v-if="selectAnswer.answer[aIndex] === a"
  10306. style="color: #767de1"
  10307. >
  10308. 回答正确
  10309. </div>
  10310. <div v-else>回答错误</div>
  10311. <div
  10312. style="margin-left: 10px"
  10313. v-if="selectAnswer.answer[aIndex] !== a"
  10314. >
  10315. 正确答案:
  10316. </div>
  10317. <div
  10318. :class="
  10319. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10320. "
  10321. >
  10322. {{ selectJson.select[a] }}
  10323. </div>
  10324. </div>
  10325. </div>
  10326. </div>
  10327. <div class="upAnswerCss">
  10328. <el-button
  10329. type="primary"
  10330. @click="addSelectAnswerTeacher"
  10331. v-if="!isSelect"
  10332. >提交答案</el-button
  10333. >
  10334. </div>
  10335. </div>
  10336. </div>
  10337. </div>
  10338. </el-dialog>
  10339. <el-dialog
  10340. title="教师评分"
  10341. :visible.sync="dialogVisibleScore"
  10342. :append-to-body="true"
  10343. width="800px"
  10344. :before-close="handleClose"
  10345. class="dialog_diy"
  10346. >
  10347. <div>
  10348. <div class="studentDetail">
  10349. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10350. <div class="nameAndTime">
  10351. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10352. <div>{{ commentDetail.time }}</div>
  10353. </div>
  10354. </div>
  10355. <div
  10356. class="worksAnswer"
  10357. v-if="commentDetail.works && commentDetail.type == 2"
  10358. >
  10359. {{ JSON.parse(commentDetail.works)[0].answer }}
  10360. </div>
  10361. <div
  10362. class="worksAnswer"
  10363. v-if="commentDetail.works && commentDetail.type == 1"
  10364. >
  10365. <pdf
  10366. v-if="showPDF"
  10367. :pdfUrl="pptImgUrl"
  10368. style="width: 100%; height: 520px; overflow: auto"
  10369. :class="{ fullStyle: full }"
  10370. ></pdf>
  10371. <iframe
  10372. v-else
  10373. :src="pptImgUrl"
  10374. frameborder="0"
  10375. width="100%"
  10376. height="600"
  10377. :class="{ fullStyle: full }"
  10378. ></iframe>
  10379. </div>
  10380. <div
  10381. class="worksAnswer"
  10382. v-if="commentDetail.works && commentDetail.type == 0"
  10383. >
  10384. <img
  10385. :src="commentDetail.works"
  10386. alt=""
  10387. @click="previewImg(commentDetail.works)"
  10388. />
  10389. </div>
  10390. <div
  10391. class="worksAnswer"
  10392. v-if="commentDetail.works && commentDetail.type == 3"
  10393. >
  10394. <video-player
  10395. class="video-player vjs-custom-skin"
  10396. :playsinline="true"
  10397. :options="videoDetail"
  10398. @play="onPlayerPlay($event)"
  10399. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10400. ></video-player>
  10401. </div>
  10402. <div
  10403. class="worksAnswer codeFileBox"
  10404. v-if="commentDetail.works && commentDetail.type == 12"
  10405. @click="downloadFile(commentDetail.works)"
  10406. >
  10407. <img src="../../assets/icon/codeFile.png" />
  10408. <div>点击下载文件</div>
  10409. </div>
  10410. <div
  10411. class="worksAnswer codeFileBox"
  10412. v-if="commentDetail.works && commentDetail.type == 15"
  10413. @click="
  10414. openCocoPi(
  10415. 57,
  10416. commentIndexJson.toolIndex,
  10417. commentDetail.userid,
  10418. commentDetail.sName
  10419. )
  10420. "
  10421. >
  10422. <img src="../../assets/icon/codeFile.png" />
  10423. <div>点击打开CocoPi</div>
  10424. </div>
  10425. <div
  10426. class="worksAnswer"
  10427. v-if="commentDetail.works && commentDetail.type == 13"
  10428. >
  10429. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10430. </div>
  10431. <div class="scoreBox">
  10432. <span class="t">请输入分数</span>
  10433. <el-input-number
  10434. :disabled="courseDetail.userid != userid"
  10435. v-model="wScore"
  10436. :controls="false"
  10437. :min="0"
  10438. :max="100"
  10439. ></el-input-number>
  10440. </div>
  10441. <div class="scoreDetailBox">
  10442. <span class="t">评分评论</span>
  10443. <el-input
  10444. type="textarea"
  10445. :rows="5"
  10446. :disabled="courseDetail.userid != userid"
  10447. resize="none"
  10448. v-model="scoreDetail"
  10449. placeholder="请输入对学生的评价"
  10450. >
  10451. </el-input>
  10452. </div>
  10453. </div>
  10454. <span slot="footer" class="dialog-footer">
  10455. <el-button
  10456. @click="
  10457. (dialogVisibleScore = false),
  10458. (commentIndexJson = {}),
  10459. videoDetail.sources && videoDetail.sources[0]
  10460. ? (videoDetail.sources[0].src = '')
  10461. : ''
  10462. "
  10463. >取 消</el-button
  10464. >
  10465. <el-button
  10466. type="primary"
  10467. v-if="courseDetail.userid == userid"
  10468. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  10469. >确 定
  10470. </el-button>
  10471. </span>
  10472. </el-dialog>
  10473. <el-dialog
  10474. title="排序"
  10475. :visible.sync="dialogVisibleSentence"
  10476. :append-to-body="true"
  10477. width="1000px"
  10478. :before-close="handleClose"
  10479. class="dialog_diy dialog_diy3"
  10480. >
  10481. <div>
  10482. <div class="sentenBox">
  10483. <div
  10484. v-for="(st, stIndex) in sentenceList"
  10485. :key="stIndex"
  10486. style="padding-bottom: 20px"
  10487. >
  10488. <div
  10489. style="padding: 15px 0 10px 20px"
  10490. class="sentenceTitle"
  10491. :index="stIndex + 1"
  10492. >
  10493. 题目{{ stIndex + 1 }}:请选择正确顺序
  10494. </div>
  10495. <div class="cardList" v-if="st.chooseSenList">
  10496. <div class="cardBox">
  10497. <div
  10498. v-for="(r, rIndex) in st.chooseSenList"
  10499. :key="rIndex"
  10500. @click="returnCard(r, stIndex, rIndex)"
  10501. >
  10502. <el-tooltip
  10503. class="item"
  10504. effect="light"
  10505. :content="r"
  10506. placement="top"
  10507. v-if="r != '' && r != undefined"
  10508. >
  10509. <div
  10510. :class="{
  10511. isCard: r,
  10512. isChooseCard: r == '' || r == undefined,
  10513. }"
  10514. >
  10515. <div>{{ r }}</div>
  10516. </div>
  10517. </el-tooltip>
  10518. <div
  10519. :class="{
  10520. isCard: r,
  10521. isChooseCard: r == '' || r == undefined,
  10522. }"
  10523. v-else
  10524. >
  10525. <div>{{ r }}</div>
  10526. </div>
  10527. </div>
  10528. </div>
  10529. </div>
  10530. <div class="cardList" v-if="st.addChangeSen">
  10531. <div class="cardBox">
  10532. <div
  10533. v-for="(s, sIndex) in st.addChangeSen"
  10534. :key="sIndex"
  10535. @click="setRightAnswer(s, stIndex, sIndex)"
  10536. >
  10537. <el-tooltip
  10538. class="item"
  10539. effect="light"
  10540. :content="s"
  10541. placement="top"
  10542. v-if="s != '' && s != undefined"
  10543. >
  10544. <div
  10545. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10546. >
  10547. <div>{{ s }}</div>
  10548. </div>
  10549. </el-tooltip>
  10550. <div
  10551. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10552. v-else
  10553. >
  10554. <div>{{ s }}</div>
  10555. </div>
  10556. </div>
  10557. </div>
  10558. </div>
  10559. </div>
  10560. </div>
  10561. </div>
  10562. <span slot="footer" class="dialog-footer">
  10563. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10564. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10565. </span>
  10566. </el-dialog>
  10567. <el-dialog
  10568. title="排序"
  10569. :visible.sync="dialogVisibleSentenceTeacher"
  10570. :append-to-body="true"
  10571. width="1000px"
  10572. :before-close="handleClose"
  10573. class="dialog_diy dialog_diy3"
  10574. >
  10575. <div>
  10576. <div class="w_name">
  10577. 学生姓名:<span>{{ sStudent.student }}</span>
  10578. </div>
  10579. <div class="sentenBox">
  10580. <div
  10581. v-for="(st, stIndex) in sentenceList"
  10582. :key="stIndex"
  10583. style="padding-bottom: 20px"
  10584. >
  10585. <div
  10586. style="padding: 15px 0 10px 20px"
  10587. class="sentenceTitle"
  10588. :index="stIndex + 1"
  10589. >
  10590. 题目{{ stIndex + 1 }}:请选择正确顺序
  10591. </div>
  10592. <div class="cardList" v-if="st.chooseSenList">
  10593. <div class="cardBox">
  10594. <div
  10595. v-for="(r, rIndex) in st.chooseSenList"
  10596. :key="rIndex"
  10597. @click="returnCard(r, stIndex, rIndex)"
  10598. >
  10599. <el-tooltip
  10600. class="item"
  10601. effect="light"
  10602. :content="r"
  10603. placement="top"
  10604. v-if="r != '' && r != undefined"
  10605. >
  10606. <div
  10607. :class="{
  10608. isCard: r,
  10609. isChooseCard: r == '' || r == undefined,
  10610. }"
  10611. >
  10612. <div>{{ r }}</div>
  10613. </div>
  10614. </el-tooltip>
  10615. <div
  10616. :class="{
  10617. isCard: r,
  10618. isChooseCard: r == '' || r == undefined,
  10619. }"
  10620. v-else
  10621. >
  10622. <div>{{ r }}</div>
  10623. </div>
  10624. </div>
  10625. </div>
  10626. </div>
  10627. <div class="cardList" v-if="st.addChangeSen">
  10628. <div class="cardBox">
  10629. <div
  10630. v-for="(s, sIndex) in st.addChangeSen"
  10631. :key="sIndex"
  10632. @click="setRightAnswer(s, stIndex, sIndex)"
  10633. >
  10634. <el-tooltip
  10635. class="item"
  10636. effect="light"
  10637. :content="s"
  10638. placement="top"
  10639. v-if="s != '' && s != undefined"
  10640. >
  10641. <div
  10642. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10643. >
  10644. <div>{{ s }}</div>
  10645. </div>
  10646. </el-tooltip>
  10647. <div
  10648. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10649. v-else
  10650. >
  10651. <div>{{ s }}</div>
  10652. </div>
  10653. </div>
  10654. </div>
  10655. </div>
  10656. </div>
  10657. </div>
  10658. </div>
  10659. <span slot="footer" class="dialog-footer">
  10660. <el-button @click="dialogVisibleSentenceTeacher = false"
  10661. >取 消</el-button
  10662. >
  10663. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10664. </span>
  10665. </el-dialog>
  10666. <el-dialog
  10667. title="排序"
  10668. :visible.sync="dialogVisibleSentence1"
  10669. :append-to-body="true"
  10670. width="1000px"
  10671. :before-close="handleClose"
  10672. class="dialog_diy dialog_diy3"
  10673. >
  10674. <div>
  10675. <div class="sentenBox">
  10676. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10677. {{ sentenceList1.stuName }}的作业
  10678. </div>
  10679. <div
  10680. v-for="(st, stIndex) in sentenceList1"
  10681. :key="stIndex"
  10682. style="padding-bottom: 20px"
  10683. >
  10684. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10685. 第{{ stIndex + 1 }}题
  10686. </div>
  10687. <div class="isWrong">
  10688. <div class="cardList1" v-if="st.chooseSenList">
  10689. <div class="cardBox">
  10690. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10691. <el-tooltip
  10692. class="item"
  10693. effect="light"
  10694. :content="s"
  10695. placement="top"
  10696. >
  10697. <div class="isCard">
  10698. <div>{{ s }}</div>
  10699. </div>
  10700. </el-tooltip>
  10701. </div>
  10702. </div>
  10703. <div class="cardAnswerBox">
  10704. 组成句子:{{ st.chooseSenList.join(" ") }}
  10705. </div>
  10706. </div>
  10707. <div v-if="tType == 2" class="isTj">
  10708. <div class="isTjImg">
  10709. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10710. </div>
  10711. <div>已提交</div>
  10712. </div>
  10713. <div
  10714. class="answerRight isTj"
  10715. v-if="
  10716. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10717. (tType == 1 || tType == 4)
  10718. "
  10719. >
  10720. <div class="isTjImg">
  10721. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10722. </div>
  10723. <div>回答正确</div>
  10724. </div>
  10725. <div
  10726. class="answerRight isTj"
  10727. v-if="
  10728. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10729. (tType == 1 || tType == 4)
  10730. "
  10731. >
  10732. <div class="isTjImg">
  10733. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10734. </div>
  10735. <div>回答错误</div>
  10736. </div>
  10737. </div>
  10738. <div
  10739. v-if="
  10740. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10741. (tType == 1 || tType == 4)
  10742. "
  10743. >
  10744. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10745. <div
  10746. class="cardList"
  10747. v-if="st.rightAnswer"
  10748. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10749. >
  10750. <div class="cardBox">
  10751. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10752. <el-tooltip
  10753. class="item"
  10754. effect="light"
  10755. :content="r"
  10756. placement="top"
  10757. >
  10758. <div class="isCard1">
  10759. <div>{{ r }}</div>
  10760. </div>
  10761. </el-tooltip>
  10762. </div>
  10763. </div>
  10764. <div class="cardAnswerBox">
  10765. 组成句子:{{ st.rightAnswer.join(" ") }}
  10766. </div>
  10767. </div>
  10768. </div>
  10769. </div>
  10770. </div>
  10771. </div>
  10772. <span slot="footer" class="dialog-footer">
  10773. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10774. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10775. >确 定</el-button
  10776. >
  10777. </span>
  10778. </el-dialog>
  10779. <el-dialog
  10780. title="教师提交作业"
  10781. :visible.sync="dialogVisibleWorks"
  10782. :append-to-body="true"
  10783. width="500px"
  10784. :before-close="handleClose"
  10785. class="dialog_change"
  10786. >
  10787. <div class="marginT">
  10788. <div class="w_name">
  10789. 学生姓名:<span>{{ sStudent.student }}</span>
  10790. </div>
  10791. <div>上传文件</div>
  10792. <div
  10793. class="chapter_add"
  10794. @click="addImg($event)"
  10795. v-if="studyJuri[0].cover.length == 0"
  10796. >
  10797. <div class="up_photo">
  10798. <img src="../../assets/uploadImg2.png" alt />
  10799. </div>
  10800. <!-- <input
  10801. type="file"
  10802. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10803. style="display: none"
  10804. @change="beforeUpload1($event, 1)"
  10805. /> -->
  10806. <input
  10807. type="file"
  10808. accept="*"
  10809. style="display: none"
  10810. @change="beforeUpload1($event, 1)"
  10811. />
  10812. </div>
  10813. <!-- capture="camera" -->
  10814. <div
  10815. class="chapter_add"
  10816. style="
  10817. display: flex;
  10818. width: 100%;
  10819. flex-direction: row;
  10820. flex-wrap: wrap;
  10821. justify-content: flex-start;
  10822. padding: 15px 0;
  10823. "
  10824. v-if="studyJuri[0].cover.length > 0"
  10825. >
  10826. <div class="upCover">
  10827. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10828. <img :src="word" alt v-else-if="fileType == 1" />
  10829. <img :src="video" alt v-else-if="fileType == 2" />
  10830. <img :src="word2" alt v-else-if="fileType == 3" />
  10831. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10832. <div class="deleteWord" @click="clean(1)">
  10833. <img src="../../assets/icon/deleteWorks.png" alt />
  10834. </div>
  10835. </div>
  10836. </div>
  10837. </div>
  10838. <div
  10839. class="upload_send"
  10840. @click="addCourseWorksTeacher(taskCount)"
  10841. v-if="!proVisible"
  10842. >
  10843. 提交
  10844. </div>
  10845. </el-dialog>
  10846. <ImgDraw
  10847. :drawShow="drawShow"
  10848. @closeDraw="closeDraw"
  10849. @addImgDraw="addImgDraw"
  10850. :bg="bg"
  10851. ></ImgDraw>
  10852. <el-dialog
  10853. title="表格"
  10854. :visible.sync="dialogVisibleTable"
  10855. :append-to-body="true"
  10856. width="95%"
  10857. :before-close="handleClose"
  10858. class="dialog_diy"
  10859. >
  10860. <el-form>
  10861. <div
  10862. style="
  10863. display: flex;
  10864. align-items: center;
  10865. justify-content: space-between;
  10866. "
  10867. >
  10868. <span>表格内容</span>
  10869. <el-button type="primary" size="small" @click="returnTableText"
  10870. >还原模板</el-button
  10871. >
  10872. </div>
  10873. <Table
  10874. v-model="tableJson.text"
  10875. @change="change"
  10876. v-if="dialogVisibleTable"
  10877. ></Table>
  10878. </el-form>
  10879. <span slot="footer" class="dialog-footer">
  10880. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10881. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10882. </span>
  10883. </el-dialog>
  10884. <el-dialog
  10885. title="表格"
  10886. :visible.sync="dialogVisibleTableTeacher"
  10887. :append-to-body="true"
  10888. width="95%"
  10889. :before-close="handleClose"
  10890. class="dialog_diy"
  10891. >
  10892. <el-form>
  10893. <div class="w_name">
  10894. 学生姓名:<span>{{ sStudent.student }}</span>
  10895. </div>
  10896. <div>表格内容</div>
  10897. <Table
  10898. v-model="tableJson.text"
  10899. @change="change"
  10900. v-if="dialogVisibleTableTeacher"
  10901. ></Table>
  10902. </el-form>
  10903. <span slot="footer" class="dialog-footer">
  10904. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10905. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10906. </span>
  10907. </el-dialog>
  10908. <el-dialog
  10909. title="文档"
  10910. :visible.sync="dialogVisibleWord"
  10911. :append-to-body="true"
  10912. width="95%"
  10913. :before-close="handleClose"
  10914. class="dialog_diy"
  10915. >
  10916. <el-form>
  10917. <div
  10918. style="
  10919. display: flex;
  10920. align-items: center;
  10921. justify-content: space-between;
  10922. "
  10923. >
  10924. <span>文档内容</span>
  10925. <el-button type="primary" size="small" @click="returnWordText"
  10926. >还原模板</el-button
  10927. >
  10928. </div>
  10929. <editor-bar
  10930. v-model="wordJson.text"
  10931. v-if="dialogVisibleWord"
  10932. ></editor-bar>
  10933. </el-form>
  10934. <span slot="footer" class="dialog-footer">
  10935. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10936. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10937. </span>
  10938. </el-dialog>
  10939. <el-dialog
  10940. title="文档"
  10941. :visible.sync="dialogVisibleWordTeacher"
  10942. :append-to-body="true"
  10943. width="95%"
  10944. :before-close="handleClose"
  10945. class="dialog_diy"
  10946. >
  10947. <el-form>
  10948. <div class="w_name">
  10949. 学生姓名:<span>{{ sStudent.student }}</span>
  10950. </div>
  10951. <div>文档内容</div>
  10952. <editor-bar
  10953. v-model="wordJson.text"
  10954. v-if="dialogVisibleWordTeacher"
  10955. ></editor-bar>
  10956. </el-form>
  10957. <span slot="footer" class="dialog-footer">
  10958. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10959. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10960. </span>
  10961. </el-dialog>
  10962. <el-dialog
  10963. title="表格"
  10964. :visible.sync="dialogVisibleTable2"
  10965. :append-to-body="true"
  10966. width="95%"
  10967. :before-close="handleClose"
  10968. class="dialog_diy"
  10969. >
  10970. <el-form>
  10971. <div class="cont" v-html="tableJson.text"></div>
  10972. </el-form>
  10973. <span slot="footer" class="dialog-footer">
  10974. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10975. </span>
  10976. </el-dialog>
  10977. <el-dialog
  10978. title="文档"
  10979. :visible.sync="dialogVisibleTable3"
  10980. :append-to-body="true"
  10981. width="95%"
  10982. :before-close="handleClose"
  10983. class="dialog_diy"
  10984. >
  10985. <el-form>
  10986. <div class="cont" v-html="tableJson.text"></div>
  10987. </el-form>
  10988. <span slot="footer" class="dialog-footer">
  10989. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10990. </span>
  10991. </el-dialog>
  10992. <el-dialog
  10993. title="分组设置"
  10994. :visible.sync="dialogVisibleGroup"
  10995. :append-to-body="true"
  10996. width="95%"
  10997. :before-close="handleClose"
  10998. class="dialog_diy"
  10999. >
  11000. <div v-if="dialogVisibleGroup">
  11001. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11002. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11003. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11004. </div>
  11005. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11006. @click="lockChair">
  11007. 锁定位置
  11008. </div>
  11009. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11010. 解锁位置
  11011. </div> -->
  11012. <div class="group_switch">
  11013. <span>开放选座</span>
  11014. <el-switch
  11015. v-model="islock"
  11016. active-text=""
  11017. class="switchCss"
  11018. @change="lockChair"
  11019. ></el-switch>
  11020. </div>
  11021. <div
  11022. type="primary"
  11023. @click="updateGroup"
  11024. class="returnBtn"
  11025. style="background-color: #225bc7"
  11026. >
  11027. 分组设置
  11028. </div>
  11029. </div>
  11030. <div>
  11031. <div
  11032. class="g_d_box"
  11033. v-if="groupJson.group && groupStudent[toolindex]"
  11034. >
  11035. <div
  11036. class="g_d_group"
  11037. v-for="(g, gindex) in groupJson.group"
  11038. :key="gindex"
  11039. >
  11040. <div class="g_d_group_chair">
  11041. <div v-if="groupJson.number > 1">
  11042. <span
  11043. :class="{
  11044. isChair:
  11045. groupStudent[toolindex][gindex] &&
  11046. groupStudent[toolindex][gindex][0],
  11047. updateChair:
  11048. courseDetail.userid == userid &&
  11049. groupStudent[toolindex][gindex] &&
  11050. groupStudent[toolindex][gindex][0] &&
  11051. groupJson.islock == 2,
  11052. }"
  11053. ><span
  11054. class="updateChairBtn"
  11055. @click="
  11056. updateGroupChair(
  11057. groupStudent[toolindex][gindex] &&
  11058. groupStudent[toolindex][gindex][0]
  11059. )
  11060. "
  11061. >修改</span
  11062. ></span
  11063. ><span>{{
  11064. groupStudent[toolindex][gindex] &&
  11065. groupStudent[toolindex][gindex][0]
  11066. ? groupStudent[toolindex][gindex] &&
  11067. groupStudent[toolindex][gindex][0].name
  11068. : "空位置"
  11069. }}</span>
  11070. </div>
  11071. <div v-if="groupJson.number > 4">
  11072. <span
  11073. :class="{
  11074. isChair:
  11075. groupStudent[toolindex][gindex] &&
  11076. groupStudent[toolindex][gindex][4],
  11077. updateChair:
  11078. courseDetail.userid == userid &&
  11079. groupStudent[toolindex][gindex] &&
  11080. groupStudent[toolindex][gindex][4] &&
  11081. groupJson.islock == 2,
  11082. }"
  11083. ><span
  11084. class="updateChairBtn"
  11085. @click="
  11086. updateGroupChair(
  11087. groupStudent[toolindex][gindex] &&
  11088. groupStudent[toolindex][gindex][4]
  11089. )
  11090. "
  11091. >修改</span
  11092. ></span
  11093. ><span>{{
  11094. groupStudent[toolindex][gindex] &&
  11095. groupStudent[toolindex][gindex][4]
  11096. ? groupStudent[toolindex][gindex] &&
  11097. groupStudent[toolindex][gindex][4].name
  11098. : "空位置"
  11099. }}</span>
  11100. </div>
  11101. <div v-if="groupJson.number > 8">
  11102. <span
  11103. :class="{
  11104. isChair:
  11105. groupStudent[toolindex][gindex] &&
  11106. groupStudent[toolindex][gindex][8],
  11107. updateChair:
  11108. courseDetail.userid == userid &&
  11109. groupStudent[toolindex][gindex] &&
  11110. groupStudent[toolindex][gindex][8] &&
  11111. groupJson.islock == 2,
  11112. }"
  11113. ><span
  11114. class="updateChairBtn"
  11115. @click="
  11116. updateGroupChair(
  11117. groupStudent[toolindex][gindex] &&
  11118. groupStudent[toolindex][gindex][8]
  11119. )
  11120. "
  11121. >修改</span
  11122. ></span
  11123. ><span>{{
  11124. groupStudent[toolindex][gindex] &&
  11125. groupStudent[toolindex][gindex][8]
  11126. ? groupStudent[toolindex][gindex] &&
  11127. groupStudent[toolindex][gindex][8].name
  11128. : "空位置"
  11129. }}</span>
  11130. </div>
  11131. </div>
  11132. <div class="g_d_group_tableBox">
  11133. <div class="g_d_group_chair2">
  11134. <div v-if="groupJson.number > 2">
  11135. <span
  11136. :class="{
  11137. isChair:
  11138. groupStudent[toolindex][gindex] &&
  11139. groupStudent[toolindex][gindex][2],
  11140. updateChair:
  11141. courseDetail.userid == userid &&
  11142. groupStudent[toolindex][gindex] &&
  11143. groupStudent[toolindex][gindex][2] &&
  11144. groupJson.islock == 2,
  11145. }"
  11146. ><span
  11147. class="updateChairBtn"
  11148. @click="
  11149. updateGroupChair(
  11150. groupStudent[toolindex][gindex] &&
  11151. groupStudent[toolindex][gindex][2]
  11152. )
  11153. "
  11154. >修改</span
  11155. ></span
  11156. ><span>{{
  11157. groupStudent[toolindex][gindex] &&
  11158. groupStudent[toolindex][gindex][2]
  11159. ? groupStudent[toolindex][gindex] &&
  11160. groupStudent[toolindex][gindex][2].name
  11161. : "空位置"
  11162. }}</span>
  11163. </div>
  11164. <div v-if="groupJson.number > 6">
  11165. <span
  11166. :class="{
  11167. isChair:
  11168. groupStudent[toolindex][gindex] &&
  11169. groupStudent[toolindex][gindex][6],
  11170. updateChair:
  11171. courseDetail.userid == userid &&
  11172. groupStudent[toolindex][gindex] &&
  11173. groupStudent[toolindex][gindex][6] &&
  11174. groupJson.islock == 2,
  11175. }"
  11176. ><span
  11177. class="updateChairBtn"
  11178. @click="
  11179. updateGroupChair(
  11180. groupStudent[toolindex][gindex] &&
  11181. groupStudent[toolindex][gindex][6]
  11182. )
  11183. "
  11184. >修改</span
  11185. ></span
  11186. ><span>{{
  11187. groupStudent[toolindex][gindex] &&
  11188. groupStudent[toolindex][gindex][6]
  11189. ? groupStudent[toolindex][gindex] &&
  11190. groupStudent[toolindex][gindex][6].name
  11191. : "空位置"
  11192. }}</span>
  11193. </div>
  11194. </div>
  11195. <div class="g_d_group_table">
  11196. <div>
  11197. {{ g.name }}
  11198. </div>
  11199. <div>
  11200. <div
  11201. v-if="
  11202. courseDetail.userid == userid && groupJson.islock == 2
  11203. "
  11204. @click="deleteGroupChair(gindex)"
  11205. >
  11206. 移除组员
  11207. </div>
  11208. <div
  11209. @click="selectGroup(gindex)"
  11210. v-else-if="
  11211. groupStudentUid[toolindex] &&
  11212. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11213. "
  11214. >
  11215. 加入分组
  11216. </div>
  11217. <div
  11218. @click="
  11219. exitGroup(
  11220. groupStudent[toolindex][gindex] &&
  11221. groupStudent[toolindex][gindex][
  11222. groupStudentUid[toolindex][gindex].indexOf(userid)
  11223. ].id
  11224. )
  11225. "
  11226. v-else-if="
  11227. groupStudentUid[toolindex] &&
  11228. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11229. "
  11230. >
  11231. 退出分组
  11232. </div>
  11233. </div>
  11234. </div>
  11235. <div class="g_d_group_chair2">
  11236. <div v-if="groupJson.number > 3">
  11237. <span
  11238. :class="{
  11239. isChair:
  11240. groupStudent[toolindex][gindex] &&
  11241. groupStudent[toolindex][gindex][3],
  11242. updateChair:
  11243. courseDetail.userid == userid &&
  11244. groupStudent[toolindex][gindex] &&
  11245. groupStudent[toolindex][gindex][3] &&
  11246. groupJson.islock == 2,
  11247. }"
  11248. ><span
  11249. class="updateChairBtn"
  11250. @click="
  11251. updateGroupChair(
  11252. groupStudent[toolindex][gindex] &&
  11253. groupStudent[toolindex][gindex][3]
  11254. )
  11255. "
  11256. >修改</span
  11257. ></span
  11258. ><span>{{
  11259. groupStudent[toolindex][gindex] &&
  11260. groupStudent[toolindex][gindex][3]
  11261. ? groupStudent[toolindex][gindex] &&
  11262. groupStudent[toolindex][gindex][3].name
  11263. : "空位置"
  11264. }}</span>
  11265. </div>
  11266. <div v-if="groupJson.number > 7">
  11267. <span
  11268. :class="{
  11269. isChair:
  11270. groupStudent[toolindex][gindex] &&
  11271. groupStudent[toolindex][gindex][7],
  11272. updateChair:
  11273. courseDetail.userid == userid &&
  11274. groupStudent[toolindex][gindex] &&
  11275. groupStudent[toolindex][gindex][7] &&
  11276. groupJson.islock == 2,
  11277. }"
  11278. ><span
  11279. class="updateChairBtn"
  11280. @click="
  11281. updateGroupChair(
  11282. groupStudent[toolindex][gindex] &&
  11283. groupStudent[toolindex][gindex][7]
  11284. )
  11285. "
  11286. >修改</span
  11287. ></span
  11288. ><span>{{
  11289. groupStudent[toolindex][gindex] &&
  11290. groupStudent[toolindex][gindex][7]
  11291. ? groupStudent[toolindex][gindex] &&
  11292. groupStudent[toolindex][gindex][7].name
  11293. : "空位置"
  11294. }}</span>
  11295. </div>
  11296. </div>
  11297. </div>
  11298. <div class="g_d_group_chair">
  11299. <div v-if="groupJson.number > 1">
  11300. <span
  11301. :class="{
  11302. isChair:
  11303. groupStudent[toolindex][gindex] &&
  11304. groupStudent[toolindex][gindex][1],
  11305. updateChair:
  11306. courseDetail.userid == userid &&
  11307. groupStudent[toolindex][gindex] &&
  11308. groupStudent[toolindex][gindex][1] &&
  11309. groupJson.islock == 2,
  11310. }"
  11311. ><span
  11312. class="updateChairBtn"
  11313. @click="
  11314. updateGroupChair(
  11315. groupStudent[toolindex][gindex] &&
  11316. groupStudent[toolindex][gindex][1]
  11317. )
  11318. "
  11319. >修改</span
  11320. ></span
  11321. ><span>{{
  11322. groupStudent[toolindex][gindex] &&
  11323. groupStudent[toolindex][gindex][1]
  11324. ? groupStudent[toolindex][gindex] &&
  11325. groupStudent[toolindex][gindex][1].name
  11326. : "空位置"
  11327. }}</span>
  11328. </div>
  11329. <div v-if="groupJson.number > 5">
  11330. <span
  11331. :class="{
  11332. isChair:
  11333. groupStudent[toolindex][gindex] &&
  11334. groupStudent[toolindex][gindex][5],
  11335. updateChair:
  11336. courseDetail.userid == userid &&
  11337. groupStudent[toolindex][gindex] &&
  11338. groupStudent[toolindex][gindex][5] &&
  11339. groupJson.islock == 2,
  11340. }"
  11341. ><span
  11342. class="updateChairBtn"
  11343. @click="
  11344. updateGroupChair(
  11345. groupStudent[toolindex][gindex] &&
  11346. groupStudent[toolindex][gindex][5]
  11347. )
  11348. "
  11349. >修改</span
  11350. ></span
  11351. ><span>{{
  11352. groupStudent[toolindex][gindex] &&
  11353. groupStudent[toolindex][gindex][5]
  11354. ? groupStudent[toolindex][gindex] &&
  11355. groupStudent[toolindex][gindex][5].name
  11356. : "空位置"
  11357. }}</span>
  11358. </div>
  11359. <div v-if="groupJson.number > 9">
  11360. <span
  11361. :class="{
  11362. isChair:
  11363. groupStudent[toolindex][gindex] &&
  11364. groupStudent[toolindex][gindex][9],
  11365. updateChair:
  11366. courseDetail.userid == userid &&
  11367. groupStudent[toolindex][gindex] &&
  11368. groupStudent[toolindex][gindex][9] &&
  11369. groupJson.islock == 2,
  11370. }"
  11371. ><span
  11372. class="updateChairBtn"
  11373. @click="
  11374. updateGroupChair(
  11375. groupStudent[toolindex][gindex] &&
  11376. groupStudent[toolindex][gindex][9]
  11377. )
  11378. "
  11379. >修改</span
  11380. ></span
  11381. ><span>{{
  11382. groupStudent[toolindex][gindex] &&
  11383. groupStudent[toolindex][gindex][9]
  11384. ? groupStudent[toolindex][gindex] &&
  11385. groupStudent[toolindex][gindex][9].name
  11386. : "空位置"
  11387. }}</span>
  11388. </div>
  11389. </div>
  11390. </div>
  11391. </div>
  11392. </div>
  11393. </div>
  11394. <span slot="footer" class="dialog-footer">
  11395. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11396. </span>
  11397. </el-dialog>
  11398. <el-dialog
  11399. title="分组设置"
  11400. :visible.sync="dialogVisibleGroup2"
  11401. :append-to-body="true"
  11402. width="650px"
  11403. :before-close="handleClose"
  11404. class="dialog_diy"
  11405. >
  11406. <div class="groupBox">
  11407. <div v-if="groupJson2.group" class="groupContent">
  11408. <div class="groupTitle">请设置小组数量及名称</div>
  11409. <div
  11410. v-for="(item, index) in groupJson2.group"
  11411. :key="index"
  11412. class="groupName"
  11413. >
  11414. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11415. <el-input
  11416. v-model="item.name"
  11417. placeholder="请输入名称..."
  11418. style="width: 250px"
  11419. ></el-input>
  11420. <!-- <div class="groupBtn">
  11421. <el-button type="primary" size="small" @click="addGroup(index)">
  11422. 添加</el-button>
  11423. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11424. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11425. </div> -->
  11426. </div>
  11427. </div>
  11428. <div class="groupContent">
  11429. <div class="groupTitle">请设置每组人数</div>
  11430. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11431. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11432. <el-input
  11433. v-model="groupJson.number"
  11434. style="width: 150px"
  11435. placeholder="请输入2-10的数字"
  11436. @change="numberPan"
  11437. ></el-input>
  11438. </div>
  11439. </div>
  11440. <span slot="footer" class="dialog-footer">
  11441. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11442. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11443. </span>
  11444. </el-dialog>
  11445. <el-dialog
  11446. title="作业提交"
  11447. :visible.sync="dialogVisibleGroupWork"
  11448. :append-to-body="true"
  11449. width="500px"
  11450. :before-close="handleClose"
  11451. class="dialog_change"
  11452. >
  11453. <div class="marginT">
  11454. <div>上传文件</div>
  11455. <div
  11456. class="chapter_add"
  11457. @click="addImg($event)"
  11458. v-if="studyJuri[0].cover.length == 0"
  11459. >
  11460. <div class="up_photo">
  11461. <img src="../../assets/icon/uploadImg.png" alt />
  11462. </div>
  11463. <!-- <input
  11464. type="file"
  11465. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11466. style="display: none"
  11467. @change="beforeUpload1($event, 1)"
  11468. /> -->
  11469. <input
  11470. type="file"
  11471. accept="*"
  11472. style="display: none"
  11473. @change="beforeUpload1($event, 1)"
  11474. />
  11475. </div>
  11476. <!-- capture="camera" -->
  11477. <div
  11478. class="chapter_add"
  11479. style="
  11480. display: flex;
  11481. width: 100%;
  11482. flex-direction: row;
  11483. flex-wrap: wrap;
  11484. justify-content: flex-start;
  11485. padding: 15px 0;
  11486. "
  11487. v-if="studyJuri[0].cover.length > 0"
  11488. >
  11489. <div class="upCover">
  11490. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11491. <img :src="word" alt v-else-if="fileType == 1" />
  11492. <img :src="video" alt v-else-if="fileType == 2" />
  11493. <img :src="word2" alt v-else-if="fileType == 3" />
  11494. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11495. <div class="deleteWord" @click="clean(1)">
  11496. <img src="../../assets/icon/deleteWorks.png" alt />
  11497. </div>
  11498. </div>
  11499. </div>
  11500. </div>
  11501. <div
  11502. class="upload_send"
  11503. @click="addCourseWorks2(taskCount)"
  11504. v-if="!proVisible"
  11505. >
  11506. 提交
  11507. </div>
  11508. </el-dialog>
  11509. <el-dialog
  11510. title="修改分组"
  11511. :visible.sync="dialogVisibleUpdateGroup"
  11512. :append-to-body="true"
  11513. width="350px"
  11514. :before-close="handleClose"
  11515. class="dialog_diy"
  11516. >
  11517. <div>
  11518. <h2>
  11519. {{ this.updateGroupUser.name }}
  11520. </h2>
  11521. <div style="color: rgb(171 171 171); margin-top: 10px">
  11522. 请选择要进入的分组
  11523. </div>
  11524. <el-radio-group v-model="checkChair">
  11525. <el-radio
  11526. style="display: block; margin-top: 20px"
  11527. v-for="(item, index) in updateGroupArray"
  11528. :label="item.label"
  11529. :key="index"
  11530. >{{ item.name }}</el-radio
  11531. >
  11532. </el-radio-group>
  11533. </div>
  11534. <span slot="footer" class="dialog-footer">
  11535. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11536. <el-button type="primary" @click="updateChair">确定</el-button>
  11537. </span>
  11538. </el-dialog>
  11539. <el-dialog
  11540. title="移除组员"
  11541. :visible.sync="dialogVisibleDeleteGroup"
  11542. :append-to-body="true"
  11543. width="350px"
  11544. :before-close="handleClose"
  11545. class="dialog_diy"
  11546. >
  11547. <div>
  11548. <h2>
  11549. {{ this.deleteGroupArray.name }}
  11550. </h2>
  11551. <div style="color: rgb(171 171 171); margin-top: 10px">
  11552. 请选择要删除的组员
  11553. </div>
  11554. <el-checkbox-group v-model="checkDeleteGroup">
  11555. <el-checkbox
  11556. style="display: flex; margin-top: 20px"
  11557. v-for="(item, index) in deleteGroupUser"
  11558. :label="item.userid"
  11559. :key="index"
  11560. >{{ item.name }}</el-checkbox
  11561. >
  11562. </el-checkbox-group>
  11563. </div>
  11564. <span slot="footer" class="dialog-footer">
  11565. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11566. <el-button type="primary" @click="deleteChair">确定</el-button>
  11567. </span>
  11568. </el-dialog>
  11569. <el-dialog
  11570. title="批量上传"
  11571. :visible.sync="dialogVisiblePl"
  11572. :append-to-body="true"
  11573. width="700px"
  11574. :before-close="handleClose"
  11575. class="dialog_change"
  11576. >
  11577. <div class="marginT">
  11578. <div class="plworkBox">
  11579. <div
  11580. class="chapter_add"
  11581. style="
  11582. display: flex;
  11583. width: 150px;
  11584. flex-direction: row;
  11585. flex-wrap: wrap;
  11586. justify-content: flex-start;
  11587. margin: 0 10px 10px 0;
  11588. "
  11589. v-for="(item, index) in plworkFile"
  11590. :key="index"
  11591. >
  11592. <div class="upCover2">
  11593. <img
  11594. :src="item.url"
  11595. alt
  11596. v-if="item.fileType == 1"
  11597. @click="previewImg(item.url)"
  11598. />
  11599. <img :src="word" alt v-else-if="item.fileType == 4" />
  11600. <img :src="video" alt v-else />
  11601. <!-- <span class="picName">{{ item.name }}</span> -->
  11602. <!-- <el-input
  11603. v-model="item.username"
  11604. placeholder="请输入学生名字"
  11605. style="margin-top: 10px"
  11606. ></el-input> -->
  11607. <div
  11608. class="pl_select_box"
  11609. @click="
  11610. getUpdateMore(true, checkUpload(), item.username, index)
  11611. "
  11612. >
  11613. {{ getSName(item.username) }}
  11614. </div>
  11615. <!-- <el-select
  11616. style="margin-top: 10px"
  11617. v-model="item.username"
  11618. filterable
  11619. allow-create
  11620. placeholder="请选择学生"
  11621. >
  11622. <el-option
  11623. v-for="item1 in checkUpload()"
  11624. :key="item1.userid"
  11625. :label="item1.name ? item1.name : item1.username"
  11626. :value="item1.userid"
  11627. >
  11628. </el-option>
  11629. </el-select> -->
  11630. <div class="deleteWord" @click="clean2(index)">
  11631. <img src="../../assets/icon/deleteWorks.png" alt />
  11632. </div>
  11633. </div>
  11634. </div>
  11635. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11636. <div class="up_photo2">
  11637. <img src="../../assets/icon/plwork.png" alt />
  11638. <span>点击上传文件</span>
  11639. </div>
  11640. <input
  11641. type="file"
  11642. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11643. multiple="multiple"
  11644. style="display: none"
  11645. @change="beforeUpload3($event, 6)"
  11646. />
  11647. </div>
  11648. </div>
  11649. </div>
  11650. <!-- capture="camera" -->
  11651. <div
  11652. class="upload_send"
  11653. @click="addCourseWorksPl(taskCount)"
  11654. v-if="!proVisible2"
  11655. >
  11656. 提交
  11657. </div>
  11658. </el-dialog>
  11659. <el-dialog
  11660. title="修改名称"
  11661. :visible.sync="dialogVisibleSname"
  11662. width="500px"
  11663. :before-close="handleClose"
  11664. class="dialog_diy"
  11665. center
  11666. >
  11667. <div
  11668. style="
  11669. text-align: center;
  11670. display: flex;
  11671. align-items: center;
  11672. justify-content: center;
  11673. "
  11674. >
  11675. <span class="tian1">名称</span>
  11676. <div
  11677. class="pl_select_box"
  11678. style="margin-left: 10px; width: 200px"
  11679. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11680. >
  11681. {{ getSName(worksSName) }}
  11682. </div>
  11683. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11684. placeholder="请选择学生">
  11685. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11686. :value="item.userid">
  11687. </el-option>
  11688. </el-select> -->
  11689. <!-- <el-input
  11690. v-model="worksSName"
  11691. style="width: 250px; margin: 15px 0px"
  11692. ></el-input> -->
  11693. </div>
  11694. <span slot="footer" class="dialog-footer">
  11695. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11696. <el-button type="primary" @click="updateName">确 定</el-button>
  11697. </span>
  11698. </el-dialog>
  11699. <el-dialog
  11700. title="英语写作"
  11701. :visible.sync="engDialogVisible"
  11702. :append-to-body="true"
  11703. width="800px"
  11704. :before-close="handleClose"
  11705. class="dialog_diy"
  11706. >
  11707. <onlineWrite
  11708. v-if="engDialogVisible"
  11709. :englishList="englishList"
  11710. :myAnswerList1="myAnswerList1"
  11711. ref="engJson"
  11712. ></onlineWrite>
  11713. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11714. <el-button @click="engDialogVisible = false">取 消</el-button>
  11715. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11716. </span>
  11717. </el-dialog>
  11718. <el-dialog
  11719. title="英语写作"
  11720. :visible.sync="engUpdateDialogVisible"
  11721. :append-to-body="true"
  11722. width="800px"
  11723. :before-close="handleClose"
  11724. class="dialog_diy fullStyle"
  11725. >
  11726. <div class="engUpBox">
  11727. <div class="engUpTop">
  11728. <div class="engTitle">
  11729. <div>作文题目:</div>
  11730. <div>{{ englishList1.engTitle }}</div>
  11731. </div>
  11732. <div class="engText">
  11733. <div>作文内容:</div>
  11734. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11735. </div>
  11736. </div>
  11737. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11738. <div class="oldBox">
  11739. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11740. <div class="oldText">
  11741. <div class="detailBox">
  11742. <div class="oldDetail">
  11743. <div>标题:</div>
  11744. <div>{{ oldEnglishJson.engTitle }} </div>
  11745. </div>
  11746. <div class="oldDetail1">
  11747. <div>正文:</div>
  11748. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11749. </div>
  11750. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11751. <div>图片:</div>
  11752. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11753. </div>
  11754. </div>
  11755. </div>
  11756. </div>
  11757. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11758. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11759. <div class="oldText">
  11760. <div class="detailBox" style="position: relative;">
  11761. <div class="oldDetail">
  11762. <div>标题:</div>
  11763. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11764. <div v-else v-html="newEnglishList.engTitle"></div>
  11765. </div>
  11766. <div class="oldDetail">
  11767. <div>正文:</div>
  11768. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11769. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11770. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11771. </div>
  11772. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11773. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11774. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11775. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11776. </div>
  11777. </div>
  11778. </div>
  11779. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11780. <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">
  11781. <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>
  11782. <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>
  11783. </div>
  11784. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11785. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11786. <div class="detailBox" style="position: relative;">
  11787. <div class="oldDetail">
  11788. <div>标题:</div>
  11789. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11790. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11791. </div>
  11792. <div class="oldDetail">
  11793. <div>正文:</div>
  11794. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11795. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11796. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  11797. </div>
  11798. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11799. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11800. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11801. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11802. </div>
  11803. </div>
  11804. <div class="oldText" v-else-if="newEngIndex == -1">
  11805. <div class="detailBox" style="position: relative;">
  11806. <div class="oldDetail">
  11807. <div>标题:</div>
  11808. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11809. <div v-else v-html="newEnglishList.engTitle"></div>
  11810. </div>
  11811. <div class="oldDetail">
  11812. <div>正文:</div>
  11813. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11814. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11815. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  11816. </div>
  11817. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11818. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11819. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11820. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11821. </div>
  11822. </div>
  11823. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11824. <div class="detailBox" style="position: relative;">
  11825. <div class="oldDetail">
  11826. <div>标题:</div>
  11827. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11828. <div v-else>
  11829. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  11830. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11831. </div>
  11832. </div>
  11833. <div class="oldDetail">
  11834. <div>正文:</div>
  11835. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  11836. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11837. <div v-else>
  11838. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11839. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11840. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  11841. </div>
  11842. </div>
  11843. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11844. <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>
  11845. <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>
  11846. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11847. </div>
  11848. </div>
  11849. </div>
  11850. </div>
  11851. </div>
  11852. <span slot="footer" class="dialog-footer">
  11853. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11854. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11855. </span>
  11856. </el-dialog>
  11857. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11858. <interVideo
  11859. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11860. :videoJson="videoJson"
  11861. :userid="userid"
  11862. :id="id"
  11863. :courseType="courseType"
  11864. :taskCount="taskCount"
  11865. :toolindex="toolindex"
  11866. :videoType="videoType"
  11867. ></interVideo>
  11868. <UpdateMore
  11869. :dialogVisibleMember.sync="dialogVisibleMember"
  11870. :cList="uploadStudentJuri"
  11871. :userid="userid"
  11872. :searchTN="worksSName2"
  11873. @setPlname="setPlname"
  11874. ></UpdateMore>
  11875. <wordCloud
  11876. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11877. :data="wordCloudData"
  11878. ></wordCloud>
  11879. <el-dialog
  11880. title="挑人"
  11881. :visible.sync="dialogVisiblePickPeople"
  11882. width="650px"
  11883. :before-close="handleClose"
  11884. class="dialog_diy"
  11885. center
  11886. >
  11887. <div class="pick_box">
  11888. <div
  11889. class="noWorksName"
  11890. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11891. v-for="(item, index) in uploadStudentJuri"
  11892. :key="index"
  11893. @click="pickStudent(item)"
  11894. >
  11895. {{ item.name }}
  11896. </div>
  11897. </div>
  11898. </el-dialog>
  11899. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11900. :englishVoiceJson='englishVoiceJson'
  11901. :userid="userid"
  11902. :id="id"
  11903. :courseType="courseType"
  11904. :taskCount="taskCount"
  11905. :toolindex="toolindex"
  11906. @selectSWorks="selectSWorks"
  11907. @selectStudent="selectStudent"
  11908. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11909. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11910. :userid="userid"
  11911. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11912. :commentDetail="commentDetail"
  11913. :courseDetail="courseDetail"
  11914. :wScore="wScore"
  11915. :scoreDetail="scoreDetail"
  11916. @selectSWorks="selectSWorks"
  11917. @selectStudent="selectStudent"></checkEnglishVoice>
  11918. </div>
  11919. </template>
  11920. <script>
  11921. import "../../common/aws-sdk-2.235.1.min.js";
  11922. // import pdf from "../components/pdf3";
  11923. import pdf from "../components/vpdf";
  11924. import AskStatic from "../components/askStatic";
  11925. import AskStatic2 from "../components/askStatic2";
  11926. import AnswerData2 from "../components/answerData2";
  11927. import AnswerData from "../components/answerData";
  11928. import EditorBar from "../tools/wangEnduit.vue";
  11929. import Table from "../tools/table.vue";
  11930. import Time from "../tools/time.vue";
  11931. import Mind from "../tools/jsmind.vue";
  11932. import Sunburst from "../tools/sunburst";
  11933. import SeeBoard from "../tools/seeBoard";
  11934. import * as imageConversion from "image-conversion";
  11935. import Audio from "../components/audio.vue";
  11936. import ImgDraw from "../tools/imgDraw/imgDraw";
  11937. import { Empty } from "element-ui";
  11938. import RecordRTC from "recordrtc";
  11939. import interVideo from "../interVideo/index.vue";
  11940. import UpdateMore from "../updateMore/updateMore.vue";
  11941. import wordCloud from "../wordCloud/index.vue";
  11942. import axios from "axios";
  11943. import JSZip from "jszip";
  11944. import FileSaver from "file-saver";
  11945. import onlineWrite from "./commpont/onlineWrite";
  11946. import englishEva from "../components/englishEva";
  11947. import * as Diff from 'diff'
  11948. import EnglishVoice from '../EnglishVoice2/index.vue'
  11949. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  11950. import correctText from '../components/correctText.vue'
  11951. import scoreItem from '../scoreList/scoreItem.vue'
  11952. import scoreZong from '../scoreZong/index.vue'
  11953. import classRoomHelper from '../classRoomHelper/index.vue'
  11954. import MarkdownIt from "markdown-it";
  11955. const getFile = (url) => {
  11956. return new Promise((resolve, reject) => {
  11957. var credentials = {
  11958. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11959. secretAccessKey: "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",
  11960. }; //秘钥形式的登录上传
  11961. window.AWS.config.update(credentials);
  11962. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11963. let url2 = url;
  11964. let _url2 = "";
  11965. if (
  11966. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11967. ) {
  11968. _url2 = url2.split(
  11969. "https://view.officeapps.live.com/op/view.aspx?src="
  11970. )[1];
  11971. } else {
  11972. _url2 = url2;
  11973. }
  11974. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11975. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11976. var params = {
  11977. Bucket: "ccrb",
  11978. Key: name
  11979. };
  11980. s3.getObject(params, function (err, data) {
  11981. if (err) {
  11982. console.log(err, err.stack)
  11983. resolve({ data: 1 });
  11984. }else {
  11985. resolve({ data: data.Body });
  11986. console.log(data);
  11987. } // sxuccessful response
  11988. });
  11989. // axios({
  11990. // method: "get",
  11991. // url,
  11992. // responseType: "blob",
  11993. // })
  11994. // .then((data) => {
  11995. // resolve({ data: data.data });
  11996. // })
  11997. // .catch((error) => {
  11998. // resolve({ data: 1 });
  11999. // // reject(error.toString());
  12000. // });
  12001. });
  12002. };
  12003. export default {
  12004. components: {
  12005. EditorBar,
  12006. Time,
  12007. pdf,
  12008. AskStatic,
  12009. AskStatic2,
  12010. Mind,
  12011. Sunburst,
  12012. SeeBoard,
  12013. AnswerData2,
  12014. AnswerData,
  12015. Audio,
  12016. ImgDraw,
  12017. Table,
  12018. interVideo,
  12019. UpdateMore,
  12020. wordCloud,
  12021. onlineWrite,
  12022. englishEva,
  12023. EnglishVoice,
  12024. checkEnglishVoice,
  12025. correctText,
  12026. scoreItem,
  12027. classRoomHelper,
  12028. scoreZong
  12029. },
  12030. data() {
  12031. return {
  12032. bg: null,
  12033. drawShow: false,
  12034. dialogVisible: false,
  12035. dialogVisiblePl: false,
  12036. commentDialogVisible: false,
  12037. dialogVisibleMember: false,
  12038. dialogVisibleWordCloud: false,
  12039. videoVisible: false,
  12040. isStar: false,
  12041. studentEvalDialogVisible: false,
  12042. studentEvalDialogVisibleTeacher: false,
  12043. dialogVisibleSelect: false,
  12044. dialogVisibleSelectTeacher: false,
  12045. dialogVisibleScore: false,
  12046. dialogVisibleENScore: false,
  12047. dialogVisibleSentence: false,
  12048. dialogVisibleSentenceTeacher: false,
  12049. dialogVisibleSentence1: false,
  12050. dialogVisibleWorks: false,
  12051. dialogVisibleTable: false,
  12052. dialogVisibleTableTeacher: false,
  12053. dialogVisibleWord: false,
  12054. dialogVisibleWordTeacher: false,
  12055. dialogVisibleTable2: false,
  12056. dialogVisibleTable3: false,
  12057. dialogVisibleGroupWork: false,
  12058. dialogVisibleUpdateGroup: false,
  12059. dialogVisibleDeleteGroup: false,
  12060. dialogVisibleSname: false,
  12061. dialogVisibleVideo: false,
  12062. dialogVisiblePickPeople: false,
  12063. worksSName: "",
  12064. classJuri: [],
  12065. uploadStudentJuri: [],
  12066. uploadCid: "",
  12067. snameWid: "",
  12068. sStudent: {},
  12069. sTool: "",
  12070. bzText: "",
  12071. commentDetail: [],
  12072. selectAnswer: [],
  12073. videoDetail: {},
  12074. selectJson: {},
  12075. eScore: { eBzText: "", eStar: [] },
  12076. id: this.$route.query.courseId,
  12077. userid: this.$route.query.userid,
  12078. classId: this.$route.query.cid,
  12079. // courseTypeLine: this.$route.query.type,
  12080. oid: this.$route.query.oid,
  12081. org: this.$route.query.org,
  12082. tType: this.$route.query.tType,
  12083. courseType: this.$route.query.type,
  12084. screenType: this.$route.query.screenType,
  12085. tcid2: this.$route.query.tcid,
  12086. tcid: "",
  12087. pptImgUrl: "",
  12088. pptImgUrl1: "",
  12089. commentText: "",
  12090. full: false,
  12091. sIsOpen: false,
  12092. IsLookOpen: false,
  12093. IsFollow: false,
  12094. pzDialog: false,
  12095. contentDialog: false,
  12096. mlDialog: false,
  12097. type: 1,
  12098. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12099. sentenceList1: [],
  12100. tableJson: [],
  12101. tableJsonO: [],
  12102. wordJson: [],
  12103. wordJsonO: [],
  12104. vedio: [],
  12105. text: [],
  12106. textList: [],
  12107. line: [],
  12108. lineList: [],
  12109. chapTools: [],
  12110. chapToolList: [],
  12111. file: [],
  12112. fileC: [],
  12113. vedioTime: [],
  12114. upToolImg: "",
  12115. preTime: 0,
  12116. rateList: {
  12117. ca: 0,
  12118. },
  12119. rateParams: [],
  12120. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12121. studyJuri: [
  12122. {
  12123. content: "",
  12124. cover: [],
  12125. upVedio: [],
  12126. upFile: [],
  12127. },
  12128. ],
  12129. isClose: 0,
  12130. plworkFile: [],
  12131. mr: require("../../assets/vedioPic.png"),
  12132. word: require("../../assets/icon/isWord.png"),
  12133. word2: require("../../assets/icon/word2.png"),
  12134. video: require("../../assets/icon/isVideo.png"),
  12135. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12136. likes: require("../../assets/icon/comment/likes.png"),
  12137. scoreImg: require("../../assets/score.png"),
  12138. courseDetail: {},
  12139. reply: "",
  12140. isSelect: false,
  12141. chapInfo: [],
  12142. chapInfoList: [],
  12143. taskCount: 0,
  12144. imgList: [],
  12145. noImgList: [],
  12146. pzList: [],
  12147. timeWorkList: [],
  12148. PlTextList: [
  12149. "Excellent!",
  12150. "nice!",
  12151. "很有创意!",
  12152. "还不错哦~",
  12153. "继续努力哦~",
  12154. ],
  12155. isClickNav: "",
  12156. navId: "",
  12157. playerOptions: {
  12158. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12159. autoplay: false, //如果true,浏览器准备好时开始回放。
  12160. muted: false, // 默认情况下将会消除任何音频。
  12161. loop: false, // 导致视频一结束就重新开始。
  12162. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12163. language: "zh-CN",
  12164. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12165. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12166. sources: [
  12167. {
  12168. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12169. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12170. },
  12171. ],
  12172. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12173. // poster: dataRes.imgUrl, //你的封面地址
  12174. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12175. controlBar: {
  12176. timeDivider: true, //当前时间和持续时间的分隔符
  12177. durationDisplay: true, //显示持续时间
  12178. remainingTimeDisplay: false, //是否显示剩余时间功能
  12179. fullscreenToggle: true, //全屏按钮
  12180. },
  12181. },
  12182. playerOptions1: {
  12183. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12184. autoplay: false, //如果true,浏览器准备好时开始回放。
  12185. muted: false, // 默认情况下将会消除任何音频。
  12186. loop: false, // 导致视频一结束就重新开始。
  12187. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12188. language: "zh-CN",
  12189. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12190. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12191. sources: [
  12192. {
  12193. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12194. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12195. },
  12196. ],
  12197. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12198. // poster: dataRes.imgUrl, //你的封面地址
  12199. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12200. controlBar: {
  12201. timeDivider: true, //当前时间和持续时间的分隔符
  12202. durationDisplay: true, //显示持续时间
  12203. remainingTimeDisplay: false, //是否显示剩余时间功能
  12204. fullscreenToggle: true, //全屏按钮
  12205. },
  12206. },
  12207. playerO: {},
  12208. noneBtnImg: false,
  12209. proVisible: false,
  12210. proVisible2: false,
  12211. progress: 0,
  12212. isFinishSize: 0,
  12213. isAllSize: 0,
  12214. questionAnswer: "",
  12215. answerQ: "", //问答标题
  12216. rateJson: [],
  12217. wbCount: 0,
  12218. wordCount: 0,
  12219. mindCount: 0,
  12220. askCount: 0,
  12221. noteCount: 0,
  12222. mindNetWorkCount: 0,
  12223. libraryCount: 0,
  12224. workCount: 0,
  12225. timeCount: 0,
  12226. answerCount: 0,
  12227. trainCount: 0,
  12228. evalCount: 0,
  12229. dialogImageUrl: "",
  12230. pictureDialog: false,
  12231. toolTypeList: [],
  12232. dialogVisible1: false,
  12233. dialogVisible2: false,
  12234. dialogVisible3: false,
  12235. dialogVisible6: false,
  12236. dialogVisible4: false,
  12237. isNoHomeWork: false,
  12238. dialogVisible5: false,
  12239. dialogVisible5Teacher: false,
  12240. dialogVisibleChoice: false,
  12241. dialogVisibleChoiceTeacher: false,
  12242. answerDialogVisible: false,
  12243. answerDialogVisibleTeacher: false,
  12244. juriVisible: false,
  12245. timeDialogVisible: false,
  12246. replyDialogVisible: false,
  12247. toolDialogVisible: false,
  12248. engDialogVisible: false,
  12249. engUpdateDialogVisible:false,
  12250. engEvaDialogVisible: false,
  12251. evaEngJson: {
  12252. teacherJson: {},
  12253. studentJson: {},
  12254. message: {},
  12255. },
  12256. isNoUserid:false,
  12257. engListLength:0,
  12258. engWid:"",
  12259. newEnglishList:{
  12260. engTitle:"",
  12261. engText:"",
  12262. },
  12263. newEnglishList1:[],
  12264. oldEnglishJson:{},
  12265. oldEnglishJson1:{},
  12266. englishList1:{},
  12267. englishList:{},
  12268. myAnswerList1:{},
  12269. topHeight:0,
  12270. newEngIndex:-1,
  12271. englishToolIndex:0,
  12272. userMes:{},
  12273. englishToolIndex:0,
  12274. replyIndex: 0,
  12275. replyPid: "",
  12276. radio: [],
  12277. isAsk: false,
  12278. askJson: {
  12279. askCount: 1,
  12280. askTitle: "",
  12281. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12282. },
  12283. testJson: {},
  12284. englishList: {},
  12285. topHeight:0,
  12286. checkJson: [],
  12287. askList: [],
  12288. answerList: [],
  12289. navList: [],
  12290. addPzDialog: false,
  12291. pzConText: "",
  12292. worksStudent: [],
  12293. isCloseList: [],
  12294. workStudent: [],
  12295. groupStudent: [],
  12296. groupStudentUid: [],
  12297. noWorksS: [],
  12298. isWorksS: [],
  12299. noWorksStudent: [],
  12300. toolindex: 0,
  12301. toolDetailIndex: null,
  12302. groupIndex: 0,
  12303. workTypeB: false,
  12304. workTypeC: false,
  12305. isAnswer: false,
  12306. isHovered: false,
  12307. isHovered1: false,
  12308. isHovered2: false,
  12309. commentTagShow:0,
  12310. timer: null,
  12311. opertimer: null,
  12312. showType: '',
  12313. fileType: 0,
  12314. showPDF: false,
  12315. noteName: "",
  12316. evaJuri: [],
  12317. evalua: "",
  12318. eTitle: "",
  12319. eName: "",
  12320. eJson: {},
  12321. fid: "", //一级
  12322. sid: "", //二级
  12323. tid: "", //二级
  12324. typeMode: 1,
  12325. eJSONNum: 0,
  12326. Etype: 1,
  12327. data: {
  12328. meta: {
  12329. name: "example",
  12330. author: "dd@163.com",
  12331. version: "0.2",
  12332. },
  12333. format: "node_array",
  12334. data: [{ id: "root", isroot: true, topic: "" }],
  12335. },
  12336. fullDialogVisible: false,
  12337. fulltype: "",
  12338. fullUrl: "",
  12339. commentIndexJson: {},
  12340. Stbodywidth: 0,
  12341. ispzType: 0,
  12342. pzType: 1,
  12343. wScore: 0,
  12344. scoreDetail: "",
  12345. videoStart: false,
  12346. recorder: null,
  12347. groupJson: {},
  12348. islock: false,
  12349. groupJson2: {},
  12350. dialogVisibleGroup: false,
  12351. dialogVisibleGroup2: false,
  12352. updateGroupArray: [],
  12353. updateGroupUser: {},
  12354. deleteGroupUser: [],
  12355. deleteGroupArray: {},
  12356. checkChair: "",
  12357. checkDeleteGroup: [],
  12358. inviteCode: "",
  12359. courseGroupStudent: [],
  12360. courseGroupStudentUid: [],
  12361. courseGroup: {},
  12362. isGroup: false,
  12363. toolIndex: null,
  12364. tool: {},
  12365. isWorkTool: [
  12366. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12367. ], //, 40
  12368. videoJson: {},
  12369. videoType:0,
  12370. toolType: 0,
  12371. checktoolArray: [],
  12372. vChapterData: [],
  12373. isUpdateToolDetail: false,
  12374. isUpdateToolDetail1: false,
  12375. updateToolDetailInner: "",
  12376. checkboxList: [],
  12377. plIndex: "",
  12378. worksSName2: "",
  12379. worksSid: "",
  12380. wordCloudData: [],
  12381. isPickStudent: [],
  12382. pzStype: 1,
  12383. myAnList: {},
  12384. downLoading: false,
  12385. greyType: false,
  12386. correctWord: [],
  12387. EnglishVoiceDialog: false,
  12388. englishVoiceJson: {},
  12389. englishVoiceJsonWork:[],
  12390. scoreList:{
  12391. listdata:[],
  12392. isScoreList:[],
  12393. },
  12394. classRoomHelperWidth: '85px',
  12395. orgArray:[],
  12396. oidArray:[]
  12397. };
  12398. },
  12399. methods: {
  12400. getAIJ(){
  12401. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12402. let oid = res.data[0];
  12403. let org = res.data[1];
  12404. let oidArray = [];
  12405. let orgArray = [];
  12406. oid.forEach(i=>oidArray.push(i.oid))
  12407. org.forEach(i=>orgArray.push(i.oid))
  12408. this.orgArray = orgArray;
  12409. this.oidArray = oidArray;
  12410. })
  12411. },
  12412. insertMemorandum(_html){//保存行为操作
  12413. //variable
  12414. //btn
  12415. let params = [{
  12416. uid:this.userid,
  12417. courseId:this.id+(this.tcid2?this.tcid2:''),
  12418. content:_html
  12419. }]
  12420. console.log(params)
  12421. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  12422. if(res.data==1){
  12423. console.log('保存操作成功')
  12424. }else{
  12425. console.log('保存操作失败')
  12426. }
  12427. }).catch(e=>{
  12428. console.log('保存操作失败')
  12429. console.log(e)
  12430. })
  12431. },
  12432. gx(){
  12433. this.$forceUpdate();
  12434. },
  12435. isUpdateCorrect(t,p){
  12436. if(this.greyType == false){
  12437. this.isUpdateText = t;
  12438. this.greyType = true;
  12439. }else{
  12440. if(p == 1){
  12441. this.newEnglishList.engText = this.isUpdateText;
  12442. }else if(p == 2){
  12443. this.oldEnglishJson1.engText = this.isUpdateText;
  12444. }else if(p == 3){
  12445. this.newEnglishList.engText = this.isUpdateText;
  12446. }else{
  12447. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12448. }
  12449. this.greyType = false
  12450. }
  12451. },
  12452. aiCorrect(t,p){
  12453. let aiText = "";
  12454. const loading = this.$loading.service({
  12455. background: "rgba(255, 255, 255)",
  12456. target: document.querySelectorAll(".loadingText")[0],
  12457. });
  12458. let param = {
  12459. model: "gpt-3.5-turbo",
  12460. temperature: 0,
  12461. max_tokens: 2048,
  12462. top_p: 1,
  12463. frequency_penalty: 0,
  12464. presence_penalty: 0,
  12465. messages: [
  12466. {
  12467. role: "user",
  12468. content:
  12469.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12470. },
  12471. ],
  12472. uid: this.userid,
  12473. stream: false,
  12474. };
  12475. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12476. (res) => {
  12477. if (
  12478. res.data.FunctionResponse &&
  12479. res.data.FunctionResponse.result &&
  12480. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12481. ) {
  12482. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12483. return;
  12484. }
  12485. aiText =
  12486. res.data.FunctionResponse.choices[0].message.content;
  12487. aiText = aiText.replace(/%/g,"%25");
  12488. // let w = "";
  12489. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12490. // for(var k = 0;k<a.length;k++){
  12491. // //diffWordsWithSpace
  12492. // if(a.length > 1){
  12493. // if(a[k].added == true){
  12494. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12495. // }else if(a[k].removed == true){
  12496. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12497. // }else{
  12498. // w += '<span>' + a[k].value + '</span>';
  12499. // }
  12500. // }else{
  12501. // if(p == 1){
  12502. // w = this.newEnglishList.engText;
  12503. // }else if(p == 2){
  12504. // w = this.oldEnglishJson1.engText;
  12505. // }else if(p == 3){
  12506. // w = this.newEnglishList.engText;
  12507. // }else{
  12508. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12509. // }
  12510. // }
  12511. // }
  12512. if(p == 1){
  12513. this.newEnglishList.engText = aiText;
  12514. }else if(p == 2){
  12515. this.oldEnglishJson1.engText = aiText;
  12516. }else if(p == 3){
  12517. this.newEnglishList.engText = aiText;
  12518. }else{
  12519. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12520. }
  12521. loading.close();
  12522. },
  12523. (err) => {
  12524. console.log(err);
  12525. loading.close();
  12526. }
  12527. );
  12528. },
  12529. addToolChoose() {
  12530. if (!this.checktoolArray.length) {
  12531. this.$message.error("请选择要添加的任务");
  12532. return;
  12533. }
  12534. if (
  12535. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12536. this.taskCount
  12537. ].toolChoose[0].tool.length
  12538. ) {
  12539. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12540. this.taskCount
  12541. ].toolChoose[0].tool = this.checktoolArray;
  12542. } else {
  12543. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12544. this.taskCount
  12545. ].toolChoose.push({
  12546. tool: this.checktoolArray,
  12547. toolDetail: "",
  12548. toolType: 0,
  12549. askCount: 1,
  12550. askTitle: "",
  12551. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12552. });
  12553. }
  12554. let params = [
  12555. {
  12556. cid: this.id,
  12557. chapters: JSON.stringify(this.chapInfoList),
  12558. uid: this.userid,
  12559. unitIndex: this.courseType,
  12560. },
  12561. ];
  12562. this.ajax
  12563. .post(this.$store.state.api + "updateWorkNew4", params)
  12564. .then((res) => {
  12565. this.$message({
  12566. message: "添加成功",
  12567. type: "success",
  12568. });
  12569. this.checktoolArray = [];
  12570. this.getCourseDetail(2);
  12571. this.checkBz(
  12572. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12573. this.taskCount
  12574. ].toolChoose.length - 1
  12575. );
  12576. this.toolDialogVisible = false;
  12577. this.refreshCourse();
  12578. this.$forceUpdate();
  12579. })
  12580. .catch((err) => {
  12581. console.error(err);
  12582. });
  12583. },
  12584. checkBz(index) {
  12585. this.isUpdateToolDetail = false;
  12586. this.$forceUpdate();
  12587. setTimeout(() => {
  12588. document.scrollingElement.scrollTop =
  12589. document.querySelectorAll(".filebox")[index].offsetTop +
  12590. document.querySelector(".student_body").offsetTop;
  12591. }, 500);
  12592. },
  12593. updateToolDetail(i, type) {
  12594. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12595. this.toolDetailIndex = i
  12596. this.isUpdateToolDetail1 = true;
  12597. setTimeout(() => {
  12598. this.updateToolDetailInner = JSON.parse(
  12599. JSON.stringify(
  12600. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12601. this.taskCount
  12602. ].toolChoose[i].toolDetail
  12603. )
  12604. );
  12605. document.querySelector(".checkTextArea").focus();
  12606. }, 0);
  12607. } else if((this.isUpdateToolDetail1 && type != 2)){
  12608. // this.toolDetailIndex = i;
  12609. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12610. this.taskCount
  12611. ].toolChoose[i].toolDetail = JSON.parse(
  12612. JSON.stringify(this.updateToolDetailInner)
  12613. );
  12614. let params = [
  12615. {
  12616. cid: this.id,
  12617. chapters: JSON.stringify(this.chapInfoList),
  12618. uid: this.userid,
  12619. unitIndex: this.courseType,
  12620. },
  12621. ];
  12622. this.ajax
  12623. .post(this.$store.state.api + "updateWorkNew4", params)
  12624. .then((res) => {
  12625. this.isUpdateToolDetail1 = false;
  12626. this.$message({
  12627. message: "修改成功",
  12628. type: "success",
  12629. });
  12630. this.toolDetailIndex = null;
  12631. this.updateToolDetailInner = "";
  12632. this.getCourseDetail(2);
  12633. this.$forceUpdate();
  12634. })
  12635. .catch((err) => {
  12636. console.error(err);
  12637. });
  12638. } else if((this.isUpdateToolDetail1 && type == 2)){
  12639. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12640. this.taskCount
  12641. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12642. JSON.stringify(this.updateToolDetailInner)
  12643. );
  12644. let params = [
  12645. {
  12646. cid: this.id,
  12647. chapters: JSON.stringify(this.chapInfoList),
  12648. uid: this.userid,
  12649. unitIndex: this.courseType,
  12650. },
  12651. ];
  12652. this.ajax
  12653. .post(this.$store.state.api + "updateWorkNew4", params)
  12654. .then((res) => {
  12655. this.$message({
  12656. message: "修改成功",
  12657. type: "success",
  12658. });
  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. this.getCourseDetail(2);
  12672. this.$forceUpdate();
  12673. })
  12674. .catch((err) => {
  12675. console.error(err);
  12676. });
  12677. }
  12678. },
  12679. jumpGj(i, j, k, l) {
  12680. for (var z = 0; z < this.navList.length; z++) {
  12681. for (var q = 0; q < this.navList[z].task.length; q++) {
  12682. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12683. this.navList[z].task[q].tool[w].isTool = false;
  12684. }
  12685. }
  12686. }
  12687. console.log(this.navList);
  12688. this.navList[i].task[j].tool[k].isTool =
  12689. !this.navList[i].task[j].tool[k].isTool;
  12690. var a = document.scrollingElement;
  12691. let target = document.querySelector(`#gj${k}`);
  12692. if (target) {
  12693. target.scrollIntoView(true);
  12694. setTimeout(() => {
  12695. a.scrollTop = a.scrollTop - 150;
  12696. }, 0);
  12697. }
  12698. this.navId = ""
  12699. let flag = this.courseType == i;
  12700. let flag2 = this.taskCount == j
  12701. if (l) {
  12702. this.courseType = i;
  12703. // this.navId = l;
  12704. this.taskCount = j;
  12705. this.selectPz();
  12706. this.getHomeWork();
  12707. this.getCourseDetail(2);
  12708. if(flag){
  12709. if(flag2){
  12710. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  12711. }else{
  12712. 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>`)
  12713. }
  12714. }else{
  12715. 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>`)
  12716. }
  12717. }
  12718. // var b = this.$refs["bz" + k][0];
  12719. // a.scrollTop = b.offsetTop;
  12720. },
  12721. addTools2(i) {
  12722. if (i == 4) {
  12723. // this.openTools2(4);
  12724. this.$message.error("暂未开放");
  12725. return;
  12726. }
  12727. if (i == 45) {
  12728. // this.openTools2(45);
  12729. this.$message.error("暂未开放");
  12730. return;
  12731. }
  12732. if (i == 47) {
  12733. // this.openTools2(47);
  12734. this.$message.error("暂未开放");
  12735. return;
  12736. }
  12737. if (i == 49) {
  12738. // this.openTools2(49);
  12739. this.$message.error("暂未开放");
  12740. return;
  12741. }
  12742. if (i == 62) {
  12743. // this.openTools(itemTaskIndex, 62, toolIndex);
  12744. this.$message.error("暂未开放");
  12745. return;
  12746. }
  12747. if (i == 15) {
  12748. // this.openTools(itemTaskIndex, 15, toolIndex);
  12749. this.$message.error("暂未开放");
  12750. return;
  12751. }
  12752. if (i == 40) {
  12753. // this.openTools(itemTaskIndex, 40, toolIndex);
  12754. this.$message.error("暂未开放");
  12755. return;
  12756. }
  12757. if (i == 41) {
  12758. // this.openTools(itemTaskIndex, 41, toolIndex);
  12759. this.$message.error("暂未开放");
  12760. return;
  12761. }
  12762. if (i == 42) {
  12763. // this.openTools(itemTaskIndex, 42, toolIndex);
  12764. this.$message.error("暂未开放");
  12765. return;
  12766. }
  12767. if (this.checktoolArray.length > 0) {
  12768. if (this.checktoolArray.indexOf(i) != -1) {
  12769. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12770. } else {
  12771. this.checktoolArray = [];
  12772. this.checktoolArray.push(i);
  12773. }
  12774. } else {
  12775. this.checktoolArray.push(i);
  12776. }
  12777. this.$forceUpdate();
  12778. },
  12779. jump() {
  12780. window.parent.postMessage({ tools: "43" }, "*");
  12781. },
  12782. getUpdateMore(f, checkboxList, searchTN, index) {
  12783. this.dialogVisibleMember = f;
  12784. this.checkboxList = checkboxList;
  12785. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12786. this.plIndex = index;
  12787. },
  12788. setPlname(a) {
  12789. if (this.plworkFile.length) {
  12790. this.plworkFile[this.plIndex].username = a;
  12791. } else {
  12792. this.worksSName = a;
  12793. }
  12794. this.dialogVisibleMember = false;
  12795. },
  12796. previewImg(url,w) {
  12797. this.$hevueImgPreview(url);
  12798. if(w){
  12799. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  12800. }
  12801. },
  12802. checkImg(list) {
  12803. if (!list.length) {
  12804. return;
  12805. }
  12806. this.$hevueImgPreview({
  12807. multiple: true, // 开启多图预览模式
  12808. imgList: list, // 需要预览的多图数组
  12809. });
  12810. },
  12811. change(val) {
  12812. console.log(val);
  12813. },
  12814. goTo(path) {
  12815. this.$router.push(path);
  12816. },
  12817. handlePictureCardPreview(url) {
  12818. this.dialogImageUrl = url;
  12819. this.pictureDialog = true;
  12820. },
  12821. clean(type) {
  12822. if (type == 1) {
  12823. this.studyJuri[0].cover.splice(0, 1);
  12824. } else if (type == 2) {
  12825. this.studyJuri[0].upVedio.splice(0, 1);
  12826. } else {
  12827. this.studyJuri[0].upFile.splice(0, 1);
  12828. }
  12829. },
  12830. clean2(index) {
  12831. this.plworkFile.splice(index, 1);
  12832. },
  12833. handleClose(done) {
  12834. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12835. this.videoDetail.sources[0].src = "";
  12836. }
  12837. this.commentIndexJson = {};
  12838. done();
  12839. },
  12840. fullTools() {
  12841. this.full = !this.full;
  12842. },
  12843. imgChange(file, fileList, type) {
  12844. if (type == 1) {
  12845. var _tmp = this.studyJuri[0].cover;
  12846. } else if (type == 2) {
  12847. var _tmp = this.studyJuri[0].upVedio;
  12848. } else {
  12849. var _tmp = this.studyJuri[0].upFile;
  12850. }
  12851. this.noneBtnImg = _tmp.length >= 1;
  12852. },
  12853. setContent(bool) {
  12854. this.contentDialog = bool;
  12855. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12856. document.querySelector(".workd_media").style.height = "650px";
  12857. } else if (document.querySelector(".workd_media")) {
  12858. document.querySelector(".workd_media").style.height = "auto";
  12859. }
  12860. },
  12861. setContent2(bool) {
  12862. this.mlDialog = bool;
  12863. if (
  12864. bool &&
  12865. this.contentDialog &&
  12866. document.querySelector(".workd_media")
  12867. ) {
  12868. document.querySelector(".workd_media").style.height = "650px";
  12869. } else if (document.querySelector(".workd_media")) {
  12870. document.querySelector(".workd_media").style.height = "auto";
  12871. }
  12872. },
  12873. openToolAll() {
  12874. this.toolDialogVisible = true;
  12875. },
  12876. addImg(e) {
  12877. var el = e.currentTarget;
  12878. // this.$message.success('触发上传')
  12879. el.getElementsByTagName("input")[0].click();
  12880. e.target.value = "";
  12881. },
  12882. addSelectAnswer() {
  12883. let params = [
  12884. {
  12885. uid: this.userid,
  12886. cid: this.id,
  12887. stage: this.courseType,
  12888. task: this.taskCount,
  12889. tool: this.toolindex,
  12890. content: this.selectAnswer.answer,
  12891. type: 7,
  12892. },
  12893. ];
  12894. this.ajax
  12895. .post(this.$store.state.api + "addCourseWorks", params)
  12896. .then((res) => {
  12897. this.$message({
  12898. message: "提交成功",
  12899. type: "success",
  12900. });
  12901. this.dialogVisibleSelect = false;
  12902. // this.selectAnswer = {};
  12903. this.selectSWorks();
  12904. this.selectStudent();
  12905. })
  12906. .catch((err) => {
  12907. this.$message.error("提交失败");
  12908. console.error(err);
  12909. });
  12910. },
  12911. addSelectAnswerTeacher() {
  12912. let params = [
  12913. {
  12914. uid: this.sStudent.userid,
  12915. cid: this.id,
  12916. stage: this.courseType,
  12917. task: this.taskCount,
  12918. tool: this.toolindex,
  12919. content: this.selectAnswer.answer,
  12920. type: 7,
  12921. },
  12922. ];
  12923. this.ajax
  12924. .post(this.$store.state.api + "addCourseWorks", params)
  12925. .then((res) => {
  12926. this.$message({
  12927. message: "提交成功",
  12928. type: "success",
  12929. });
  12930. this.dialogVisibleSelectTeacher = false;
  12931. // this.selectAnswer = {};
  12932. this.selectSWorks();
  12933. this.selectStudent();
  12934. })
  12935. .catch((err) => {
  12936. this.$message.error("提交失败");
  12937. console.error(err);
  12938. });
  12939. },
  12940. addSenWorks() {
  12941. for (var i = 0; i < this.sentenceList.length; i++) {
  12942. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12943. if (
  12944. this.sentenceList[i].chooseSenList[j] == undefined ||
  12945. this.sentenceList[i].chooseSenList[j] == ""
  12946. ) {
  12947. this.$message.error("请将答案填写完整!");
  12948. return;
  12949. }
  12950. }
  12951. }
  12952. let params = [
  12953. {
  12954. uid: this.userid,
  12955. cid: this.id,
  12956. stage: this.courseType,
  12957. task: this.taskCount,
  12958. tool: this.toolindex,
  12959. content: JSON.stringify(this.sentenceList),
  12960. type: 9,
  12961. },
  12962. ];
  12963. this.ajax
  12964. .post(this.$store.state.api + "addCourseWorks", params)
  12965. .then((res) => {
  12966. this.$message({
  12967. message: "提交成功",
  12968. type: "success",
  12969. });
  12970. this.dialogVisibleSentence = false;
  12971. // this.selectAnswer = {};
  12972. this.selectSWorks();
  12973. this.selectStudent();
  12974. })
  12975. .catch((err) => {
  12976. this.$message.error("提交失败");
  12977. console.error(err);
  12978. });
  12979. },
  12980. addSenWorksTeacher() {
  12981. for (var i = 0; i < this.sentenceList.length; i++) {
  12982. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12983. if (
  12984. this.sentenceList[i].chooseSenList[j] == undefined ||
  12985. this.sentenceList[i].chooseSenList[j] == ""
  12986. ) {
  12987. this.$message.error("请将答案填写完整!");
  12988. return;
  12989. }
  12990. }
  12991. }
  12992. let params = [
  12993. {
  12994. uid: this.sStudent.userid,
  12995. cid: this.id,
  12996. stage: this.courseType,
  12997. task: this.taskCount,
  12998. tool: this.toolindex,
  12999. content: JSON.stringify(this.sentenceList),
  13000. type: 9,
  13001. },
  13002. ];
  13003. this.ajax
  13004. .post(this.$store.state.api + "addCourseWorks", params)
  13005. .then((res) => {
  13006. this.$message({
  13007. message: "提交成功",
  13008. type: "success",
  13009. });
  13010. this.dialogVisibleSentenceTeacher = false;
  13011. // this.selectAnswer = {};
  13012. this.selectSWorks();
  13013. this.selectStudent();
  13014. })
  13015. .catch((err) => {
  13016. this.$message.error("提交失败");
  13017. console.error(err);
  13018. });
  13019. },
  13020. returnTableText() {
  13021. this.$confirm("确定还原此模板吗?", "提示", {
  13022. confirmButtonText: "确定",
  13023. cancelButtonText: "取消",
  13024. type: "warning",
  13025. })
  13026. .then(() => {
  13027. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13028. })
  13029. .catch(() => {});
  13030. },
  13031. addTableWorks() {
  13032. let params = [
  13033. {
  13034. uid: this.userid,
  13035. cid: this.id,
  13036. stage: this.courseType,
  13037. task: this.taskCount,
  13038. tool: this.toolindex,
  13039. content: JSON.stringify(this.tableJson),
  13040. type: 10,
  13041. },
  13042. ];
  13043. this.ajax
  13044. .post(this.$store.state.api + "addCourseWorks", params)
  13045. .then((res) => {
  13046. this.$message({
  13047. message: "提交成功",
  13048. type: "success",
  13049. });
  13050. this.dialogVisibleTable = false;
  13051. // this.selectAnswer = {};
  13052. this.selectSWorks();
  13053. this.selectStudent();
  13054. })
  13055. .catch((err) => {
  13056. this.$message.error("提交失败");
  13057. console.error(err);
  13058. });
  13059. },
  13060. tableRowClassName({ row, rowIndex }) {
  13061. if ((rowIndex + 1) % 2 === 0) {
  13062. return "even_row";
  13063. } else {
  13064. return "";
  13065. }
  13066. },
  13067. addTableWorksTeacher() {
  13068. let params = [
  13069. {
  13070. uid: this.sStudent.userid,
  13071. cid: this.id,
  13072. stage: this.courseType,
  13073. task: this.taskCount,
  13074. tool: this.toolindex,
  13075. content: JSON.stringify(this.tableJson),
  13076. type: 10,
  13077. },
  13078. ];
  13079. this.ajax
  13080. .post(this.$store.state.api + "addCourseWorks", params)
  13081. .then((res) => {
  13082. this.$message({
  13083. message: "提交成功",
  13084. type: "success",
  13085. });
  13086. this.dialogVisibleTableTeacher = false;
  13087. // this.selectAnswer = {};
  13088. this.selectSWorks();
  13089. this.selectStudent();
  13090. })
  13091. .catch((err) => {
  13092. this.$message.error("提交失败");
  13093. console.error(err);
  13094. });
  13095. },
  13096. returnWordText() {
  13097. this.$confirm("确定还原此模板吗?", "提示", {
  13098. confirmButtonText: "确定",
  13099. cancelButtonText: "取消",
  13100. type: "warning",
  13101. })
  13102. .then(() => {
  13103. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13104. })
  13105. .catch(() => {});
  13106. },
  13107. addWordWorks() {
  13108. let params = [
  13109. {
  13110. uid: this.userid,
  13111. cid: this.id,
  13112. stage: this.courseType,
  13113. task: this.taskCount,
  13114. tool: this.toolindex,
  13115. content: JSON.stringify(this.wordJson),
  13116. type: 13,
  13117. atool: 52,
  13118. },
  13119. ];
  13120. this.ajax
  13121. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13122. .then((res) => {
  13123. this.$message({
  13124. message: "提交成功",
  13125. type: "success",
  13126. });
  13127. this.dialogVisibleWord = false;
  13128. // this.selectAnswer = {};
  13129. this.selectSWorks();
  13130. this.selectStudent();
  13131. })
  13132. .catch((err) => {
  13133. this.$message.error("提交失败");
  13134. console.error(err);
  13135. });
  13136. },
  13137. addWordWorksTeacher() {
  13138. let params = [
  13139. {
  13140. uid: this.sStudent.userid,
  13141. cid: this.id,
  13142. stage: this.courseType,
  13143. task: this.taskCount,
  13144. tool: this.toolindex,
  13145. content: JSON.stringify(this.wordJson),
  13146. type: 13,
  13147. atool: 52,
  13148. },
  13149. ];
  13150. this.ajax
  13151. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13152. .then((res) => {
  13153. this.$message({
  13154. message: "提交成功",
  13155. type: "success",
  13156. });
  13157. this.dialogVisibleWordTeacher = false;
  13158. // this.selectAnswer = {};
  13159. this.selectSWorks();
  13160. this.selectStudent();
  13161. })
  13162. .catch((err) => {
  13163. this.$message.error("提交失败");
  13164. console.error(err);
  13165. });
  13166. },
  13167. addCourseWorks(i) {
  13168. var typesql;
  13169. if (this.fileType === 0) {
  13170. typesql = 1;
  13171. } else if (this.fileType === 1) {
  13172. typesql = 4;
  13173. } else if (this.fileType === 2) {
  13174. typesql = 5;
  13175. } else if (this.fileType === 3) {
  13176. typesql = 12;
  13177. }
  13178. if (!this.studyJuri[0].cover[0].url) {
  13179. this.$message.error("请上传文件");
  13180. return;
  13181. }
  13182. let params = [
  13183. {
  13184. uid: this.userid,
  13185. cid: this.id,
  13186. stage: this.courseType,
  13187. task: i,
  13188. tool: this.toolindex,
  13189. content: this.studyJuri[0].cover[0].url,
  13190. type: typesql,
  13191. },
  13192. ];
  13193. this.ajax
  13194. .post(this.$store.state.api + "addCourseWorksR", params)
  13195. .then((res) => {
  13196. this.$message({
  13197. message: "提交成功",
  13198. type: "success",
  13199. });
  13200. this.studyJuri[0].cover = [];
  13201. this.dialogVisible = false;
  13202. this.getCourseDetail(2);
  13203. })
  13204. .catch((err) => {
  13205. this.$message.error("提交失败");
  13206. console.error(err);
  13207. });
  13208. },
  13209. addCourseWorksPl(i) {
  13210. let _files = this.plworkFile;
  13211. var c = 1;
  13212. for (var k = 0; k < _files.length; k++) {
  13213. if (!_files[k].username) {
  13214. c = 2;
  13215. }
  13216. }
  13217. if (c == 2) {
  13218. this.$message.error("请填写学生姓名");
  13219. return;
  13220. }
  13221. let params = [
  13222. {
  13223. ateacher: this.userid,
  13224. cid: this.id,
  13225. stage: this.courseType,
  13226. task: i,
  13227. tool: this.toolindex,
  13228. content: JSON.stringify(_files),
  13229. },
  13230. ];
  13231. this.ajax
  13232. .post(this.$store.state.api + "addCourseWorksPl", params)
  13233. .then((res) => {
  13234. this.$message({
  13235. message: "提交成功",
  13236. type: "success",
  13237. });
  13238. this.plworkFile = [];
  13239. this.dialogVisiblePl = false;
  13240. this.getCourseDetail(2);
  13241. })
  13242. .catch((err) => {
  13243. this.$message.error("提交失败");
  13244. console.error(err);
  13245. });
  13246. },
  13247. addCourseWorks2(i) {
  13248. var typesql;
  13249. if (this.fileType === 0) {
  13250. typesql = 0;
  13251. } else if (this.fileType === 1) {
  13252. typesql = 1;
  13253. } else if (this.fileType === 2) {
  13254. typesql = 3;
  13255. } else if (this.fileType === 3) {
  13256. typesql = 12;
  13257. }
  13258. if (!this.studyJuri[0].cover[0].url) {
  13259. this.$message.error("请上传文件");
  13260. return;
  13261. }
  13262. let params = [
  13263. {
  13264. uid: this.userid,
  13265. cid: this.id,
  13266. stage: this.courseType,
  13267. task: i,
  13268. tool: this.toolindex,
  13269. content: JSON.stringify({
  13270. type: typesql,
  13271. groupIndex: this.groupIndex,
  13272. url: this.studyJuri[0].cover[0].url,
  13273. }),
  13274. type: 11,
  13275. atool: 49,
  13276. text: "",
  13277. },
  13278. ];
  13279. this.ajax
  13280. .post(this.$store.state.api + "addCourseWorks5", params)
  13281. .then((res) => {
  13282. this.$message({
  13283. message: "提交成功",
  13284. type: "success",
  13285. });
  13286. this.studyJuri[0].cover = [];
  13287. this.dialogVisibleGroupWork = false;
  13288. this.getCourseDetail(2);
  13289. })
  13290. .catch((err) => {
  13291. this.$message.error("提交失败");
  13292. console.error(err);
  13293. });
  13294. },
  13295. addEnglishWork() {
  13296. this.myAnList = this.$refs['engJson'].myAnswerList;
  13297. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13298. this.$message.error("请输入作文标题和正文!");
  13299. return;
  13300. }
  13301. let params = [
  13302. {
  13303. uid: this.userid,
  13304. cid: this.id,
  13305. stage: this.courseType,
  13306. task: this.taskCount,
  13307. tool: this.englishToolIndex,
  13308. content: JSON.stringify(this.myAnList),
  13309. type: 16,
  13310. atool: 69,
  13311. text: "",
  13312. },
  13313. ];
  13314. this.ajax
  13315. .post(this.$store.state.api + "addCourseWorks5", params)
  13316. .then((res) => {
  13317. this.$message({
  13318. message: "提交成功",
  13319. type: "success",
  13320. });
  13321. this.myAnList = {};
  13322. this.englishList = {};
  13323. this.englishToolIndex = 0;
  13324. this.engDialogVisible = false;
  13325. this.selectSWorks();
  13326. this.selectStudent();
  13327. })
  13328. .catch((err) => {
  13329. this.$message.error("提交失败");
  13330. console.error(err);
  13331. });
  13332. },
  13333. addCourseWorksGong(i, data, tool) {
  13334. let params = [
  13335. {
  13336. uid: this.userid,
  13337. cid: this.id,
  13338. stage: this.courseType,
  13339. task: this.taskCount,
  13340. tool: i,
  13341. content: data,
  13342. type: 12,
  13343. atool: tool,
  13344. text: "",
  13345. },
  13346. ];
  13347. this.ajax
  13348. .post(this.$store.state.api + "addCourseWorks5", params)
  13349. .then((res) => {
  13350. this.$message({
  13351. message: "提交成功",
  13352. type: "success",
  13353. });
  13354. this.studyJuri[0].cover = [];
  13355. this.selectSWorks();
  13356. this.selectStudent();
  13357. })
  13358. .catch((err) => {
  13359. this.$message.error("提交失败");
  13360. console.error(err);
  13361. });
  13362. },
  13363. addCourseWorksGongTeacher(i, data, tool) {
  13364. let params = [
  13365. {
  13366. uid: this.sStudent.userid,
  13367. cid: this.id,
  13368. stage: this.courseType,
  13369. task: this.taskCount,
  13370. tool: i,
  13371. content: data,
  13372. type: 12,
  13373. atool: tool,
  13374. text: "",
  13375. },
  13376. ];
  13377. this.ajax
  13378. .post(this.$store.state.api + "addCourseWorks5", params)
  13379. .then((res) => {
  13380. this.$message({
  13381. message: "提交成功",
  13382. type: "success",
  13383. });
  13384. this.studyJuri[0].cover = [];
  13385. this.dialogVisibleWorks = false;
  13386. this.selectSWorks();
  13387. this.selectStudent();
  13388. })
  13389. .catch((err) => {
  13390. this.$message.error("提交失败");
  13391. console.error(err);
  13392. });
  13393. },
  13394. addCourseWorksGongPl(i, data, tool, type) {
  13395. let params = [
  13396. {
  13397. uid: this.sStudent.userid,
  13398. cid: this.id,
  13399. stage: this.courseType,
  13400. task: this.taskCount,
  13401. tool: i,
  13402. content: data,
  13403. type: type,
  13404. atool: tool,
  13405. text: "",
  13406. },
  13407. ];
  13408. this.ajax
  13409. .post(this.$store.state.api + "addCourseWorks5", params)
  13410. .then((res) => {
  13411. this.$message({
  13412. message: "提交成功",
  13413. type: "success",
  13414. });
  13415. this.studyJuri[0].cover = [];
  13416. this.dialogVisibleWorks = false;
  13417. this.selectSWorks();
  13418. this.selectStudent();
  13419. })
  13420. .catch((err) => {
  13421. this.$message.error("提交失败");
  13422. console.error(err);
  13423. });
  13424. },
  13425. addCourseWorksTeacher(i) {
  13426. var typesql;
  13427. if (this.sTool == 32) {
  13428. this.addCourseWorksGongTeacher(
  13429. this.toolindex,
  13430. this.studyJuri[0].cover[0].url,
  13431. this.sTool
  13432. );
  13433. return;
  13434. }
  13435. if (this.fileType === 0) {
  13436. typesql = 1;
  13437. } else if (this.fileType === 1) {
  13438. typesql = 4;
  13439. } else if (this.fileType === 2) {
  13440. typesql = 5;
  13441. } else if (this.fileType === 3) {
  13442. typesql = 12;
  13443. }
  13444. if (this.sTool == 50) {
  13445. this.addCourseWorksGongPl(
  13446. this.toolindex,
  13447. this.studyJuri[0].cover[0].url,
  13448. this.sTool,
  13449. typesql
  13450. );
  13451. return;
  13452. }
  13453. if (!this.studyJuri[0].cover[0].url) {
  13454. this.$message.error("请上传文件");
  13455. return;
  13456. }
  13457. let params = [
  13458. {
  13459. uid: this.sStudent.userid,
  13460. cid: this.id,
  13461. stage: this.courseType,
  13462. task: i,
  13463. tool: this.toolindex,
  13464. content: this.studyJuri[0].cover[0].url,
  13465. type: typesql,
  13466. ateacher: this.userid,
  13467. },
  13468. ];
  13469. this.ajax
  13470. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13471. .then((res) => {
  13472. this.$message({
  13473. message: "提交成功",
  13474. type: "success",
  13475. });
  13476. this.studyJuri[0].cover = [];
  13477. this.dialogVisibleWorks = false;
  13478. this.getCourseDetail(2);
  13479. })
  13480. .catch((err) => {
  13481. this.$message.error("提交失败");
  13482. console.error(err);
  13483. });
  13484. },
  13485. selectUploadStudent(type) {
  13486. const loading = this.$loading.service({
  13487. background: "rgba(255, 255, 255, 0.7)",
  13488. target: document.body,
  13489. });
  13490. let params = {
  13491. cid: this.uploadCid,
  13492. oid: this.oid,
  13493. cn: "",
  13494. };
  13495. this.ajax
  13496. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13497. .then((res) => {
  13498. loading.close();
  13499. var studentK = [];
  13500. if (this.isWorksS[this.toolindex].length > 0) {
  13501. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13502. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13503. }
  13504. studentK = studentK.join(",");
  13505. }
  13506. this.uploadStudentJuri = res.data[0].filter((el) => {
  13507. return studentK.indexOf(el.userid) == -1;
  13508. });
  13509. if (this.worksSName && this.worksSid) {
  13510. this.uploadStudentJuri.push({
  13511. userid: this.worksSid,
  13512. name: this.worksSName,
  13513. });
  13514. }
  13515. if (type == 1) {
  13516. this.plworkFile = [];
  13517. this.dialogVisibleSname = true;
  13518. } else if (type == 2) {
  13519. this.dialogVisiblePl = true;
  13520. }
  13521. })
  13522. .catch((err) => {
  13523. loading.close();
  13524. console.error(err);
  13525. });
  13526. },
  13527. selectPickStudent() {
  13528. const loading = this.$loading.service({
  13529. background: "rgba(255, 255, 255, 0.7)",
  13530. target: document.body,
  13531. });
  13532. let params = {
  13533. cid: this.uploadCid,
  13534. oid: this.oid,
  13535. cn: "",
  13536. };
  13537. this.ajax
  13538. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13539. .then((res) => {
  13540. loading.close();
  13541. this.uploadStudentJuri = res.data[0];
  13542. this.dialogVisiblePickPeople = true;
  13543. })
  13544. .catch((err) => {
  13545. loading.close();
  13546. console.error(err);
  13547. });
  13548. },
  13549. arrayToArray(arrayo, arrayt) {
  13550. let array1 = arrayo;
  13551. let array2 = arrayt;
  13552. let commonElements = [];
  13553. for (let i = 0; i < array1.length; i++) {
  13554. for (let j = 0; j < array2.length; j++) {
  13555. if (array1[i] === array2[j]) {
  13556. commonElements.push(array1[i]);
  13557. }
  13558. }
  13559. }
  13560. return commonElements;
  13561. },
  13562. selectWorksStudent() {
  13563. let params = {
  13564. oid: this.oid,
  13565. cid: this.courseDetail.juri,
  13566. };
  13567. this.ajax
  13568. .get(this.$store.state.api + "selectWorksStudent", params)
  13569. .then((res) => {
  13570. var a = res.data[0];
  13571. for (var i = 0; i < this.isWorksS.length; i++) {
  13572. this.noWorksS[i] = [];
  13573. var studentK = [];
  13574. if (this.isWorksS[i].length > 0) {
  13575. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13576. studentK.push(this.isWorksS[i][z].uid);
  13577. }
  13578. studentK = studentK.join(",");
  13579. for (var j = 0; j < a.length; j++) {
  13580. if (studentK.indexOf(a[j].userid) == -1) {
  13581. if (this.tcid) {
  13582. // a[j].classid.indexOf(this.tcid) != -1
  13583. if (
  13584. this.arrayToArray(
  13585. a[j].classid.split(","),
  13586. this.tcid.split(",")
  13587. ).length
  13588. ) {
  13589. this.noWorksS[i].push({
  13590. student: a[j].name,
  13591. userid: a[j].userid,
  13592. });
  13593. }
  13594. } else {
  13595. this.noWorksS[i].push({
  13596. student: a[j].name,
  13597. userid: a[j].userid,
  13598. });
  13599. }
  13600. }
  13601. }
  13602. } else {
  13603. for (var k = 0; k < a.length; k++) {
  13604. if (this.tcid) {
  13605. if (
  13606. this.arrayToArray(
  13607. a[k].classid.split(","),
  13608. this.tcid.split(",")
  13609. ).length
  13610. ) {
  13611. this.noWorksS[i].push({
  13612. student: a[k].name,
  13613. userid: a[k].userid,
  13614. });
  13615. }
  13616. } else {
  13617. this.noWorksS[i].push({
  13618. student: a[k].name,
  13619. userid: a[k].userid,
  13620. });
  13621. }
  13622. }
  13623. }
  13624. }
  13625. this.$forceUpdate();
  13626. if (
  13627. Object.keys(this.commentDetail).length &&
  13628. Object.keys(this.commentIndexJson).length &&
  13629. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13630. ) {
  13631. let a = 1;
  13632. let c = this.commentIndexJson;
  13633. if (
  13634. this.commentIndexJson.gindex ||
  13635. this.commentIndexJson.gindex === 0
  13636. ) {
  13637. for (
  13638. var i = 0;
  13639. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13640. i++
  13641. ) {
  13642. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13643. groupA: for (var k = 0; k < _el.length; k++) {
  13644. let el = _el[k];
  13645. if (el.wid == this.commentDetail.wid) {
  13646. a = 2;
  13647. this.commentOther(
  13648. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13649. this.commentIndexJson.toolIndex,
  13650. k,
  13651. this.commentIndexJson.gindex
  13652. );
  13653. break groupA;
  13654. }
  13655. }
  13656. }
  13657. if (a === 1) {
  13658. this.commentDetail = [];
  13659. this.commentIndexJson = {};
  13660. this.commentDialogVisible = false;
  13661. this.$message("此作业已被删除");
  13662. }
  13663. } else {
  13664. if (this.isGroup && this.commentIndexJson.gid) {
  13665. groupA: for (
  13666. var i = 0;
  13667. i < this.courseGroup.group.length;
  13668. i++
  13669. ) {
  13670. let _group = this.courseGroup.group[i];
  13671. if (_group.id == this.commentIndexJson.gid) {
  13672. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13673. for (var k = 0; k < _el2.length; k++) {
  13674. let el2 = _el2[k];
  13675. if (el2.wid == this.commentDetail.wid) {
  13676. a = 2;
  13677. this.commentOther(
  13678. _el2[k],
  13679. this.commentIndexJson.toolIndex,
  13680. k,
  13681. null,
  13682. this.commentIndexJson.gid
  13683. );
  13684. break groupA;
  13685. }
  13686. }
  13687. }
  13688. }
  13689. }
  13690. if (a == 1) {
  13691. for (
  13692. var i = 0;
  13693. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13694. i++
  13695. ) {
  13696. let el =
  13697. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13698. if (el.wid == this.commentDetail.wid) {
  13699. a = 2;
  13700. this.commentOther(
  13701. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13702. this.commentIndexJson.toolIndex,
  13703. i
  13704. );
  13705. break;
  13706. }
  13707. }
  13708. }
  13709. if (a === 1) {
  13710. this.commentDetail = [];
  13711. this.commentIndexJson = {};
  13712. this.commentDialogVisible = false;
  13713. this.$message("此作业已被删除");
  13714. }
  13715. }
  13716. }
  13717. })
  13718. .catch((err) => {
  13719. console.error(err);
  13720. });
  13721. },
  13722. selectStudent() {
  13723. //学生查看自己作业
  13724. let params = {
  13725. uid: this.userid,
  13726. cid: this.id,
  13727. s: this.courseType,
  13728. t: this.taskCount,
  13729. };
  13730. this.ajax
  13731. .get(this.$store.state.api + "selectStudentWorks", params)
  13732. .then((res) => {
  13733. var a =
  13734. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13735. this.taskCount
  13736. ].toolChoose;
  13737. var b = res.data[0];
  13738. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13739. var y = [
  13740. "AVI",
  13741. "NAVI",
  13742. "MPEG",
  13743. "ASF",
  13744. "MOV",
  13745. "WMV",
  13746. "3GP",
  13747. "RM",
  13748. "RMVB",
  13749. "FLV",
  13750. "F4V",
  13751. "H.264",
  13752. "H.265",
  13753. "REAL VIDEO",
  13754. "MKV",
  13755. "WebM",
  13756. "HDDVD",
  13757. "MP4",
  13758. "MPG",
  13759. "M4V",
  13760. "MGV",
  13761. "OGV",
  13762. "QTM",
  13763. "STR",
  13764. "AMC",
  13765. "DVX",
  13766. "EVO",
  13767. "DAT",
  13768. "OGG",
  13769. "OGM",
  13770. ];
  13771. for (var i = 0; i < a.length; i++) {
  13772. this.workStudent[i] = [];
  13773. for (var j = 0; j < b.length; j++) {
  13774. if (i == b[j].tool) {
  13775. if (
  13776. (b[j].type == 1 ||
  13777. b[j].type == 4 ||
  13778. b[j].type == 5 ||
  13779. b[j].type == 6 ||
  13780. b[j].type == 12 ||
  13781. b[j].type == 7) &&
  13782. a[i].tool[0] != 15 &&
  13783. a[i].tool[0] != 4 &&
  13784. a[i].tool[0] != 45 &&
  13785. a[i].tool[0] != 50 &&
  13786. a[i].tool[0] != 32 &&
  13787. a[i].tool[0] != 57 &&
  13788. a[i].tool[0] != 52 &&
  13789. a[i].tool[0] != 69
  13790. ) {
  13791. if (
  13792. c.indexOf(
  13793. b[j].content
  13794. .split(".")
  13795. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13796. ) != -1 &&
  13797. a[i].tool[0] == 16 &&
  13798. b[j].atool != 50
  13799. ) {
  13800. this.workStudent[i].push({
  13801. works: b[j].content,
  13802. sName: b[j].name,
  13803. score: b[j].score,
  13804. img: b[j].img,
  13805. type: 1,
  13806. time: b[j].time,
  13807. userid: b[j].userid,
  13808. wid: b[j].id,
  13809. });
  13810. } else if (
  13811. y.indexOf(
  13812. b[j].content
  13813. .split(".")
  13814. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13815. ) != -1 &&
  13816. a[i].tool[0] == 16 &&
  13817. b[j].atool != 50
  13818. ) {
  13819. this.workStudent[i].push({
  13820. userid: b[j].userid,
  13821. wid: b[j].id,
  13822. works: b[j].content,
  13823. sName: b[j].name,
  13824. score: b[j].score,
  13825. img: b[j].img,
  13826. type: 3,
  13827. time: b[j].time,
  13828. });
  13829. } else if (b[j].type == 6 && b[j].atool != 50) {
  13830. this.workStudent[i].push({
  13831. userid: b[j].userid,
  13832. wid: b[j].id,
  13833. works: b[j].content,
  13834. sName: b[j].name,
  13835. score: b[j].score,
  13836. img: b[j].img,
  13837. type: 4,
  13838. time: b[j].time,
  13839. });
  13840. } else if (b[j].type == 7 && b[j].atool != 50) {
  13841. this.workStudent[i].push({
  13842. userid: b[j].userid,
  13843. wid: b[j].id,
  13844. works: b[j].content,
  13845. sName: b[j].name,
  13846. score: b[j].score,
  13847. img: b[j].img,
  13848. type: 5,
  13849. time: b[j].time,
  13850. });
  13851. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13852. this.workStudent[i].push({
  13853. works: b[j].content,
  13854. sName: b[j].name,
  13855. score: b[j].score,
  13856. img: b[j].img,
  13857. type: 12,
  13858. time: b[j].time,
  13859. userid: b[j].userid,
  13860. wid: b[j].id,
  13861. });
  13862. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13863. this.workStudent[i].push({
  13864. works: b[j].content,
  13865. sName: b[j].name,
  13866. score: b[j].score,
  13867. img: b[j].img,
  13868. type: 0,
  13869. time: b[j].time,
  13870. userid: b[j].userid,
  13871. wid: b[j].id,
  13872. });
  13873. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13874. this.workStudent[i].push({
  13875. works: b[j].content,
  13876. sName: b[j].name,
  13877. score: b[j].score,
  13878. img: b[j].img,
  13879. type: 0,
  13880. time: b[j].time,
  13881. userid: b[j].userid,
  13882. wid: b[j].id,
  13883. });
  13884. }
  13885. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13886. this.workStudent[i].push({
  13887. works: b[j].content,
  13888. sName: b[j].name,
  13889. score: b[j].score,
  13890. img: b[j].img,
  13891. type: 2,
  13892. time: b[j].time,
  13893. userid: b[j].userid,
  13894. wid: b[j].id,
  13895. });
  13896. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13897. //问卷
  13898. this.workStudent[i].push({
  13899. works: b[j].content,
  13900. sName: b[j].name,
  13901. score: b[j].score,
  13902. img: b[j].img,
  13903. type: 2,
  13904. time: b[j].time,
  13905. userid: b[j].userid,
  13906. wid: b[j].id,
  13907. });
  13908. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13909. //选择题
  13910. this.workStudent[i].push({
  13911. works: b[j].content,
  13912. sName: b[j].name,
  13913. score: b[j].score,
  13914. img: b[j].img,
  13915. type: 8,
  13916. time: b[j].time,
  13917. userid: b[j].userid,
  13918. wid: b[j].id,
  13919. });
  13920. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13921. //选择题
  13922. this.workStudent[i].push({
  13923. works: b[j].content,
  13924. sName: b[j].name,
  13925. score: b[j].score,
  13926. img: b[j].img,
  13927. type: 9,
  13928. time: b[j].time,
  13929. userid: b[j].userid,
  13930. wid: b[j].id,
  13931. });
  13932. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13933. //选择题
  13934. this.workStudent[i].push({
  13935. works: b[j].content,
  13936. sName: b[j].name,
  13937. score: b[j].score,
  13938. img: b[j].img,
  13939. type: 10,
  13940. time: b[j].time,
  13941. userid: b[j].userid,
  13942. wid: b[j].id,
  13943. });
  13944. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13945. //选择题
  13946. this.workStudent[i].push({
  13947. works: b[j].content,
  13948. sName: b[j].name,
  13949. score: b[j].score,
  13950. img: b[j].img,
  13951. type: 13,
  13952. time: b[j].time,
  13953. userid: b[j].userid,
  13954. wid: b[j].id,
  13955. });
  13956. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13957. //选择题
  13958. this.workStudent[i].push({
  13959. works: b[j].content,
  13960. sName: b[j].name,
  13961. score: b[j].score,
  13962. img: b[j].img,
  13963. type: 12,
  13964. time: b[j].time,
  13965. userid: b[j].userid,
  13966. wid: b[j].id,
  13967. });
  13968. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13969. //选择题
  13970. this.workStudent[i].push({
  13971. works: b[j].content,
  13972. sName: b[j].name,
  13973. score: b[j].score,
  13974. img: b[j].img,
  13975. type: 12,
  13976. time: b[j].time,
  13977. userid: b[j].userid,
  13978. wid: b[j].id,
  13979. });
  13980. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13981. //选择题
  13982. this.workStudent[i].push({
  13983. works: b[j].content,
  13984. sName: b[j].name,
  13985. score: b[j].score,
  13986. img: b[j].img,
  13987. type: 15,
  13988. time: b[j].time,
  13989. userid: b[j].userid,
  13990. wid: b[j].id,
  13991. });
  13992. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13993. //英语写作
  13994. this.workStudent[i].push({
  13995. works: b[j].content,
  13996. sName: b[j].name,
  13997. score: b[j].score,
  13998. img: b[j].img,
  13999. type: 16,
  14000. time: b[j].time,
  14001. userid: b[j].userid,
  14002. wid: b[j].id,
  14003. aiCode: b[j].aiCode,
  14004. teacherCode: b[j].teacherCode
  14005. });
  14006. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14007. //英语口语
  14008. this.workStudent[i].push({
  14009. works: b[j].content,
  14010. sName: b[j].name,
  14011. score: b[j].score,
  14012. img: b[j].img,
  14013. type: 17,
  14014. time: b[j].time,
  14015. userid: b[j].userid,
  14016. wid: b[j].id,
  14017. });
  14018. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14019. //交互视频
  14020. this.workStudent[i].push({
  14021. works: b[j].content,
  14022. sName: b[j].name,
  14023. score: b[j].score,
  14024. img: b[j].img,
  14025. type: 14,
  14026. time: b[j].time,
  14027. userid: b[j].userid,
  14028. wid: b[j].id,
  14029. });
  14030. }
  14031. }
  14032. }
  14033. }
  14034. })
  14035. .catch((err) => {
  14036. console.error(err);
  14037. });
  14038. },
  14039. openVideo(w) {
  14040. this.videoDetail = {};
  14041. this.playerOptions1.sources[0].src = w.works;
  14042. this.videoDetail = this.playerOptions1;
  14043. this.videoVisible = true;
  14044. },
  14045. isLikes(wid, uid, t, c, isLikes,sName) {
  14046. if (isLikes == false) {
  14047. let params = [
  14048. {
  14049. wid: wid,
  14050. lid: uid,
  14051. t: t,
  14052. c: c,
  14053. },
  14054. ];
  14055. this.ajax
  14056. .post(this.$store.state.api + "insertComment", params)
  14057. .then((res) => {
  14058. this.$message({
  14059. message: "点赞成功",
  14060. type: "success",
  14061. });
  14062. this.selectSWorks();
  14063. this.selectStudent();
  14064. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  14065. })
  14066. .catch((err) => {
  14067. this.$message.error("点赞失败");
  14068. console.error(err);
  14069. });
  14070. } else {
  14071. let params = {
  14072. wid: wid,
  14073. lid: uid,
  14074. type: t,
  14075. };
  14076. this.ajax
  14077. .get(this.$store.state.api + "deleteComment", params)
  14078. .then((res) => {
  14079. this.$message({
  14080. message: "取消点赞成功",
  14081. type: "success",
  14082. });
  14083. this.selectSWorks();
  14084. this.selectStudent();
  14085. })
  14086. .catch((err) => {
  14087. console.error(err);
  14088. });
  14089. }
  14090. },
  14091. deleteComment(wid) {
  14092. this.$confirm("确定删除此评论吗?", "提示", {
  14093. confirmButtonText: "确定",
  14094. cancelButtonText: "取消",
  14095. type: "warning",
  14096. })
  14097. .then(() => {
  14098. let params = {
  14099. id: wid,
  14100. };
  14101. this.ajax
  14102. .get(this.$store.state.api + "deleteComment2", params)
  14103. .then((res) => {
  14104. this.$message({
  14105. message: "删除评论成功",
  14106. type: "success",
  14107. });
  14108. this.selectSWorks();
  14109. this.selectStudent();
  14110. })
  14111. .catch((err) => {
  14112. console.error(err);
  14113. });
  14114. })
  14115. .catch(() => {});
  14116. },
  14117. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14118. this.commentIndexJson = {
  14119. toolIndex: toolIndex,
  14120. wIndex: wIndex,
  14121. gindex: gindex,
  14122. gid: gid,
  14123. };
  14124. this.commentDetail = [];
  14125. this.commentDialogVisible = true;
  14126. this.commentDetail = w;
  14127. if (w.works && w.type == 1) {
  14128. // this.pptImgUrl = "";
  14129. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14130. if (
  14131. a.indexOf(
  14132. w.works
  14133. .split(".")
  14134. [w.works.split(".").length - 1].toLocaleUpperCase()
  14135. ) != -1
  14136. ) {
  14137. let _uuurl = await this.checkLink(w.works);
  14138. console.log(_uuurl)
  14139. this.pptImgUrl =
  14140. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14141. this.showPDF = false;
  14142. } else if (
  14143. w.works
  14144. .split(".")
  14145. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14146. ) {
  14147. this.pptImgUrl = w.works;
  14148. this.showPDF = true;
  14149. }
  14150. } else if (w.works && w.type == 3) {
  14151. this.videoDetail = {};
  14152. this.playerOptions1.sources[0].src = w.works;
  14153. this.videoDetail = this.playerOptions1;
  14154. // this.videoVisible = true;
  14155. } else if (w.works && w.type == 4) {
  14156. this.eScore = JSON.parse(w.works);
  14157. this.rateJson =
  14158. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14159. this.taskCount
  14160. ].toolChoose[toolIndex].rateJson;
  14161. } else if (w.works && w.type == 10) {
  14162. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14163. } else if (w.works && w.type == 13) {
  14164. this.wordJson =
  14165. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14166. this.taskCount
  14167. ].toolChoose[toolIndex].wordJson;
  14168. }
  14169. },
  14170. async openScore(w, index) {
  14171. this.wScore = 0;
  14172. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14173. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14174. this.commentDetail = [];
  14175. if(w.type == 17){
  14176. this.dialogVisibleENScore = true;
  14177. }else{
  14178. this.dialogVisibleScore = true;
  14179. }
  14180. this.commentDetail = w;
  14181. if (w.works && w.type == 1) {
  14182. this.pptImgUrl = "";
  14183. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14184. if (
  14185. a.indexOf(
  14186. w.works
  14187. .split(".")
  14188. [w.works.split(".").length - 1].toLocaleUpperCase()
  14189. ) != -1
  14190. ) {
  14191. let _uuurl = await this.checkLink(w.works);
  14192. console.log(_uuurl)
  14193. this.pptImgUrl =
  14194. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14195. this.showPDF = false;
  14196. } else if (
  14197. w.works
  14198. .split(".")
  14199. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14200. ) {
  14201. this.pptImgUrl = w.works;
  14202. this.showPDF = true;
  14203. }
  14204. } else if (w.works && w.type == 3) {
  14205. this.videoDetail = {};
  14206. this.playerOptions1.sources[0].src = w.works;
  14207. this.videoDetail = this.playerOptions1;
  14208. }else if(w.type == 17){
  14209. let englishVoiceJson = {}
  14210. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14211. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14212. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14213. .toolChoose[index].englishVoiceJson
  14214. : {};
  14215. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14216. }
  14217. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14218. },
  14219. addComment(wid, uid, t,detail) {
  14220. if (this.commentText == "") {
  14221. this.$message.error("请输入评论");
  14222. return;
  14223. }
  14224. let params2 = [
  14225. {
  14226. wid: wid,
  14227. lid: uid,
  14228. t: t,
  14229. },
  14230. ];
  14231. this.ajax
  14232. .post(this.$store.state.api + "getComment", params2)
  14233. .then((res) => {
  14234. if (res.data[0].length > 0) {
  14235. this.$message.error("一个作业只能评论一条");
  14236. } else {
  14237. let params = [
  14238. {
  14239. wid: wid,
  14240. lid: uid,
  14241. t: t,
  14242. c: this.commentText,
  14243. },
  14244. ];
  14245. this.ajax
  14246. .post(this.$store.state.api + "insertComment", params)
  14247. .then((res) => {
  14248. this.$message({
  14249. message: "评论成功",
  14250. type: "success",
  14251. });
  14252. this.commentText = "";
  14253. this.selectSWorks();
  14254. this.selectStudent();
  14255. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  14256. })
  14257. .catch((err) => {
  14258. this.$message.error("评论失败");
  14259. console.error(err);
  14260. });
  14261. }
  14262. })
  14263. .catch((err) => {
  14264. // this.$message.error("评论失败");
  14265. console.error(err);
  14266. });
  14267. },
  14268. scoreWork(wid,sName) {
  14269. if (this.wScore == 0) {
  14270. this.$message.error("请评分");
  14271. return;
  14272. }
  14273. let params = [
  14274. {
  14275. wid: wid,
  14276. score: JSON.stringify({
  14277. wScore: this.wScore,
  14278. detail: this.scoreDetail,
  14279. }),
  14280. },
  14281. ];
  14282. this.ajax
  14283. .post(this.$store.state.api + "scoreWork", params)
  14284. .then((res) => {
  14285. this.$message({
  14286. message: "评分成功",
  14287. type: "success",
  14288. });
  14289. this.wScore = 0;
  14290. this.scoreDetail = "";
  14291. this.dialogVisibleScore = false;
  14292. this.selectSWorks();
  14293. this.selectStudent();
  14294. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  14295. })
  14296. .catch((err) => {
  14297. this.$message.error("评分失败");
  14298. console.error(err);
  14299. });
  14300. },
  14301. openXz(w, i) {
  14302. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14303. .taskJson[this.taskCount].toolChoose[i].selectJson
  14304. ? JSON.parse(
  14305. JSON.stringify(
  14306. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14307. this.taskCount
  14308. ].toolChoose[i].selectJson
  14309. )
  14310. )
  14311. : { url: "", select: [], answer: [] };
  14312. var a = w.works.split(",");
  14313. for (var k = 0; k < a.length; k++) {
  14314. a[k] = parseInt(a[k]);
  14315. }
  14316. this.selectAnswer = { answer: a, stu: w.sName };
  14317. this.isSelect = true;
  14318. this.dialogVisibleSelect = true;
  14319. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14320. },
  14321. openSen(w, i) {
  14322. this.sentenceList1 = JSON.parse(w.works);
  14323. this.sentenceList1.stuName = w.sName;
  14324. this.dialogVisibleSentence1 = true;
  14325. },
  14326. openPj(w, toolindex) {
  14327. this.isStar = true;
  14328. this.eScore = JSON.parse(w);
  14329. this.rateJson =
  14330. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14331. this.taskCount
  14332. ].toolChoose[toolindex].rateJson;
  14333. this.studentEvalDialogVisible = true;
  14334. },
  14335. openEnglishEva(id,i){
  14336. let params = {
  14337. wid: id
  14338. };
  14339. this.ajax
  14340. .get(this.$store.state.api + "selectEngWork", params)
  14341. .then((res) => {
  14342. this.evaEngJson.message = res.data[0][0];
  14343. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14344. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14345. .toolChoose[i].englishList;
  14346. this.engEvaDialogVisible = true;
  14347. })
  14348. .catch((err) => {
  14349. console.error(err);
  14350. });
  14351. },
  14352. deleteWorks(id) {
  14353. this.$confirm("确定删除此作业吗?", "提示", {
  14354. confirmButtonText: "确定",
  14355. cancelButtonText: "取消",
  14356. type: "warning",
  14357. })
  14358. .then(() => {
  14359. let params = [
  14360. {
  14361. id: id,
  14362. },
  14363. ];
  14364. this.ajax
  14365. .post(this.$store.state.api + "deleteCourseWork", params)
  14366. .then((res) => {
  14367. this.$message({
  14368. message: "删除成功",
  14369. type: "success",
  14370. });
  14371. this.selectStudent();
  14372. this.selectSWorks();
  14373. this.selectSLook();
  14374. })
  14375. .catch((err) => {
  14376. this.$message.error("网络异常");
  14377. console.error(err);
  14378. });
  14379. })
  14380. .catch(() => {});
  14381. },
  14382. selectSWorks(gindex) {
  14383. //教师查看全部作业
  14384. let params = {
  14385. cid: this.id,
  14386. s: this.courseType,
  14387. t: this.taskCount,
  14388. };
  14389. this.ajax
  14390. .get(this.$store.state.api + "selectSWorks", params)
  14391. .then((res) => {
  14392. var a =
  14393. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14394. this.taskCount
  14395. ].toolChoose;
  14396. var b = res.data[0];
  14397. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14398. var y = [
  14399. "AVI",
  14400. "NAVI",
  14401. "MPEG",
  14402. "ASF",
  14403. "MOV",
  14404. "WMV",
  14405. "3GP",
  14406. "RM",
  14407. "RMVB",
  14408. "FLV",
  14409. "F4V",
  14410. "H.264",
  14411. "H.265",
  14412. "REAL VIDEO",
  14413. "MKV",
  14414. "WebM",
  14415. "HDDVD",
  14416. "MP4",
  14417. "MPG",
  14418. "M4V",
  14419. "MGV",
  14420. "OGV",
  14421. "QTM",
  14422. "STR",
  14423. "AMC",
  14424. "DVX",
  14425. "EVO",
  14426. "DAT",
  14427. "OGG",
  14428. "OGM",
  14429. ];
  14430. var d = res.data[1];
  14431. var e = res.data[2];
  14432. var f = res.data[3];
  14433. let _worksStudent = [];
  14434. var _worksStudent2 = [];
  14435. for (var i = 0; i < a.length; i++) {
  14436. _worksStudent[i] = [];
  14437. _worksStudent2[i] = [];
  14438. if (
  14439. !this.isCloseList[i] ||
  14440. this.isCloseList[i].isClose == undefined
  14441. ) {
  14442. this.isCloseList[i] = { isClose: 0 };
  14443. }
  14444. this.groupStudent[i] = [];
  14445. this.groupStudentUid[i] = [];
  14446. if (this.isGroup) {
  14447. for (
  14448. var groupI = 0;
  14449. groupI < this.courseGroup.group.length;
  14450. groupI++
  14451. ) {
  14452. this.courseGroup.group[groupI].works[i] = [];
  14453. }
  14454. }
  14455. this.isWorksS[i] = [];
  14456. this.checkJson[i] = [];
  14457. if (a[i].tool[0] == 49) {
  14458. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14459. this.groupStudent[i][gA] = [];
  14460. this.groupStudentUid[i][gA] = [];
  14461. _worksStudent[i][gA] = [];
  14462. _worksStudent2[i][gA] = [];
  14463. this.isCloseList[i][gA] = [];
  14464. for (var g = 0; g < f.length; g++) {
  14465. if (
  14466. f[g].ttype == 2 &&
  14467. this.tcid &&
  14468. this.arrayToArray(
  14469. (f[g].classid ? f[g].classid.split(",") : []),
  14470. this.tcid.split(",")
  14471. ).length == 0
  14472. ) {
  14473. continue;
  14474. }
  14475. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14476. (f[g].classid ? f[g].classid.split(",") : []),
  14477. this.tcid.split(",")
  14478. ).length !== 0 || this.arrayToArray(
  14479. (f[g].classid ? f[g].classid.split(",") : []),
  14480. this.classId ? this.classId.split(",") : []
  14481. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14482. this.groupStudent[i][gA].push(f[g]);
  14483. this.groupStudentUid[i][gA].push(f[g].userid);
  14484. }
  14485. }
  14486. }
  14487. this.$forceUpdate();
  14488. }
  14489. for (var j = 0; j < b.length; j++) {
  14490. if (
  14491. b[j].ttype == 2 &&
  14492. this.tcid &&
  14493. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14494. .length == 0
  14495. ) {
  14496. continue;
  14497. }
  14498. var likesCount = 0;
  14499. var commentCount = 0;
  14500. var isLikes = false;
  14501. var commentJson = [];
  14502. var likeJson = [];
  14503. var data = b[j];
  14504. if (i == b[j].tool) {
  14505. if (data.type == 2 && a[i].tool[0] == 4) {
  14506. // if(JSON.parse(data.content)[0].anwer){
  14507. var checkL =
  14508. JSON.parse(data.content)[0].anwer instanceof Array
  14509. ? JSON.parse(data.content)[0].anwer
  14510. : JSON.parse(data.content)[0].anwer.split(",");
  14511. for (var z = 0; z < checkL.length; z++) {
  14512. if (!this.checkJson[i][z]) {
  14513. this.checkJson[i].push({
  14514. checkCount: [],
  14515. checkPerson: [],
  14516. rightPerson: [],
  14517. });
  14518. }
  14519. if (!this.checkJson[i][z].checkCount.length) {
  14520. this.checkJson[i][z].checkCount = [];
  14521. let _askItemCount = JSON.parse(data.content)[0].askJson
  14522. .askJson[z].askItem;
  14523. for (var aic = 0; aic < _askItemCount; aic++) {
  14524. this.checkJson[i][z].checkCount.push(0);
  14525. }
  14526. }
  14527. if (checkL[z] instanceof Array) {
  14528. if (
  14529. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14530. checkL[z].sort().join(",")
  14531. ) {
  14532. this.checkJson[i][z].rightPerson.push(data.name);
  14533. }
  14534. for (var q = 0; q < checkL[z].length; q++) {
  14535. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14536. ? this.checkJson[i][z].checkPerson[
  14537. parseInt(checkL[z][q])
  14538. ].push(data.name)
  14539. : (this.checkJson[i][z].checkPerson[
  14540. parseInt(checkL[z][q])
  14541. ] = [data.name]);
  14542. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14543. ? this.checkJson[i][z].checkCount[
  14544. parseInt(checkL[z][q])
  14545. ]++
  14546. : (this.checkJson[i][z].checkCount[
  14547. parseInt(checkL[z][q])
  14548. ] = 1);
  14549. }
  14550. } else {
  14551. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14552. this.checkJson[i][z].rightPerson.push(data.name);
  14553. }
  14554. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14555. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14556. ? this.checkJson[i][z].checkPerson[
  14557. parseInt(checkL[z])
  14558. ].push(data.name)
  14559. : (this.checkJson[i][z].checkPerson[
  14560. parseInt(checkL[z])
  14561. ] = [data.name]);
  14562. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14563. ? this.checkJson[i][z].checkCount[
  14564. parseInt(checkL[z])
  14565. ]++
  14566. : (this.checkJson[i][z].checkCount[
  14567. parseInt(checkL[z])
  14568. ] = 1);
  14569. }
  14570. }
  14571. }
  14572. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14573. var checkL = JSON.parse(data.content)[0].anwer;
  14574. for (var z = 0; z < checkL.length; z++) {
  14575. if (!this.checkJson[i][z]) {
  14576. this.checkJson[i].push({
  14577. checkCount: [],
  14578. checkPerson: [],
  14579. rightPerson: [],
  14580. });
  14581. }
  14582. if (!this.checkJson[i][z].checkCount.length) {
  14583. this.checkJson[i][z].checkCount = [];
  14584. let _askItemCount = JSON.parse(data.content)[0].testJson
  14585. .testJson[z].testItem;
  14586. for (var aic = 0; aic < _askItemCount; aic++) {
  14587. this.checkJson[i][z].checkCount.push(0);
  14588. }
  14589. }
  14590. if (checkL[z] instanceof Array) {
  14591. if (
  14592. JSON.parse(data.content)[0]
  14593. .testJson.testJson[z].answer.sort()
  14594. .join(",") == checkL[z].sort().join(",")
  14595. ) {
  14596. this.checkJson[i][z].rightPerson.push(data.name);
  14597. }
  14598. for (var q = 0; q < checkL[z].length; q++) {
  14599. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14600. ? this.checkJson[i][z].checkPerson[
  14601. parseInt(checkL[z][q])
  14602. ].push(data.name)
  14603. : (this.checkJson[i][z].checkPerson[
  14604. parseInt(checkL[z][q])
  14605. ] = [data.name]);
  14606. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14607. ? this.checkJson[i][z].checkCount[
  14608. parseInt(checkL[z][q])
  14609. ]++
  14610. : (this.checkJson[i][z].checkCount[
  14611. parseInt(checkL[z][q])
  14612. ] = 1);
  14613. }
  14614. } else {
  14615. if (
  14616. JSON.parse(data.content)[0].testJson.testJson[z]
  14617. .answer == checkL[z]
  14618. ) {
  14619. this.checkJson[i][z].rightPerson.push(data.name);
  14620. }
  14621. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14622. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14623. ? this.checkJson[i][z].checkPerson[
  14624. parseInt(checkL[z])
  14625. ].push(data.name)
  14626. : (this.checkJson[i][z].checkPerson[
  14627. parseInt(checkL[z])
  14628. ] = [data.name]);
  14629. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14630. ? this.checkJson[i][z].checkCount[
  14631. parseInt(checkL[z])
  14632. ]++
  14633. : (this.checkJson[i][z].checkCount[
  14634. parseInt(checkL[z])
  14635. ] = 1);
  14636. }
  14637. }
  14638. }
  14639. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14640. var checkL = JSON.parse(data.content);
  14641. for (var z = 0; z < checkL.length; z++) {
  14642. if (!this.checkJson[i][z]) {
  14643. this.checkJson[i].push({
  14644. checkCount: [],
  14645. checkPerson: [],
  14646. rightPerson: [],
  14647. });
  14648. }
  14649. this.checkJson[i][z].checkPerson.push(data.name);
  14650. if (
  14651. checkL[z].chooseSenList.toString() ==
  14652. checkL[z].rightAnswer.toString()
  14653. ) {
  14654. this.checkJson[i][z].rightPerson.push(data.name);
  14655. }
  14656. }
  14657. }
  14658. for (var k = 0; k < d.length; k++) {
  14659. //点赞
  14660. if (d[k].workId == b[j].id) {
  14661. likesCount++;
  14662. likeJson.push(d[k])
  14663. if (d[k].likesId == this.userid) {
  14664. isLikes = true;
  14665. }
  14666. }
  14667. }
  14668. for (var l = 0; l < e.length; l++) {
  14669. //评论
  14670. if (e[l].workId == b[j].id) {
  14671. if (e[l].comment != "") {
  14672. commentCount++;
  14673. commentJson.push({
  14674. commentText: e[l].comment,
  14675. commentTime: e[l].commentTime,
  14676. commentPeople: e[l].commentPeople,
  14677. userid: e[l].userid,
  14678. wid: e[l].id,
  14679. });
  14680. }
  14681. }
  14682. }
  14683. if (
  14684. (b[j].type == 1 ||
  14685. b[j].type == 4 ||
  14686. b[j].type == 5 ||
  14687. b[j].type == 6 ||
  14688. b[j].type == 12 ||
  14689. b[j].type == 7) &&
  14690. a[i].tool[0] != 15 &&
  14691. a[i].tool[0] != 4 &&
  14692. a[i].tool[0] != 45 &&
  14693. a[i].tool[0] != 50 &&
  14694. a[i].tool[0] != 32 &&
  14695. a[i].tool[0] != 57 &&
  14696. a[i].tool[0] != 52
  14697. ) {
  14698. if (
  14699. c.indexOf(
  14700. b[j].content
  14701. .split(".")
  14702. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14703. ) != -1 &&
  14704. a[i].tool[0] == 16 &&
  14705. b[j].atool != 50
  14706. ) {
  14707. let _works = {
  14708. userid: b[j].userid,
  14709. ateacher: b[j].ateacher,
  14710. wid: b[j].id,
  14711. works: b[j].content,
  14712. sName: b[j].name,
  14713. type: 1,
  14714. ttype:b[j].ttype,
  14715. time: b[j].time,
  14716. score: b[j].score,
  14717. img: b[j].img,
  14718. likesCount: likesCount,
  14719. commentCount: commentCount,
  14720. isLikes: isLikes,
  14721. commentJson: commentJson,
  14722. likeJson:likeJson
  14723. };
  14724. if (this.isGroup) {
  14725. let isGw = 1;
  14726. for (
  14727. var groupI = 0;
  14728. groupI < this.courseGroup.group.length;
  14729. groupI++
  14730. ) {
  14731. let gid = this.courseGroup.group[groupI].id;
  14732. if (
  14733. this.courseGroupStudentUid[gid].indexOf(
  14734. b[j].userid
  14735. ) != -1
  14736. ) {
  14737. isGw = 2;
  14738. this.courseGroup.group[groupI].works[i].push(_works);
  14739. break;
  14740. }
  14741. }
  14742. if (isGw == 1) {
  14743. _worksStudent[i].push(_works);
  14744. }
  14745. } else {
  14746. _worksStudent[i].push(_works);
  14747. }
  14748. _worksStudent2[i].push(_works);
  14749. this.isWorksS[i].push({
  14750. uid: b[j].userid,
  14751. sName: b[j].name,
  14752. });
  14753. } else if (
  14754. y.indexOf(
  14755. b[j].content
  14756. .split(".")
  14757. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14758. ) != -1 &&
  14759. a[i].tool[0] == 16 &&
  14760. b[j].atool != 50
  14761. ) {
  14762. let _works = {
  14763. userid: b[j].userid,
  14764. ateacher: b[j].ateacher,
  14765. wid: b[j].id,
  14766. works: b[j].content,
  14767. sName: b[j].name,
  14768. type: 3,
  14769. ttype:b[j].ttype,
  14770. time: b[j].time,
  14771. score: b[j].score,
  14772. img: b[j].img,
  14773. likesCount: likesCount,
  14774. commentCount: commentCount,
  14775. isLikes: isLikes,
  14776. commentJson: commentJson,
  14777. likeJson:likeJson
  14778. };
  14779. if (this.isGroup) {
  14780. let isGw = 1;
  14781. for (
  14782. var groupI = 0;
  14783. groupI < this.courseGroup.group.length;
  14784. groupI++
  14785. ) {
  14786. let gid = this.courseGroup.group[groupI].id;
  14787. if (
  14788. this.courseGroupStudentUid[gid].indexOf(
  14789. b[j].userid
  14790. ) != -1
  14791. ) {
  14792. isGw = 2;
  14793. this.courseGroup.group[groupI].works[i].push(_works);
  14794. break;
  14795. }
  14796. }
  14797. if (isGw == 1) {
  14798. _worksStudent[i].push(_works);
  14799. }
  14800. } else {
  14801. _worksStudent[i].push(_works);
  14802. }
  14803. _worksStudent2[i].push(_works);
  14804. this.isWorksS[i].push({
  14805. uid: b[j].userid,
  14806. sName: b[j].name,
  14807. });
  14808. } else if (b[j].type == 6 && b[j].atool != 50) {
  14809. let _works = {
  14810. userid: b[j].userid,
  14811. ateacher: b[j].ateacher,
  14812. wid: b[j].id,
  14813. works: b[j].content,
  14814. sName: b[j].name,
  14815. type: 4,
  14816. ttype:b[j].ttype,
  14817. time: b[j].time,
  14818. score: b[j].score,
  14819. img: b[j].img,
  14820. likesCount: likesCount,
  14821. commentCount: commentCount,
  14822. isLikes: isLikes,
  14823. commentJson: commentJson,
  14824. likeJson:likeJson
  14825. };
  14826. _worksStudent[i].push(_works);
  14827. _worksStudent2[i].push(_works);
  14828. this.isWorksS[i].push({
  14829. uid: b[j].userid,
  14830. sName: b[j].name,
  14831. });
  14832. } else if (b[j].type == 7 && b[j].atool != 50) {
  14833. let _work = {
  14834. userid: b[j].userid,
  14835. ateacher: b[j].ateacher,
  14836. wid: b[j].id,
  14837. works: b[j].content,
  14838. sName: b[j].name,
  14839. type: 5,
  14840. ttype:b[j].ttype,
  14841. time: b[j].time,
  14842. score: b[j].score,
  14843. img: b[j].img,
  14844. likesCount: likesCount,
  14845. commentCount: commentCount,
  14846. isLikes: isLikes,
  14847. commentJson: commentJson,
  14848. likeJson:likeJson
  14849. };
  14850. _worksStudent[i].push(_work);
  14851. _worksStudent2[i].push(_work);
  14852. this.isWorksS[i].push({
  14853. uid: b[j].userid,
  14854. sName: b[j].name,
  14855. });
  14856. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14857. let _works = {
  14858. userid: b[j].userid,
  14859. ateacher: b[j].ateacher,
  14860. wid: b[j].id,
  14861. works: b[j].content,
  14862. sName: b[j].name,
  14863. type: 12,
  14864. ttype:b[j].ttype,
  14865. time: b[j].time,
  14866. score: b[j].score,
  14867. img: b[j].img,
  14868. likesCount: likesCount,
  14869. commentCount: commentCount,
  14870. isLikes: isLikes,
  14871. commentJson: commentJson,
  14872. likeJson:likeJson
  14873. };
  14874. if (this.isGroup) {
  14875. let isGw = 1;
  14876. for (
  14877. var groupI = 0;
  14878. groupI < this.courseGroup.group.length;
  14879. groupI++
  14880. ) {
  14881. let gid = this.courseGroup.group[groupI].id;
  14882. if (
  14883. this.courseGroupStudentUid[gid].indexOf(
  14884. b[j].userid
  14885. ) != -1
  14886. ) {
  14887. isGw = 2;
  14888. this.courseGroup.group[groupI].works[i].push(_works);
  14889. break;
  14890. }
  14891. }
  14892. if (isGw == 1) {
  14893. _worksStudent[i].push(_works);
  14894. }
  14895. } else {
  14896. _worksStudent[i].push(_works);
  14897. }
  14898. _worksStudent2[i].push(_works);
  14899. this.isWorksS[i].push({
  14900. uid: b[j].userid,
  14901. sName: b[j].name,
  14902. });
  14903. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14904. let _works = {
  14905. userid: b[j].userid,
  14906. ateacher: b[j].ateacher,
  14907. wid: b[j].id,
  14908. works: b[j].content,
  14909. sName: b[j].name,
  14910. type: 0,
  14911. ttype:b[j].ttype,
  14912. time: b[j].time,
  14913. score: b[j].score,
  14914. img: b[j].img,
  14915. likesCount: likesCount,
  14916. commentCount: commentCount,
  14917. isLikes: isLikes,
  14918. commentJson: commentJson,
  14919. likeJson:likeJson
  14920. };
  14921. if (this.isGroup) {
  14922. let isGw = 1;
  14923. for (
  14924. var groupI = 0;
  14925. groupI < this.courseGroup.group.length;
  14926. groupI++
  14927. ) {
  14928. let gid = this.courseGroup.group[groupI].id;
  14929. if (
  14930. this.courseGroupStudentUid[gid].indexOf(
  14931. b[j].userid
  14932. ) != -1
  14933. ) {
  14934. isGw = 2;
  14935. this.courseGroup.group[groupI].works[i].push(_works);
  14936. break;
  14937. }
  14938. }
  14939. if (isGw == 1) {
  14940. _worksStudent[i].push(_works);
  14941. }
  14942. } else {
  14943. _worksStudent[i].push(_works);
  14944. }
  14945. _worksStudent2[i].push(_works);
  14946. this.isWorksS[i].push({
  14947. uid: b[j].userid,
  14948. sName: b[j].name,
  14949. });
  14950. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14951. let _works = {
  14952. userid: b[j].userid,
  14953. ateacher: b[j].ateacher,
  14954. wid: b[j].id,
  14955. works: b[j].content,
  14956. sName: b[j].name,
  14957. type: 0,
  14958. ttype:b[j].ttype,
  14959. time: b[j].time,
  14960. score: b[j].score,
  14961. img: b[j].img,
  14962. likesCount: likesCount,
  14963. commentCount: commentCount,
  14964. isLikes: isLikes,
  14965. commentJson: commentJson,
  14966. likeJson:likeJson
  14967. };
  14968. if (this.isGroup) {
  14969. let isGw = 1;
  14970. for (
  14971. var groupI = 0;
  14972. groupI < this.courseGroup.group.length;
  14973. groupI++
  14974. ) {
  14975. let gid = this.courseGroup.group[groupI].id;
  14976. if (
  14977. this.courseGroupStudentUid[gid].indexOf(
  14978. b[j].userid
  14979. ) != -1
  14980. ) {
  14981. isGw = 2;
  14982. this.courseGroup.group[groupI].works[i].push(_works);
  14983. break;
  14984. }
  14985. }
  14986. if (isGw == 1) {
  14987. _worksStudent[i].push(_works);
  14988. }
  14989. } else {
  14990. _worksStudent[i].push(_works);
  14991. }
  14992. _worksStudent2[i].push(_works);
  14993. this.isWorksS[i].push({
  14994. uid: b[j].userid,
  14995. sName: b[j].name,
  14996. });
  14997. }
  14998. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14999. let _works = {
  15000. userid: b[j].userid,
  15001. ateacher: b[j].ateacher,
  15002. wid: b[j].id,
  15003. works: b[j].content,
  15004. sName: b[j].name,
  15005. type: 2,
  15006. ttype:b[j].ttype,
  15007. time: b[j].time,
  15008. score: b[j].score,
  15009. img: b[j].img,
  15010. likesCount: likesCount,
  15011. commentCount: commentCount,
  15012. isLikes: isLikes,
  15013. commentJson: commentJson,
  15014. likeJson:likeJson
  15015. };
  15016. if (this.isGroup) {
  15017. let isGw = 1;
  15018. for (
  15019. var groupI = 0;
  15020. groupI < this.courseGroup.group.length;
  15021. groupI++
  15022. ) {
  15023. let gid = this.courseGroup.group[groupI].id;
  15024. if (
  15025. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15026. -1
  15027. ) {
  15028. isGw = 2;
  15029. this.courseGroup.group[groupI].works[i].push(_works);
  15030. break;
  15031. }
  15032. }
  15033. if (isGw == 1) {
  15034. _worksStudent[i].push(_works);
  15035. }
  15036. } else {
  15037. _worksStudent[i].push(_works);
  15038. }
  15039. _worksStudent2[i].push(_works);
  15040. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15041. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15042. //问卷
  15043. let _work = {
  15044. userid: b[j].userid,
  15045. ateacher: b[j].ateacher,
  15046. wid: b[j].id,
  15047. works: b[j].content,
  15048. sName: b[j].name,
  15049. type: 2,
  15050. ttype:b[j].ttype,
  15051. time: b[j].time,
  15052. score: b[j].score,
  15053. img: b[j].img,
  15054. likesCount: likesCount,
  15055. commentCount: commentCount,
  15056. isLikes: isLikes,
  15057. commentJson: commentJson,
  15058. likeJson:likeJson
  15059. };
  15060. _worksStudent[i].push(_work);
  15061. _worksStudent2[i].push(_work);
  15062. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15063. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15064. //选择题
  15065. let _work = {
  15066. userid: b[j].userid,
  15067. ateacher: b[j].ateacher,
  15068. wid: b[j].id,
  15069. works: b[j].content,
  15070. sName: b[j].name,
  15071. type: 8,
  15072. ttype:b[j].ttype,
  15073. time: b[j].time,
  15074. score: b[j].score,
  15075. img: b[j].img,
  15076. likesCount: likesCount,
  15077. commentCount: commentCount,
  15078. isLikes: isLikes,
  15079. commentJson: commentJson,
  15080. likeJson:likeJson
  15081. };
  15082. _worksStudent[i].push(_work);
  15083. _worksStudent2[i].push(_work);
  15084. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15085. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15086. //选择题
  15087. let _work = {
  15088. userid: b[j].userid,
  15089. ateacher: b[j].ateacher,
  15090. wid: b[j].id,
  15091. works: b[j].content,
  15092. sName: b[j].name,
  15093. type: 9,
  15094. ttype:b[j].ttype,
  15095. time: b[j].time,
  15096. score: b[j].score,
  15097. img: b[j].img,
  15098. likesCount: likesCount,
  15099. commentCount: commentCount,
  15100. isLikes: isLikes,
  15101. commentJson: commentJson,
  15102. likeJson:likeJson
  15103. };
  15104. _worksStudent[i].push(_work);
  15105. _worksStudent2[i].push(_work);
  15106. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15107. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15108. //选择题
  15109. let _work = {
  15110. userid: b[j].userid,
  15111. ateacher: b[j].ateacher,
  15112. wid: b[j].id,
  15113. works: b[j].content,
  15114. sName: b[j].name,
  15115. type: 10,
  15116. ttype:b[j].ttype,
  15117. time: b[j].time,
  15118. score: b[j].score,
  15119. img: b[j].img,
  15120. likesCount: likesCount,
  15121. commentCount: commentCount,
  15122. isLikes: isLikes,
  15123. commentJson: commentJson,
  15124. likeJson:likeJson
  15125. };
  15126. _worksStudent[i].push(_work);
  15127. _worksStudent2[i].push(_work);
  15128. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15129. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15130. //选择题
  15131. let _work = {
  15132. userid: b[j].userid,
  15133. ateacher: b[j].ateacher,
  15134. wid: b[j].id,
  15135. works: b[j].content,
  15136. sName: b[j].name,
  15137. type: 13,
  15138. ttype:b[j].ttype,
  15139. time: b[j].time,
  15140. score: b[j].score,
  15141. img: b[j].img,
  15142. likesCount: likesCount,
  15143. commentCount: commentCount,
  15144. isLikes: isLikes,
  15145. commentJson: commentJson,
  15146. likeJson:likeJson
  15147. };
  15148. _worksStudent[i].push(_work);
  15149. _worksStudent2[i].push(_work);
  15150. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15151. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15152. //选择题
  15153. let _work = {
  15154. userid: b[j].userid,
  15155. ateacher: b[j].ateacher,
  15156. wid: b[j].id,
  15157. works: b[j].content,
  15158. sName: b[j].name,
  15159. type: 16,
  15160. ttype:b[j].ttype,
  15161. time: b[j].time,
  15162. score: b[j].score,
  15163. img: b[j].img,
  15164. likesCount: likesCount,
  15165. commentCount: commentCount,
  15166. isLikes: isLikes,
  15167. commentJson: commentJson,
  15168. aiCode: b[j].aiCode,
  15169. teacherCode: b[j].teacherCode,
  15170. likeJson:likeJson
  15171. };
  15172. _worksStudent[i].push(_work);
  15173. _worksStudent2[i].push(_work);
  15174. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15175. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15176. //英语口语
  15177. let _work = {
  15178. userid: b[j].userid,
  15179. ateacher: b[j].ateacher,
  15180. wid: b[j].id,
  15181. works: b[j].content,
  15182. sName: b[j].name,
  15183. type: 17,
  15184. ttype:b[j].ttype,
  15185. time: b[j].time,
  15186. score: b[j].score,
  15187. img: b[j].img,
  15188. likesCount: likesCount,
  15189. commentCount: commentCount,
  15190. isLikes: isLikes,
  15191. commentJson: commentJson,
  15192. likeJson:likeJson
  15193. };
  15194. _worksStudent[i].push(_work);
  15195. _worksStudent2[i].push(_work);
  15196. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15197. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15198. //交互视频
  15199. let _work = {
  15200. userid: b[j].userid,
  15201. ateacher: b[j].ateacher,
  15202. wid: b[j].id,
  15203. works: b[j].content,
  15204. sName: b[j].name,
  15205. type: 14,
  15206. ttype:b[j].ttype,
  15207. time: b[j].time,
  15208. score: b[j].score,
  15209. img: b[j].img,
  15210. likesCount: likesCount,
  15211. commentCount: commentCount,
  15212. isLikes: isLikes,
  15213. commentJson: commentJson,
  15214. likeJson:likeJson
  15215. };
  15216. _worksStudent[i].push(_work);
  15217. _worksStudent2[i].push(_work);
  15218. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15219. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15220. let _gindex = JSON.parse(b[j].content);
  15221. if (
  15222. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15223. b[j].userid
  15224. ) != -1
  15225. ) {
  15226. let _work = {
  15227. userid: b[j].userid,
  15228. ateacher: b[j].ateacher,
  15229. wid: b[j].id,
  15230. works: _gindex.url,
  15231. sName: b[j].name,
  15232. type: _gindex.type,
  15233. ttype:b[j].ttype,
  15234. time: b[j].time,
  15235. score: b[j].score,
  15236. img: b[j].img,
  15237. likesCount: likesCount,
  15238. commentCount: commentCount,
  15239. isLikes: isLikes,
  15240. commentJson: commentJson,
  15241. likeJson:likeJson
  15242. };
  15243. _worksStudent[i][_gindex.groupIndex].push(_work);
  15244. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15245. }
  15246. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15247. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15248. let _work = {
  15249. userid: b[j].userid,
  15250. ateacher: b[j].ateacher,
  15251. wid: b[j].id,
  15252. works: b[j].content,
  15253. sName: b[j].name ? b[j].name : b[j].userid,
  15254. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15255. ttype:b[j].ttype,
  15256. time: b[j].time,
  15257. score: b[j].score,
  15258. img: b[j].img,
  15259. likesCount: likesCount,
  15260. commentCount: commentCount,
  15261. isLikes: isLikes,
  15262. commentJson: commentJson,
  15263. likeJson:likeJson
  15264. };
  15265. _worksStudent[i].push(_work);
  15266. _worksStudent2[i].push(_work);
  15267. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15268. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15269. let _work = {
  15270. userid: b[j].userid,
  15271. ateacher: b[j].ateacher,
  15272. wid: b[j].id,
  15273. works: b[j].content,
  15274. sName: b[j].name ? b[j].name : b[j].userid,
  15275. type: 12,
  15276. ttype:b[j].ttype,
  15277. time: b[j].time,
  15278. score: b[j].score,
  15279. img: b[j].img,
  15280. likesCount: likesCount,
  15281. commentCount: commentCount,
  15282. isLikes: isLikes,
  15283. commentJson: commentJson,
  15284. likeJson:likeJson
  15285. };
  15286. _worksStudent[i].push(_work);
  15287. _worksStudent2[i].push(_work);
  15288. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15289. } else if (
  15290. a[i].tool[0] == 57 &&
  15291. b[j].atool == 57 &&
  15292. b[j].type == 12
  15293. ) {
  15294. let _work = {
  15295. userid: b[j].userid,
  15296. ateacher: b[j].ateacher,
  15297. wid: b[j].id,
  15298. works: b[j].content,
  15299. sName: b[j].name ? b[j].name : b[j].userid,
  15300. type: 12,
  15301. ttype:b[j].ttype,
  15302. time: b[j].time,
  15303. score: b[j].score,
  15304. img: b[j].img,
  15305. likesCount: likesCount,
  15306. commentCount: commentCount,
  15307. isLikes: isLikes,
  15308. commentJson: commentJson,
  15309. likeJson:likeJson
  15310. };
  15311. _worksStudent[i].push(_work);
  15312. _worksStudent2[i].push(_work);
  15313. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15314. } else if (
  15315. a[i].tool[0] == 57 &&
  15316. b[j].atool == 57 &&
  15317. b[j].type == 15
  15318. ) {
  15319. let _work = {
  15320. userid: b[j].userid,
  15321. ateacher: b[j].ateacher,
  15322. wid: b[j].id,
  15323. works: b[j].content,
  15324. sName: b[j].name ? b[j].name : b[j].userid,
  15325. type: 15,
  15326. ttype:b[j].ttype,
  15327. time: b[j].time,
  15328. score: b[j].score,
  15329. img: b[j].img,
  15330. likesCount: likesCount,
  15331. commentCount: commentCount,
  15332. isLikes: isLikes,
  15333. commentJson: commentJson,
  15334. likeJson:likeJson
  15335. };
  15336. _worksStudent[i].push(_work);
  15337. _worksStudent2[i].push(_work);
  15338. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15339. }
  15340. }
  15341. }
  15342. if (_worksStudent[i] && _worksStudent[i].length) {
  15343. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15344. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15345. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15346. var scoreA = parseFloat(jscoreA);
  15347. var scoreB = parseFloat(jscoreB);
  15348. if (scoreA == scoreB) {
  15349. return b.likesCount - a.likesCount;
  15350. }
  15351. return scoreB - scoreA;
  15352. });
  15353. if (this.isGroup) {
  15354. for (
  15355. var groupI = 0;
  15356. groupI < this.courseGroup.group.length;
  15357. groupI++
  15358. ) {
  15359. this.courseGroup.group[groupI].works[i] =
  15360. this.courseGroup.group[groupI].works[i].sort(function (
  15361. a,
  15362. b
  15363. ) {
  15364. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15365. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15366. var scoreA = parseFloat(jscoreA);
  15367. var scoreB = parseFloat(jscoreB);
  15368. if (scoreA == scoreB) {
  15369. return b.likesCount - a.likesCount;
  15370. }
  15371. return scoreB - scoreA;
  15372. });
  15373. }
  15374. }
  15375. }
  15376. }
  15377. this.timeWorkList = _worksStudent2;
  15378. for (var i = 0; i < a.length; i++) {
  15379. for (var j = 0; j < b.length; j++) {
  15380. var data = b[j];
  15381. if (i == b[j].tool) {
  15382. if (data.type == 2 || data.type == 8) {
  15383. for (var z = 0; z < this.checkJson[i].length; z++) {
  15384. this.checkJson[i][z].checkPerent = [];
  15385. this.checkJson[i][z].right = Math.round(
  15386. (this.checkJson[i][z].rightPerson.length /
  15387. parseInt(_worksStudent[i].length)) *
  15388. 100
  15389. );
  15390. let aaaa = this.checkJson[i][z];
  15391. for (
  15392. var k = 0;
  15393. k < this.checkJson[i][z].checkCount.length;
  15394. k++
  15395. ) {
  15396. this.checkJson[i][z].checkPerent.push(
  15397. Math.round(
  15398. (this.checkJson[i][z].checkCount[k] /
  15399. parseInt(_worksStudent[i].length)) *
  15400. 100
  15401. )
  15402. );
  15403. }
  15404. }
  15405. } else if (data.type == 9) {
  15406. for (var z = 0; z < this.checkJson[i].length; z++) {
  15407. this.checkJson[i][z].checkPerent = [];
  15408. this.checkJson[i][z].right = Math.round(
  15409. (this.checkJson[i][z].rightPerson.length /
  15410. this.checkJson[i][z].checkPerson.length) *
  15411. 100
  15412. );
  15413. }
  15414. }
  15415. }
  15416. }
  15417. }
  15418. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15419. this.joinGroup(gindex);
  15420. }
  15421. this.worksStudent = _worksStudent;
  15422. this.selectWorksStudent();
  15423. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15424. this.$nextTick(()=>{
  15425. setTimeout(()=>{
  15426. setTimeout(()=>{
  15427. this.panToolHeight('tool-'+ci);
  15428. }, 500)
  15429. }, 0)
  15430. })
  15431. }
  15432. })
  15433. .catch((err) => {
  15434. console.error(err);
  15435. });
  15436. },
  15437. pngToWhiteBg(file) {
  15438. const _file = file;
  15439. let read = new FileReader();
  15440. read.readAsDataURL(file); // 文件转base64
  15441. return new Promise((resolve, reject) => {
  15442. read.onload = (e) => {
  15443. let img = new Image();
  15444. img.src = e.target.result;
  15445. img.onload = async () => {
  15446. // 生成canvas
  15447. let canvas = document.createElement("canvas");
  15448. let context = canvas.getContext("2d");
  15449. // 绘制图片到canvas上
  15450. canvas.width = img.width;
  15451. canvas.height = img.height;
  15452. // 在canvas绘制前填充白色背景
  15453. context.fillStyle = "#fff";
  15454. context.fillRect(0, 0, canvas.width, canvas.height);
  15455. context.drawImage(img, 0, 0);
  15456. let base64 = canvas.toDataURL(file["type"], 1);
  15457. let newFile = this.dataUrlToFile(base64, _file);
  15458. resolve(newFile);
  15459. };
  15460. };
  15461. });
  15462. },
  15463. dataUrlToFile(dataurl, file) {
  15464. let arr = dataurl.split(","),
  15465. mime = arr[0].match(/:(.*?);/)[1],
  15466. bstr = atob(arr[1]),
  15467. n = bstr.length,
  15468. u8arr = new Uint8Array(n);
  15469. while (n--) {
  15470. u8arr[n] = bstr.charCodeAt(n);
  15471. }
  15472. // return new Blob([u8arr], { type: mime });
  15473. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15474. type: mime,
  15475. });
  15476. },
  15477. async beforeUpload1(event, type, i) {
  15478. // this.$message.success('进入上传')
  15479. var file = "";
  15480. if (type == 5) {
  15481. file = event;
  15482. } else {
  15483. file = event.target.files[0];
  15484. }
  15485. var credentials = {
  15486. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15487. secretAccessKey: "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",
  15488. }; //秘钥形式的登录上传
  15489. window.AWS.config.update(credentials);
  15490. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15491. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15492. var _this = this;
  15493. _this.progress = 0;
  15494. _this.proVisible = true;
  15495. _this.isFinishSize = 0;
  15496. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15497. var b = [
  15498. "DOC",
  15499. "DOCX",
  15500. "DOCM",
  15501. "DOTM",
  15502. "DOTX",
  15503. "PPTX",
  15504. "PPSX",
  15505. "PPT",
  15506. "PPS",
  15507. "PPTM",
  15508. "POTM",
  15509. "PPAM",
  15510. "POTX",
  15511. "PPSM",
  15512. ];
  15513. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15514. var photoA = [
  15515. "BMP",
  15516. "GIF",
  15517. "PNG",
  15518. "JPEG",
  15519. "JPEG",
  15520. "JPG",
  15521. "TIF",
  15522. "PCX",
  15523. "TGA",
  15524. "EXIF",
  15525. "FPX",
  15526. "SVG",
  15527. "APNG",
  15528. ];
  15529. // if (
  15530. // b.indexOf(
  15531. // file.name
  15532. // .split(".")
  15533. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15534. // ) != -1
  15535. // ) {
  15536. // if (file.size / 1024 / 1024 > 10) {
  15537. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15538. // return;
  15539. // }
  15540. // } else if (
  15541. // excelA.indexOf(
  15542. // file.name
  15543. // .split(".")
  15544. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15545. // ) != "-1"
  15546. // ) {
  15547. // if (file.size / 1024 / 1024 > 5) {
  15548. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15549. // return;
  15550. // }
  15551. // }
  15552. if (
  15553. photoA.indexOf(
  15554. file.name
  15555. .split(".")
  15556. [file.name.split(".").length - 1].toLocaleUpperCase()
  15557. ) != -1 &&
  15558. type != 4
  15559. ) {
  15560. // const blob = await imageConversion.compress(file, 0.8)
  15561. file = await this.pngToWhiteBg(file);
  15562. const blob = await imageConversion.compressAccurately(file, 256);
  15563. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15564. file = new File([blob], file.name, { type: file.type });
  15565. }
  15566. if (file) {
  15567. var params = {
  15568. Key:
  15569. file.name.split(".")[0] +
  15570. new Date().getTime() +
  15571. "." +
  15572. file.name.split(".")[file.name.split(".").length - 1],
  15573. ContentType: file.type,
  15574. Body: file,
  15575. "Access-Control-Allow-Credentials": "*",
  15576. ACL: "public-read",
  15577. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15578. var options = {
  15579. // partSize: 2048 * 1024 * 1024,
  15580. partSize: 1024 * 1024 * 1024,
  15581. queueSize: 2,
  15582. leavePartsOnError: true,
  15583. };
  15584. bucket
  15585. .upload(params, options)
  15586. .on("httpUploadProgress", function (evt) {
  15587. //这里可以写进度条
  15588. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15589. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15590. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15591. })
  15592. .send(function (err, data) {
  15593. _this.progress = 100;
  15594. _this.isFinishSize = _this.isAllSize;
  15595. setTimeout(() => {
  15596. _this.proVisible = false;
  15597. }, 1000);
  15598. if (err) {
  15599. var a = _this.$refs.upload1.uploadFiles;
  15600. a.splice(a.length - 1, a.length);
  15601. _this.$message.error("上传失败");
  15602. } else {
  15603. // _this.$message.success('上传成功')
  15604. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15605. var c = [
  15606. "AVI",
  15607. "NAVI",
  15608. "MPEG",
  15609. "ASF",
  15610. "MOV",
  15611. "WMV",
  15612. "3GP",
  15613. "RM",
  15614. "RMVB",
  15615. "FLV",
  15616. "F4V",
  15617. "H.264",
  15618. "H.265",
  15619. "REAL VIDEO",
  15620. "MKV",
  15621. "WebM",
  15622. "HDDVD",
  15623. "MP4",
  15624. "MPG",
  15625. "M4V",
  15626. "MGV",
  15627. "OGV",
  15628. "QTM",
  15629. "STR",
  15630. "AMC",
  15631. "DVX",
  15632. "EVO",
  15633. "DAT",
  15634. "OGG",
  15635. "OGM",
  15636. ];
  15637. if (type == 1) {
  15638. _this.studyJuri[0].cover.push({
  15639. name: file.name,
  15640. url: data.Location,
  15641. uid: file.uid,
  15642. });
  15643. if (
  15644. c.indexOf(
  15645. _this.studyJuri[0].cover[0].url
  15646. .split(".")
  15647. [
  15648. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15649. ].toLocaleUpperCase()
  15650. ) != -1
  15651. ) {
  15652. _this.fileType = 2;
  15653. } else if (
  15654. b.indexOf(
  15655. _this.studyJuri[0].cover[0].url
  15656. .split(".")
  15657. [
  15658. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15659. ].toLocaleUpperCase()
  15660. ) != -1
  15661. ) {
  15662. _this.fileType = 1;
  15663. } else if (
  15664. photoA.indexOf(
  15665. _this.studyJuri[0].cover[0].url
  15666. .split(".")
  15667. [
  15668. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15669. ].toLocaleUpperCase()
  15670. ) != -1
  15671. ) {
  15672. _this.fileType = 0;
  15673. } else {
  15674. _this.fileType = 3;
  15675. }
  15676. _this.imgChange(null, null, type);
  15677. } else if (type == 2) {
  15678. _this.upToolImg = data.Location;
  15679. _this.imgChange(null, null, type);
  15680. _this.addCourseWorks(i);
  15681. } else if (type == 4) {
  15682. _this.addPz("3", data.Location);
  15683. } else if (type == 5) {
  15684. _this.addImgDrawImG(data.Location);
  15685. } else if (type == 6) {
  15686. var _ftype = 1;
  15687. if (
  15688. c.indexOf(
  15689. data.Location.split(".")[
  15690. data.Location.split(".").length - 1
  15691. ].toLocaleUpperCase()
  15692. ) != -1
  15693. ) {
  15694. _ftype = 5;
  15695. } else if (
  15696. b.indexOf(
  15697. data.Location.split(".")[
  15698. data.Location.split(".").length - 1
  15699. ].toLocaleUpperCase()
  15700. ) != -1
  15701. ) {
  15702. _ftype = 4;
  15703. } else {
  15704. _ftype = 1;
  15705. }
  15706. _this.plworkFile.push({
  15707. name: file.name,
  15708. url: data.Location,
  15709. uid: file.uid,
  15710. fileType: _ftype,
  15711. username:
  15712. _this.plworkFile.length > 10
  15713. ? _this.plworkFile.length + 1
  15714. : "0" + (_this.plworkFile.length + 1),
  15715. });
  15716. } else if (type == 7) {
  15717. _this.addCourseWorksGong(i, data.Location, 32);
  15718. } else if (type == 8) {
  15719. _this.addCourseWorksGong(i, data.Location, 57);
  15720. }
  15721. _this.imgChange(null, null, type);
  15722. console.log(data.Location);
  15723. // _this.$message.success('上传成功'+data.Location)
  15724. }
  15725. });
  15726. }
  15727. },
  15728. async beforeUpload3(event, type, i) {
  15729. // this.$message.success('进入上传')
  15730. let file = "";
  15731. let cfindex2 = 0;
  15732. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15733. file = event.target.files[cfindex];
  15734. var credentials = {
  15735. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15736. secretAccessKey: "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",
  15737. }; //秘钥形式的登录上传
  15738. window.AWS.config.update(credentials);
  15739. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15740. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15741. var _this = this;
  15742. // _this.progress = 0;
  15743. _this.proVisible2 = true;
  15744. var b = [
  15745. "DOC",
  15746. "DOCX",
  15747. "DOCM",
  15748. "DOTM",
  15749. "DOTX",
  15750. "PPTX",
  15751. "PPSX",
  15752. "PPT",
  15753. "PPS",
  15754. "PPTM",
  15755. "POTM",
  15756. "PPAM",
  15757. "POTX",
  15758. "PPSM",
  15759. ];
  15760. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15761. var photoA = [
  15762. "BMP",
  15763. "GIF",
  15764. "PNG",
  15765. "JPEG",
  15766. "JPG",
  15767. "TIF",
  15768. "PCX",
  15769. "TGA",
  15770. "EXIF",
  15771. "FPX",
  15772. "SVG",
  15773. "APNG",
  15774. ];
  15775. if (
  15776. photoA.indexOf(
  15777. file.name
  15778. .split(".")
  15779. [file.name.split(".").length - 1].toLocaleUpperCase()
  15780. ) != -1 &&
  15781. type != 4
  15782. ) {
  15783. // const blob = await imageConversion.compress(file, 0.8)
  15784. file = await this.pngToWhiteBg(file);
  15785. const blob = await imageConversion.compressAccurately(file, 256);
  15786. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15787. file = new File([blob], file.name, { type: file.type });
  15788. }
  15789. if (file) {
  15790. var params = {
  15791. Key:
  15792. file.name.split(".")[0] +
  15793. new Date().getTime() +
  15794. "." +
  15795. file.name.split(".")[file.name.split(".").length - 1],
  15796. ContentType: file.type,
  15797. Body: file,
  15798. "Access-Control-Allow-Credentials": "*",
  15799. ACL: "public-read",
  15800. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15801. var options = {
  15802. // partSize: 2048 * 1024 * 1024,
  15803. partSize: 1024 * 1024 * 1024,
  15804. queueSize: 2,
  15805. leavePartsOnError: true,
  15806. };
  15807. bucket
  15808. .upload(params, options)
  15809. .on("httpUploadProgress", function (evt) {
  15810. //这里可以写进度条
  15811. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15812. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15813. })
  15814. .send(function (err, data) {
  15815. // _this.progress = 100;
  15816. cfindex2++;
  15817. setTimeout(() => {
  15818. if (
  15819. cfindex2 == event.target.files.length - 1 ||
  15820. cfindex2 > event.target.files.length - 1
  15821. ) {
  15822. _this.proVisible2 = false;
  15823. }
  15824. }, 1000);
  15825. if (err) {
  15826. var a = _this.$refs.upload1.uploadFiles;
  15827. a.splice(a.length - 1, a.length);
  15828. _this.$message.error("上传失败");
  15829. } else {
  15830. // _this.$message.success('上传成功')
  15831. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15832. var c = [
  15833. "AVI",
  15834. "NAVI",
  15835. "MPEG",
  15836. "ASF",
  15837. "MOV",
  15838. "WMV",
  15839. "3GP",
  15840. "RM",
  15841. "RMVB",
  15842. "FLV",
  15843. "F4V",
  15844. "H.264",
  15845. "H.265",
  15846. "REAL VIDEO",
  15847. "MKV",
  15848. "WebM",
  15849. "HDDVD",
  15850. "MP4",
  15851. "MPG",
  15852. "M4V",
  15853. "MGV",
  15854. "OGV",
  15855. "QTM",
  15856. "STR",
  15857. "AMC",
  15858. "DVX",
  15859. "EVO",
  15860. "DAT",
  15861. "OGG",
  15862. "OGM",
  15863. ];
  15864. if (type == 1) {
  15865. _this.studyJuri[0].cover.push({
  15866. name: file.name,
  15867. url: data.Location,
  15868. uid: file.uid,
  15869. });
  15870. if (
  15871. c.indexOf(
  15872. _this.studyJuri[0].cover[0].url
  15873. .split(".")
  15874. [
  15875. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15876. ].toLocaleUpperCase()
  15877. ) != -1
  15878. ) {
  15879. _this.fileType = 2;
  15880. } else if (
  15881. b.indexOf(
  15882. _this.studyJuri[0].cover[0].url
  15883. .split(".")
  15884. [
  15885. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15886. ].toLocaleUpperCase()
  15887. ) != -1
  15888. ) {
  15889. _this.fileType = 1;
  15890. } else {
  15891. _this.fileType = 0;
  15892. }
  15893. _this.imgChange(null, null, type);
  15894. } else if (type == 2) {
  15895. _this.upToolImg = data.Location;
  15896. _this.imgChange(null, null, type);
  15897. _this.addCourseWorks(i);
  15898. } else if (type == 4) {
  15899. _this.addPz("3", data.Location);
  15900. } else if (type == 5) {
  15901. _this.addImgDrawImG(data.Location);
  15902. } else if (type == 6) {
  15903. var _ftype = 1;
  15904. if (
  15905. c.indexOf(
  15906. data.Location.split(".")[
  15907. data.Location.split(".").length - 1
  15908. ].toLocaleUpperCase()
  15909. ) != -1
  15910. ) {
  15911. _ftype = 5;
  15912. } else if (
  15913. b.indexOf(
  15914. data.Location.split(".")[
  15915. data.Location.split(".").length - 1
  15916. ].toLocaleUpperCase()
  15917. ) != -1
  15918. ) {
  15919. _ftype = 4;
  15920. } else {
  15921. _ftype = 1;
  15922. }
  15923. _this.plworkFile.push({
  15924. name: file.name,
  15925. url: data.Location,
  15926. uid: file.uid,
  15927. fileType: _ftype,
  15928. username:
  15929. _this.plworkFile.length + 1 > 9
  15930. ? _this.plworkFile.length + 1
  15931. : "0" + (_this.plworkFile.length + 1),
  15932. });
  15933. }
  15934. _this.imgChange(null, null, type);
  15935. console.log(data.Location);
  15936. // _this.$message.success('上传成功'+data.Location)
  15937. }
  15938. });
  15939. }
  15940. }
  15941. },
  15942. beforeUpload2(event, type) {
  15943. var file = event.target.files[0];
  15944. var credentials = {
  15945. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15946. secretAccessKey: "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",
  15947. }; //秘钥形式的登录上传
  15948. window.AWS.config.update(credentials);
  15949. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15950. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15951. var _this = this;
  15952. _this.progress = 0;
  15953. _this.proVisible = true;
  15954. if (file) {
  15955. var params = {
  15956. Key:
  15957. file.name.split(".")[0] +
  15958. new Date().getTime() +
  15959. "." +
  15960. file.name.split(".")[file.name.split(".").length - 1],
  15961. ContentType: file.type,
  15962. Body: file,
  15963. "Access-Control-Allow-Credentials": "*",
  15964. ACL: "public-read",
  15965. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15966. var options = {
  15967. partSize: 2048 * 1024 * 1024,
  15968. queueSize: 2,
  15969. leavePartsOnError: true,
  15970. };
  15971. bucket
  15972. .upload(params, options)
  15973. .on("httpUploadProgress", function (evt) {
  15974. //这里可以写进度条
  15975. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15976. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15977. })
  15978. .send(function (err, data) {
  15979. _this.progress = 100;
  15980. setTimeout(() => {
  15981. _this.proVisible = false;
  15982. }, 1000);
  15983. if (err) {
  15984. var a = _this.$refs.upload1.uploadFiles;
  15985. a.splice(a.length - 1, a.length);
  15986. _this.$message.error("上传失败");
  15987. } else {
  15988. if (type == 2) {
  15989. _this.studyJuri[0].upVedio.push({
  15990. name: file.name,
  15991. url: data.Location,
  15992. uid: file.uid,
  15993. });
  15994. _this.imgChange(null, null, type);
  15995. } else if (type == 3) {
  15996. _this.studyJuri[0].upFile.push({
  15997. name: file.name,
  15998. url: data.Location,
  15999. uid: file.uid,
  16000. });
  16001. _this.imgChange(null, null, type);
  16002. }
  16003. console.log(data.Location);
  16004. }
  16005. });
  16006. }
  16007. },
  16008. allScrell() {
  16009. window.parent.postMessage({ allScreen: this.screenType }, "*");
  16010. },
  16011. nextOrpreSteps(t) {
  16012. if (this.IsFollow && this.tType == 2) {
  16013. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16014. return;
  16015. }
  16016. var b = this.chapInfoList.length - 1;
  16017. if (t == 0) {
  16018. if (this.courseType == 0) {
  16019. if (this.taskCount == 0) {
  16020. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16021. if (this.IsLookOpen) {
  16022. if (
  16023. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16024. ) {
  16025. if (
  16026. this.courseDetail.userid != this.userid &&
  16027. (!this.courseDetail.course_teacher ||
  16028. (this.courseDetail.course_teacher &&
  16029. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16030. ) {
  16031. this.$message.error("任务未解锁");
  16032. } else {
  16033. this.$message.error("上一任务未解锁");
  16034. }
  16035. return;
  16036. }
  16037. }
  16038. this.navList[this.courseType].isOpen = false;
  16039. this.courseType = b;
  16040. this.taskCount =
  16041. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16042. .length - 1;
  16043. this.navList[this.courseType].isOpen = true;
  16044. } else {
  16045. this.taskCount--;
  16046. }
  16047. } else {
  16048. if (this.taskCount == 0) {
  16049. this.navList[this.courseType].isOpen = false;
  16050. this.courseType--;
  16051. this.taskCount =
  16052. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16053. .length - 1;
  16054. this.navList[this.courseType].isOpen = true;
  16055. } else {
  16056. this.taskCount--;
  16057. }
  16058. }
  16059. } else {
  16060. if (this.courseType == b) {
  16061. if (
  16062. this.taskCount ==
  16063. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16064. 1
  16065. ) {
  16066. this.navList[this.courseType].isOpen = false;
  16067. this.courseType = 0;
  16068. this.taskCount = 0;
  16069. this.navList[this.courseType].isOpen = true;
  16070. } else {
  16071. var bbb = parseInt(this.taskCount) + 1;
  16072. if (
  16073. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16074. .isLook &&
  16075. this.courseDetail.userid != this.userid &&
  16076. (!this.courseDetail.course_teacher ||
  16077. (this.courseDetail.course_teacher &&
  16078. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16079. this.IsLookOpen
  16080. ) {
  16081. this.$message.error("任务未解锁");
  16082. return;
  16083. }
  16084. this.taskCount++;
  16085. if (this.IsLookOpen) {
  16086. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16087. this.taskCount
  16088. ].isLook = true;
  16089. this.addCourseState(3);
  16090. }
  16091. }
  16092. } else {
  16093. if (
  16094. this.taskCount ==
  16095. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16096. 1
  16097. ) {
  16098. var bbb = parseInt(this.courseType) + 1;
  16099. if (
  16100. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16101. this.courseDetail.userid != this.userid &&
  16102. (!this.courseDetail.course_teacher ||
  16103. (this.courseDetail.course_teacher &&
  16104. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16105. this.IsLookOpen
  16106. ) {
  16107. this.$message.error("任务未解锁");
  16108. return;
  16109. }
  16110. this.navList[this.courseType].isOpen = false;
  16111. this.courseType++;
  16112. this.taskCount = 0;
  16113. this.navList[this.courseType].isOpen = true;
  16114. } else {
  16115. var bbb = parseInt(this.taskCount) + 1;
  16116. if (
  16117. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16118. .isLook &&
  16119. this.courseDetail.userid != this.userid &&
  16120. (!this.courseDetail.course_teacher ||
  16121. (this.courseDetail.course_teacher &&
  16122. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16123. this.IsLookOpen
  16124. ) {
  16125. this.$message.error("任务未解锁");
  16126. return;
  16127. }
  16128. this.taskCount++;
  16129. }
  16130. if (this.IsLookOpen) {
  16131. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16132. this.taskCount
  16133. ].isLook = true;
  16134. this.addCourseState(3);
  16135. }
  16136. }
  16137. // if (
  16138. // this.taskCount ==
  16139. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16140. // ) {
  16141. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16142. // } else {
  16143. // this.taskCount++;
  16144. // }
  16145. }
  16146. document.scrollingElement.scrollTop = 0;
  16147. this.showType = 7;
  16148. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16149. // if (this.vedio[this.taskCount].length > 0) {
  16150. // var a =
  16151. // document.getElementsByClassName("box_course")[this.taskCount]
  16152. // .offsetHeight;
  16153. // document.getElementsByClassName("vedioList")[
  16154. // this.taskCount
  16155. // ].style.height = a + "px";
  16156. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16157. // a - 40 + "px";
  16158. // }
  16159. this.isNoHomeWork = false;
  16160. (this.studyJuri = [
  16161. {
  16162. content: "",
  16163. cover: [],
  16164. upVedio: [],
  16165. upFile: [],
  16166. },
  16167. ]),
  16168. (this.radio = []);
  16169. this.isClickNav = "";
  16170. this.selectPz();
  16171. this.getHomeWork();
  16172. this.getCourseDetail(2);
  16173. this.$forceUpdate();
  16174. },
  16175. openTask(s, n, i) {
  16176. if (this.IsFollow && this.tType == 2) {
  16177. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16178. return;
  16179. }
  16180. if (this.IsLookOpen) {
  16181. if (
  16182. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16183. this.courseDetail.userid != this.userid &&
  16184. (!this.courseDetail.course_teacher ||
  16185. (this.courseDetail.course_teacher &&
  16186. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16187. ) {
  16188. this.$message.error("任务未解锁");
  16189. return;
  16190. }
  16191. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16192. if (
  16193. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16194. .isLook
  16195. ) {
  16196. this.$message.error("上一任务未解锁");
  16197. return;
  16198. }
  16199. } else if (s > this.courseType) {
  16200. if (n > 0) {
  16201. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16202. this.$message.error("上一任务未解锁");
  16203. return;
  16204. }
  16205. } else {
  16206. if (
  16207. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16208. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16209. ].isLook
  16210. ) {
  16211. this.$message.error("上一任务未解锁");
  16212. return;
  16213. }
  16214. }
  16215. }
  16216. }
  16217. if (this.navList[s].task[n].isOpen == true) {
  16218. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16219. return;
  16220. }
  16221. let flag = this.courseType==s;
  16222. this.courseType = s;
  16223. this.navId = i;
  16224. this.taskCount = n;
  16225. this.navList[this.courseType].task[this.taskCount].isOpen =
  16226. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16227. if (this.IsLookOpen) {
  16228. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16229. this.taskCount
  16230. ].isLook = true;
  16231. this.addCourseState(3);
  16232. }
  16233. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  16234. this.isCloseList[ci].isClose = 0;
  16235. this.isCloseList[ci].isCloseBoolean = false;
  16236. this.$nextTick(()=>{
  16237. setTimeout(()=>{
  16238. setTimeout(()=>{
  16239. this.panToolHeight('tool-'+ci);
  16240. }, 0)
  16241. }, 0)
  16242. })
  16243. }
  16244. this.showType = 7;
  16245. this.isNoHomeWork = false;
  16246. (this.studyJuri = [
  16247. {
  16248. content: "",
  16249. cover: [],
  16250. upVedio: [],
  16251. upFile: [],
  16252. },
  16253. ]),
  16254. (this.radio = []);
  16255. document.scrollingElement.scrollTop = 0;
  16256. // setTimeout(() => {
  16257. // let a = document.getElementById(i);
  16258. // if (a.offsetTop - 110 == 0) {
  16259. // window.scrollTo(0, 0);
  16260. // } else {
  16261. // window.scrollTo(0, a.offsetTop);
  16262. // }
  16263. // }, 0);
  16264. for (var z = 0; z < this.navList.length; z++) {
  16265. for (var q = 0; q < this.navList[z].task.length; q++) {
  16266. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16267. this.navList[z].task[q].tool[w].isTool = false;
  16268. }
  16269. }
  16270. }
  16271. this.selectPz();
  16272. this.getHomeWork();
  16273. this.getCourseDetail(2);
  16274. if(flag){
  16275. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  16276. }else{
  16277. 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>`)
  16278. }
  16279. },
  16280. get(i) {
  16281. if (this.IsFollow && this.tType == 2) {
  16282. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16283. return;
  16284. }
  16285. // for(var k=0;k<this.navList.length;k++){
  16286. // this.navList[k].isOpen = false;
  16287. // }
  16288. // this.navList[i].isOpen = true;
  16289. this.navList[i].isOpen = !this.navList[i].isOpen;
  16290. if (this.navList[i].isOpen) {
  16291. this.openTask(i, 0, i + "-0");
  16292. }
  16293. },
  16294. addQuestion() {
  16295. this.answerList.push({
  16296. answerTitle: this.answerQ,
  16297. answer: this.questionAnswer,
  16298. });
  16299. let params = [
  16300. {
  16301. uid: this.userid,
  16302. cid: this.id,
  16303. stage: this.courseType,
  16304. task: this.taskCount,
  16305. tool: this.toolindex,
  16306. content: JSON.stringify(this.answerList),
  16307. type: 3,
  16308. },
  16309. ];
  16310. this.ajax
  16311. .post(this.$store.state.api + "addCourseWorks", params)
  16312. .then((res) => {
  16313. this.$message({
  16314. message: "提交成功",
  16315. type: "success",
  16316. });
  16317. this.answerList = [];
  16318. this.answerDialogVisible = false;
  16319. this.selectStudent();
  16320. this.selectSWorks();
  16321. this.selectSLook();
  16322. })
  16323. .catch((err) => {
  16324. this.$message.error("提交失败");
  16325. console.error(err);
  16326. });
  16327. },
  16328. addQuestionTeacher() {
  16329. this.answerList.push({
  16330. answerTitle: this.answerQ,
  16331. answer: this.questionAnswer,
  16332. });
  16333. let params = [
  16334. {
  16335. uid: this.sStudent.userid,
  16336. cid: this.id,
  16337. stage: this.courseType,
  16338. task: this.taskCount,
  16339. tool: this.toolindex,
  16340. content: JSON.stringify(this.answerList),
  16341. type: 3,
  16342. ateacher: this.userid,
  16343. },
  16344. ];
  16345. this.ajax
  16346. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16347. .then((res) => {
  16348. this.$message({
  16349. message: "提交成功",
  16350. type: "success",
  16351. });
  16352. this.answerList = [];
  16353. this.questionAnswer = "";
  16354. this.answerDialogVisibleTeacher = false;
  16355. this.selectStudent();
  16356. this.selectSWorks();
  16357. this.selectSLook();
  16358. })
  16359. .catch((err) => {
  16360. this.$message.error("提交失败");
  16361. console.error(err);
  16362. });
  16363. },
  16364. refreshCourse() {
  16365. // window.location.reload();
  16366. this.navList = [];
  16367. this.getCourseDetail(1);
  16368. },
  16369. getCourseDetail(type, gindex) {
  16370. let loading;
  16371. if (type != 2) {
  16372. loading = this.$loading.service({
  16373. background: "rgba(255, 255, 255, 0.7)",
  16374. target: document.querySelector(".student_table"),
  16375. });
  16376. }
  16377. this.downLoading = false
  16378. // this.navList[0].isOpen = false;
  16379. // this.navList[this.courseType].isOpen = true;
  16380. // this.courseType = this.courseTypeLine;
  16381. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16382. let params = {
  16383. courseId: this.id,
  16384. };
  16385. this.ajax
  16386. .get(this.$store.state.api + "selectCourseDetail3", params)
  16387. .then((res) => {
  16388. if (type != 2) {
  16389. loading.close();
  16390. if (
  16391. this.courseType >
  16392. JSON.parse(res.data[0][0].chapters).length - 1
  16393. ) {
  16394. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16395. }
  16396. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16397. .chapterInfo[0].taskJson;
  16398. var b = [
  16399. "AVI",
  16400. "NAVI",
  16401. "MPEG",
  16402. "ASF",
  16403. "MOV",
  16404. "WMV",
  16405. "3GP",
  16406. "RM",
  16407. "RMVB",
  16408. "FLV",
  16409. "F4V",
  16410. "H.264",
  16411. "H.265",
  16412. "REAL VIDEO",
  16413. "MKV",
  16414. "WebM",
  16415. "HDDVD",
  16416. "MP4",
  16417. "MPG",
  16418. "M4V",
  16419. "MGV",
  16420. "OGV",
  16421. "QTM",
  16422. "STR",
  16423. "AMC",
  16424. "DVX",
  16425. "EVO",
  16426. "DAT",
  16427. "OGG",
  16428. "OGM",
  16429. "MP3",
  16430. ];
  16431. let _chapterData = [];
  16432. for (var i = 0; i < a.length; i++) {
  16433. var c = a[i].chapterData;
  16434. this.vedio[i] = [];
  16435. this.textList[i] = [];
  16436. this.lineList[i] = [];
  16437. this.chapToolList[i] = [];
  16438. this.file[i] = [];
  16439. this.fileC[i] = [];
  16440. _chapterData[i] = c.filter((el) => {
  16441. return el.type != 12;
  16442. });
  16443. this.fileC[i] = c.filter((el) => {
  16444. return el.type == 12;
  16445. });
  16446. // else if (c[j].type == 12) {
  16447. // this.fileC[i].push(c[j]);
  16448. // }
  16449. for (var j = 0; j < c.length; j++) {
  16450. if (c[j].type == 7) {
  16451. this.chapToolList[i].push(c[j]);
  16452. } else if (c[j].type == 8 || c[j].type == 14) {
  16453. this.lineList[i].push(c[j]);
  16454. } else if (c[j].type == 6) {
  16455. this.textList[i].push(c[j]);
  16456. } else {
  16457. if (
  16458. b.indexOf(
  16459. c[j].url
  16460. .split(".")
  16461. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16462. ) != -1
  16463. ) {
  16464. this.vedio[i].push(c[j]);
  16465. } else {
  16466. this.file[i].push(c[j]);
  16467. }
  16468. }
  16469. }
  16470. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16471. d.sources[0].src =
  16472. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16473. this.playerO[i] = d;
  16474. }
  16475. this.courseDetail = res.data[0][0];
  16476. this.tcid = this.arrayToArray(
  16477. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16478. this.tcid2 ? this.tcid2.split(",") : []
  16479. ).join(",");
  16480. this.evalua = res.data[0][0].evaId;
  16481. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16482. this.courseType
  16483. ];
  16484. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16485. if (this.tcid && res.data[1].length) {
  16486. let _inviteA = [];
  16487. for (var ik = 0; ik < res.data[1].length; ik++) {
  16488. _inviteA.push({
  16489. cid: res.data[1][ik].classid,
  16490. ic: res.data[1][ik].code,
  16491. });
  16492. }
  16493. for (var ik = 0; ik < _inviteA.length; ik++) {
  16494. if (
  16495. this.arrayToArray(
  16496. _inviteA[ik].cid.split(","),
  16497. this.tcid.split(",")
  16498. ).length
  16499. ) {
  16500. this.inviteCode = _inviteA[ik].ic;
  16501. break;
  16502. }
  16503. }
  16504. }
  16505. for (var l = 0; l < this.chapInfoList.length; l++) {
  16506. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16507. for (var m = 0; m < w.length; m++) {
  16508. w[m].id = l + "-" + m;
  16509. }
  16510. }
  16511. let taskCount = 0;
  16512. if (
  16513. _chapterData[taskCount].length &&
  16514. _chapterData[taskCount][0].type == 2
  16515. ) {
  16516. this.showType = 0;
  16517. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  16518. } else {
  16519. if (_chapterData[taskCount].length > 0) {
  16520. let _url = _chapterData[taskCount][0].url;
  16521. if (
  16522. _chapterData[taskCount][0].type == 8 ||
  16523. _chapterData[taskCount][0].type == 14
  16524. ) {
  16525. this.showType = 2;
  16526. if (
  16527. _url.indexOf("https://") == -1 &&
  16528. _url.indexOf("http://") == -1
  16529. ) {
  16530. _url = "https://" + _url;
  16531. }
  16532. this.pptImgUrl1 = _url;
  16533. } else if (_chapterData[taskCount][0].type == 3) {
  16534. if (
  16535. _url
  16536. .split(".")
  16537. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16538. ) {
  16539. this.showType = 3;
  16540. this.pptImgUrl1 = _url;
  16541. } else if (
  16542. this.isAssetTypeAnImage(
  16543. _url
  16544. .split(".")
  16545. [_url.split(".").length - 1].toLocaleLowerCase()
  16546. )
  16547. ) {
  16548. this.showType = 4;
  16549. this.pptImgUrl1 = _url;
  16550. } else {
  16551. this.showType = 2;
  16552. this.pptImgUrl1 =
  16553. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16554. encodeURIComponent(_url);
  16555. }
  16556. } else if (_chapterData[taskCount][0].type == 13) {
  16557. this.showType = 4;
  16558. this.pptImgUrl1 = _url;
  16559. } else if (_chapterData[taskCount][0].type == 6) {
  16560. this.showType = 1;
  16561. this.text = this.textList[taskCount][0];
  16562. }
  16563. }
  16564. }
  16565. this.isClickNav = 0;
  16566. if (
  16567. !_chapterData[taskCount].length ||
  16568. _chapterData[taskCount][0].type == 12
  16569. ) {
  16570. this.isClickNav = "";
  16571. this.showType = "";
  16572. }
  16573. this.vChapterData = _chapterData;
  16574. } else {
  16575. this.showType = 0;
  16576. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16577. .chapterInfo[0].taskJson;
  16578. var b = [
  16579. "AVI",
  16580. "NAVI",
  16581. "MPEG",
  16582. "ASF",
  16583. "MOV",
  16584. "WMV",
  16585. "3GP",
  16586. "RM",
  16587. "RMVB",
  16588. "FLV",
  16589. "F4V",
  16590. "H.264",
  16591. "H.265",
  16592. "REAL VIDEO",
  16593. "MKV",
  16594. "WebM",
  16595. "HDDVD",
  16596. "MP4",
  16597. "MPG",
  16598. "M4V",
  16599. "MGV",
  16600. "OGV",
  16601. "QTM",
  16602. "STR",
  16603. "AMC",
  16604. "DVX",
  16605. "EVO",
  16606. "DAT",
  16607. "OGG",
  16608. "OGM",
  16609. "MP3",
  16610. ];
  16611. let _chapterData = [];
  16612. for (var i = 0; i < a.length; i++) {
  16613. var c = a[i].chapterData;
  16614. this.vedio[i] = [];
  16615. this.textList[i] = [];
  16616. this.lineList[i] = [];
  16617. this.chapToolList[i] = [];
  16618. this.file[i] = [];
  16619. this.fileC[i] = [];
  16620. _chapterData[i] = c.filter((el) => {
  16621. return el.type != 12;
  16622. });
  16623. this.fileC[i] = c.filter((el) => {
  16624. return el.type == 12;
  16625. });
  16626. for (var j = 0; j < c.length; j++) {
  16627. if (c[j].type == 7) {
  16628. this.chapToolList[i].push(c[j]);
  16629. } else if (c[j].type == 8 || c[j].type == 14) {
  16630. this.lineList[i].push(c[j]);
  16631. } else if (c[j].type == 6) {
  16632. this.textList[i].push(c[j]);
  16633. } else {
  16634. if (
  16635. b.indexOf(
  16636. c[j].url
  16637. .split(".")
  16638. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16639. ) != -1
  16640. ) {
  16641. this.vedio[i].push(c[j]);
  16642. } else {
  16643. this.file[i].push(c[j]);
  16644. }
  16645. }
  16646. }
  16647. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16648. d.sources[0].src =
  16649. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16650. this.playerO[i] = d;
  16651. }
  16652. let taskCount = 0;
  16653. if (
  16654. _chapterData[taskCount].length &&
  16655. _chapterData[taskCount][0].type == 2
  16656. ) {
  16657. this.showType = 0;
  16658. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  16659. } else {
  16660. if (_chapterData[taskCount].length > 0) {
  16661. let _url = _chapterData[taskCount][0].url;
  16662. if (
  16663. _chapterData[taskCount][0].type == 8 ||
  16664. _chapterData[taskCount][0].type == 14
  16665. ) {
  16666. this.showType = 2;
  16667. if (
  16668. _url.indexOf("https://") == -1 &&
  16669. _url.indexOf("http://") == -1
  16670. ) {
  16671. _url = "https://" + _url;
  16672. }
  16673. this.pptImgUrl1 = _url;
  16674. } else if (_chapterData[taskCount][0].type == 3) {
  16675. if (
  16676. _url
  16677. .split(".")
  16678. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16679. ) {
  16680. this.showType = 3;
  16681. this.pptImgUrl1 = _url;
  16682. } else if (
  16683. this.isAssetTypeAnImage(
  16684. _url
  16685. .split(".")
  16686. [_url.split(".").length - 1].toLocaleLowerCase()
  16687. )
  16688. ) {
  16689. this.showType = 4;
  16690. this.pptImgUrl1 = _url;
  16691. } else {
  16692. this.showType = 2;
  16693. this.pptImgUrl1 =
  16694. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16695. encodeURIComponent(_url);
  16696. }
  16697. } else if (_chapterData[taskCount][0].type == 13) {
  16698. this.showType = 4;
  16699. this.pptImgUrl1 = _url;
  16700. } else if (_chapterData[taskCount][0].type == 6) {
  16701. this.showType = 1;
  16702. this.text = this.textList[taskCount][0];
  16703. }
  16704. }
  16705. }
  16706. this.isClickNav = 0;
  16707. if (
  16708. !_chapterData[taskCount].length ||
  16709. _chapterData[taskCount][0].type == 12
  16710. ) {
  16711. this.isClickNav = "";
  16712. this.showType = "";
  16713. }
  16714. this.vChapterData = _chapterData;
  16715. this.$forceUpdate();
  16716. }
  16717. // else {
  16718. // this.courseDetail = res.data[0][0];
  16719. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16720. // }
  16721. let _this = this;
  16722. if (_this.timer) {
  16723. clearInterval(_this.timer);
  16724. _this.timer = null;
  16725. }
  16726. if (_this.tcid) {
  16727. _this.getCourseGroup(gindex);
  16728. } else {
  16729. _this.selectSWorks(gindex);
  16730. }
  16731. _this.selectStudent();
  16732. _this.selectSLook();
  16733. _this.getPick();
  16734. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16735. _this.setCTask();
  16736. }
  16737. if (_this.dialogVisibleGroup) {
  16738. _this.groupJson =
  16739. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16740. _this.taskCount
  16741. ].toolChoose[_this.toolindex].groupJson;
  16742. }
  16743. _this.$nextTick(() => {
  16744. setTimeout(() => {
  16745. _this.checkEva();
  16746. }, 1000);
  16747. });
  16748. _this.timer = setInterval(function () {
  16749. // _this.getCourseDetail(2);
  16750. if (_this.tcid) {
  16751. _this.getCourseGroup(gindex);
  16752. } else {
  16753. _this.selectSWorks(gindex);
  16754. }
  16755. _this.selectStudent();
  16756. _this.selectSLook();
  16757. _this.getPick();
  16758. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16759. _this.setCTask();
  16760. }
  16761. if (_this.dialogVisibleGroup) {
  16762. _this.groupJson =
  16763. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16764. _this.taskCount
  16765. ].toolChoose[_this.toolindex].groupJson;
  16766. }
  16767. if (_this.tType == 4 || _this.ispzType == 4) {
  16768. _this.selectPz();
  16769. }
  16770. }, 5000);
  16771. _this.$nextTick(function () {
  16772. setTimeout(() => {
  16773. // var a =
  16774. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16775. // document.getElementsByClassName("vedioList")[0].style.height =
  16776. // a + "px";
  16777. // document.getElementsByClassName("navBox")[0].style.height =
  16778. // a - 40 + "px";
  16779. // if (_this.vedio[_this.taskCount].length > 0) {
  16780. // _this.vedioTime = [];
  16781. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16782. // _this.vedioTime[i] = document.getElementsByClassName(
  16783. // "vjs-duration-display"
  16784. // )[i].textContent;
  16785. // }
  16786. // }
  16787. }, 1000);
  16788. });
  16789. })
  16790. .catch((err) => {
  16791. loading.close();
  16792. console.error(err);
  16793. });
  16794. },
  16795. getCourseGroup(gindex) {
  16796. let params = {
  16797. cid: this.id,
  16798. classid: this.tcid ? this.tcid : "1",
  16799. };
  16800. this.ajax
  16801. .get(this.$store.state.api + "getCourseGroup", params)
  16802. .then((res) => {
  16803. if (res.data && res.data[0].length) {
  16804. if (!this.isGroup) {
  16805. let courseGroup = JSON.parse(res.data[0][0].group);
  16806. courseGroup.group = courseGroup.group.filter((el) => {
  16807. el.works = [];
  16808. return el;
  16809. });
  16810. if (courseGroup.isopen == 2) {
  16811. this.isGroup = false;
  16812. this.selectSWorks(gindex);
  16813. return;
  16814. }
  16815. this.courseGroup = courseGroup;
  16816. let groupPerson = res.data[1];
  16817. let group = JSON.parse(res.data[0][0].group).group;
  16818. let courseGroupStudent = {};
  16819. let courseGroupStudentUid = {};
  16820. for (var i = 0; i < group.length; i++) {
  16821. courseGroupStudent[group[i].id] = [];
  16822. courseGroupStudentUid[group[i].id] = [];
  16823. for (var j = 0; j < groupPerson.length; j++) {
  16824. if (groupPerson[j].groupCid == group[i].id) {
  16825. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16826. courseGroupStudentUid[group[i].id].push(
  16827. groupPerson[j].userid
  16828. );
  16829. }
  16830. }
  16831. }
  16832. this.courseGroupStudent = courseGroupStudent;
  16833. this.courseGroupStudentUid = courseGroupStudentUid;
  16834. }
  16835. if (this.courseGroup.isopen == 2) {
  16836. this.isGroup = false;
  16837. } else {
  16838. this.isGroup = true;
  16839. }
  16840. this.selectSWorks(gindex);
  16841. } else {
  16842. this.selectSWorks(gindex);
  16843. this.isGroup = false;
  16844. }
  16845. })
  16846. .catch((err) => {
  16847. // this.$message.error("网络不佳");
  16848. console.error(err);
  16849. });
  16850. },
  16851. setOperationTime() {
  16852. let _this = this;
  16853. if (_this.opertimer) {
  16854. clearInterval(_this.opertimer);
  16855. _this.opertimer = null;
  16856. }
  16857. _this.opertimer = setInterval(() => {
  16858. _this.setoTime("600");
  16859. }, 600000);
  16860. },
  16861. setoTime(time) {
  16862. let params = [
  16863. {
  16864. uid: this.userid,
  16865. cid: this.id,
  16866. type: "2",
  16867. time: time,
  16868. },
  16869. ];
  16870. this.ajax
  16871. .post(this.$store.state.api + "addOperationTimeT2", params)
  16872. .then((res) => {})
  16873. .catch((err) => {
  16874. console.error(err);
  16875. });
  16876. },
  16877. addPz(type, content) {
  16878. if (type == "1" && this.pzConText == "") {
  16879. this.$message.error("评论不能为空!");
  16880. return;
  16881. }
  16882. let params = [
  16883. {
  16884. cid: this.id,
  16885. uid: this.userid,
  16886. s: this.courseType,
  16887. t: this.taskCount,
  16888. c: type == "1" ? this.pzConText : content,
  16889. type: type,
  16890. },
  16891. ];
  16892. this.ajax
  16893. .post(this.$store.state.api + "addPz2", params)
  16894. .then((res) => {
  16895. this.$message({
  16896. message: "添加成功",
  16897. type: "success",
  16898. });
  16899. this.pzConText = "";
  16900. this.addPzDialog = false;
  16901. this.selectPz();
  16902. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  16903. })
  16904. .catch((err) => {
  16905. this.$message.error("添加失败");
  16906. console.error(err);
  16907. });
  16908. },
  16909. setReplyIndex(id, i) {
  16910. this.replyIndex = i;
  16911. this.replyPid = id;
  16912. this.replyDialogVisible = true;
  16913. },
  16914. addHf() {
  16915. if (this.reply == "") {
  16916. this.$message.error("回复不能为空!");
  16917. return;
  16918. }
  16919. let params = [
  16920. {
  16921. cid: this.id,
  16922. uid: this.userid,
  16923. s: this.courseType,
  16924. t: this.taskCount,
  16925. type: "1",
  16926. ct: 2,
  16927. pid: this.replyPid,
  16928. c: this.reply,
  16929. },
  16930. ];
  16931. this.ajax
  16932. .post(this.$store.state.api + "addHf", params)
  16933. .then((res) => {
  16934. this.reply = "";
  16935. this.$message({
  16936. message: "回复成功",
  16937. type: "success",
  16938. });
  16939. this.replyDialogVisible = false;
  16940. this.selectPz();
  16941. })
  16942. .catch((err) => {
  16943. this.$message.error("回复失败");
  16944. console.error(err);
  16945. });
  16946. },
  16947. deletePz(id) {
  16948. this.$confirm("确定删除此评论吗?", "提示", {
  16949. confirmButtonText: "确定",
  16950. cancelButtonText: "取消",
  16951. type: "warning",
  16952. })
  16953. .then(() => {
  16954. let params = [
  16955. {
  16956. id: id,
  16957. },
  16958. ];
  16959. this.ajax
  16960. .post(this.$store.state.api + "deletePz", params)
  16961. .then((res) => {
  16962. this.$message({
  16963. message: "删除成功",
  16964. type: "success",
  16965. });
  16966. this.selectPz();
  16967. })
  16968. .catch((err) => {
  16969. this.$message.error("网络异常");
  16970. console.error(err);
  16971. });
  16972. })
  16973. .catch(() => {});
  16974. },
  16975. deleteReply(id) {
  16976. this.$confirm("确定删除此回复吗?", "提示", {
  16977. confirmButtonText: "确定",
  16978. cancelButtonText: "取消",
  16979. type: "warning",
  16980. })
  16981. .then(() => {
  16982. let params = [
  16983. {
  16984. id: id,
  16985. },
  16986. ];
  16987. this.ajax
  16988. .post(this.$store.state.api + "deleteReply", params)
  16989. .then((res) => {
  16990. this.$message({
  16991. message: "删除成功",
  16992. type: "success",
  16993. });
  16994. this.selectPz();
  16995. })
  16996. .catch((err) => {
  16997. this.$message.error("网络异常");
  16998. console.error(err);
  16999. });
  17000. })
  17001. .catch(() => {});
  17002. },
  17003. setPz() {
  17004. if (this.ispzType == 4) {
  17005. this.ispzType = 0;
  17006. this.pzDialog = false;
  17007. return;
  17008. }
  17009. this.ispzType = 4;
  17010. this.pzDialog = true;
  17011. this.selectPz();
  17012. },
  17013. selectPz() {
  17014. let params = {
  17015. cid: this.id,
  17016. s: this.courseType,
  17017. t: this.taskCount,
  17018. type: this.pzStype,
  17019. uid: this.userid,
  17020. };
  17021. this.ajax
  17022. .get(this.$store.state.api + "selectPzListType", params)
  17023. .then((res) => {
  17024. this.pzList = res.data[0];
  17025. var a = res.data[1];
  17026. for (var i = 0; i < a.length; i++) {
  17027. for (var j = 0; j < this.pzList.length; j++) {
  17028. if (!this.pzList[j].hfList) {
  17029. this.pzList[j].hfList = [];
  17030. }
  17031. if (a[i].pid == this.pzList[j].id) {
  17032. this.pzList[j].hfList.push(a[i]);
  17033. }
  17034. }
  17035. }
  17036. })
  17037. .catch((err) => {
  17038. console.error(err);
  17039. });
  17040. },
  17041. // selectHf() {
  17042. // let params = {
  17043. // cid: this.id,
  17044. // s: this.courseType,
  17045. // t: this.taskCount,
  17046. // };
  17047. // this.ajax
  17048. // .get(this.$store.state.api + "selectHfList", params)
  17049. // .then((res) => {
  17050. // var a = res.data[0];
  17051. // for (var i = 0; i < a.length; i++) {
  17052. // for (var j = 0; j < this.pzList.length; j++) {
  17053. // if (!this.pzList[i].hfList) {
  17054. // this.pzList[i].hfList = [];
  17055. // }
  17056. // if (a[i].pid == this.pzList[j].id) {
  17057. // this.pzList[i].hfList.push(a[i]);
  17058. // }
  17059. // }
  17060. // }
  17061. // })
  17062. // .catch((err) => {
  17063. // console.error(err);
  17064. // });
  17065. // },
  17066. updateSLook() {
  17067. let params = {
  17068. sopen: this.sIsOpen == false ? 1 : 2,
  17069. cid: this.id,
  17070. };
  17071. this.ajax
  17072. .get(this.$store.state.api + "updateCourseSLook", params)
  17073. .then((res) => {
  17074. if (this.sIsOpen == true) {
  17075. this.$message({
  17076. message: "权限设置成功",
  17077. type: "success",
  17078. });
  17079. } else {
  17080. this.$message({
  17081. message: "权限关闭成功",
  17082. type: "success",
  17083. });
  17084. }
  17085. })
  17086. .catch((err) => {
  17087. console.error(err);
  17088. });
  17089. },
  17090. updateFollow() {
  17091. let params = [
  17092. {
  17093. sopen: this.IsFollow == false ? 1 : 2,
  17094. cid: this.id,
  17095. },
  17096. ];
  17097. this.ajax
  17098. .post(this.$store.state.api + "updateCourseFollow", params)
  17099. .then((res) => {
  17100. if (this.IsFollow == true) {
  17101. this.$message({
  17102. message: "开启成功",
  17103. type: "success",
  17104. });
  17105. } else {
  17106. this.$message({
  17107. message: "关闭成功",
  17108. type: "success",
  17109. });
  17110. }
  17111. this.setCTask();
  17112. })
  17113. .catch((err) => {
  17114. console.error(err);
  17115. });
  17116. },
  17117. setCTask() {
  17118. let params = [
  17119. {
  17120. sopen: this.courseType + "-" + this.taskCount,
  17121. cid: this.id,
  17122. },
  17123. ];
  17124. this.ajax
  17125. .post(this.$store.state.api + "updateCourseFollowC", params)
  17126. .then((res) => {})
  17127. .catch((err) => {
  17128. console.error(err);
  17129. });
  17130. },
  17131. updateLookOpen() {
  17132. let params = [
  17133. {
  17134. sopen: this.IsLookOpen == false ? 1 : 2,
  17135. cid: this.id,
  17136. },
  17137. ];
  17138. this.ajax
  17139. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17140. .then((res) => {
  17141. if (this.IsLookOpen == true) {
  17142. // if (this.courseType != 0 && this.taskCount != 0) {
  17143. // this.openTask(0, 0, "0-0");
  17144. // }
  17145. this.$message({
  17146. message: "权限设置成功",
  17147. type: "success",
  17148. });
  17149. } else {
  17150. this.$message({
  17151. message: "权限关闭成功",
  17152. type: "success",
  17153. });
  17154. }
  17155. this.getCourseState(2);
  17156. })
  17157. .catch((err) => {
  17158. console.error(err);
  17159. });
  17160. },
  17161. selectSLook() {
  17162. let params = {
  17163. cid: this.id,
  17164. };
  17165. this.ajax
  17166. .get(this.$store.state.api + "selectCourseSLook", params)
  17167. .then((res) => {
  17168. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17169. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17170. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17171. if (!this.IsLookOpen) {
  17172. this.setNavList();
  17173. } else {
  17174. this.getCourseState(1);
  17175. }
  17176. if (this.IsFollow && this.tType == 2) {
  17177. this.setContent2(false);
  17178. let _followC = res.data[0][0].followC.split("-");
  17179. if (
  17180. this.courseType != _followC[0] ||
  17181. this.taskCount != _followC[1]
  17182. ) {
  17183. this.navList[this.courseType].isOpen = false;
  17184. this.courseType = _followC[0];
  17185. this.navList[this.courseType].isOpen = true;
  17186. this.taskCount = parseInt(_followC[1]);
  17187. this.navId = res.data[0][0].followC;
  17188. document.scrollingElement.scrollTop = 0;
  17189. this.getCourseDetail(2);
  17190. }
  17191. }
  17192. })
  17193. .catch((err) => {
  17194. console.error(err);
  17195. });
  17196. },
  17197. setNavList() {
  17198. if (this.navList.length == 0) {
  17199. this.navList = [];
  17200. var copyList = [];
  17201. for (var l = 0; l < this.chapInfoList.length; l++) {
  17202. var q = this.chapInfoList[l].dyName;
  17203. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17204. var e;
  17205. copyList.push({
  17206. dyName: q,
  17207. isOpen: l === 0 ? true : false,
  17208. task: [],
  17209. });
  17210. for (var r = 0; r < w.length; r++) {
  17211. e = w[r].task;
  17212. if (this.chapInfoList[l].easy == 1) {
  17213. copyList[l].task.push({
  17214. taskName: q,
  17215. id: l + "-" + r,
  17216. isLook: w[r].isLook,
  17217. isOpen: r === 0 ? true : false,
  17218. tool: [],
  17219. });
  17220. } else {
  17221. copyList[l].task.push({
  17222. taskName: e,
  17223. id: l + "-" + r,
  17224. isLook: w[r].isLook,
  17225. isOpen: r === 0 ? true : false,
  17226. tool: [],
  17227. });
  17228. }
  17229. var t = w[r].toolChoose;
  17230. for (var k = 0; k < t.length; k++) {
  17231. var tool = t[k].tool[0];
  17232. copyList[l].task[r].tool.push({
  17233. tool: tool,
  17234. isTool: false,
  17235. });
  17236. }
  17237. // this.navId = this.navId ? this.navId : l + "-" + r;
  17238. // this.navId = l + "-" + r;
  17239. }
  17240. }
  17241. this.navList = copyList;
  17242. this.navList[0].isOpen = false;
  17243. this.navList[this.courseType].isOpen = true;
  17244. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17245. } else {
  17246. this.setNavList2();
  17247. }
  17248. },
  17249. setNavList2() {
  17250. for (var l = 0; l < this.chapInfoList.length; l++) {
  17251. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17252. for (var r = 0; r < w.length; r++) {
  17253. this.navList[l].task[r].isLook = w[r].isLook;
  17254. }
  17255. }
  17256. if (
  17257. this.IsLookOpen &&
  17258. !this.navList[this.courseType].task[this.taskCount].isLook
  17259. ) {
  17260. this.openTask(0, 0, "0-0");
  17261. }
  17262. this.$forceUpdate();
  17263. },
  17264. getCourseState(type) {
  17265. let params = {
  17266. cid: this.id,
  17267. };
  17268. this.ajax
  17269. .get(this.$store.state.api + "getCourseState", params)
  17270. .then((res) => {
  17271. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17272. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17273. this.setNavList();
  17274. this.$forceUpdate();
  17275. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17276. this.addCourseState(2);
  17277. } else {
  17278. this.addCourseState(1);
  17279. }
  17280. })
  17281. .catch((err) => {
  17282. console.error(err);
  17283. });
  17284. },
  17285. addCourseState(type) {
  17286. let _state = this.chapInfoList;
  17287. // this.courseType this.taskCount
  17288. if (type == 1 || type == 2) {
  17289. for (var i = 0; i < _state.length; i++) {
  17290. let el = _state[i].chapterInfo[0].taskJson;
  17291. for (var j = 0; j < el.length; j++) {
  17292. // if (i == 0 && j == 0) {
  17293. // el[j].isLook = true;
  17294. // } else {
  17295. // el[j].isLook = false;
  17296. // }
  17297. if (
  17298. this.courseType > i ||
  17299. (this.courseType == i && this.taskCount + 1 > j)
  17300. ) {
  17301. el[j].isLook = true;
  17302. } else {
  17303. el[j].isLook = false;
  17304. }
  17305. }
  17306. }
  17307. }
  17308. let params = [
  17309. {
  17310. cid: this.id,
  17311. state: JSON.stringify(_state),
  17312. },
  17313. ];
  17314. this.ajax
  17315. .post(
  17316. this.$store.state.api +
  17317. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17318. params
  17319. )
  17320. .then((res) => {
  17321. if (this.IsLookOpen) {
  17322. this.setNavList();
  17323. }
  17324. if (type == 3 && type == 2) {
  17325. this.getCourseState(1);
  17326. }
  17327. })
  17328. .catch((err) => {
  17329. console.error(err);
  17330. });
  17331. },
  17332. getHomeWork() {
  17333. let params = {
  17334. cid: this.id,
  17335. stage: this.courseType,
  17336. task: this.taskCount,
  17337. uid: this.userid,
  17338. };
  17339. this.ajax
  17340. .get(this.$store.state.api + "selectWork", params)
  17341. .then((res) => {
  17342. if (res.data[0].length > 0) {
  17343. this.studyJuri = JSON.parse(res.data[0][0].content);
  17344. this.isNoHomeWork = true;
  17345. }
  17346. })
  17347. .catch((err) => {
  17348. console.error(err);
  17349. });
  17350. },
  17351. isAssetTypeAnImage(ext) {
  17352. return (
  17353. [
  17354. "png",
  17355. "jpg",
  17356. "jpeg",
  17357. "bmp",
  17358. "gif",
  17359. "webp",
  17360. "psd",
  17361. "svg",
  17362. "tiff",
  17363. ].indexOf(ext) !== -1
  17364. );
  17365. },
  17366. switchVideo(media) {
  17367. this.playerO = {};
  17368. this.playerOptions.poster = "";
  17369. this.playerOptions.sources[0].src = media;
  17370. this.playerO = this.playerOptions;
  17371. },
  17372. onPlayerPlay() {},
  17373. onPlayerTimeupdate(player) {
  17374. let gklog = player.cache_.currentTime; //当前播放的秒数
  17375. let a = player.cache_.duration; //视频的总时长
  17376. let gklog2 = parseInt(gklog);
  17377. // if(gklog2 == '3'){
  17378. // player.pause()
  17379. // setTimeout(()=>{
  17380. // player.currentTime(gklog2+1)
  17381. // player.play()
  17382. // },1000)
  17383. // }
  17384. console.log(" onPlayerTimeupdate!", gklog);
  17385. console.log(" onPlayerTimeupdate!", gklog2);
  17386. },
  17387. lookVedio(u, i) {
  17388. this.isClickNav = "";
  17389. // this.playerOptions.sources[0].src = u;
  17390. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17391. d.sources[0].src = u;
  17392. this.playerO[0] = d;
  17393. this.showType = 0;
  17394. // this.isClickNav = "video" + i;
  17395. this.isClickNav = i;
  17396. this.$forceUpdate();
  17397. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  17398. },
  17399. lookText(i, t) {
  17400. this.isClickNav = "";
  17401. // this.text = this.textList[i][t];
  17402. this.text = this.vChapterData[i][t];
  17403. // this.dialogVisible1 = true;
  17404. this.showType = 1;
  17405. // this.isClickNav = "text" + t;
  17406. this.isClickNav = t;
  17407. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  17408. },
  17409. lookTools(i, t) {
  17410. this.chapTools = this.chapToolList[i][t];
  17411. this.dialogVisible2 = true;
  17412. },
  17413. async openFile(f) {
  17414. this.pptImgUrl = "";
  17415. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17416. if (
  17417. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17418. -1
  17419. ) {
  17420. let _uuurl = await this.checkLink(f);
  17421. console.log(_uuurl)
  17422. this.pptImgUrl =
  17423. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17424. this.showPDF = false;
  17425. this.dialogVisible3 = true;
  17426. } else if (
  17427. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17428. ) {
  17429. this.pptImgUrl = f;
  17430. this.showPDF = true;
  17431. this.dialogVisible3 = true;
  17432. }
  17433. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17434. },
  17435. openTable(f) {
  17436. this.tableJson = JSON.parse(f.works);
  17437. this.dialogVisibleTable2 = true;
  17438. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17439. },
  17440. openWord(f) {
  17441. this.tableJson = JSON.parse(f.works);
  17442. this.dialogVisibleTable3 = true;
  17443. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  17444. },
  17445. doUrl(url, i) {
  17446. this.isClickNav = "";
  17447. this.pptImgUrl1 = "";
  17448. this.showType = 2;
  17449. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17450. url = "https://" + url;
  17451. }
  17452. this.pptImgUrl1 = "";
  17453. setTimeout(() => {
  17454. this.pptImgUrl1 = url;
  17455. }, 500);
  17456. // this.isClickNav = "line" + i;
  17457. this.isClickNav = i;
  17458. this.$forceUpdate();
  17459. },
  17460. checkPhoto(f, i) {
  17461. this.showType = 4;
  17462. this.pptImgUrl1 = f.url;
  17463. this.isClickNav = i;
  17464. this.$forceUpdate();
  17465. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17466. },
  17467. async downFile(f, i) {
  17468. this.isClickNav = "";
  17469. this.pptImgUrl1 = "";
  17470. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17471. if (
  17472. a.indexOf(
  17473. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17474. ) != -1
  17475. ) {
  17476. let _uuurl = await this.checkLink(f.url);
  17477. console.log(_uuurl)
  17478. this.pptImgUrl1 =
  17479. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17480. // this.dialogVisible3 = true;
  17481. this.showType = 2;
  17482. } else if (
  17483. this.isAssetTypeAnImage(
  17484. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17485. )
  17486. ) {
  17487. this.showType = 4;
  17488. this.pptImgUrl1 = f.url;
  17489. } else if (
  17490. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17491. "PDF"
  17492. ) {
  17493. this.pptImgUrl1 = f.url;
  17494. // this.dialogVisible3 = true;
  17495. this.showType = 3;
  17496. } else {
  17497. window.open(this.file[i].url);
  17498. }
  17499. // this.isClickNav = "word" + i;
  17500. this.isClickNav = i;
  17501. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  17502. },
  17503. downFileList(i) {
  17504. window.open(this.noImgList[i].url);
  17505. },
  17506. openAddWork() {
  17507. this.dialogVisible = true;
  17508. },
  17509. addBzWorks() {
  17510. let params = [
  17511. {
  17512. uid: this.userid,
  17513. cid: this.id,
  17514. stage: this.courseType,
  17515. task: this.taskCount,
  17516. tool: this.toolindex,
  17517. content: JSON.stringify(this.eScore),
  17518. type: 6,
  17519. },
  17520. ];
  17521. this.ajax
  17522. .post(this.$store.state.api + "addCourseWorks", params)
  17523. .then((res) => {
  17524. this.$message({
  17525. message: "提交成功",
  17526. type: "success",
  17527. });
  17528. this.eScore = { eBzText: "", eStar: [] };
  17529. this.studentEvalDialogVisible = false;
  17530. this.selectSWorks();
  17531. })
  17532. .catch((err) => {
  17533. this.$message.error("提交失败");
  17534. console.error(err);
  17535. });
  17536. },
  17537. addBzWorksTeacher() {
  17538. let params = [
  17539. {
  17540. uid: this.sStudent.userid,
  17541. cid: this.id,
  17542. stage: this.courseType,
  17543. task: this.taskCount,
  17544. tool: this.toolindex,
  17545. content: JSON.stringify(this.eScore),
  17546. type: 6,
  17547. },
  17548. ];
  17549. this.ajax
  17550. .post(this.$store.state.api + "addCourseWorks", params)
  17551. .then((res) => {
  17552. this.$message({
  17553. message: "提交成功",
  17554. type: "success",
  17555. });
  17556. this.eScore = { eBzText: "", eStar: [] };
  17557. this.studentEvalDialogVisibleTeacher = false;
  17558. this.selectSWorks();
  17559. })
  17560. .catch((err) => {
  17561. this.$message.error("提交失败");
  17562. console.error(err);
  17563. });
  17564. },
  17565. addStudentAsk() {
  17566. if (!this.radio.length) {
  17567. this.$message.error("请选择选项");
  17568. return;
  17569. }
  17570. for (var i = 0; i < this.askJson.askCount; i++) {
  17571. if (
  17572. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17573. (this.radio[i] !== 0 && !this.radio[i])
  17574. ) {
  17575. this.$message.error("请选择选项");
  17576. return;
  17577. }
  17578. }
  17579. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17580. let params = [
  17581. {
  17582. uid: this.userid,
  17583. cid: this.id,
  17584. stage: this.courseType,
  17585. task: this.taskCount,
  17586. tool: this.toolindex,
  17587. content: JSON.stringify(this.askList),
  17588. type: 2,
  17589. },
  17590. ];
  17591. this.ajax
  17592. .post(this.$store.state.api + "addCourseWorks", params)
  17593. .then((res) => {
  17594. this.$message({
  17595. message: "提交成功",
  17596. type: "success",
  17597. });
  17598. this.askList = [];
  17599. this.dialogVisible5 = false;
  17600. this.selectStudent();
  17601. this.selectSWorks();
  17602. this.selectSLook();
  17603. })
  17604. .catch((err) => {
  17605. this.$message.error("提交失败");
  17606. console.error(err);
  17607. });
  17608. },
  17609. addStudentAskTeacher() {
  17610. if (!this.radio.length) {
  17611. this.$message.error("请选择选项");
  17612. return;
  17613. }
  17614. for (var i = 0; i < this.askJson.askCount; i++) {
  17615. if (
  17616. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17617. (this.radio[i] !== 0 && !this.radio[i])
  17618. ) {
  17619. this.$message.error("请选择选项");
  17620. return;
  17621. }
  17622. }
  17623. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17624. let params = [
  17625. {
  17626. uid: this.sStudent.userid,
  17627. cid: this.id,
  17628. stage: this.courseType,
  17629. task: this.taskCount,
  17630. tool: this.toolindex,
  17631. content: JSON.stringify(this.askList),
  17632. type: 2,
  17633. },
  17634. ];
  17635. this.ajax
  17636. .post(this.$store.state.api + "addCourseWorks", params)
  17637. .then((res) => {
  17638. this.$message({
  17639. message: "提交成功",
  17640. type: "success",
  17641. });
  17642. this.askList = [];
  17643. this.dialogVisible5Teacher = false;
  17644. this.selectStudent();
  17645. this.selectSWorks();
  17646. this.selectSLook();
  17647. })
  17648. .catch((err) => {
  17649. this.$message.error("提交失败");
  17650. console.error(err);
  17651. });
  17652. },
  17653. addStudentTest() {
  17654. if (!this.radio.length) {
  17655. this.$message.error("请选择选项");
  17656. return;
  17657. }
  17658. for (var i = 0; i < this.testJson.testCount; i++) {
  17659. if (
  17660. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17661. (this.radio[i] !== 0 && !this.radio[i])
  17662. ) {
  17663. this.$message.error("请选择选项");
  17664. return;
  17665. }
  17666. }
  17667. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17668. let params = [
  17669. {
  17670. uid: this.userid,
  17671. cid: this.id,
  17672. stage: this.courseType,
  17673. task: this.taskCount,
  17674. tool: this.toolindex,
  17675. content: JSON.stringify(this.askList),
  17676. type: 8,
  17677. },
  17678. ];
  17679. this.ajax
  17680. .post(this.$store.state.api + "addCourseWorks", params)
  17681. .then((res) => {
  17682. this.$message({
  17683. message: "提交成功",
  17684. type: "success",
  17685. });
  17686. this.askList = [];
  17687. this.dialogVisibleChoice = false;
  17688. this.selectStudent();
  17689. this.selectSWorks();
  17690. this.selectSLook();
  17691. })
  17692. .catch((err) => {
  17693. this.$message.error("提交失败");
  17694. console.error(err);
  17695. });
  17696. },
  17697. addStudentTestTeacher() {
  17698. if (!this.radio.length) {
  17699. this.$message.error("请选择选项");
  17700. return;
  17701. }
  17702. for (var i = 0; i < this.testJson.testCount; i++) {
  17703. if (
  17704. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17705. (this.radio[i] !== 0 && !this.radio[i])
  17706. ) {
  17707. this.$message.error("请选择选项");
  17708. return;
  17709. }
  17710. }
  17711. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17712. let params = [
  17713. {
  17714. uid: this.sStudent.userid,
  17715. cid: this.id,
  17716. stage: this.courseType,
  17717. task: this.taskCount,
  17718. tool: this.toolindex,
  17719. content: JSON.stringify(this.askList),
  17720. type: 8,
  17721. },
  17722. ];
  17723. this.ajax
  17724. .post(this.$store.state.api + "addCourseWorks", params)
  17725. .then((res) => {
  17726. this.$message({
  17727. message: "提交成功",
  17728. type: "success",
  17729. });
  17730. this.askList = [];
  17731. this.dialogVisibleChoiceTeacher = false;
  17732. this.selectStudent();
  17733. this.selectSWorks();
  17734. this.selectSLook();
  17735. })
  17736. .catch((err) => {
  17737. this.$message.error("提交失败");
  17738. console.error(err);
  17739. });
  17740. },
  17741. addWork() {
  17742. if (this.studyJuri[0].content == "") {
  17743. this.$message.error("请将信息填写完整");
  17744. return;
  17745. } else if (this.studyJuri[0].cover.length == 0) {
  17746. this.$message.error("请将信息填写完整");
  17747. return;
  17748. } else if (this.studyJuri[0].upVedio.length == 0) {
  17749. this.$message.error("请将信息填写完整");
  17750. return;
  17751. }
  17752. if (this.isNoHomeWork) {
  17753. this.$confirm(
  17754. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17755. "提示",
  17756. {
  17757. confirmButtonText: "确定",
  17758. cancelButtonText: "取消",
  17759. type: "warning",
  17760. }
  17761. )
  17762. .then(() => {
  17763. let params = [
  17764. {
  17765. uid: this.userid,
  17766. cid: this.id,
  17767. stage: this.courseType,
  17768. task: this.taskCount,
  17769. content: JSON.stringify(this.studyJuri),
  17770. },
  17771. ];
  17772. this.ajax
  17773. .post(this.$store.state.api + "addWorks", params)
  17774. .then((res) => {
  17775. this.$message({
  17776. message: "提交成功",
  17777. type: "success",
  17778. });
  17779. this.isNoHomeWork = true;
  17780. this.dialogVisible = false;
  17781. })
  17782. .catch((err) => {
  17783. this.$message.error("提交失败");
  17784. console.error(err);
  17785. });
  17786. })
  17787. .catch(() => {});
  17788. } else {
  17789. let params = [
  17790. {
  17791. uid: this.userid,
  17792. cid: this.id,
  17793. stage: this.courseType,
  17794. task: this.taskCount,
  17795. content: JSON.stringify(this.studyJuri),
  17796. },
  17797. ];
  17798. this.ajax
  17799. .post(this.$store.state.api + "addWorks", params)
  17800. .then((res) => {
  17801. this.$message({
  17802. message: "提交成功",
  17803. type: "success",
  17804. });
  17805. this.isNoHomeWork = true;
  17806. this.dialogVisible = false;
  17807. })
  17808. .catch((err) => {
  17809. this.$message.error("提交失败");
  17810. console.error(err);
  17811. });
  17812. }
  17813. },
  17814. selectCount() {
  17815. let params = {
  17816. cid: this.id,
  17817. chid: this.courseType,
  17818. uid: this.userid,
  17819. };
  17820. this.ajax
  17821. .get(this.$store.state.api + "selectToolsCount", params)
  17822. .then((res) => {
  17823. for (var i = 0; i < res.data[0].length; i++) {
  17824. if (res.data[0][i].tools == 1) {
  17825. this.wbCount = res.data[0][i].count;
  17826. } else if (res.data[0][i].tools == 2) {
  17827. this.wordCount = res.data[0][i].count;
  17828. } else if (res.data[0][i].tools == 3) {
  17829. this.mindCount = res.data[0][i].count;
  17830. } else if (res.data[0][i].tools == 4) {
  17831. this.askCount = res.data[0][i].count;
  17832. } else if (res.data[0][i].tools == 6) {
  17833. this.noteCount = res.data[0][i].count;
  17834. } else if (res.data[0][i].tools == 7) {
  17835. this.mindNetWorkCount = res.data[0][i].count;
  17836. } else if (res.data[0][i].tools == 8) {
  17837. this.libraryCount = res.data[0][i].count;
  17838. } else if (res.data[0][i].tools == 16) {
  17839. this.workCount = res.data[0][i].count;
  17840. } else if (res.data[0][i].tools == 10) {
  17841. this.timeCount = res.data[0][i].count;
  17842. } else if (res.data[0][i].tools == 15) {
  17843. this.answerCount = res.data[0][i].count;
  17844. } else if (res.data[0][i].tools == 18) {
  17845. this.trainCount = res.data[0][i].count;
  17846. }
  17847. }
  17848. })
  17849. .catch((err) => {
  17850. console.error(err);
  17851. });
  17852. },
  17853. openTools(t, i, index, c, sName,id) {
  17854. var z = JSON.parse(c);
  17855. this.noteName = sName;
  17856. if (t == 4) {
  17857. this.radio = [];
  17858. this.isAnswer = false;
  17859. let b = z[0].anwer;
  17860. this.radio = b;
  17861. this.askJson = z[0].askJson;
  17862. this.isAnswer = true;
  17863. this.dialogVisible5 = true;
  17864. } else if (t == 45) {
  17865. this.radio = [];
  17866. this.isAnswer = false;
  17867. let b = z[0].anwer;
  17868. this.radio = b;
  17869. this.testJson = z[0].testJson;
  17870. this.isAnswer = true;
  17871. this.dialogVisibleChoice = true;
  17872. }else if(t == 69){
  17873. this.oldEnglishJson1 = {}
  17874. this.oldEnglishJson = {}
  17875. this.englishList1 = {}
  17876. this.newEngIndex = -1;
  17877. this.isNoUserid = false;
  17878. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17879. .toolChoose[i].englishList;
  17880. this.oldEnglishJson = z;
  17881. this.engWid = id;
  17882. this.newEnglishList = { engTitle:"",engText:"" }
  17883. this.newEnglishList1 = []
  17884. this.selectEngC(id,z);
  17885. }else if(t == 62){
  17886. this.videoType = 1;
  17887. this.videoJson = {};
  17888. this.videoJson = JSON.parse(c);
  17889. // this.videoJson =
  17890. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17891. // index
  17892. // ].toolChoose[i].videoJson;
  17893. this.dialogVisibleVideo = true;
  17894. }
  17895. // else if (t == 15) {
  17896. // this.answerQ = "";
  17897. // this.questionAnswer = "";
  17898. // this.answerQ = z[0].answerTitle;
  17899. // this.questionAnswer = z[0].answer;
  17900. // this.answerDialogVisible = true;
  17901. // }
  17902. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  17903. },
  17904. fastText(p, t) {
  17905. if (t == 1) {
  17906. this.commentText += p;
  17907. } else {
  17908. this.eScore.eBzText += p;
  17909. }
  17910. },
  17911. addTools(t, i, index) {
  17912. var a = 0;
  17913. // this.taskCount = index;
  17914. this.toolindex = i;
  17915. if (t == 1) {
  17916. if (this.wbCount > 0) {
  17917. this.updateCount(this.wbCount, t);
  17918. } else {
  17919. this.wbCount++;
  17920. a = this.wbCount;
  17921. this.toolsCount(a, t);
  17922. }
  17923. window.parent.postMessage(
  17924. {
  17925. tools: "1",
  17926. cid: this.id,
  17927. stage: this.courseType,
  17928. task: this.taskCount,
  17929. tool: i,
  17930. },
  17931. "*"
  17932. );
  17933. } else if (t == 2) {
  17934. if (this.wordCount > 0) {
  17935. this.updateCount(this.wordCount, t);
  17936. } else {
  17937. this.wordCount++;
  17938. a = this.wordCount;
  17939. this.toolsCount(a, t);
  17940. }
  17941. window.parent.postMessage({ tools: "2" }, "*");
  17942. } else if (t == 3) {
  17943. if (this.mindCount > 0) {
  17944. this.updateCount(this.mindCount, t);
  17945. } else {
  17946. this.mindCount++;
  17947. a = this.mindCount;
  17948. this.toolsCount(a, t);
  17949. }
  17950. window.parent.postMessage(
  17951. {
  17952. tools: "3",
  17953. cid: this.id,
  17954. stage: this.courseType,
  17955. task: this.taskCount,
  17956. tool: i,
  17957. },
  17958. "*"
  17959. );
  17960. } else if (t == 4) {
  17961. this.radio = [];
  17962. this.noteName = "";
  17963. this.isAnswer = false;
  17964. if (this.askCount > 0) {
  17965. this.updateCount(this.askCount, t);
  17966. } else {
  17967. this.askCount++;
  17968. a = this.askCount;
  17969. this.toolsCount(a, t);
  17970. }
  17971. if (!this.dialogVisible2) {
  17972. this.askJson.askJson =
  17973. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17974. index
  17975. ].toolChoose[i].askJson;
  17976. this.askJson.askTitle =
  17977. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17978. index
  17979. ].toolChoose[i].askTitle;
  17980. this.askJson.askCount =
  17981. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17982. index
  17983. ].toolChoose[i].askCount;
  17984. } else {
  17985. this.askJson.askJson = this.chapTools.askJson.askJson;
  17986. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17987. this.askJson.askCount = this.chapTools.askJson.askCount;
  17988. }
  17989. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17990. if (this.askJson.askJson[k].type == "2") {
  17991. this.radio.push([]);
  17992. } else {
  17993. this.radio.push("");
  17994. }
  17995. }
  17996. this.dialogVisible5 = true;
  17997. // window.parent.postMessage({ tools: "4" }, "*");
  17998. } else if (t == 45) {
  17999. this.noteName = "";
  18000. this.radio = [];
  18001. this.isAnswer = false;
  18002. if (this.askCount > 0) {
  18003. this.updateCount(this.askCount, t);
  18004. } else {
  18005. this.askCount++;
  18006. a = this.askCount;
  18007. this.toolsCount(a, t);
  18008. }
  18009. this.testJson =
  18010. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18011. index
  18012. ].toolChoose[i].testJson;
  18013. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18014. if (this.testJson.testJson[k].type == "2") {
  18015. this.radio.push([]);
  18016. } else {
  18017. this.radio.push("");
  18018. }
  18019. }
  18020. this.dialogVisibleChoice = true;
  18021. // window.parent.postMessage({ tools: "4" }, "*");
  18022. } else if (t == 5) {
  18023. if (this.scoreCount > 0) {
  18024. this.updateCount(this.scoreCount, t);
  18025. } else {
  18026. this.scoreCount++;
  18027. a = this.scoreCount;
  18028. this.toolsCount(a, t);
  18029. }
  18030. this.dialogVisible4 = true;
  18031. // window.parent.postMessage({ tools: "5" }, "*");
  18032. } else if (t == 6) {
  18033. if (this.noteCount > 0) {
  18034. this.updateCount(this.noteCount, t);
  18035. } else {
  18036. this.noteCount++;
  18037. a = this.noteCount;
  18038. this.toolsCount(a, t);
  18039. }
  18040. window.parent.postMessage(
  18041. {
  18042. tools: "6",
  18043. cid: this.id,
  18044. stage: this.courseType,
  18045. task: this.taskCount,
  18046. tool: i,
  18047. },
  18048. "*"
  18049. );
  18050. } else if (t == 7) {
  18051. if (this.mindNetWorkCount > 0) {
  18052. this.updateCount(this.mindNetWorkCount, t);
  18053. } else {
  18054. this.mindNetWorkCount++;
  18055. a = this.mindNetWorkCount;
  18056. this.toolsCount(a, t);
  18057. }
  18058. window.parent.postMessage(
  18059. {
  18060. tools: "7",
  18061. cid: this.id,
  18062. stage: this.courseType,
  18063. task: this.taskCount,
  18064. tool: i,
  18065. },
  18066. "*"
  18067. );
  18068. } else if (t == 16) {
  18069. if (this.workCount > 0) {
  18070. this.updateCount(this.workCount, t);
  18071. } else {
  18072. this.workCount++;
  18073. a = this.workCount;
  18074. this.toolsCount(a, t);
  18075. }
  18076. this.dialogVisible = true;
  18077. } else if (t == 50) {
  18078. if (this.tType == 2) {
  18079. this.$message.error("不支持学生使用");
  18080. return;
  18081. }
  18082. this.plworkFile = [];
  18083. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18084. if (!this.uploadCid) {
  18085. this.$message.error(
  18086. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18087. );
  18088. return;
  18089. }
  18090. // this.uploadCid =
  18091. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18092. // index
  18093. // ].toolChoose[i].uploadJson[0];
  18094. this.selectUploadStudent(2);
  18095. } else if (t == 8) {
  18096. if (this.libraryCount > 0) {
  18097. this.updateCount(this.libraryCount, t);
  18098. } else {
  18099. this.libraryCount++;
  18100. a = this.libraryCount;
  18101. this.toolsCount(a, t);
  18102. }
  18103. window.parent.postMessage({ tools: "8" }, "*");
  18104. } else if (t == 17) {
  18105. if (this.libraryCount > 0) {
  18106. this.updateCount(this.libraryCount, t);
  18107. } else {
  18108. this.libraryCount++;
  18109. a = this.libraryCount;
  18110. this.toolsCount(a, t);
  18111. }
  18112. window.parent.postMessage({ tools: "17" }, "*");
  18113. } else if (t == 18) {
  18114. if (this.trainCount > 0) {
  18115. this.updateCount(this.trainCount, t);
  18116. } else {
  18117. this.trainCount++;
  18118. a = this.trainCount;
  18119. this.toolsCount(a, t);
  18120. }
  18121. window.parent.postMessage({ tools: "18" }, "*");
  18122. } else if (t == 10) {
  18123. if (this.timeCount > 0) {
  18124. this.updateCount(this.timeCount, t);
  18125. } else {
  18126. this.timeCount++;
  18127. a = this.timeCount;
  18128. this.toolsCount(a, t);
  18129. }
  18130. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18131. .taskJson[index].toolChoose[i].preTime
  18132. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18133. .toolChoose[i].preTime
  18134. : "";
  18135. this.timeDialogVisible = true;
  18136. } else if (t == 15) {
  18137. this.answerQ = "";
  18138. this.questionAnswer = "";
  18139. if (this.answerCount > 0) {
  18140. this.updateCount(this.answerCount, t);
  18141. } else {
  18142. this.answerCount++;
  18143. a = this.answerCount;
  18144. this.toolsCount(a, t);
  18145. }
  18146. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18147. .taskJson[index].toolChoose[i].answerQ
  18148. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18149. .toolChoose[i].answerQ
  18150. : "";
  18151. this.answerDialogVisible = true;
  18152. } else if (t == 21) {
  18153. window.parent.postMessage({ tools: "21" }, "*");
  18154. } else if (t == 22) {
  18155. window.parent.postMessage({ tools: "22" }, "*");
  18156. } else if (t == 23) {
  18157. window.parent.postMessage({ tools: "23" }, "*");
  18158. } else if (t == 24) {
  18159. window.parent.postMessage({ tools: "24" }, "*");
  18160. } else if (t == 25) {
  18161. window.parent.postMessage({ tools: "25" }, "*");
  18162. } else if (t == 31) {
  18163. window.parent.postMessage({ tools: "31" }, "*");
  18164. } else if (t == 28) {
  18165. window.parent.postMessage({ tools: "28" }, "*");
  18166. } else if (t == 37) {
  18167. window.parent.postMessage({ tools: "37" }, "*");
  18168. } else if (t == 38) {
  18169. window.parent.postMessage({ tools: "38" }, "*");
  18170. } else if (t == 39) {
  18171. window.parent.postMessage({ tools: "39" }, "*");
  18172. } else if (t == 32) {
  18173. window.parent.postMessage({ tools: "32" }, "*");
  18174. } else if (t == 66) {
  18175. window.parent.postMessage({ tools: "66" }, "*");
  18176. } else if (t == 67) {
  18177. window.parent.postMessage({ tools: "67" }, "*");
  18178. } else if (t == 68) {
  18179. window.parent.postMessage({ tools: "68" }, "*");
  18180. } else if (t == 57) {
  18181. // window.parent.postMessage({ tools: "57" }, "*");
  18182. window.parent.postMessage(
  18183. {
  18184. tools: "57u",
  18185. cid: this.id,
  18186. stage: this.courseType,
  18187. task: this.taskCount,
  18188. tool: i,
  18189. },
  18190. "*"
  18191. );
  18192. } else if (t == 58) {
  18193. window.parent.postMessage({ tools: "58" }, "*");
  18194. } else if (t == 59) {
  18195. window.parent.postMessage({ tools: "59" }, "*");
  18196. } else if (t == 60) {
  18197. window.parent.postMessage({ tools: "60" }, "*");
  18198. } else if (t == 61) {
  18199. window.parent.postMessage({ tools: "61" }, "*");
  18200. } else if (t == 63) {
  18201. window.parent.postMessage({ tools: "63" }, "*");
  18202. } else if (t == 71) {
  18203. window.parent.postMessage({ tools: "71" }, "*");
  18204. } else if (t == 69) {
  18205. if (this.worksStudent[i].length) {
  18206. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18207. if (this.userid == this.worksStudent[i][k].userid) {
  18208. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18209. break;
  18210. } else {
  18211. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18212. }
  18213. }
  18214. } else {
  18215. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18216. }
  18217. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18218. .taskJson[index].toolChoose[i].englishList
  18219. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18220. .toolChoose[i].englishList
  18221. : {};
  18222. this.englishToolIndex = i;
  18223. this.myAnList = this.myAnswerList1;
  18224. this.engDialogVisible = true;
  18225. } else if (t == 70) {
  18226. if (this.worksStudent[i].length) {
  18227. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18228. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18229. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18230. break;
  18231. } else {
  18232. this.englishVoiceJsonWork = [];
  18233. }
  18234. }
  18235. } else {
  18236. this.englishVoiceJsonWork = [];
  18237. }
  18238. let englishVoiceJson = {}
  18239. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18240. .taskJson[index].toolChoose[i].englishVoiceJson
  18241. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18242. .toolChoose[i].englishVoiceJson
  18243. : {};
  18244. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18245. this.EnglishVoiceDialog = true;
  18246. } else if (t == 65) {
  18247. if (this.tType == 2) {
  18248. this.$message.error("不支持学生使用");
  18249. return;
  18250. }
  18251. this.uploadCid = this.tcid;
  18252. if (!this.uploadCid) {
  18253. this.$message.error(
  18254. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18255. );
  18256. return;
  18257. }
  18258. this.selectPickStudent();
  18259. } else if (t == 26) {
  18260. window.parent.postMessage(
  18261. {
  18262. tools: "26",
  18263. cid: this.id,
  18264. stage: this.courseType,
  18265. task: this.taskCount,
  18266. tool: i,
  18267. },
  18268. "*"
  18269. );
  18270. } else if (t == 40) {
  18271. if (this.evalCount > 0) {
  18272. this.updateCount(this.evalCount, t);
  18273. } else {
  18274. this.evalCount++;
  18275. a = this.evalCount;
  18276. this.toolsCount(a, t);
  18277. }
  18278. this.eScore = { eBzText: "", eStar: [] };
  18279. if (this.worksStudent[i].length) {
  18280. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18281. if (this.userid == this.worksStudent[i][k].userid) {
  18282. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18283. this.rateJson =
  18284. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18285. index
  18286. ].toolChoose[i].rateJson;
  18287. break;
  18288. } else {
  18289. this.rateJson =
  18290. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18291. index
  18292. ].toolChoose[i].rateJson;
  18293. }
  18294. }
  18295. } else {
  18296. this.rateJson =
  18297. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18298. index
  18299. ].toolChoose[i].rateJson;
  18300. }
  18301. this.isStar = false;
  18302. this.studentEvalDialogVisible = true;
  18303. } else if (t == 41) {
  18304. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18305. .taskJson[index].toolChoose[i].selectJson
  18306. ? JSON.parse(
  18307. JSON.stringify(
  18308. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18309. index
  18310. ].toolChoose[i].selectJson
  18311. )
  18312. )
  18313. : { url: "", select: [], answer: [] };
  18314. if (this.worksStudent[i].length) {
  18315. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18316. if (this.userid == this.worksStudent[i][k].userid) {
  18317. var a = this.worksStudent[i][k].works.split(",");
  18318. for (var ki = 0; ki < a.length; ki++) {
  18319. a[ki] = parseInt(a[ki]);
  18320. }
  18321. this.selectAnswer = {
  18322. answer: a,
  18323. stu: this.worksStudent[i][k].sName,
  18324. };
  18325. break;
  18326. } else {
  18327. this.selectAnswer = { answer: [], stu: "" };
  18328. }
  18329. }
  18330. } else {
  18331. this.selectAnswer = { answer: [], stu: "" };
  18332. }
  18333. this.isSelect = false;
  18334. this.dialogVisibleSelect = true;
  18335. } else if (t == 44) {
  18336. window.parent.postMessage({ tools: "44" }, "*");
  18337. } else if (t == 47) {
  18338. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18339. .taskJson[index].toolChoose[i].sentenceList
  18340. ? JSON.parse(
  18341. JSON.stringify(
  18342. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18343. index
  18344. ].toolChoose[i].sentenceList
  18345. )
  18346. )
  18347. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18348. for (var q = 0; q < this.sentenceList.length; q++) {
  18349. this.sentenceList[q].chooseSenList = [];
  18350. this.sentenceList[q].addChangeSen = [];
  18351. this.sentenceList[q].addChangeSen = JSON.parse(
  18352. JSON.stringify(this.sentenceList[q].addSentence)
  18353. );
  18354. this.sentenceList[q].chooseSenList.length =
  18355. this.sentenceList[q].rightAnswer.length;
  18356. }
  18357. this.dialogVisibleSentence = true;
  18358. } else if (t == 48) {
  18359. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18360. .taskJson[index].toolChoose[i].tableJson
  18361. ? JSON.parse(
  18362. JSON.stringify(
  18363. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18364. index
  18365. ].toolChoose[i].tableJson
  18366. )
  18367. )
  18368. : { text: "" };
  18369. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18370. if (this.worksStudent[i].length) {
  18371. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18372. if (this.userid == this.worksStudent[i][k].userid) {
  18373. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18374. break;
  18375. }
  18376. }
  18377. }
  18378. this.dialogVisibleTable = true;
  18379. } else if (t == 52) {
  18380. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18381. .taskJson[index].toolChoose[i].wordJson
  18382. ? JSON.parse(
  18383. JSON.stringify(
  18384. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18385. index
  18386. ].toolChoose[i].wordJson
  18387. )
  18388. )
  18389. : { text: "" };
  18390. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18391. if (this.worksStudent[i].length) {
  18392. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18393. if (this.userid == this.worksStudent[i][k].userid) {
  18394. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18395. break;
  18396. }
  18397. }
  18398. }
  18399. this.dialogVisibleWord = true;
  18400. } else if (t == 49) {
  18401. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18402. return
  18403. }
  18404. this.groupJson =
  18405. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18406. index
  18407. ].toolChoose[i].groupJson;
  18408. this.islock = this.groupJson.islock == 1 ? true : false;
  18409. this.dialogVisibleGroup = true;
  18410. } else if (t == 62) {
  18411. this.videoType = 0;
  18412. this.videoJson = {};
  18413. this.videoJson =
  18414. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18415. index
  18416. ].toolChoose[i].videoJson;
  18417. this.dialogVisibleVideo = true;
  18418. }
  18419. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  18420. },
  18421. teacherWorkSubmit(t, i, index, s) {
  18422. this.sStudent = s;
  18423. this.toolindex = i;
  18424. this.sTool = t;
  18425. if (this.tType !== "1" && this.tType !== "4") {
  18426. return;
  18427. }
  18428. if (t == 16 || t == 32 || t == 50) {
  18429. this.dialogVisibleWorks = true;
  18430. } else if (t == 15) {
  18431. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18432. .taskJson[index].toolChoose[i].answerQ
  18433. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18434. .toolChoose[i].answerQ
  18435. : "";
  18436. this.questionAnswer = "";
  18437. this.answerDialogVisibleTeacher = true; //问答
  18438. } else if (t == 52) {
  18439. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18440. .taskJson[index].toolChoose[i].wordJson
  18441. ? JSON.parse(
  18442. JSON.stringify(
  18443. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18444. index
  18445. ].toolChoose[i].wordJson
  18446. )
  18447. )
  18448. : { text: "" };
  18449. if (this.worksStudent[i].length) {
  18450. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18451. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18452. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18453. break;
  18454. }
  18455. }
  18456. }
  18457. this.dialogVisibleWordTeacher = true; //文档
  18458. } else if (t == 4) {
  18459. this.radio = [];
  18460. this.noteName = "";
  18461. this.isAnswer = false;
  18462. if (this.askCount > 0) {
  18463. this.updateCount(this.askCount, t);
  18464. } else {
  18465. this.askCount++;
  18466. a = this.askCount;
  18467. this.toolsCount(a, t);
  18468. }
  18469. if (!this.dialogVisible2) {
  18470. this.askJson.askJson =
  18471. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18472. index
  18473. ].toolChoose[i].askJson;
  18474. this.askJson.askTitle =
  18475. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18476. index
  18477. ].toolChoose[i].askTitle;
  18478. this.askJson.askCount =
  18479. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18480. index
  18481. ].toolChoose[i].askCount;
  18482. } else {
  18483. this.askJson.askJson = this.chapTools.askJson.askJson;
  18484. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18485. this.askJson.askCount = this.chapTools.askJson.askCount;
  18486. }
  18487. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18488. if (this.askJson.askJson[k].type == "2") {
  18489. this.radio.push([]);
  18490. } else {
  18491. this.radio.push("");
  18492. }
  18493. }
  18494. this.dialogVisible5Teacher = true;
  18495. } else if (t == 45) {
  18496. this.noteName = "";
  18497. this.radio = [];
  18498. this.isAnswer = false;
  18499. if (this.askCount > 0) {
  18500. this.updateCount(this.askCount, t);
  18501. } else {
  18502. this.askCount++;
  18503. a = this.askCount;
  18504. this.toolsCount(a, t);
  18505. }
  18506. this.testJson =
  18507. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18508. index
  18509. ].toolChoose[i].testJson;
  18510. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18511. if (this.testJson.testJson[k].type == "2") {
  18512. this.radio.push([]);
  18513. } else {
  18514. this.radio.push("");
  18515. }
  18516. }
  18517. this.dialogVisibleChoiceTeacher = true;
  18518. } else if (t == 41) {
  18519. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18520. .taskJson[index].toolChoose[i].selectJson
  18521. ? JSON.parse(
  18522. JSON.stringify(
  18523. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18524. index
  18525. ].toolChoose[i].selectJson
  18526. )
  18527. )
  18528. : { url: "", select: [], answer: [] };
  18529. if (this.worksStudent[i].length) {
  18530. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18531. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18532. var a = this.worksStudent[i][k].works.split(",");
  18533. for (var ki = 0; ki < a.length; ki++) {
  18534. a[ki] = parseInt(a[ki]);
  18535. }
  18536. this.selectAnswer = {
  18537. answer: a,
  18538. stu: this.worksStudent[i][k].sName,
  18539. };
  18540. break;
  18541. } else {
  18542. this.selectAnswer = { answer: [], stu: "" };
  18543. }
  18544. }
  18545. } else {
  18546. this.selectAnswer = { answer: [], stu: "" };
  18547. }
  18548. this.isSelect = false;
  18549. this.dialogVisibleSelectTeacher = true;
  18550. } else if (t == 47) {
  18551. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18552. .taskJson[index].toolChoose[i].sentenceList
  18553. ? JSON.parse(
  18554. JSON.stringify(
  18555. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18556. index
  18557. ].toolChoose[i].sentenceList
  18558. )
  18559. )
  18560. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18561. for (var q = 0; q < this.sentenceList.length; q++) {
  18562. this.sentenceList[q].chooseSenList = [];
  18563. this.sentenceList[q].addChangeSen = [];
  18564. this.sentenceList[q].addChangeSen = JSON.parse(
  18565. JSON.stringify(this.sentenceList[q].addSentence)
  18566. );
  18567. this.sentenceList[q].chooseSenList.length =
  18568. this.sentenceList[q].rightAnswer.length;
  18569. }
  18570. this.dialogVisibleSentenceTeacher = true;
  18571. } else if (t == 48) {
  18572. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18573. .taskJson[index].toolChoose[i].tableJson
  18574. ? JSON.parse(
  18575. JSON.stringify(
  18576. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18577. index
  18578. ].toolChoose[i].tableJson
  18579. )
  18580. )
  18581. : { text: "" };
  18582. if (this.worksStudent[i].length) {
  18583. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18584. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18585. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18586. break;
  18587. }
  18588. }
  18589. }
  18590. this.dialogVisibleTableTeacher = true;
  18591. } else if (t == 40) {
  18592. if (this.evalCount > 0) {
  18593. this.updateCount(this.evalCount, t);
  18594. } else {
  18595. this.evalCount++;
  18596. a = this.evalCount;
  18597. this.toolsCount(a, t);
  18598. }
  18599. this.eScore = { eBzText: "", eStar: [] };
  18600. if (this.worksStudent[i].length) {
  18601. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18602. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18603. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18604. this.rateJson =
  18605. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18606. index
  18607. ].toolChoose[i].rateJson;
  18608. break;
  18609. } else {
  18610. this.rateJson =
  18611. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18612. index
  18613. ].toolChoose[i].rateJson;
  18614. }
  18615. }
  18616. } else {
  18617. this.rateJson =
  18618. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18619. index
  18620. ].toolChoose[i].rateJson;
  18621. }
  18622. this.isStar = false;
  18623. this.studentEvalDialogVisibleTeacher = true;
  18624. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18625. window.parent.postMessage(
  18626. {
  18627. tools: t + "teacher",
  18628. cid: this.id,
  18629. stage: this.courseType,
  18630. task: this.taskCount,
  18631. tool: i,
  18632. student: this.sStudent,
  18633. },
  18634. "*"
  18635. );
  18636. }
  18637. },
  18638. openCocoPi(tool, i, uid, uname) {
  18639. let student = {
  18640. userid: uid,
  18641. student: uname,
  18642. };
  18643. if (tool == 57) {
  18644. window.parent.postMessage(
  18645. {
  18646. tools: tool + "teacher",
  18647. cid: this.id,
  18648. stage: this.courseType,
  18649. task: this.taskCount,
  18650. tool: i,
  18651. student: student,
  18652. },
  18653. "*"
  18654. );
  18655. }
  18656. },
  18657. setRightAnswer(s, i, j) {
  18658. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18659. if (
  18660. this.sentenceList[i].chooseSenList[q] == undefined ||
  18661. this.sentenceList[i].chooseSenList[q] == ""
  18662. ) {
  18663. this.sentenceList[i].chooseSenList[q] = s;
  18664. this.sentenceList[i].addChangeSen[j] = "";
  18665. break;
  18666. }
  18667. }
  18668. this.$forceUpdate();
  18669. },
  18670. returnCard(r, i, j) {
  18671. var a = this.sentenceList[i].addSentence.indexOf(r);
  18672. this.sentenceList[i].chooseSenList[j] = "";
  18673. this.sentenceList[i].addChangeSen[a] = r;
  18674. this.$forceUpdate();
  18675. },
  18676. // addSentenceTool() {
  18677. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18678. // this.taskCount
  18679. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18680. // this.sentenceList = [
  18681. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18682. // ];
  18683. // this.dialogVisibleSentence = false;
  18684. // },
  18685. toolsCount(a, t) {
  18686. let params = {
  18687. cid: this.id,
  18688. chid: this.courseType,
  18689. uid: this.userid,
  18690. tid: t,
  18691. count: a,
  18692. };
  18693. this.ajax
  18694. .get(this.$store.state.api + "insertToolsCount", params)
  18695. .then((res) => {
  18696. this.selectCount();
  18697. })
  18698. .catch((err) => {
  18699. console.error(err);
  18700. });
  18701. },
  18702. updateCount(c, t) {
  18703. c++;
  18704. let params = {
  18705. cid: this.id,
  18706. chid: this.courseType,
  18707. uid: this.userid,
  18708. tid: t,
  18709. count: c,
  18710. };
  18711. this.ajax
  18712. .get(this.$store.state.api + "updateToolsCount", params)
  18713. .then((res) => {
  18714. this.selectCount();
  18715. })
  18716. .catch((err) => {
  18717. console.error(err);
  18718. });
  18719. },
  18720. checkEva() {
  18721. if (this.evalua != "") {
  18722. for (var i = 0; i < this.evaJuri.length; i++) {
  18723. if (this.evalua == this.evaJuri[i].id) {
  18724. this.eTitle = this.evaJuri[i].title;
  18725. this.eJson = JSON.parse(this.evaJuri[i].content);
  18726. }
  18727. }
  18728. this.$forceUpdate();
  18729. setTimeout(() => {
  18730. this.setMindData();
  18731. }, 0);
  18732. }
  18733. },
  18734. selectEva() {
  18735. let params = {
  18736. oid: this.oid,
  18737. };
  18738. this.ajax
  18739. .get(this.$store.state.api + "selectAllEvaluation", params)
  18740. .then((res) => {
  18741. this.evaJuri = res.data[0];
  18742. })
  18743. .catch((err) => {
  18744. console.error(err);
  18745. });
  18746. },
  18747. setMindData() {
  18748. this.data.data = [];
  18749. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18750. let _eJson = Object.keys(this.eJson);
  18751. let _e = this.eJson;
  18752. for (let i = 0; i < _eJson.length; i++) {
  18753. let element = _e[_eJson[i]];
  18754. this.data.data.push({
  18755. id: element.id,
  18756. parentid: "root",
  18757. topic: element.name,
  18758. });
  18759. let _eJsonc = Object.keys(element.child);
  18760. let _e2 = element.child;
  18761. for (let j = 0; j < _eJsonc.length; j++) {
  18762. let _ec = _e2[_eJsonc[j]];
  18763. this.data.data.push({
  18764. id: _ec.id,
  18765. parentid: element.id,
  18766. topic: _ec.name,
  18767. });
  18768. let _eJsonz = Object.keys(_ec.child);
  18769. let _e3 = _ec.child;
  18770. for (let z = 0; z < _eJsonz.length; z++) {
  18771. let _ez = _e3[_eJsonz[z]];
  18772. this.data.data.push({
  18773. id: _ez.id,
  18774. parentid: _ec.id,
  18775. topic: _ez.name,
  18776. });
  18777. }
  18778. }
  18779. }
  18780. this.$forceUpdate();
  18781. },
  18782. checkFileFull(type, url) {
  18783. this.fullDialogVisible = true;
  18784. this.fulltype = type;
  18785. this.fullUrl = url;
  18786. },
  18787. async checkFileFull1(t, f) {
  18788. this.fullDialogVisible = true;
  18789. if (t == 6) {
  18790. this.fulltype = 1;
  18791. this.fullUrl = JSON.parse(JSON.stringify(f));
  18792. } else if (t == 8) {
  18793. this.fulltype = 2;
  18794. this.fullUrl = f.url;
  18795. } else if (
  18796. t == 3 &&
  18797. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18798. "PDF"
  18799. ) {
  18800. this.fulltype = 3;
  18801. this.fullUrl = f.url;
  18802. } else if (t == 3) {
  18803. this.fulltype = 2;
  18804. let _uuurl = await this.checkLink(f.url);
  18805. console.log(_uuurl)
  18806. this.fullUrl =
  18807. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18808. }
  18809. },
  18810. openSname(n, id, i, uid) {
  18811. this.snameWid = id;
  18812. this.worksSName = n;
  18813. this.worksSid = uid == n ? "" : uid;
  18814. this.toolindex = i;
  18815. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18816. if (!this.uploadCid) {
  18817. this.$message.error(
  18818. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18819. );
  18820. return;
  18821. }
  18822. this.selectUploadStudent(1);
  18823. },
  18824. updateName() {
  18825. let params = {
  18826. n: this.worksSName,
  18827. cid: this.snameWid,
  18828. };
  18829. this.ajax
  18830. .get(this.$store.state.api + "updateCourseWorksName", params)
  18831. .then((res) => {
  18832. this.$message({
  18833. message: "修改成功",
  18834. type: "success",
  18835. });
  18836. this.dialogVisibleSname = false;
  18837. this.getCourseDetail(2);
  18838. this.snameWid = "";
  18839. this.worksSName = "";
  18840. })
  18841. .catch((err) => {
  18842. console.error(err);
  18843. });
  18844. },
  18845. downloadFile2(f) {
  18846. // const loading = this.$loading.service({
  18847. // background: "rgba(255, 255, 255, 0.7)",
  18848. // target: document.body,
  18849. // text: "文件加载中...",
  18850. // });
  18851. // let url2 = f.url;
  18852. // let _url2 = "";
  18853. // if (
  18854. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18855. // ) {
  18856. // _url2 = url2.split(
  18857. // "https://view.officeapps.live.com/op/view.aspx?src="
  18858. // )[1];
  18859. // } else {
  18860. // _url2 = url2;
  18861. // }
  18862. // let params = {
  18863. // url: _url2,
  18864. // name: f.name,
  18865. // };
  18866. // this.ajax
  18867. // .get(this.$store.state.api + "download", params)
  18868. // .then((res) => {
  18869. // loading.close();
  18870. // let content = res.data.data.data;
  18871. // let ab = new ArrayBuffer(content.length);
  18872. // let view = new Uint8Array(ab);
  18873. // for (var i = 0; i < content.length; ++i) {
  18874. // view[i] = content[i];
  18875. // }
  18876. // let elink = document.createElement("a");
  18877. // elink.download = f.name;
  18878. // elink.style.display = "none";
  18879. // let blob = new Blob([ab], {
  18880. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18881. // });
  18882. // elink.href = URL.createObjectURL(blob);
  18883. // document.body.appendChild(elink);
  18884. // elink.click();
  18885. // document.body.removeChild(elink);
  18886. // })
  18887. // .catch((err) => {
  18888. // loading.close();
  18889. // console.error(err);
  18890. // });
  18891. var credentials = {
  18892. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18893. secretAccessKey: "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",
  18894. }; //秘钥形式的登录上传
  18895. window.AWS.config.update(credentials);
  18896. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18897. let url2 = f.url;
  18898. let _url2 = "";
  18899. if (
  18900. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18901. ) {
  18902. _url2 = url2.split(
  18903. "https://view.officeapps.live.com/op/view.aspx?src="
  18904. )[1];
  18905. } else {
  18906. _url2 = url2;
  18907. }
  18908. let _this = this;
  18909. _this.downLoading = true
  18910. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18911. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18912. var params = {
  18913. Bucket: "ccrb",
  18914. Key: name
  18915. };
  18916. s3.getObject(params, function (err, data) {
  18917. _this.downLoading = false
  18918. if (err) console.log(err, err.stack); // an error occurred
  18919. else {
  18920. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18921. let a = document.createElement("a");
  18922. a.name = f.name;
  18923. a.href = url;
  18924. a.download = f.name;
  18925. a.click();
  18926. console.log(data);
  18927. } // sxuccessful response
  18928. });
  18929. return;
  18930. let url = f.url;
  18931. let _url = "";
  18932. if (
  18933. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18934. ) {
  18935. _url = url.split(
  18936. "https://view.officeapps.live.com/op/view.aspx?src="
  18937. )[1];
  18938. } else {
  18939. _url = url;
  18940. }
  18941. _this.downLoading = true
  18942. // const loading = _this.$loading.service({
  18943. // background: "rgba(255, 255, 255, 0.7)",
  18944. // target: document.body,
  18945. // text: "文件加载中...",
  18946. // });
  18947. let x = new XMLHttpRequest();
  18948. x.open("GET", _url, true);
  18949. x.responseType = "blob";
  18950. x.onload = function () {
  18951. _this.downLoading = false
  18952. // loading.close();
  18953. let url = window.URL.createObjectURL(new Blob([x.response]));
  18954. let a = document.createElement("a");
  18955. a.name = f.name;
  18956. a.href = url;
  18957. a.download = f.name;
  18958. a.click();
  18959. };
  18960. x.send();
  18961. },
  18962. downloadFile(url) {
  18963. var credentials = {
  18964. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18965. secretAccessKey: "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",
  18966. }; //秘钥形式的登录上传
  18967. window.AWS.config.update(credentials);
  18968. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18969. let url2 = url;
  18970. let _url2 = "";
  18971. if (
  18972. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18973. ) {
  18974. _url2 = url2.split(
  18975. "https://view.officeapps.live.com/op/view.aspx?src="
  18976. )[1];
  18977. } else {
  18978. _url2 = url2;
  18979. }
  18980. const loading2 = this.$loading.service({
  18981. background: "rgba(255, 255, 255, 0.7)",
  18982. target: document.body,
  18983. text: "文件加载中...",
  18984. });
  18985. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18986. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18987. var params = {
  18988. Bucket: "ccrb",
  18989. Key: name
  18990. };
  18991. s3.getObject(params, function (err, data) {
  18992. loading2.close();
  18993. if (err) console.log(err, err.stack); // an error occurred
  18994. else {
  18995. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18996. let a = document.createElement("a");
  18997. a.name = name;
  18998. a.href = url;
  18999. a.download = name;
  19000. a.click();
  19001. console.log(data);
  19002. } // sxuccessful response
  19003. });
  19004. return;
  19005. let _this = this;
  19006. let _url = "";
  19007. if (
  19008. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19009. ) {
  19010. _url = url.split(
  19011. "https://view.officeapps.live.com/op/view.aspx?src="
  19012. )[1];
  19013. } else {
  19014. _url = url;
  19015. }
  19016. const x = new XMLHttpRequest();
  19017. x.open("GET", _url, true);
  19018. x.responseType = "blob";
  19019. // this.downLoading = true
  19020. const loading = _this.$loading.service({
  19021. background: "rgba(255, 255, 255, 0.7)",
  19022. target: document.body,
  19023. text: "文件加载中...",
  19024. });
  19025. // _this.$message.success("文件下载中...");
  19026. x.onload = function (e) {
  19027. this.downLoading = false
  19028. loading.close();
  19029. let content = x.response;
  19030. let elink = document.createElement("a");
  19031. elink.download = decodeURI(
  19032. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19033. );
  19034. elink.style.display = "none";
  19035. let blob = new Blob([content]);
  19036. elink.href = URL.createObjectURL(blob);
  19037. document.body.appendChild(elink);
  19038. elink.click();
  19039. document.body.removeChild(elink);
  19040. };
  19041. x.send();
  19042. },
  19043. openLine(url) {
  19044. window.open(url);
  19045. },
  19046. resize() {
  19047. if (document.getElementsByClassName("box_course").length) {
  19048. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19049. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19050. if (this.showType == 2 || this.showType == 3) {
  19051. document.getElementsByClassName("navBox")[0].style.height =
  19052. a - 40 + 0+ "px";
  19053. } else {
  19054. document.getElementsByClassName("navBox")[0].style.height =
  19055. a - 40 + "px";
  19056. }
  19057. }
  19058. this.Stbodywidth =
  19059. document.getElementsByClassName("student_body").length &&
  19060. document.getElementsByClassName("student_body")[0].offsetWidth;
  19061. },
  19062. closeDraw() {
  19063. this.bg = null;
  19064. this.drawShow = false;
  19065. },
  19066. showPicturePaint(url) {
  19067. let params = {
  19068. img: url,
  19069. };
  19070. this.ajax
  19071. .get(this.$store.state.api + "imgToBase64", params)
  19072. .then((res) => {
  19073. this.drawShow = true;
  19074. this.bg = res.data[0].img;
  19075. })
  19076. .catch((err) => {
  19077. console.error(err);
  19078. });
  19079. },
  19080. addImgDraw(base64) {
  19081. let file = { name: "批注图.png" };
  19082. let img = this.dataUrlToFile(base64, file);
  19083. this.beforeUpload1(img, 5);
  19084. },
  19085. addImgDrawImG(url) {
  19086. // console.log(url);
  19087. let params = [
  19088. {
  19089. wid: this.commentDetail.wid,
  19090. img: url,
  19091. },
  19092. ];
  19093. this.ajax
  19094. .post(this.$store.state.api + "updateCourseWorks", params)
  19095. .then((res) => {
  19096. this.$message({
  19097. message: "提交成功",
  19098. type: "success",
  19099. });
  19100. this.drawShow = false;
  19101. this.bg = "";
  19102. this.selectSWorks();
  19103. this.selectStudent();
  19104. })
  19105. .catch((err) => {
  19106. this.$message.error("提交失败");
  19107. console.error(err);
  19108. });
  19109. },
  19110. deletePicturePaint() {
  19111. this.$confirm("确定删除此批注吗?", "提示", {
  19112. confirmButtonText: "确定",
  19113. cancelButtonText: "取消",
  19114. type: "warning",
  19115. })
  19116. .then(() => {
  19117. let params = [
  19118. {
  19119. wid: this.commentDetail.wid,
  19120. img: "",
  19121. },
  19122. ];
  19123. this.ajax
  19124. .post(this.$store.state.api + "updateCourseWorks", params)
  19125. .then((res) => {
  19126. this.$message({
  19127. message: "删除成功",
  19128. type: "success",
  19129. });
  19130. this.selectSWorks();
  19131. this.selectStudent();
  19132. })
  19133. .catch((err) => {
  19134. this.$message.error("删除失败");
  19135. console.error(err);
  19136. });
  19137. })
  19138. .catch(() => {});
  19139. },
  19140. getAudioVideo(constraintsData) {
  19141. if (navigator.mediaDevices === undefined) {
  19142. navigator.mediaDevices = {};
  19143. }
  19144. if (navigator.mediaDevices.getUserMedia === undefined) {
  19145. navigator.mediaDevices.getUserMedia = function (constraints) {
  19146. // 首先,如果有getUserMedia的话,就获得它
  19147. var getUserMedia =
  19148. navigator.getUserMedia ||
  19149. navigator.webkitGetUserMedia ||
  19150. navigator.mozGetUserMedia ||
  19151. navigator.msGetUserMedia;
  19152. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19153. if (!getUserMedia) {
  19154. return Promise.reject({ code: 404 });
  19155. }
  19156. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19157. return new Promise(function (resolve, reject) {
  19158. getUserMedia.call(navigator, constraints, resolve, reject);
  19159. });
  19160. };
  19161. }
  19162. return navigator.mediaDevices.getUserMedia(constraintsData);
  19163. },
  19164. /**
  19165. * 开始录制
  19166. */
  19167. startRecording(callback) {
  19168. let _function = (screenStream) => {
  19169. this.addStreamStopListener(screenStream, () => {
  19170. console.log("流停止监听");
  19171. this.stopRecording();
  19172. this.$emit("streamStop", {});
  19173. // this.stopRecording();
  19174. });
  19175. var options = {
  19176. type: "video",
  19177. mimeType: "video/webm",
  19178. disableLogs: false,
  19179. getNativeBlob: false, // enable it for longer recordings
  19180. ignoreMutedMedia: false,
  19181. };
  19182. // this.video.srcObject = screenStream;
  19183. this.recorder = RecordRTC(screenStream, options);
  19184. this.recorder.startRecording();
  19185. this.recorder.screen = screenStream;
  19186. this.videoStart = true;
  19187. // callback(true);
  19188. };
  19189. this.getAudioVideo({ audio: true })
  19190. .then((res) => {
  19191. this.captureScreen(_function, true);
  19192. console.log("已点击允许,开启成功");
  19193. })
  19194. .catch((err) => {
  19195. // console.log('浏览器不支持,请更换浏览器')
  19196. // } else {
  19197. this.captureScreen(_function, false);
  19198. console.log("请检查是否存在麦克风");
  19199. });
  19200. },
  19201. /**
  19202. * 停止录制
  19203. */
  19204. stopRecording(callback) {
  19205. this.recorder.stopRecording(() => {
  19206. // this.video.src = this.video.srcObject = null;
  19207. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19208. const url = URL.createObjectURL(this.recorder.getBlob());
  19209. const a = document.createElement("a"); //this.fileName+
  19210. let videoFile = new File(
  19211. [this.recorder.getBlob()],
  19212. this.courseDetail.title + "录屏.mp4",
  19213. {
  19214. type: "video/mp4",
  19215. }
  19216. );
  19217. let downloadUrl = URL.createObjectURL(videoFile);
  19218. document.body.appendChild(a);
  19219. a.style.display = "none";
  19220. a.href = url;
  19221. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19222. a.click();
  19223. this.recorder.screen.stop();
  19224. this.recorder.destroy();
  19225. this.recorder = null;
  19226. this.videoStart = false;
  19227. // callback(false);
  19228. });
  19229. },
  19230. //初始化
  19231. captureScreen(callback, type) {
  19232. if (navigator.getDisplayMedia) {
  19233. //录制结束,文件下载
  19234. navigator
  19235. .getDisplayMedia({
  19236. video: true,
  19237. })
  19238. .then((screenStream) => {
  19239. if (type) {
  19240. navigator.mediaDevices
  19241. .getUserMedia({ audio: true })
  19242. .then((mic) => {
  19243. screenStream.addTrack(mic.getTracks()[0]);
  19244. callback(screenStream);
  19245. });
  19246. } else {
  19247. callback(screenStream);
  19248. }
  19249. })
  19250. .catch(function (error) {
  19251. console.log("error", error);
  19252. });
  19253. } else if (navigator.mediaDevices.getDisplayMedia) {
  19254. navigator.mediaDevices
  19255. .getDisplayMedia({
  19256. video: true,
  19257. })
  19258. .then((screenStream) => {
  19259. if (type) {
  19260. navigator.mediaDevices
  19261. .getUserMedia({ audio: true })
  19262. .then((mic) => {
  19263. screenStream.addTrack(mic.getTracks()[0]);
  19264. callback(screenStream);
  19265. });
  19266. } else {
  19267. callback(screenStream);
  19268. }
  19269. })
  19270. .catch(function (error) {
  19271. console.log("error", error);
  19272. });
  19273. } else {
  19274. var error = "getDisplayMedia API are not supported in this browser.";
  19275. console.log("error", error);
  19276. alert(error);
  19277. }
  19278. },
  19279. //流监听
  19280. addStreamStopListener(stream, callback) {
  19281. stream.addEventListener(
  19282. "ended",
  19283. function () {
  19284. callback();
  19285. callback = function () {};
  19286. },
  19287. false
  19288. );
  19289. stream.addEventListener(
  19290. "inactive",
  19291. function () {
  19292. callback();
  19293. callback = function () {};
  19294. },
  19295. false
  19296. );
  19297. stream.getTracks().forEach(function (track) {
  19298. track.addEventListener(
  19299. "ended",
  19300. function () {
  19301. callback();
  19302. callback = function () {};
  19303. },
  19304. false
  19305. );
  19306. track.addEventListener(
  19307. "inactive",
  19308. function () {
  19309. callback();
  19310. callback = function () {};
  19311. },
  19312. false
  19313. );
  19314. });
  19315. },
  19316. updateGroup() {
  19317. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19318. this.dialogVisibleGroup2 = true;
  19319. },
  19320. numberPan() {
  19321. if (
  19322. /[^\d]/.test(this.groupJson.number) ||
  19323. this.groupJson.number < 2 ||
  19324. this.groupJson.number > 10
  19325. ) {
  19326. this.$message.error("请输入2-10的数字");
  19327. this.groupJson.number = "";
  19328. }
  19329. },
  19330. updateGroupJson() {
  19331. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19332. if (
  19333. this.groupStudentUid[this.toolindex][i].length >
  19334. this.groupJson2.number
  19335. ) {
  19336. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19337. return;
  19338. }
  19339. }
  19340. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19341. this.islock = this.groupJson.islock == 1 ? true : false;
  19342. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19343. this.taskCount
  19344. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19345. let params = [
  19346. {
  19347. cid: this.id,
  19348. chapters: JSON.stringify(this.chapInfoList),
  19349. uid: this.userid,
  19350. unitIndex: this.courseType,
  19351. },
  19352. ];
  19353. this.ajax
  19354. .post(this.$store.state.api + "updateWorkNew4", params)
  19355. .then((res) => {
  19356. this.$message.success("设置成功");
  19357. this.getCourseDetail(2);
  19358. this.dialogVisibleGroup2 = false;
  19359. this.groupJson2 = {};
  19360. this.$forceUpdate();
  19361. })
  19362. .catch((err) => {
  19363. this.$message.error("网络不佳");
  19364. console.error(err);
  19365. });
  19366. },
  19367. lockChair() {
  19368. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19369. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19370. this.updateGroupJson();
  19371. },
  19372. selectGroup(index) {
  19373. this.getCourseDetail(2, index);
  19374. },
  19375. joinGroup(index) {
  19376. if (this.groupJson.islock == 2) {
  19377. this.$message.error("位置已被锁定,无法加入");
  19378. return;
  19379. }
  19380. if (
  19381. this.groupStudent[this.toolindex][index].length >
  19382. this.groupJson.number ||
  19383. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19384. ) {
  19385. this.$message.error("位置已满,无法加入");
  19386. return;
  19387. }
  19388. let params = [
  19389. {
  19390. cid: this.id,
  19391. stage: this.courseType,
  19392. task: this.taskCount,
  19393. tool: this.toolindex,
  19394. g: index,
  19395. uid: this.userid,
  19396. },
  19397. ];
  19398. this.ajax
  19399. .post(this.$store.state.api + "joinGroup", params)
  19400. .then((res) => {
  19401. this.$message.success("加入成功");
  19402. this.getCourseDetail(2);
  19403. })
  19404. .catch((err) => {
  19405. this.$message.error("网络不佳");
  19406. console.error(err);
  19407. });
  19408. },
  19409. exitGroup(id) {
  19410. if (this.groupJson.islock == 2) {
  19411. this.$message.error("位置已被锁定,无法退出");
  19412. return;
  19413. }
  19414. let params = [
  19415. {
  19416. gid: id,
  19417. },
  19418. ];
  19419. this.ajax
  19420. .post(this.$store.state.api + "exitGroup", params)
  19421. .then((res) => {
  19422. this.$message.success("退出成功");
  19423. this.getCourseDetail(2);
  19424. })
  19425. .catch((err) => {
  19426. this.$message.error("网络不佳");
  19427. console.error(err);
  19428. });
  19429. },
  19430. groupUpload(index, task, gindex) {
  19431. this.taskCount = task;
  19432. this.toolindex = index;
  19433. this.groupIndex = gindex;
  19434. this.dialogVisibleGroupWork = true;
  19435. },
  19436. updateGroupChair(user) {
  19437. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19438. el.label = index;
  19439. return index != user.group;
  19440. });
  19441. this.updateGroupUser = user;
  19442. this.dialogVisibleUpdateGroup = true;
  19443. },
  19444. updateChair() {
  19445. if (
  19446. this.groupStudent[this.toolindex][this.checkChair].length >
  19447. this.groupJson.number ||
  19448. this.groupStudent[this.toolindex][this.checkChair].length ==
  19449. this.groupJson.number
  19450. ) {
  19451. this.$message.error("位置已满,无法加入");
  19452. return;
  19453. }
  19454. let params = [
  19455. {
  19456. cid: this.id,
  19457. stage: this.courseType,
  19458. task: this.taskCount,
  19459. tool: this.toolindex,
  19460. g: this.checkChair,
  19461. uid: this.updateGroupUser.userid,
  19462. },
  19463. ];
  19464. this.ajax
  19465. .post(this.$store.state.api + "joinGroup", params)
  19466. .then((res) => {
  19467. this.$message.success("修改成功");
  19468. this.updateGroupUser = {};
  19469. this.checkChair = "";
  19470. this.updateGroupArray = {};
  19471. this.dialogVisibleUpdateGroup = false;
  19472. this.getCourseDetail(2);
  19473. })
  19474. .catch((err) => {
  19475. this.$message.error("网络不佳");
  19476. console.error(err);
  19477. });
  19478. },
  19479. deleteGroupChair(gindex) {
  19480. this.checkDeleteGroup = [];
  19481. this.deleteGroupUser = JSON.parse(
  19482. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19483. );
  19484. this.deleteGroupArray = this.groupJson.group[gindex];
  19485. this.groupIndex = gindex;
  19486. this.dialogVisibleDeleteGroup = true;
  19487. },
  19488. async deleteChair() {
  19489. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19490. const gid =
  19491. this.groupStudent[this.toolindex][this.groupIndex][
  19492. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19493. this.checkDeleteGroup[i]
  19494. )
  19495. ];
  19496. let params = [
  19497. {
  19498. gid: gid.id,
  19499. },
  19500. ];
  19501. var a = await this.deleteChairA(params);
  19502. if (i == this.checkDeleteGroup.length - 1) {
  19503. this.$message.success("退出成功");
  19504. this.dialogVisibleDeleteGroup = false;
  19505. this.deleteGroupUser = [];
  19506. this.deleteGroupArray = {};
  19507. this.groupIndex = "";
  19508. this.checkDeleteGroup = [];
  19509. this.getCourseDetail(2);
  19510. }
  19511. }
  19512. },
  19513. deleteChairA(params) {
  19514. return new Promise((resolve, reject) => {
  19515. this.ajax
  19516. .post(this.$store.state.api + "exitGroup", params)
  19517. .then((res) => {
  19518. resolve(1);
  19519. })
  19520. .catch((err) => {
  19521. this.$message.error("网络不佳");
  19522. console.error(err);
  19523. });
  19524. });
  19525. },
  19526. contract(i) {
  19527. if (this.isCloseList[i].isClose == 0) {
  19528. this.isCloseList[i].isClose = 1;
  19529. } else {
  19530. this.isCloseList[i].isClose = 0;
  19531. }
  19532. this.$forceUpdate();
  19533. },
  19534. openWordCloud(toolindex) {
  19535. let array = [];
  19536. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19537. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19538. array.push({ name: works });
  19539. }
  19540. if (this.isGroup) {
  19541. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19542. let works = this.courseGroup.group[i].works[toolindex];
  19543. for (var j = 0; j < works.length; j++) {
  19544. let answer = JSON.parse(works[j].works)[0].answer;
  19545. array.push({ name: answer });
  19546. }
  19547. }
  19548. }
  19549. this.wordCloudData = array;
  19550. this.dialogVisibleWordCloud = true;
  19551. },
  19552. uploadWorks(i) {
  19553. this.$confirm("确定导出作业吗?", "提示", {
  19554. confirmButtonText: "确定",
  19555. cancelButtonText: "取消",
  19556. type: "warning",
  19557. })
  19558. .then(() => {
  19559. const loading = this.$loading.service({
  19560. background: "rgba(255, 255, 255, 0.7)",
  19561. target: document.body,
  19562. text: "文件加载中...",
  19563. });
  19564. const _worksStudent = this.worksStudent;
  19565. let url = [];
  19566. var counts = {};
  19567. for (var l = 0; l < _worksStudent[i].length; l++) {
  19568. var item = _worksStudent[i][l];
  19569. var name = item.sName;
  19570. if (!counts.hasOwnProperty(name)) {
  19571. counts[name] = 0;
  19572. } else {
  19573. counts[name]++;
  19574. }
  19575. if (counts[name] > 0) {
  19576. item.sName += " (" + counts[name] + ")";
  19577. }
  19578. }
  19579. for (var l = 0; l < _worksStudent[i].length; l++) {
  19580. var item = _worksStudent[i][l];
  19581. if (
  19582. item.works.indexOf(
  19583. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19584. ) !== -1 &&
  19585. item.works.indexOf("img") === -1
  19586. ) {
  19587. url.push({ name: item.sName, url: item.works });
  19588. }
  19589. }
  19590. // var toolList = [
  19591. // { name: "电子白板", tool: 1 },
  19592. // { name: "思维导图", tool: 3 },
  19593. // { name: "协同文档", tool: 6 },
  19594. // { name: "思维网格", tool: 7 },
  19595. // { name: "素材库", tool: 8 },
  19596. // { name: "学习资料", tool: 17 },
  19597. // { name: "便签", tool: 2 },
  19598. // { name: "问卷调查", tool: 4 },
  19599. // { name: "选择题", tool: 45 },
  19600. // { name: "倒计时", tool: 10 },
  19601. // { name: "问答", tool: 15 },
  19602. // { name: "课程设计", tool: 26 },
  19603. // { name: "训练服务器", tool: 18 },
  19604. // { name: "作业提交", tool: 16 },
  19605. // { name: "批量上传", tool: 50 },
  19606. // { name: "AIoT Blockly", tool: 21 },
  19607. // { name: "AI Python", tool: 23 },
  19608. // { name: "AI Blockly", tool: 24 },
  19609. // { name: "目标管理", tool: 25 },
  19610. // { name: "数学画板", tool: 31 },
  19611. // { name: "翻译", tool: 28 },
  19612. // { name: "魔盒识字", tool: 37 },
  19613. // { name: "数学画板", tool: 31 },
  19614. // { name: "24点", tool: 38 },
  19615. // { name: "GeoGebra", tool: 39 },
  19616. // { name: "源码编辑", tool: 32 },
  19617. // { name: "个人评价", tool: 40 },
  19618. // { name: "选择匹配", tool: 41 },
  19619. // { name: "汉字宫", tool: 44 },
  19620. // { name: "排序", tool: 47 },
  19621. // { name: "表格", tool: 48 },
  19622. // { name: "文档", tool: 52 },
  19623. // { name: "学生分组", tool: 49 },
  19624. // { name: "CocoPi", tool: 57 },
  19625. // { name: "模拟驾驶", tool: 58 },
  19626. // { name: "路径搜索", tool: 59 },
  19627. // { name: "深度学习", tool: 60 },
  19628. // { name: "全历史", tool: 61 },
  19629. // { name: "交互视频", tool: 62 },
  19630. // { name: "海龟编程", tool: 63 },
  19631. // { name: "挑人", tool: 65 },
  19632. // { name: "公式编辑", tool: 66 },
  19633. // { name: "分子结构", tool: 67 },
  19634. // { name: "时间轴", tool: 68 },
  19635. // ];
  19636. // var toolName = "";
  19637. // for(var w = 0;w<toolList.length;w++){
  19638. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19639. // toolName = toolList[w].name;
  19640. // }
  19641. // }
  19642. console.log(url);
  19643. this.downLoadAll(url, loading);
  19644. })
  19645. .catch(() => {});
  19646. },
  19647. downLoadAll(url, loading) {
  19648. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19649. const zip = new JSZip();
  19650. const cache = {};
  19651. const promises = [];
  19652. data.forEach((item) => {
  19653. const promise = getFile(item.url).then((data) => {
  19654. if (data.data != 1) {
  19655. // 下载文件, 并存成ArrayBuffer对象
  19656. const file_name =
  19657. item.name +
  19658. "." +
  19659. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19660. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19661. cache[file_name] = data.data;
  19662. }
  19663. });
  19664. promises.push(promise);
  19665. });
  19666. Promise.all(promises).then(() => {
  19667. zip.generateAsync({ type: "blob" }).then((content) => {
  19668. // 生成二进制流
  19669. FileSaver.saveAs(
  19670. content,
  19671. this.courseDetail.title + "-" + "作业提交工具.zip"
  19672. ); // 利用file-saver保存文件 自定义文件名
  19673. setTimeout(() => {
  19674. loading.close();
  19675. }, 2000);
  19676. });
  19677. });
  19678. },
  19679. pickStudent(stu) {
  19680. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19681. return;
  19682. }
  19683. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19684. confirmButtonText: "确定",
  19685. cancelButtonText: "取消",
  19686. type: "warning",
  19687. })
  19688. .then(() => {
  19689. let params = [
  19690. {
  19691. uid: stu.userid,
  19692. cid: this.id,
  19693. stage: this.courseType,
  19694. task: this.taskCount,
  19695. tool: this.toolindex,
  19696. },
  19697. ];
  19698. this.ajax
  19699. .post(this.$store.state.api + "updateCoursePick", params)
  19700. .then((res) => {
  19701. this.$message.success("操作成功");
  19702. this.getPick();
  19703. })
  19704. .catch((err) => {
  19705. this.$message.error("网络不佳");
  19706. console.error(err);
  19707. });
  19708. })
  19709. .catch(() => {});
  19710. },
  19711. selectUser(){
  19712. let params = {
  19713. userid: this.userid,
  19714. };
  19715. this.ajax
  19716. .get(this.$store.state.api + "selectUser", params)
  19717. .then((res) => {
  19718. this.userMes = res.data[0];
  19719. })
  19720. .catch((err) => {
  19721. console.error(err);
  19722. });
  19723. },
  19724. setEngText(i){
  19725. this.newEngIndex = i;
  19726. this.$forceUpdate();
  19727. },
  19728. addCorrect(){
  19729. this.$confirm("你确定提交批改嘛?", "提示", {
  19730. confirmButtonText: "确定",
  19731. showCancelButton: false,
  19732. closeOnClickModal: false,
  19733. type: "warning",
  19734. })
  19735. .then(() => {
  19736. let params = {
  19737. cid: this.id,
  19738. s: parseInt(this.courseType),
  19739. t: this.taskCount,
  19740. tool: this.toolindex,
  19741. wid: this.engWid,
  19742. c: this.userid,
  19743. 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) : "",
  19744. };
  19745. this.ajax
  19746. .get(this.$store.state.api + "addEngC", params)
  19747. .then((res) => {
  19748. this.$message.success("提交成功");
  19749. this.engUpdateDialogVisible = false;
  19750. })
  19751. .catch((err) => {
  19752. console.error(err);
  19753. });
  19754. })
  19755. .catch(() => {});
  19756. },
  19757. selectEngC(id,z){
  19758. let params = {
  19759. workid: id,
  19760. };
  19761. this.ajax
  19762. .get(this.$store.state.api + "selectEngC", params)
  19763. .then((res) => {
  19764. if(res.data[0].length == 0){
  19765. this.newEnglishList.engTitle = z.engTitle;
  19766. this.newEnglishList.engText = z.engText;
  19767. }else{
  19768. var a = res.data[0];
  19769. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19770. if(this.userMes[0].type == 2){
  19771. var snum = 0;
  19772. for(var i = 0;i<a.length;i++){
  19773. if(this.userMes[0].userid == a[i].correct){
  19774. this.newEnglishList = JSON.parse(a[i].cWork);
  19775. snum = 1;
  19776. }
  19777. }
  19778. if(snum == 0){
  19779. this.newEnglishList = { engTitle:"",engText:"" };
  19780. this.newEnglishList.engTitle = z.engTitle;
  19781. this.newEnglishList.engText = z.engText;
  19782. }
  19783. }else if(this.userMes[0].type == 1){
  19784. var num = 0;
  19785. for(var w= 0;w<a.length;w++){
  19786. if(this.userMes[0].userid == a[w].correct){
  19787. num = 1;
  19788. }
  19789. }
  19790. if(num == 0){
  19791. this.isNoUserid = true;
  19792. var c = JSON.parse(JSON.stringify(z));
  19793. this.oldEnglishJson1 = c;
  19794. }else{
  19795. this.isNoUserid = false;
  19796. }
  19797. var b = a.sort((item, index) => {
  19798. console.log(item)
  19799. if (item.correct === this.userMes[0].userid) {
  19800. return -1; // 将a移到前面
  19801. } else if (index.correct === this.userMes[0].userid) {
  19802. return 1; // 将b移到前面
  19803. } else {
  19804. return 0; // 保持默认顺序
  19805. }
  19806. });
  19807. for(var p = 0;p<b.length;p++){
  19808. for(var y = 0;y<ppp.length;y++){
  19809. if(b[p].id == ppp[y].id){
  19810. b[p].cWork = JSON.parse(ppp[y].cWork);
  19811. break
  19812. }
  19813. }
  19814. }
  19815. this.newEnglishList1 = b;
  19816. }
  19817. }
  19818. this.greyType = false;
  19819. setTimeout(() => {
  19820. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19821. if(this.newEnglishList1.length > 0){
  19822. if(this.isNoUserid == true){
  19823. this.engListLength = this.newEnglishList1.length + 1;
  19824. this.newEngIndex = -1;
  19825. }else{
  19826. this.engListLength = this.newEnglishList1.length;
  19827. this.newEngIndex = 0;
  19828. }
  19829. }
  19830. if(this.userMes[0].type == 2){
  19831. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19832. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19833. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19834. }else if(this.newEngIndex == -1){
  19835. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19836. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19837. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19838. }
  19839. }, 500);
  19840. this.engUpdateDialogVisible = true;
  19841. this.$forceUpdate();
  19842. })
  19843. .catch((err) => {
  19844. console.error(err);
  19845. });
  19846. },
  19847. getPick() {
  19848. let params = {
  19849. cid: this.id,
  19850. };
  19851. this.ajax
  19852. .get(this.$store.state.api + "getPick", params)
  19853. .then((res) => {
  19854. let array = [];
  19855. for (var i = 0; i < res.data[0].length; i++) {
  19856. array.push(res.data[0][i].userid);
  19857. }
  19858. this.isPickStudent = array;
  19859. if (array.indexOf(this.userid) !== -1) {
  19860. this.$confirm("你被老师选到啦!", "提示", {
  19861. confirmButtonText: "确定",
  19862. showCancelButton: false,
  19863. closeOnClickModal: false,
  19864. type: "warning",
  19865. })
  19866. .then(() => {
  19867. let pa = [
  19868. {
  19869. uid: this.userid,
  19870. cid: this.id,
  19871. },
  19872. ];
  19873. this.ajax
  19874. .post(this.$store.state.api + "deletePick", pa)
  19875. .then((res) => {
  19876. this.getPick();
  19877. })
  19878. .catch((err) => {
  19879. this.$message.error("网络不佳");
  19880. console.error(err);
  19881. });
  19882. })
  19883. .catch(() => {});
  19884. }
  19885. })
  19886. .catch((err) => {
  19887. this.$message.error("网络不佳");
  19888. console.error(err);
  19889. });
  19890. },
  19891. foldEva() {
  19892. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19893. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19894. } else {
  19895. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19896. setTimeout(() => {
  19897. this.checkEva();
  19898. setTimeout(() => {
  19899. this.checkEva();
  19900. }, 500);
  19901. }, 0);
  19902. }
  19903. this.$forceUpdate();
  19904. },
  19905. panToolHeight(tool) {
  19906. var _tool = document.querySelectorAll('#'+tool)[0]
  19907. var _toolA = _tool ? _tool.offsetHeight : 0
  19908. var _toolC = 0
  19909. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19910. let boolean2 = (_toolA > _toolC) ? true : false
  19911. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19912. this.$forceUpdate();
  19913. },
  19914. async checkLink(url) {
  19915. // console.log(url)
  19916. let _url = url
  19917. try {
  19918. const response = await fetch(url);
  19919. if(!response.ok){
  19920. _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]))
  19921. }
  19922. // console.log(response.ok)
  19923. } catch (error) {
  19924. console.error('Error checking link:', error);
  19925. // console.log(false)
  19926. _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]))
  19927. }
  19928. // console.log(_url)
  19929. return _url
  19930. },
  19931. getScoreList(){
  19932. let params = {
  19933. cid: this.id,
  19934. };
  19935. this.ajax
  19936. .get(this.$store.state.api + "selectTestCourseByCid", params)
  19937. .then((res) => {
  19938. let result = res.data;
  19939. this.scoreList.datalist = result[0];
  19940. this.scoreList.isScoreList = result[1];
  19941. })
  19942. .catch((err) => {
  19943. console.error(err);
  19944. });
  19945. },
  19946. setClassRoomHelperWidth(width){
  19947. this.classRoomHelperWidth = width
  19948. }
  19949. },
  19950. directives: {
  19951. // 使用局部注册指令的方式
  19952. resize: {
  19953. // 指令的名称
  19954. bind(el, binding) {
  19955. // el为绑定的元素,binding为绑定给指令的对象
  19956. let width = "",
  19957. height = "";
  19958. function isReize() {
  19959. const style = document.defaultView.getComputedStyle(el);
  19960. if (width !== style.width || height !== style.height) {
  19961. binding.value(); // 关键
  19962. }
  19963. width = style.width;
  19964. height = style.height;
  19965. }
  19966. el.__vueSetInterval__ = setInterval(isReize, 300);
  19967. },
  19968. unbind(el) {
  19969. clearInterval(el.__vueSetInterval__);
  19970. },
  19971. },
  19972. autoHeight: {
  19973. update(el, binding) {
  19974. const { value } = binding
  19975. if (value && typeof value === 'number') {
  19976. el.style.height = `${value}px`
  19977. } else {
  19978. el.style.height = 'auto'
  19979. }
  19980. },
  19981. componentUpdated(el) {
  19982. el.style.height = `${el.scrollHeight + 5}px`
  19983. },
  19984. },
  19985. },
  19986. beforeDestroy() {
  19987. window.onresize = null;
  19988. clearInterval(this.timer);
  19989. this.timer = null;
  19990. clearInterval(this.opertimer);
  19991. this.opertimer = null;
  19992. },
  19993. computed: {
  19994. getHeight(){
  19995. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19996. },
  19997. contentConvent() {
  19998. return function (c) {
  19999. return c
  20000. ? c
  20001. .replaceAll(/\r\n/g, "<br/>")
  20002. .replaceAll(/\n/g, "<br/>")
  20003. .replaceAll(/\s/g, " &nbsp")
  20004. : "";
  20005. };
  20006. },
  20007. MarkdownT() {
  20008. return function (c) {
  20009. let md = new MarkdownIt();
  20010. return c
  20011. ? md.render(c) : "";
  20012. };
  20013. },
  20014. commentRight(){
  20015. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  20016. return "35px";
  20017. }
  20018. return `calc(${this.classRoomHelperWidth} + 5px)`
  20019. // if(this.$refs["classRoomHelperRef"].type==0){
  20020. // return "100px";
  20021. // }else if(this.$refs["classRoomHelperRef"].type==1){
  20022. // return "502px"
  20023. // }else{
  20024. // return "0px"
  20025. // }
  20026. },
  20027. checkUpload() {
  20028. return function () {
  20029. var studentK = [];
  20030. if (this.plworkFile.length > 0) {
  20031. for (var z = 0; z < this.plworkFile.length; z++) {
  20032. studentK.push(this.plworkFile[z].username);
  20033. }
  20034. studentK = studentK.join(",");
  20035. }
  20036. var a = this.uploadStudentJuri.filter((el) => {
  20037. return studentK.indexOf(el.userid) == -1;
  20038. });
  20039. return a;
  20040. };
  20041. },
  20042. getSName() {
  20043. return function (name) {
  20044. var check = name;
  20045. this.uploadStudentJuri.forEach((el) => {
  20046. if (el.userid == check) {
  20047. check = el.name ? el.name : el.username;
  20048. }
  20049. });
  20050. return check;
  20051. };
  20052. },
  20053. getImgList() {
  20054. return function (val) {
  20055. let srcList = []; // 定义一个数组用来接收后面的img地址
  20056. val.replace(
  20057. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  20058. function (match, capture) {
  20059. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  20060. srcList.push(capture);
  20061. }
  20062. );
  20063. return srcList;
  20064. };
  20065. },
  20066. retrnToolHeight(){
  20067. return function (tool) {
  20068. var _tool = document.querySelectorAll('#'+tool)[0]
  20069. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  20070. };
  20071. },
  20072. Correct() {
  20073. return function (c,d) {
  20074. let w = "";
  20075. let a = this.correctWord;
  20076. for(var k = 0;k<a.length;k++){
  20077. //diffWordsWithSpace
  20078. if(a.length > 1){
  20079. if(a[k].added == true){
  20080. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20081. }else if(a[k].removed == true){
  20082. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20083. }else{
  20084. w += '<span>' + a[k].value + '</span>';
  20085. }
  20086. }else{
  20087. w = c
  20088. }
  20089. console.log("👇👇!+++==")
  20090. console.log(w)
  20091. //diffChars方法
  20092. // if(w == ""){
  20093. // if(a.length > 1){
  20094. // if(a[k].added == true){
  20095. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20096. // }else if(a[k].removed == true){
  20097. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20098. // }
  20099. // }else{
  20100. // w = c
  20101. // }
  20102. // }else{
  20103. // if(k == a.length - 1){
  20104. // if(a[k].added == true){
  20105. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20106. // }else if(a[k].removed == true){
  20107. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20108. // }
  20109. // }else{
  20110. // if(a[k].added == true){
  20111. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20112. // }else if(a[k].removed == true){
  20113. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20114. // }
  20115. // }
  20116. // }
  20117. }
  20118. c = w;
  20119. return c;
  20120. };
  20121. },
  20122. },
  20123. mounted() {
  20124. document.body.addEventListener("click", (e) => {
  20125. if (this.isUpdateToolDetail1) {
  20126. this.updateToolDetail(this.toolDetailIndex);
  20127. }
  20128. });
  20129. if (this.screenType == 2) {
  20130. window.parent.postMessage({ allScreen: 4 }, "*");
  20131. } else if (this.screenType == 3) {
  20132. window.parent.postMessage({ allScreen: 5 }, "*");
  20133. } else if (this.screenType == 1) {
  20134. window.parent.postMessage({ allScreen: 6 }, "*");
  20135. }
  20136. this.setOperationTime();
  20137. this.selectEva();
  20138. this.getCourseDetail();
  20139. this.selectCount();
  20140. this.getHomeWork();
  20141. this.selectUser();
  20142. this.getAIJ();
  20143. this.contentDialog = true;
  20144. this.setContent2(true);
  20145. if (this.tType == 4) {
  20146. this.pzDialog = true;
  20147. this.selectPz();
  20148. }
  20149. // 获取评分列表
  20150. this.getScoreList()
  20151. document.scrollingElement.scrollTop = 0;
  20152. window.addEventListener("resize", () => {
  20153. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20154. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20155. if (this.showType == 2 || this.showType == 3) {
  20156. document.getElementsByClassName("navBox")[0].style.height =
  20157. a - 40 + 0+ "px";
  20158. } else {
  20159. document.getElementsByClassName("navBox")[0].style.height =
  20160. a - 40 + "px";
  20161. }
  20162. });
  20163. let _this = this;
  20164. setTimeout(() => {
  20165. // _this.vedioTime = [];
  20166. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20167. // _this.vedioTime[i] = document.getElementsByClassName(
  20168. // "vjs-duration-display"
  20169. // )[i].textContent;
  20170. // }
  20171. }, 1000);
  20172. },
  20173. };
  20174. </script>
  20175. <style scoped>
  20176. @media screen and (max-width: 1280px) {
  20177. /* .courseIndex > div:first-child(2) {
  20178. width: 15% !important;
  20179. } */
  20180. /* .navText {
  20181. width: 120px !important;
  20182. } */
  20183. .evaCss {
  20184. flex-direction: column !important;
  20185. align-items: center !important;
  20186. }
  20187. .elist_input {
  20188. width: 90% !important;
  20189. }
  20190. .dialog_diy1 >>> .el-dialog {
  20191. width: 100% !important;
  20192. }
  20193. .rightWidthCss {
  20194. width: 100% !important;
  20195. }
  20196. .dialog_diy3 >>> .el-dialog {
  20197. width: 100% !important;
  20198. }
  20199. .addToolCss {
  20200. right: 0 !important;
  20201. width: 100% !important;
  20202. min-width: unset !important;
  20203. }
  20204. }
  20205. .evaCssMax {
  20206. flex-direction: column !important;
  20207. align-items: center !important;
  20208. }
  20209. .dialog_diy >>> .el-dialog {
  20210. margin-top: 10vh !important;
  20211. }
  20212. .body_student {
  20213. width: 77%;
  20214. height: 100%;
  20215. position: absolute;
  20216. left: 22%;
  20217. top: 0;
  20218. }
  20219. .student_head {
  20220. width: 100%;
  20221. margin: 20px auto 0;
  20222. padding-bottom: 20px;
  20223. display: flex;
  20224. flex-direction: column;
  20225. flex-wrap: nowrap;
  20226. align-items: flex-start;
  20227. justify-content: flex-start;
  20228. }
  20229. .pb_left {
  20230. width: 20%;
  20231. margin-right: 10px;
  20232. background: rgb(255, 255, 255);
  20233. position: fixed;
  20234. height: calc(100% - 40px);
  20235. border-radius: 20px;
  20236. padding-bottom: 15px;
  20237. box-sizing: border-box;
  20238. }
  20239. .wheel > img,
  20240. .project > img,
  20241. .star > img,
  20242. .evaluate > img,
  20243. .up_photo > img,
  20244. .chapter_add > img,
  20245. .deleteWord > img,
  20246. .question > img,
  20247. .homework > img {
  20248. width: 100%;
  20249. height: 100%;
  20250. }
  20251. .upCover > img {
  20252. width: 131px;
  20253. height: 69px;
  20254. object-fit: cover;
  20255. }
  20256. .upCover {
  20257. width: calc(100% / 3.5);
  20258. position: relative;
  20259. margin: 0 15px 10px 0;
  20260. display: flex;
  20261. flex-direction: column;
  20262. flex-wrap: nowrap;
  20263. justify-content: center;
  20264. align-content: center;
  20265. align-items: center;
  20266. height: fit-content;
  20267. }
  20268. .upCover2 {
  20269. width: 100%;
  20270. position: relative;
  20271. margin: 0 15px 10px 0;
  20272. display: flex;
  20273. flex-direction: column;
  20274. flex-wrap: nowrap;
  20275. justify-content: center;
  20276. align-content: center;
  20277. align-items: center;
  20278. }
  20279. .upCover2 > img {
  20280. width: 100%;
  20281. height: 90px;
  20282. object-fit: contain;
  20283. }
  20284. .chapter_add {
  20285. width: 120px;
  20286. position: relative;
  20287. text-align: center;
  20288. }
  20289. .isAddThings {
  20290. margin-top: 20px;
  20291. position: relative;
  20292. text-align: center;
  20293. background: #f7f8fa;
  20294. height: 90px;
  20295. width: 90px;
  20296. display: flex;
  20297. flex-direction: column;
  20298. justify-content: center;
  20299. }
  20300. .deleteWord {
  20301. width: 22px;
  20302. height: 22px;
  20303. position: absolute;
  20304. right: -5px;
  20305. top: -5px;
  20306. cursor: pointer;
  20307. }
  20308. .box_course {
  20309. /* width: 60%; */
  20310. width: calc(100% - 300px);
  20311. }
  20312. .wheel {
  20313. width: 100%;
  20314. /* height: 100%; */
  20315. height: 650px;
  20316. }
  20317. .right_box {
  20318. display: flex;
  20319. flex-direction: column;
  20320. margin-left: 30px;
  20321. justify-content: space-around;
  20322. }
  20323. .right_box_title {
  20324. font-size: 23px;
  20325. }
  20326. .people {
  20327. display: flex;
  20328. }
  20329. .student_body {
  20330. width: 100%;
  20331. margin: 0 auto;
  20332. margin-top: 10px;
  20333. padding: 0 0 20px;
  20334. }
  20335. .study_top {
  20336. margin-top: 100px;
  20337. width: 100%;
  20338. height: auto;
  20339. padding-bottom: 20px;
  20340. }
  20341. .study_top .checkbox {
  20342. display: flex;
  20343. align-items: center;
  20344. padding: 15px 0 15px 30px;
  20345. flex: 0 0 auto;
  20346. font-weight: bold;
  20347. border-bottom: 1px solid #eee;
  20348. }
  20349. .study_top .check {
  20350. padding-bottom: 5px;
  20351. text-align: center;
  20352. cursor: pointer;
  20353. height: 30px;
  20354. box-sizing: border-box;
  20355. display: flex;
  20356. }
  20357. .study_top .checked {
  20358. border-bottom: 4px solid #3fc6a0;
  20359. padding-bottom: 5px;
  20360. color: #3fc6a0;
  20361. display: flex;
  20362. height: 35px;
  20363. }
  20364. .study_top .checked > div,
  20365. .study_top .check > div {
  20366. margin-right: 5px;
  20367. }
  20368. .videoTop {
  20369. display: flex;
  20370. flex-direction: row;
  20371. justify-content: space-between;
  20372. background: #fff;
  20373. align-items: center;
  20374. width: 95%;
  20375. padding: 20px;
  20376. }
  20377. .filebox {
  20378. display: flex;
  20379. flex-wrap: wrap;
  20380. flex-direction: column;
  20381. padding: 0 0 5px;
  20382. position: relative;
  20383. }
  20384. .filebox:before {
  20385. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20386. position: absolute;
  20387. top: 20px;
  20388. left: 13px;
  20389. border-left: 2px dotted #cad1dc;
  20390. height: calc(100% - 15px);
  20391. }
  20392. .toolHeng2 > div:last-child::before {
  20393. height: calc(100% - 43px);
  20394. }
  20395. .filebox .tooldetail {
  20396. width: calc(100%);
  20397. margin: 0px 12px;
  20398. padding: 12px;
  20399. line-height: 30px;
  20400. word-break: break-word;
  20401. background: #ffffff;
  20402. border-radius: 8px 8px 8px 8px;
  20403. opacity: 1;
  20404. border: 1px solid #cad1dc;
  20405. overflow:hidden;
  20406. box-sizing:border-box;
  20407. }
  20408. .file {
  20409. display: flex;
  20410. flex-direction: column;
  20411. align-items: center;
  20412. justify-content: center;
  20413. cursor: pointer;
  20414. width: 200px;
  20415. }
  20416. .file div {
  20417. margin-top: 10px;
  20418. width: 150px;
  20419. text-align: center;
  20420. overflow: hidden;
  20421. white-space: nowrap;
  20422. text-overflow: ellipsis;
  20423. }
  20424. .media {
  20425. display: flex;
  20426. flex-direction: column;
  20427. align-items: center;
  20428. justify-content: center;
  20429. margin: 0 20px 20px 0;
  20430. cursor: pointer;
  20431. margin: 12px 0 5px 15px;
  20432. overflow: hidden;
  20433. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  20434. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  20435. box-sizing: border-box;
  20436. }
  20437. .media img {
  20438. height: 90px;
  20439. width: 160px;
  20440. object-fit: cover;
  20441. }
  20442. .media .title {
  20443. padding: 5px;
  20444. text-align: left;
  20445. width: 100%;
  20446. box-sizing: border-box;
  20447. }
  20448. .media .btn {
  20449. width: 100%;
  20450. height: 35px;
  20451. line-height: 35px;
  20452. color: #fff;
  20453. background: #606060;
  20454. text-align: center;
  20455. overflow: hidden;
  20456. white-space: nowrap;
  20457. text-overflow: ellipsis;
  20458. }
  20459. .detail_content_top {
  20460. width: 100%;
  20461. padding: 25px 0 25px 0;
  20462. }
  20463. .detail_title {
  20464. text-align: center;
  20465. font-size: 24px;
  20466. }
  20467. .detail_time {
  20468. font-size: 13px;
  20469. padding: 15px 0 0 40px;
  20470. }
  20471. .detail_content {
  20472. line-height: 2pc;
  20473. width: 90%;
  20474. margin: 0 auto;
  20475. padding-top: 30px;
  20476. text-indent: 30px;
  20477. overflow: auto;
  20478. height: 200px;
  20479. }
  20480. .score_box >>> .el-rate {
  20481. margin-left: 10px;
  20482. }
  20483. .dialog_change >>> .el-dialog {
  20484. border-radius: 5px;
  20485. }
  20486. .dialog_change >>> .el-dialog__header {
  20487. background: #f2f2f2;
  20488. text-align: center;
  20489. }
  20490. .dialog_change >>> .el-dialog__title {
  20491. line-height: 5px;
  20492. }
  20493. .dialog_change >>> .el-dialog__body {
  20494. background: #fff;
  20495. padding: 10px 20px;
  20496. }
  20497. .score_box {
  20498. display: flex;
  20499. align-items: center;
  20500. margin-bottom: 18px;
  20501. margin-top: 20px;
  20502. }
  20503. .up_photo {
  20504. width: 120px;
  20505. cursor: pointer;
  20506. margin-top: 10px;
  20507. }
  20508. .up_photo2 {
  20509. width: 180px;
  20510. box-sizing: border-box;
  20511. min-width: 180px;
  20512. height: 180px;
  20513. max-height: 180px;
  20514. min-height: 180px;
  20515. cursor: pointer;
  20516. display: flex;
  20517. flex-direction: column;
  20518. align-items: center;
  20519. justify-content: center;
  20520. background: rgb(242, 246, 255);
  20521. /* padding: 25px; */
  20522. margin-bottom: 10px;
  20523. }
  20524. .up_photo2 img {
  20525. width: 50%;
  20526. height: auto;
  20527. }
  20528. .up_photo2 span {
  20529. color: #898989;
  20530. }
  20531. .plworkBox {
  20532. display: flex;
  20533. align-items: center;
  20534. margin-top: 10px;
  20535. flex-wrap: wrap;
  20536. }
  20537. .upload_send {
  20538. margin: 30px auto 30px;
  20539. width: 60%;
  20540. background: #3681fc;
  20541. text-align: center;
  20542. height: 35px;
  20543. line-height: 35px;
  20544. color: #fff;
  20545. border-radius: 5px;
  20546. cursor: pointer;
  20547. }
  20548. .marginT {
  20549. margin-top: 20px;
  20550. }
  20551. .cd_content_steps {
  20552. display: flex;
  20553. width: 90%;
  20554. justify-content: space-around;
  20555. border-top: 1px solid #eeeeee;
  20556. }
  20557. .cd_steps_box {
  20558. display: flex;
  20559. justify-content: center;
  20560. align-items: center;
  20561. flex-direction: column;
  20562. cursor: pointer;
  20563. }
  20564. .first {
  20565. display: flex;
  20566. align-items: center;
  20567. margin: 15px 0 20px 0;
  20568. font-size: 20px;
  20569. }
  20570. .first > div:nth-child(2) {
  20571. font-size: 16px !important;
  20572. padding-left: 10px;
  20573. line-height: 26px;
  20574. box-sizing: border-box;
  20575. }
  20576. .blue_box_one {
  20577. text-align: center;
  20578. color: #fff;
  20579. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  20580. border-radius: 7px;
  20581. margin: 10px;
  20582. cursor: pointer;
  20583. width: 95%;
  20584. height: 45px;
  20585. display: flex;
  20586. flex-direction: row;
  20587. justify-content: flex-start;
  20588. align-items: center;
  20589. }
  20590. .blue_box_one > div:nth-child(1) {
  20591. line-height: 30px;
  20592. margin: 0 5px 0 10px;
  20593. width: 30%;
  20594. min-width: 70px;
  20595. border-radius: 4px;
  20596. }
  20597. .blue_box_one > div:nth-child(2) {
  20598. white-space: nowrap;
  20599. text-overflow: ellipsis;
  20600. overflow: hidden;
  20601. word-break: break-all;
  20602. width: 70%;
  20603. text-align: left;
  20604. margin-right: 10px;
  20605. max-width: calc(100% - 85px);
  20606. }
  20607. .blue_box_one > div:nth-child(2):hover {
  20608. overflow: hidden;
  20609. text-overflow: ellipsis;
  20610. white-space: nowrap;
  20611. cursor: pointer;
  20612. }
  20613. .upFile {
  20614. margin: 0 auto;
  20615. width: 120px;
  20616. background: #3681fc;
  20617. color: #fff;
  20618. height: 30px;
  20619. text-align: center;
  20620. line-height: 30px;
  20621. border-radius: 5px;
  20622. font-size: 14px;
  20623. cursor: pointer;
  20624. }
  20625. .courseTitle {
  20626. width: 85%;
  20627. margin: 10px auto 26px auto;
  20628. display: flex;
  20629. flex-direction: row;
  20630. align-items: center;
  20631. justify-content: space-between;
  20632. text-align: center;
  20633. }
  20634. .courseTitle .ctitle {
  20635. font-size: 20px;
  20636. font-weight: bold;
  20637. color: #0e1e33;
  20638. white-space: nowrap;
  20639. overflow: hidden;
  20640. text-overflow: ellipsis;
  20641. }
  20642. .inviteBox {
  20643. font-size: 14px;
  20644. /* margin-top: 5px; */
  20645. color: #00000099;
  20646. text-align: center;
  20647. }
  20648. .courseTitle >>> .el-tooltip {
  20649. width: 100%;
  20650. white-space: nowrap;
  20651. overflow: hidden;
  20652. text-overflow: ellipsis;
  20653. word-break: break-word;
  20654. }
  20655. .ml {
  20656. margin-left: 20px;
  20657. color: #5b7dba;
  20658. border-left: 3px solid #5b7dba;
  20659. padding-left: 5px;
  20660. font-weight: bold;
  20661. }
  20662. .return {
  20663. width: 2rem;
  20664. height: 2rem;
  20665. cursor: pointer;
  20666. }
  20667. .return > img {
  20668. width: 100%;
  20669. height: 100%;
  20670. }
  20671. .returnBtn {
  20672. width: 86px;
  20673. height: 36px;
  20674. background: #3681fc;
  20675. border-radius: 4px;
  20676. color: #fff;
  20677. text-align: center;
  20678. line-height: 36px;
  20679. margin-right: 20px;
  20680. cursor: pointer;
  20681. font-size: 14px;
  20682. font-weight: 400;
  20683. display: flex;
  20684. flex-direction: row;
  20685. flex-wrap: nowrap;
  20686. align-items: center;
  20687. justify-content: center;
  20688. }
  20689. .reBtnIcon,
  20690. .commentIcon,
  20691. .vedioIcon,
  20692. .vedioIcon1 {
  20693. /* width: 36px; */
  20694. height: 36px;
  20695. border-radius: 4px;
  20696. position: relative;
  20697. /* background: #e0eafb; */
  20698. background: #0061ff;
  20699. cursor: pointer;
  20700. margin-right: 12px;
  20701. display: flex;
  20702. align-items: center;
  20703. padding: 0 10px;
  20704. box-sizing: border-box;
  20705. font-size: 14px;
  20706. color: #fff;
  20707. }
  20708. .reBtnIcon::before,
  20709. .commentIcon::before,
  20710. .vedioIcon::before,
  20711. .vedioIcon1::before {
  20712. content: "";
  20713. display: block;
  20714. background-size: 100% 100%;
  20715. background-repeat: no-repeat;
  20716. width: 20px;
  20717. height: 20px;
  20718. margin-right: 5px;
  20719. /* position: absolute; */
  20720. /* top: 8px;
  20721. left: 8px; */
  20722. }
  20723. .vedioIcon1 {
  20724. background: #f63564;
  20725. }
  20726. .reBtnIcon::before {
  20727. background-image: url("../../assets/icon/newIcons/refresh.png");
  20728. }
  20729. .commentIcon::before {
  20730. background-image: url("../../assets/icon/newIcons/comment.png");
  20731. }
  20732. .vedioIcon::before {
  20733. background-image: url("../../assets/icon/newIcons/transcribe.png");
  20734. }
  20735. .vedioIcon1::before {
  20736. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  20737. background-image: url("../../assets/icon/newIcons/transcribe.png");
  20738. }
  20739. .tool {
  20740. display: flex;
  20741. flex-direction: column;
  20742. flex-wrap: nowrap;
  20743. width: 13%;
  20744. margin: 0 30px;
  20745. align-items: center;
  20746. position: relative;
  20747. padding: 10px 25px;
  20748. cursor: pointer;
  20749. }
  20750. .whiteBIcon {
  20751. width: 150px;
  20752. }
  20753. .whiteBIcon > img {
  20754. width: 100%;
  20755. height: 100%;
  20756. }
  20757. .mask {
  20758. background-color: rgba(0, 0, 0, 0);
  20759. position: fixed;
  20760. top: 0;
  20761. left: 0;
  20762. width: 100%;
  20763. height: 100%;
  20764. z-index: 20000;
  20765. display: flex;
  20766. align-items: center;
  20767. justify-content: center;
  20768. }
  20769. .progressBox {
  20770. width: 500px;
  20771. height: 180px;
  20772. background: #fff;
  20773. border-radius: 10px;
  20774. box-shadow: 0 0 6px 1px #bfbfbf;
  20775. display: flex;
  20776. align-items: center;
  20777. justify-content: center;
  20778. flex-direction: column;
  20779. position: relative;
  20780. color: #6c6c6c;
  20781. }
  20782. .progressBox >>> .el-progress-bar__outer {
  20783. background-color: #d1dfff !important;
  20784. }
  20785. .progressBox .lbox {
  20786. height: 50px;
  20787. font-size: 19px;
  20788. display: flex;
  20789. align-items: center;
  20790. color: #747474;
  20791. }
  20792. .progressBox .lbox img {
  20793. width: 40px;
  20794. margin-right: 20px;
  20795. }
  20796. .closeCss {
  20797. position: absolute;
  20798. top: 8px;
  20799. right: 8px;
  20800. cursor: pointer;
  20801. width: 20px;
  20802. height: 20px;
  20803. }
  20804. .closeCss > img {
  20805. width: 100%;
  20806. height: 100%;
  20807. }
  20808. .uploadVedio {
  20809. display: flex;
  20810. flex-direction: column;
  20811. flex-wrap: nowrap;
  20812. justify-content: center;
  20813. align-items: center;
  20814. margin: 0 15px 10px 0;
  20815. }
  20816. .uploadVedio > img {
  20817. width: 30px;
  20818. height: 30px;
  20819. }
  20820. .uploadVedio > span {
  20821. white-space: nowrap;
  20822. overflow: hidden;
  20823. text-overflow: ellipsis;
  20824. width: 75px;
  20825. margin-top: 7px;
  20826. }
  20827. .picName {
  20828. white-space: nowrap;
  20829. overflow: hidden;
  20830. text-overflow: ellipsis;
  20831. width: 75px;
  20832. margin-top: 7px;
  20833. }
  20834. .new_top {
  20835. display: flex;
  20836. background: #fff;
  20837. flex-direction: row;
  20838. justify-content: flex-start;
  20839. align-items: center;
  20840. height: 60px;
  20841. position: fixed;
  20842. top: 20px;
  20843. left: 22%;
  20844. width: 77%;
  20845. z-index: 999;
  20846. border-radius: 12px 12px 0 0;
  20847. border-bottom: 1px solid #cad1dc;
  20848. padding: 10px 0;
  20849. }
  20850. .new_topFixed {
  20851. width: 100%;
  20852. height: 40px;
  20853. position: fixed;
  20854. top: 0px;
  20855. display: block;
  20856. background: #f2f2f2;
  20857. z-index: 998;
  20858. }
  20859. .before {
  20860. position: absolute;
  20861. background: #c3dad4;
  20862. width: 6px;
  20863. height: 100%;
  20864. }
  20865. .courseIndex {
  20866. display: flex;
  20867. flex-direction: row;
  20868. align-items: center;
  20869. width: calc(100% - 745px);
  20870. }
  20871. .courseIndex > div:nth-child(1) {
  20872. margin: 0 0 0 10px;
  20873. font-size: 20px;
  20874. min-width: 100px;
  20875. font-weight: bold;
  20876. border-left: 4px solid #3363b9;
  20877. height: 32px;
  20878. text-align: center;
  20879. line-height: 35px;
  20880. }
  20881. .courseIndex > div:nth-child(2) {
  20882. font-size: 20px;
  20883. /* width: 300px; */
  20884. max-width: calc(100% - 105px);
  20885. white-space: nowrap;
  20886. overflow: hidden;
  20887. text-overflow: ellipsis;
  20888. }
  20889. .courseIndex > div:nth-child(3) {
  20890. border-bottom: 1px solid #d7d7d7;
  20891. padding-bottom: 5px;
  20892. background: #3681fc;
  20893. width: 55px;
  20894. min-width: 55px;
  20895. border-radius: 5px;
  20896. color: #fff;
  20897. text-align: center;
  20898. height: 20px;
  20899. line-height: 26px;
  20900. font-size: 14px;
  20901. margin: 0 0 0 10px;
  20902. }
  20903. .course_text {
  20904. padding: 20px 0 0 15px;
  20905. text-indent: 30px;
  20906. width: 80%;
  20907. min-height: 20px;
  20908. }
  20909. .vedioList {
  20910. background: #f2f2f2;
  20911. border: 1px solid #ececec;
  20912. /* width: 38.8%; */
  20913. /* width: 300px; */
  20914. width: 100%;
  20915. height: 445px;
  20916. border-radius: 10px;
  20917. overflow: hidden;
  20918. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  20919. }
  20920. .vedioNav {
  20921. margin: 10px 0 0 15px;
  20922. border-bottom: 1px solid #d7d7d7;
  20923. padding-bottom: 5px;
  20924. background: #3681fc;
  20925. width: 55px;
  20926. min-width: 55px;
  20927. border-radius: 5px;
  20928. color: #fff;
  20929. text-align: center;
  20930. height: 20px;
  20931. line-height: 26px;
  20932. font-size: 14px;
  20933. }
  20934. .queTop {
  20935. display: flex;
  20936. padding: 20px 0 20px 30px;
  20937. width: 100%;
  20938. flex-direction: row;
  20939. justify-content: flex-start;
  20940. align-items: center;
  20941. box-sizing: border-box;
  20942. }
  20943. .queTopTitle {
  20944. display: flex;
  20945. flex-direction: row;
  20946. flex-wrap: nowrap;
  20947. align-items: center;
  20948. font-weight: bold;
  20949. font-size: 20px;
  20950. color: rgb(14, 30, 51);
  20951. }
  20952. .queTopTitle::before {
  20953. content: "";
  20954. width: 2px;
  20955. height: 22px;
  20956. background: #3681fc;
  20957. border-radius: 3px;
  20958. display: block;
  20959. margin: 2px 6px 0 0;
  20960. }
  20961. .queTopRight {
  20962. display: flex;
  20963. flex-direction: row;
  20964. flex-wrap: nowrap;
  20965. align-items: center;
  20966. }
  20967. .queTopClose {
  20968. margin-right: 20px;
  20969. cursor: pointer;
  20970. position: relative;
  20971. display: flex;
  20972. }
  20973. .closeImg,
  20974. .openImg {
  20975. width: 25px;
  20976. height: 25px;
  20977. position: absolute;
  20978. left: -20px;
  20979. top: -1px;
  20980. }
  20981. .closeImg > img,
  20982. .openImg > img {
  20983. width: 100%;
  20984. height: 100%;
  20985. }
  20986. .question {
  20987. width: 40px;
  20988. margin-right: 10px;
  20989. margin-top: 7px;
  20990. }
  20991. .queTitle {
  20992. margin-left: 5px;
  20993. font-size: 25px;
  20994. display: flex;
  20995. align-items: center;
  20996. }
  20997. .addEditor {
  20998. width: 100px;
  20999. height: 30px;
  21000. background: #42cda6;
  21001. color: #fff;
  21002. border-radius: 5px;
  21003. text-align: center;
  21004. line-height: 30px;
  21005. box-shadow: 1px 3px 6px 1px #bfbfbf;
  21006. cursor: pointer;
  21007. }
  21008. /* .vedioName {
  21009. cursor: pointer;
  21010. margin: 0px 0px 10px 5px;
  21011. white-space: nowrap;
  21012. overflow: hidden;
  21013. text-overflow: ellipsis;
  21014. width: 100%;
  21015. } */
  21016. .vedioTime {
  21017. width: 35px;
  21018. position: absolute;
  21019. color: #fff;
  21020. bottom: 0px;
  21021. right: 0px;
  21022. text-align: center;
  21023. background: #46411f;
  21024. height: 20px;
  21025. font-size: 14px;
  21026. line-height: 20px;
  21027. }
  21028. .homework {
  21029. width: 200px;
  21030. display: flex;
  21031. flex-direction: column;
  21032. flex-wrap: nowrap;
  21033. align-items: center;
  21034. cursor: pointer;
  21035. }
  21036. .homebox {
  21037. display: flex;
  21038. flex-wrap: wrap;
  21039. flex-direction: row;
  21040. justify-content: flex-start;
  21041. align-items: center;
  21042. padding: 15px 0;
  21043. }
  21044. .isChooseActive {
  21045. color: #3681fc !important;
  21046. font-weight: bold !important;
  21047. }
  21048. .chooseWho {
  21049. display: flex;
  21050. width: 100%;
  21051. flex-direction: row;
  21052. flex-wrap: nowrap;
  21053. justify-content: flex-start;
  21054. padding-bottom: 10px;
  21055. }
  21056. .chooseWho > div {
  21057. cursor: pointer;
  21058. padding-bottom: 10px;
  21059. margin: 0 30px 0 0;
  21060. font-weight: 400;
  21061. color: #0e1e33;
  21062. }
  21063. .addPoint > div > img {
  21064. cursor: pointer;
  21065. width: 85px;
  21066. border-radius: 15px;
  21067. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  21068. }
  21069. .addPoint > div {
  21070. display: flex;
  21071. flex-direction: column;
  21072. flex-wrap: nowrap;
  21073. align-items: center;
  21074. }
  21075. .isBorder > div {
  21076. margin: 0 0 10px 0;
  21077. align-items: flex-start !important;
  21078. }
  21079. .noiframeBox {
  21080. display: flex;
  21081. flex-wrap: wrap;
  21082. }
  21083. .iframeBox iframe {
  21084. width: 100%;
  21085. height: 800px;
  21086. border: none;
  21087. margin-bottom: 20px;
  21088. border: 1px solid #ccc;
  21089. }
  21090. .upload_toolBtn {
  21091. background: #3681fc;
  21092. color: #fff;
  21093. width: 110px;
  21094. text-align: center;
  21095. height: 35px;
  21096. line-height: 35px;
  21097. font-size: 14px;
  21098. border-radius: 5px;
  21099. cursor: pointer;
  21100. position: absolute;
  21101. right: 10px;
  21102. bottom: 0;
  21103. }
  21104. .binfo_input,
  21105. .pj {
  21106. font: inherit;
  21107. color: currentColor;
  21108. width: 100%;
  21109. margin: 0;
  21110. padding: 15px 14px;
  21111. display: block;
  21112. min-width: 0;
  21113. outline: none;
  21114. box-sizing: content-box;
  21115. background: none;
  21116. -webkit-tap-highlight-color: transparent;
  21117. border: 1px solid rgba(0, 0, 0, 0.23);
  21118. border-radius: 4px;
  21119. box-sizing: border-box;
  21120. resize: none;
  21121. }
  21122. .binfo_input:focus-visible {
  21123. border: 1px solid rgba(61, 103, 188);
  21124. }
  21125. .dialog_diy >>> .el-dialog__header,
  21126. .dialog_diy1 >>> .el-dialog__header {
  21127. background: #454545 !important;
  21128. padding: 15px 20px;
  21129. }
  21130. .dialog_diy >>> .el-dialog__title,
  21131. .dialog_diy1 >>> .el-dialog__title {
  21132. color: #fff;
  21133. }
  21134. .dialog_diy >>> .el-dialog__headerbtn,
  21135. .dialog_diy1 >>> .el-dialog__headerbtn {
  21136. top: 19px;
  21137. }
  21138. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21139. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21140. color: #fff;
  21141. }
  21142. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21143. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21144. color: #fff;
  21145. }
  21146. .dialog_diy1 >>> .el-dialog__body {
  21147. padding: 0;
  21148. }
  21149. .dialog_diy >>> .el-dialog__body,
  21150. .dialog_diy >>> .el-dialog__footer,
  21151. .dialog_diy1 >>> .el-dialog__footer {
  21152. background: #fafafa;
  21153. }
  21154. .a_addBox {
  21155. padding: 0 0 0 15px;
  21156. }
  21157. .a_add_box {
  21158. padding: 10px;
  21159. background: #fff;
  21160. margin-bottom: 10px;
  21161. border-radius: 5px;
  21162. box-shadow: 0 0 5px 0 #d5d5d5;
  21163. }
  21164. .a_add_head {
  21165. display: flex;
  21166. align-items: flex-start;
  21167. /* justify-content: space-between; */
  21168. flex-direction: column;
  21169. /* flex-direction: row; */
  21170. margin: 10px 0 20px 0;
  21171. font-size: 18px;
  21172. width: 100%;
  21173. }
  21174. .askIndex {
  21175. background: #3681fc;
  21176. border-radius: 50%;
  21177. color: #fff;
  21178. width: 25px;
  21179. height: 25px;
  21180. min-width: 25px;
  21181. min-height: 25px;
  21182. text-align: center;
  21183. line-height: 25px;
  21184. margin-right: 5px;
  21185. }
  21186. .a_add_head .a_add_head_input {
  21187. width: 300px;
  21188. }
  21189. .a_add_head .a_add_head_div {
  21190. display: flex;
  21191. align-items: center;
  21192. justify-content: space-between;
  21193. }
  21194. .a_add_body {
  21195. display: flex;
  21196. align-items: center;
  21197. }
  21198. .a_add_input {
  21199. display: flex;
  21200. align-items: center;
  21201. flex-wrap: wrap;
  21202. width: 100%;
  21203. }
  21204. .a_add_input >>> .el-radio-group,
  21205. .a_add_input >>> .el-checkbox-group {
  21206. width: 100%;
  21207. }
  21208. .a_add_input >>> .el-radio,
  21209. .a_add_input >>> .el-checkbox {
  21210. display: flex;
  21211. flex-direction: row;
  21212. flex-wrap: nowrap;
  21213. align-items: center;
  21214. padding: 15px 0;
  21215. }
  21216. .a_add_input >>> .el-radio:not(:last-child),
  21217. .a_add_input >>> .el-checkbox:not(:last-child) {
  21218. width: 100%;
  21219. border-bottom: 1px solid #efefef;
  21220. }
  21221. .redioStyle >>> .el-radio__label {
  21222. font-size: 18px;
  21223. }
  21224. .redioStyle >>> .el-radio__label > span,
  21225. .redioStyle >>> .el-checkbox__label > span {
  21226. word-break: break-all;
  21227. white-space: normal;
  21228. }
  21229. .redioStyle >>> .el-checkbox__label {
  21230. font-size: 18px;
  21231. }
  21232. .toolHeng2 {
  21233. width: 100%;
  21234. padding-left: 15px;
  21235. box-sizing: border-box;
  21236. }
  21237. .workNav {
  21238. font-size: 20px;
  21239. font-weight: bold;
  21240. color: #0e1e33;
  21241. display: flex;
  21242. flex-direction: row;
  21243. flex-wrap: nowrap;
  21244. align-items: center;
  21245. padding: 15px 0 15px 0;
  21246. }
  21247. .workNav::before {
  21248. content: "";
  21249. width: 2px;
  21250. height: 22px;
  21251. background: #3681fc;
  21252. border-radius: 3px;
  21253. display: block;
  21254. margin: 2px 6px 0 0;
  21255. }
  21256. .toolHeng {
  21257. display: flex;
  21258. flex-direction: row;
  21259. flex-wrap: wrap;
  21260. justify-content: flex-start;
  21261. align-items: center;
  21262. width: 100%;
  21263. }
  21264. .toolHeng > div {
  21265. padding-left: 20px;
  21266. }
  21267. .isWidth {
  21268. width: 20%;
  21269. }
  21270. .textTitle {
  21271. display: flex;
  21272. flex-direction: row;
  21273. flex-wrap: nowrap;
  21274. align-items: center;
  21275. width: 95%;
  21276. }
  21277. .textTitle >>> .el-form-item__label {
  21278. font-size: 22px;
  21279. color: #918f8f;
  21280. width: 100px;
  21281. }
  21282. .textTitle >>> .el-form-item__content {
  21283. width: calc(100% - 100px);
  21284. }
  21285. .textCss >>> .el-dialog {
  21286. width: 800px !important;
  21287. height: 400px;
  21288. background: #fafafa;
  21289. }
  21290. .textCss >>> .el-dialog__body {
  21291. margin: 55px 8% 0 8%;
  21292. padding: 0 !important;
  21293. }
  21294. .textCss >>> .el-dialog__footer {
  21295. padding-top: 38px;
  21296. }
  21297. .toolsCss >>> .el-dialog__body {
  21298. padding: 20px;
  21299. }
  21300. .lineCss >>> .el-dialog__body {
  21301. display: flex;
  21302. flex-direction: row;
  21303. align-items: center;
  21304. justify-content: center;
  21305. }
  21306. .newNav {
  21307. display: flex;
  21308. flex-direction: row;
  21309. align-items: baseline;
  21310. justify-content: flex-start;
  21311. }
  21312. .navListItem {
  21313. width: calc(100% - 20px);
  21314. height: 50px;
  21315. margin: 0px auto 10px;
  21316. display: flex;
  21317. flex-direction: row;
  21318. flex-wrap: nowrap;
  21319. align-items: center;
  21320. justify-content: space-between;
  21321. background: #f0f4fa;
  21322. border-radius: 6px 6px 6px 6px;
  21323. }
  21324. .navText {
  21325. cursor: pointer;
  21326. white-space: nowrap;
  21327. overflow: hidden;
  21328. text-overflow: ellipsis;
  21329. width: 220px;
  21330. padding: 0 10px;
  21331. font-weight: 400;
  21332. color: #0e1e33;
  21333. }
  21334. .downIcon {
  21335. width: 20px;
  21336. min-width: 20px;
  21337. height: 20px;
  21338. margin-right: 15px;
  21339. cursor: pointer;
  21340. }
  21341. .downIcon > img {
  21342. width: 100%;
  21343. height: 100%;
  21344. }
  21345. .noVedio {
  21346. display: flex;
  21347. flex-direction: row;
  21348. justify-content: center;
  21349. align-content: center;
  21350. }
  21351. .noNavText {
  21352. cursor: pointer;
  21353. margin: 0px 0px 10px 5px;
  21354. width: 112px;
  21355. }
  21356. .listNoVedio {
  21357. margin: 0 0 0 30px;
  21358. width: 97%;
  21359. }
  21360. .video-player >>> .video-js {
  21361. height: 100%;
  21362. }
  21363. .hangVedioList {
  21364. width: 90% !important;
  21365. height: 150px !important;
  21366. margin: 20px 0 0 30px;
  21367. }
  21368. .hangVedio {
  21369. width: 100%;
  21370. height: 170px !important;
  21371. align-items: flex-start !important;
  21372. }
  21373. .hangHand {
  21374. height: 150px !important;
  21375. }
  21376. .twoChild {
  21377. width: 95%;
  21378. margin: 10px;
  21379. border-radius: 5px;
  21380. background: #f2f2f2;
  21381. display: flex;
  21382. flex-direction: column;
  21383. flex-wrap: nowrap;
  21384. justify-content: flex-start;
  21385. align-items: flex-start;
  21386. transition: all 0.5s;
  21387. overflow: hidden;
  21388. height: 0;
  21389. background: #e7f3ff;
  21390. }
  21391. .twoChild > div:nth-child(1) {
  21392. margin-top: 5px;
  21393. }
  21394. .navChild {
  21395. width: 100%;
  21396. cursor: pointer;
  21397. margin-bottom: 10px;
  21398. position: relative;
  21399. }
  21400. .navChild img {
  21401. position: absolute;
  21402. right: 11px;
  21403. width: 15px;
  21404. top: 50%;
  21405. transform: translateY(-50%);
  21406. }
  21407. .navActive,
  21408. .toolActive {
  21409. height: auto !important;
  21410. overflow: auto !important;
  21411. /* padding-bottom: 16px; */
  21412. }
  21413. .toolActive {
  21414. padding: 0;
  21415. }
  21416. .navTask {
  21417. display: flex;
  21418. flex-direction: row;
  21419. flex-wrap: nowrap;
  21420. align-items: center;
  21421. align-content: flex-start;
  21422. height: 40px;
  21423. justify-content: flex-start;
  21424. padding: 0 10px;
  21425. width: 100%;
  21426. box-sizing: border-box;
  21427. }
  21428. .navTaskname {
  21429. white-space: nowrap;
  21430. text-overflow: ellipsis;
  21431. overflow: hidden;
  21432. word-break: break-all;
  21433. padding-left: 5px;
  21434. }
  21435. .openTaskActive {
  21436. /* background-color: #e0eafb !important;
  21437. color: #0061ff; */
  21438. color:#fff;
  21439. background: rgb(55, 129, 252) !important;
  21440. }
  21441. .iframeName {
  21442. margin: 5px 0;
  21443. border-left: 4px solid #41c4a4;
  21444. padding-left: 4px;
  21445. }
  21446. .toolTitle {
  21447. margin: 0px 0px 20px;
  21448. font-size: 20px;
  21449. font-weight: 500;
  21450. border-left: 4px solid #41c4a4;
  21451. padding-left: 4px;
  21452. }
  21453. .cru_selectBox {
  21454. overflow: auto;
  21455. width: 95%;
  21456. margin: 17px auto 0;
  21457. height: calc(100% - 40px - 21px - 20px - 17px);
  21458. background: #fff;
  21459. border-radius: 8px;
  21460. }
  21461. .cru_selectBox::-webkit-scrollbar,
  21462. .study_top::-webkit-scrollbar,
  21463. .textContent::-webkit-scrollbar {
  21464. /*滚动条整体样式*/
  21465. width: 6px;
  21466. /*高宽分别对应横竖滚动条的尺寸*/
  21467. height: 6px;
  21468. }
  21469. /*定义滚动条轨道 内阴影+圆角*/
  21470. .cru_selectBox::-webkit-scrollbar-track,
  21471. .study_top::-webkit-scrollbar-track,
  21472. .textContent::-webkit-scrollbar {
  21473. border-radius: 10px;
  21474. background-color: #b8bdc9;
  21475. }
  21476. /*定义滑块 内阴影+圆角*/
  21477. .cru_selectBox::-webkit-scrollbar-thumb,
  21478. .study_top::-webkit-scrollbar-thumb,
  21479. .textContent::-webkit-scrollbar-thumb {
  21480. border-radius: 10px;
  21481. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  21482. background-color: #2c5ab3;
  21483. }
  21484. .vedioBox {
  21485. border-radius: 0 0 20px 20px;
  21486. background: #fff;
  21487. overflow: auto;
  21488. }
  21489. .taskBox {
  21490. width: 98%;
  21491. background: #f0f4fa;
  21492. margin: 10px auto;
  21493. padding: 0 10px;
  21494. border-radius: 4px;
  21495. box-sizing: border-box;
  21496. }
  21497. .vedioTaskBox {
  21498. width: 100%;
  21499. display: flex;
  21500. flex-direction: row;
  21501. flex-wrap: nowrap;
  21502. align-items: flex-start;
  21503. position: relative;
  21504. }
  21505. .toolBox {
  21506. margin: 15px 0 0 25px;
  21507. display: flex;
  21508. position: relative;
  21509. padding: 18px 20px;
  21510. border-top-left-radius: 5px;
  21511. border-top-right-radius: 5px;
  21512. width: 90%;
  21513. }
  21514. .btnAll {
  21515. position: absolute;
  21516. right: 0;
  21517. display: flex;
  21518. flex-direction: row;
  21519. flex-wrap: nowrap;
  21520. align-items: center;
  21521. }
  21522. .btnLeft,
  21523. .btnRight {
  21524. display: flex;
  21525. flex-direction: row;
  21526. flex-wrap: nowrap;
  21527. align-items: center;
  21528. padding: 5px 0;
  21529. }
  21530. .btnLeft {
  21531. border-right: 1px solid #cad1dc;
  21532. }
  21533. .btnLeft > .custom-tooltip {
  21534. background: #3681fc;
  21535. color: #fff;
  21536. }
  21537. .last:hover {
  21538. background: #3383fa !important;
  21539. color: #fff;
  21540. border: 1px solid #3383fa !important;
  21541. }
  21542. .last,
  21543. .returnBtn1 {
  21544. width: 90px;
  21545. height: 36px;
  21546. background: #ffffff;
  21547. border-radius: 4px;
  21548. border: 1px solid #0061ff;
  21549. color: #0061ff;
  21550. cursor: pointer;
  21551. display: flex;
  21552. flex-direction: row;
  21553. flex-wrap: nowrap;
  21554. align-items: center;
  21555. justify-content: center;
  21556. margin-left: 12px;
  21557. }
  21558. .returnBtn1 {
  21559. background: #f0f4fa;
  21560. border-radius: 4px;
  21561. border: 1px solid #cad1dc;
  21562. margin: 0 12px;
  21563. }
  21564. .lastImg {
  21565. min-width: 15px;
  21566. width: 15px;
  21567. height: 15px;
  21568. display: flex;
  21569. }
  21570. .lastText {
  21571. padding: 0 5px 0 5px;
  21572. box-sizing: border-box;
  21573. font-size: 14px;
  21574. }
  21575. .lastImg > img {
  21576. width: 100%;
  21577. height: 100%;
  21578. }
  21579. /* .vedioTimeBox {
  21580. display: flex;
  21581. flex-direction: row;
  21582. align-items: center;
  21583. flex-wrap: nowrap;
  21584. position: relative;
  21585. } */
  21586. .navBox {
  21587. background: #fff;
  21588. height: calc(100% - 40px);
  21589. overflow-y: auto;
  21590. overflow-x: hidden;
  21591. }
  21592. .worksBox {
  21593. margin: 0 0 10px 25px;
  21594. border-bottom: 1px solid #eeeeee;
  21595. padding: 18px 20px;
  21596. border-radius: 4px;
  21597. width: 90%;
  21598. }
  21599. .worksBTitle {
  21600. font-size: 20px;
  21601. padding-bottom: 15px;
  21602. border-bottom: 1px solid #eeeeee;
  21603. display: flex;
  21604. align-items: center;
  21605. }
  21606. .greenBox {
  21607. width: 5px;
  21608. height: 30px;
  21609. background: #63b6fa;
  21610. margin-right: 5px;
  21611. }
  21612. .worksDetailBox {
  21613. display: flex;
  21614. width: 100%;
  21615. flex-direction: row;
  21616. flex-wrap: wrap;
  21617. align-items: flex-end;
  21618. justify-content: flex-start;
  21619. padding: 15px 5px;
  21620. box-sizing: border-box;
  21621. }
  21622. .works {
  21623. display: flex;
  21624. flex-direction: column;
  21625. flex-wrap: nowrap;
  21626. align-items: flex-start;
  21627. justify-content: flex-start;
  21628. align-content: center;
  21629. max-width: 240px;
  21630. width: calc(100% / 3 - 10px);
  21631. height: auto;
  21632. margin-right: 10px;
  21633. margin-bottom: 10px;
  21634. overflow: hidden;
  21635. height: 140px;
  21636. box-shadow: 0 0 6px 1px #dfdada;
  21637. border-radius: 15px;
  21638. }
  21639. .workImg {
  21640. width: 100%;
  21641. /* height: calc(100% - 40px); */
  21642. height: 105px;
  21643. position: relative;
  21644. }
  21645. .workImg > img {
  21646. width: 100%;
  21647. height: 100%;
  21648. object-fit: contain;
  21649. cursor: pointer;
  21650. }
  21651. .worksName {
  21652. height: 40px;
  21653. line-height: 40px;
  21654. display: flex;
  21655. width: 100%;
  21656. flex-direction: row;
  21657. flex-wrap: nowrap;
  21658. justify-content: space-between;
  21659. align-items: center;
  21660. margin: 0 0 0 10px;
  21661. }
  21662. .worksName > div:nth-child(1) {
  21663. width: 110px;
  21664. white-space: nowrap;
  21665. overflow: hidden;
  21666. text-overflow: ellipsis;
  21667. }
  21668. .worksName > div:nth-child(2) {
  21669. color: #b7b4b5;
  21670. }
  21671. .noWorksS {
  21672. padding: 15px 0;
  21673. display: flex;
  21674. flex-direction: row;
  21675. flex-wrap: wrap;
  21676. align-items: center;
  21677. justify-content: flex-start;
  21678. }
  21679. .noWorksName,
  21680. .isWorksName,
  21681. .isWorksName2 {
  21682. background: #ddebf8;
  21683. color: #000;
  21684. width: 90px;
  21685. height: 25px;
  21686. text-align: center;
  21687. line-height: 25px;
  21688. border-radius: 4px;
  21689. margin: 10px 15px 10px 0;
  21690. white-space: nowrap;
  21691. overflow: hidden;
  21692. padding: 5px;
  21693. text-overflow: ellipsis;
  21694. cursor: pointer;
  21695. border: 1px solid #ddebf8;
  21696. }
  21697. .noWorksName {
  21698. background: #fff;
  21699. color: #0061ff;
  21700. border: 1px solid #0061ff;
  21701. }
  21702. .noWorksName > span{
  21703. max-width: 100%;
  21704. display: block;
  21705. overflow: hidden;
  21706. text-overflow: ellipsis;
  21707. white-space: nowrap;
  21708. }
  21709. .isWorksName2 {
  21710. width: 100px;
  21711. height: 40px;
  21712. line-height: 40px;
  21713. position: relative;
  21714. background: #dae6f9;
  21715. }
  21716. .isWorksName {
  21717. background: #e7ebf1 !important;
  21718. width: 100px;
  21719. height: 40px;
  21720. line-height: 40px;
  21721. position: relative;
  21722. color: #acb4bf;
  21723. border: 1px solid #cad1dc !important;
  21724. }
  21725. .isSelectName,
  21726. .noWorksName:hover {
  21727. background: #3383fa !important;
  21728. color: #fff !important;
  21729. border: 1px solid #3383fa !important;
  21730. }
  21731. .title {
  21732. background: #1e5cc9;
  21733. /* width: 98%; */
  21734. height: 45px;
  21735. color: #fff;
  21736. line-height: 45px;
  21737. padding-left: 20px;
  21738. box-sizing: border-box;
  21739. }
  21740. .textBox {
  21741. font-size: 20px;
  21742. width: 90%;
  21743. display: flex;
  21744. flex-direction: column;
  21745. align-items: center;
  21746. margin: 20px auto 0;
  21747. max-height: calc(100% - 75px);
  21748. overflow: auto;
  21749. }
  21750. .textContent {
  21751. font-size: 18px;
  21752. width: 95%;
  21753. max-width: 95%;
  21754. }
  21755. .answerBg {
  21756. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  21757. background-size: 100% 100%;
  21758. width: 100%;
  21759. height: 100%;
  21760. color: #fff;
  21761. text-align: center;
  21762. display: flex;
  21763. flex-direction: column;
  21764. flex-wrap: nowrap;
  21765. align-items: center;
  21766. position: relative;
  21767. justify-content: center;
  21768. }
  21769. .answerBg > div:nth-child(1) {
  21770. /* font-size: 22px;
  21771. padding: 25px 0 10px; */
  21772. }
  21773. .answerContent {
  21774. width: 215px;
  21775. max-height: 60px;
  21776. word-break: break-all;
  21777. text-align: center;
  21778. /* white-space: nowrap; */
  21779. overflow: hidden;
  21780. text-overflow: ellipsis;
  21781. /* padding: 23px 0 0; */
  21782. -webkit-line-clamp: 3;
  21783. -webkit-box-orient: vertical;
  21784. display: -webkit-box;
  21785. font-size: 15px;
  21786. cursor: pointer;
  21787. }
  21788. .elist_input_box {
  21789. display: flex;
  21790. align-items: flex-start;
  21791. flex-wrap: nowrap;
  21792. padding: 10px 0 15px 30px;
  21793. flex-direction: column;
  21794. }
  21795. .elist_input {
  21796. /* width: 40%; */
  21797. width: 45%;
  21798. margin: 20px;
  21799. }
  21800. .elist_input .elist_input_box input {
  21801. font: inherit;
  21802. color: currentColor;
  21803. width: 200px;
  21804. padding: 8px 14px;
  21805. display: block;
  21806. min-width: 0;
  21807. outline: none;
  21808. border: 1px solid rgba(0, 0, 0, 0.23);
  21809. border-radius: 4px;
  21810. box-sizing: border-box;
  21811. background: #fff;
  21812. margin: 0 20px 0 0;
  21813. }
  21814. .elist_input .elist_input_box span {
  21815. height: 36px;
  21816. line-height: 36px;
  21817. color: rgb(82, 82, 82);
  21818. }
  21819. .elist_input .elist_input_box .remove {
  21820. height: 20px;
  21821. width: 20px;
  21822. background-size: 100% 100%;
  21823. background-position: unset;
  21824. margin-left: 5px;
  21825. }
  21826. .elist_input_box >>> .el-rate {
  21827. display: flex;
  21828. height: 36px;
  21829. align-items: center;
  21830. }
  21831. .elist_input_box .elist_inptu_text {
  21832. min-height: 50px;
  21833. /* width: 500px;
  21834. max-height: 150px; */
  21835. width: 100%;
  21836. line-height: 50px;
  21837. color: rgb(82, 82, 82);
  21838. overflow: auto;
  21839. text-indent: 5px;
  21840. background: #f7f6f9;
  21841. border-radius: 10px;
  21842. }
  21843. .elist_input_box .elist_inptu_text input {
  21844. width: 500px;
  21845. }
  21846. .elist_input_box >>> .el-rate__icon {
  21847. font-size: 24px;
  21848. }
  21849. .isClick {
  21850. background: #4d9def;
  21851. }
  21852. .bzBox {
  21853. display: flex;
  21854. flex-direction: row;
  21855. align-items: center;
  21856. }
  21857. .bzBox .yCss {
  21858. width: 7px;
  21859. height: 7px;
  21860. background: #fff;
  21861. margin: 0 16px 0 6px;
  21862. border-radius: 50%;
  21863. border: 5px solid #3681fc;
  21864. z-index: 99;
  21865. }
  21866. .bzBox > div:nth-child(2) {
  21867. font-size: 18px;
  21868. font-weight: bold;
  21869. color: #0e1e33;
  21870. }
  21871. .navTitile {
  21872. padding: 0 0px 0 15px;
  21873. font-size: 16px;
  21874. font-weight: bold;
  21875. color: #0e1e33;
  21876. height: 40px;
  21877. line-height: 40px;
  21878. }
  21879. .isTypeOne {
  21880. width: 240px;
  21881. height: 170px;
  21882. /* border: 1px solid #f8f8f8; */
  21883. border-radius: 10px;
  21884. box-shadow: 0 0 6px 1px #dfdada;
  21885. }
  21886. .e_add_top {
  21887. display: flex;
  21888. justify-content: space-between;
  21889. padding: 10px 20px;
  21890. border-radius: 3px;
  21891. background: #fff;
  21892. }
  21893. .e_add_title2 {
  21894. display: flex;
  21895. align-items: center;
  21896. }
  21897. .e_add_title2 span {
  21898. width: 40px;
  21899. }
  21900. .e_add_title {
  21901. display: flex;
  21902. align-items: center;
  21903. color: #b8b8b8;
  21904. font-size: 18px;
  21905. position: relative;
  21906. height: 40px;
  21907. }
  21908. .e_add_title span {
  21909. margin-right: 10px;
  21910. }
  21911. .e_add_title .el_input {
  21912. width: 300px;
  21913. }
  21914. .e_add_title >>> .el-input__inner {
  21915. width: 400px;
  21916. }
  21917. .e_add_btn {
  21918. }
  21919. .e_add_content {
  21920. display: flex;
  21921. width: 100%;
  21922. max-width: 650px;
  21923. height: 550px;
  21924. }
  21925. .e_add_list {
  21926. background: #fff;
  21927. height: 500px;
  21928. width: 210px;
  21929. position: relative;
  21930. margin: 15px 5px 0 0;
  21931. flex-shrink: 0;
  21932. display: flex;
  21933. flex-direction: column;
  21934. }
  21935. .e_add_list_title {
  21936. font-size: 20px;
  21937. width: 100%;
  21938. box-sizing: border-box;
  21939. padding: 15px 40px;
  21940. text-align: center;
  21941. border-bottom: 1px solid #eaeaea;
  21942. position: relative;
  21943. display: flex;
  21944. align-items: center;
  21945. justify-content: center;
  21946. height: 57px;
  21947. background: #f6f6f6;
  21948. }
  21949. .e_add_list_title span {
  21950. overflow: hidden;
  21951. white-space: nowrap;
  21952. text-overflow: ellipsis;
  21953. }
  21954. .e_add_list_title img {
  21955. position: absolute;
  21956. right: 15px;
  21957. width: 25px;
  21958. cursor: pointer;
  21959. top: 50%;
  21960. transform: translateY(-50%);
  21961. }
  21962. .e_add_list_body {
  21963. height: calc(100% - 187px);
  21964. overflow: auto;
  21965. }
  21966. .e_add_list_child {
  21967. width: 100%;
  21968. display: flex;
  21969. align-items: center;
  21970. justify-content: center;
  21971. position: relative;
  21972. box-sizing: border-box;
  21973. padding: 15px 40px;
  21974. text-align: center;
  21975. }
  21976. .e_add_list_child span {
  21977. overflow: hidden;
  21978. white-space: nowrap;
  21979. text-overflow: ellipsis;
  21980. cursor: pointer;
  21981. }
  21982. .e_add_list_child img {
  21983. position: absolute;
  21984. right: 10px;
  21985. width: 21px;
  21986. cursor: pointer;
  21987. top: 50%;
  21988. transform: translateY(-50%);
  21989. }
  21990. .e_add_list_child + .e_add_list_child {
  21991. border-top: 1px solid #eaeaea;
  21992. }
  21993. .e_add_list_child .active {
  21994. color: #409eff;
  21995. }
  21996. .e_add_list_btn {
  21997. position: absolute;
  21998. bottom: 0;
  21999. height: 50px;
  22000. background: rgb(120, 120, 254);
  22001. width: 100%;
  22002. color: #fff;
  22003. font-size: 16px;
  22004. text-align: center;
  22005. line-height: 50px;
  22006. cursor: pointer;
  22007. }
  22008. .e_add_list_detail {
  22009. position: absolute;
  22010. bottom: 0;
  22011. height: 130px;
  22012. background: rgb(120, 120, 254);
  22013. width: 100%;
  22014. color: #fff;
  22015. font-size: 16px;
  22016. display: flex;
  22017. align-items: center;
  22018. justify-content: center;
  22019. }
  22020. .e_add_list_detail textarea {
  22021. height: 90%;
  22022. width: 95%;
  22023. border: none;
  22024. resize: none;
  22025. outline: none;
  22026. padding: 5px;
  22027. box-sizing: border-box;
  22028. }
  22029. .e_add_list_pbox {
  22030. width: 100%;
  22031. max-width: 650px;
  22032. /* height: 600px; */
  22033. }
  22034. .e_add_list_pbox_title {
  22035. height: 50px;
  22036. background: #fff;
  22037. display: flex;
  22038. align-items: center;
  22039. width: 100%;
  22040. box-sizing: border-box;
  22041. padding: 0 20px;
  22042. }
  22043. .type_title {
  22044. font-size: 18px;
  22045. font-weight: 700;
  22046. }
  22047. .type_content {
  22048. font-size: 16px;
  22049. /* margin-left: 30px; */
  22050. }
  22051. .type_content span + span {
  22052. margin-left: 20px;
  22053. }
  22054. .type_content span {
  22055. cursor: pointer;
  22056. padding-bottom: 5px;
  22057. box-sizing: border-box;
  22058. }
  22059. .type_content .active {
  22060. color: #409eff;
  22061. border-bottom: 2px solid #409eff;
  22062. }
  22063. .e_add_list_pbox_content {
  22064. height: calc(100% - 50px);
  22065. display: flex;
  22066. align-items: center;
  22067. width: 100%;
  22068. background: #fff;
  22069. }
  22070. .evaCss {
  22071. display: flex;
  22072. flex-direction: row;
  22073. flex-wrap: nowrap;
  22074. align-items: flex-start;
  22075. padding: 0 0 20px;
  22076. }
  22077. .cru_line {
  22078. position: absolute;
  22079. bottom: 0px;
  22080. transition: all 0.5s;
  22081. left: 0px;
  22082. width: 125px;
  22083. margin-left: -25px;
  22084. }
  22085. .isNoMessage {
  22086. width: 20%;
  22087. margin: 25% auto 0;
  22088. }
  22089. .isNoMessage > img {
  22090. width: 100%;
  22091. height: 100%;
  22092. }
  22093. .fullStyle >>> .el-dialog__body {
  22094. height: 100% !important;
  22095. }
  22096. .fullStyle >>> .el-dialog,
  22097. .fullStyle {
  22098. width: 100% !important;
  22099. max-width: 100% !important;
  22100. height: 100% !important;
  22101. margin: 0 !important;
  22102. }
  22103. .full_diy >>> .el-dialog {
  22104. margin: 0 !important;
  22105. height: 100%;
  22106. padding: 4px;
  22107. }
  22108. .full_diy >>> .el-dialog__body {
  22109. height: calc(100% - 100px);
  22110. }
  22111. .full_diy2 >>> .el-dialog__body {
  22112. height: calc(100% - 50px);
  22113. padding: 0;
  22114. }
  22115. .switchCss {
  22116. /* width: 100%; */
  22117. display: flex;
  22118. flex-direction: row;
  22119. flex-wrap: nowrap;
  22120. align-items: center;
  22121. /* justify-content: center; */
  22122. }
  22123. .isClickNav {
  22124. /* color: #499eef; */
  22125. color: #000;
  22126. }
  22127. .commentImg {
  22128. width: 25px;
  22129. height: 25px;
  22130. cursor: pointer;
  22131. }
  22132. .commentImg > img {
  22133. width: 100%;
  22134. height: 100%;
  22135. }
  22136. .comment {
  22137. background: #f9f9f9;
  22138. border-radius: 0 0 4px 4px;
  22139. display: flex;
  22140. flex-direction: row;
  22141. flex-wrap: nowrap;
  22142. align-items: center;
  22143. justify-content: flex-end;
  22144. height: 35px;
  22145. }
  22146. .commentList {
  22147. display: flex;
  22148. flex-direction: row;
  22149. flex-wrap: nowrap;
  22150. align-items: center;
  22151. justify-content: center;
  22152. align-content: center;
  22153. /* margin-left: 15px; */
  22154. /* margin-left: 8px; */
  22155. }
  22156. .scoreImg {
  22157. width: 17px;
  22158. height: 17px;
  22159. }
  22160. .studentDetail {
  22161. display: flex;
  22162. flex-direction: row;
  22163. flex-wrap: nowrap;
  22164. /* align-items: center; */
  22165. align-items: flex-start;
  22166. }
  22167. .tx {
  22168. width: 50px;
  22169. }
  22170. .tx > img {
  22171. width: 100%;
  22172. height: 100%;
  22173. }
  22174. .nameAndTime {
  22175. display: flex;
  22176. flex-direction: column;
  22177. flex-wrap: nowrap;
  22178. align-items: flex-start;
  22179. margin-left: 10px;
  22180. }
  22181. .worksAnswer {
  22182. color: #4078dd;
  22183. margin: 10px 0;
  22184. font-size: 16px;
  22185. position: relative;
  22186. }
  22187. .worksAnswer > img {
  22188. width: 500px;
  22189. height: 300px;
  22190. object-fit: contain;
  22191. margin: 0 auto;
  22192. display: block;
  22193. }
  22194. .commentTop {
  22195. border-bottom: 1px solid #eaeaea;
  22196. padding-bottom: 10px;
  22197. }
  22198. .commentBox {
  22199. padding-top: 15px;
  22200. }
  22201. .pl {
  22202. font-size: 18px;
  22203. }
  22204. .plPerson {
  22205. width: 100%;
  22206. }
  22207. .plName {
  22208. display: flex;
  22209. flex-direction: row;
  22210. flex-wrap: nowrap;
  22211. align-items: baseline;
  22212. color: #78787a;
  22213. width: 100%;
  22214. }
  22215. .deleteComment {
  22216. cursor: pointer;
  22217. margin-left: auto;
  22218. color: #237ade;
  22219. }
  22220. .plContent {
  22221. margin-top: 5px;
  22222. }
  22223. .evalCss {
  22224. background: #fff;
  22225. font-size: 18px;
  22226. }
  22227. .nav {
  22228. color: #9d9d9d;
  22229. padding: 5px 0 15px 20px;
  22230. }
  22231. .middleBox {
  22232. padding: 5px 0 15px 20px;
  22233. }
  22234. .pfBox {
  22235. padding-bottom: 30px;
  22236. }
  22237. .nameAndrate {
  22238. display: flex;
  22239. flex-direction: row;
  22240. flex-wrap: nowrap;
  22241. align-items: center;
  22242. padding-bottom: 10px;
  22243. height: 30px;
  22244. line-height: 30px;
  22245. }
  22246. .nameAndrate > div {
  22247. margin-left: 10px;
  22248. color: #000;
  22249. height: 30px;
  22250. }
  22251. .nameAndrate >>> .el-rate__icon {
  22252. font-size: 28px !important;
  22253. }
  22254. .pfBox > div:nth-child(2) {
  22255. background: #f7f6f9;
  22256. width: 400px;
  22257. min-height: 45px;
  22258. border-radius: 10px;
  22259. font-size: 16px;
  22260. display: flex;
  22261. flex-wrap: wrap;
  22262. align-items: center;
  22263. padding: 10px 20px;
  22264. box-sizing: border-box;
  22265. color: #000;
  22266. }
  22267. .bz {
  22268. display: flex;
  22269. flex-direction: row;
  22270. flex-wrap: nowrap;
  22271. align-items: flex-start;
  22272. }
  22273. .bz > div {
  22274. padding: 0 10px;
  22275. }
  22276. .select_box2_title {
  22277. background: #fff;
  22278. border-radius: 5px;
  22279. padding: 15px 10px;
  22280. box-sizing: border-box;
  22281. margin-bottom: 10px;
  22282. display: flex;
  22283. flex-direction: row;
  22284. flex-wrap: nowrap;
  22285. align-items: center;
  22286. }
  22287. .select_box2_title > div:nth-child(2) {
  22288. margin-left: 10px;
  22289. color: #c4c4c4;
  22290. }
  22291. .select_box2_box {
  22292. display: flex;
  22293. height: 500px;
  22294. }
  22295. .select_box2_img {
  22296. width: calc(100% - 310px);
  22297. height: 100%;
  22298. overflow: auto;
  22299. background: #fff;
  22300. border-radius: 5px;
  22301. }
  22302. .select_box2_img img {
  22303. width: 100%;
  22304. }
  22305. .select_box2_answer {
  22306. background: #fff;
  22307. margin-left: 10px;
  22308. border-radius: 5px;
  22309. width: 300px;
  22310. overflow: auto;
  22311. height: 90%;
  22312. display: flex;
  22313. flex-direction: column;
  22314. align-items: flex-start;
  22315. padding-top: 10px;
  22316. box-sizing: border-box;
  22317. position: relative;
  22318. }
  22319. .select_answer_title {
  22320. padding: 0 0 15px 20px;
  22321. color: #c4c4c4;
  22322. }
  22323. .select_box2_answer_box {
  22324. margin: 0 0 10px 20px;
  22325. width: 85%;
  22326. display: flex;
  22327. flex-direction: row;
  22328. flex-wrap: nowrap;
  22329. align-items: center;
  22330. }
  22331. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22332. color: #000;
  22333. }
  22334. .upAnswerCss {
  22335. position: absolute;
  22336. bottom: 15px;
  22337. right: 15px;
  22338. }
  22339. .upAnswerCss >>> .el-button {
  22340. width: 95px;
  22341. height: 35px;
  22342. line-height: 35px;
  22343. padding: 0;
  22344. }
  22345. .rightWidthCss {
  22346. width: 60%;
  22347. display: flex;
  22348. flex-direction: row;
  22349. align-items: flex-start;
  22350. }
  22351. .rightAnswer {
  22352. display: flex;
  22353. flex-direction: row;
  22354. flex-wrap: nowrap;
  22355. align-items: center;
  22356. color: red;
  22357. margin-bottom: 31px;
  22358. }
  22359. .rightAnswerCss {
  22360. display: flex;
  22361. flex-direction: column;
  22362. flex-wrap: nowrap;
  22363. padding-top: 60px;
  22364. }
  22365. .blueCss {
  22366. color: #767de1;
  22367. margin-left: 10px;
  22368. }
  22369. .redCss {
  22370. color: red;
  22371. }
  22372. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22373. color: rgb(0 123 255) !important;
  22374. }
  22375. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22376. color: rgb(0 123 255) !important;
  22377. }
  22378. .zuoyeYulan {
  22379. padding-top: 0;
  22380. font-size: 18px;
  22381. display: flex;
  22382. align-items: flex-end;
  22383. }
  22384. .buttonA {
  22385. margin-left: 10px;
  22386. padding: 0;
  22387. }
  22388. .displayBox {
  22389. margin-bottom: 10px;
  22390. display: block;
  22391. border-bottom: 3px solid #eee;
  22392. display: flex;
  22393. align-items: center;
  22394. }
  22395. .easy_comment {
  22396. width: calc(100% - 90px);
  22397. margin-left: 10px;
  22398. display: flex;
  22399. flex-wrap: wrap;
  22400. }
  22401. .easy_comment > div {
  22402. border: 1px solid #4a4a4a;
  22403. color: #666;
  22404. border-radius: 15px;
  22405. padding: 5px 10px;
  22406. font-size: 16px;
  22407. margin-bottom: 10px;
  22408. margin-right: 5px;
  22409. cursor: pointer;
  22410. }
  22411. .easy_comment div:hover {
  22412. border: 1px solid #f7ba2a;
  22413. color: #c69217;
  22414. }
  22415. .xuan_right_box {
  22416. padding: 10px 0;
  22417. background: #f0f4fa;
  22418. margin: 0 15px 0 25px;
  22419. border-bottom-left-radius: 5px;
  22420. border-bottom-right-radius: 5px;
  22421. width: 91.5%;
  22422. }
  22423. .tool_right_box {
  22424. display: flex;
  22425. align-items: center;
  22426. }
  22427. .tool_right_box + .tool_right_box {
  22428. margin-top: 10px;
  22429. }
  22430. .right_box_xuan {
  22431. border-radius: 5px;
  22432. padding: 5px;
  22433. margin-left: 10px;
  22434. min-width: 85px;
  22435. background: #fff;
  22436. color: #0061ff;
  22437. border: 1px solid #0061ff;
  22438. font-size: 14px;
  22439. }
  22440. .pButton:hover {
  22441. opacity: 1 !important;
  22442. }
  22443. .pButton {
  22444. position: fixed;
  22445. text-align: center;
  22446. cursor: pointer;
  22447. z-index: 999;
  22448. right: 20px;
  22449. top: 110px;
  22450. width: 50px;
  22451. height: 50px;
  22452. display: flex;
  22453. align-items: center;
  22454. justify-content: center;
  22455. border-radius: 5px;
  22456. }
  22457. .pzClass {
  22458. width: calc(100% - 340px);
  22459. }
  22460. .newDialogCss {
  22461. /* position: fixed;
  22462. right: 5%;
  22463. top: 50%;
  22464. width: 340px;
  22465. transform: translateY(-50%);
  22466. height: 60%;
  22467. box-shadow: 0px 0 8px 0px #555555;
  22468. border-radius: 15px;
  22469. z-index: 999; */
  22470. position: fixed;
  22471. right: 20px;
  22472. top: 101px;
  22473. width: 330px;
  22474. height: calc(100% - 80px);
  22475. z-index: 999;
  22476. background: #fff;
  22477. border-top-right-radius: 0px;
  22478. border-bottom-right-radius: 0px;
  22479. overflow: hidden;
  22480. }
  22481. .newDialogCss>.scoreList{
  22482. width:100%;
  22483. height:100%;
  22484. box-sizing:border-box;
  22485. padding:10px 15px;
  22486. overflow:auto;
  22487. padding-bottom:80px;
  22488. }
  22489. .pzTop {
  22490. color: #fff;
  22491. background: #000;
  22492. display: flex;
  22493. flex-direction: row;
  22494. flex-wrap: nowrap;
  22495. align-items: center;
  22496. justify-content: space-between;
  22497. height: 40px;
  22498. border-radius: 15px 15px 0 0;
  22499. user-select: none;
  22500. }
  22501. .pzTop2 .checkbox {
  22502. display: flex;
  22503. align-items: center;
  22504. padding: 5px 10px;
  22505. flex: 0 0 auto;
  22506. font-weight: bold;
  22507. border-bottom: 1px solid #eee;
  22508. justify-content: space-between;
  22509. }
  22510. .checkbox>.cb-tabList{
  22511. display:flex;
  22512. align-items:center;
  22513. }
  22514. .cb-tabList>div{
  22515. margin-right:20px;
  22516. font-weight:400;
  22517. cursor:pointer;
  22518. }
  22519. .cb-tabList>.cb-tabItem{
  22520. color:#1684FC;
  22521. position:relative;
  22522. }
  22523. .cb-tabItem::after{
  22524. content:"";
  22525. width:100%;
  22526. height:2px;
  22527. background:#1684FC;
  22528. position:absolute;
  22529. bottom:-5px;
  22530. left:0
  22531. }
  22532. .pzTop2 .check {
  22533. text-align: center;
  22534. cursor: pointer;
  22535. box-sizing: border-box;
  22536. display: flex;
  22537. }
  22538. .pzTop2 img {
  22539. width: 25px;
  22540. cursor: pointer;
  22541. }
  22542. .pzTop > div:nth-child(1) {
  22543. padding-left: 10px;
  22544. }
  22545. .pzTop > div:nth-child(2) {
  22546. width: 15px;
  22547. height: 15px;
  22548. padding-right: 10px;
  22549. cursor: pointer;
  22550. }
  22551. .pzTop > div:nth-child(2) > img {
  22552. width: 100%;
  22553. height: 100%;
  22554. }
  22555. .pzBox,
  22556. .noPzBox {
  22557. height: calc(100% - 60px);
  22558. /* background: #ededed; */
  22559. background: #fff;
  22560. /* border-radius: 0 0 15px 15px; */
  22561. }
  22562. .noPzBox {
  22563. display: flex;
  22564. flex-direction: column;
  22565. flex-wrap: nowrap;
  22566. justify-content: center;
  22567. align-items: center;
  22568. }
  22569. .pzList {
  22570. background: #f7f7f7;
  22571. width: 90%;
  22572. margin: 0 auto 15px;
  22573. border-radius: 5px;
  22574. }
  22575. .pzNavTop {
  22576. display: flex;
  22577. flex-direction: row;
  22578. flex-wrap: nowrap;
  22579. padding: 10px 10px 0 10px;
  22580. align-items: center;
  22581. }
  22582. .pzDelete {
  22583. cursor: pointer;
  22584. margin-left: auto;
  22585. font-size: 14px;
  22586. color: #afafaf;
  22587. }
  22588. .pzNavTop > div:nth-child(1) {
  22589. background: #3760af;
  22590. width: 35px;
  22591. height: 35px;
  22592. color: #fff;
  22593. text-align: center;
  22594. line-height: 35px;
  22595. border-radius: 50%;
  22596. font-size: 14px;
  22597. }
  22598. .pzNavTop > div:nth-child(2) {
  22599. font-size: 18px;
  22600. color: #959595;
  22601. margin-left: 5px;
  22602. }
  22603. .pzContent {
  22604. padding: 10px;
  22605. word-break: break-word;
  22606. }
  22607. .pzContent audio {
  22608. width: 100%;
  22609. }
  22610. .pzContent audio::-webkit-media-controls-panel {
  22611. background: #fff;
  22612. }
  22613. .pzContent >>> img {
  22614. max-width: 100%;
  22615. }
  22616. .pzListBox {
  22617. padding-top: 15px;
  22618. height: calc(100% - 110px);
  22619. overflow: auto;
  22620. }
  22621. .addPzButton {
  22622. position: relative;
  22623. margin-top: 3px;
  22624. width: 100%;
  22625. }
  22626. .addPzButton .img1 {
  22627. position: absolute;
  22628. top: 50%;
  22629. right: 25px;
  22630. transform: translateY(-50%);
  22631. height: 100%;
  22632. display: flex;
  22633. align-items: center;
  22634. }
  22635. .addPzButton .img1 div {
  22636. display: flex;
  22637. }
  22638. .addPzButton .img1 div img {
  22639. width: 28px;
  22640. margin-left: 10px;
  22641. cursor: pointer;
  22642. }
  22643. .addPzButton .img1 div span {
  22644. font-size: 14px;
  22645. margin: 4px 0 0 3px;
  22646. color: #afafaf;
  22647. }
  22648. .addPz {
  22649. background: #4b79ce;
  22650. width: 100px;
  22651. color: #fff;
  22652. font-size: 12px;
  22653. height: 30px;
  22654. margin: 0 auto;
  22655. text-align: center;
  22656. line-height: 30px;
  22657. border-radius: 10px;
  22658. cursor: pointer;
  22659. }
  22660. .addDialogCss {
  22661. position: fixed;
  22662. width: 600px;
  22663. height: 70%;
  22664. min-height: 450px;
  22665. box-shadow: 0px 0 8px 0px #555555;
  22666. border-radius: 15px;
  22667. z-index: 999;
  22668. left: 50%;
  22669. top: 50%;
  22670. margin: -18% 0 0 -300px;
  22671. }
  22672. .teacherPz {
  22673. display: flex;
  22674. flex-direction: row;
  22675. align-items: center;
  22676. flex-wrap: nowrap;
  22677. }
  22678. .teacherPzImg {
  22679. width: 30px;
  22680. height: 30px;
  22681. }
  22682. .teacherPzImg > img {
  22683. width: 100%;
  22684. height: 100%;
  22685. }
  22686. .addPzBox {
  22687. height: calc(100% - 40px);
  22688. background: #ededed;
  22689. border-bottom-left-radius: 15px;
  22690. border-bottom-right-radius: 15px;
  22691. }
  22692. .pzAudioClass {
  22693. margin: 15px 14px;
  22694. background: #fff;
  22695. height: 100%;
  22696. display: flex;
  22697. justify-content: center;
  22698. align-items: center;
  22699. }
  22700. .pzConText {
  22701. width: 95%;
  22702. height: 100%;
  22703. margin: 10px auto 0;
  22704. border: none;
  22705. background: #fff;
  22706. border-radius: 0px;
  22707. }
  22708. .pzConText >>> .text {
  22709. height: calc(100% - 82px);
  22710. }
  22711. .addTextCss {
  22712. background: #4b79ce;
  22713. width: 80px;
  22714. height: 30px;
  22715. text-align: center;
  22716. color: #fff;
  22717. line-height: 30px;
  22718. border-radius: 10px;
  22719. margin: 10px auto 0;
  22720. cursor: pointer;
  22721. }
  22722. .pzConText:focus-visible {
  22723. border: none !important;
  22724. }
  22725. .maxWidth {
  22726. width: 1000px;
  22727. }
  22728. .noPz {
  22729. width: 150px;
  22730. margin: 0 auto 20%;
  22731. }
  22732. .noPz > img {
  22733. width: 100%;
  22734. height: 100%;
  22735. }
  22736. .timeAndReply {
  22737. display: flex;
  22738. flex-direction: row;
  22739. flex-wrap: nowrap;
  22740. justify-content: space-between;
  22741. align-items: center;
  22742. font-size: 14px;
  22743. box-sizing: border-box;
  22744. padding: 0 10px 10px 0px;
  22745. }
  22746. .timeAndReply .time {
  22747. color: #bfbfbf;
  22748. padding: 0 0 0 10px;
  22749. box-sizing: border-box;
  22750. }
  22751. .timeAndReply > div:last-child {
  22752. cursor: pointer;
  22753. color: #777;
  22754. }
  22755. /* table 样式 */
  22756. .cont >>> table {
  22757. border-top: 1px solid #ccc;
  22758. border-left: 1px solid #ccc;
  22759. }
  22760. .cont >>> table td,
  22761. .cont >>> table th {
  22762. border-bottom: 1px solid #ccc;
  22763. border-right: 1px solid #ccc;
  22764. /* padding: 20px 5px; */
  22765. padding: 5px 10px;
  22766. max-width: 0px;
  22767. height: 30px;
  22768. vertical-align: baseline;
  22769. box-sizing: border-box;
  22770. }
  22771. .cont >>> table th {
  22772. border-bottom: 2px solid #ccc;
  22773. text-align: center;
  22774. }
  22775. /* blockquote 样式 */
  22776. .cont >>> blockquote {
  22777. display: block;
  22778. border-left: 8px solid #d0e5f2;
  22779. padding: 5px 10px;
  22780. margin: 10px 0;
  22781. line-height: 1.4;
  22782. font-size: 100%;
  22783. background-color: #f1f1f1;
  22784. }
  22785. /* code 样式 */
  22786. .cont >>> code {
  22787. display: inline-block;
  22788. /* *display: inline; */
  22789. zoom: 1;
  22790. background-color: #f1f1f1;
  22791. border-radius: 3px;
  22792. padding: 3px 5px;
  22793. margin: 0 3px;
  22794. }
  22795. .cont >>> pre code {
  22796. display: block;
  22797. }
  22798. /* ul ol 样式 */
  22799. .cont >>> ul,
  22800. ol {
  22801. margin: 10px 0 10px 20px;
  22802. }
  22803. .addPzCheck {
  22804. display: flex;
  22805. flex-direction: row;
  22806. flex-wrap: nowrap;
  22807. padding: 10px 15px 0;
  22808. }
  22809. .addPzCheck span {
  22810. cursor: pointer;
  22811. padding-bottom: 5px;
  22812. font-weight: bold;
  22813. }
  22814. .addPzCheck span + span {
  22815. margin-left: 10px;
  22816. }
  22817. .addPzCheck .isChooseActive {
  22818. color: #3e88f4;
  22819. border-bottom: 2px solid #2f80f3;
  22820. }
  22821. /* code 样式 */
  22822. .cont {
  22823. /* -webkit-user-modify: read-write; */
  22824. overflow-wrap: break-word;
  22825. -webkit-line-break: after-white-space;
  22826. word-break: break-word;
  22827. white-space: pre-line;
  22828. }
  22829. .scoreBox,
  22830. .scoreDetailBox {
  22831. display: flex;
  22832. align-items: center;
  22833. justify-content: flex-start;
  22834. margin-top: 20px;
  22835. font-size: 18px;
  22836. width: 100%;
  22837. }
  22838. .scoreBox .t,
  22839. .scoreDetailBox .t {
  22840. margin-right: 10px;
  22841. width: 100px;
  22842. text-align: right;
  22843. }
  22844. .scoreDetailBox {
  22845. align-items: flex-start;
  22846. }
  22847. .scoreDetailBox >>> .el-textarea {
  22848. width: calc(100% - 200px);
  22849. }
  22850. .scoreBox >>> .el-input {
  22851. width: 130px;
  22852. font-size: 38px;
  22853. }
  22854. .scoreBox >>> .el-input__inner {
  22855. height: 60px;
  22856. }
  22857. .answerScore {
  22858. position: absolute;
  22859. top: 10px;
  22860. right: 10px;
  22861. background: #0000008f;
  22862. border-radius: 5px;
  22863. padding: 3px 5px;
  22864. font-size: 14px;
  22865. color: #fff;
  22866. cursor: pointer;
  22867. }
  22868. .open_box .switch_box {
  22869. width: 100%;
  22870. margin: 0 auto;
  22871. display: flex;
  22872. justify-content: space-between;
  22873. }
  22874. .open_box .switch_box + .switch_box {
  22875. margin-top: 10px;
  22876. }
  22877. .deleteImg,.deleteImg1 {
  22878. width: 25px !important;
  22879. height: 25px !important;
  22880. cursor: pointer;
  22881. position: absolute;
  22882. top: 10px;
  22883. right: 10px;
  22884. }
  22885. .deleteImg2 {
  22886. width: 23px !important;
  22887. height: 23px !important;
  22888. top: 5px;
  22889. right: 5px;
  22890. }
  22891. .deleteImg1{
  22892. width: 23px !important;
  22893. height: 23px !important;
  22894. top: 5px !important;
  22895. right: 30px !important;
  22896. }
  22897. .rightW {
  22898. right: 40px;
  22899. }
  22900. .drawPBox {
  22901. display: flex;
  22902. flex-direction: column;
  22903. position: relative;
  22904. }
  22905. .drawPBox span {
  22906. font-size: 18px;
  22907. color: #606266;
  22908. padding-bottom: 10px;
  22909. margin: 10px 0;
  22910. border-bottom: 1px solid #eaeaea;
  22911. }
  22912. .drawPBox img {
  22913. width: 500px;
  22914. height: 300px;
  22915. object-fit: contain;
  22916. cursor: pointer;
  22917. margin: 0 auto;
  22918. }
  22919. .sentenBox {
  22920. background: #fff;
  22921. height: 450px;
  22922. overflow: auto;
  22923. background-image: url("../../assets/icon/conSentences/stuBg.png");
  22924. background-position: 102%;
  22925. background-repeat: no-repeat;
  22926. background-size: 60%;
  22927. }
  22928. .addSen {
  22929. background: #409efe;
  22930. width: 90px;
  22931. color: #fff;
  22932. height: 35px;
  22933. text-align: center;
  22934. line-height: 35px;
  22935. border-radius: 5px;
  22936. float: right;
  22937. margin: 10px 20px 0 0;
  22938. cursor: pointer;
  22939. }
  22940. .sentenTop {
  22941. display: flex;
  22942. flex-direction: row;
  22943. flex-wrap: nowrap;
  22944. align-items: center;
  22945. padding: 55px 0 0 20px;
  22946. box-sizing: border-box;
  22947. }
  22948. .sentenTop > div:nth-child(2) {
  22949. width: 300px;
  22950. margin: 0 15px;
  22951. }
  22952. .sentenTop > div:nth-child(3) {
  22953. background: #409efe;
  22954. color: #fff;
  22955. width: 65px;
  22956. height: 35px;
  22957. text-align: center;
  22958. line-height: 35px;
  22959. border-radius: 5px;
  22960. cursor: pointer;
  22961. }
  22962. .cardList,
  22963. .cardList1 {
  22964. padding: 10px 0 10px 0;
  22965. display: flex;
  22966. flex-direction: row;
  22967. flex-wrap: wrap;
  22968. align-items: center;
  22969. box-sizing: border-box;
  22970. border-bottom: 1px solid #f4f4f4;
  22971. width: 98%;
  22972. margin: 0 auto;
  22973. min-width: 60%;
  22974. max-width: 85%;
  22975. }
  22976. .cardList1 {
  22977. padding: 10px 0 10px 10px !important;
  22978. margin: 0 !important;
  22979. }
  22980. .cardBox {
  22981. display: flex;
  22982. flex-direction: row;
  22983. flex-wrap: wrap;
  22984. align-items: center;
  22985. align-content: center;
  22986. }
  22987. .cardBox > div {
  22988. margin-bottom: 10px;
  22989. }
  22990. .isCard,
  22991. .isChooseCard,
  22992. .noCard,
  22993. .isCard1 {
  22994. min-width: 130px;
  22995. width: auto;
  22996. height: 60px;
  22997. text-align: center;
  22998. line-height: 60px;
  22999. font-size: 20px;
  23000. cursor: pointer;
  23001. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  23002. background-size: cover;
  23003. transition: all 2s;
  23004. margin-right: 20px;
  23005. background-size: 100% 100%;
  23006. padding: 0 20px;
  23007. box-sizing: border-box;
  23008. }
  23009. .isCard > div,
  23010. .noCard > div,
  23011. .isCard1 > div {
  23012. white-space: nowrap;
  23013. overflow: hidden;
  23014. text-overflow: ellipsis;
  23015. width: 100%;
  23016. margin: 0 auto;
  23017. }
  23018. .noCard {
  23019. background-image: none;
  23020. }
  23021. .isCard1 {
  23022. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  23023. }
  23024. .isChooseCard {
  23025. background-image: none;
  23026. border: 1px dashed #b9b9b9;
  23027. border-radius: 10px;
  23028. }
  23029. .card {
  23030. width: 130px;
  23031. height: 60px;
  23032. }
  23033. .card > img {
  23034. width: 100%;
  23035. height: 100%;
  23036. }
  23037. .rightCardBox {
  23038. margin: 10px 0 0 10px;
  23039. }
  23040. .rightCardBox > div:nth-child(1) {
  23041. margin-bottom: 10px;
  23042. }
  23043. .cardCss {
  23044. display: flex;
  23045. flex-direction: column;
  23046. flex-wrap: nowrap;
  23047. align-items: center;
  23048. border-bottom: 3px solid #b4c3d3;
  23049. padding: 0 0 5px 0;
  23050. margin-right: 10px;
  23051. }
  23052. .cardCss > div:nth-child(2) {
  23053. background: #5b7b9d;
  23054. color: #fff;
  23055. width: 20px;
  23056. height: 20px;
  23057. border-radius: 50%;
  23058. text-align: center;
  23059. line-height: 20px;
  23060. }
  23061. .isWrong {
  23062. display: flex;
  23063. flex-direction: row;
  23064. flex-wrap: nowrap;
  23065. align-content: center;
  23066. align-items: center;
  23067. }
  23068. .answerRight {
  23069. width: 25%;
  23070. }
  23071. .isTj {
  23072. display: flex;
  23073. flex-direction: row;
  23074. flex-wrap: nowrap;
  23075. align-items: center;
  23076. }
  23077. .isTj > div:nth-child(2) {
  23078. color: #727070;
  23079. margin-left: 10px;
  23080. }
  23081. .isTjImg {
  23082. width: 30px;
  23083. height: 30px;
  23084. }
  23085. .isTjImg > img {
  23086. width: 100%;
  23087. height: 100%;
  23088. }
  23089. .cardAnswerBox {
  23090. font-size: 18px;
  23091. width: 97%;
  23092. border: 5px;
  23093. padding: 0;
  23094. border-radius: 5px;
  23095. margin: 10px auto;
  23096. word-break: break-word;
  23097. }
  23098. .w_name {
  23099. margin-bottom: 10px;
  23100. }
  23101. .w_name span {
  23102. font-size: 16px;
  23103. }
  23104. .w_teachert {
  23105. width: 50px !important;
  23106. position: absolute;
  23107. height: auto !important;
  23108. z-index: 10;
  23109. right: 25px;
  23110. top: -25px;
  23111. }
  23112. .group_workBox {
  23113. }
  23114. .group_workBox + .group_workBox {
  23115. margin-top: 20px;
  23116. }
  23117. .group_box {
  23118. padding-bottom: 20px;
  23119. border-bottom: 2px solid #f0f0f0;
  23120. margin-top: 10px;
  23121. }
  23122. .group_title {
  23123. display: flex;
  23124. align-items: center;
  23125. justify-content: space-between;
  23126. width: 95%;
  23127. }
  23128. .group_name {
  23129. background-image: url(../../assets/icon/groupN.png);
  23130. width: 220px;
  23131. background-size: 100% 100%;
  23132. height: 67px;
  23133. padding: 0 20px 0 43px;
  23134. box-sizing: border-box;
  23135. line-height: 63px;
  23136. color: #fff;
  23137. overflow: hidden;
  23138. white-space: nowrap;
  23139. text-overflow: ellipsis;
  23140. }
  23141. .group_work {
  23142. width: 100%;
  23143. padding: 0 10px;
  23144. box-sizing: border-box;
  23145. display: flex;
  23146. flex-wrap: wrap;
  23147. }
  23148. .g_d_box {
  23149. display: flex;
  23150. flex-flow: wrap;
  23151. justify-content: space-around;
  23152. }
  23153. .g_d_box .isChair {
  23154. background-image: url(../../assets/avatar.png) !important;
  23155. }
  23156. .g_d_group {
  23157. width: 500px;
  23158. margin-bottom: 80px;
  23159. }
  23160. .g_d_group_chair {
  23161. display: flex;
  23162. align-items: center;
  23163. justify-content: center;
  23164. }
  23165. .g_d_group_chair > div + div {
  23166. margin-left: 30px;
  23167. }
  23168. .g_d_group_chair > div,
  23169. .g_d_group_chair2 > div {
  23170. display: flex;
  23171. flex-direction: column;
  23172. align-items: center;
  23173. }
  23174. .g_d_group_chair > div > span:nth-child(1),
  23175. .g_d_group_chair2 > div > span:nth-child(1) {
  23176. background-image: url(../../assets/icon/chair.png);
  23177. width: 50px;
  23178. height: 50px;
  23179. display: block;
  23180. background-size: 100% 100%;
  23181. }
  23182. .g_d_group_tableBox {
  23183. display: flex;
  23184. align-items: center;
  23185. justify-content: center;
  23186. }
  23187. .g_d_group_chair2 {
  23188. display: flex;
  23189. flex-direction: column;
  23190. align-items: center;
  23191. justify-content: center;
  23192. }
  23193. .g_d_group_chair2 > div + div {
  23194. margin-top: 10px;
  23195. }
  23196. .g_d_group_table {
  23197. background-image: url(../../assets/icon/groupBg.png);
  23198. width: 354px;
  23199. height: 196px;
  23200. background-size: 100% 100%;
  23201. display: flex;
  23202. align-items: center;
  23203. justify-content: center;
  23204. flex-direction: column;
  23205. color: #fff;
  23206. }
  23207. .g_d_group_table > div:nth-child(1) {
  23208. font-size: 24px;
  23209. margin-bottom: 5px;
  23210. }
  23211. .g_d_group_table > div:nth-child(2) div {
  23212. cursor: pointer;
  23213. background: #2e77bf;
  23214. padding: 4px 10px;
  23215. border-radius: 5px;
  23216. }
  23217. .groupBox {
  23218. }
  23219. .groupContent + .groupContent {
  23220. margin-top: 30px;
  23221. }
  23222. .groupTitle {
  23223. font-size: 24px;
  23224. color: rgb(80, 80, 80);
  23225. margin-bottom: 20px;
  23226. }
  23227. .groupName {
  23228. display: flex;
  23229. align-items: center;
  23230. }
  23231. .groupn {
  23232. font-size: 15px;
  23233. margin-right: 10px;
  23234. }
  23235. .groupName + .groupName {
  23236. margin-top: 15px;
  23237. }
  23238. .groupBtn {
  23239. margin-left: 10px;
  23240. }
  23241. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23242. text-align: left;
  23243. }
  23244. .g_d_btnBox {
  23245. display: flex;
  23246. justify-content: flex-end;
  23247. align-items: center;
  23248. margin-bottom: 20px;
  23249. }
  23250. .updateChair {
  23251. position: relative;
  23252. }
  23253. .updateChairBtn {
  23254. position: absolute;
  23255. width: 50px;
  23256. height: 50px;
  23257. overflow: hidden;
  23258. /* display: flex; */
  23259. align-items: center;
  23260. justify-content: center;
  23261. background: #00000087;
  23262. color: #fff;
  23263. border-radius: 50px;
  23264. display: none;
  23265. cursor: pointer;
  23266. }
  23267. .updateChair:hover .updateChairBtn {
  23268. display: flex;
  23269. }
  23270. .group_staic_box {
  23271. display: flex;
  23272. padding: 30px 40px 10px;
  23273. flex-wrap: wrap;
  23274. }
  23275. .group_staic {
  23276. /* width: 50%; */
  23277. margin-bottom: 20px;
  23278. display: flex;
  23279. align-items: center;
  23280. }
  23281. .group_staic span:nth-child(1) {
  23282. width: 150px;
  23283. text-align: right;
  23284. margin-right: 15px;
  23285. }
  23286. .group_staic span:nth-child(2) {
  23287. background: rgb(0 123 255);
  23288. color: #fff;
  23289. border-radius: 5px;
  23290. padding: 5px;
  23291. }
  23292. .codeFileBox {
  23293. height: 300px;
  23294. background: #fff;
  23295. display: flex;
  23296. align-items: center;
  23297. justify-content: center;
  23298. }
  23299. .codeFileBox img {
  23300. width: 200px;
  23301. margin: 0;
  23302. height: auto;
  23303. }
  23304. .codeFileBox div {
  23305. background: rgb(80, 142, 226);
  23306. color: #fff;
  23307. padding: 10px 20px;
  23308. border-radius: 25px;
  23309. cursor: pointer;
  23310. margin-left: 15px;
  23311. }
  23312. .radioBox {
  23313. display: flex;
  23314. flex-direction: column;
  23315. flex-wrap: nowrap;
  23316. align-items: flex-start;
  23317. }
  23318. .radioBox > div {
  23319. margin: 10px 0 0 10px;
  23320. }
  23321. /* .radioBox >>> .el-radio__input,
  23322. .radioBox >>> .el-checkbox__inner {
  23323. margin-left: 10px;
  23324. } */
  23325. .radioBox >>> .el-radio__label,
  23326. .radioBox >>> .el-checkbox__label {
  23327. display: flex;
  23328. align-items: center;
  23329. width: 100%;
  23330. }
  23331. .radioBox >>> .el-radio__label > span {
  23332. width: 100%;
  23333. display: -webkit-box;
  23334. overflow: hidden;
  23335. white-space: normal !important;
  23336. text-overflow: ellipsis;
  23337. word-wrap: break-word;
  23338. }
  23339. .inImg {
  23340. width: 100px;
  23341. cursor: pointer;
  23342. }
  23343. .inImg > img {
  23344. width: 100%;
  23345. height: 100%;
  23346. object-fit: cover;
  23347. }
  23348. .timuImgBox {
  23349. margin: 10px 0;
  23350. display: flex;
  23351. flex-direction: column;
  23352. flex-wrap: wrap;
  23353. align-items: flex-start;
  23354. }
  23355. .timuImg {
  23356. width: 150px;
  23357. margin: 5px 0;
  23358. cursor: pointer;
  23359. }
  23360. .timuImg > img {
  23361. width: 100%;
  23362. height: 100%;
  23363. object-fit: cover;
  23364. }
  23365. .worksTop {
  23366. display: flex;
  23367. flex-direction: row;
  23368. align-items: flex-end;
  23369. }
  23370. .worksTitle {
  23371. display: flex;
  23372. flex-direction: row;
  23373. flex-wrap: nowrap;
  23374. align-items: center;
  23375. }
  23376. .worksTitle::before,
  23377. .worksTop::before {
  23378. content: "";
  23379. display: block;
  23380. width: 3px;
  23381. height: 20px;
  23382. background: #0061ff;
  23383. border-radius: 3px;
  23384. margin: 0 5px 0 0;
  23385. }
  23386. .corOpen {
  23387. margin: 0 0 0 10px;
  23388. font-size: 14px;
  23389. cursor: pointer;
  23390. color: #505050;
  23391. }
  23392. .corOpen:hover {
  23393. color: #499eef;
  23394. }
  23395. .navCorOpenBox {
  23396. display: flex;
  23397. flex-direction: row;
  23398. align-items: center;
  23399. justify-content: space-between;
  23400. height: 55px;
  23401. background: #ffffff;
  23402. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23403. border-radius: 8px 8px 0px 0px;
  23404. z-index: 9;
  23405. position: relative;
  23406. }
  23407. .navCorOpen {
  23408. padding-right: 15px;
  23409. cursor: pointer;
  23410. width: 45px;
  23411. display: flex;
  23412. }
  23413. .navCorOpen > img {
  23414. width: 100%;
  23415. height: 100%;
  23416. }
  23417. .mlImg {
  23418. width: 40px !important;
  23419. min-width: 40px;
  23420. cursor: pointer;
  23421. transform: rotate(180deg);
  23422. }
  23423. .mlImg > img {
  23424. width: 100%;
  23425. height: 100%;
  23426. }
  23427. .navLeftCss {
  23428. width: 100% !important;
  23429. left: 0 !important;
  23430. }
  23431. .isContentCss {
  23432. width: 100% !important;
  23433. }
  23434. .isAllWidth {
  23435. width: 100% !important;
  23436. }
  23437. .group_switch {
  23438. margin-right: 10px;
  23439. height: 30px;
  23440. display: flex;
  23441. align-items: center;
  23442. }
  23443. .group_switch > span {
  23444. margin-right: 5px;
  23445. }
  23446. .fileC_box {
  23447. padding-top: 15px;
  23448. }
  23449. .fileC_box > .fileC_title {
  23450. padding: 10px 5px 14px 10px;
  23451. border-top: 1px solid #cad1dc;
  23452. font-size: 14px;
  23453. font-weight: 400;
  23454. color: #cad1dc;
  23455. width: calc(100% - 20px);
  23456. margin: 0 auto;
  23457. box-sizing: border-box;
  23458. }
  23459. .pl_select_box {
  23460. height: 40px;
  23461. line-height: 40px;
  23462. width: 100%;
  23463. cursor: pointer;
  23464. padding: 0 20px;
  23465. box-sizing: border-box;
  23466. border-radius: 5px;
  23467. border: 1px solid #d6d6d6;
  23468. white-space: nowrap;
  23469. overflow: hidden;
  23470. text-overflow: ellipsis;
  23471. background: #fff;
  23472. text-align: left;
  23473. }
  23474. .newButton {
  23475. width: 102px;
  23476. height: 36px;
  23477. background: #e7ebf1;
  23478. border-radius: 4px;
  23479. color: #0e1e33;
  23480. font-weight: 400;
  23481. font-size: 14px;
  23482. border: none;
  23483. float: right;
  23484. margin-left: 10px;
  23485. }
  23486. .el-table >>> .even_row {
  23487. background-color: #f0f4fa;
  23488. }
  23489. .stageBoxCss,
  23490. .stageBoxIsCss {
  23491. display: flex;
  23492. flex-direction: row;
  23493. flex-wrap: nowrap;
  23494. align-items: center;
  23495. height: 50px;
  23496. border-bottom: 1px solid #e2f5fc;
  23497. cursor: pointer;
  23498. width: 100%;
  23499. }
  23500. .stageBoxIsCss {
  23501. background: #0061ff;
  23502. color: #fff;
  23503. border-radius: 8px;
  23504. }
  23505. .closeTri,
  23506. .closeTri1 {
  23507. min-width: 15px;
  23508. width: 15px;
  23509. height: 15px;
  23510. }
  23511. .closeTri1 {
  23512. padding-left: 10px;
  23513. cursor: pointer;
  23514. }
  23515. .closeTri > img,
  23516. .closeTri1 > img {
  23517. width: 100%;
  23518. height: 100%;
  23519. /* transition: all .5s; */
  23520. }
  23521. .noToolBlue {
  23522. min-width: 10px;
  23523. width: 10px;
  23524. height: 10px;
  23525. background: #0061ff;
  23526. border-radius: 50%;
  23527. margin-left: 13px;
  23528. }
  23529. .stageChild,
  23530. .toolChild {
  23531. height: 0;
  23532. overflow: hidden;
  23533. transition: all 0.5s;
  23534. }
  23535. .toolChild {
  23536. /* margin: 0 0 0 17px;
  23537. padding: 0 0 0 20px;
  23538. border-left: 1px solid #d7d7d7; */
  23539. }
  23540. .toolChild > div + div{
  23541. margin-top:5px;
  23542. }
  23543. .gjCss {
  23544. display: flex;
  23545. flex-direction: row;
  23546. flex-wrap: nowrap;
  23547. align-items: center;
  23548. padding: 10px 0 10px 40px;
  23549. box-sizing: border-box;
  23550. font-size: 14px;
  23551. cursor: pointer;
  23552. border-radius:5px;
  23553. }
  23554. .toolChild > div {
  23555. position: relative;
  23556. width: 100%;
  23557. }
  23558. .toolChild > div::before {
  23559. /* content: "";
  23560. width: 15px;
  23561. height: 1px;
  23562. background: #cad1dc;
  23563. position: absolute;
  23564. top: 24px;
  23565. left: -20px;
  23566. display: block; */
  23567. }
  23568. .isGjCss {
  23569. /* color: #0061ff; */
  23570. color:#fff;
  23571. background: rgb(55, 129, 252);
  23572. /* background-color: #e0eafb !important;
  23573. color: #0061ff !important; */
  23574. }
  23575. .navItem {
  23576. background: #ffffff;
  23577. border-radius: 4px;
  23578. width: 100%;
  23579. margin: 10px auto;
  23580. position: relative;
  23581. height: 40px;
  23582. display: flex;
  23583. flex-direction: row;
  23584. flex-wrap: nowrap;
  23585. align-items: center;
  23586. }
  23587. .navItemList {
  23588. display: flex;
  23589. flex-direction: row;
  23590. flex-wrap: nowrap;
  23591. align-items: center;
  23592. padding: 0 13px;
  23593. cursor: pointer;
  23594. width: calc(100% - 60px);
  23595. height: 100%;
  23596. }
  23597. .navItemList > div:first-child {
  23598. min-width: 60px;
  23599. }
  23600. .navItemList > div:last-child {
  23601. width: calc(100% - 80px);
  23602. white-space: nowrap;
  23603. overflow: hidden;
  23604. text-overflow: ellipsis;
  23605. word-break: break-word;
  23606. }
  23607. /* .isItemList > div {
  23608. color: #fff !important;
  23609. } */
  23610. .tool_work_box {
  23611. width: 100%;
  23612. padding: 0 37px 0;
  23613. box-sizing: border-box;
  23614. }
  23615. .tool_box {
  23616. width: 100%;
  23617. padding: 0 0 0 20px;
  23618. }
  23619. .tool_type_box {
  23620. display: flex;
  23621. flex-direction: row;
  23622. align-items: baseline;
  23623. flex-wrap: nowrap;
  23624. justify-content: flex-start;
  23625. position: relative;
  23626. }
  23627. .toolSort {
  23628. display: flex;
  23629. flex-direction: row;
  23630. flex-wrap: wrap;
  23631. justify-content: flex-start;
  23632. align-items: flex-start;
  23633. padding: 0 0 15px 0;
  23634. }
  23635. .toolSort > div {
  23636. margin: 0 10px 0 0;
  23637. width: 135px;
  23638. box-sizing: border-box;
  23639. border: 2px solid transparent;
  23640. }
  23641. .tools {
  23642. width: 100%;
  23643. display: flex;
  23644. flex-direction: column;
  23645. flex-wrap: nowrap;
  23646. align-items: flex-start;
  23647. }
  23648. .whiteBIcon {
  23649. width: fit-content;
  23650. cursor: pointer;
  23651. display: flex;
  23652. flex-direction: column;
  23653. flex-wrap: nowrap;
  23654. align-items: center;
  23655. font-size: 14px;
  23656. }
  23657. .tool:hover {
  23658. border: 2px solid #a5c7ff;
  23659. border-radius: 5px;
  23660. }
  23661. .whiteBIcon > img {
  23662. width: 65px;
  23663. height: 100%;
  23664. }
  23665. .whiteBIcon > img {
  23666. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  23667. border-radius: 15px;
  23668. }
  23669. .check {
  23670. /* width: 20px;
  23671. height: 20px; */
  23672. cursor: pointer;
  23673. margin: 10px 0;
  23674. position: absolute;
  23675. right: 2px;
  23676. top: -5px;
  23677. }
  23678. .noChoose,
  23679. .isChoose {
  23680. width: 15px;
  23681. height: 15px;
  23682. border-radius: 50%;
  23683. border: 1px solid #adadad;
  23684. }
  23685. .isChoose {
  23686. border: 4px solid #0363ff !important;
  23687. width: 10px;
  23688. height: 10px;
  23689. }
  23690. .isToolChoose {
  23691. border: 2px solid #5394ff !important;
  23692. border-radius: 5px;
  23693. box-shadow: 0 0 6px 0px #5394ff;
  23694. }
  23695. .checkDiv {
  23696. display: flex;
  23697. align-items: center;
  23698. }
  23699. .checkDiv span {
  23700. margin-left: 5px;
  23701. color: #858585;
  23702. }
  23703. .check img {
  23704. width: 20px;
  23705. height: 20px;
  23706. }
  23707. .lockTaskIcon {
  23708. width: 20px;
  23709. height: 20px;
  23710. position: absolute;
  23711. right: 10px;
  23712. top: 10px;
  23713. }
  23714. .lockTaskIcon > img {
  23715. width: 100%;
  23716. height: 100%;
  23717. }
  23718. .pick_box {
  23719. display: flex;
  23720. align-items: flex-start;
  23721. flex-wrap: wrap;
  23722. }
  23723. .selectBox {
  23724. width: 110px;
  23725. margin-left: 10px;
  23726. margin: 0 10px 0 auto;
  23727. }
  23728. .selectBox >>> .el-input__inner {
  23729. height: 30px;
  23730. line-height: 30px;
  23731. }
  23732. .selectBox >>> .el-input__icon {
  23733. line-height: 30px;
  23734. }
  23735. .sentenceTitle {
  23736. display: flex;
  23737. flex-direction: row;
  23738. flex-wrap: nowrap;
  23739. align-items: center;
  23740. }
  23741. .sentenceTitle::before {
  23742. content: attr(index);
  23743. background: #3681fc;
  23744. border-radius: 50%;
  23745. color: #fff;
  23746. width: 25px;
  23747. height: 25px;
  23748. min-width: 25px;
  23749. min-height: 25px;
  23750. text-align: center;
  23751. line-height: 25px;
  23752. margin-right: 5px;
  23753. }
  23754. .hfBox {
  23755. padding: 10px;
  23756. box-sizing: border-box;
  23757. }
  23758. .whoReplyWho {
  23759. display: flex;
  23760. flex-direction: row;
  23761. flex-wrap: nowrap;
  23762. align-items: baseline;
  23763. justify-content: flex-start;
  23764. }
  23765. .hfBottom {
  23766. display: flex;
  23767. flex-direction: row;
  23768. flex-wrap: nowrap;
  23769. align-items: center;
  23770. justify-content: space-between;
  23771. font-size: 14px;
  23772. }
  23773. .deleteHfItem {
  23774. cursor: pointer;
  23775. width: 20px;
  23776. height: 20px;
  23777. }
  23778. .deleteHfItem > img {
  23779. width: 100%;
  23780. height: 100%;
  23781. }
  23782. .whoReplyWho > .hfImg {
  23783. width: 12px;
  23784. height: 12px;
  23785. margin: 0 5px;
  23786. }
  23787. .whoReplyWho > .hfImg > img {
  23788. width: 100%;
  23789. height: 100%;
  23790. }
  23791. .hfContent {
  23792. padding-top: 10px;
  23793. box-sizing: border-box;
  23794. display: -webkit-box;
  23795. overflow: hidden;
  23796. white-space: normal !important;
  23797. text-overflow: ellipsis;
  23798. word-wrap: break-word;
  23799. -webkit-box-orient: vertical;
  23800. }
  23801. .hfTime {
  23802. text-align: left;
  23803. box-sizing: border-box;
  23804. padding: 10px 0 10px 0px;
  23805. color: #bfbfbf;
  23806. font-size: 14px;
  23807. }
  23808. .btnAllNT {
  23809. position: fixed;
  23810. bottom: 100px;
  23811. right: 40px;
  23812. z-index: 999;
  23813. display: flex;
  23814. flex-direction: row;
  23815. }
  23816. .btnAllNT > img {
  23817. cursor: pointer;
  23818. width: 80px;
  23819. }
  23820. .toolMask {
  23821. position: fixed;
  23822. width: 100%;
  23823. height: 100%;
  23824. background: #3f3c3c;
  23825. opacity: 0.5;
  23826. top: 0;
  23827. left: 0;
  23828. z-index: 999;
  23829. }
  23830. .addToolCss {
  23831. position: fixed;
  23832. z-index: 999;
  23833. background: #fff;
  23834. right: 5%;
  23835. bottom: 18%;
  23836. min-width: 1035px;
  23837. min-height: 300px;
  23838. border-radius: 10px;
  23839. box-shadow: 0 0 8px 1px #b2b2b2;
  23840. }
  23841. .toolTop {
  23842. display: flex;
  23843. flex-direction: row;
  23844. flex-wrap: nowrap;
  23845. justify-content: space-between;
  23846. align-items: center;
  23847. padding: 20px;
  23848. }
  23849. .toolTop > div:nth-child(2) {
  23850. width: 15px;
  23851. height: 15px;
  23852. padding-right: 10px;
  23853. cursor: pointer;
  23854. }
  23855. .toolTop > div:nth-child(2) > img {
  23856. width: 100%;
  23857. height: 100%;
  23858. }
  23859. .fullStyle>>>.el-dialog__body {
  23860. height: calc(100% - 125px) !important;
  23861. box-sizing: border-box;
  23862. padding: 30px 0 !important;
  23863. background: #fff !important;
  23864. }
  23865. .fullStyle>>>.el-dialog {
  23866. width: 100% !important;
  23867. max-width: 100% !important;
  23868. height: 100% !important;
  23869. margin: 0 !important;
  23870. }
  23871. .fullStyle {
  23872. width: 100% !important;
  23873. max-width: 100% !important;
  23874. height: 100% !important;
  23875. margin: 0 auto !important;
  23876. }
  23877. .fullStyle>>>.el-dialog__footer{
  23878. background: #fff !important;
  23879. }
  23880. .engUpBox {
  23881. width: 100%;
  23882. height: 100%;
  23883. }
  23884. .engTitle,
  23885. .engText {
  23886. display: flex;
  23887. flex-direction: row;
  23888. flex-wrap: nowrap;
  23889. align-items: flex-start;
  23890. padding: 0 20px 20px 20px;
  23891. box-sizing: border-box;
  23892. }
  23893. .engTitle > .div:first-child,
  23894. .engText > div:first-child {
  23895. min-width: 75px;
  23896. }
  23897. .correctBox{
  23898. width: 100%;
  23899. display: flex;
  23900. flex-direction: row;
  23901. flex-wrap: nowrap;
  23902. align-items: flex-start;
  23903. }
  23904. .oldBox{
  23905. width: 50%;
  23906. height: 100%;
  23907. display: flex;
  23908. flex-direction: column;
  23909. flex-wrap: nowrap;
  23910. align-items: center;
  23911. border-top: 1px solid #d9d9d9;
  23912. border-left: 1px solid #d9d9d9;
  23913. border-right: 1px solid #d9d9d9;
  23914. }
  23915. .oldBox>div:first-child{
  23916. width: 100%;
  23917. text-align: center;
  23918. background: #d9d9d9;
  23919. height: 35px;
  23920. line-height: 35px;
  23921. font-weight: bold;
  23922. }
  23923. .oldText{
  23924. width: 100%;
  23925. height: calc(100% - 35px);
  23926. overflow: auto;
  23927. margin: 10px 0;
  23928. display: flex;
  23929. flex-direction: column;
  23930. flex-wrap: nowrap;
  23931. align-content: center;
  23932. align-items: center;
  23933. }
  23934. .detailBox{
  23935. width: 50%;
  23936. padding: 10px;
  23937. background: #f6f6f6;
  23938. border-radius: 5px;
  23939. }
  23940. .oldDetail,.oldDetail1{
  23941. padding-bottom: 30px;
  23942. }
  23943. .oldImg{
  23944. width:30px;
  23945. height: 30px;
  23946. }
  23947. .oldImg>img{
  23948. width: 100%;
  23949. height: 100%;
  23950. }
  23951. .allName{
  23952. min-width: 200px;
  23953. white-space: nowrap;
  23954. overflow: hidden;
  23955. text-overflow: ellipsis;
  23956. word-break: break-word;
  23957. cursor: pointer;
  23958. text-align: center;
  23959. border: 1px solid #bcc2cc;
  23960. box-sizing: border-box;
  23961. }
  23962. .engUpTop{
  23963. max-height: 300px;
  23964. overflow: auto;
  23965. }
  23966. .isUpdateToolDetailClass{
  23967. padding: 0 !important;
  23968. }
  23969. .isUpdateToolDetailClass textarea{
  23970. padding:12px;
  23971. font-size: 16px;
  23972. min-height:100%;
  23973. width: 100%;
  23974. box-sizing:border-box;
  23975. outline: none;
  23976. border:none;
  23977. line-height: 30px;
  23978. resize: none;
  23979. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  23980. color: #838383;
  23981. }
  23982. .show_taskD {
  23983. min-width: fit-content;
  23984. margin-left: 10px;
  23985. display: flex;
  23986. align-items: center;
  23987. font-size: 14px;
  23988. cursor: pointer;
  23989. color: #717c8d;
  23990. }
  23991. .show_taskD > img {
  23992. width: 15px;
  23993. margin-right: 5px;
  23994. transition: 0.2s all;
  23995. transform: rotate(-90deg);
  23996. }
  23997. .show_taskD.show > img {
  23998. transform: rotate(0deg);
  23999. }
  24000. .correctCss{
  24001. position: absolute;
  24002. bottom: -70px;
  24003. background: #409eff;
  24004. color: #fff;
  24005. }
  24006. </style>