studyStudent.vue 822 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773
  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. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)">
  248. <div class="btnLeft">
  249. <el-tooltip effect="light" content="刷新" placement="top">
  250. <div class="reBtnIcon" @click="refreshCourse">
  251. <span>刷新</span>
  252. </div>
  253. </el-tooltip>
  254. <el-tooltip effect="light" content="评论" placement="top">
  255. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  256. <span>评论</span>
  257. </div>
  258. </el-tooltip>
  259. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  260. <el-tooltip effect="light" content="录制" placement="top">
  261. <div class="vedioIcon" @click="startRecording">
  262. <span>录制</span>
  263. </div>
  264. </el-tooltip>
  265. </div>
  266. <div v-else-if="tType == 1 || tType == 4">
  267. <el-tooltip effect="light" content="下载" placement="top">
  268. <div class="vedioIcon1" @click="stopRecording">
  269. <span>下载</span>
  270. </div>
  271. </el-tooltip>
  272. </div>
  273. </div>
  274. <div class="btnRight">
  275. <div
  276. class="last"
  277. @click="nextOrpreSteps(0)"
  278. v-if="!(IsFollow && tType == 2)"
  279. @mouseover="isHovered = true"
  280. @mouseout="isHovered = false"
  281. >
  282. <div class="lastImg">
  283. <img
  284. :src="
  285. isHovered
  286. ? require('../../assets/icon/newIcons/whiteLast.png')
  287. : require('../../assets/icon/newIcons/last.png')
  288. "
  289. alt=""
  290. />
  291. </div>
  292. <div class="lastText">上一步</div>
  293. </div>
  294. <div
  295. class="last"
  296. @click="nextOrpreSteps(1)"
  297. v-if="!(IsFollow && tType == 2)"
  298. @mouseover="isHovered1 = true"
  299. @mouseout="isHovered1 = false"
  300. >
  301. <div class="lastText">下一步</div>
  302. <div class="lastImg">
  303. <img
  304. :src="
  305. isHovered1
  306. ? require('../../assets/icon/newIcons/whiteNext.png')
  307. : require('../../assets/icon/newIcons/next.png')
  308. "
  309. alt=""
  310. />
  311. </div>
  312. </div>
  313. <div
  314. class="last"
  315. @click="juriVisible = true"
  316. v-if="tType == 1"
  317. @mouseover="isHovered2 = true"
  318. @mouseout="isHovered2 = false"
  319. >
  320. <div class="lastImg">
  321. <img
  322. :src="
  323. isHovered2
  324. ? require('../../assets/icon/newIcons/whiteLock.png')
  325. : require('../../assets/icon/newIcons/lock.png')
  326. "
  327. alt=""
  328. />
  329. </div>
  330. <div class="lastText">权限</div>
  331. </div>
  332. <div
  333. class="returnBtn1 returnIcon"
  334. @click.stop="
  335. goTo(
  336. '/courseDetail?userid=' +
  337. userid +
  338. '&oid=' +
  339. oid +
  340. '&org=' +
  341. org +
  342. '&cid=' +
  343. classId +
  344. '&courseId=' +
  345. id +
  346. '&tType=' +
  347. tType +
  348. '&screenType=' +
  349. screenType
  350. )
  351. "
  352. >
  353. <div class="lastImg">
  354. <img src="../../assets/icon/newIcon/return.png" alt="" />
  355. </div>
  356. <div class="lastText" style="color: #000">返回</div>
  357. </div>
  358. </div>
  359. <!-- <div
  360. class="returnBtn lockIcon"
  361. @click="juriVisible = true"
  362. v-if="tType == 1"
  363. >
  364. 权限
  365. </div>
  366. <div
  367. class="returnBtn vedioIcon"
  368. @click="startRecording"
  369. v-if="!videoStart && (tType == 1 || tType == 4)"
  370. >
  371. 录制
  372. </div>
  373. <div
  374. class="returnBtn"
  375. @click="stopRecording"
  376. v-else-if="tType == 1 || tType == 4"
  377. style="background: #ee5255"
  378. >
  379. 下载
  380. </div>
  381. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  382. 评论
  383. </div>
  384. <div
  385. class="returnBtn"
  386. @click="nextOrpreSteps(0)"
  387. v-if="!(IsFollow && tType == 2)"
  388. >
  389. 上一步
  390. </div>
  391. <div
  392. class="returnBtn"
  393. @click="nextOrpreSteps(1)"
  394. v-if="!(IsFollow && tType == 2)"
  395. >
  396. 下一步
  397. </div>
  398. <div class="returnBtn" @click="refreshCourse">刷新</div>
  399. <div
  400. class="returnBtn returnIcon"
  401. @click.stop="
  402. goTo(
  403. '/courseDetail?userid=' +
  404. userid +
  405. '&oid=' +
  406. oid +
  407. '&org=' +
  408. org +
  409. '&cid=' +
  410. classId +
  411. '&courseId=' +
  412. id +
  413. '&tType=' +
  414. tType +
  415. '&screenType=' +
  416. screenType
  417. )
  418. "
  419. >
  420. 返回
  421. </div> -->
  422. </div>
  423. </div>
  424. <div
  425. class="isNoMessage"
  426. v-if="
  427. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  428. .chapterData.length == 0 &&
  429. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  430. .toolChoose[0].tool.length == 0 &&
  431. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  432. .taskDetail == '' &&
  433. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  434. .eList &&
  435. !(
  436. courseDetail.userid == userid ||
  437. (courseDetail.course_teacher &&
  438. courseDetail.course_teacher.indexOf(userid) != -1)
  439. )
  440. "
  441. >
  442. <img src="../../assets/icon/isNoMessage.png" alt />
  443. </div>
  444. <div class="study_top" :class="{ pzClass: pzDialog }">
  445. <div
  446. class="vedioBox"
  447. v-if="
  448. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .taskDetail != '' ||
  450. vChapterData[taskCount].length > 0 ||
  451. fileC[taskCount].length > 0
  452. "
  453. style="border-radius: 0 0 20px 20px"
  454. >
  455. <div
  456. class="taskBox"
  457. v-if="
  458. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  459. .taskDetail != ''
  460. "
  461. >
  462. <div
  463. style="
  464. display: flex;
  465. flex-wrap: nowrap;
  466. flex-direction: column;
  467. position: relative;
  468. "
  469. >
  470. <div
  471. style="
  472. padding: 15px 0;
  473. line-height: 29px;
  474. font-size: 18px;
  475. color: #0e1e33;
  476. "
  477. class="cont"
  478. v-if="
  479. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  480. .taskDetail != ''
  481. "
  482. v-html="
  483. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  484. .taskDetail
  485. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  486. taskCount
  487. ].taskDetail
  488. : '暂无描述'
  489. "
  490. ></div>
  491. </div>
  492. </div>
  493. <div
  494. class="student_head"
  495. v-if="
  496. vChapterData[taskCount].length > 0 ||
  497. fileC[taskCount].length > 0
  498. "
  499. >
  500. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  501. <div
  502. :class="
  503. contentDialog == false
  504. ? 'box_course isContentCss'
  505. : 'box_course'
  506. "
  507. v-if="
  508. vChapterData.length > 0 &&
  509. vChapterData[taskCount] &&
  510. showType !== ''
  511. "
  512. >
  513. <div class="wheel" style="height: auto" v-if="showType === 0">
  514. <div
  515. class="workd_media"
  516. style="height: 650px; width: calc(100% - 50px)"
  517. >
  518. <video-player
  519. class="video-player vjs-custom-skin"
  520. :class="contentDialog == false ? 'isAllWidth' : ''"
  521. :playsinline="true"
  522. :options="playerO[taskCount]"
  523. @play="onPlayerPlay($event)"
  524. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  525. ></video-player>
  526. </div>
  527. </div>
  528. <div
  529. class="wheel"
  530. v-if="showType == 1"
  531. style="
  532. box-shadow: 0 0 6px 1px #f2f2f2;
  533. width: 95%;
  534. margin: 0 auto;
  535. background: #f1f1f1;
  536. "
  537. >
  538. <div class="title">查看文档</div>
  539. <el-form class="textBox">
  540. <el-form-item class="textTitle">
  541. <div style="font-size: 22px">
  542. {{ text.name }}
  543. </div>
  544. </el-form-item>
  545. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  546. <div v-html="text.url" class="textContent cont"></div>
  547. </el-form>
  548. </div>
  549. <div
  550. class="wheel"
  551. v-if="
  552. pptImgUrl1.indexOf(
  553. 'https://view.officeapps.live.com/op/view.aspx?src='
  554. ) != -1 && showType == 2
  555. "
  556. style="width: 95%; margin: 0 auto"
  557. >
  558. <iframe
  559. style="width: 100%; height: 100%; border: none"
  560. :src="pptImgUrl1"
  561. ></iframe>
  562. </div>
  563. <div
  564. class="wheel"
  565. v-else-if="showType == 2"
  566. style="width: 95%; margin: 0 auto"
  567. >
  568. <iframe
  569. style="width: 100%; height: 100%; border: none"
  570. security="restricted"
  571. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  572. :src="pptImgUrl1"
  573. ></iframe>
  574. </div>
  575. <div
  576. class="wheel"
  577. v-if="showType == 3"
  578. style="width: 95%; margin: 0 auto"
  579. >
  580. <pdf
  581. :pdfUrl="pptImgUrl1"
  582. style="width: 100%; height: 100%; overflow: auto"
  583. ></pdf>
  584. </div>
  585. <div
  586. class="wheel"
  587. v-if="showType == 4"
  588. style="width: 95%; margin: 0 auto"
  589. >
  590. <el-image
  591. :src="pptImgUrl1"
  592. fit="contain"
  593. style="width: 100%; height: 100%; cursor: pointer"
  594. @click="previewImg(pptImgUrl1)"
  595. ></el-image>
  596. </div>
  597. </div>
  598. <div
  599. class="pButton"
  600. style="position: absolute; right: 20px; top: 0; z-index: 998"
  601. v-if="!contentDialog"
  602. @click="setContent(true)"
  603. >
  604. <!-- 批 -->
  605. <img
  606. src="../../assets/icon/newIcons/isLeft.png"
  607. style="width: 45px"
  608. alt=""
  609. />
  610. </div>
  611. <div
  612. v-if="contentDialog == true"
  613. :style="{
  614. width:
  615. (vChapterData[taskCount].length > 0 ||
  616. fileC[taskCount].length > 0) &&
  617. showType === ''
  618. ? 'calc(100%)'
  619. : '300px',
  620. margin:
  621. (vChapterData[taskCount].length > 0 ||
  622. fileC[taskCount].length > 0) &&
  623. showType === ''
  624. ? '0 15px'
  625. : '0 15px 0 0',
  626. }"
  627. >
  628. <div
  629. class="vedioList"
  630. v-if="
  631. vChapterData[taskCount].length > 0 ||
  632. fileC[taskCount].length > 0
  633. "
  634. style="height: 650px"
  635. >
  636. <div class="navCorOpenBox">
  637. <div class="navTitile">内容列表:</div>
  638. <div class="navCorOpen" @click="setContent(false)">
  639. <img
  640. src="../../assets/icon/newIcons/isRight.png"
  641. alt=""
  642. />
  643. </div>
  644. </div>
  645. <div class="navBox">
  646. <div
  647. v-show="
  648. vChapterData[taskCount].length > 0 ||
  649. fileC[taskCount].length > 0
  650. "
  651. style="padding: 10px 0 25px 0"
  652. >
  653. <div
  654. class="vedioTimeBox"
  655. v-for="(vitem, vindex) in vChapterData[taskCount]"
  656. :key="vindex + '1'"
  657. >
  658. <div class="navListItem" v-if="vitem.type == 2">
  659. <div
  660. @click="lookVedio(vitem.url, vindex)"
  661. class="navText"
  662. :class="isClickNav == vindex ? 'isClickNav' : ''"
  663. >
  664. <span v-if="vitem.text">{{ vitem.text }}-</span
  665. >{{ vitem.name }}
  666. </div>
  667. <div class="downIcon" @click="downloadFile2(vitem)">
  668. <img
  669. src="../../assets/icon/newIcon/down.png"
  670. alt
  671. />
  672. </div>
  673. </div>
  674. <div class="navListItem" v-if="vitem.type == 6">
  675. <div
  676. @click="lookText(taskCount, vindex)"
  677. class="navText"
  678. :class="isClickNav == vindex ? 'isClickNav' : ''"
  679. >
  680. {{ vitem.name }}.doc
  681. </div>
  682. <div
  683. class="downIcon"
  684. @click="checkFileFull1(vitem.type, vitem)"
  685. >
  686. <img
  687. src="../../assets/icon/newIcon/allScreen.png"
  688. alt
  689. />
  690. </div>
  691. </div>
  692. <div
  693. class="navListItem"
  694. v-if="vitem.type == 8 || vitem.type == 14"
  695. >
  696. <div
  697. @click="doUrl(vitem.url, vindex)"
  698. class="navText"
  699. :class="isClickNav == vindex ? 'isClickNav' : ''"
  700. >
  701. {{ vitem.title ? vitem.title : vitem.url }}
  702. </div>
  703. <div
  704. class="downIcon"
  705. @click="checkFileFull1(vitem.type, vitem)"
  706. >
  707. <img
  708. src="../../assets/icon/newIcon/allScreen.png"
  709. alt
  710. />
  711. </div>
  712. </div>
  713. <div class="navListItem" v-if="vitem.type == 3">
  714. <div
  715. @click="downFile(vitem, vindex)"
  716. class="navText"
  717. :class="isClickNav == vindex ? 'isClickNav' : ''"
  718. >
  719. <span v-if="vitem.text">{{ vitem.text }}-</span
  720. >{{ vitem.name }}
  721. </div>
  722. <div
  723. class="downIcon"
  724. @click="checkFileFull1(vitem.type, vitem)"
  725. >
  726. <img
  727. src="../../assets/icon/newIcon/allScreen.png"
  728. alt
  729. />
  730. </div>
  731. <div class="downIcon" @click="downloadFile2(vitem)">
  732. <img
  733. src="../../assets/icon/newIcon/down.png"
  734. alt
  735. />
  736. </div>
  737. </div>
  738. <div class="navListItem" v-if="vitem.type == 12">
  739. <div class="navText" @click="downloadFile2(vitem)">
  740. <span v-if="vitem.text">{{ vitem.text }}-</span
  741. >{{ vitem.name }}
  742. </div>
  743. <div
  744. class="downIcon"
  745. @click="checkFileFull1(vitem.type, vitem)"
  746. >
  747. <img
  748. src="../../assets/icon/newIcon/allScreen.png"
  749. alt
  750. />
  751. </div>
  752. <div class="downIcon" @click="downloadFile2(vitem)">
  753. <img
  754. src="../../assets/icon/newIcon/down.png"
  755. alt
  756. />
  757. </div>
  758. </div>
  759. <div class="navListItem" v-if="vitem.type == 13">
  760. <div
  761. class="navText"
  762. @click="checkPhoto(vitem, vindex)"
  763. :class="isClickNav == vindex ? 'isClickNav' : ''"
  764. >
  765. {{ vitem.name }}
  766. </div>
  767. <div class="downIcon" @click="downloadFile2(vitem)">
  768. <img
  769. src="../../assets/icon/newIcon/down.png"
  770. alt
  771. />
  772. </div>
  773. </div>
  774. </div>
  775. <div
  776. class="fileC_box"
  777. v-if="fileC[taskCount].length > 0"
  778. >
  779. <div class="fileC_title">以下文件不支持预览</div>
  780. <div
  781. class="vedioTimeBox"
  782. v-for="(vitem, vindex) in fileC[taskCount]"
  783. :key="vindex + '1'"
  784. >
  785. <div class="navListItem" v-if="vitem.type == 12">
  786. <div class="navText" style="color: #acb4bf">
  787. <span v-if="vitem.text">{{ vitem.text }}-</span
  788. >{{ vitem.name }}
  789. </div>
  790. <div
  791. class="downIcon"
  792. @click="downloadFile2(vitem)"
  793. >
  794. <img
  795. src="../../assets/icon/newIcon/down.png"
  796. alt
  797. />
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. </div>
  805. </div>
  806. </div>
  807. <div style="width: calc(100% - 315px)">
  808. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  809. <!-- <el-button
  810. type="primary"
  811. class="newButton"
  812. @click="checkFileFull(showType, pptImgUrl1)"
  813. >全屏查看</el-button
  814. >
  815. <el-button
  816. type="primary"
  817. class="newButton"
  818. @click="downloadFile(pptImgUrl1)"
  819. v-if="showType != 2"
  820. >文件下载</el-button
  821. > -->
  822. <el-button
  823. class="newButton"
  824. v-if="
  825. showType == 2 &&
  826. pptImgUrl1.indexOf(
  827. 'https://view.officeapps.live.com/op/view.aspx?src='
  828. ) == -1
  829. "
  830. type="primary"
  831. @click="openLine(pptImgUrl1)"
  832. >打开链接
  833. </el-button>
  834. </div>
  835. <!-- <div
  836. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  837. v-if="showType == 1"
  838. >
  839. <el-button
  840. type="primary"
  841. class="newButton"
  842. @click="checkFileFull(showType, text)"
  843. >全屏查看</el-button
  844. >
  845. </div> -->
  846. </div>
  847. </div>
  848. </div>
  849. <div class="student_body" v-resize="resize">
  850. <div
  851. class="vedioBox"
  852. :style="{
  853. borderRadius:
  854. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  855. .taskDetail == '' &&
  856. vChapterData[taskCount].length == 0 &&
  857. fileC[taskCount].length == 0
  858. ? '0 0 20px 20px'
  859. : '20px',
  860. }"
  861. v-if="
  862. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  863. .toolChoose[0].tool &&
  864. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  865. .toolChoose[0].tool.length > 0
  866. "
  867. >
  868. <div
  869. class="toolHeng2"
  870. style="position: relative"
  871. v-if="
  872. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  873. .toolChoose[0].tool &&
  874. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  875. .toolChoose[0].tool.length &&
  876. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  877. .toolChoose[0].tool.length > 0
  878. "
  879. >
  880. <div class="workNav">工作区</div>
  881. <div
  882. class="filebox"
  883. style="flex-wrap: nowrap"
  884. v-for="(tool, toolIndex) in chapInfoList[courseType]
  885. .chapterInfo[0].taskJson[taskCount].toolChoose"
  886. :key="toolIndex"
  887. >
  888. <div class="bzBox">
  889. <div class="yCss"></div>
  890. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  891. 工具{{ toolIndex + 1 }}
  892. </div>
  893. <div
  894. v-if="timeWorkList[toolIndex].length > 0"
  895. style="margin: 0 0 0 10px"
  896. >
  897. {{
  898. timeWorkList[toolIndex][0].time
  899. ? "时间:" + timeWorkList[toolIndex][0].time
  900. : ""
  901. }}
  902. </div>
  903. </div>
  904. <div class="toolBox">
  905. <div>
  906. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  907. :key="indexTool"-->
  908. <!-- <div class="iframeBox">
  909. <div
  910. class="addPoint isBorder"
  911. v-for="(tooC, toolCIndex) in tool.tool"
  912. :key="toolCIndex"
  913. >
  914. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  915. <div
  916. class="iframeName"
  917. >
  918. 电子白板
  919. </div>
  920. <iframe
  921. src="https://iwb.cocorobo.cn/"
  922. ref="whiteBoard"
  923. ></iframe>
  924. </div>
  925. </div>
  926. </div>-->
  927. <div class="noiframeBox">
  928. <div
  929. class="addPoint"
  930. v-for="(tooC, toolCIndex) in tool.tool"
  931. :key="toolCIndex"
  932. >
  933. <div v-if="tooC == 1">
  934. <img
  935. src="../../assets/icon/secondToolList/whiteBoard.png"
  936. alt
  937. @click="addTools(tooC, toolIndex, taskCount)"
  938. />
  939. <div style="margin: 5px 0">电子白板</div>
  940. </div>
  941. <div v-if="tooC == 3">
  942. <img
  943. src="../../assets/icon/secondToolList/mindMapping.png"
  944. alt
  945. @click="addTools(tooC, toolIndex, taskCount)"
  946. />
  947. <div style="margin: 5px 0">思维导图</div>
  948. </div>
  949. <div v-if="tooC == 6">
  950. <img
  951. src="../../assets/icon/secondToolList/doc.png"
  952. alt
  953. @click="addTools(tooC, toolIndex, taskCount)"
  954. />
  955. <div style="margin: 5px 0">协同文档</div>
  956. </div>
  957. <div v-if="tooC == 7">
  958. <img
  959. src="../../assets/icon/secondToolList/mindNetwork.png"
  960. alt
  961. @click="addTools(tooC, toolIndex, taskCount)"
  962. />
  963. <div style="margin: 5px 0">思维网格</div>
  964. </div>
  965. <div v-if="tooC == 8">
  966. <img
  967. src="../../assets/icon/secondToolList/library.png"
  968. alt
  969. @click="addTools(tooC, toolIndex, taskCount)"
  970. />
  971. <div style="margin: 5px 0">素材库</div>
  972. </div>
  973. <div v-if="tooC == 17">
  974. <img
  975. src="../../assets/icon/secondToolList/library.png"
  976. alt
  977. @click="addTools(tooC, toolIndex, taskCount)"
  978. />
  979. <div style="margin: 5px 0">学习资料</div>
  980. </div>
  981. <div v-if="tooC == 2">
  982. <img
  983. @click="addTools(tooC, toolIndex, taskCount)"
  984. src="../../assets/icon/secondToolList/note.png"
  985. alt
  986. />
  987. <div style="margin: 5px 0">便签</div>
  988. </div>
  989. <div v-if="tooC == 4">
  990. <img
  991. @click="addTools(tooC, toolIndex, taskCount)"
  992. src="../../assets/icon/thirdToolList/ask.png"
  993. alt
  994. />
  995. <div style="margin: 5px 0">问卷调查</div>
  996. </div>
  997. <div v-if="tooC == 45">
  998. <img
  999. @click="addTools(tooC, toolIndex, taskCount)"
  1000. src="../../assets/icon/thirdToolList/choose.png"
  1001. alt
  1002. />
  1003. <div style="margin: 5px 0">选择题</div>
  1004. </div>
  1005. <!-- <div v-if="tooC == 5">
  1006. <img
  1007. @click="addTools(tooC, toolIndex, taskCount)"
  1008. src="../../assets/icon/thirdToolList/score.png"
  1009. alt
  1010. />
  1011. <div style="margin: 5px 0">量规评分</div>
  1012. </div> -->
  1013. <div v-if="tooC == 10">
  1014. <img
  1015. @click="addTools(tooC, toolIndex, taskCount)"
  1016. src="../../assets/icon/thirdToolList/time.png"
  1017. alt
  1018. />
  1019. <div style="margin: 5px 0">倒计时</div>
  1020. </div>
  1021. <div v-if="tooC == 15">
  1022. <img
  1023. @click="addTools(tooC, toolIndex, taskCount)"
  1024. src="../../assets/icon/thirdToolList/answer.png"
  1025. alt
  1026. />
  1027. <div style="margin: 5px 0">问答</div>
  1028. </div>
  1029. <div v-if="tooC == 26">
  1030. <img
  1031. @click="addTools(tooC, toolIndex, taskCount)"
  1032. src="../../assets/icon/thirdToolList/courseDesign.png"
  1033. alt
  1034. />
  1035. <div style="margin: 5px 0">课程设计</div>
  1036. </div>
  1037. <div v-if="tooC == 18">
  1038. <img
  1039. @click="addTools(tooC, toolIndex, taskCount)"
  1040. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1041. alt
  1042. />
  1043. <div style="margin: 5px 0">训练服务器</div>
  1044. </div>
  1045. <div v-if="tooC == 16">
  1046. <img
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. src="../../assets/icon/thirdToolList/work.png"
  1049. alt
  1050. />
  1051. <div style="margin: 5px 0">作业提交</div>
  1052. </div>
  1053. <div v-if="tooC == 50">
  1054. <img
  1055. @click="addTools(tooC, toolIndex, taskCount)"
  1056. src="../../assets/icon/thirdToolList/plwork.png"
  1057. alt
  1058. />
  1059. <div style="margin: 5px 0">批量上传</div>
  1060. </div>
  1061. <div v-if="tooC == 21">
  1062. <img
  1063. @click="addTools(tooC, toolIndex, taskCount)"
  1064. src="../../assets/icon/fourthToolList/program.png"
  1065. alt
  1066. />
  1067. <div style="margin: 5px 0">AIoT Blockly</div>
  1068. </div>
  1069. <!-- <div v-if="tooC == 22">
  1070. <img
  1071. @click="addTools(tooC, toolIndex, taskCount)"
  1072. src="../../assets/icon/fourthToolList/program.png"
  1073. alt
  1074. />
  1075. <div style="margin: 5px 0">AI体验</div>
  1076. </div> -->
  1077. <div v-if="tooC == 23">
  1078. <img
  1079. @click="addTools(tooC, toolIndex, taskCount)"
  1080. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1081. alt
  1082. />
  1083. <div style="margin: 5px 0">AI Python</div>
  1084. </div>
  1085. <div v-if="tooC == 24">
  1086. <img
  1087. @click="addTools(tooC, toolIndex, taskCount)"
  1088. src="../../assets/icon/fourthToolList/AIprogram.png"
  1089. alt
  1090. />
  1091. <div style="margin: 5px 0">AI Blockly</div>
  1092. </div>
  1093. <div v-if="tooC == 25">
  1094. <img
  1095. @click="addTools(tooC, toolIndex, taskCount)"
  1096. src="../../assets/icon/thirdToolList/evalua.png"
  1097. alt
  1098. />
  1099. <div style="margin: 5px 0">目标管理</div>
  1100. </div>
  1101. <div v-if="tooC == 31">
  1102. <img
  1103. @click="addTools(tooC, toolIndex, taskCount)"
  1104. src="../../assets/icon/secondToolList/networkPanel.png"
  1105. alt
  1106. />
  1107. <div style="margin: 5px 0">数学画板</div>
  1108. </div>
  1109. <div v-if="tooC == 28">
  1110. <img
  1111. @click="addTools(tooC, toolIndex, taskCount)"
  1112. src="../../assets/icon/secondToolList/translation.png"
  1113. alt
  1114. />
  1115. <div style="margin: 5px 0">翻译</div>
  1116. </div>
  1117. <div v-if="tooC == 37">
  1118. <img
  1119. @click="addTools(tooC, toolIndex, taskCount)"
  1120. src="../../assets/icon/secondToolList/mohe.png"
  1121. alt
  1122. />
  1123. <div style="margin: 5px 0">魔盒识字</div>
  1124. </div>
  1125. <div v-if="tooC == 38">
  1126. <img
  1127. @click="addTools(tooC, toolIndex, taskCount)"
  1128. src="../../assets/icon/secondToolList/24game.png"
  1129. alt
  1130. />
  1131. <div style="margin: 5px 0">24点</div>
  1132. </div>
  1133. <div v-if="tooC == 39">
  1134. <img
  1135. @click="addTools(tooC, toolIndex, taskCount)"
  1136. src="../../assets/icon/secondToolList/GeoGebra.png"
  1137. alt
  1138. />
  1139. <div style="margin: 5px 0">GeoGebra</div>
  1140. </div>
  1141. <div v-if="tooC == 32">
  1142. <img
  1143. @click="addTools(tooC, toolIndex, taskCount)"
  1144. src="../../assets/icon/thirdToolList/code.png"
  1145. alt
  1146. />
  1147. <div style="margin: 5px 0">源码编辑</div>
  1148. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1149. style="position: absolute;left: 110px;bottom: 30px;">
  1150. 上传文件
  1151. <input type="file" accept="*" style="display: none"
  1152. @change="beforeUpload1($event, 7, toolIndex)" />
  1153. </div> -->
  1154. </div>
  1155. <div v-if="tooC == 40">
  1156. <img
  1157. @click="addTools(tooC, toolIndex, taskCount)"
  1158. src="../../assets/icon/secondToolList/eval.png"
  1159. alt
  1160. />
  1161. <div style="margin: 5px 0">个人评价</div>
  1162. </div>
  1163. <div v-if="tooC == 41">
  1164. <img
  1165. @click="addTools(tooC, toolIndex, taskCount)"
  1166. src="../../assets/icon/thirdToolList/select.png"
  1167. alt
  1168. />
  1169. <div style="margin: 5px 0">选择匹配</div>
  1170. </div>
  1171. <div v-if="tooC == 44">
  1172. <img
  1173. @click="addTools(tooC, toolIndex, taskCount)"
  1174. src="../../assets/icon/thirdToolList/hanClass.png"
  1175. alt
  1176. />
  1177. <div style="margin: 5px 0">汉字宫</div>
  1178. </div>
  1179. <div v-if="tooC == 47">
  1180. <img
  1181. @click="addTools(tooC, toolIndex, taskCount)"
  1182. src="../../assets/icon/fourthToolList/conSentences.png"
  1183. alt
  1184. />
  1185. <div style="margin: 5px 0">排序</div>
  1186. </div>
  1187. <div v-if="tooC == 48">
  1188. <img
  1189. @click="addTools(tooC, toolIndex, taskCount)"
  1190. src="../../assets/icon/fourthToolList/table.png"
  1191. alt
  1192. />
  1193. <div style="margin: 5px 0">表格</div>
  1194. </div>
  1195. <div v-if="tooC == 52">
  1196. <img
  1197. @click="addTools(tooC, toolIndex, taskCount)"
  1198. src="../../assets/icon/fourthToolList/text.png"
  1199. alt
  1200. />
  1201. <div style="margin: 5px 0">文档</div>
  1202. </div>
  1203. <div v-if="tooC == 49">
  1204. <img
  1205. @click="addTools(tooC, toolIndex, taskCount)"
  1206. src="../../assets/icon/fourthToolList/group.png"
  1207. alt
  1208. />
  1209. <div style="margin: 5px 0">学生分组</div>
  1210. </div>
  1211. <div v-if="tooC == 57">
  1212. <img
  1213. @click="addTools(tooC, toolIndex, taskCount)"
  1214. src="../../assets/icon/fourthToolList/cocopi.png"
  1215. alt
  1216. />
  1217. <div style="margin: 5px 0">CocoPi</div>
  1218. </div>
  1219. <div v-if="tooC == 58">
  1220. <img
  1221. @click="addTools(tooC, toolIndex, taskCount)"
  1222. src="../../assets/icon/fourthToolList/car.png"
  1223. alt
  1224. />
  1225. <div style="margin: 5px 0">模拟驾驶</div>
  1226. </div>
  1227. <div v-if="tooC == 59">
  1228. <img
  1229. @click="addTools(tooC, toolIndex, taskCount)"
  1230. src="../../assets/icon/fourthToolList/lineSearch.png"
  1231. alt
  1232. />
  1233. <div style="margin: 5px 0">路径搜索</div>
  1234. </div>
  1235. <div v-if="tooC == 60">
  1236. <img
  1237. @click="addTools(tooC, toolIndex, taskCount)"
  1238. src="../../assets/icon/fourthToolList/deepLearning.png"
  1239. alt
  1240. />
  1241. <div style="margin: 5px 0">深度学习</div>
  1242. </div>
  1243. <div v-if="tooC == 61">
  1244. <img
  1245. @click="addTools(tooC, toolIndex, taskCount)"
  1246. src="../../assets/icon/fourthToolList/allHistory.png"
  1247. alt
  1248. />
  1249. <div style="margin: 5px 0">全历史</div>
  1250. </div>
  1251. <div v-if="tooC == 62">
  1252. <img
  1253. @click="addTools(tooC, toolIndex, taskCount)"
  1254. src="../../assets/icon/fourthToolList/interVideo.png"
  1255. alt
  1256. />
  1257. <div style="margin: 5px 0">交互视频</div>
  1258. </div>
  1259. <div v-if="tooC == 63">
  1260. <img
  1261. @click="addTools(tooC, toolIndex, taskCount)"
  1262. src="../../assets/icon/fourthToolList/Wood.png"
  1263. alt
  1264. />
  1265. <div style="margin: 5px 0">海龟编程</div>
  1266. </div>
  1267. <div v-if="tooC == 71">
  1268. <img
  1269. @click="addTools(tooC, toolIndex, taskCount)"
  1270. src="../../assets/icon/fourthToolList/chatgpt.png"
  1271. alt
  1272. />
  1273. <div style="margin: 5px 0">AI智能体</div>
  1274. </div>
  1275. <div v-if="tooC == 65">
  1276. <img
  1277. @click="addTools(tooC, toolIndex, taskCount)"
  1278. src="../../assets/icon/firstToolList/pickPeople.png"
  1279. alt
  1280. />
  1281. <div style="margin: 5px 0">挑人</div>
  1282. </div>
  1283. <div v-if="tooC == 66">
  1284. <img
  1285. @click="addTools(tooC, toolIndex, taskCount)"
  1286. src="../../assets/icon/secondToolList/formulaEdi.png"
  1287. alt
  1288. />
  1289. <div style="margin: 5px 0">公式编辑</div>
  1290. </div>
  1291. <div v-if="tooC == 67">
  1292. <img
  1293. @click="addTools(tooC, toolIndex, taskCount)"
  1294. src="../../assets/icon/secondToolList/molStr.png"
  1295. alt
  1296. />
  1297. <div style="margin: 5px 0">分子结构</div>
  1298. </div>
  1299. <div v-if="tooC == 68">
  1300. <img
  1301. @click="addTools(tooC, toolIndex, taskCount)"
  1302. src="../../assets/icon/secondToolList/timeAxis.png"
  1303. alt
  1304. />
  1305. <div style="margin: 5px 0">时间轴</div>
  1306. </div>
  1307. <div v-if="tooC == 69">
  1308. <img
  1309. @click="addTools(tooC, toolIndex, taskCount)"
  1310. src="../../assets/icon/secondToolList/english.png"
  1311. alt
  1312. />
  1313. <div style="margin: 5px 0">英语写作</div>
  1314. </div>
  1315. <div v-if="tooC == 70">
  1316. <img
  1317. @click="addTools(tooC, toolIndex, taskCount)"
  1318. src="../../assets/icon/thirdToolList/englishVoice.png"
  1319. alt
  1320. />
  1321. <div style="margin: 5px 0">英语口语</div>
  1322. </div>
  1323. </div>
  1324. </div>
  1325. </div>
  1326. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1327. <!-- <div class="toolTitle">工具描述</div> -->
  1328. <div style="height:100%;"
  1329. v-html="contentConvent(tool.toolDetail)"
  1330. v-if="toolDetailIndex != toolIndex"
  1331. @click.stop="updateToolDetail(toolIndex, 2)"
  1332. ></div>
  1333. <div v-else @click.stop="" style="height:100%;">
  1334. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1335. </div>
  1336. </div>
  1337. <el-button
  1338. type="primary"
  1339. v-if="tool.tool[0] == 32"
  1340. style="position: absolute; right: 30px; top: 30px"
  1341. @click="addImg($event)"
  1342. >上传作业<input
  1343. type="file"
  1344. accept="*"
  1345. style="display: none"
  1346. @change="beforeUpload1($event, 7, toolIndex)"
  1347. /></el-button>
  1348. <el-button
  1349. type="primary"
  1350. v-if="tool.tool[0] == 15"
  1351. style="position: absolute; right: 30px; top: 30px"
  1352. @click="openWordCloud(toolIndex)"
  1353. >生成词云</el-button
  1354. >
  1355. <el-button
  1356. type="primary"
  1357. v-if="
  1358. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1359. "
  1360. style="position: absolute; right: 30px; top: 30px"
  1361. @click="uploadWorks(toolIndex)"
  1362. >导出作业</el-button
  1363. >
  1364. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1365. position: absolute;
  1366. right: 30px;
  1367. transform: translateY(-130%);
  1368. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1369. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1370. </div>
  1371. <div
  1372. v-if="
  1373. tType &&
  1374. tType == 2 &&
  1375. !sIsOpen &&
  1376. tool.tool.indexOf(16) != -1
  1377. "
  1378. class="worksBox"
  1379. >
  1380. <div
  1381. class="zuoyeYulan"
  1382. v-if="workStudent[toolIndex].length > 0"
  1383. >
  1384. <span class="worksTitle">作业预览</span>
  1385. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1386. </div>
  1387. <div
  1388. class="worksDetailBox"
  1389. v-if="workStudent[toolIndex].length > 0"
  1390. >
  1391. <div
  1392. class="works"
  1393. style="
  1394. width: 200px;
  1395. height: 140px;
  1396. margin: 10px 10px 10px 0;
  1397. box-shadow: 0 0 6px 1px #dfdada;
  1398. "
  1399. v-for="(w, wIndex) in workStudent[toolIndex]"
  1400. :key="wIndex"
  1401. >
  1402. <div class="workImg" v-if="w.type == 0">
  1403. <img
  1404. :src="w.works"
  1405. @click="previewImg(w.works)"
  1406. alt
  1407. />
  1408. <div
  1409. class="answerScore"
  1410. v-if="w.score"
  1411. @click.stop="openScore(w)"
  1412. :class="{
  1413. rightW:
  1414. w.userid == userid || tType == 1 || tType == 4,
  1415. }"
  1416. >
  1417. {{ JSON.parse(w.score).wScore }}分
  1418. </div>
  1419. <div
  1420. class="answerScore"
  1421. @click.stop="openScore(w)"
  1422. v-else-if="courseDetail.userid == userid"
  1423. :class="{
  1424. rightW:
  1425. w.userid == userid || tType == 1 || tType == 4,
  1426. }"
  1427. >
  1428. 评分
  1429. </div>
  1430. <img
  1431. class="deleteImg"
  1432. src="../../assets/deleteworks.png"
  1433. v-if="
  1434. w.userid == userid || tType == 1 || tType == 4
  1435. "
  1436. @click.stop="deleteWorks(w.wid)"
  1437. alt
  1438. />
  1439. </div>
  1440. <div class="workImg" v-if="w.type == 1">
  1441. <img :src="word" @click="openFile(w.works)" alt />
  1442. <div
  1443. class="answerScore"
  1444. v-if="w.score"
  1445. @click.stop="openScore(w)"
  1446. :class="{
  1447. rightW:
  1448. w.userid == userid || tType == 1 || tType == 4,
  1449. }"
  1450. >
  1451. {{ JSON.parse(w.score).wScore }}分
  1452. </div>
  1453. <div
  1454. class="answerScore"
  1455. @click.stop="openScore(w)"
  1456. v-else-if="courseDetail.userid == userid"
  1457. :class="{
  1458. rightW:
  1459. w.userid == userid || tType == 1 || tType == 4,
  1460. }"
  1461. >
  1462. 评分
  1463. </div>
  1464. <img
  1465. class="deleteImg"
  1466. src="../../assets/deleteworks.png"
  1467. v-if="
  1468. w.userid == userid || tType == 1 || tType == 4
  1469. "
  1470. @click.stop="deleteWorks(w.wid)"
  1471. alt
  1472. />
  1473. </div>
  1474. <div class="workImg" v-if="w.type == 3">
  1475. <img
  1476. style="cursor: pointer"
  1477. :src="video"
  1478. @click="openVideo(w)"
  1479. alt
  1480. />
  1481. <div
  1482. class="answerScore"
  1483. v-if="w.score"
  1484. @click.stop="openScore(w)"
  1485. :class="{
  1486. rightW:
  1487. w.userid == userid || tType == 1 || tType == 4,
  1488. }"
  1489. >
  1490. {{ JSON.parse(w.score).wScore }}分
  1491. </div>
  1492. <div
  1493. class="answerScore"
  1494. @click.stop="openScore(w)"
  1495. v-else-if="courseDetail.userid == userid"
  1496. :class="{
  1497. rightW:
  1498. w.userid == userid || tType == 1 || tType == 4,
  1499. }"
  1500. >
  1501. 评分
  1502. </div>
  1503. <img
  1504. class="deleteImg"
  1505. src="../../assets/deleteworks.png"
  1506. v-if="
  1507. w.userid == userid || tType == 1 || tType == 4
  1508. "
  1509. @click.stop="deleteWorks(w.wid)"
  1510. alt
  1511. />
  1512. </div>
  1513. <div class="workImg" v-if="w.type == 12">
  1514. <img
  1515. style="cursor: pointer"
  1516. :src="word2"
  1517. @click="downloadFile(w.works)"
  1518. alt
  1519. />
  1520. <div
  1521. class="answerScore"
  1522. v-if="w.score"
  1523. @click.stop="openScore(w)"
  1524. :class="{
  1525. rightW:
  1526. w.userid == userid || tType == 1 || tType == 4,
  1527. }"
  1528. >
  1529. {{ JSON.parse(w.score).wScore }}分
  1530. </div>
  1531. <div
  1532. class="answerScore"
  1533. @click.stop="openScore(w)"
  1534. v-else-if="courseDetail.userid == userid"
  1535. :class="{
  1536. rightW:
  1537. w.userid == userid || tType == 1 || tType == 4,
  1538. }"
  1539. >
  1540. 评分
  1541. </div>
  1542. <img
  1543. class="deleteImg"
  1544. src="../../assets/deleteworks.png"
  1545. v-if="
  1546. w.userid == userid || tType == 1 || tType == 4
  1547. "
  1548. @click.stop="deleteWorks(w.wid)"
  1549. alt
  1550. />
  1551. </div>
  1552. <div class="worksName">
  1553. <div>{{ w.sName }}</div>
  1554. </div>
  1555. </div>
  1556. </div>
  1557. </div>
  1558. <div
  1559. v-if="
  1560. tType &&
  1561. tType == 2 &&
  1562. !sIsOpen &&
  1563. tool.tool.indexOf(32) != -1
  1564. "
  1565. class="worksBox"
  1566. >
  1567. <div
  1568. class="zuoyeYulan"
  1569. v-if="workStudent[toolIndex].length > 0"
  1570. >
  1571. <span class="worksTitle">作业预览</span>
  1572. </div>
  1573. <div
  1574. class="worksDetailBox"
  1575. v-if="workStudent[toolIndex].length > 0"
  1576. >
  1577. <div
  1578. class="works"
  1579. style="
  1580. width: 200px;
  1581. height: 140px;
  1582. margin: 10px 10px 10px 0;
  1583. box-shadow: 0 0 6px 1px #dfdada;
  1584. "
  1585. v-for="(w, wIndex) in workStudent[toolIndex]"
  1586. :key="wIndex"
  1587. >
  1588. <div class="workImg">
  1589. <img
  1590. :src="word2"
  1591. @click="downloadFile(w.works)"
  1592. alt
  1593. />
  1594. <div
  1595. class="answerScore"
  1596. v-if="w.score"
  1597. @click.stop="openScore(w)"
  1598. :class="{
  1599. rightW:
  1600. w.userid == userid || tType == 1 || tType == 4,
  1601. }"
  1602. >
  1603. {{ JSON.parse(w.score).wScore }}分
  1604. </div>
  1605. <div
  1606. class="answerScore"
  1607. @click.stop="openScore(w)"
  1608. v-else-if="courseDetail.userid == userid"
  1609. :class="{
  1610. rightW:
  1611. w.userid == userid || tType == 1 || tType == 4,
  1612. }"
  1613. >
  1614. 评分
  1615. </div>
  1616. <img
  1617. class="deleteImg"
  1618. src="../../assets/deleteworks.png"
  1619. v-if="
  1620. w.userid == userid || tType == 1 || tType == 4
  1621. "
  1622. @click.stop="deleteWorks(w.wid)"
  1623. alt
  1624. />
  1625. </div>
  1626. <div class="worksName">
  1627. <div>{{ w.sName }}</div>
  1628. </div>
  1629. </div>
  1630. </div>
  1631. </div>
  1632. <div
  1633. v-if="
  1634. tType &&
  1635. tType == 2 &&
  1636. !sIsOpen &&
  1637. tool.tool.indexOf(57) != -1
  1638. "
  1639. class="worksBox"
  1640. >
  1641. <div
  1642. class="zuoyeYulan"
  1643. v-if="workStudent[toolIndex].length > 0"
  1644. >
  1645. <span class="worksTitle">作业预览</span>
  1646. </div>
  1647. <div
  1648. class="worksDetailBox"
  1649. v-if="workStudent[toolIndex].length > 0"
  1650. >
  1651. <div
  1652. class="works"
  1653. style="
  1654. width: 200px;
  1655. height: 140px;
  1656. margin: 10px 10px 10px 0;
  1657. box-shadow: 0 0 6px 1px #dfdada;
  1658. "
  1659. v-for="(w, wIndex) in workStudent[toolIndex]"
  1660. :key="wIndex"
  1661. >
  1662. <div class="workImg">
  1663. <img
  1664. :src="word2"
  1665. @click="downloadFile(w.works)"
  1666. v-if="w.type == 12"
  1667. alt
  1668. />
  1669. <img
  1670. :src="word2"
  1671. @click="
  1672. openCocoPi(57, toolIndex, w.userid, w.sName)
  1673. "
  1674. v-else-if="w.type == 15"
  1675. alt
  1676. />
  1677. <div
  1678. class="answerScore"
  1679. v-if="w.score"
  1680. @click.stop="openScore(w)"
  1681. :class="{
  1682. rightW:
  1683. w.userid == userid || tType == 1 || tType == 4,
  1684. }"
  1685. >
  1686. {{ JSON.parse(w.score).wScore }}分
  1687. </div>
  1688. <div
  1689. class="answerScore"
  1690. @click.stop="openScore(w)"
  1691. v-else-if="courseDetail.userid == userid"
  1692. :class="{
  1693. rightW:
  1694. w.userid == userid || tType == 1 || tType == 4,
  1695. }"
  1696. >
  1697. 评分
  1698. </div>
  1699. <img
  1700. class="deleteImg"
  1701. src="../../assets/deleteworks.png"
  1702. v-if="
  1703. w.userid == userid || tType == 1 || tType == 4
  1704. "
  1705. @click.stop="deleteWorks(w.wid)"
  1706. alt
  1707. />
  1708. </div>
  1709. <div class="worksName">
  1710. <div>{{ w.sName }}</div>
  1711. </div>
  1712. </div>
  1713. </div>
  1714. </div>
  1715. <div
  1716. v-if="
  1717. tType &&
  1718. tType == 2 &&
  1719. !sIsOpen &&
  1720. tool.tool.indexOf(4) != -1
  1721. "
  1722. class="worksBox"
  1723. >
  1724. <div
  1725. class="zuoyeYulan"
  1726. v-if="workStudent[toolIndex].length > 0"
  1727. >
  1728. <span class="worksTitle">作业预览</span>
  1729. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1730. </div>
  1731. <div
  1732. class="worksDetailBox"
  1733. v-if="workStudent[toolIndex].length > 0"
  1734. >
  1735. <div
  1736. class="isWorksName2"
  1737. v-for="(w, wIndex) in workStudent[toolIndex]"
  1738. :key="wIndex"
  1739. @click="
  1740. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1741. "
  1742. >
  1743. {{ w.sName }}
  1744. <img
  1745. class="deleteImg deleteImg2"
  1746. src="../../assets/deleteworks.png"
  1747. v-if="w.userid == userid || tType == 1 || tType == 4"
  1748. @click.stop="deleteWorks(w.wid)"
  1749. alt
  1750. />
  1751. </div>
  1752. <!-- <div
  1753. class="works"
  1754. style="
  1755. width: 200px;
  1756. height: 140px;
  1757. border-radius: 10px;
  1758. box-shadow: 0 0 6px 1px #dfdada;
  1759. overflow: hidden;
  1760. "
  1761. v-for="(w, wIndex) in workStudent[toolIndex]"
  1762. :key="wIndex"
  1763. >
  1764. <div class="workImg">
  1765. <img
  1766. src="../../assets/icon/works/noImg.png"
  1767. @click="
  1768. openTools(
  1769. 4,
  1770. toolIndex,
  1771. taskCount,
  1772. w.works,
  1773. w.sName
  1774. )
  1775. "
  1776. alt
  1777. />
  1778. </div>
  1779. <div class="worksName">
  1780. <div>{{ w.sName }}</div>
  1781. <div>{{ w.time }}</div>
  1782. </div>
  1783. </div> -->
  1784. </div>
  1785. </div>
  1786. <div
  1787. v-if="
  1788. tType &&
  1789. ((tType == 2 && sIsOpen == true) ||
  1790. tType == 1 ||
  1791. tType == 4) &&
  1792. tool.tool.indexOf(62) != -1
  1793. "
  1794. class="worksBox"
  1795. >
  1796. <div
  1797. class="zuoyeYulan"
  1798. v-if="
  1799. worksStudent.length &&
  1800. worksStudent[toolIndex].length > 0
  1801. "
  1802. >
  1803. <div class="worksTop">
  1804. <div>作业预览</div>
  1805. <div
  1806. class="corOpen"
  1807. @click="contract(toolIndex)"
  1808. v-if="
  1809. (isCloseList[toolIndex].isCloseBoolean) &&
  1810. isCloseList[toolIndex].isClose == 0
  1811. "
  1812. >
  1813. 折叠
  1814. </div>
  1815. <div
  1816. class="corOpen"
  1817. @click="contract(toolIndex)"
  1818. v-if="isCloseList[toolIndex].isClose == 1"
  1819. >
  1820. 展开
  1821. </div>
  1822. </div>
  1823. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1824. </div>
  1825. <div>
  1826. <div
  1827. :id="'tool-' + toolIndex"
  1828. :style="{
  1829. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1830. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1831. }"
  1832. class="worksDetailBox"
  1833. v-if="
  1834. worksStudent.length &&
  1835. worksStudent[toolIndex].length > 0
  1836. "
  1837. >
  1838. <div
  1839. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1840. :key="wIndex"
  1841. class="isWorksName2"
  1842. @click="
  1843. openTools(
  1844. 62,
  1845. toolIndex,
  1846. taskCount,
  1847. w.works,
  1848. w.sName
  1849. )
  1850. "
  1851. >
  1852. {{ w.sName }}
  1853. <img
  1854. class="deleteImg deleteImg2"
  1855. src="../../assets/deleteworks.png"
  1856. v-if="
  1857. w.userid == userid || tType == 1 || tType == 4
  1858. "
  1859. @click.stop="deleteWorks(w.wid)"
  1860. alt
  1861. />
  1862. </div>
  1863. </div>
  1864. </div>
  1865. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1866. 未提交
  1867. </div>
  1868. <div
  1869. class="noWorksS"
  1870. v-if="noWorksS && noWorksS[toolIndex].length"
  1871. >
  1872. <div
  1873. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1874. :key="sIndex"
  1875. class="noWorksName"
  1876. >
  1877. <el-tooltip effect="dark" :content="s.student" placement="top">
  1878. <span>{{ s.student }}</span>
  1879. </el-tooltip>
  1880. </div>
  1881. </div>
  1882. </div>
  1883. <div
  1884. v-if="
  1885. tType &&
  1886. tType == 2 &&
  1887. !sIsOpen &&
  1888. tool.tool.indexOf(62) != -1
  1889. "
  1890. class="worksBox"
  1891. >
  1892. <div
  1893. class="zuoyeYulan"
  1894. v-if="workStudent[toolIndex].length > 0"
  1895. >
  1896. <span class="worksTitle">作业预览</span>
  1897. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1898. </div>
  1899. <div
  1900. class="worksDetailBox"
  1901. v-if="workStudent[toolIndex].length > 0"
  1902. >
  1903. <div
  1904. class="isWorksName2"
  1905. v-for="(w, wIndex) in workStudent[toolIndex]"
  1906. :key="wIndex"
  1907. @click="
  1908. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1909. "
  1910. >
  1911. {{ w.sName }}
  1912. <img
  1913. class="deleteImg deleteImg2"
  1914. src="../../assets/deleteworks.png"
  1915. v-if="w.userid == userid || tType == 1 || tType == 4"
  1916. @click.stop="deleteWorks(w.wid)"
  1917. alt
  1918. />
  1919. </div>
  1920. </div>
  1921. </div>
  1922. <div
  1923. v-if="
  1924. tType &&
  1925. tType == 2 &&
  1926. !sIsOpen &&
  1927. tool.tool.indexOf(45) != -1
  1928. "
  1929. class="worksBox"
  1930. >
  1931. <div
  1932. class="zuoyeYulan"
  1933. v-if="workStudent[toolIndex].length > 0"
  1934. >
  1935. <span class="worksTitle">作业预览</span>
  1936. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1937. </div>
  1938. <div
  1939. class="worksDetailBox"
  1940. v-if="workStudent[toolIndex].length > 0"
  1941. >
  1942. <div
  1943. class="isWorksName2"
  1944. v-for="(w, wIndex) in workStudent[toolIndex]"
  1945. :key="wIndex"
  1946. @click="
  1947. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1948. "
  1949. >
  1950. {{ w.sName }}
  1951. <img
  1952. class="deleteImg deleteImg2"
  1953. src="../../assets/deleteworks.png"
  1954. v-if="w.userid == userid || tType == 1 || tType == 4"
  1955. @click.stop="deleteWorks(w.wid)"
  1956. alt
  1957. />
  1958. </div>
  1959. </div>
  1960. </div>
  1961. <div
  1962. v-if="
  1963. tType &&
  1964. tType == 2 &&
  1965. !sIsOpen &&
  1966. tool.tool.indexOf(69) != -1
  1967. "
  1968. class="worksBox"
  1969. >
  1970. <div
  1971. class="zuoyeYulan"
  1972. v-if="workStudent[toolIndex].length > 0"
  1973. >
  1974. <span class="worksTitle">作业预览</span>
  1975. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1976. </div>
  1977. <div
  1978. class="worksDetailBox"
  1979. v-if="workStudent[toolIndex].length > 0"
  1980. >
  1981. <div
  1982. class="isWorksName2"
  1983. v-for="(w, wIndex) in workStudent[toolIndex]"
  1984. :key="wIndex"
  1985. @click="
  1986. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1987. "
  1988. >
  1989. {{ w.sName }}
  1990. <img
  1991. class="deleteImg deleteImg2"
  1992. src="../../assets/deleteworks.png"
  1993. v-if="w.userid == userid || tType == 1 || tType == 4"
  1994. @click.stop="deleteWorks(w.wid)"
  1995. alt
  1996. />
  1997. </div>
  1998. </div>
  1999. </div>
  2000. <div
  2001. v-if="
  2002. tType &&
  2003. tType == 2 &&
  2004. !sIsOpen &&
  2005. tool.tool.indexOf(15) != -1
  2006. "
  2007. class="worksBox"
  2008. >
  2009. <div
  2010. class="zuoyeYulan"
  2011. v-if="workStudent[toolIndex].length > 0"
  2012. >
  2013. <span class="worksTitle">作业预览</span>
  2014. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2015. </div>
  2016. <div
  2017. class="worksDetailBox"
  2018. v-if="workStudent[toolIndex].length > 0"
  2019. >
  2020. <div
  2021. class="works"
  2022. v-for="(w, wIndex) in workStudent[toolIndex]"
  2023. :key="wIndex"
  2024. >
  2025. <div class="workImg">
  2026. <!-- <img
  2027. src="../../assets/icon/works/noImg.png"
  2028. @click="openTools(15, toolIndex, taskCount, w.works)"
  2029. alt=""
  2030. />-->
  2031. <div class="answerBg">
  2032. <!-- <div>{{ w.sName }}</div> -->
  2033. <el-tooltip
  2034. class="item"
  2035. effect="light"
  2036. :content="JSON.parse(w.works)[0].answer"
  2037. placement="top"
  2038. >
  2039. <div class="answerContent">
  2040. {{ JSON.parse(w.works)[0].answer }}
  2041. </div>
  2042. </el-tooltip>
  2043. <div
  2044. class="answerScore"
  2045. v-if="w.score"
  2046. @click.stop="openScore(w)"
  2047. :class="{
  2048. rightW:
  2049. w.userid == userid ||
  2050. tType == 1 ||
  2051. tType == 4,
  2052. }"
  2053. >
  2054. {{ JSON.parse(w.score).wScore }}分
  2055. </div>
  2056. <div
  2057. class="answerScore"
  2058. @click.stop="openScore(w)"
  2059. v-else-if="courseDetail.userid == userid"
  2060. :class="{
  2061. rightW:
  2062. w.userid == userid ||
  2063. tType == 1 ||
  2064. tType == 4,
  2065. }"
  2066. >
  2067. 评分
  2068. </div>
  2069. <img
  2070. class="deleteImg"
  2071. src="../../assets/deleteworks.png"
  2072. v-if="
  2073. w.userid == userid || tType == 1 || tType == 4
  2074. "
  2075. @click.stop="deleteWorks(w.wid)"
  2076. alt
  2077. />
  2078. </div>
  2079. <div class="comment">
  2080. <div class="worksName">
  2081. <div>{{ w.sName }}</div>
  2082. </div>
  2083. </div>
  2084. </div>
  2085. </div>
  2086. </div>
  2087. </div>
  2088. <div
  2089. v-if="
  2090. tType &&
  2091. tType == 2 &&
  2092. !sIsOpen &&
  2093. tool.tool.indexOf(1) != -1
  2094. "
  2095. class="worksBox"
  2096. >
  2097. <div
  2098. class="zuoyeYulan"
  2099. v-if="workStudent[toolIndex].length > 0"
  2100. >
  2101. <span class="worksTitle">作业预览</span>
  2102. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2103. </div>
  2104. <div
  2105. class="worksDetailBox"
  2106. v-if="workStudent[toolIndex].length > 0"
  2107. >
  2108. <div
  2109. class="works"
  2110. style="
  2111. width: 200px;
  2112. height: 140px;
  2113. margin: 10px 10px 10px 0;
  2114. box-shadow: 0 0 6px 1px #dfdada;
  2115. "
  2116. v-for="(w, wIndex) in workStudent[toolIndex]"
  2117. :key="wIndex"
  2118. >
  2119. <div class="workImg">
  2120. <img
  2121. :src="w.works"
  2122. @click="previewImg(w.works)"
  2123. alt
  2124. />
  2125. <div
  2126. class="answerScore"
  2127. v-if="w.score"
  2128. @click.stop="openScore(w)"
  2129. :class="{
  2130. rightW:
  2131. w.userid == userid || tType == 1 || tType == 4,
  2132. }"
  2133. >
  2134. {{ JSON.parse(w.score).wScore }}分
  2135. </div>
  2136. <div
  2137. class="answerScore"
  2138. @click.stop="openScore(w)"
  2139. v-else-if="courseDetail.userid == userid"
  2140. :class="{
  2141. rightW:
  2142. w.userid == userid || tType == 1 || tType == 4,
  2143. }"
  2144. >
  2145. 评分
  2146. </div>
  2147. <img
  2148. class="deleteImg"
  2149. src="../../assets/deleteworks.png"
  2150. v-if="
  2151. w.userid == userid || tType == 1 || tType == 4
  2152. "
  2153. @click.stop="deleteWorks(w.wid)"
  2154. alt
  2155. />
  2156. </div>
  2157. <div class="worksName">
  2158. <div>{{ w.sName }}</div>
  2159. </div>
  2160. </div>
  2161. </div>
  2162. </div>
  2163. <div
  2164. v-if="
  2165. tType &&
  2166. tType == 2 &&
  2167. !sIsOpen &&
  2168. tool.tool.indexOf(3) != -1
  2169. "
  2170. class="worksBox"
  2171. >
  2172. <div
  2173. class="zuoyeYulan"
  2174. v-if="workStudent[toolIndex].length > 0"
  2175. >
  2176. <span class="worksTitle">作业预览</span>
  2177. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2178. </div>
  2179. <div
  2180. class="worksDetailBox"
  2181. v-if="workStudent[toolIndex].length > 0"
  2182. >
  2183. <div
  2184. class="works"
  2185. style="
  2186. width: 200px;
  2187. height: 140px;
  2188. margin: 10px 10px 10px 0;
  2189. box-shadow: 0 0 6px 1px #dfdada;
  2190. "
  2191. v-for="(w, wIndex) in workStudent[toolIndex]"
  2192. :key="wIndex"
  2193. >
  2194. <div class="workImg">
  2195. <img
  2196. :src="w.works"
  2197. @click="previewImg(w.works)"
  2198. alt
  2199. />
  2200. <div
  2201. class="answerScore"
  2202. v-if="w.score"
  2203. @click.stop="openScore(w)"
  2204. :class="{
  2205. rightW:
  2206. w.userid == userid || tType == 1 || tType == 4,
  2207. }"
  2208. >
  2209. {{ JSON.parse(w.score).wScore }}分
  2210. </div>
  2211. <div
  2212. class="answerScore"
  2213. @click.stop="openScore(w)"
  2214. v-else-if="courseDetail.userid == userid"
  2215. :class="{
  2216. rightW:
  2217. w.userid == userid || tType == 1 || tType == 4,
  2218. }"
  2219. >
  2220. 评分
  2221. </div>
  2222. <img
  2223. class="deleteImg"
  2224. src="../../assets/deleteworks.png"
  2225. v-if="
  2226. w.userid == userid || tType == 1 || tType == 4
  2227. "
  2228. @click.stop="deleteWorks(w.wid)"
  2229. alt
  2230. />
  2231. </div>
  2232. <div class="worksName">
  2233. <div>{{ w.sName }}</div>
  2234. </div>
  2235. </div>
  2236. </div>
  2237. </div>
  2238. <div
  2239. v-if="
  2240. tType &&
  2241. tType == 2 &&
  2242. !sIsOpen &&
  2243. tool.tool.indexOf(6) != -1
  2244. "
  2245. class="worksBox"
  2246. >
  2247. <div
  2248. class="zuoyeYulan"
  2249. v-if="workStudent[toolIndex].length > 0"
  2250. >
  2251. <span class="worksTitle">作业预览</span>
  2252. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2253. </div>
  2254. <div
  2255. class="worksDetailBox"
  2256. v-if="workStudent[toolIndex].length > 0"
  2257. >
  2258. <div
  2259. class="works"
  2260. style="
  2261. width: 200px;
  2262. height: 140px;
  2263. margin: 10px 10px 10px 0;
  2264. box-shadow: 0 0 6px 1px #dfdada;
  2265. "
  2266. v-for="(w, wIndex) in workStudent[toolIndex]"
  2267. :key="wIndex"
  2268. >
  2269. <div class="workImg">
  2270. <img
  2271. :src="w.works"
  2272. @click="previewImg(w.works)"
  2273. alt
  2274. />
  2275. <div
  2276. class="answerScore"
  2277. v-if="w.score"
  2278. @click.stop="openScore(w)"
  2279. :class="{
  2280. rightW:
  2281. w.userid == userid || tType == 1 || tType == 4,
  2282. }"
  2283. >
  2284. {{ JSON.parse(w.score).wScore }}分
  2285. </div>
  2286. <div
  2287. class="answerScore"
  2288. @click.stop="openScore(w)"
  2289. v-else-if="courseDetail.userid == userid"
  2290. :class="{
  2291. rightW:
  2292. w.userid == userid || tType == 1 || tType == 4,
  2293. }"
  2294. >
  2295. 评分
  2296. </div>
  2297. <img
  2298. class="deleteImg"
  2299. src="../../assets/deleteworks.png"
  2300. v-if="
  2301. w.userid == userid || tType == 1 || tType == 4
  2302. "
  2303. @click.stop="deleteWorks(w.wid)"
  2304. alt
  2305. />
  2306. </div>
  2307. <div class="worksName">
  2308. <div>{{ w.sName }}</div>
  2309. </div>
  2310. </div>
  2311. </div>
  2312. </div>
  2313. <div
  2314. v-if="
  2315. tType &&
  2316. tType == 2 &&
  2317. !sIsOpen &&
  2318. tool.tool.indexOf(7) != -1
  2319. "
  2320. class="worksBox"
  2321. >
  2322. <div
  2323. class="zuoyeYulan"
  2324. v-if="workStudent[toolIndex].length > 0"
  2325. >
  2326. <span class="worksTitle">作业预览</span>
  2327. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2328. </div>
  2329. <div
  2330. class="worksDetailBox"
  2331. v-if="workStudent[toolIndex].length > 0"
  2332. >
  2333. <div
  2334. class="works"
  2335. style="
  2336. width: 200px;
  2337. height: 140px;
  2338. margin: 10px 10px 10px 0;
  2339. box-shadow: 0 0 6px 1px #dfdada;
  2340. "
  2341. v-for="(w, wIndex) in workStudent[toolIndex]"
  2342. :key="wIndex"
  2343. >
  2344. <div class="workImg">
  2345. <img
  2346. :src="w.works"
  2347. @click="previewImg(w.works)"
  2348. alt
  2349. />
  2350. <div
  2351. class="answerScore"
  2352. v-if="w.score"
  2353. @click.stop="openScore(w)"
  2354. :class="{
  2355. rightW:
  2356. w.userid == userid || tType == 1 || tType == 4,
  2357. }"
  2358. >
  2359. {{ JSON.parse(w.score).wScore }}分
  2360. </div>
  2361. <div
  2362. class="answerScore"
  2363. @click.stop="openScore(w)"
  2364. v-else-if="courseDetail.userid == userid"
  2365. :class="{
  2366. rightW:
  2367. w.userid == userid || tType == 1 || tType == 4,
  2368. }"
  2369. >
  2370. 评分
  2371. </div>
  2372. <img
  2373. class="deleteImg"
  2374. src="../../assets/deleteworks.png"
  2375. v-if="
  2376. w.userid == userid || tType == 1 || tType == 4
  2377. "
  2378. @click.stop="deleteWorks(w.wid)"
  2379. alt
  2380. />
  2381. </div>
  2382. <div class="worksName">
  2383. <div>{{ w.sName }}</div>
  2384. </div>
  2385. </div>
  2386. </div>
  2387. </div>
  2388. <div
  2389. v-if="
  2390. tType &&
  2391. tType == 2 &&
  2392. !sIsOpen &&
  2393. tool.tool.indexOf(26) != -1
  2394. "
  2395. class="worksBox"
  2396. >
  2397. <div
  2398. class="zuoyeYulan"
  2399. v-if="workStudent[toolIndex].length > 0"
  2400. >
  2401. <span class="worksTitle">作业预览</span>
  2402. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2403. </div>
  2404. <div
  2405. class="worksDetailBox"
  2406. v-if="workStudent[toolIndex].length > 0"
  2407. >
  2408. <div
  2409. class="works"
  2410. style="
  2411. width: 200px;
  2412. height: 140px;
  2413. margin: 10px 10px 10px 0;
  2414. box-shadow: 0 0 6px 1px #dfdada;
  2415. "
  2416. v-for="(w, wIndex) in workStudent[toolIndex]"
  2417. :key="wIndex"
  2418. >
  2419. <div class="workImg">
  2420. <img
  2421. :src="w.works"
  2422. @click="previewImg(w.works)"
  2423. alt
  2424. />
  2425. <img
  2426. class="deleteImg"
  2427. src="../../assets/deleteworks.png"
  2428. v-if="
  2429. w.userid == userid || tType == 1 || tType == 4
  2430. "
  2431. @click.stop="deleteWorks(w.wid)"
  2432. alt
  2433. />
  2434. </div>
  2435. <div class="worksName">
  2436. <div>{{ w.sName }}</div>
  2437. </div>
  2438. </div>
  2439. </div>
  2440. </div>
  2441. <div
  2442. v-if="
  2443. tType &&
  2444. ((tType == 2 && sIsOpen == true) ||
  2445. tType == 1 ||
  2446. tType == 4) &&
  2447. tool.tool.indexOf(16) != -1
  2448. "
  2449. class="worksBox"
  2450. >
  2451. <div
  2452. class="zuoyeYulan"
  2453. v-if="
  2454. (worksStudent.length &&
  2455. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2456. "
  2457. >
  2458. <div class="worksTop">
  2459. <div>作业预览</div>
  2460. <div
  2461. class="corOpen"
  2462. @click="contract(toolIndex)"
  2463. v-if="
  2464. (isCloseList[toolIndex].isCloseBoolean) &&
  2465. isCloseList[toolIndex].isClose == 0
  2466. "
  2467. >
  2468. 折叠
  2469. </div>
  2470. <div
  2471. class="corOpen"
  2472. @click="contract(toolIndex)"
  2473. v-if="isCloseList[toolIndex].isClose == 1"
  2474. >
  2475. 展开
  2476. </div>
  2477. </div>
  2478. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2479. </div>
  2480. <div
  2481. class="group_workBox"
  2482. v-for="(g, gindex) in courseGroup.group"
  2483. :key="gindex"
  2484. >
  2485. <div class="group_box">
  2486. <div class="group_title">
  2487. <el-tooltip
  2488. class="item"
  2489. effect="light"
  2490. :content="g.name"
  2491. placement="top"
  2492. >
  2493. <div class="group_name">{{ g.name }}</div>
  2494. </el-tooltip>
  2495. </div>
  2496. <div
  2497. class="group_work"
  2498. v-if="
  2499. g.works &&
  2500. g.works.length &&
  2501. g.works[toolIndex].length
  2502. "
  2503. >
  2504. <div
  2505. class="works"
  2506. style="
  2507. width: 200px;
  2508. height: 140px;
  2509. margin: 10px 10px 10px 0;
  2510. border-radius: 15px;
  2511. box-shadow: 0 0 6px 1px #dfdada;
  2512. "
  2513. v-for="(w, wIndex) in g.works[toolIndex]"
  2514. :key="wIndex"
  2515. :class="w.type == 1 ? 'isTypeOne' : ''"
  2516. >
  2517. <div class="workImg" v-if="w.type == 0">
  2518. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2519. <img
  2520. :src="w.works"
  2521. @click="previewImg(w.works)"
  2522. alt
  2523. />
  2524. <div
  2525. class="answerScore"
  2526. v-if="w.score"
  2527. @click.stop="openScore(w)"
  2528. :class="{
  2529. rightW:
  2530. w.userid == userid ||
  2531. tType == 1 ||
  2532. tType == 4 ||
  2533. w.ateacher == userid,
  2534. }"
  2535. >
  2536. {{ JSON.parse(w.score).wScore }}分
  2537. </div>
  2538. <div
  2539. class="answerScore"
  2540. @click.stop="openScore(w)"
  2541. v-else-if="courseDetail.userid == userid"
  2542. :class="{
  2543. rightW:
  2544. w.userid == userid ||
  2545. tType == 1 ||
  2546. tType == 4 ||
  2547. w.ateacher == userid,
  2548. }"
  2549. >
  2550. 评分
  2551. </div>
  2552. <img
  2553. class="deleteImg"
  2554. src="../../assets/deleteworks.png"
  2555. v-if="
  2556. w.userid == userid || tType == 1 || tType == 4
  2557. "
  2558. @click.stop="deleteWorks(w.wid)"
  2559. alt
  2560. />
  2561. </div>
  2562. <div class="workImg" v-if="w.type == 1">
  2563. <img :src="word" @click="openFile(w.works)" alt />
  2564. <!-- @click="openFile(w.works)" -->
  2565. <div
  2566. class="answerScore"
  2567. v-if="w.score"
  2568. @click.stop="openScore(w)"
  2569. :class="{
  2570. rightW:
  2571. w.userid == userid ||
  2572. tType == 1 ||
  2573. tType == 4 ||
  2574. w.ateacher == userid,
  2575. }"
  2576. >
  2577. {{ JSON.parse(w.score).wScore }}分
  2578. </div>
  2579. <div
  2580. class="answerScore"
  2581. @click.stop="openScore(w)"
  2582. v-else-if="courseDetail.userid == userid"
  2583. :class="{
  2584. rightW:
  2585. w.userid == userid ||
  2586. tType == 1 ||
  2587. tType == 4 ||
  2588. w.ateacher == userid,
  2589. }"
  2590. >
  2591. 评分
  2592. </div>
  2593. <img
  2594. class="deleteImg"
  2595. src="../../assets/deleteworks.png"
  2596. v-if="
  2597. w.userid == userid || tType == 1 || tType == 4
  2598. "
  2599. @click.stop="deleteWorks(w.wid)"
  2600. alt
  2601. />
  2602. </div>
  2603. <div class="workImg" v-if="w.type == 3">
  2604. <img
  2605. style="cursor: pointer"
  2606. :src="video"
  2607. @click="openVideo(w)"
  2608. alt
  2609. />
  2610. <!-- @click="openVideo(w.works)" -->
  2611. <div
  2612. class="answerScore"
  2613. v-if="w.score"
  2614. @click.stop="openScore(w)"
  2615. :class="{
  2616. rightW:
  2617. w.userid == userid ||
  2618. tType == 1 ||
  2619. tType == 4 ||
  2620. w.ateacher == userid,
  2621. }"
  2622. >
  2623. {{ JSON.parse(w.score).wScore }}分
  2624. </div>
  2625. <div
  2626. class="answerScore"
  2627. @click.stop="openScore(w)"
  2628. v-else-if="courseDetail.userid == userid"
  2629. :class="{
  2630. rightW:
  2631. w.userid == userid ||
  2632. tType == 1 ||
  2633. tType == 4 ||
  2634. w.ateacher == userid,
  2635. }"
  2636. >
  2637. 评分
  2638. </div>
  2639. <img
  2640. class="deleteImg"
  2641. src="../../assets/deleteworks.png"
  2642. v-if="
  2643. w.userid == userid || tType == 1 || tType == 4
  2644. "
  2645. @click.stop="deleteWorks(w.wid)"
  2646. alt
  2647. />
  2648. </div>
  2649. <div class="workImg" v-if="w.type == 12">
  2650. <img
  2651. style="cursor: pointer"
  2652. :src="word2"
  2653. @click="downloadFile(w.works)"
  2654. alt
  2655. />
  2656. <!-- @click="openVideo(w.works)" -->
  2657. <div
  2658. class="answerScore"
  2659. v-if="w.score"
  2660. @click.stop="openScore(w)"
  2661. :class="{
  2662. rightW:
  2663. w.userid == userid ||
  2664. tType == 1 ||
  2665. tType == 4 ||
  2666. w.ateacher == userid,
  2667. }"
  2668. >
  2669. {{ JSON.parse(w.score).wScore }}分
  2670. </div>
  2671. <div
  2672. class="answerScore"
  2673. @click.stop="openScore(w)"
  2674. v-else-if="courseDetail.userid == userid"
  2675. :class="{
  2676. rightW:
  2677. w.userid == userid ||
  2678. tType == 1 ||
  2679. tType == 4 ||
  2680. w.ateacher == userid,
  2681. }"
  2682. >
  2683. 评分
  2684. </div>
  2685. <img
  2686. class="deleteImg"
  2687. src="../../assets/deleteworks.png"
  2688. v-if="
  2689. w.userid == userid || tType == 1 || tType == 4
  2690. "
  2691. @click.stop="deleteWorks(w.wid)"
  2692. alt
  2693. />
  2694. </div>
  2695. <div class="comment" style="min-width: 200px">
  2696. <div class="worksName">
  2697. <div>{{ w.sName }}</div>
  2698. </div>
  2699. <div class="commentList">
  2700. <div class="commentList">
  2701. <div
  2702. class="commentImg"
  2703. @click="
  2704. isLikes(w.wid, userid, 1, null, w.isLikes)
  2705. "
  2706. >
  2707. <img
  2708. :src="w.isLikes == true ? likes : noLikes"
  2709. alt=""
  2710. />
  2711. </div>
  2712. <div>{{ w.likesCount }}</div>
  2713. </div>
  2714. <div
  2715. class="commentList"
  2716. style="margin-right: 15px"
  2717. >
  2718. <div
  2719. class="commentImg"
  2720. @click="
  2721. commentOther(
  2722. w,
  2723. toolIndex,
  2724. wIndex,
  2725. null,
  2726. g.id
  2727. )
  2728. "
  2729. >
  2730. <img
  2731. src="../../assets/icon/comment/comment.png"
  2732. alt=""
  2733. />
  2734. </div>
  2735. <div>{{ w.commentCount }}</div>
  2736. </div>
  2737. </div>
  2738. </div>
  2739. </div>
  2740. </div>
  2741. <div class="group_work" v-else>暂无提交作业</div>
  2742. </div>
  2743. </div>
  2744. <div
  2745. :id="'tool-' + toolIndex"
  2746. :style="{
  2747. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2748. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2749. }"
  2750. class="worksDetailBox"
  2751. v-if="
  2752. worksStudent.length &&
  2753. worksStudent[toolIndex].length > 0
  2754. "
  2755. >
  2756. <div
  2757. class="works"
  2758. style="
  2759. width: 200px;
  2760. height: 140px;
  2761. margin: 10px 10px 10px 0;
  2762. border-radius: 15px;
  2763. box-shadow: 0 0 6px 1px #dfdada;
  2764. "
  2765. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2766. :key="wIndex"
  2767. :class="w.type == 1 ? 'isTypeOne' : ''"
  2768. >
  2769. <div class="workImg" v-if="w.type == 0">
  2770. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2771. <img
  2772. :src="w.works"
  2773. @click="previewImg(w.works)"
  2774. alt
  2775. />
  2776. <div
  2777. class="answerScore"
  2778. v-if="w.score"
  2779. @click.stop="openScore(w)"
  2780. :class="{
  2781. rightW:
  2782. w.userid == userid ||
  2783. tType == 1 ||
  2784. tType == 4 ||
  2785. w.ateacher == userid,
  2786. }"
  2787. >
  2788. {{ JSON.parse(w.score).wScore }}分
  2789. </div>
  2790. <div
  2791. class="answerScore"
  2792. @click.stop="openScore(w)"
  2793. v-else-if="courseDetail.userid == userid"
  2794. :class="{
  2795. rightW:
  2796. w.userid == userid ||
  2797. tType == 1 ||
  2798. tType == 4 ||
  2799. w.ateacher == userid,
  2800. }"
  2801. >
  2802. 评分
  2803. </div>
  2804. <img
  2805. class="deleteImg"
  2806. src="../../assets/deleteworks.png"
  2807. v-if="
  2808. w.userid == userid || tType == 1 || tType == 4
  2809. "
  2810. @click.stop="deleteWorks(w.wid)"
  2811. alt
  2812. />
  2813. </div>
  2814. <div class="workImg" v-if="w.type == 1">
  2815. <img :src="word" @click="openFile(w.works)" alt />
  2816. <!-- @click="openFile(w.works)" -->
  2817. <div
  2818. class="answerScore"
  2819. v-if="w.score"
  2820. @click.stop="openScore(w)"
  2821. :class="{
  2822. rightW:
  2823. w.userid == userid ||
  2824. tType == 1 ||
  2825. tType == 4 ||
  2826. w.ateacher == userid,
  2827. }"
  2828. >
  2829. {{ JSON.parse(w.score).wScore }}分
  2830. </div>
  2831. <div
  2832. class="answerScore"
  2833. @click.stop="openScore(w)"
  2834. v-else-if="courseDetail.userid == userid"
  2835. :class="{
  2836. rightW:
  2837. w.userid == userid ||
  2838. tType == 1 ||
  2839. tType == 4 ||
  2840. w.ateacher == userid,
  2841. }"
  2842. >
  2843. 评分
  2844. </div>
  2845. <img
  2846. class="deleteImg"
  2847. src="../../assets/deleteworks.png"
  2848. v-if="
  2849. w.userid == userid || tType == 1 || tType == 4
  2850. "
  2851. @click.stop="deleteWorks(w.wid)"
  2852. alt
  2853. />
  2854. </div>
  2855. <div class="workImg" v-if="w.type == 3">
  2856. <img
  2857. style="cursor: pointer"
  2858. :src="video"
  2859. @click="openVideo(w)"
  2860. alt
  2861. />
  2862. <!-- @click="openVideo(w.works)" -->
  2863. <div
  2864. class="answerScore"
  2865. v-if="w.score"
  2866. @click.stop="openScore(w)"
  2867. :class="{
  2868. rightW:
  2869. w.userid == userid ||
  2870. tType == 1 ||
  2871. tType == 4 ||
  2872. w.ateacher == userid,
  2873. }"
  2874. >
  2875. {{ JSON.parse(w.score).wScore }}分
  2876. </div>
  2877. <div
  2878. class="answerScore"
  2879. @click.stop="openScore(w)"
  2880. v-else-if="courseDetail.userid == userid"
  2881. :class="{
  2882. rightW:
  2883. w.userid == userid ||
  2884. tType == 1 ||
  2885. tType == 4 ||
  2886. w.ateacher == userid,
  2887. }"
  2888. >
  2889. 评分
  2890. </div>
  2891. <img
  2892. class="deleteImg"
  2893. src="../../assets/deleteworks.png"
  2894. v-if="
  2895. w.userid == userid || tType == 1 || tType == 4
  2896. "
  2897. @click.stop="deleteWorks(w.wid)"
  2898. alt
  2899. />
  2900. </div>
  2901. <div class="workImg" v-if="w.type == 12">
  2902. <img
  2903. style="cursor: pointer"
  2904. :src="word2"
  2905. @click="downloadFile(w.works)"
  2906. alt
  2907. />
  2908. <!-- @click="openVideo(w.works)" -->
  2909. <div
  2910. class="answerScore"
  2911. v-if="w.score"
  2912. @click.stop="openScore(w)"
  2913. :class="{
  2914. rightW:
  2915. w.userid == userid ||
  2916. tType == 1 ||
  2917. tType == 4 ||
  2918. w.ateacher == userid,
  2919. }"
  2920. >
  2921. {{ JSON.parse(w.score).wScore }}分
  2922. </div>
  2923. <div
  2924. class="answerScore"
  2925. @click.stop="openScore(w)"
  2926. v-else-if="courseDetail.userid == userid"
  2927. :class="{
  2928. rightW:
  2929. w.userid == userid ||
  2930. tType == 1 ||
  2931. tType == 4 ||
  2932. w.ateacher == userid,
  2933. }"
  2934. >
  2935. 评分
  2936. </div>
  2937. <img
  2938. class="deleteImg"
  2939. src="../../assets/deleteworks.png"
  2940. v-if="
  2941. w.userid == userid || tType == 1 || tType == 4
  2942. "
  2943. @click.stop="deleteWorks(w.wid)"
  2944. alt
  2945. />
  2946. </div>
  2947. <div class="comment" style="min-width: 200px">
  2948. <div class="worksName">
  2949. <div>{{ w.sName }}</div>
  2950. </div>
  2951. <div class="commentList">
  2952. <div class="commentList">
  2953. <div
  2954. class="commentImg"
  2955. @click="
  2956. isLikes(w.wid, userid, 1, null, w.isLikes)
  2957. "
  2958. >
  2959. <img
  2960. :src="w.isLikes == true ? likes : noLikes"
  2961. alt=""
  2962. />
  2963. </div>
  2964. <div>{{ w.likesCount }}</div>
  2965. </div>
  2966. <div class="commentList" style="margin-right: 15px">
  2967. <div
  2968. class="commentImg"
  2969. @click="commentOther(w, toolIndex, wIndex)"
  2970. >
  2971. <img
  2972. src="../../assets/icon/comment/comment.png"
  2973. alt=""
  2974. />
  2975. </div>
  2976. <div>{{ w.commentCount }}</div>
  2977. </div>
  2978. </div>
  2979. </div>
  2980. </div>
  2981. </div>
  2982. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2983. 未提交
  2984. </div>
  2985. <div
  2986. class="noWorksS"
  2987. v-if="noWorksS && noWorksS[toolIndex].length"
  2988. >
  2989. <div
  2990. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2991. :key="sIndex"
  2992. class="noWorksName"
  2993. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2994. >
  2995. <el-tooltip effect="dark" :content="s.student" placement="top">
  2996. <span>{{ s.student }}</span>
  2997. </el-tooltip>
  2998. </div>
  2999. </div>
  3000. </div>
  3001. <div
  3002. v-if="
  3003. tType &&
  3004. ((tType == 2 && sIsOpen == true) ||
  3005. tType == 1 ||
  3006. tType == 4) &&
  3007. tool.tool.indexOf(70) != -1
  3008. "
  3009. class="worksBox"
  3010. >
  3011. <div
  3012. class="zuoyeYulan"
  3013. v-if="
  3014. (worksStudent.length &&
  3015. worksStudent[toolIndex].length > 0)
  3016. "
  3017. >
  3018. <div class="worksTop">
  3019. <div>作业预览</div>
  3020. <div
  3021. class="corOpen"
  3022. @click="contract(toolIndex)"
  3023. v-if="
  3024. (isCloseList[toolIndex].isCloseBoolean) &&
  3025. isCloseList[toolIndex].isClose == 0
  3026. "
  3027. >
  3028. 折叠
  3029. </div>
  3030. <div
  3031. class="corOpen"
  3032. @click="contract(toolIndex)"
  3033. v-if="isCloseList[toolIndex].isClose == 1"
  3034. >
  3035. 展开
  3036. </div>
  3037. </div>
  3038. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3039. </div>
  3040. <div
  3041. :id="'tool-' + toolIndex"
  3042. :style="{
  3043. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3044. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3045. }"
  3046. class="worksDetailBox"
  3047. v-if="
  3048. worksStudent.length &&
  3049. worksStudent[toolIndex].length > 0
  3050. "
  3051. >
  3052. <div
  3053. class="works"
  3054. style="
  3055. width: 200px;
  3056. height: 140px;
  3057. margin: 10px 10px 10px 0;
  3058. border-radius: 15px;
  3059. box-shadow: 0 0 6px 1px #dfdada;
  3060. "
  3061. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3062. :key="wIndex"
  3063. :class="w.type == 1 ? 'isTypeOne' : ''"
  3064. >
  3065. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3066. <img :src="word" alt />
  3067. <img
  3068. class="deleteImg"
  3069. src="../../assets/deleteworks.png"
  3070. v-if="
  3071. w.userid == userid || tType == 1 || tType == 4
  3072. "
  3073. @click.stop="deleteWorks(w.wid)"
  3074. alt
  3075. />
  3076. </div>
  3077. <div class="comment" style="min-width: 200px">
  3078. <div class="worksName">
  3079. <div>{{ w.sName }}</div>
  3080. </div>
  3081. </div>
  3082. </div>
  3083. </div>
  3084. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3085. 未提交
  3086. </div>
  3087. <div
  3088. class="noWorksS"
  3089. v-if="noWorksS && noWorksS[toolIndex].length"
  3090. >
  3091. <div
  3092. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3093. :key="sIndex"
  3094. class="noWorksName"
  3095. >
  3096. <el-tooltip effect="dark" :content="s.student" placement="top">
  3097. <span>{{ s.student }}</span>
  3098. </el-tooltip>
  3099. </div>
  3100. </div>
  3101. </div>
  3102. <div
  3103. v-if="
  3104. tType &&
  3105. tType == 2 &&
  3106. !sIsOpen &&
  3107. tool.tool.indexOf(70) != -1
  3108. "
  3109. class="worksBox"
  3110. >
  3111. <div
  3112. class="zuoyeYulan"
  3113. v-if="workStudent[toolIndex].length > 0"
  3114. >
  3115. <span class="worksTitle">作业预览</span>
  3116. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3117. </div>
  3118. <div
  3119. class="worksDetailBox"
  3120. v-if="workStudent[toolIndex].length > 0"
  3121. >
  3122. <div
  3123. class="works"
  3124. style="
  3125. width: 200px;
  3126. height: 140px;
  3127. margin: 10px 10px 10px 0;
  3128. box-shadow: 0 0 6px 1px #dfdada;
  3129. "
  3130. v-for="(w, wIndex) in workStudent[toolIndex]"
  3131. :key="wIndex"
  3132. >
  3133. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3134. <img :src="word" alt />
  3135. <img
  3136. class="deleteImg"
  3137. src="../../assets/deleteworks.png"
  3138. v-if="
  3139. w.userid == userid || tType == 1 || tType == 4
  3140. "
  3141. @click.stop="deleteWorks(w.wid)"
  3142. alt
  3143. />
  3144. </div>
  3145. <div class="worksName">
  3146. <div>{{ w.sName }}</div>
  3147. </div>
  3148. </div>
  3149. </div>
  3150. </div>
  3151. <div
  3152. v-if="
  3153. tType &&
  3154. ((tType == 2 && sIsOpen == true) ||
  3155. tType == 1 ||
  3156. tType == 4) &&
  3157. tool.tool.indexOf(32) != -1
  3158. "
  3159. class="worksBox"
  3160. >
  3161. <div
  3162. class="zuoyeYulan"
  3163. v-if="
  3164. worksStudent.length &&
  3165. worksStudent[toolIndex].length > 0
  3166. "
  3167. >
  3168. <div class="worksTop">
  3169. <div>作业预览</div>
  3170. <div
  3171. class="corOpen"
  3172. @click="contract(toolIndex)"
  3173. v-if="
  3174. (isCloseList[toolIndex].isCloseBoolean) &&
  3175. isCloseList[toolIndex].isClose == 0
  3176. "
  3177. >
  3178. 折叠
  3179. </div>
  3180. <div
  3181. class="corOpen"
  3182. @click="contract(toolIndex)"
  3183. v-if="isCloseList[toolIndex].isClose == 1"
  3184. >
  3185. 展开
  3186. </div>
  3187. </div>
  3188. </div>
  3189. <div
  3190. :id="'tool-' + toolIndex"
  3191. :style="{
  3192. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3193. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3194. }"
  3195. class="worksDetailBox"
  3196. v-if="
  3197. worksStudent.length &&
  3198. worksStudent[toolIndex].length > 0
  3199. "
  3200. >
  3201. <div
  3202. class="works"
  3203. style="
  3204. width: 200px;
  3205. height: 140px;
  3206. margin: 10px 10px 10px 0;
  3207. border-radius: 15px;
  3208. box-shadow: 0 0 6px 1px #dfdada;
  3209. "
  3210. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3211. :key="wIndex"
  3212. :class="w.type == 1 ? 'isTypeOne' : ''"
  3213. >
  3214. <div class="workImg">
  3215. <img
  3216. :src="word2"
  3217. @click="downloadFile(w.works)"
  3218. alt
  3219. />
  3220. <div
  3221. class="answerScore"
  3222. v-if="w.score"
  3223. @click.stop="openScore(w)"
  3224. :class="{
  3225. rightW:
  3226. w.userid == userid ||
  3227. tType == 1 ||
  3228. tType == 4 ||
  3229. w.ateacher == userid,
  3230. }"
  3231. >
  3232. {{ JSON.parse(w.score).wScore }}分
  3233. </div>
  3234. <div
  3235. class="answerScore"
  3236. @click.stop="openScore(w)"
  3237. v-else-if="courseDetail.userid == userid"
  3238. :class="{
  3239. rightW:
  3240. w.userid == userid ||
  3241. tType == 1 ||
  3242. tType == 4 ||
  3243. w.ateacher == userid,
  3244. }"
  3245. >
  3246. 评分
  3247. </div>
  3248. <img
  3249. class="deleteImg"
  3250. src="../../assets/deleteworks.png"
  3251. v-if="
  3252. w.userid == userid || tType == 1 || tType == 4
  3253. "
  3254. @click.stop="deleteWorks(w.wid)"
  3255. alt
  3256. />
  3257. </div>
  3258. <div class="comment" style="min-width: 200px">
  3259. <div class="worksName">
  3260. <div>{{ w.sName }}</div>
  3261. </div>
  3262. <div class="commentList">
  3263. <div class="commentList">
  3264. <div
  3265. class="commentImg"
  3266. @click="
  3267. isLikes(w.wid, userid, 1, null, w.isLikes)
  3268. "
  3269. >
  3270. <img
  3271. :src="w.isLikes == true ? likes : noLikes"
  3272. alt=""
  3273. />
  3274. </div>
  3275. <div>{{ w.likesCount }}</div>
  3276. </div>
  3277. <div class="commentList" style="margin-right: 15px">
  3278. <div
  3279. class="commentImg"
  3280. @click="commentOther(w, toolIndex, wIndex)"
  3281. >
  3282. <img
  3283. src="../../assets/icon/comment/comment.png"
  3284. alt=""
  3285. />
  3286. </div>
  3287. <div>{{ w.commentCount }}</div>
  3288. </div>
  3289. </div>
  3290. </div>
  3291. </div>
  3292. </div>
  3293. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3294. 未提交
  3295. </div>
  3296. <div
  3297. class="noWorksS"
  3298. v-if="noWorksS && noWorksS[toolIndex].length"
  3299. >
  3300. <div
  3301. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3302. :key="sIndex"
  3303. class="noWorksName"
  3304. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3305. >
  3306. <el-tooltip effect="dark" :content="s.student" placement="top">
  3307. <span>{{ s.student }}</span>
  3308. </el-tooltip>
  3309. </div>
  3310. </div>
  3311. </div>
  3312. <div
  3313. v-if="
  3314. tType &&
  3315. ((tType == 2 && sIsOpen == true) ||
  3316. tType == 1 ||
  3317. tType == 4) &&
  3318. tool.tool.indexOf(57) != -1
  3319. "
  3320. class="worksBox"
  3321. >
  3322. <div
  3323. class="zuoyeYulan"
  3324. v-if="
  3325. worksStudent.length &&
  3326. worksStudent[toolIndex].length > 0
  3327. "
  3328. >
  3329. <div class="worksTop">
  3330. <div>作业预览</div>
  3331. <div
  3332. class="corOpen"
  3333. @click="contract(toolIndex)"
  3334. v-if="
  3335. (isCloseList[toolIndex].isCloseBoolean) &&
  3336. isCloseList[toolIndex].isClose == 0
  3337. "
  3338. >
  3339. 折叠
  3340. </div>
  3341. <div
  3342. class="corOpen"
  3343. @click="contract(toolIndex)"
  3344. v-if="isCloseList[toolIndex].isClose == 1"
  3345. >
  3346. 展开
  3347. </div>
  3348. </div>
  3349. </div>
  3350. <div
  3351. :id="'tool-' + toolIndex"
  3352. :style="{
  3353. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3354. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3355. }"
  3356. class="worksDetailBox"
  3357. v-if="
  3358. worksStudent.length &&
  3359. worksStudent[toolIndex].length > 0
  3360. "
  3361. >
  3362. <div
  3363. class="works"
  3364. style="
  3365. width: 200px;
  3366. height: 140px;
  3367. margin: 10px 10px 10px 0;
  3368. border-radius: 15px;
  3369. box-shadow: 0 0 6px 1px #dfdada;
  3370. "
  3371. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3372. :key="wIndex"
  3373. :class="w.type == 1 ? 'isTypeOne' : ''"
  3374. >
  3375. <div class="workImg">
  3376. <img
  3377. :src="word2"
  3378. @click="downloadFile(w.works)"
  3379. v-if="w.type == 12"
  3380. alt
  3381. />
  3382. <img
  3383. :src="word2"
  3384. @click="
  3385. openCocoPi(57, toolIndex, w.userid, w.sName)
  3386. "
  3387. v-else-if="w.type == 15"
  3388. alt
  3389. />
  3390. <div
  3391. class="answerScore"
  3392. v-if="w.score"
  3393. @click.stop="openScore(w)"
  3394. :class="{
  3395. rightW:
  3396. w.userid == userid ||
  3397. tType == 1 ||
  3398. tType == 4 ||
  3399. w.ateacher == userid,
  3400. }"
  3401. >
  3402. {{ JSON.parse(w.score).wScore }}分
  3403. </div>
  3404. <div
  3405. class="answerScore"
  3406. @click.stop="openScore(w)"
  3407. v-else-if="courseDetail.userid == userid"
  3408. :class="{
  3409. rightW:
  3410. w.userid == userid ||
  3411. tType == 1 ||
  3412. tType == 4 ||
  3413. w.ateacher == userid,
  3414. }"
  3415. >
  3416. 评分
  3417. </div>
  3418. <img
  3419. class="deleteImg"
  3420. src="../../assets/deleteworks.png"
  3421. v-if="
  3422. w.userid == userid || tType == 1 || tType == 4
  3423. "
  3424. @click.stop="deleteWorks(w.wid)"
  3425. alt
  3426. />
  3427. </div>
  3428. <div class="comment" style="min-width: 200px">
  3429. <div class="worksName">
  3430. <div>{{ w.sName }}</div>
  3431. </div>
  3432. <div class="commentList">
  3433. <div class="commentList">
  3434. <div
  3435. class="commentImg"
  3436. @click="
  3437. isLikes(w.wid, userid, 1, null, w.isLikes)
  3438. "
  3439. >
  3440. <img
  3441. :src="w.isLikes == true ? likes : noLikes"
  3442. alt=""
  3443. />
  3444. </div>
  3445. <div>{{ w.likesCount }}</div>
  3446. </div>
  3447. <div class="commentList" style="margin-right: 15px">
  3448. <div
  3449. class="commentImg"
  3450. @click="commentOther(w, toolIndex, wIndex)"
  3451. >
  3452. <img
  3453. src="../../assets/icon/comment/comment.png"
  3454. alt=""
  3455. />
  3456. </div>
  3457. <div>{{ w.commentCount }}</div>
  3458. </div>
  3459. </div>
  3460. </div>
  3461. </div>
  3462. </div>
  3463. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3464. 未提交
  3465. </div>
  3466. <div
  3467. class="noWorksS"
  3468. v-if="noWorksS && noWorksS[toolIndex].length"
  3469. >
  3470. <div
  3471. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3472. :key="sIndex"
  3473. class="noWorksName"
  3474. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3475. >
  3476. <el-tooltip effect="dark" :content="s.student" placement="top">
  3477. <span>{{ s.student }}</span>
  3478. </el-tooltip>
  3479. </div>
  3480. </div>
  3481. </div>
  3482. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3483. <div
  3484. class="zuoyeYulan"
  3485. v-if="
  3486. worksStudent.length &&
  3487. worksStudent[toolIndex].length > 0
  3488. "
  3489. >
  3490. <span class="worksTitle">作业预览</span>
  3491. <div
  3492. class="corOpen"
  3493. @click="contract(toolIndex)"
  3494. v-if="
  3495. (isCloseList[toolIndex].isCloseBoolean) &&
  3496. isCloseList[toolIndex].isClose == 0
  3497. "
  3498. >
  3499. 折叠
  3500. </div>
  3501. <div
  3502. class="corOpen"
  3503. @click="contract(toolIndex)"
  3504. v-if="isCloseList[toolIndex].isClose == 1"
  3505. >
  3506. 展开
  3507. </div>
  3508. </div>
  3509. <div
  3510. :id="'tool-' + toolIndex"
  3511. :style="{
  3512. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3513. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3514. }"
  3515. class="worksDetailBox"
  3516. v-if="
  3517. worksStudent.length &&
  3518. worksStudent[toolIndex].length > 0
  3519. "
  3520. >
  3521. <div
  3522. class="works"
  3523. style="
  3524. width: 200px;
  3525. height: 140px;
  3526. margin: 10px 10px 10px 0;
  3527. border-radius: 15px;
  3528. box-shadow: 0 0 6px 1px #dfdada;
  3529. "
  3530. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3531. :key="wIndex"
  3532. :class="w.type == 1 ? 'isTypeOne' : ''"
  3533. >
  3534. <div class="workImg" v-if="w.type == 0">
  3535. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3536. <img
  3537. :src="w.works"
  3538. @click="previewImg(w.works)"
  3539. alt
  3540. />
  3541. <div
  3542. class="answerScore"
  3543. v-if="w.score"
  3544. @click.stop="openScore(w)"
  3545. :class="{
  3546. rightW:
  3547. w.userid == userid ||
  3548. tType == 1 ||
  3549. tType == 4 ||
  3550. w.ateacher == userid,
  3551. }"
  3552. >
  3553. {{ JSON.parse(w.score).wScore }}分
  3554. </div>
  3555. <div
  3556. class="answerScore"
  3557. @click.stop="openScore(w)"
  3558. v-else-if="courseDetail.userid == userid"
  3559. :class="{
  3560. rightW:
  3561. w.userid == userid ||
  3562. tType == 1 ||
  3563. tType == 4 ||
  3564. w.ateacher == userid,
  3565. }"
  3566. >
  3567. 评分
  3568. </div>
  3569. <img
  3570. class="deleteImg"
  3571. src="../../assets/deleteworks.png"
  3572. v-if="
  3573. w.userid == userid || tType == 1 || tType == 4
  3574. "
  3575. @click.stop="deleteWorks(w.wid)"
  3576. alt
  3577. />
  3578. </div>
  3579. <div
  3580. class="workImg"
  3581. style="cursor: pointer"
  3582. v-if="w.type == 1"
  3583. >
  3584. <img :src="word" @click="openFile(w.works)" alt />
  3585. <!-- @click="openFile(w.works)" -->
  3586. <div
  3587. class="answerScore"
  3588. v-if="w.score"
  3589. @click.stop="openScore(w)"
  3590. :class="{
  3591. rightW:
  3592. w.userid == userid ||
  3593. tType == 1 ||
  3594. tType == 4 ||
  3595. w.ateacher == userid,
  3596. }"
  3597. >
  3598. {{ JSON.parse(w.score).wScore }}分
  3599. </div>
  3600. <div
  3601. class="answerScore"
  3602. @click.stop="openScore(w)"
  3603. v-else-if="courseDetail.userid == userid"
  3604. :class="{
  3605. rightW:
  3606. w.userid == userid ||
  3607. tType == 1 ||
  3608. tType == 4 ||
  3609. w.ateacher == userid,
  3610. }"
  3611. >
  3612. 评分
  3613. </div>
  3614. <img
  3615. class="deleteImg"
  3616. src="../../assets/deleteworks.png"
  3617. v-if="
  3618. w.userid == userid || tType == 1 || tType == 4
  3619. "
  3620. @click.stop="deleteWorks(w.wid)"
  3621. alt
  3622. />
  3623. </div>
  3624. <div class="workImg" v-if="w.type == 3">
  3625. <img
  3626. style="cursor: pointer"
  3627. :src="video"
  3628. @click="openVideo(w)"
  3629. alt
  3630. />
  3631. <!-- @click="openVideo(w.works)" -->
  3632. <div
  3633. class="answerScore"
  3634. v-if="w.score"
  3635. @click.stop="openScore(w)"
  3636. :class="{
  3637. rightW:
  3638. w.userid == userid ||
  3639. tType == 1 ||
  3640. tType == 4 ||
  3641. w.ateacher == userid,
  3642. }"
  3643. >
  3644. {{ JSON.parse(w.score).wScore }}分
  3645. </div>
  3646. <div
  3647. class="answerScore"
  3648. @click.stop="openScore(w)"
  3649. v-else-if="courseDetail.userid == userid"
  3650. :class="{
  3651. rightW:
  3652. w.userid == userid ||
  3653. tType == 1 ||
  3654. tType == 4 ||
  3655. w.ateacher == userid,
  3656. }"
  3657. >
  3658. 评分
  3659. </div>
  3660. <img
  3661. class="deleteImg"
  3662. src="../../assets/deleteworks.png"
  3663. v-if="
  3664. w.userid == userid || tType == 1 || tType == 4
  3665. "
  3666. @click.stop="deleteWorks(w.wid)"
  3667. alt
  3668. />
  3669. </div>
  3670. <div class="comment" style="min-width: 200px">
  3671. <div class="worksName">
  3672. <div
  3673. style="cursor: pointer"
  3674. @click="
  3675. openSname(w.sName, w.wid, toolIndex, w.userid)
  3676. "
  3677. >
  3678. {{ w.sName }}
  3679. </div>
  3680. </div>
  3681. <div class="commentList">
  3682. <div class="commentList">
  3683. <div
  3684. class="commentImg"
  3685. @click="
  3686. isLikes(w.wid, userid, 1, null, w.isLikes)
  3687. "
  3688. >
  3689. <img
  3690. :src="w.isLikes == true ? likes : noLikes"
  3691. alt=""
  3692. />
  3693. </div>
  3694. <div>{{ w.likesCount }}</div>
  3695. </div>
  3696. <div class="commentList" style="margin-right: 15px">
  3697. <div
  3698. class="commentImg"
  3699. @click="commentOther(w, toolIndex, wIndex)"
  3700. >
  3701. <img
  3702. src="../../assets/icon/comment/comment.png"
  3703. alt=""
  3704. />
  3705. </div>
  3706. <div>{{ w.commentCount }}</div>
  3707. </div>
  3708. </div>
  3709. </div>
  3710. </div>
  3711. </div>
  3712. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3713. 未提交
  3714. </div>
  3715. <div
  3716. class="noWorksS"
  3717. v-if="noWorksS && noWorksS[toolIndex].length"
  3718. >
  3719. <div
  3720. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3721. :key="sIndex"
  3722. class="noWorksName"
  3723. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3724. >
  3725. <el-tooltip effect="dark" :content="s.student" placement="top">
  3726. <span>{{ s.student }}</span>
  3727. </el-tooltip>
  3728. </div>
  3729. </div>
  3730. </div>
  3731. <div
  3732. v-if="
  3733. tType &&
  3734. ((tType == 2 && sIsOpen == true) ||
  3735. tType == 1 ||
  3736. tType == 4) &&
  3737. tool.tool.indexOf(4) != -1 &&
  3738. (tool.askJson[0].answer ||
  3739. tool.askJson[0].answer === 0) &&
  3740. checkJson[toolIndex].length
  3741. "
  3742. class="xuan_right_box"
  3743. >
  3744. <div
  3745. class="tool_right_box"
  3746. v-for="(item, index) in tool.askJson"
  3747. :key="index"
  3748. >
  3749. <div style="width: calc(100% - 30px);">
  3750. <el-tooltip
  3751. effect="light"
  3752. :content="index + 1 + '、' + item.askstitle"
  3753. placement="top"
  3754. popper-class="text_tooltip"
  3755. >
  3756. <div
  3757. style="
  3758. width: calc(100% - 130px);
  3759. display: block;
  3760. white-space: nowrap;
  3761. overflow: hidden;
  3762. text-overflow: ellipsis;
  3763. word-break: break-word;
  3764. cursor: pointer;
  3765. "
  3766. >
  3767. {{ index + 1 + "、" + item.askstitle }}
  3768. </div>
  3769. </el-tooltip>
  3770. </div>
  3771. <div class="right_box_xuan">
  3772. <span>正确率</span>
  3773. <span>{{
  3774. (checkJson[toolIndex][index].right
  3775. ? checkJson[toolIndex][index].right
  3776. : 0) + "%"
  3777. }}</span>
  3778. </div>
  3779. </div>
  3780. </div>
  3781. <div
  3782. class="xuan_right_box"
  3783. style="background: unset; padding: 0 10px"
  3784. v-if="
  3785. tType &&
  3786. ((tType == 2 && sIsOpen == true) ||
  3787. tType == 1 ||
  3788. tType == 4) &&
  3789. tool.tool.indexOf(4) != -1
  3790. "
  3791. >
  3792. <AskStatic
  3793. v-if="
  3794. worksStudent.length &&
  3795. worksStudent[toolIndex].length > 0
  3796. "
  3797. :askJSON="tool"
  3798. :checkJson="checkJson[toolIndex]"
  3799. ></AskStatic>
  3800. </div>
  3801. <div
  3802. v-if="
  3803. tType &&
  3804. ((tType == 2 && sIsOpen == true) ||
  3805. tType == 1 ||
  3806. tType == 4) &&
  3807. tool.tool.indexOf(4) != -1
  3808. "
  3809. class="worksBox"
  3810. >
  3811. <div
  3812. class="zuoyeYulan"
  3813. v-if="
  3814. worksStudent.length &&
  3815. worksStudent[toolIndex].length > 0
  3816. "
  3817. >
  3818. <div class="worksTop">
  3819. <div>作业预览</div>
  3820. <div
  3821. class="corOpen"
  3822. @click="contract(toolIndex)"
  3823. v-if="
  3824. (isCloseList[toolIndex].isCloseBoolean) &&
  3825. isCloseList[toolIndex].isClose == 0
  3826. "
  3827. >
  3828. 折叠
  3829. </div>
  3830. <div
  3831. class="corOpen"
  3832. @click="contract(toolIndex)"
  3833. v-if="isCloseList[toolIndex].isClose == 1"
  3834. >
  3835. 展开
  3836. </div>
  3837. </div>
  3838. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3839. </div>
  3840. <div>
  3841. <div
  3842. :id="'tool-' + toolIndex"
  3843. :style="{
  3844. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3845. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3846. }"
  3847. class="worksDetailBox"
  3848. v-if="
  3849. worksStudent.length &&
  3850. worksStudent[toolIndex].length > 0
  3851. "
  3852. >
  3853. <div
  3854. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3855. :key="wIndex"
  3856. class="isWorksName2"
  3857. @click="
  3858. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3859. "
  3860. >
  3861. {{ w.sName }}
  3862. <img
  3863. class="deleteImg deleteImg2"
  3864. src="../../assets/deleteworks.png"
  3865. v-if="
  3866. w.userid == userid || tType == 1 || tType == 4
  3867. "
  3868. @click.stop="deleteWorks(w.wid)"
  3869. alt
  3870. />
  3871. </div>
  3872. <!-- <div class="works" style="
  3873. width: 200px;
  3874. height: 140px;
  3875. border-radius: 10px;
  3876. box-shadow: 0 0 6px 1px #dfdada;
  3877. overflow: hidden;
  3878. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3879. <div class="workImg">
  3880. <img src="../../assets/icon/works/noImg.png" @click="
  3881. openTools(
  3882. 4,
  3883. toolIndex,
  3884. taskCount,
  3885. w.works,
  3886. w.sName
  3887. )
  3888. " alt />
  3889. </div>
  3890. <div class="worksName">
  3891. <div>{{ w.sName }}</div>
  3892. <div>{{ w.time }}</div>
  3893. </div>
  3894. </div> -->
  3895. </div>
  3896. </div>
  3897. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3898. 未提交
  3899. </div>
  3900. <div
  3901. class="noWorksS"
  3902. v-if="noWorksS && noWorksS[toolIndex].length"
  3903. >
  3904. <div
  3905. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3906. :key="sIndex"
  3907. class="noWorksName"
  3908. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3909. >
  3910. <el-tooltip effect="dark" :content="s.student" placement="top">
  3911. <span>{{ s.student }}</span>
  3912. </el-tooltip>
  3913. </div>
  3914. </div>
  3915. </div>
  3916. <div
  3917. v-if="
  3918. tType &&
  3919. ((tType == 2 && sIsOpen == true) ||
  3920. tType == 1 ||
  3921. tType == 4) &&
  3922. tool.tool.indexOf(45) != -1 &&
  3923. (tool.testJson.testJson[0].answer ||
  3924. tool.testJson.testJson[0].answer === 0) &&
  3925. checkJson[toolIndex].length
  3926. "
  3927. class="xuan_right_box"
  3928. >
  3929. <div
  3930. class="tool_right_box"
  3931. v-for="(item, index) in tool.testJson.testJson"
  3932. :key="index"
  3933. >
  3934. <div class="right_box_xuan" style="margin-right: 10px">
  3935. <span>正确率</span>
  3936. <span>{{
  3937. (checkJson[toolIndex][index].right
  3938. ? checkJson[toolIndex][index].right
  3939. : 0) + "%"
  3940. }}</span>
  3941. </div>
  3942. <div style="width: calc(100% - 30px);">
  3943. <el-tooltip
  3944. effect="light"
  3945. :content="index + 1 + '、' + item.teststitle"
  3946. placement="top"
  3947. popper-class="text_tooltip"
  3948. >
  3949. <div
  3950. style="
  3951. width: calc(100% - 130px);
  3952. display: block;
  3953. white-space: nowrap;
  3954. overflow: hidden;
  3955. text-overflow: ellipsis;
  3956. word-break: break-word;
  3957. cursor: pointer;
  3958. "
  3959. >
  3960. {{ index + 1 + "、" + item.teststitle }}
  3961. </div>
  3962. </el-tooltip>
  3963. </div>
  3964. </div>
  3965. </div>
  3966. <div
  3967. class="xuan_right_box"
  3968. style="background: unset; padding: 0 10px; width: 91.5%"
  3969. v-if="
  3970. tType &&
  3971. ((tType == 2 && sIsOpen == true) ||
  3972. tType == 1 ||
  3973. tType == 4) &&
  3974. tool.tool.indexOf(45) != -1
  3975. "
  3976. >
  3977. <AskStatic2
  3978. v-if="
  3979. worksStudent.length &&
  3980. worksStudent[toolIndex].length > 0
  3981. "
  3982. :askJSON="tool"
  3983. :checkJson="checkJson[toolIndex]"
  3984. ></AskStatic2>
  3985. </div>
  3986. <div
  3987. v-if="
  3988. tType &&
  3989. ((tType == 2 && sIsOpen == true) ||
  3990. tType == 1 ||
  3991. tType == 4) &&
  3992. tool.tool.indexOf(45) != -1
  3993. "
  3994. class="worksBox"
  3995. >
  3996. <div
  3997. class="zuoyeYulan"
  3998. v-if="
  3999. worksStudent.length &&
  4000. worksStudent[toolIndex].length > 0
  4001. "
  4002. >
  4003. <div class="worksTop">
  4004. <div>作业预览</div>
  4005. <div
  4006. class="corOpen"
  4007. @click="contract(toolIndex)"
  4008. v-if="
  4009. (isCloseList[toolIndex].isCloseBoolean) &&
  4010. isCloseList[toolIndex].isClose == 0
  4011. "
  4012. >
  4013. 折叠
  4014. </div>
  4015. <div
  4016. class="corOpen"
  4017. @click="contract(toolIndex)"
  4018. v-if="isCloseList[toolIndex].isClose == 1"
  4019. >
  4020. 展开
  4021. </div>
  4022. </div>
  4023. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4024. </div>
  4025. <div>
  4026. <div
  4027. :id="'tool-' + toolIndex"
  4028. :style="{
  4029. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4030. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4031. }"
  4032. class="worksDetailBox"
  4033. v-if="
  4034. worksStudent.length &&
  4035. worksStudent[toolIndex].length > 0
  4036. "
  4037. >
  4038. <div
  4039. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4040. :key="wIndex"
  4041. class="isWorksName2"
  4042. @click="
  4043. openTools(
  4044. 45,
  4045. toolIndex,
  4046. taskCount,
  4047. w.works,
  4048. w.sName
  4049. )
  4050. "
  4051. >
  4052. {{ w.sName }}
  4053. <img
  4054. class="deleteImg deleteImg2"
  4055. src="../../assets/deleteworks.png"
  4056. v-if="
  4057. w.userid == userid || tType == 1 || tType == 4
  4058. "
  4059. @click.stop="deleteWorks(w.wid)"
  4060. alt
  4061. />
  4062. </div>
  4063. </div>
  4064. </div>
  4065. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4066. 未提交
  4067. </div>
  4068. <div
  4069. class="noWorksS"
  4070. v-if="noWorksS && noWorksS[toolIndex].length"
  4071. >
  4072. <div
  4073. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4074. :key="sIndex"
  4075. class="noWorksName"
  4076. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4077. >
  4078. <el-tooltip effect="dark" :content="s.student" placement="top">
  4079. <span>{{ s.student }}</span>
  4080. </el-tooltip>
  4081. </div>
  4082. </div>
  4083. </div>
  4084. <div
  4085. v-if="
  4086. tType &&
  4087. ((tType == 2 && sIsOpen == true) ||
  4088. tType == 1 ||
  4089. tType == 4) &&
  4090. tool.tool.indexOf(69) != -1
  4091. "
  4092. class="worksBox"
  4093. >
  4094. <div
  4095. class="zuoyeYulan"
  4096. v-if="
  4097. worksStudent.length &&
  4098. worksStudent[toolIndex].length > 0
  4099. "
  4100. >
  4101. <div class="worksTop">
  4102. <div>作业预览</div>
  4103. <div
  4104. class="corOpen"
  4105. @click="contract(toolIndex)"
  4106. v-if="
  4107. (isCloseList[toolIndex].isCloseBoolean) &&
  4108. isCloseList[toolIndex].isClose == 0
  4109. "
  4110. >
  4111. 折叠
  4112. </div>
  4113. <div
  4114. class="corOpen"
  4115. @click="contract(toolIndex)"
  4116. v-if="isCloseList[toolIndex].isClose == 1"
  4117. >
  4118. 展开
  4119. </div>
  4120. </div>
  4121. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4122. </div>
  4123. <div>
  4124. <div
  4125. :id="'tool-' + toolIndex"
  4126. :style="{
  4127. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4128. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4129. }"
  4130. class="worksDetailBox"
  4131. v-if="
  4132. worksStudent.length &&
  4133. worksStudent[toolIndex].length > 0
  4134. "
  4135. >
  4136. <div
  4137. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4138. :key="wIndex"
  4139. class="isWorksName2"
  4140. style="width: 160px;height: 65px;line-height: 65px;"
  4141. @click="
  4142. openTools(
  4143. 69,
  4144. toolIndex,
  4145. taskCount,
  4146. w.works,
  4147. w.sName,
  4148. w.wid
  4149. )
  4150. "
  4151. >
  4152. {{ w.sName }}
  4153. <img
  4154. class="deleteImg1"
  4155. src="../../assets/evaEnglish.png"
  4156. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4157. alt
  4158. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4159. />
  4160. <img
  4161. class="deleteImg deleteImg2"
  4162. src="../../assets/deleteworks.png"
  4163. v-if="
  4164. w.userid == userid || tType == 1 || tType == 4
  4165. "
  4166. @click.stop="deleteWorks(w.wid)"
  4167. alt
  4168. />
  4169. </div>
  4170. </div>
  4171. </div>
  4172. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4173. 未提交
  4174. </div>
  4175. <div
  4176. class="noWorksS"
  4177. v-if="noWorksS && noWorksS[toolIndex].length"
  4178. >
  4179. <div
  4180. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4181. :key="sIndex"
  4182. class="noWorksName"
  4183. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4184. >
  4185. <el-tooltip effect="dark" :content="s.student" placement="top">
  4186. <span>{{ s.student }}</span>
  4187. </el-tooltip>
  4188. </div>
  4189. </div>
  4190. </div>
  4191. <div
  4192. v-if="
  4193. tType &&
  4194. ((tType == 2 && sIsOpen == true) ||
  4195. tType == 1 ||
  4196. tType == 4) &&
  4197. tool.tool.indexOf(15) != -1
  4198. "
  4199. class="worksBox"
  4200. >
  4201. <div
  4202. class="zuoyeYulan"
  4203. v-if="
  4204. (worksStudent.length &&
  4205. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4206. "
  4207. >
  4208. <div class="worksTop">
  4209. <div>作业预览</div>
  4210. <div
  4211. class="corOpen"
  4212. @click="contract(toolIndex)"
  4213. v-if="
  4214. (isCloseList[toolIndex].isCloseBoolean) &&
  4215. isCloseList[toolIndex].isClose == 0
  4216. "
  4217. >
  4218. 折叠
  4219. </div>
  4220. <div
  4221. class="corOpen"
  4222. @click="contract(toolIndex)"
  4223. v-if="isCloseList[toolIndex].isClose == 1"
  4224. >
  4225. 展开
  4226. </div>
  4227. </div>
  4228. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4229. </div>
  4230. <div
  4231. class="group_workBox"
  4232. v-for="(g, gindex) in courseGroup.group"
  4233. :key="gindex"
  4234. >
  4235. <div class="group_box">
  4236. <div class="group_title">
  4237. <el-tooltip
  4238. class="item"
  4239. effect="light"
  4240. :content="g.name"
  4241. placement="top"
  4242. >
  4243. <div class="group_name">{{ g.name }}</div>
  4244. </el-tooltip>
  4245. </div>
  4246. <div
  4247. class="group_work"
  4248. v-if="
  4249. g.works &&
  4250. g.works.length &&
  4251. g.works[toolIndex].length
  4252. "
  4253. >
  4254. <div
  4255. class="works"
  4256. v-for="(w, wIndex) in g.works[toolIndex]"
  4257. :key="wIndex"
  4258. >
  4259. <div
  4260. class="workImg"
  4261. style="
  4262. border-radius: 15px;
  4263. box-shadow: 0px 0px 5px 5px #eee;
  4264. "
  4265. >
  4266. <div
  4267. class="answerBg"
  4268. style="border-radius: 15px 15px 0 0"
  4269. @click="
  4270. commentOther(w, toolIndex, wIndex, null, g.id)
  4271. "
  4272. >
  4273. <div class="answerContent">
  4274. {{ JSON.parse(w.works)[0].answer }}
  4275. </div>
  4276. <div
  4277. class="answerScore"
  4278. v-if="w.score"
  4279. @click.stop="openScore(w)"
  4280. :class="{
  4281. rightW:
  4282. w.userid == userid ||
  4283. tType == 1 ||
  4284. tType == 4,
  4285. }"
  4286. >
  4287. {{ JSON.parse(w.score).wScore }}分
  4288. </div>
  4289. <div
  4290. class="answerScore"
  4291. @click.stop="openScore(w)"
  4292. v-else-if="courseDetail.userid == userid"
  4293. :class="{
  4294. rightW:
  4295. w.userid == userid ||
  4296. tType == 1 ||
  4297. tType == 4,
  4298. }"
  4299. >
  4300. 评分
  4301. </div>
  4302. <img
  4303. class="deleteImg"
  4304. src="../../assets/deleteworks.png"
  4305. v-if="
  4306. w.userid == userid ||
  4307. tType == 1 ||
  4308. tType == 4
  4309. "
  4310. @click.stop="deleteWorks(w.wid)"
  4311. alt
  4312. />
  4313. </div>
  4314. <div class="comment">
  4315. <div class="worksName">
  4316. <div>{{ w.sName }}</div>
  4317. </div>
  4318. <div class="commentList">
  4319. <div
  4320. class="commentImg"
  4321. @click="
  4322. isLikes(w.wid, userid, 1, null, w.isLikes)
  4323. "
  4324. >
  4325. <img
  4326. :src="w.isLikes == true ? likes : noLikes"
  4327. alt=""
  4328. />
  4329. </div>
  4330. <div>{{ w.likesCount }}</div>
  4331. </div>
  4332. <div
  4333. class="commentList"
  4334. style="margin-right: 15px"
  4335. >
  4336. <div
  4337. class="commentImg"
  4338. @click="
  4339. commentOther(
  4340. w,
  4341. toolIndex,
  4342. wIndex,
  4343. null,
  4344. g.id
  4345. )
  4346. "
  4347. >
  4348. <img
  4349. src="../../assets/icon/comment/comment.png"
  4350. alt=""
  4351. />
  4352. </div>
  4353. <div>{{ w.commentCount }}</div>
  4354. </div>
  4355. </div>
  4356. </div>
  4357. </div>
  4358. </div>
  4359. <div class="group_work" v-else>暂无提交作业</div>
  4360. </div>
  4361. </div>
  4362. <div
  4363. :id="'tool-' + toolIndex"
  4364. :style="{
  4365. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4366. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4367. }"
  4368. class="worksDetailBox"
  4369. v-if="
  4370. worksStudent.length &&
  4371. worksStudent[toolIndex].length > 0
  4372. "
  4373. >
  4374. <div
  4375. class="works"
  4376. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4377. :key="wIndex"
  4378. >
  4379. <div
  4380. class="workImg"
  4381. style="
  4382. border-radius: 15px;
  4383. box-shadow: 0px 0px 5px 5px #eee;
  4384. "
  4385. >
  4386. <!-- <img
  4387. src="../../assets/icon/works/noImg.png"
  4388. @click="openTools(15, toolIndex, taskCount, w.works)"
  4389. alt=""
  4390. />-->
  4391. <div
  4392. class="answerBg"
  4393. style="border-radius: 15px 15px 0 0"
  4394. @click="commentOther(w, toolIndex, wIndex)"
  4395. >
  4396. <!-- <div>{{ w.sName }}</div> -->
  4397. <div class="answerContent">
  4398. {{ JSON.parse(w.works)[0].answer }}
  4399. </div>
  4400. <div
  4401. class="answerScore"
  4402. v-if="w.score"
  4403. @click.stop="openScore(w)"
  4404. :class="{
  4405. rightW:
  4406. w.userid == userid ||
  4407. tType == 1 ||
  4408. tType == 4,
  4409. }"
  4410. >
  4411. {{ JSON.parse(w.score).wScore }}分
  4412. </div>
  4413. <div
  4414. class="answerScore"
  4415. @click.stop="openScore(w)"
  4416. v-else-if="courseDetail.userid == userid"
  4417. :class="{
  4418. rightW:
  4419. w.userid == userid ||
  4420. tType == 1 ||
  4421. tType == 4,
  4422. }"
  4423. >
  4424. 评分
  4425. </div>
  4426. <img
  4427. class="deleteImg"
  4428. src="../../assets/deleteworks.png"
  4429. v-if="
  4430. w.userid == userid || tType == 1 || tType == 4
  4431. "
  4432. @click.stop="deleteWorks(w.wid)"
  4433. alt
  4434. />
  4435. </div>
  4436. <div class="comment">
  4437. <div class="worksName">
  4438. <div>{{ w.sName }}</div>
  4439. </div>
  4440. <div class="commentList">
  4441. <div
  4442. class="commentImg"
  4443. @click="
  4444. isLikes(w.wid, userid, 1, null, w.isLikes)
  4445. "
  4446. >
  4447. <img
  4448. :src="w.isLikes == true ? likes : noLikes"
  4449. alt=""
  4450. />
  4451. </div>
  4452. <div>{{ w.likesCount }}</div>
  4453. </div>
  4454. <div class="commentList" style="margin-right: 15px">
  4455. <div
  4456. class="commentImg"
  4457. @click="commentOther(w, toolIndex, wIndex)"
  4458. >
  4459. <img
  4460. src="../../assets/icon/comment/comment.png"
  4461. alt=""
  4462. />
  4463. </div>
  4464. <div>{{ w.commentCount }}</div>
  4465. </div>
  4466. </div>
  4467. </div>
  4468. </div>
  4469. </div>
  4470. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4471. 未提交
  4472. </div>
  4473. <div
  4474. class="noWorksS"
  4475. v-if="noWorksS && noWorksS[toolIndex].length"
  4476. >
  4477. <div
  4478. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4479. :key="sIndex"
  4480. class="noWorksName"
  4481. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4482. >
  4483. <el-tooltip effect="dark" :content="s.student" placement="top">
  4484. <span>{{ s.student }}</span>
  4485. </el-tooltip>
  4486. </div>
  4487. </div>
  4488. </div>
  4489. <div
  4490. v-if="
  4491. tType &&
  4492. ((tType == 2 && sIsOpen == true) ||
  4493. tType == 1 ||
  4494. tType == 4) &&
  4495. tool.tool.indexOf(1) != -1
  4496. "
  4497. class="worksBox"
  4498. >
  4499. <div
  4500. class="zuoyeYulan"
  4501. v-if="
  4502. (worksStudent.length &&
  4503. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4504. "
  4505. >
  4506. <div class="worksTop">
  4507. <div>作业预览</div>
  4508. <div
  4509. class="corOpen"
  4510. @click="contract(toolIndex)"
  4511. v-if="
  4512. (isCloseList[toolIndex].isCloseBoolean) &&
  4513. isCloseList[toolIndex].isClose == 0
  4514. "
  4515. >
  4516. 折叠
  4517. </div>
  4518. <div
  4519. class="corOpen"
  4520. @click="contract(toolIndex)"
  4521. v-if="isCloseList[toolIndex].isClose == 1"
  4522. >
  4523. 展开
  4524. </div>
  4525. </div>
  4526. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4527. </div>
  4528. <div
  4529. class="group_workBox"
  4530. v-for="(g, gindex) in courseGroup.group"
  4531. :key="gindex"
  4532. >
  4533. <div class="group_box">
  4534. <div class="group_title">
  4535. <el-tooltip
  4536. class="item"
  4537. effect="light"
  4538. :content="g.name"
  4539. placement="top"
  4540. >
  4541. <div class="group_name">{{ g.name }}</div>
  4542. </el-tooltip>
  4543. </div>
  4544. <div
  4545. class="group_work"
  4546. v-if="
  4547. g.works &&
  4548. g.works.length &&
  4549. g.works[toolIndex].length
  4550. "
  4551. >
  4552. <div
  4553. class="works"
  4554. style="
  4555. width: 200px;
  4556. height: 140px;
  4557. margin: 10px 10px 10px 0;
  4558. border-radius: 15px;
  4559. box-shadow: 0 0 6px 1px #dfdada;
  4560. "
  4561. v-for="(w, wIndex) in g.works[toolIndex]"
  4562. :key="wIndex"
  4563. :class="w.type == 1 ? 'isTypeOne' : ''"
  4564. >
  4565. <div class="workImg">
  4566. <img
  4567. :src="w.works"
  4568. @click="previewImg(w.works)"
  4569. alt
  4570. />
  4571. <div
  4572. class="answerScore"
  4573. v-if="w.score"
  4574. @click.stop="openScore(w)"
  4575. :class="{
  4576. rightW:
  4577. w.userid == userid ||
  4578. tType == 1 ||
  4579. tType == 4,
  4580. }"
  4581. >
  4582. {{ JSON.parse(w.score).wScore }}分
  4583. </div>
  4584. <div
  4585. class="answerScore"
  4586. @click.stop="openScore(w)"
  4587. v-else-if="courseDetail.userid == userid"
  4588. :class="{
  4589. rightW:
  4590. w.userid == userid ||
  4591. tType == 1 ||
  4592. tType == 4,
  4593. }"
  4594. >
  4595. 评分
  4596. </div>
  4597. <img
  4598. class="deleteImg"
  4599. src="../../assets/deleteworks.png"
  4600. v-if="
  4601. w.userid == userid || tType == 1 || tType == 4
  4602. "
  4603. @click.stop="deleteWorks(w.wid)"
  4604. alt
  4605. />
  4606. </div>
  4607. <div class="comment" style="min-width: 200px">
  4608. <div class="worksName">
  4609. <div>{{ w.sName }}</div>
  4610. </div>
  4611. <div class="commentList">
  4612. <div class="commentList">
  4613. <div
  4614. class="commentImg"
  4615. @click="
  4616. isLikes(w.wid, userid, 1, null, w.isLikes)
  4617. "
  4618. >
  4619. <img
  4620. :src="w.isLikes == true ? likes : noLikes"
  4621. alt=""
  4622. />
  4623. </div>
  4624. <div>{{ w.likesCount }}</div>
  4625. </div>
  4626. <div
  4627. class="commentList"
  4628. style="margin-right: 15px"
  4629. >
  4630. <div
  4631. class="commentImg"
  4632. @click="
  4633. commentOther(
  4634. w,
  4635. toolIndex,
  4636. wIndex,
  4637. null,
  4638. g.id
  4639. )
  4640. "
  4641. >
  4642. <img
  4643. src="../../assets/icon/comment/comment.png"
  4644. alt=""
  4645. />
  4646. </div>
  4647. <div>{{ w.commentCount }}</div>
  4648. </div>
  4649. </div>
  4650. </div>
  4651. </div>
  4652. </div>
  4653. <div class="group_work" v-else>暂无提交作业</div>
  4654. </div>
  4655. </div>
  4656. <div
  4657. :id="'tool-' + toolIndex"
  4658. :style="{
  4659. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4660. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4661. }"
  4662. class="worksDetailBox"
  4663. v-if="
  4664. worksStudent.length &&
  4665. worksStudent[toolIndex].length > 0
  4666. "
  4667. >
  4668. <div
  4669. class="works"
  4670. style="
  4671. width: 200px;
  4672. height: 140px;
  4673. margin: 10px 10px 10px 0;
  4674. border-radius: 15px;
  4675. box-shadow: 0 0 6px 1px #dfdada;
  4676. "
  4677. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4678. :key="wIndex"
  4679. >
  4680. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4681. <div class="workImg">
  4682. <img
  4683. :src="w.works"
  4684. @click="previewImg(w.works)"
  4685. alt
  4686. />
  4687. <div
  4688. class="answerScore"
  4689. v-if="w.score"
  4690. @click.stop="openScore(w)"
  4691. :class="{
  4692. rightW:
  4693. w.userid == userid || tType == 1 || tType == 4,
  4694. }"
  4695. >
  4696. {{ JSON.parse(w.score).wScore }}分
  4697. </div>
  4698. <div
  4699. class="answerScore"
  4700. @click.stop="openScore(w)"
  4701. v-else-if="courseDetail.userid == userid"
  4702. :class="{
  4703. rightW:
  4704. w.userid == userid || tType == 1 || tType == 4,
  4705. }"
  4706. >
  4707. 评分
  4708. </div>
  4709. <img
  4710. class="deleteImg"
  4711. src="../../assets/deleteworks.png"
  4712. v-if="
  4713. w.userid == userid || tType == 1 || tType == 4
  4714. "
  4715. @click.stop="deleteWorks(w.wid)"
  4716. alt
  4717. />
  4718. </div>
  4719. <div class="comment" style="min-width: 200px">
  4720. <div class="worksName">
  4721. <div>{{ w.sName }}</div>
  4722. </div>
  4723. <div class="commentList">
  4724. <div class="commentList">
  4725. <div
  4726. class="commentImg"
  4727. @click="
  4728. isLikes(w.wid, userid, 1, null, w.isLikes)
  4729. "
  4730. >
  4731. <img
  4732. :src="w.isLikes == true ? likes : noLikes"
  4733. alt=""
  4734. />
  4735. </div>
  4736. <div>{{ w.likesCount }}</div>
  4737. </div>
  4738. <div class="commentList" style="margin-right: 15px">
  4739. <div
  4740. class="commentImg"
  4741. @click="commentOther(w, toolIndex, wIndex)"
  4742. >
  4743. <img
  4744. src="../../assets/icon/comment/comment.png"
  4745. alt=""
  4746. />
  4747. </div>
  4748. <div>{{ w.commentCount }}</div>
  4749. </div>
  4750. </div>
  4751. </div>
  4752. </div>
  4753. </div>
  4754. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4755. 未提交
  4756. </div>
  4757. <div
  4758. class="noWorksS"
  4759. v-if="noWorksS && noWorksS[toolIndex].length"
  4760. >
  4761. <div
  4762. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4763. :key="sIndex"
  4764. class="noWorksName"
  4765. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4766. >
  4767. <el-tooltip effect="dark" :content="s.student" placement="top">
  4768. <span>{{ s.student }}</span>
  4769. </el-tooltip>
  4770. </div>
  4771. </div>
  4772. </div>
  4773. <div
  4774. v-if="
  4775. tType &&
  4776. ((tType == 2 && sIsOpen == true) ||
  4777. tType == 1 ||
  4778. tType == 4) &&
  4779. tool.tool.indexOf(3) != -1
  4780. "
  4781. class="worksBox"
  4782. >
  4783. <div
  4784. class="zuoyeYulan"
  4785. v-if="
  4786. (worksStudent.length &&
  4787. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4788. "
  4789. >
  4790. <div class="worksTop">
  4791. <div>作业预览</div>
  4792. <div
  4793. class="corOpen"
  4794. @click="contract(toolIndex)"
  4795. v-if="
  4796. (isCloseList[toolIndex].isCloseBoolean) &&
  4797. isCloseList[toolIndex].isClose == 0
  4798. "
  4799. >
  4800. 折叠
  4801. </div>
  4802. <div
  4803. class="corOpen"
  4804. @click="contract(toolIndex)"
  4805. v-if="isCloseList[toolIndex].isClose == 1"
  4806. >
  4807. 展开
  4808. </div>
  4809. </div>
  4810. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4811. </div>
  4812. <div
  4813. class="group_workBox"
  4814. v-for="(g, gindex) in courseGroup.group"
  4815. :key="gindex"
  4816. >
  4817. <div class="group_box">
  4818. <div class="group_title">
  4819. <el-tooltip
  4820. class="item"
  4821. effect="light"
  4822. :content="g.name"
  4823. placement="top"
  4824. >
  4825. <div class="group_name">{{ g.name }}</div>
  4826. </el-tooltip>
  4827. </div>
  4828. <div
  4829. class="group_work"
  4830. v-if="
  4831. g.works &&
  4832. g.works.length &&
  4833. g.works[toolIndex].length
  4834. "
  4835. >
  4836. <div
  4837. class="works"
  4838. style="
  4839. width: 200px;
  4840. height: 140px;
  4841. margin: 10px 10px 10px 0;
  4842. border-radius: 15px;
  4843. box-shadow: 0 0 6px 1px #dfdada;
  4844. "
  4845. v-for="(w, wIndex) in g.works[toolIndex]"
  4846. :key="wIndex"
  4847. :class="w.type == 1 ? 'isTypeOne' : ''"
  4848. >
  4849. <div class="workImg">
  4850. <img
  4851. :src="w.works"
  4852. @click="previewImg(w.works)"
  4853. alt
  4854. />
  4855. <div
  4856. class="answerScore"
  4857. v-if="w.score"
  4858. @click.stop="openScore(w)"
  4859. :class="{
  4860. rightW:
  4861. w.userid == userid ||
  4862. tType == 1 ||
  4863. tType == 4,
  4864. }"
  4865. >
  4866. {{ JSON.parse(w.score).wScore }}分
  4867. </div>
  4868. <div
  4869. class="answerScore"
  4870. @click.stop="openScore(w)"
  4871. v-else-if="courseDetail.userid == userid"
  4872. :class="{
  4873. rightW:
  4874. w.userid == userid ||
  4875. tType == 1 ||
  4876. tType == 4,
  4877. }"
  4878. >
  4879. 评分
  4880. </div>
  4881. <img
  4882. class="deleteImg"
  4883. src="../../assets/deleteworks.png"
  4884. v-if="
  4885. w.userid == userid || tType == 1 || tType == 4
  4886. "
  4887. @click.stop="deleteWorks(w.wid)"
  4888. alt
  4889. />
  4890. </div>
  4891. <div class="comment" style="min-width: 200px">
  4892. <div class="worksName">
  4893. <div>{{ w.sName }}</div>
  4894. </div>
  4895. <div class="commentList">
  4896. <div class="commentList">
  4897. <div
  4898. class="commentImg"
  4899. @click="
  4900. isLikes(w.wid, userid, 1, null, w.isLikes)
  4901. "
  4902. >
  4903. <img
  4904. :src="w.isLikes == true ? likes : noLikes"
  4905. alt=""
  4906. />
  4907. </div>
  4908. <div>{{ w.likesCount }}</div>
  4909. </div>
  4910. <div
  4911. class="commentList"
  4912. style="margin-right: 15px"
  4913. >
  4914. <div
  4915. class="commentImg"
  4916. @click="
  4917. commentOther(
  4918. w,
  4919. toolIndex,
  4920. wIndex,
  4921. null,
  4922. g.id
  4923. )
  4924. "
  4925. >
  4926. <img
  4927. src="../../assets/icon/comment/comment.png"
  4928. alt=""
  4929. />
  4930. </div>
  4931. <div>{{ w.commentCount }}</div>
  4932. </div>
  4933. </div>
  4934. </div>
  4935. </div>
  4936. </div>
  4937. <div class="group_work" v-else>暂无提交作业</div>
  4938. </div>
  4939. </div>
  4940. <div
  4941. :id="'tool-' + toolIndex"
  4942. :style="{
  4943. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4944. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4945. }"
  4946. class="worksDetailBox"
  4947. v-if="
  4948. worksStudent.length &&
  4949. worksStudent[toolIndex].length > 0
  4950. "
  4951. >
  4952. <div
  4953. class="works"
  4954. style="
  4955. width: 200px;
  4956. height: 140px;
  4957. margin: 10px 10px 10px 0;
  4958. border-radius: 15px;
  4959. box-shadow: 0 0 6px 1px #dfdada;
  4960. "
  4961. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4962. :key="wIndex"
  4963. >
  4964. <!-- @click="previewImg(w.works)" -->
  4965. <div class="workImg">
  4966. <img
  4967. :src="w.works"
  4968. @click="previewImg(w.works)"
  4969. alt
  4970. />
  4971. <div
  4972. class="answerScore"
  4973. v-if="w.score"
  4974. @click.stop="openScore(w)"
  4975. :class="{
  4976. rightW:
  4977. w.userid == userid || tType == 1 || tType == 4,
  4978. }"
  4979. >
  4980. {{ JSON.parse(w.score).wScore }}分
  4981. </div>
  4982. <div
  4983. class="answerScore"
  4984. @click.stop="openScore(w)"
  4985. v-else-if="courseDetail.userid == userid"
  4986. :class="{
  4987. rightW:
  4988. w.userid == userid || tType == 1 || tType == 4,
  4989. }"
  4990. >
  4991. 评分
  4992. </div>
  4993. <img
  4994. class="deleteImg"
  4995. src="../../assets/deleteworks.png"
  4996. v-if="
  4997. w.userid == userid || tType == 1 || tType == 4
  4998. "
  4999. @click.stop="deleteWorks(w.wid)"
  5000. alt
  5001. />
  5002. </div>
  5003. <div class="comment" style="min-width: 200px">
  5004. <div class="worksName">
  5005. <div>{{ w.sName }}</div>
  5006. </div>
  5007. <div class="commentList">
  5008. <div class="commentList">
  5009. <div
  5010. class="commentImg"
  5011. @click="
  5012. isLikes(w.wid, userid, 1, null, w.isLikes)
  5013. "
  5014. >
  5015. <img
  5016. :src="w.isLikes == true ? likes : noLikes"
  5017. alt=""
  5018. />
  5019. </div>
  5020. <div>{{ w.likesCount }}</div>
  5021. </div>
  5022. <div class="commentList" style="margin-right: 15px">
  5023. <div
  5024. class="commentImg"
  5025. @click="commentOther(w, toolIndex, wIndex)"
  5026. >
  5027. <img
  5028. src="../../assets/icon/comment/comment.png"
  5029. alt=""
  5030. />
  5031. </div>
  5032. <div>{{ w.commentCount }}</div>
  5033. </div>
  5034. </div>
  5035. </div>
  5036. </div>
  5037. </div>
  5038. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5039. 未提交
  5040. </div>
  5041. <div
  5042. class="noWorksS"
  5043. v-if="noWorksS && noWorksS[toolIndex].length"
  5044. >
  5045. <div
  5046. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5047. :key="sIndex"
  5048. class="noWorksName"
  5049. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5050. >
  5051. <el-tooltip effect="dark" :content="s.student" placement="top">
  5052. <span>{{ s.student }}</span>
  5053. </el-tooltip>
  5054. </div>
  5055. </div>
  5056. </div>
  5057. <div
  5058. v-if="
  5059. tType &&
  5060. ((tType == 2 && sIsOpen == true) ||
  5061. tType == 1 ||
  5062. tType == 4) &&
  5063. tool.tool.indexOf(6) != -1
  5064. "
  5065. class="worksBox"
  5066. >
  5067. <div
  5068. class="zuoyeYulan"
  5069. v-if="
  5070. (worksStudent.length &&
  5071. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5072. "
  5073. >
  5074. <div class="worksTop">
  5075. <div>作业预览</div>
  5076. <div
  5077. class="corOpen"
  5078. @click="contract(toolIndex)"
  5079. v-if="
  5080. (isCloseList[toolIndex].isCloseBoolean) &&
  5081. isCloseList[toolIndex].isClose == 0
  5082. "
  5083. >
  5084. 折叠
  5085. </div>
  5086. <div
  5087. class="corOpen"
  5088. @click="contract(toolIndex)"
  5089. v-if="isCloseList[toolIndex].isClose == 1"
  5090. >
  5091. 展开
  5092. </div>
  5093. </div>
  5094. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5095. </div>
  5096. <div
  5097. class="group_workBox"
  5098. v-for="(g, gindex) in courseGroup.group"
  5099. :key="gindex"
  5100. >
  5101. <div class="group_box">
  5102. <div class="group_title">
  5103. <el-tooltip
  5104. class="item"
  5105. effect="light"
  5106. :content="g.name"
  5107. placement="top"
  5108. >
  5109. <div class="group_name">{{ g.name }}</div>
  5110. </el-tooltip>
  5111. </div>
  5112. <div
  5113. class="group_work"
  5114. v-if="
  5115. g.works &&
  5116. g.works.length &&
  5117. g.works[toolIndex].length
  5118. "
  5119. >
  5120. <div
  5121. class="works"
  5122. style="
  5123. width: 200px;
  5124. height: 140px;
  5125. margin: 10px 10px 10px 0;
  5126. border-radius: 15px;
  5127. box-shadow: 0 0 6px 1px #dfdada;
  5128. "
  5129. v-for="(w, wIndex) in g.works[toolIndex]"
  5130. :key="wIndex"
  5131. :class="w.type == 1 ? 'isTypeOne' : ''"
  5132. >
  5133. <div class="workImg">
  5134. <img
  5135. :src="w.works"
  5136. @click="previewImg(w.works)"
  5137. alt
  5138. />
  5139. <div
  5140. class="answerScore"
  5141. v-if="w.score"
  5142. @click.stop="openScore(w)"
  5143. :class="{
  5144. rightW:
  5145. w.userid == userid ||
  5146. tType == 1 ||
  5147. tType == 4,
  5148. }"
  5149. >
  5150. {{ JSON.parse(w.score).wScore }}分
  5151. </div>
  5152. <div
  5153. class="answerScore"
  5154. @click.stop="openScore(w)"
  5155. v-else-if="courseDetail.userid == userid"
  5156. :class="{
  5157. rightW:
  5158. w.userid == userid ||
  5159. tType == 1 ||
  5160. tType == 4,
  5161. }"
  5162. >
  5163. 评分
  5164. </div>
  5165. <img
  5166. class="deleteImg"
  5167. src="../../assets/deleteworks.png"
  5168. v-if="
  5169. w.userid == userid || tType == 1 || tType == 4
  5170. "
  5171. @click.stop="deleteWorks(w.wid)"
  5172. alt
  5173. />
  5174. </div>
  5175. <div class="comment" style="min-width: 200px">
  5176. <div class="worksName">
  5177. <div>{{ w.sName }}</div>
  5178. </div>
  5179. <div class="commentList">
  5180. <div class="commentList">
  5181. <div
  5182. class="commentImg"
  5183. @click="
  5184. isLikes(w.wid, userid, 1, null, w.isLikes)
  5185. "
  5186. >
  5187. <img
  5188. :src="w.isLikes == true ? likes : noLikes"
  5189. alt=""
  5190. />
  5191. </div>
  5192. <div>{{ w.likesCount }}</div>
  5193. </div>
  5194. <div
  5195. class="commentList"
  5196. style="margin-right: 15px"
  5197. >
  5198. <div
  5199. class="commentImg"
  5200. @click="
  5201. commentOther(
  5202. w,
  5203. toolIndex,
  5204. wIndex,
  5205. null,
  5206. g.id
  5207. )
  5208. "
  5209. >
  5210. <img
  5211. src="../../assets/icon/comment/comment.png"
  5212. alt=""
  5213. />
  5214. </div>
  5215. <div>{{ w.commentCount }}</div>
  5216. </div>
  5217. </div>
  5218. </div>
  5219. </div>
  5220. </div>
  5221. <div class="group_work" v-else>暂无提交作业</div>
  5222. </div>
  5223. </div>
  5224. <div
  5225. :id="'tool-' + toolIndex"
  5226. :style="{
  5227. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5228. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5229. }"
  5230. class="worksDetailBox"
  5231. v-if="
  5232. worksStudent.length &&
  5233. worksStudent[toolIndex].length > 0
  5234. "
  5235. >
  5236. <div
  5237. class="works"
  5238. style="
  5239. width: 200px;
  5240. height: 140px;
  5241. margin: 10px 10px 10px 0;
  5242. border-radius: 15px;
  5243. box-shadow: 0 0 6px 1px #dfdada;
  5244. "
  5245. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5246. :key="wIndex"
  5247. >
  5248. <!-- @click="previewImg(w.works)" -->
  5249. <div class="workImg">
  5250. <img
  5251. :src="w.works"
  5252. @click="previewImg(w.works)"
  5253. alt
  5254. />
  5255. <div
  5256. class="answerScore"
  5257. v-if="w.score"
  5258. @click.stop="openScore(w)"
  5259. :class="{
  5260. rightW:
  5261. w.userid == userid || tType == 1 || tType == 4,
  5262. }"
  5263. >
  5264. {{ JSON.parse(w.score).wScore }}分
  5265. </div>
  5266. <div
  5267. class="answerScore"
  5268. @click.stop="openScore(w)"
  5269. v-else-if="courseDetail.userid == userid"
  5270. :class="{
  5271. rightW:
  5272. w.userid == userid || tType == 1 || tType == 4,
  5273. }"
  5274. >
  5275. 评分
  5276. </div>
  5277. <img
  5278. class="deleteImg"
  5279. src="../../assets/deleteworks.png"
  5280. v-if="
  5281. w.userid == userid || tType == 1 || tType == 4
  5282. "
  5283. @click.stop="deleteWorks(w.wid)"
  5284. alt
  5285. />
  5286. </div>
  5287. <div class="comment" style="min-width: 200px">
  5288. <div class="worksName">
  5289. <div>{{ w.sName }}</div>
  5290. </div>
  5291. <div class="commentList">
  5292. <div class="commentList">
  5293. <div
  5294. class="commentImg"
  5295. @click="
  5296. isLikes(w.wid, userid, 1, null, w.isLikes)
  5297. "
  5298. >
  5299. <img
  5300. :src="w.isLikes == true ? likes : noLikes"
  5301. alt=""
  5302. />
  5303. </div>
  5304. <div>{{ w.likesCount }}</div>
  5305. </div>
  5306. <div class="commentList" style="margin-right: 15px">
  5307. <div
  5308. class="commentImg"
  5309. @click="commentOther(w, toolIndex, wIndex)"
  5310. >
  5311. <img
  5312. src="../../assets/icon/comment/comment.png"
  5313. alt=""
  5314. />
  5315. </div>
  5316. <div>{{ w.commentCount }}</div>
  5317. </div>
  5318. </div>
  5319. </div>
  5320. </div>
  5321. </div>
  5322. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5323. 未提交
  5324. </div>
  5325. <div
  5326. class="noWorksS"
  5327. v-if="noWorksS && noWorksS[toolIndex].length"
  5328. >
  5329. <div
  5330. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5331. :key="sIndex"
  5332. class="noWorksName"
  5333. >
  5334. <el-tooltip effect="dark" :content="s.student" placement="top">
  5335. <span>{{ s.student }}</span>
  5336. </el-tooltip>
  5337. </div>
  5338. </div>
  5339. </div>
  5340. <div
  5341. v-if="
  5342. tType &&
  5343. ((tType == 2 && sIsOpen == true) ||
  5344. tType == 1 ||
  5345. tType == 4) &&
  5346. tool.tool.indexOf(7) != -1
  5347. "
  5348. class="worksBox"
  5349. >
  5350. <div
  5351. class="zuoyeYulan"
  5352. v-if="
  5353. (worksStudent.length &&
  5354. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5355. "
  5356. >
  5357. <div class="worksTop">
  5358. <div>作业预览</div>
  5359. <div
  5360. class="corOpen"
  5361. @click="contract(toolIndex)"
  5362. v-if="
  5363. (isCloseList[toolIndex].isCloseBoolean) &&
  5364. isCloseList[toolIndex].isClose == 0
  5365. "
  5366. >
  5367. 折叠
  5368. </div>
  5369. <div
  5370. class="corOpen"
  5371. @click="contract(toolIndex)"
  5372. v-if="isCloseList[toolIndex].isClose == 1"
  5373. >
  5374. 展开
  5375. </div>
  5376. </div>
  5377. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5378. </div>
  5379. <div
  5380. class="group_workBox"
  5381. v-for="(g, gindex) in courseGroup.group"
  5382. :key="gindex"
  5383. >
  5384. <div class="group_box">
  5385. <div class="group_title">
  5386. <el-tooltip
  5387. class="item"
  5388. effect="light"
  5389. :content="g.name"
  5390. placement="top"
  5391. >
  5392. <div class="group_name">{{ g.name }}</div>
  5393. </el-tooltip>
  5394. </div>
  5395. <div
  5396. class="group_work"
  5397. v-if="
  5398. g.works &&
  5399. g.works.length &&
  5400. g.works[toolIndex].length
  5401. "
  5402. >
  5403. <div
  5404. class="works"
  5405. style="
  5406. width: 200px;
  5407. height: 140px;
  5408. margin: 10px 10px 10px 0;
  5409. border-radius: 15px;
  5410. box-shadow: 0 0 6px 1px #dfdada;
  5411. "
  5412. v-for="(w, wIndex) in g.works[toolIndex]"
  5413. :key="wIndex"
  5414. :class="w.type == 1 ? 'isTypeOne' : ''"
  5415. >
  5416. <div class="workImg">
  5417. <img
  5418. :src="w.works"
  5419. @click="previewImg(w.works)"
  5420. alt
  5421. />
  5422. <div
  5423. class="answerScore"
  5424. v-if="w.score"
  5425. @click.stop="openScore(w)"
  5426. :class="{
  5427. rightW:
  5428. w.userid == userid ||
  5429. tType == 1 ||
  5430. tType == 4,
  5431. }"
  5432. >
  5433. {{ JSON.parse(w.score).wScore }}分
  5434. </div>
  5435. <div
  5436. class="answerScore"
  5437. @click.stop="openScore(w)"
  5438. v-else-if="courseDetail.userid == userid"
  5439. :class="{
  5440. rightW:
  5441. w.userid == userid ||
  5442. tType == 1 ||
  5443. tType == 4,
  5444. }"
  5445. >
  5446. 评分
  5447. </div>
  5448. <img
  5449. class="deleteImg"
  5450. src="../../assets/deleteworks.png"
  5451. v-if="
  5452. w.userid == userid || tType == 1 || tType == 4
  5453. "
  5454. @click.stop="deleteWorks(w.wid)"
  5455. alt
  5456. />
  5457. </div>
  5458. <div class="comment" style="min-width: 200px">
  5459. <div class="worksName">
  5460. <div>{{ w.sName }}</div>
  5461. </div>
  5462. <div class="commentList">
  5463. <div class="commentList">
  5464. <div
  5465. class="commentImg"
  5466. @click="
  5467. isLikes(w.wid, userid, 1, null, w.isLikes)
  5468. "
  5469. >
  5470. <img
  5471. :src="w.isLikes == true ? likes : noLikes"
  5472. alt=""
  5473. />
  5474. </div>
  5475. <div>{{ w.likesCount }}</div>
  5476. </div>
  5477. <div
  5478. class="commentList"
  5479. style="margin-right: 15px"
  5480. >
  5481. <div
  5482. class="commentImg"
  5483. @click="
  5484. commentOther(
  5485. w,
  5486. toolIndex,
  5487. wIndex,
  5488. null,
  5489. g.id
  5490. )
  5491. "
  5492. >
  5493. <img
  5494. src="../../assets/icon/comment/comment.png"
  5495. alt=""
  5496. />
  5497. </div>
  5498. <div>{{ w.commentCount }}</div>
  5499. </div>
  5500. </div>
  5501. </div>
  5502. </div>
  5503. </div>
  5504. <div class="group_work" v-else>暂无提交作业</div>
  5505. </div>
  5506. </div>
  5507. <div
  5508. :id="'tool-' + toolIndex"
  5509. :style="{
  5510. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5511. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5512. }"
  5513. class="worksDetailBox"
  5514. v-if="
  5515. worksStudent.length &&
  5516. worksStudent[toolIndex].length > 0
  5517. "
  5518. >
  5519. <div
  5520. class="works"
  5521. style="
  5522. width: 200px;
  5523. height: 140px;
  5524. margin: 10px 10px 10px 0;
  5525. border-radius: 15px;
  5526. box-shadow: 0 0 6px 1px #dfdada;
  5527. "
  5528. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5529. :key="wIndex"
  5530. >
  5531. <!-- @click="previewImg(w.works)" -->
  5532. <div class="workImg">
  5533. <img
  5534. :src="w.works"
  5535. @click="previewImg(w.works)"
  5536. alt
  5537. />
  5538. <div
  5539. class="answerScore"
  5540. v-if="w.score"
  5541. @click.stop="openScore(w)"
  5542. :class="{
  5543. rightW:
  5544. w.userid == userid || tType == 1 || tType == 4,
  5545. }"
  5546. >
  5547. {{ JSON.parse(w.score).wScore }}分
  5548. </div>
  5549. <div
  5550. class="answerScore"
  5551. @click.stop="openScore(w)"
  5552. v-else-if="courseDetail.userid == userid"
  5553. :class="{
  5554. rightW:
  5555. w.userid == userid || tType == 1 || tType == 4,
  5556. }"
  5557. >
  5558. 评分
  5559. </div>
  5560. <img
  5561. class="deleteImg"
  5562. src="../../assets/deleteworks.png"
  5563. v-if="
  5564. w.userid == userid || tType == 1 || tType == 4
  5565. "
  5566. @click.stop="deleteWorks(w.wid)"
  5567. alt
  5568. />
  5569. </div>
  5570. <div class="comment" style="min-width: 200px">
  5571. <div class="worksName">
  5572. <div>{{ w.sName }}</div>
  5573. </div>
  5574. <div class="commentList">
  5575. <div class="commentList">
  5576. <div
  5577. class="commentImg"
  5578. @click="
  5579. isLikes(w.wid, userid, 1, null, w.isLikes)
  5580. "
  5581. >
  5582. <img
  5583. :src="w.isLikes == true ? likes : noLikes"
  5584. alt=""
  5585. />
  5586. </div>
  5587. <div>{{ w.likesCount }}</div>
  5588. </div>
  5589. <div class="commentList" style="margin-right: 15px">
  5590. <div
  5591. class="commentImg"
  5592. @click="commentOther(w, toolIndex, wIndex)"
  5593. >
  5594. <img
  5595. src="../../assets/icon/comment/comment.png"
  5596. alt=""
  5597. />
  5598. </div>
  5599. <div>{{ w.commentCount }}</div>
  5600. </div>
  5601. </div>
  5602. </div>
  5603. </div>
  5604. </div>
  5605. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5606. 未提交
  5607. </div>
  5608. <div
  5609. class="noWorksS"
  5610. v-if="noWorksS && noWorksS[toolIndex].length"
  5611. >
  5612. <div
  5613. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5614. :key="sIndex"
  5615. class="noWorksName"
  5616. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5617. >
  5618. <el-tooltip effect="dark" :content="s.student" placement="top">
  5619. <span>{{ s.student }}</span>
  5620. </el-tooltip>
  5621. </div>
  5622. </div>
  5623. </div>
  5624. <div
  5625. v-if="
  5626. tType &&
  5627. ((tType == 2 && sIsOpen == true) ||
  5628. tType == 1 ||
  5629. tType == 4) &&
  5630. tool.tool.indexOf(26) != -1
  5631. "
  5632. class="worksBox"
  5633. >
  5634. <div
  5635. class="zuoyeYulan"
  5636. v-if="
  5637. worksStudent.length &&
  5638. worksStudent[toolIndex].length > 0
  5639. "
  5640. >
  5641. <div class="worksTop">
  5642. <div>作业预览</div>
  5643. <div
  5644. class="corOpen"
  5645. @click="contract(toolIndex)"
  5646. v-if="
  5647. (isCloseList[toolIndex].isCloseBoolean) &&
  5648. isCloseList[toolIndex].isClose == 0
  5649. "
  5650. >
  5651. 折叠
  5652. </div>
  5653. <div
  5654. class="corOpen"
  5655. @click="contract(toolIndex)"
  5656. v-if="isCloseList[toolIndex].isClose == 1"
  5657. >
  5658. 展开
  5659. </div>
  5660. </div>
  5661. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5662. </div>
  5663. <div
  5664. :id="'tool-' + toolIndex"
  5665. :style="{
  5666. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5667. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5668. }"
  5669. class="worksDetailBox"
  5670. v-if="
  5671. worksStudent.length &&
  5672. worksStudent[toolIndex].length > 0
  5673. "
  5674. >
  5675. <div
  5676. class="works"
  5677. style="width: 240px; height: 140px; overflow: hidden"
  5678. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5679. :key="wIndex"
  5680. :class="w.type == 1 ? 'isTypeOne' : ''"
  5681. >
  5682. <div class="workImg" v-if="w.type == 0">
  5683. <img
  5684. :src="w.works"
  5685. @click="previewImg(w.works)"
  5686. alt
  5687. />
  5688. <img
  5689. class="deleteImg"
  5690. src="../../assets/deleteworks.png"
  5691. v-if="
  5692. w.userid == userid || tType == 1 || tType == 4
  5693. "
  5694. @click.stop="deleteWorks(w.wid)"
  5695. alt
  5696. />
  5697. </div>
  5698. <div class="workImg" v-if="w.type == 1">
  5699. <img :src="word" @click="openFile(w.works)" alt />
  5700. <img
  5701. class="deleteImg"
  5702. src="../../assets/deleteworks.png"
  5703. v-if="
  5704. w.userid == userid || tType == 1 || tType == 4
  5705. "
  5706. @click.stop="deleteWorks(w.wid)"
  5707. alt
  5708. />
  5709. </div>
  5710. <div class="worksName">
  5711. <div>{{ w.sName }}</div>
  5712. </div>
  5713. </div>
  5714. </div>
  5715. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5716. 未提交
  5717. </div>
  5718. <div
  5719. class="noWorksS"
  5720. v-if="noWorksS && noWorksS[toolIndex].length"
  5721. >
  5722. <div
  5723. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5724. :key="sIndex"
  5725. class="noWorksName"
  5726. >
  5727. <el-tooltip effect="dark" :content="s.student" placement="top">
  5728. <span>{{ s.student }}</span>
  5729. </el-tooltip>
  5730. </div>
  5731. </div>
  5732. </div>
  5733. <div
  5734. v-if="
  5735. tType &&
  5736. ((tType == 2 && sIsOpen == true) ||
  5737. tType == 1 ||
  5738. tType == 4) &&
  5739. tool.tool.indexOf(40) != -1
  5740. "
  5741. class="worksBox"
  5742. >
  5743. <div
  5744. class="zuoyeYulan"
  5745. v-if="
  5746. worksStudent.length &&
  5747. worksStudent[toolIndex].length > 0
  5748. "
  5749. >
  5750. <div class="worksTop">
  5751. <div>作业预览</div>
  5752. <div
  5753. class="corOpen"
  5754. @click="contract(toolIndex)"
  5755. v-if="
  5756. (isCloseList[toolIndex].isCloseBoolean) &&
  5757. isCloseList[toolIndex].isClose == 0
  5758. "
  5759. >
  5760. 折叠
  5761. </div>
  5762. <div
  5763. class="corOpen"
  5764. @click="contract(toolIndex)"
  5765. v-if="isCloseList[toolIndex].isClose == 1"
  5766. >
  5767. 展开
  5768. </div>
  5769. </div>
  5770. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5771. </div>
  5772. <div
  5773. :id="'tool-' + toolIndex"
  5774. :style="{
  5775. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5776. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5777. }"
  5778. class="worksDetailBox"
  5779. v-if="
  5780. worksStudent.length &&
  5781. worksStudent[toolIndex].length > 0
  5782. "
  5783. >
  5784. <div
  5785. class="works"
  5786. style="
  5787. width: 200px;
  5788. height: 140px;
  5789. margin: 10px 10px 10px 0;
  5790. border-radius: 15px;
  5791. box-shadow: 0 0 6px 1px #dfdada;
  5792. "
  5793. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5794. :key="wIndex"
  5795. :class="w.type == 1 ? 'isTypeOne' : ''"
  5796. >
  5797. <div class="workImg">
  5798. <img
  5799. src="../../assets/icon/works/noImg.png"
  5800. @click="openPj(w.works, toolIndex)"
  5801. alt
  5802. />
  5803. <img
  5804. class="deleteImg"
  5805. src="../../assets/deleteworks.png"
  5806. v-if="
  5807. w.userid == userid || tType == 1 || tType == 4
  5808. "
  5809. @click.stop="deleteWorks(w.wid)"
  5810. alt
  5811. />
  5812. </div>
  5813. <div class="comment" style="min-width: 200px">
  5814. <div class="worksName">
  5815. <div>{{ w.sName }}</div>
  5816. </div>
  5817. <div class="commentList">
  5818. <div class="commentList">
  5819. <div
  5820. class="commentImg"
  5821. @click="
  5822. isLikes(w.wid, userid, 1, null, w.isLikes)
  5823. "
  5824. >
  5825. <img
  5826. :src="w.isLikes == true ? likes : noLikes"
  5827. alt=""
  5828. />
  5829. </div>
  5830. <div>{{ w.likesCount }}</div>
  5831. </div>
  5832. <div class="commentList" style="margin-right: 15px">
  5833. <div
  5834. class="commentImg"
  5835. @click="commentOther(w, toolIndex, wIndex)"
  5836. >
  5837. <img
  5838. src="../../assets/icon/comment/comment.png"
  5839. alt=""
  5840. />
  5841. </div>
  5842. <div>{{ w.commentCount }}</div>
  5843. </div>
  5844. </div>
  5845. </div>
  5846. </div>
  5847. </div>
  5848. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5849. 未提交
  5850. </div>
  5851. <div
  5852. class="noWorksS"
  5853. v-if="noWorksS && noWorksS[toolIndex].length"
  5854. >
  5855. <div
  5856. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5857. :key="sIndex"
  5858. class="noWorksName"
  5859. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5860. >
  5861. <el-tooltip effect="dark" :content="s.student" placement="top">
  5862. <span>{{ s.student }}</span>
  5863. </el-tooltip>
  5864. </div>
  5865. </div>
  5866. </div>
  5867. <div
  5868. v-if="
  5869. tType &&
  5870. tType == 2 &&
  5871. !sIsOpen &&
  5872. tool.tool.indexOf(40) != -1
  5873. "
  5874. class="worksBox"
  5875. >
  5876. <div
  5877. class="zuoyeYulan"
  5878. v-if="workStudent[toolIndex].length > 0"
  5879. >
  5880. <span class="worksTitle">作业预览</span>
  5881. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5882. </div>
  5883. <div
  5884. class="worksDetailBox"
  5885. v-if="workStudent[toolIndex].length > 0"
  5886. >
  5887. <div
  5888. class="works"
  5889. style="
  5890. width: 200px;
  5891. height: 140px;
  5892. margin: 10px 10px 10px 0;
  5893. "
  5894. v-for="(w, wIndex) in workStudent[toolIndex]"
  5895. :key="wIndex"
  5896. >
  5897. <div class="workImg">
  5898. <img
  5899. src="../../assets/icon/works/noImg.png"
  5900. @click="openPj(w.works, toolIndex)"
  5901. alt
  5902. />
  5903. <img
  5904. class="deleteImg"
  5905. src="../../assets/deleteworks.png"
  5906. v-if="
  5907. w.userid == userid || tType == 1 || tType == 4
  5908. "
  5909. @click.stop="deleteWorks(w.wid)"
  5910. alt
  5911. />
  5912. </div>
  5913. <div class="worksName">
  5914. <div>{{ w.sName }}</div>
  5915. </div>
  5916. </div>
  5917. </div>
  5918. </div>
  5919. <div
  5920. v-if="
  5921. tType &&
  5922. ((tType == 2 && sIsOpen == true) ||
  5923. tType == 1 ||
  5924. tType == 4) &&
  5925. tool.tool.indexOf(41) != -1
  5926. "
  5927. >
  5928. <AnswerData2
  5929. v-if="
  5930. worksStudent.length &&
  5931. worksStudent[toolIndex].length > 0
  5932. "
  5933. :problemJson="tool.selectJson.answer"
  5934. :people="worksStudent[toolIndex]"
  5935. ></AnswerData2>
  5936. </div>
  5937. <div
  5938. v-if="
  5939. tType &&
  5940. ((tType == 2 && sIsOpen == true) ||
  5941. tType == 1 ||
  5942. tType == 4) &&
  5943. tool.tool.indexOf(41) != -1
  5944. "
  5945. class="worksBox"
  5946. >
  5947. <div
  5948. class="zuoyeYulan"
  5949. v-if="
  5950. worksStudent.length &&
  5951. worksStudent[toolIndex].length > 0
  5952. "
  5953. >
  5954. <div class="worksTop">
  5955. <div>作业预览</div>
  5956. <div
  5957. class="corOpen"
  5958. @click="contract(toolIndex)"
  5959. v-if="
  5960. (isCloseList[toolIndex].isCloseBoolean) &&
  5961. isCloseList[toolIndex].isClose == 0
  5962. "
  5963. >
  5964. 折叠
  5965. </div>
  5966. <div
  5967. class="corOpen"
  5968. @click="contract(toolIndex)"
  5969. v-if="isCloseList[toolIndex].isClose == 1"
  5970. >
  5971. 展开
  5972. </div>
  5973. </div>
  5974. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5975. </div>
  5976. <div
  5977. :id="'tool-' + toolIndex"
  5978. :style="{
  5979. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5980. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5981. }"
  5982. class="worksDetailBox"
  5983. v-if="
  5984. worksStudent.length &&
  5985. worksStudent[toolIndex].length > 0
  5986. "
  5987. >
  5988. <div
  5989. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5990. :key="wIndex"
  5991. class="isWorksName2"
  5992. @click="openXz(w, toolIndex)"
  5993. >
  5994. {{ w.sName }}
  5995. <img
  5996. class="deleteImg deleteImg2"
  5997. src="../../assets/deleteworks.png"
  5998. v-if="w.userid == userid || tType == 1 || tType == 4"
  5999. @click.stop="deleteWorks(w.wid)"
  6000. alt
  6001. />
  6002. </div>
  6003. <!-- <div
  6004. class="works"
  6005. style="
  6006. width: 200px;
  6007. height: 140px;
  6008. margin: 10px 10px 10px 0;
  6009. border-radius: 15px;
  6010. box-shadow: 0 0 6px 1px #dfdada;
  6011. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6012. :class="w.type == 5 ? 'isTypeOne' : ''">
  6013. <div class="workImg">
  6014. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6015. </div>
  6016. <div class="worksName">
  6017. <div>{{ w.sName }}</div>
  6018. </div>
  6019. </div> -->
  6020. </div>
  6021. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6022. 未提交
  6023. </div>
  6024. <div
  6025. class="noWorksS"
  6026. v-if="noWorksS && noWorksS[toolIndex].length"
  6027. >
  6028. <div
  6029. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6030. :key="sIndex"
  6031. class="noWorksName"
  6032. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6033. >
  6034. <el-tooltip effect="dark" :content="s.student" placement="top">
  6035. <span>{{ s.student }}</span>
  6036. </el-tooltip>
  6037. </div>
  6038. </div>
  6039. </div>
  6040. <div
  6041. v-if="
  6042. tType &&
  6043. tType == 2 &&
  6044. !sIsOpen &&
  6045. tool.tool.indexOf(41) != -1
  6046. "
  6047. class="worksBox"
  6048. >
  6049. <div
  6050. class="zuoyeYulan"
  6051. v-if="workStudent[toolIndex].length > 0"
  6052. >
  6053. <span class="worksTitle">作业预览</span>
  6054. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6055. </div>
  6056. <div
  6057. class="worksDetailBox"
  6058. v-if="workStudent[toolIndex].length > 0"
  6059. >
  6060. <div
  6061. class="works"
  6062. style="
  6063. width: 200px;
  6064. height: 140px;
  6065. margin: 10px 10px 10px 0;
  6066. "
  6067. v-for="(w, wIndex) in workStudent[toolIndex]"
  6068. :key="wIndex"
  6069. >
  6070. <div class="workImg">
  6071. <img
  6072. src="../../assets/icon/works/noImg.png"
  6073. @click="openXz(w, toolIndex)"
  6074. alt
  6075. />
  6076. <img
  6077. class="deleteImg"
  6078. src="../../assets/deleteworks.png"
  6079. v-if="
  6080. w.userid == userid || tType == 1 || tType == 4
  6081. "
  6082. @click.stop="deleteWorks(w.wid)"
  6083. alt
  6084. />
  6085. </div>
  6086. <div class="worksName">
  6087. <div>{{ w.sName }}</div>
  6088. </div>
  6089. </div>
  6090. </div>
  6091. </div>
  6092. <div v-if="false" class="xuan_right_box">
  6093. <div
  6094. class="tool_right_box"
  6095. v-for="(item, index) in tool.sentenceList"
  6096. :key="index"
  6097. >
  6098. <div>
  6099. <span
  6100. style="word-break: break-all; white-space: normal"
  6101. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6102. >
  6103. </div>
  6104. <div class="right_box_xuan">
  6105. <span>正确率</span>
  6106. <span>{{
  6107. (checkJson[toolIndex][index].right
  6108. ? checkJson[toolIndex][index].right
  6109. : 0) + "%"
  6110. }}</span>
  6111. </div>
  6112. <div class="right_box_xuan">
  6113. <span>答对人数</span>
  6114. <span>{{
  6115. checkJson[toolIndex][index].rightPerson.length
  6116. }}</span>
  6117. </div>
  6118. </div>
  6119. </div>
  6120. <div
  6121. v-if="
  6122. tType &&
  6123. ((tType == 2 && sIsOpen == true) ||
  6124. tType == 1 ||
  6125. tType == 4) &&
  6126. tool.tool.indexOf(47) != -1
  6127. "
  6128. >
  6129. <AnswerData
  6130. v-if="
  6131. checkJson[toolIndex].length &&
  6132. (tool.sentenceList || tool.sentenceList.length > 0)
  6133. "
  6134. :people="checkJson[toolIndex]"
  6135. ></AnswerData>
  6136. </div>
  6137. <div
  6138. v-if="
  6139. tType &&
  6140. tType == 2 &&
  6141. !sIsOpen &&
  6142. tool.tool.indexOf(47) != -1
  6143. "
  6144. class="worksBox"
  6145. >
  6146. <div
  6147. class="zuoyeYulan"
  6148. v-if="workStudent[toolIndex].length > 0"
  6149. >
  6150. <span class="worksTitle">作业预览</span>
  6151. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6152. </div>
  6153. <div
  6154. class="worksDetailBox"
  6155. v-if="workStudent[toolIndex].length > 0"
  6156. >
  6157. <div
  6158. class="works"
  6159. style="
  6160. width: 200px;
  6161. height: 140px;
  6162. margin: 10px 10px 10px 0;
  6163. "
  6164. v-for="(w, wIndex) in workStudent[toolIndex]"
  6165. :key="wIndex"
  6166. >
  6167. <!-- @click="openXz(w, toolIndex)" -->
  6168. <div class="workImg" @click="openSen(w, toolIndex)">
  6169. <img src="../../assets/icon/works/noImg.png" alt />
  6170. <img
  6171. class="deleteImg"
  6172. src="../../assets/deleteworks.png"
  6173. v-if="
  6174. w.userid == userid || tType == 1 || tType == 4
  6175. "
  6176. @click.stop="deleteWorks(w.wid)"
  6177. alt
  6178. />
  6179. </div>
  6180. <div class="worksName">
  6181. <div>
  6182. {{ w.sName }}
  6183. </div>
  6184. </div>
  6185. </div>
  6186. </div>
  6187. </div>
  6188. <div
  6189. v-if="
  6190. tType &&
  6191. ((tType == 2 && sIsOpen == true) ||
  6192. tType == 1 ||
  6193. tType == 4) &&
  6194. tool.tool.indexOf(47) != -1
  6195. "
  6196. class="worksBox"
  6197. >
  6198. <div
  6199. class="zuoyeYulan"
  6200. v-if="
  6201. worksStudent.length &&
  6202. worksStudent[toolIndex].length > 0
  6203. "
  6204. >
  6205. <div class="worksTop">
  6206. <div>作业预览</div>
  6207. <div
  6208. class="corOpen"
  6209. @click="contract(toolIndex)"
  6210. v-if="
  6211. (isCloseList[toolIndex].isCloseBoolean) &&
  6212. isCloseList[toolIndex].isClose == 0
  6213. "
  6214. >
  6215. 折叠
  6216. </div>
  6217. <div
  6218. class="corOpen"
  6219. @click="contract(toolIndex)"
  6220. v-if="isCloseList[toolIndex].isClose == 1"
  6221. >
  6222. 展开
  6223. </div>
  6224. </div>
  6225. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6226. </div>
  6227. <div
  6228. :id="'tool-' + toolIndex"
  6229. :style="{
  6230. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6231. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6232. }"
  6233. class="worksDetailBox"
  6234. v-if="
  6235. worksStudent.length &&
  6236. worksStudent[toolIndex].length > 0
  6237. "
  6238. >
  6239. <!-- @click="openXz(w, toolIndex)" -->
  6240. <div
  6241. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6242. :key="wIndex"
  6243. class="isWorksName2"
  6244. @click="openSen(w, toolIndex)"
  6245. >
  6246. {{ w.sName }}
  6247. <img
  6248. class="deleteImg deleteImg2"
  6249. src="../../assets/deleteworks.png"
  6250. v-if="w.userid == userid || tType == 1 || tType == 4"
  6251. @click.stop="deleteWorks(w.wid)"
  6252. alt
  6253. />
  6254. </div>
  6255. </div>
  6256. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6257. 未提交
  6258. </div>
  6259. <div
  6260. class="noWorksS"
  6261. v-if="noWorksS && noWorksS[toolIndex].length"
  6262. >
  6263. <div
  6264. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6265. :key="sIndex"
  6266. class="noWorksName"
  6267. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6268. >
  6269. <el-tooltip effect="dark" :content="s.student" placement="top">
  6270. <span>{{ s.student }}</span>
  6271. </el-tooltip>
  6272. </div>
  6273. </div>
  6274. </div>
  6275. <div
  6276. v-if="
  6277. tType &&
  6278. ((tType == 2 && sIsOpen == true) ||
  6279. tType == 1 ||
  6280. tType == 4) &&
  6281. tool.tool.indexOf(48) != -1
  6282. "
  6283. class="worksBox"
  6284. >
  6285. <div
  6286. class="zuoyeYulan"
  6287. v-if="
  6288. worksStudent.length &&
  6289. worksStudent[toolIndex].length > 0
  6290. "
  6291. >
  6292. <div class="worksTop">
  6293. <div>作业预览</div>
  6294. <div
  6295. class="corOpen"
  6296. @click="contract(toolIndex)"
  6297. v-if="
  6298. (isCloseList[toolIndex].isCloseBoolean) &&
  6299. isCloseList[toolIndex].isClose == 0
  6300. "
  6301. >
  6302. 折叠
  6303. </div>
  6304. <div
  6305. class="corOpen"
  6306. @click="contract(toolIndex)"
  6307. v-if="isCloseList[toolIndex].isClose == 1"
  6308. >
  6309. 展开
  6310. </div>
  6311. </div>
  6312. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6313. </div>
  6314. <div
  6315. :id="'tool-' + toolIndex"
  6316. :style="{
  6317. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6318. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6319. }"
  6320. class="worksDetailBox"
  6321. v-if="
  6322. worksStudent.length &&
  6323. worksStudent[toolIndex].length > 0
  6324. "
  6325. >
  6326. <div
  6327. class="works"
  6328. style="
  6329. width: 200px;
  6330. height: 140px;
  6331. margin: 10px 10px 10px 0;
  6332. border-radius: 15px;
  6333. box-shadow: 0 0 6px 1px #dfdada;
  6334. "
  6335. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6336. :key="wIndex"
  6337. :class="w.type == 1 ? 'isTypeOne' : ''"
  6338. >
  6339. <div class="workImg">
  6340. <img :src="word" @click="openTable(w)" alt />
  6341. <!-- @click="openFile(w.works)" -->
  6342. <div
  6343. class="answerScore"
  6344. v-if="w.score"
  6345. @click.stop="openScore(w)"
  6346. :class="{
  6347. rightW:
  6348. w.userid == userid ||
  6349. tType == 1 ||
  6350. tType == 4 ||
  6351. w.ateacher == userid,
  6352. }"
  6353. >
  6354. {{ JSON.parse(w.score).wScore }}分
  6355. </div>
  6356. <div
  6357. class="answerScore"
  6358. @click.stop="openScore(w)"
  6359. v-else-if="courseDetail.userid == userid"
  6360. :class="{
  6361. rightW:
  6362. w.userid == userid ||
  6363. tType == 1 ||
  6364. tType == 4 ||
  6365. w.ateacher == userid,
  6366. }"
  6367. >
  6368. 评分
  6369. </div>
  6370. <img
  6371. class="deleteImg"
  6372. src="../../assets/deleteworks.png"
  6373. v-if="
  6374. w.userid == userid || tType == 1 || tType == 4
  6375. "
  6376. @click.stop="deleteWorks(w.wid)"
  6377. alt
  6378. />
  6379. </div>
  6380. <div class="comment" style="min-width: 200px">
  6381. <div class="worksName">
  6382. <div>{{ w.sName }}</div>
  6383. </div>
  6384. <div class="commentList">
  6385. <div class="commentList">
  6386. <div
  6387. class="commentImg"
  6388. @click="
  6389. isLikes(w.wid, userid, 1, null, w.isLikes)
  6390. "
  6391. >
  6392. <img
  6393. :src="w.isLikes == true ? likes : noLikes"
  6394. alt=""
  6395. />
  6396. </div>
  6397. <div>{{ w.likesCount }}</div>
  6398. </div>
  6399. <div class="commentList" style="margin-right: 15px">
  6400. <div
  6401. class="commentImg"
  6402. @click="commentOther(w, toolIndex, wIndex)"
  6403. >
  6404. <img
  6405. src="../../assets/icon/comment/comment.png"
  6406. alt=""
  6407. />
  6408. </div>
  6409. <div>{{ w.commentCount }}</div>
  6410. </div>
  6411. </div>
  6412. </div>
  6413. </div>
  6414. </div>
  6415. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6416. 未提交
  6417. </div>
  6418. <div
  6419. class="noWorksS"
  6420. v-if="noWorksS && noWorksS[toolIndex].length"
  6421. >
  6422. <div
  6423. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6424. :key="sIndex"
  6425. class="noWorksName"
  6426. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6427. >
  6428. <el-tooltip effect="dark" :content="s.student" placement="top">
  6429. <span>{{ s.student }}</span>
  6430. </el-tooltip>
  6431. </div>
  6432. </div>
  6433. </div>
  6434. <div
  6435. v-if="
  6436. tType &&
  6437. tType == 2 &&
  6438. !sIsOpen &&
  6439. tool.tool.indexOf(48) != -1
  6440. "
  6441. class="worksBox"
  6442. >
  6443. <div
  6444. class="zuoyeYulan"
  6445. v-if="workStudent[toolIndex].length > 0"
  6446. >
  6447. <span class="worksTitle">作业预览</span>
  6448. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6449. </div>
  6450. <div
  6451. class="worksDetailBox"
  6452. v-if="workStudent[toolIndex].length > 0"
  6453. >
  6454. <div
  6455. class="works"
  6456. style="
  6457. width: 200px;
  6458. height: 140px;
  6459. margin: 10px 10px 10px 0;
  6460. box-shadow: 0 0 6px 1px #dfdada;
  6461. "
  6462. v-for="(w, wIndex) in workStudent[toolIndex]"
  6463. :key="wIndex"
  6464. >
  6465. <div class="workImg">
  6466. <img :src="word" @click="openTable(w)" alt />
  6467. <div
  6468. class="answerScore"
  6469. v-if="w.score"
  6470. @click.stop="openScore(w)"
  6471. :class="{
  6472. rightW:
  6473. w.userid == userid || tType == 1 || tType == 4,
  6474. }"
  6475. >
  6476. {{ JSON.parse(w.score).wScore }}分
  6477. </div>
  6478. <div
  6479. class="answerScore"
  6480. @click.stop="openScore(w)"
  6481. v-else-if="courseDetail.userid == userid"
  6482. :class="{
  6483. rightW:
  6484. w.userid == userid || tType == 1 || tType == 4,
  6485. }"
  6486. >
  6487. 评分
  6488. </div>
  6489. <img
  6490. class="deleteImg"
  6491. src="../../assets/deleteworks.png"
  6492. v-if="
  6493. w.userid == userid || tType == 1 || tType == 4
  6494. "
  6495. @click.stop="deleteWorks(w.wid)"
  6496. alt
  6497. />
  6498. </div>
  6499. <div class="worksName">
  6500. <div>{{ w.sName }}</div>
  6501. </div>
  6502. </div>
  6503. </div>
  6504. </div>
  6505. <div
  6506. v-if="
  6507. tType &&
  6508. ((tType == 2 && sIsOpen == true) ||
  6509. tType == 1 ||
  6510. tType == 4) &&
  6511. tool.tool.indexOf(52) != -1
  6512. "
  6513. class="worksBox"
  6514. >
  6515. <div
  6516. class="zuoyeYulan"
  6517. style="display: flex;justify-content: space-between;align-items: center;"
  6518. v-if="
  6519. worksStudent.length &&
  6520. worksStudent[toolIndex].length > 0
  6521. "
  6522. >
  6523. <div class="worksTop">
  6524. <div>作业预览</div>
  6525. <div
  6526. class="corOpen"
  6527. @click="contract(toolIndex)"
  6528. v-if="
  6529. (isCloseList[toolIndex].isCloseBoolean) &&
  6530. isCloseList[toolIndex].isClose == 0
  6531. "
  6532. >
  6533. 折叠
  6534. </div>
  6535. <div
  6536. class="corOpen"
  6537. @click="contract(toolIndex)"
  6538. v-if="isCloseList[toolIndex].isClose == 1"
  6539. >
  6540. 展开
  6541. </div>
  6542. </div>
  6543. <div v-if="courseDetail.userid == userid && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && courseDetail.state == 5">
  6544. <div class="ScoreBtn" v-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  6545. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  6546. AI评分
  6547. </div>
  6548. <div class="ScoreBtn" v-else >
  6549. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  6550. 正在评分
  6551. </div>
  6552. </div>
  6553. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6554. </div>
  6555. <div
  6556. :id="'tool-' + toolIndex"
  6557. :style="{
  6558. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6559. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6560. }"
  6561. class="worksDetailBox"
  6562. v-if="
  6563. worksStudent.length &&
  6564. worksStudent[toolIndex].length > 0
  6565. "
  6566. >
  6567. <div
  6568. class="works"
  6569. style="
  6570. width: 200px;
  6571. height: 140px;
  6572. margin: 10px 10px 10px 0;
  6573. border-radius: 15px;
  6574. box-shadow: 0 0 6px 1px #dfdada;
  6575. "
  6576. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6577. :key="wIndex"
  6578. :class="w.type == 1 ? 'isTypeOne' : ''"
  6579. >
  6580. <div class="workImg">
  6581. <img :src="word" @click="openWord(w)" alt />
  6582. <!-- @click="openFile(w.works)" -->
  6583. <div
  6584. class="answerScore"
  6585. v-if="w.score"
  6586. @click.stop="openScore(w)"
  6587. :class="{
  6588. rightW:
  6589. w.userid == userid ||
  6590. tType == 1 ||
  6591. tType == 4 ||
  6592. w.ateacher == userid,
  6593. }"
  6594. >
  6595. {{ JSON.parse(w.score).wScore }}分
  6596. </div>
  6597. <div
  6598. class="answerScore"
  6599. @click.stop="openScore(w)"
  6600. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  6601. :class="{
  6602. rightW:
  6603. w.userid == userid ||
  6604. tType == 1 ||
  6605. tType == 4 ||
  6606. w.ateacher == userid,
  6607. }"
  6608. >
  6609. 评分
  6610. </div>
  6611. <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5">
  6612. <el-popover
  6613. placement="top"
  6614. width="300"
  6615. :disabled="AIloading[toolIndex][wIndex].loading"
  6616. trigger="click"
  6617. @show="handleShow(toolIndex,wIndex)"
  6618. @hide="handleHide(toolIndex,wIndex,worksStudent)"
  6619. >
  6620. <markScore
  6621. :loading="AIloading[toolIndex][wIndex].loading"
  6622. :ref="`markSco${toolIndex}${wIndex}`"
  6623. @updateLoading=updateLoading
  6624. @updateDocSco=updateDocSco
  6625. :wIndex="wIndex"
  6626. :scoCon="w"
  6627. :TotalScore="AIloading[toolIndex][wIndex].sco"
  6628. :toolIndex="toolIndex"
  6629. :key="refreshKey"
  6630. :refreshKey="refreshKey"
  6631. :toolDetail="tool.toolDetail"
  6632. :stage="courseType"
  6633. :task="taskCount"
  6634. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  6635. >
  6636. </markScore>
  6637. <div
  6638. class="answerScore"
  6639. slot="reference"
  6640. :class="{
  6641. rightW:
  6642. w.userid == userid ||
  6643. tType == 1 ||
  6644. tType == 4 ||
  6645. w.ateacher == userid,
  6646. }"
  6647. >
  6648. <span v-if="AIloading[toolIndex][wIndex].sco && AIloading[toolIndex][wIndex].sco*1 != 0">
  6649. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  6650. </span>
  6651. <span v-else>
  6652. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}{{w.Total}}
  6653. </span>
  6654. </div>
  6655. </el-popover>
  6656. </div>
  6657. <img
  6658. class="deleteImg"
  6659. src="../../assets/deleteworks.png"
  6660. v-if="
  6661. w.userid == userid || tType == 1 || tType == 4
  6662. "
  6663. @click.stop="deleteWorks(w.wid)"
  6664. alt
  6665. />
  6666. </div>
  6667. <div class="comment" style="min-width: 200px">
  6668. <div class="worksName">
  6669. <div>{{ w.sName }}</div>
  6670. </div>
  6671. <div class="commentList">
  6672. <div class="commentList">
  6673. <div
  6674. class="commentImg"
  6675. @click="
  6676. isLikes(w.wid, userid, 1, null, w.isLikes)
  6677. "
  6678. >
  6679. <img
  6680. :src="w.isLikes == true ? likes : noLikes"
  6681. alt=""
  6682. />
  6683. </div>
  6684. <div>{{ w.likesCount }}</div>
  6685. </div>
  6686. <div class="commentList" style="margin-right: 15px">
  6687. <div
  6688. class="commentImg"
  6689. @click="commentOther(w, toolIndex, wIndex)"
  6690. >
  6691. <img
  6692. src="../../assets/icon/comment/comment.png"
  6693. alt=""
  6694. />
  6695. </div>
  6696. <div>{{ w.commentCount }}</div>
  6697. </div>
  6698. </div>
  6699. </div>
  6700. </div>
  6701. </div>
  6702. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6703. 未提交
  6704. </div>
  6705. <div
  6706. class="noWorksS"
  6707. v-if="noWorksS && noWorksS[toolIndex].length"
  6708. >
  6709. <div
  6710. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6711. :key="sIndex"
  6712. class="noWorksName"
  6713. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6714. >
  6715. <el-tooltip effect="dark" :content="s.student" placement="top">
  6716. <span>{{ s.student }}</span>
  6717. </el-tooltip>
  6718. </div>
  6719. </div>
  6720. </div>
  6721. <div
  6722. v-if="
  6723. tType &&
  6724. tType == 2 &&
  6725. !sIsOpen &&
  6726. tool.tool.indexOf(52) != -1
  6727. "
  6728. class="worksBox"
  6729. >
  6730. <div
  6731. class="zuoyeYulan"
  6732. v-if="workStudent[toolIndex].length > 0"
  6733. >
  6734. <span class="worksTitle">作业预览</span>
  6735. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6736. </div>
  6737. <div
  6738. class="worksDetailBox"
  6739. v-if="workStudent[toolIndex].length > 0"
  6740. >
  6741. <div
  6742. class="works"
  6743. style="
  6744. width: 200px;
  6745. height: 140px;
  6746. margin: 10px 10px 10px 0;
  6747. box-shadow: 0 0 6px 1px #dfdada;
  6748. "
  6749. v-for="(w, wIndex) in workStudent[toolIndex]"
  6750. :key="wIndex"
  6751. >
  6752. <div class="workImg">
  6753. <img :src="word" @click="openWord(w)" alt />
  6754. <div
  6755. class="answerScore"
  6756. v-if="w.score"
  6757. @click.stop="openScore(w)"
  6758. :class="{
  6759. rightW:
  6760. w.userid == userid || tType == 1 || tType == 4,
  6761. }"
  6762. >
  6763. {{ JSON.parse(w.score).wScore }}分
  6764. </div>
  6765. <div
  6766. class="answerScore"
  6767. @click.stop="openScore(w)"
  6768. v-else-if="courseDetail.userid == userid"
  6769. :class="{
  6770. rightW:
  6771. w.userid == userid || tType == 1 || tType == 4,
  6772. }"
  6773. >
  6774. 评分
  6775. </div>
  6776. <img
  6777. class="deleteImg"
  6778. src="../../assets/deleteworks.png"
  6779. v-if="
  6780. w.userid == userid || tType == 1 || tType == 4
  6781. "
  6782. @click.stop="deleteWorks(w.wid)"
  6783. alt
  6784. />
  6785. </div>
  6786. <div class="worksName">
  6787. <div>{{ w.sName }}</div>
  6788. </div>
  6789. </div>
  6790. </div>
  6791. </div>
  6792. <div
  6793. v-if="tool.tool.indexOf(49) != -1"
  6794. class="xuan_right_box"
  6795. style="margin: 0 15px 0 25px; width: 93%"
  6796. >
  6797. <div
  6798. v-if="courseDetail.userid == userid"
  6799. style="
  6800. display: flex;
  6801. justify-content: flex-end;
  6802. margin-right: 10px;
  6803. "
  6804. >
  6805. <el-button
  6806. type="primary"
  6807. size="small"
  6808. @click="addTools(49, toolIndex, taskCount)"
  6809. >分组设置</el-button
  6810. >
  6811. </div>
  6812. <div
  6813. v-if="groupStudentUid[toolIndex]"
  6814. class="group_staic_box"
  6815. >
  6816. <div
  6817. v-for="(gp, gd) in tool.groupJson.group"
  6818. :key="gd"
  6819. class="group_staic"
  6820. >
  6821. <span> {{ gp.name }}</span>
  6822. <span>
  6823. 目前人数{{
  6824. groupStudentUid[toolIndex][gd].length
  6825. }}人</span
  6826. >
  6827. </div>
  6828. </div>
  6829. </div>
  6830. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6831. <div
  6832. class="zuoyeYulan"
  6833. v-if="
  6834. worksStudent.length &&
  6835. worksStudent[toolIndex].length > 0
  6836. "
  6837. >
  6838. <span class="worksTitle">作业预览</span>
  6839. </div>
  6840. <div>
  6841. <div
  6842. class="group_workBox"
  6843. v-for="(g, gindex) in tool.groupJson.group"
  6844. :key="gindex"
  6845. >
  6846. <div
  6847. class="group_box"
  6848. v-if="
  6849. groupStudentUid[toolIndex] &&
  6850. worksStudent[toolIndex] &&
  6851. (worksStudent[toolIndex][gindex].length ||
  6852. groupStudentUid[toolIndex][gindex].indexOf(
  6853. userid
  6854. ) != -1)
  6855. "
  6856. >
  6857. <div class="group_title">
  6858. <el-tooltip
  6859. class="item"
  6860. effect="light"
  6861. :content="g.name"
  6862. placement="top"
  6863. >
  6864. <div class="group_name">{{ g.name }}</div>
  6865. </el-tooltip>
  6866. <el-button
  6867. type="primary"
  6868. v-if="
  6869. groupStudentUid[toolIndex][gindex].indexOf(
  6870. userid
  6871. ) != -1
  6872. "
  6873. @click="groupUpload(toolIndex, taskCount, gindex)"
  6874. >上传作业</el-button
  6875. >
  6876. </div>
  6877. <div class="group_work">
  6878. <div
  6879. class="works"
  6880. style="
  6881. width: 200px;
  6882. height: 140px;
  6883. margin: 10px 10px 10px 0;
  6884. border-radius: 15px;
  6885. box-shadow: 0 0 6px 1px #dfdada;
  6886. "
  6887. v-for="(w, wIndex) in worksStudent[toolIndex][
  6888. gindex
  6889. ]"
  6890. :key="wIndex"
  6891. :class="w.type == 1 ? 'isTypeOne' : ''"
  6892. >
  6893. <div class="workImg" v-if="w.type == 0">
  6894. <img
  6895. :src="w.works"
  6896. @click="previewImg(w.works)"
  6897. alt
  6898. />
  6899. <div
  6900. class="answerScore"
  6901. v-if="w.score"
  6902. @click.stop="openScore(w)"
  6903. :class="{
  6904. rightW:
  6905. w.userid == userid ||
  6906. tType == 1 ||
  6907. tType == 4 ||
  6908. w.ateacher == userid,
  6909. }"
  6910. >
  6911. {{ JSON.parse(w.score).wScore }}分
  6912. </div>
  6913. <div
  6914. class="answerScore"
  6915. @click.stop="openScore(w)"
  6916. v-else-if="courseDetail.userid == userid"
  6917. :class="{
  6918. rightW:
  6919. w.userid == userid ||
  6920. tType == 1 ||
  6921. tType == 4 ||
  6922. w.ateacher == userid,
  6923. }"
  6924. >
  6925. 评分
  6926. </div>
  6927. <img
  6928. class="deleteImg"
  6929. src="../../assets/deleteworks.png"
  6930. v-if="
  6931. w.userid == userid ||
  6932. tType == 1 ||
  6933. tType == 4
  6934. "
  6935. @click.stop="deleteWorks(w.wid)"
  6936. alt
  6937. />
  6938. </div>
  6939. <div class="workImg" v-if="w.type == 1">
  6940. <img
  6941. :src="word"
  6942. @click="openFile(w.works)"
  6943. alt
  6944. />
  6945. <!-- @click="openFile(w.works)" -->
  6946. <div
  6947. class="answerScore"
  6948. v-if="w.score"
  6949. @click.stop="openScore(w)"
  6950. :class="{
  6951. rightW:
  6952. w.userid == userid ||
  6953. tType == 1 ||
  6954. tType == 4 ||
  6955. w.ateacher == userid,
  6956. }"
  6957. >
  6958. {{ JSON.parse(w.score).wScore }}分
  6959. </div>
  6960. <div
  6961. class="answerScore"
  6962. @click.stop="openScore(w)"
  6963. v-else-if="courseDetail.userid == userid"
  6964. :class="{
  6965. rightW:
  6966. w.userid == userid ||
  6967. tType == 1 ||
  6968. tType == 4 ||
  6969. w.ateacher == userid,
  6970. }"
  6971. >
  6972. 评分
  6973. </div>
  6974. <img
  6975. class="deleteImg"
  6976. src="../../assets/deleteworks.png"
  6977. v-if="
  6978. w.userid == userid ||
  6979. tType == 1 ||
  6980. tType == 4
  6981. "
  6982. @click.stop="deleteWorks(w.wid)"
  6983. alt
  6984. />
  6985. </div>
  6986. <div class="workImg" v-if="w.type == 3">
  6987. <img
  6988. style="cursor: pointer"
  6989. :src="video"
  6990. @click="openVideo(w)"
  6991. alt
  6992. />
  6993. <!-- @click="openVideo(w.works)" -->
  6994. <div
  6995. class="answerScore"
  6996. v-if="w.score"
  6997. @click.stop="openScore(w)"
  6998. :class="{
  6999. rightW:
  7000. w.userid == userid ||
  7001. tType == 1 ||
  7002. tType == 4 ||
  7003. w.ateacher == userid,
  7004. }"
  7005. >
  7006. {{ JSON.parse(w.score).wScore }}分
  7007. </div>
  7008. <div
  7009. class="answerScore"
  7010. @click.stop="openScore(w)"
  7011. v-else-if="courseDetail.userid == userid"
  7012. :class="{
  7013. rightW:
  7014. w.userid == userid ||
  7015. tType == 1 ||
  7016. tType == 4 ||
  7017. w.ateacher == userid,
  7018. }"
  7019. >
  7020. 评分
  7021. </div>
  7022. <img
  7023. class="deleteImg"
  7024. src="../../assets/deleteworks.png"
  7025. v-if="
  7026. w.userid == userid ||
  7027. tType == 1 ||
  7028. tType == 4
  7029. "
  7030. @click.stop="deleteWorks(w.wid)"
  7031. alt
  7032. />
  7033. </div>
  7034. <div class="workImg" v-if="w.type == 12">
  7035. <img
  7036. style="cursor: pointer"
  7037. :src="word2"
  7038. @click="downloadFile(w.works)"
  7039. alt
  7040. />
  7041. <!-- @click="openVideo(w.works)" -->
  7042. <div
  7043. class="answerScore"
  7044. v-if="w.score"
  7045. @click.stop="openScore(w)"
  7046. :class="{
  7047. rightW:
  7048. w.userid == userid ||
  7049. tType == 1 ||
  7050. tType == 4 ||
  7051. w.ateacher == userid,
  7052. }"
  7053. >
  7054. {{ JSON.parse(w.score).wScore }}分
  7055. </div>
  7056. <div
  7057. class="answerScore"
  7058. @click.stop="openScore(w)"
  7059. v-else-if="courseDetail.userid == userid"
  7060. :class="{
  7061. rightW:
  7062. w.userid == userid ||
  7063. tType == 1 ||
  7064. tType == 4 ||
  7065. w.ateacher == userid,
  7066. }"
  7067. >
  7068. 评分
  7069. </div>
  7070. <img
  7071. class="deleteImg"
  7072. src="../../assets/deleteworks.png"
  7073. v-if="
  7074. w.userid == userid ||
  7075. tType == 1 ||
  7076. tType == 4
  7077. "
  7078. @click.stop="deleteWorks(w.wid)"
  7079. alt
  7080. />
  7081. </div>
  7082. <div class="comment" style="min-width: 200px">
  7083. <div class="worksName">
  7084. <div>{{ w.sName }}</div>
  7085. </div>
  7086. <div class="commentList">
  7087. <div class="commentList">
  7088. <div
  7089. class="commentImg"
  7090. @click="
  7091. isLikes(
  7092. w.wid,
  7093. userid,
  7094. 1,
  7095. null,
  7096. w.isLikes
  7097. )
  7098. "
  7099. >
  7100. <img
  7101. :src="
  7102. w.isLikes == true ? likes : noLikes
  7103. "
  7104. alt=""
  7105. />
  7106. </div>
  7107. <div>{{ w.likesCount }}</div>
  7108. </div>
  7109. <div
  7110. class="commentList"
  7111. style="margin-right: 15px"
  7112. >
  7113. <div
  7114. class="commentImg"
  7115. @click="
  7116. commentOther(
  7117. w,
  7118. toolIndex,
  7119. wIndex,
  7120. gindex
  7121. )
  7122. "
  7123. >
  7124. <img
  7125. src="../../assets/icon/comment/comment.png"
  7126. alt=""
  7127. />
  7128. </div>
  7129. <div>{{ w.commentCount }}</div>
  7130. </div>
  7131. </div>
  7132. </div>
  7133. </div>
  7134. </div>
  7135. </div>
  7136. </div>
  7137. </div>
  7138. </div>
  7139. </div>
  7140. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7141. 上传文件
  7142. <input
  7143. type="file"
  7144. accept="image/png, image/gif, image/jpeg"
  7145. style="display: none"
  7146. @change="beforeUpload1($event, 2, index)"
  7147. />
  7148. </div>-->
  7149. </div>
  7150. </div>
  7151. <!-- <div
  7152. class="vedioBox"
  7153. style="margin-top: 10px"
  7154. v-if="
  7155. courseDetail.userid == userid ||
  7156. (courseDetail.course_teacher &&
  7157. courseDetail.course_teacher.indexOf(userid) != -1)
  7158. "
  7159. :style="{
  7160. borderRadius:
  7161. !(
  7162. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7163. .toolChoose[0].tool &&
  7164. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7165. .toolChoose[0].tool.length > 0
  7166. ) &&
  7167. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7168. .taskDetail == '' &&
  7169. vChapterData[taskCount].length == 0 &&
  7170. fileC[taskCount].length == 0
  7171. ? '0 0 20px 20px'
  7172. : '20px',
  7173. }"
  7174. >
  7175. <div
  7176. class="queTop"
  7177. @click="isClose = !isClose"
  7178. style="
  7179. padding: 15px 0 15px 37px;
  7180. justify-content: space-between;
  7181. "
  7182. >
  7183. <div class="queTopTitle">新增工具</div>
  7184. <div class="queTopRight">
  7185. <div class="queTopClose" v-if="isClose == 0">
  7186. 展开
  7187. <div class="closeImg">
  7188. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7189. </div>
  7190. </div>
  7191. <div class="queTopClose" v-if="isClose == 1">
  7192. 折叠
  7193. <div class="openImg">
  7194. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7195. </div>
  7196. </div>
  7197. <el-button
  7198. style="margin: 0 30px 0 auto"
  7199. type="primary"
  7200. size="small"
  7201. v-if="isClose == 1 && checktoolArray.length > 0"
  7202. @click.stop="addToolChoose"
  7203. >确定</el-button
  7204. >
  7205. </div>
  7206. </div>
  7207. <div
  7208. class="tool_work_box"
  7209. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7210. >
  7211. <div class="tool_box">
  7212. <div class="tool_type_box">
  7213. <div class="chooseWho">
  7214. <div
  7215. :class="toolType == 0 ? 'isChooseActive' : ''"
  7216. @click="(toolType = 0), $forceUpdate()"
  7217. >
  7218. 互动类
  7219. </div>
  7220. <div
  7221. :class="toolType == 1 ? 'isChooseActive' : ''"
  7222. @click="(toolType = 1), $forceUpdate()"
  7223. >
  7224. 思维类
  7225. </div>
  7226. <div
  7227. :class="toolType == 2 ? 'isChooseActive' : ''"
  7228. @click="(toolType = 2), $forceUpdate()"
  7229. >
  7230. 测评类
  7231. </div>
  7232. <div
  7233. :class="toolType == 3 ? 'isChooseActive' : ''"
  7234. @click="(toolType = 3), $forceUpdate()"
  7235. >
  7236. 编程类
  7237. </div>
  7238. <div
  7239. :class="toolType == 5 ? 'isChooseActive' : ''"
  7240. @click="(toolType = 5), $forceUpdate()"
  7241. >
  7242. 学科类
  7243. </div>
  7244. </div>
  7245. </div>
  7246. <div>
  7247. <div class="toolSort" v-if="toolType == 0">
  7248. <div class="tool">
  7249. <div class="whiteBIcon" @click="addTools2(10)">
  7250. <img
  7251. src="../../assets/icon/thirdToolList/time.png"
  7252. alt
  7253. />
  7254. <div style="margin: 5px 0">倒计时</div>
  7255. </div>
  7256. <div class="check" @click="addTools2(10)">
  7257. <img
  7258. src="../../assets/icon/checkNo.png"
  7259. alt
  7260. v-if="checktoolArray.indexOf(10) == -1"
  7261. />
  7262. <div class="checkDiv" v-else>
  7263. <img src="../../assets/icon/checkedIs.png" alt /><span
  7264. >已选择</span
  7265. >
  7266. </div>
  7267. </div>
  7268. </div>
  7269. <div class="tool">
  7270. <div class="whiteBIcon" @click="addTools2(65)">
  7271. <img
  7272. src="../../assets/icon/firstToolList/pickPeople.png"
  7273. alt
  7274. />
  7275. <div style="margin: 5px 0">挑人</div>
  7276. </div>
  7277. <div class="check" @click="addTools2(65)">
  7278. <img
  7279. src="../../assets/icon/checkNo.png"
  7280. alt
  7281. v-if="checktoolArray.indexOf(65) == -1"
  7282. />
  7283. <div class="checkDiv" v-else>
  7284. <img src="../../assets/icon/checkedIs.png" alt /><span
  7285. >已选择</span
  7286. >
  7287. </div>
  7288. </div>
  7289. </div>
  7290. </div>
  7291. <div class="toolSort" v-if="toolType == 1">
  7292. <div class="tool">
  7293. <div class="whiteBIcon" @click="addTools2(7)">
  7294. <img
  7295. src="../../assets/icon/secondToolList/mindNetwork.png"
  7296. alt
  7297. />
  7298. <div style="margin: 5px 0">思维网格</div>
  7299. </div>
  7300. <div class="check" @click="addTools2(7)">
  7301. <img
  7302. src="../../assets/icon/checkNo.png"
  7303. alt
  7304. v-if="checktoolArray.indexOf(7) == -1"
  7305. />
  7306. <div class="checkDiv" v-else>
  7307. <img src="../../assets/icon/checkedIs.png" alt /><span
  7308. >已选择</span
  7309. >
  7310. </div>
  7311. </div>
  7312. </div>
  7313. <div class="tool">
  7314. <div class="whiteBIcon" @click="addTools2(1)">
  7315. <img
  7316. src="../../assets/icon/secondToolList/whiteBoard.png"
  7317. alt
  7318. />
  7319. <div style="margin: 5px 0">电子白板</div>
  7320. </div>
  7321. <div class="check" @click="addTools2(1)">
  7322. <img
  7323. src="../../assets/icon/checkNo.png"
  7324. alt
  7325. v-if="checktoolArray.indexOf(1) == -1"
  7326. />
  7327. <div class="checkDiv" v-else>
  7328. <img src="../../assets/icon/checkedIs.png" alt /><span
  7329. >已选择</span
  7330. >
  7331. </div>
  7332. </div>
  7333. </div>
  7334. <div class="tool">
  7335. <div class="whiteBIcon" @click="addTools2(52)">
  7336. <img
  7337. src="../../assets/icon/fourthToolList/text.png"
  7338. alt
  7339. />
  7340. <div style="margin: 5px 0">文档</div>
  7341. </div>
  7342. <div class="check" @click="addTools2(52)">
  7343. <img
  7344. src="../../assets/icon/checkNo.png"
  7345. alt
  7346. v-if="checktoolArray.indexOf(52) == -1"
  7347. />
  7348. <div class="checkDiv" v-else>
  7349. <img src="../../assets/icon/checkedIs.png" alt /><span
  7350. >已选择</span
  7351. >
  7352. </div>
  7353. </div>
  7354. </div>
  7355. <div class="tool">
  7356. <div class="whiteBIcon" @click="addTools2(3)">
  7357. <img
  7358. src="../../assets/icon/secondToolList/mindMapping.png"
  7359. alt
  7360. />
  7361. <div style="margin: 5px 0">思维导图</div>
  7362. </div>
  7363. <div class="check" @click="addTools2(3)">
  7364. <img
  7365. src="../../assets/icon/checkNo.png"
  7366. alt
  7367. v-if="checktoolArray.indexOf(3) == -1"
  7368. />
  7369. <div class="checkDiv" v-else>
  7370. <img src="../../assets/icon/checkedIs.png" alt /><span
  7371. >已选择</span
  7372. >
  7373. </div>
  7374. </div>
  7375. </div>
  7376. <div class="tool">
  7377. <div class="whiteBIcon" @click="addTools2(48)">
  7378. <img
  7379. src="../../assets/icon/fourthToolList/table.png"
  7380. alt
  7381. />
  7382. <div style="margin: 5px 0">表格</div>
  7383. </div>
  7384. <div class="check" @click="addTools2(48)">
  7385. <img
  7386. src="../../assets/icon/checkNo.png"
  7387. alt
  7388. v-if="checktoolArray.indexOf(48) == -1"
  7389. />
  7390. <div class="checkDiv" v-else>
  7391. <img src="../../assets/icon/checkedIs.png" alt /><span
  7392. >已选择</span
  7393. >
  7394. </div>
  7395. </div>
  7396. </div>
  7397. </div>
  7398. <div class="toolSort" v-if="toolType == 6">
  7399. <div v-show="tooC == 49">
  7400. <img
  7401. @click="addTools(tooC, toolIndex, taskCount)"
  7402. src="../../assets/icon/fourthToolList/group.png"
  7403. alt
  7404. />
  7405. <div style="margin: 5px 0">学生分组</div>
  7406. </div>
  7407. </div>
  7408. <div class="toolSort" v-if="toolType == 2">
  7409. <div class="tool">
  7410. <div class="whiteBIcon" @click="addTools2(16)">
  7411. <img
  7412. src="../../assets/icon/thirdToolList/work.png"
  7413. alt
  7414. />
  7415. <div style="margin: 5px 0">作业提交</div>
  7416. </div>
  7417. <div class="check" @click="addTools2(16)">
  7418. <img
  7419. src="../../assets/icon/checkNo.png"
  7420. alt
  7421. v-if="checktoolArray.indexOf(16) == -1"
  7422. />
  7423. <div class="checkDiv" v-else>
  7424. <img src="../../assets/icon/checkedIs.png" alt /><span
  7425. >已选择</span
  7426. >
  7427. </div>
  7428. </div>
  7429. </div>
  7430. <div class="tool">
  7431. <div class="whiteBIcon" @click="addTools2(50)">
  7432. <img
  7433. src="../../assets/icon/thirdToolList/plwork.png"
  7434. alt
  7435. />
  7436. <div style="margin: 5px 0">批量上传</div>
  7437. </div>
  7438. <div class="check" @click="addTools2(50)">
  7439. <img
  7440. src="../../assets/icon/checkNo.png"
  7441. alt
  7442. v-if="checktoolArray.indexOf(50) == -1"
  7443. />
  7444. <div class="checkDiv" v-else>
  7445. <img src="../../assets/icon/checkedIs.png" alt /><span
  7446. >已选择</span
  7447. >
  7448. </div>
  7449. </div>
  7450. </div>
  7451. </div>
  7452. <div class="toolSort" v-if="toolType == 3">
  7453. <div class="tool">
  7454. <div class="whiteBIcon" @click="addTools2(18)">
  7455. <img
  7456. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7457. alt
  7458. />
  7459. <div style="margin: 5px 0">训练平台</div>
  7460. </div>
  7461. <div class="check" @click="addTools2(18)">
  7462. <img
  7463. src="../../assets/icon/checkNo.png"
  7464. alt
  7465. v-if="checktoolArray.indexOf(18) == -1"
  7466. />
  7467. <div class="checkDiv" v-else>
  7468. <img src="../../assets/icon/checkedIs.png" alt /><span
  7469. >已选择</span
  7470. >
  7471. </div>
  7472. </div>
  7473. </div>
  7474. <div class="tool">
  7475. <div class="whiteBIcon" @click="addTools2(21)">
  7476. <img
  7477. src="../../assets/icon/fourthToolList/program.png"
  7478. alt
  7479. />
  7480. <div style="margin: 5px 0">AIoT Blockly</div>
  7481. </div>
  7482. <div class="check" @click="addTools2(21)">
  7483. <img
  7484. src="../../assets/icon/checkNo.png"
  7485. alt
  7486. v-if="checktoolArray.indexOf(21) == -1"
  7487. />
  7488. <div class="checkDiv" v-else>
  7489. <img src="../../assets/icon/checkedIs.png" alt /><span
  7490. >已选择</span
  7491. >
  7492. </div>
  7493. </div>
  7494. </div>
  7495. <div class="tool">
  7496. <div class="whiteBIcon" @click="addTools2(23)">
  7497. <img
  7498. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7499. alt
  7500. />
  7501. <div style="margin: 5px 0">AI Python</div>
  7502. </div>
  7503. <div class="check" @click="addTools2(23)">
  7504. <img
  7505. src="../../assets/icon/checkNo.png"
  7506. alt
  7507. v-if="checktoolArray.indexOf(23) == -1"
  7508. />
  7509. <div class="checkDiv" v-else>
  7510. <img src="../../assets/icon/checkedIs.png" alt /><span
  7511. >已选择</span
  7512. >
  7513. </div>
  7514. </div>
  7515. </div>
  7516. <div class="tool">
  7517. <div class="whiteBIcon" @click="addTools2(24)">
  7518. <img
  7519. src="../../assets/icon/fourthToolList/AIprogram.png"
  7520. alt
  7521. />
  7522. <div style="margin: 5px 0">AI Blockly</div>
  7523. </div>
  7524. <div class="check" @click="addTools2(24)">
  7525. <img
  7526. src="../../assets/icon/checkNo.png"
  7527. alt
  7528. v-if="checktoolArray.indexOf(24) == -1"
  7529. />
  7530. <div class="checkDiv" v-else>
  7531. <img src="../../assets/icon/checkedIs.png" alt /><span
  7532. >已选择</span
  7533. >
  7534. </div>
  7535. </div>
  7536. </div>
  7537. <div class="tool">
  7538. <div class="whiteBIcon" @click="addTools2(32)">
  7539. <img
  7540. src="../../assets/icon/thirdToolList/code.png"
  7541. alt
  7542. />
  7543. <div style="margin: 5px 0">源码编辑</div>
  7544. </div>
  7545. <div class="check" @click="addTools2(32)">
  7546. <img
  7547. src="../../assets/icon/checkNo.png"
  7548. alt
  7549. v-if="checktoolArray.indexOf(32) == -1"
  7550. />
  7551. <div class="checkDiv" v-else>
  7552. <img src="../../assets/icon/checkedIs.png" alt /><span
  7553. >已选择</span
  7554. >
  7555. </div>
  7556. </div>
  7557. </div>
  7558. <div class="tool">
  7559. <div class="whiteBIcon" @click="addTools2(57)">
  7560. <img
  7561. src="../../assets/icon/fourthToolList/cocopi.png"
  7562. alt
  7563. />
  7564. <div style="margin: 5px 0">CocoPi</div>
  7565. </div>
  7566. <div class="check" @click="addTools2(57)">
  7567. <img
  7568. src="../../assets/icon/checkNo.png"
  7569. alt
  7570. v-if="checktoolArray.indexOf(57) == -1"
  7571. />
  7572. <div class="checkDiv" v-else>
  7573. <img src="../../assets/icon/checkedIs.png" alt /><span
  7574. >已选择</span
  7575. >
  7576. </div>
  7577. </div>
  7578. </div>
  7579. <div class="tool">
  7580. <div class="whiteBIcon" @click="addTools2(63)">
  7581. <img
  7582. src="../../assets/icon/fourthToolList/Wood.png"
  7583. alt
  7584. />
  7585. <div style="margin: 5px 0">海龟编程</div>
  7586. </div>
  7587. <div class="check" @click="addTools2(63)">
  7588. <img
  7589. src="../../assets/icon/checkNo.png"
  7590. alt
  7591. v-if="checktoolArray.indexOf(63) == -1"
  7592. />
  7593. <div class="checkDiv" v-else>
  7594. <img src="../../assets/icon/checkedIs.png" alt /><span
  7595. >已选择</span
  7596. >
  7597. </div>
  7598. </div>
  7599. </div>
  7600. </div>
  7601. <div class="toolSort" v-if="toolType == 5">
  7602. <div class="tool">
  7603. <div class="whiteBIcon" @click="addTools2(28)">
  7604. <img
  7605. src="../../assets/icon/secondToolList/translation.png"
  7606. alt
  7607. />
  7608. <div style="margin: 5px 0">翻译</div>
  7609. </div>
  7610. <div class="check" @click="addTools2(28)">
  7611. <img
  7612. src="../../assets/icon/checkNo.png"
  7613. alt
  7614. v-if="checktoolArray.indexOf(28) == -1"
  7615. />
  7616. <div class="checkDiv" v-else>
  7617. <img src="../../assets/icon/checkedIs.png" alt /><span
  7618. >已选择</span
  7619. >
  7620. </div>
  7621. </div>
  7622. </div>
  7623. <div class="tool">
  7624. <div class="whiteBIcon" @click="addTools2(31)">
  7625. <img
  7626. src="../../assets/icon/secondToolList/networkPanel.png"
  7627. alt
  7628. />
  7629. <div style="margin: 5px 0">数字画板</div>
  7630. </div>
  7631. <div class="check" @click="addTools2(31)">
  7632. <img
  7633. src="../../assets/icon/checkNo.png"
  7634. alt
  7635. v-if="checktoolArray.indexOf(31) == -1"
  7636. />
  7637. <div class="checkDiv" v-else>
  7638. <img src="../../assets/icon/checkedIs.png" alt /><span
  7639. >已选择</span
  7640. >
  7641. </div>
  7642. </div>
  7643. </div>
  7644. <div class="tool">
  7645. <div class="whiteBIcon" @click="addTools2(39)">
  7646. <img
  7647. src="../../assets/icon/secondToolList/GeoGebra.png"
  7648. alt
  7649. />
  7650. <div style="margin: 5px 0">GeoGebra</div>
  7651. </div>
  7652. <div class="check" @click="addTools2(39)">
  7653. <img
  7654. src="../../assets/icon/checkNo.png"
  7655. alt
  7656. v-if="checktoolArray.indexOf(39) == -1"
  7657. />
  7658. <div class="checkDiv" v-else>
  7659. <img src="../../assets/icon/checkedIs.png" alt /><span
  7660. >已选择</span
  7661. >
  7662. </div>
  7663. </div>
  7664. </div>
  7665. <div class="tool">
  7666. <div class="whiteBIcon" @click="addTools2(66)">
  7667. <img
  7668. src="../../assets/icon/secondToolList/formulaEdi.png"
  7669. alt
  7670. />
  7671. <div style="margin: 5px 0">公式编辑</div>
  7672. </div>
  7673. <div class="check" @click="addTools2(66)">
  7674. <img
  7675. src="../../assets/icon/checkNo.png"
  7676. alt
  7677. v-if="checktoolArray.indexOf(66) == -1"
  7678. />
  7679. <div class="checkDiv" v-else>
  7680. <img src="../../assets/icon/checkedIs.png" alt /><span
  7681. >已选择</span
  7682. >
  7683. </div>
  7684. </div>
  7685. </div>
  7686. <div class="tool">
  7687. <div class="whiteBIcon" @click="addTools2(67)">
  7688. <img
  7689. src="../../assets/icon/secondToolList/molStr.png"
  7690. alt
  7691. />
  7692. <div style="margin: 5px 0">分子结构</div>
  7693. </div>
  7694. <div class="check" @click="addTools2(67)">
  7695. <img
  7696. src="../../assets/icon/checkNo.png"
  7697. alt
  7698. v-if="checktoolArray.indexOf(67) == -1"
  7699. />
  7700. <div class="checkDiv" v-else>
  7701. <img src="../../assets/icon/checkedIs.png" alt /><span
  7702. >已选择</span
  7703. >
  7704. </div>
  7705. </div>
  7706. </div>
  7707. <div class="tool">
  7708. <div class="whiteBIcon" @click="addTools2(68)">
  7709. <img
  7710. src="../../assets/icon/secondToolList/timeAxis.png"
  7711. alt
  7712. />
  7713. <div style="margin: 5px 0">时间轴</div>
  7714. </div>
  7715. <div class="check" @click="addTools2(68)">
  7716. <img
  7717. src="../../assets/icon/checkNo.png"
  7718. alt
  7719. v-if="checktoolArray.indexOf(68) == -1"
  7720. />
  7721. <div class="checkDiv" v-else>
  7722. <img src="../../assets/icon/checkedIs.png" alt /><span
  7723. >已选择</span
  7724. >
  7725. </div>
  7726. </div>
  7727. </div>
  7728. </div>
  7729. <div class="toolSort" v-if="toolType == 7">
  7730. <div class="tool">
  7731. <div class="whiteBIcon" @click="addTools2(40)">
  7732. <img
  7733. src="../../assets/icon/secondToolList/eval.png"
  7734. alt
  7735. />
  7736. <div style="margin: 5px 0">个人评价</div>
  7737. </div>
  7738. <div class="check" @click="addTools2(40)">
  7739. <img
  7740. src="../../assets/icon/checkNo.png"
  7741. alt
  7742. v-if="checktoolArray.indexOf(40) == -1"
  7743. />
  7744. <div class="checkDiv" v-else>
  7745. <img src="../../assets/icon/checkedIs.png" alt /><span
  7746. >已选择</span
  7747. >
  7748. </div>
  7749. </div>
  7750. </div>
  7751. </div>
  7752. <div class="toolSort" v-if="toolType == 4">
  7753. <div class="tool">
  7754. <div class="whiteBIcon" @click="addTools2(26)">
  7755. <img
  7756. src="../../assets/icon/thirdToolList/courseDesign.png"
  7757. alt
  7758. />
  7759. <div style="margin: 5px 0">课程设计</div>
  7760. </div>
  7761. <div class="check" @click="addTools2(26)">
  7762. <img
  7763. src="../../assets/icon/checkNo.png"
  7764. alt
  7765. v-if="checktoolArray.indexOf(26) == -1"
  7766. />
  7767. <div class="checkDiv" v-else>
  7768. <img src="../../assets/icon/checkedIs.png" alt /><span
  7769. >已选择</span
  7770. >
  7771. </div>
  7772. </div>
  7773. </div>
  7774. <div class="tool">
  7775. <div class="whiteBIcon" @click="addTools2(25)">
  7776. <img
  7777. src="../../assets/icon/thirdToolList/evalua.png"
  7778. alt
  7779. />
  7780. <div style="margin: 5px 0">目标管理</div>
  7781. </div>
  7782. <div class="check" @click="addTools2(25)">
  7783. <img
  7784. src="../../assets/icon/checkNo.png"
  7785. alt
  7786. v-if="checktoolArray.indexOf(25) == -1"
  7787. />
  7788. <div class="checkDiv" v-else>
  7789. <img src="../../assets/icon/checkedIs.png" alt /><span
  7790. >已选择</span
  7791. >
  7792. </div>
  7793. </div>
  7794. </div>
  7795. </div>
  7796. </div>
  7797. </div>
  7798. </div>
  7799. </div> -->
  7800. <div
  7801. class="vedioBox"
  7802. style="margin-top: 10px; border-radius: 20px"
  7803. v-if="
  7804. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7805. .eList &&
  7806. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7807. .eList.length &&
  7808. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7809. .eList.length > 0 &&
  7810. tType != 2
  7811. "
  7812. >
  7813. <div
  7814. class="queTop"
  7815. style="
  7816. font-size: 20px;
  7817. padding: 15px 0 15px 37px;
  7818. font-weight: bold;
  7819. "
  7820. >
  7821. <!-- <div class="question" style="width: 30px">
  7822. <img src="../assets/icon/toolIcon.png" alt />
  7823. </div>
  7824. <div class="queTitle">
  7825. <div>工具</div>
  7826. </div>-->
  7827. 评一评
  7828. </div>
  7829. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7830. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7831. <el-table
  7832. :data="
  7833. chapInfoList[courseType].chapterInfo[0].taskJson[
  7834. taskCount
  7835. ].eList
  7836. "
  7837. :header-cell-style="{ background: '#F0F4FA' }"
  7838. :row-class-name="tableRowClassName"
  7839. border
  7840. stripe
  7841. style="width: 100%"
  7842. >
  7843. <el-table-column
  7844. label="评价名称"
  7845. align="center"
  7846. >
  7847. <template slot-scope="scope"
  7848. ><div>{{ scope.row.value }}</div></template
  7849. >
  7850. </el-table-column>
  7851. <el-table-column
  7852. label="评价描述"
  7853. align="center"
  7854. >
  7855. <template slot-scope="scope"
  7856. ><div>
  7857. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7858. </div></template
  7859. >
  7860. </el-table-column>
  7861. <el-table-column label="目标" align="center">
  7862. <template slot-scope="scope"
  7863. ><div>
  7864. {{
  7865. scope.row.target
  7866. ? scope.row.target[scope.row.target.length - 1]
  7867. : "-"
  7868. }}
  7869. </div></template
  7870. ></el-table-column
  7871. >
  7872. </el-table>
  7873. <!-- <div
  7874. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7875. .chapterInfo[0].taskJson[taskCount].eList"
  7876. :key="eIndex"
  7877. class="elist_input_box"
  7878. >
  7879. <div style="width: 95%">
  7880. <div
  7881. style="
  7882. display: flex;
  7883. flex-direction: row;
  7884. flex-wrap: nowrap;
  7885. align-items: center;
  7886. "
  7887. >
  7888. <div style="max-width: calc(100% - 285px)">
  7889. <span>{{ eItem.value }}</span>
  7890. </div>
  7891. <div
  7892. style="
  7893. padding-left: 25px;
  7894. display: flex;
  7895. flex-direction: row;
  7896. align-items: center;
  7897. "
  7898. >
  7899. <el-rate
  7900. v-model="eItem.score"
  7901. :colors="colors"
  7902. disabled
  7903. ></el-rate>
  7904. </div>
  7905. </div>
  7906. <div class="elist_inptu_text" style="padding-left: 10px">
  7907. <span v-if="eItem.detail != ''">{{
  7908. eItem.detail
  7909. }}</span>
  7910. <span v-else style="color: #b2b1b3; font-size: 14px"
  7911. >暂无描述...</span
  7912. >
  7913. </div>
  7914. </div>
  7915. </div> -->
  7916. </div>
  7917. <div
  7918. v-if="evalua"
  7919. style="
  7920. border: 1px solid #e5e5e5;
  7921. max-width: 650px;
  7922. width: 100%;
  7923. margin-top: 20px;
  7924. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7925. "
  7926. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7927. >
  7928. <div class="e_add_top">
  7929. <div class="e_add_title" style="width: 100%">
  7930. <!-- <span>目标管理名称</span> -->
  7931. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7932. <img
  7933. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7934. src="../../assets/line.png"
  7935. class="cru_line"
  7936. style="
  7937. width: 125px;
  7938. height: 20px;
  7939. bottom: -10px;
  7940. left: 5px;
  7941. "
  7942. />
  7943. <!-- <el-input
  7944. v-model="eTitle"
  7945. placeholder="请输入名称"
  7946. @change="setMindData"
  7947. ></el-input>-->
  7948. <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>
  7949. <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>
  7950. </div>
  7951. </div>
  7952. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7953. <div class="e_add_list_pbox">
  7954. <div class="e_add_list_pbox_title">
  7955. <!-- <span class="type_title">切换模式</span> -->
  7956. <div class="type_content">
  7957. <span
  7958. :class="{ active: typeMode == 1 }"
  7959. @click="typeMode = 1"
  7960. >目标树</span
  7961. >
  7962. <span
  7963. :class="{ active: typeMode == 2 }"
  7964. @click="typeMode = 2"
  7965. >目标罗盘</span
  7966. >
  7967. <!-- <span
  7968. :class="{ active: typeMode == 3 }"
  7969. @click="typeMode = 3"
  7970. >目标看板</span
  7971. > -->
  7972. </div>
  7973. </div>
  7974. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7975. <Mind
  7976. :showBar="false"
  7977. :mindData="data"
  7978. style="width: 100%"
  7979. v-show="typeMode == 1"
  7980. ></Mind>
  7981. <Sunburst
  7982. :Josn="eJson"
  7983. :num="eJSONNum"
  7984. style="width: 100%"
  7985. v-if="typeMode == 2"
  7986. ></Sunburst>
  7987. <SeeBoard
  7988. :Josn="eJson"
  7989. :num="eJSONNum"
  7990. :ename="eTitle"
  7991. style="width: 100%"
  7992. v-if="typeMode == 3"
  7993. >
  7994. </SeeBoard>
  7995. </div>
  7996. </div>
  7997. </div>
  7998. </div>
  7999. </div>
  8000. </div>
  8001. <!-- <div
  8002. class="project_box"
  8003. style="margin-top: 15px; padding-bottom: 30px"
  8004. >
  8005. <div
  8006. style="
  8007. display: flex;
  8008. flex-wrap: nowrap;
  8009. flex-direction: column;
  8010. position: relative;
  8011. "
  8012. >
  8013. <div class="queTop">
  8014. <div class="question">
  8015. <img src="../../assets/icon/homeWork.png" alt="" />
  8016. </div>
  8017. <div class="queTitle">
  8018. <div>作业提交<span>(提交图文视频等)</span></div>
  8019. <div>:任务:{{ task.task }}</div>
  8020. </div>
  8021. </div>
  8022. <div class="ediBottom">
  8023. <div
  8024. class="addEditor"
  8025. style="margin-top: 23px"
  8026. @click="openAddWork"
  8027. v-if="!isNoHomeWork"
  8028. >
  8029. 选择文件
  8030. </div>
  8031. <div
  8032. class="addEditor"
  8033. style="margin-top: 23px"
  8034. @click="openAddWork"
  8035. v-else
  8036. >
  8037. 已提交
  8038. </div>
  8039. </div>
  8040. </div>
  8041. </div>-->
  8042. </div>
  8043. </div>
  8044. <el-dialog
  8045. title="作业提交"
  8046. :visible.sync="dialogVisible"
  8047. :append-to-body="true"
  8048. width="500px"
  8049. :before-close="handleClose"
  8050. class="dialog_change"
  8051. >
  8052. <div class="marginT">
  8053. <div>上传文件</div>
  8054. <div
  8055. class="chapter_add"
  8056. @click="addImg($event)"
  8057. v-if="studyJuri[0].cover.length == 0"
  8058. >
  8059. <div class="up_photo">
  8060. <img src="../../assets/icon/uploadImg.png" alt />
  8061. </div>
  8062. <!-- <input
  8063. type="file"
  8064. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8065. style="display: none"
  8066. @change="beforeUpload1($event, 1)"
  8067. /> -->
  8068. <input
  8069. type="file"
  8070. accept="*"
  8071. style="display: none"
  8072. @change="beforeUpload1($event, 1)"
  8073. />
  8074. <!-- <input
  8075. type="file"
  8076. accept="image/*"
  8077. capture="camera"
  8078. style="display: none"
  8079. @change="beforeUpload1($event, 1)"
  8080. /> -->
  8081. </div>
  8082. <div
  8083. class="chapter_add"
  8084. style="
  8085. display: flex;
  8086. width: 100%;
  8087. flex-direction: row;
  8088. flex-wrap: wrap;
  8089. justify-content: flex-start;
  8090. padding: 15px 0;
  8091. "
  8092. v-if="studyJuri[0].cover.length > 0"
  8093. >
  8094. <div class="upCover">
  8095. <img
  8096. :src="studyJuri[0].cover[0].url"
  8097. alt
  8098. v-if="fileType == 0"
  8099. />
  8100. <img :src="word" alt v-else-if="fileType == 1" />
  8101. <img :src="video" alt v-else-if="fileType == 2" />
  8102. <img :src="word2" alt v-else-if="fileType == 3" />
  8103. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8104. <div class="deleteWord" @click="clean(1)">
  8105. <img src="../../assets/icon/deleteWorks.png" alt />
  8106. </div>
  8107. </div>
  8108. </div>
  8109. </div>
  8110. <div
  8111. class="upload_send"
  8112. @click="addCourseWorks(taskCount)"
  8113. v-if="!proVisible"
  8114. >
  8115. 提交
  8116. </div>
  8117. </el-dialog>
  8118. </div>
  8119. </div>
  8120. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8121. <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(
  8122. '/courseDetail?userid=' +
  8123. userid +
  8124. '&oid=' +
  8125. oid +
  8126. '&org=' +
  8127. org +
  8128. '&cid=' +
  8129. classId +
  8130. '&courseId=' +
  8131. id +
  8132. '&tType=' +
  8133. tType +
  8134. '&screenType=' +
  8135. screenType
  8136. )"></classRoomHelper>
  8137. <div
  8138. class="pButton"
  8139. @click="(pzDialog = true), selectPz()"
  8140. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8141. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8142. >
  8143. <!-- 批 -->
  8144. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8145. </div>
  8146. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8147. <div class="pzTop2">
  8148. <!-- <div>评论</div>
  8149. <div @click="pzDialog = false">
  8150. <img src="../../assets/close1.png" alt="" />
  8151. </div> -->
  8152. <div class="checkbox">
  8153. <!-- <div class="check" style="font-size: 25px; position: unset">
  8154. 评论
  8155. </div> -->
  8156. <div class="cb-tabList">
  8157. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8158. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8159. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8160. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8161. </div>
  8162. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8163. <el-option label="时间降序" :value="1"></el-option>
  8164. <el-option label="时间升序" :value="2"></el-option>
  8165. <el-option label="我的评课" :value="3"></el-option>
  8166. </el-select>
  8167. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8168. </div>
  8169. </div>
  8170. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8171. <div class="pzListBox" v-if="pzList && pzList.length">
  8172. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8173. <div class="pzNavTop">
  8174. <div>评</div>
  8175. <div>
  8176. {{
  8177. pz.username && pz.username.length > 5
  8178. ? pz.username.substring(0, 5) + "..."
  8179. : pz.username
  8180. }}的评论
  8181. </div>
  8182. <div
  8183. class="pzDelete"
  8184. v-if="pz.userid == userid"
  8185. @click="deletePz(pz.id)"
  8186. >
  8187. 删除
  8188. </div>
  8189. </div>
  8190. <div
  8191. @click="checkImg(getImgList(pz.content))"
  8192. class="pzContent cont"
  8193. v-html="pz.content"
  8194. v-if="pz.type == '1'"
  8195. ></div>
  8196. <div class="pzContent" v-if="pz.type == '2'">
  8197. <audio :src="pz.content" controls="controls" ref="audio">
  8198. Your browser does not support the audio element.
  8199. </audio>
  8200. </div>
  8201. <div class="pzContent" v-if="pz.type == '3'">
  8202. <img
  8203. :src="pz.content"
  8204. style="width: 90%; margin: 0 auto; display: block"
  8205. @click="previewImg(pz.content)"
  8206. />
  8207. </div>
  8208. <div class="timeAndReply">
  8209. <div class="time">
  8210. {{ pz.time }}
  8211. </div>
  8212. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8213. </div>
  8214. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8215. <div
  8216. v-for="(h, hIndex) in pz.hfList"
  8217. :key="hIndex"
  8218. class="hfItem"
  8219. >
  8220. <div class="whoReplyWho">
  8221. <div class="hfName">{{ h.username }}</div>
  8222. <div class="hfImg">
  8223. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8224. </div>
  8225. <div class="hfName">{{ pz.username }}</div>
  8226. </div>
  8227. <div class="hfContent" v-html="h.content"></div>
  8228. <div class="hfBottom">
  8229. <div class="hfTime">{{ h.time }}</div>
  8230. <div
  8231. class="deleteHfItem"
  8232. @click="deleteReply(h.id)"
  8233. v-if="userid == h.userid"
  8234. >
  8235. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8236. </div>
  8237. </div>
  8238. </div>
  8239. </div>
  8240. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8241. <div class="replyInput">
  8242. <el-input v-model="reply[pzIndex]"></el-input>
  8243. </div>
  8244. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8245. </div> -->
  8246. </div>
  8247. </div>
  8248. <div class="noPz" v-else>
  8249. <img src="../../assets/icon/noPz.png" alt="" />
  8250. </div>
  8251. <div class="addPzButton">
  8252. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8253. 添加评论
  8254. </div>
  8255. <!-- <div class="img1">
  8256. <div @click="(addPzDialog = true), (pzType = 2)">
  8257. <img src="../../assets/audio.png" /><span>音频</span>
  8258. </div>
  8259. </div> -->
  8260. </div>
  8261. </div>
  8262. <div class="scoreList" v-if="commentTagShow==1">
  8263. <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"/>
  8264. </div>
  8265. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8266. <scoreZong :courseid="id" :userid="userid"></scoreZong>
  8267. </div>
  8268. </div>
  8269. <div
  8270. v-if="toolDialogVisible == true"
  8271. class="toolMask"
  8272. @click="toolDialogVisible = false"
  8273. ></div>
  8274. <div v-if="toolDialogVisible == true" class="addToolCss">
  8275. <div class="toolTop">
  8276. <div style="font-weight: bold">新增工具</div>
  8277. <div @click="toolDialogVisible = false">
  8278. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8279. </div>
  8280. </div>
  8281. <div class="tool_box">
  8282. <div class="tool_type_box">
  8283. <div class="chooseWho">
  8284. <div
  8285. :class="toolType == 0 ? 'isChooseActive' : ''"
  8286. @click="(toolType = 0), $forceUpdate()"
  8287. >
  8288. 互动类
  8289. </div>
  8290. <div
  8291. :class="toolType == 1 ? 'isChooseActive' : ''"
  8292. @click="(toolType = 1), $forceUpdate()"
  8293. >
  8294. 思维类
  8295. </div>
  8296. <div
  8297. :class="toolType == 2 ? 'isChooseActive' : ''"
  8298. @click="(toolType = 2), $forceUpdate()"
  8299. >
  8300. 测评类
  8301. </div>
  8302. <div
  8303. :class="toolType == 3 ? 'isChooseActive' : ''"
  8304. @click="(toolType = 3), $forceUpdate()"
  8305. >
  8306. 编程类
  8307. </div>
  8308. <div
  8309. :class="toolType == 5 ? 'isChooseActive' : ''"
  8310. @click="(toolType = 5), $forceUpdate()"
  8311. >
  8312. 学科类
  8313. </div>
  8314. </div>
  8315. </div>
  8316. <div>
  8317. <div class="toolSort" v-if="toolType == 0">
  8318. <div
  8319. class="tool"
  8320. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8321. @click="addTools2(10)"
  8322. >
  8323. <div class="whiteBIcon">
  8324. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8325. <div style="margin: 5px 0">倒计时</div>
  8326. </div>
  8327. <div class="check">
  8328. <div
  8329. v-if="checktoolArray.indexOf(10) == -1"
  8330. class="noChoose"
  8331. ></div>
  8332. <div v-else class="isChoose"></div>
  8333. </div>
  8334. </div>
  8335. <div
  8336. class="tool"
  8337. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8338. @click="addTools2(65)"
  8339. >
  8340. <div class="whiteBIcon">
  8341. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8342. <div style="margin: 5px 0">挑人</div>
  8343. </div>
  8344. <div class="check">
  8345. <div
  8346. v-if="checktoolArray.indexOf(65) == -1"
  8347. class="noChoose"
  8348. ></div>
  8349. <div v-else class="isChoose"></div>
  8350. </div>
  8351. </div>
  8352. </div>
  8353. <div class="toolSort" v-if="toolType == 1">
  8354. <div
  8355. class="tool"
  8356. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8357. @click="addTools2(7)"
  8358. >
  8359. <div class="whiteBIcon">
  8360. <img
  8361. src="../../assets/icon/secondToolList/mindNetwork.png"
  8362. alt
  8363. />
  8364. <div style="margin: 5px 0">思维网格</div>
  8365. </div>
  8366. <div class="check">
  8367. <div
  8368. v-if="checktoolArray.indexOf(7) == -1"
  8369. class="noChoose"
  8370. ></div>
  8371. <div v-else class="isChoose"></div>
  8372. </div>
  8373. </div>
  8374. <div
  8375. class="tool"
  8376. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8377. @click="addTools2(1)"
  8378. >
  8379. <div class="whiteBIcon">
  8380. <img
  8381. src="../../assets/icon/secondToolList/whiteBoard.png"
  8382. alt
  8383. />
  8384. <div style="margin: 5px 0">电子白板</div>
  8385. </div>
  8386. <div class="check">
  8387. <div
  8388. v-if="checktoolArray.indexOf(1) == -1"
  8389. class="noChoose"
  8390. ></div>
  8391. <div v-else class="isChoose"></div>
  8392. </div>
  8393. </div>
  8394. <div
  8395. class="tool"
  8396. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8397. @click="addTools2(52)"
  8398. >
  8399. <div class="whiteBIcon">
  8400. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8401. <div style="margin: 5px 0">文档</div>
  8402. </div>
  8403. <div class="check">
  8404. <div
  8405. v-if="checktoolArray.indexOf(52) == -1"
  8406. class="noChoose"
  8407. ></div>
  8408. <div v-else class="isChoose"></div>
  8409. </div>
  8410. </div>
  8411. <div
  8412. class="tool"
  8413. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8414. @click="addTools2(3)"
  8415. >
  8416. <div class="whiteBIcon">
  8417. <img
  8418. src="../../assets/icon/secondToolList/mindMapping.png"
  8419. alt
  8420. />
  8421. <div style="margin: 5px 0">思维导图</div>
  8422. </div>
  8423. <div class="check">
  8424. <div
  8425. v-if="checktoolArray.indexOf(3) == -1"
  8426. class="noChoose"
  8427. ></div>
  8428. <div v-else class="isChoose"></div>
  8429. </div>
  8430. </div>
  8431. <div
  8432. class="tool"
  8433. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8434. @click="addTools2(48)"
  8435. >
  8436. <div class="whiteBIcon">
  8437. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8438. <div style="margin: 5px 0">表格</div>
  8439. </div>
  8440. <div class="check">
  8441. <div
  8442. v-if="checktoolArray.indexOf(48) == -1"
  8443. class="noChoose"
  8444. ></div>
  8445. <div v-else class="isChoose"></div>
  8446. </div>
  8447. </div>
  8448. </div>
  8449. <div class="toolSort" v-if="toolType == 6">
  8450. <div v-show="tooC == 49">
  8451. <img
  8452. @click="addTools(tooC, toolIndex, taskCount)"
  8453. src="../../assets/icon/fourthToolList/group.png"
  8454. alt
  8455. />
  8456. <div style="margin: 5px 0">学生分组</div>
  8457. </div>
  8458. </div>
  8459. <div class="toolSort" v-if="toolType == 2">
  8460. <div
  8461. class="tool"
  8462. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8463. @click="addTools2(16)"
  8464. >
  8465. <div class="whiteBIcon">
  8466. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8467. <div style="margin: 5px 0">作业提交</div>
  8468. </div>
  8469. <div class="check">
  8470. <div
  8471. v-if="checktoolArray.indexOf(16) == -1"
  8472. class="noChoose"
  8473. ></div>
  8474. <div v-else class="isChoose"></div>
  8475. </div>
  8476. </div>
  8477. <div
  8478. class="tool"
  8479. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8480. @click="addTools2(50)"
  8481. >
  8482. <div class="whiteBIcon">
  8483. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8484. <div style="margin: 5px 0">批量上传</div>
  8485. </div>
  8486. <div class="check">
  8487. <div
  8488. v-if="checktoolArray.indexOf(50) == -1"
  8489. class="noChoose"
  8490. ></div>
  8491. <div v-else class="isChoose"></div>
  8492. </div>
  8493. </div>
  8494. </div>
  8495. <div class="toolSort" v-if="toolType == 3">
  8496. <div
  8497. class="tool"
  8498. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8499. @click="addTools2(18)"
  8500. >
  8501. <div class="whiteBIcon">
  8502. <img
  8503. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8504. alt
  8505. />
  8506. <div style="margin: 5px 0">训练平台</div>
  8507. </div>
  8508. <div class="check">
  8509. <div
  8510. v-if="checktoolArray.indexOf(18) == -1"
  8511. class="noChoose"
  8512. ></div>
  8513. <div v-else class="isChoose"></div>
  8514. </div>
  8515. </div>
  8516. <div
  8517. class="tool"
  8518. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8519. @click="addTools2(21)"
  8520. >
  8521. <div class="whiteBIcon">
  8522. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8523. <div style="margin: 5px 0">AIoT Blockly</div>
  8524. </div>
  8525. <div class="check">
  8526. <div
  8527. v-if="checktoolArray.indexOf(21) == -1"
  8528. class="noChoose"
  8529. ></div>
  8530. <div v-else class="isChoose"></div>
  8531. </div>
  8532. </div>
  8533. <div
  8534. class="tool"
  8535. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8536. @click="addTools2(23)"
  8537. >
  8538. <div class="whiteBIcon">
  8539. <img
  8540. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8541. alt
  8542. />
  8543. <div style="margin: 5px 0">AI Python</div>
  8544. </div>
  8545. <div class="check">
  8546. <div
  8547. v-if="checktoolArray.indexOf(23) == -1"
  8548. class="noChoose"
  8549. ></div>
  8550. <div v-else class="isChoose"></div>
  8551. </div>
  8552. </div>
  8553. <div
  8554. class="tool"
  8555. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8556. @click="addTools2(24)"
  8557. >
  8558. <div class="whiteBIcon">
  8559. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8560. <div style="margin: 5px 0">AI Blockly</div>
  8561. </div>
  8562. <div class="check">
  8563. <div
  8564. v-if="checktoolArray.indexOf(24) == -1"
  8565. class="noChoose"
  8566. ></div>
  8567. <div v-else class="isChoose"></div>
  8568. </div>
  8569. </div>
  8570. <div
  8571. class="tool"
  8572. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8573. @click="addTools2(32)"
  8574. >
  8575. <div class="whiteBIcon">
  8576. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8577. <div style="margin: 5px 0">源码编辑</div>
  8578. </div>
  8579. <div class="check">
  8580. <div
  8581. v-if="checktoolArray.indexOf(32) == -1"
  8582. class="noChoose"
  8583. ></div>
  8584. <div v-else class="isChoose"></div>
  8585. </div>
  8586. </div>
  8587. <div
  8588. class="tool"
  8589. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8590. @click="addTools2(57)"
  8591. >
  8592. <div class="whiteBIcon">
  8593. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8594. <div style="margin: 5px 0">CocoPi</div>
  8595. </div>
  8596. <div class="check">
  8597. <div
  8598. v-if="checktoolArray.indexOf(57) == -1"
  8599. class="noChoose"
  8600. ></div>
  8601. <div v-else class="isChoose"></div>
  8602. </div>
  8603. </div>
  8604. <div
  8605. class="tool"
  8606. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8607. @click="addTools2(63)"
  8608. >
  8609. <div class="whiteBIcon">
  8610. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8611. <div style="margin: 5px 0">海龟编程</div>
  8612. </div>
  8613. <div class="check">
  8614. <div
  8615. v-if="checktoolArray.indexOf(63) == -1"
  8616. class="noChoose"
  8617. ></div>
  8618. <div v-else class="isChoose"></div>
  8619. </div>
  8620. </div>
  8621. <div
  8622. class="tool"
  8623. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8624. @click="addTools2(71)"
  8625. >
  8626. <div class="whiteBIcon">
  8627. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  8628. <div style="margin: 5px 0">AI智能体</div>
  8629. </div>
  8630. <div class="check">
  8631. <div
  8632. v-if="checktoolArray.indexOf(71) == -1"
  8633. class="noChoose"
  8634. ></div>
  8635. <div v-else class="isChoose"></div>
  8636. </div>
  8637. </div>
  8638. </div>
  8639. <div class="toolSort" v-if="toolType == 7">
  8640. <div
  8641. class="tool"
  8642. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8643. @click="addTools2(40)"
  8644. >
  8645. <div class="whiteBIcon">
  8646. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8647. <div style="margin: 5px 0">个人评价</div>
  8648. </div>
  8649. <div class="check">
  8650. <div
  8651. v-if="checktoolArray.indexOf(40) == -1"
  8652. class="noChoose"
  8653. ></div>
  8654. <div v-else class="isChoose"></div>
  8655. </div>
  8656. </div>
  8657. </div>
  8658. <div class="toolSort" v-if="toolType == 5">
  8659. <div
  8660. class="tool"
  8661. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8662. @click="addTools2(28)"
  8663. >
  8664. <div class="whiteBIcon">
  8665. <img
  8666. src="../../assets/icon/secondToolList/translation.png"
  8667. alt
  8668. />
  8669. <div style="margin: 5px 0">翻译</div>
  8670. </div>
  8671. <div class="check">
  8672. <div
  8673. v-if="checktoolArray.indexOf(28) == -1"
  8674. class="noChoose"
  8675. ></div>
  8676. <div v-else class="isChoose"></div>
  8677. </div>
  8678. </div>
  8679. <div
  8680. class="tool"
  8681. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8682. @click="addTools2(31)"
  8683. >
  8684. <div class="whiteBIcon">
  8685. <img
  8686. src="../../assets/icon/secondToolList/networkPanel.png"
  8687. alt
  8688. />
  8689. <div style="margin: 5px 0">数字画板</div>
  8690. </div>
  8691. <div class="check">
  8692. <div
  8693. v-if="checktoolArray.indexOf(31) == -1"
  8694. class="noChoose"
  8695. ></div>
  8696. <div v-else class="isChoose"></div>
  8697. </div>
  8698. </div>
  8699. <div
  8700. class="tool"
  8701. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8702. @click="addTools2(39)"
  8703. >
  8704. <div class="whiteBIcon">
  8705. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8706. <div style="margin: 5px 0">GeoGebra</div>
  8707. </div>
  8708. <div class="check">
  8709. <div
  8710. v-if="checktoolArray.indexOf(39) == -1"
  8711. class="noChoose"
  8712. ></div>
  8713. <div v-else class="isChoose"></div>
  8714. </div>
  8715. </div>
  8716. <div
  8717. class="tool"
  8718. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8719. @click="addTools2(66)"
  8720. >
  8721. <div class="whiteBIcon">
  8722. <img
  8723. src="../../assets/icon/secondToolList/formulaEdi.png"
  8724. alt
  8725. />
  8726. <div style="margin: 5px 0">公式编辑</div>
  8727. </div>
  8728. <div class="check">
  8729. <div
  8730. v-if="checktoolArray.indexOf(66) == -1"
  8731. class="noChoose"
  8732. ></div>
  8733. <div v-else class="isChoose"></div>
  8734. </div>
  8735. </div>
  8736. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8737. <div class="whiteBIcon" @click="addTools2(67)">
  8738. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8739. <div style="margin: 5px 0">分子结构</div>
  8740. </div>
  8741. <div class="check" @click="addTools2(67)">
  8742. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8743. <div v-else class="isChoose"></div>
  8744. </div>
  8745. </div> -->
  8746. <div
  8747. class="tool"
  8748. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8749. @click="addTools2(68)"
  8750. >
  8751. <div class="whiteBIcon">
  8752. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8753. <div style="margin: 5px 0">时间轴</div>
  8754. </div>
  8755. <div class="check">
  8756. <div
  8757. v-if="checktoolArray.indexOf(68) == -1"
  8758. class="noChoose"
  8759. ></div>
  8760. <div v-else class="isChoose"></div>
  8761. </div>
  8762. </div>
  8763. <!-- <div
  8764. class="tool"
  8765. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8766. @click="addTools2(69)"
  8767. >
  8768. <div class="whiteBIcon">
  8769. <img src="../../assets/icon/secondToolList/english.png" alt />
  8770. <div style="margin: 5px 0">英语写作</div>
  8771. </div>
  8772. <div class="check">
  8773. <div
  8774. v-if="checktoolArray.indexOf(69) == -1"
  8775. class="noChoose"
  8776. ></div>
  8777. <div v-else class="isChoose"></div>
  8778. </div>
  8779. </div> -->
  8780. </div>
  8781. <div class="toolSort" v-if="toolType == 4">
  8782. <div
  8783. class="tool"
  8784. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8785. @click="addTools2(26)"
  8786. >
  8787. <div class="whiteBIcon">
  8788. <img
  8789. src="../../assets/icon/thirdToolList/courseDesign.png"
  8790. alt
  8791. />
  8792. <div style="margin: 5px 0">课程设计</div>
  8793. </div>
  8794. <div class="check">
  8795. <div
  8796. v-if="checktoolArray.indexOf(26) == -1"
  8797. class="noChoose"
  8798. ></div>
  8799. <div v-else class="isChoose"></div>
  8800. </div>
  8801. </div>
  8802. <div
  8803. class="tool"
  8804. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8805. @click="addTools2(25)"
  8806. >
  8807. <div class="whiteBIcon">
  8808. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8809. <div style="margin: 5px 0">目标管理</div>
  8810. </div>
  8811. <div class="check">
  8812. <div
  8813. v-if="checktoolArray.indexOf(25) == -1"
  8814. class="noChoose"
  8815. ></div>
  8816. <div v-else class="isChoose"></div>
  8817. </div>
  8818. </div>
  8819. </div>
  8820. </div>
  8821. </div>
  8822. <span
  8823. slot="footer"
  8824. class="dialog-footer"
  8825. style="display: block; text-align: center; padding: 0 0 10px 0"
  8826. >
  8827. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8828. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8829. </span>
  8830. </div>
  8831. <div
  8832. v-if="replyDialogVisible == true"
  8833. class="addDialogCss"
  8834. v-el-drag-dialog
  8835. >
  8836. <div class="pzTop">
  8837. <div class="teacherPz">
  8838. <div class="teacherPzImg">
  8839. <img src="../../assets/icon/teacherPz.png" alt="" />
  8840. </div>
  8841. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8842. </div>
  8843. <div @click="replyDialogVisible = false">
  8844. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8845. </div>
  8846. </div>
  8847. <div class="addPzBox">
  8848. <!-- <div class="addPzCheck">
  8849. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8850. >文本</span
  8851. >
  8852. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8853. >音频</span
  8854. >
  8855. </div> -->
  8856. <div style="height: calc(100% - 50px)">
  8857. <editor-bar
  8858. class="binfo_input pzConText"
  8859. style="width: 100% !important; margin: 0 auto"
  8860. placeholder="请输入回复描述"
  8861. v-model="reply"
  8862. @change="change"
  8863. ></editor-bar>
  8864. </div>
  8865. <div class="addTextCss" @click="addHf">确定</div>
  8866. </div>
  8867. </div>
  8868. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8869. <div class="pzTop">
  8870. <div class="teacherPz">
  8871. <div class="teacherPzImg">
  8872. <img src="../../assets/icon/teacherPz.png" alt="" />
  8873. </div>
  8874. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8875. </div>
  8876. <div @click="addPzDialog = false">
  8877. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8878. </div>
  8879. </div>
  8880. <div class="addPzBox">
  8881. <div class="addPzCheck">
  8882. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8883. >文本</span
  8884. >
  8885. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8886. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8887. >音频</span
  8888. >
  8889. </div>
  8890. <div style="height: calc(100% - 95px)">
  8891. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8892. v-if="pzType == 1"></textarea> -->
  8893. <editor-bar
  8894. class="binfo_input pzConText"
  8895. style="width: 100% !important"
  8896. placeholder="请输入任务描述"
  8897. v-model="pzConText"
  8898. @change="change"
  8899. v-if="pzType == 1"
  8900. ></editor-bar>
  8901. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8902. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8903. <div @click="addImg($event)">
  8904. <el-button type="primary">上传图片</el-button>
  8905. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8906. @change="beforeUpload1($event, 4)" />
  8907. </div>
  8908. </div> -->
  8909. </div>
  8910. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8911. 确定
  8912. </div>
  8913. </div>
  8914. </div>
  8915. <div v-if="proVisible" class="mask">
  8916. <div class="progressBox">
  8917. <!-- <div id="closePro" class="closeCss">
  8918. <img src="../../assets/icon/close.png" alt />
  8919. </div> -->
  8920. <div class="lbox">
  8921. <img src="../../assets/loading.gif" />上传中,请稍后
  8922. </div>
  8923. <div style="margin-bottom: 10px">
  8924. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8925. </div>
  8926. <el-progress
  8927. :text-inside="true"
  8928. :stroke-width="20"
  8929. :percentage="progress"
  8930. style="width: 80%"
  8931. ></el-progress>
  8932. </div>
  8933. </div>
  8934. <div v-if="proVisible2" class="mask">
  8935. <div class="progressBox">
  8936. <div class="lbox">
  8937. <img src="../../assets/loading.gif" />上传中,请稍后
  8938. </div>
  8939. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8940. </div>
  8941. </div>
  8942. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8943. <img width="100%" :src="dialogImageUrl" alt />
  8944. </el-dialog>
  8945. <el-dialog
  8946. :title="noteName != '' ? noteName : '查看问卷'"
  8947. :visible.sync="dialogVisible5"
  8948. :append-to-body="true"
  8949. width="1000px"
  8950. :before-close="handleClose"
  8951. class="dialog_diy dialog_diy3"
  8952. >
  8953. <div>
  8954. <div
  8955. class="a_add_title"
  8956. style="
  8957. display: flex;
  8958. flex-direction: row;
  8959. align-items: center;
  8960. justify-content: center;
  8961. "
  8962. >
  8963. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8964. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8965. </div>
  8966. <div class="a_addBox">
  8967. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8968. 题目内容
  8969. </div>
  8970. <div
  8971. class="a_add_box"
  8972. v-for="(item1, index1) in askJson.askCount"
  8973. :key="index1"
  8974. >
  8975. <div class="a_add_head">
  8976. <div style="display: flex">
  8977. <span class="askIndex"> {{ index1 + 1 }}</span>
  8978. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8979. </div>
  8980. <img
  8981. v-if="askJson.askJson[index1].img"
  8982. :src="askJson.askJson[index1].img"
  8983. style="height: 300px; margin-top: 10px; max-width: 100%"
  8984. />
  8985. </div>
  8986. <div class="a_add_body">
  8987. <div class="a_add_input">
  8988. <el-radio-group
  8989. v-model="radio[index1]"
  8990. v-if="
  8991. askJson.askJson[index1].type == '1' ||
  8992. !askJson.askJson[index1].type
  8993. "
  8994. >
  8995. <el-radio
  8996. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8997. .checkList"
  8998. :key="checkIndex"
  8999. :label="checkIndex"
  9000. :disabled="isAnswer"
  9001. class="redioStyle"
  9002. ><span v-html="item2"></span
  9003. ></el-radio>
  9004. </el-radio-group>
  9005. <el-checkbox-group
  9006. v-model="radio[index1]"
  9007. v-if="askJson.askJson[index1].type == '2'"
  9008. >
  9009. <el-checkbox
  9010. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9011. .checkList"
  9012. :key="checkIndex1"
  9013. :label="checkIndex1"
  9014. :disabled="isAnswer"
  9015. class="redioStyle"
  9016. ><span v-html="item2"></span>
  9017. </el-checkbox>
  9018. </el-checkbox-group>
  9019. </div>
  9020. </div>
  9021. </div>
  9022. </div>
  9023. </div>
  9024. <span slot="footer" class="dialog-footer">
  9025. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9026. >取 消</el-button
  9027. >
  9028. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9029. >确 定</el-button
  9030. >
  9031. </span>
  9032. </el-dialog>
  9033. <el-dialog
  9034. :title="noteName != '' ? noteName : '查看问卷'"
  9035. :visible.sync="dialogVisible5Teacher"
  9036. :append-to-body="true"
  9037. width="1000px"
  9038. :before-close="handleClose"
  9039. class="dialog_diy dialog_diy3"
  9040. >
  9041. <div>
  9042. <div class="w_name">
  9043. 学生姓名:<span>{{ sStudent.student }}</span>
  9044. </div>
  9045. <div
  9046. class="a_add_title"
  9047. style="
  9048. display: flex;
  9049. flex-direction: row;
  9050. align-items: center;
  9051. justify-content: center;
  9052. "
  9053. >
  9054. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9055. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9056. </div>
  9057. <div class="a_addBox">
  9058. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9059. 题目内容
  9060. </div>
  9061. <div
  9062. class="a_add_box"
  9063. v-for="(item1, index1) in askJson.askCount"
  9064. :key="index1"
  9065. >
  9066. <div class="a_add_head">
  9067. <div style="display: flex">
  9068. <span class="askIndex">{{ index1 + 1 }}</span>
  9069. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9070. </div>
  9071. <img
  9072. v-if="askJson.askJson[index1].img"
  9073. :src="askJson.askJson[index1].img"
  9074. style="height: 300px; margin-top: 10px; max-width: 100%"
  9075. />
  9076. </div>
  9077. <div class="a_add_body">
  9078. <div class="a_add_input">
  9079. <el-radio-group
  9080. v-model="radio[index1]"
  9081. v-if="
  9082. askJson.askJson[index1].type == '1' ||
  9083. !askJson.askJson[index1].type
  9084. "
  9085. >
  9086. <el-radio
  9087. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9088. .checkList"
  9089. :key="checkIndex"
  9090. :label="checkIndex"
  9091. :disabled="isAnswer"
  9092. class="redioStyle"
  9093. ><span v-html="item2"></span
  9094. ></el-radio>
  9095. </el-radio-group>
  9096. <el-checkbox-group
  9097. v-model="radio[index1]"
  9098. v-if="askJson.askJson[index1].type == '2'"
  9099. >
  9100. <el-checkbox
  9101. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9102. .checkList"
  9103. :key="checkIndex1"
  9104. :label="checkIndex1"
  9105. :disabled="isAnswer"
  9106. class="redioStyle"
  9107. ><span v-html="item2"></span>
  9108. </el-checkbox>
  9109. </el-checkbox-group>
  9110. </div>
  9111. </div>
  9112. </div>
  9113. </div>
  9114. </div>
  9115. <span slot="footer" class="dialog-footer">
  9116. <el-button
  9117. @click="dialogVisible5Teacher = false"
  9118. v-show="noteName == ''"
  9119. >取 消</el-button
  9120. >
  9121. <el-button
  9122. type="primary"
  9123. @click="addStudentAskTeacher"
  9124. v-show="noteName == ''"
  9125. >确 定</el-button
  9126. >
  9127. </span>
  9128. </el-dialog>
  9129. <el-dialog
  9130. :title="noteName != '' ? noteName : '查看选择题'"
  9131. :visible.sync="dialogVisibleChoice"
  9132. :append-to-body="true"
  9133. width="1000px"
  9134. :before-close="handleClose"
  9135. class="dialog_diy dialog_diy3"
  9136. >
  9137. <div>
  9138. <!-- <div class="a_add_title" style="
  9139. display: flex;
  9140. flex-direction: row;
  9141. align-items: center;
  9142. justify-content: center;
  9143. ">
  9144. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9145. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9146. </div> -->
  9147. <div class="a_addBox">
  9148. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9149. 题目内容
  9150. </div>
  9151. <div
  9152. class="a_add_box"
  9153. v-for="(item1, index1) in testJson.testCount"
  9154. :key="index1"
  9155. >
  9156. <div class="a_add_head">
  9157. <div style="display: flex">
  9158. <span class="askIndex">{{ index1 + 1 }}</span>
  9159. <div
  9160. v-if="testJson.testJson[index1].type == '1'"
  9161. style="margin-right: 5px; min-width: 70px"
  9162. >
  9163. (单选题)
  9164. </div>
  9165. <div
  9166. v-if="testJson.testJson[index1].type == '2'"
  9167. style="margin-right: 5px; min-width: 70px"
  9168. >
  9169. (多选题)
  9170. </div>
  9171. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9172. </div>
  9173. <img
  9174. v-if="testJson.testJson[index1].img"
  9175. :src="testJson.testJson[index1].img"
  9176. style="height: 300px; margin-top: 10px; max-width: 100%"
  9177. />
  9178. </div>
  9179. <div
  9180. class="timuImgBox"
  9181. v-if="
  9182. testJson.testJson[index1].timuList &&
  9183. testJson.testJson[index1].timuList.length
  9184. "
  9185. >
  9186. <div
  9187. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9188. :key="tIndex"
  9189. class="timuImg"
  9190. @click.stop="previewImg(timg.src)"
  9191. >
  9192. <img :src="timg.src" alt="" />
  9193. </div>
  9194. </div>
  9195. <div class="a_add_body">
  9196. <div class="a_add_input">
  9197. <el-radio-group
  9198. v-model="radio[index1]"
  9199. v-if="testJson.testJson[index1].type == '1'"
  9200. >
  9201. <div class="radioBox">
  9202. <el-radio
  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-radio>
  9220. </div>
  9221. </el-radio-group>
  9222. <el-checkbox-group
  9223. v-model="radio[index1]"
  9224. v-if="testJson.testJson[index1].type == '2'"
  9225. >
  9226. <div class="radioBox">
  9227. <el-checkbox
  9228. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9229. .checkList"
  9230. :key="checkIndex"
  9231. :label="checkIndex"
  9232. :disabled="isAnswer"
  9233. class="redioStyle"
  9234. >
  9235. <div
  9236. style="margin-right: 10px"
  9237. v-if="item2 && item2.imgType && item2.imgType == 1"
  9238. >
  9239. <div class="inImg" @click.stop="previewImg(item2.src)">
  9240. <img :src="item2.src" alt="" />
  9241. </div>
  9242. </div>
  9243. <span v-else v-html="item2"></span>
  9244. </el-checkbox>
  9245. </div>
  9246. </el-checkbox-group>
  9247. </div>
  9248. </div>
  9249. </div>
  9250. </div>
  9251. </div>
  9252. <span slot="footer" class="dialog-footer">
  9253. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9254. >取 消</el-button
  9255. >
  9256. <el-button
  9257. type="primary"
  9258. @click="addStudentTest"
  9259. v-show="noteName == ''"
  9260. >确 定</el-button
  9261. >
  9262. </span>
  9263. </el-dialog>
  9264. <el-dialog
  9265. :title="noteName != '' ? noteName : '查看选择题'"
  9266. :visible.sync="dialogVisibleChoiceTeacher"
  9267. :append-to-body="true"
  9268. width="1000px"
  9269. :before-close="handleClose"
  9270. class="dialog_diy dialog_diy3"
  9271. >
  9272. <div>
  9273. <div class="w_name">
  9274. 学生姓名:<span>{{ sStudent.student }}</span>
  9275. </div>
  9276. <div class="a_addBox">
  9277. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9278. 题目内容
  9279. </div>
  9280. <div
  9281. class="a_add_box"
  9282. v-for="(item1, index1) in testJson.testCount"
  9283. :key="index1"
  9284. >
  9285. <div class="a_add_head">
  9286. <div style="display: flex">
  9287. <span class="askIndex">{{ index1 + 1 }}</span>
  9288. <div
  9289. v-if="testJson.testJson[index1].type == '1'"
  9290. style="margin-right: 5px; min-width: 70px"
  9291. >
  9292. (单选题)
  9293. </div>
  9294. <div
  9295. v-if="testJson.testJson[index1].type == '2'"
  9296. style="margin-right: 5px; min-width: 70px"
  9297. >
  9298. (多选题)
  9299. </div>
  9300. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9301. </div>
  9302. <img
  9303. v-if="testJson.testJson[index1].img"
  9304. :src="testJson.testJson[index1].img"
  9305. style="height: 300px; margin-top: 10px; max-width: 100%"
  9306. />
  9307. </div>
  9308. <div
  9309. class="timuImgBox"
  9310. v-if="
  9311. testJson.testJson[index1].timuList &&
  9312. testJson.testJson[index1].timuList.length
  9313. "
  9314. >
  9315. <div
  9316. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9317. :key="tIndex"
  9318. class="timuImg"
  9319. @click.stop="previewImg(timg.src)"
  9320. >
  9321. <img :src="timg.src" alt="" />
  9322. </div>
  9323. </div>
  9324. <div class="a_add_body">
  9325. <div class="a_add_input">
  9326. <el-radio-group
  9327. v-model="radio[index1]"
  9328. v-if="testJson.testJson[index1].type == '1'"
  9329. >
  9330. <div class="radioBox">
  9331. <el-radio
  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-radio>
  9349. </div>
  9350. </el-radio-group>
  9351. <el-checkbox-group
  9352. v-model="radio[index1]"
  9353. v-if="testJson.testJson[index1].type == '2'"
  9354. >
  9355. <div class="radioBox">
  9356. <el-checkbox
  9357. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9358. .checkList"
  9359. :key="checkIndex"
  9360. :label="checkIndex"
  9361. :disabled="isAnswer"
  9362. class="redioStyle"
  9363. >
  9364. <div
  9365. style="margin-right: 10px"
  9366. v-if="item2 && item2.imgType && item2.imgType == 1"
  9367. >
  9368. <div class="inImg" @click.stop="previewImg(item2.src)">
  9369. <img :src="item2.src" alt="" />
  9370. </div>
  9371. </div>
  9372. <span v-else v-html="item2"></span>
  9373. </el-checkbox>
  9374. </div>
  9375. </el-checkbox-group>
  9376. </div>
  9377. </div>
  9378. </div>
  9379. </div>
  9380. </div>
  9381. <span slot="footer" class="dialog-footer">
  9382. <el-button
  9383. @click="dialogVisibleChoiceTeacher = false"
  9384. v-show="noteName == ''"
  9385. >取 消</el-button
  9386. >
  9387. <el-button
  9388. type="primary"
  9389. @click="addStudentTestTeacher"
  9390. v-show="noteName == ''"
  9391. >确 定</el-button
  9392. >
  9393. </span>
  9394. </el-dialog>
  9395. <el-dialog
  9396. title="查看富文本"
  9397. :visible.sync="dialogVisible1"
  9398. :append-to-body="true"
  9399. width="500px"
  9400. :before-close="handleClose"
  9401. class="dialog_diy textCss"
  9402. >
  9403. <el-form style="font-size: 20px">
  9404. <el-form-item label="文本标题" class="textTitle">
  9405. <div style="font-size: 20px">{{ text.name }}</div>
  9406. </el-form-item>
  9407. <div>富文本内容</div>
  9408. <div
  9409. v-html="text.url"
  9410. style="font-size: 18px; padding: 40px 0 0 0"
  9411. ></div>
  9412. </el-form>
  9413. <span slot="footer" class="dialog-footer">
  9414. <el-button type="primary" @click="dialogVisible1 = false"
  9415. >确定</el-button
  9416. >
  9417. </span>
  9418. </el-dialog>
  9419. <el-dialog
  9420. title="文件预览"
  9421. :visible.sync="dialogVisible3"
  9422. width="50%"
  9423. :before-close="handleClose"
  9424. class="dialog_diy"
  9425. :class="{ fullStyle: full }"
  9426. >
  9427. <div slot="title" class="header-title">
  9428. <div style="color: #fff">文件预览</div>
  9429. <div style="position: absolute; top: 19px; right: 50px">
  9430. <img
  9431. src="../../assets/full.png"
  9432. style="height: 16px; cursor: pointer"
  9433. alt=""
  9434. @click="fullTools"
  9435. />
  9436. </div>
  9437. </div>
  9438. <pdf
  9439. v-if="showPDF"
  9440. :pdfUrl="pptImgUrl"
  9441. style="width: 100%; height: 520px; overflow: auto"
  9442. :class="{ fullStyle: full }"
  9443. ></pdf>
  9444. <iframe
  9445. v-else
  9446. :src="pptImgUrl"
  9447. frameborder="0"
  9448. width="100%"
  9449. height="600"
  9450. :class="{ fullStyle: full }"
  9451. ></iframe>
  9452. </el-dialog>
  9453. <el-dialog
  9454. title="文件预览"
  9455. :visible.sync="dialogVisible6"
  9456. width="50%"
  9457. :before-close="handleClose"
  9458. class="dialog_diy"
  9459. >
  9460. <iframe
  9461. :src="pptImgUrl1"
  9462. frameborder="0"
  9463. width="100%"
  9464. height="600"
  9465. ></iframe>
  9466. </el-dialog>
  9467. <el-dialog
  9468. title="提示"
  9469. :visible.sync="dialogVisible4"
  9470. :append-to-body="true"
  9471. width="800px"
  9472. :before-close="handleClose"
  9473. class="dialog_diy notice"
  9474. >
  9475. <div>此功能暂未开放!</div>
  9476. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9477. </el-dialog>
  9478. <el-dialog
  9479. title="问答"
  9480. :visible.sync="answerDialogVisible"
  9481. :append-to-body="true"
  9482. width="800px"
  9483. :before-close="handleClose"
  9484. class="dialog_diy"
  9485. >
  9486. <div>
  9487. <div
  9488. style="
  9489. display: flex;
  9490. flex-wrap: nowrap;
  9491. flex-direction: column;
  9492. position: relative;
  9493. "
  9494. >
  9495. <div class="queTop" style="padding: 20px 0 20px 0">
  9496. <div class="question">
  9497. <img src="../../assets/icon/question.png" alt />
  9498. </div>
  9499. <div class="queTitle">
  9500. <div style="width: 90px; min-width: 90px">提问:</div>
  9501. <div>{{ answerQ }}</div>
  9502. </div>
  9503. </div>
  9504. <div class="ediBottom">
  9505. <textarea
  9506. rows="6"
  9507. class="binfo_input"
  9508. cols
  9509. style="width: 95%; height: 120px"
  9510. v-model="questionAnswer"
  9511. ></textarea>
  9512. </div>
  9513. </div>
  9514. </div>
  9515. <div slot="footer">
  9516. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9517. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9518. </div>
  9519. </el-dialog>
  9520. <el-dialog
  9521. title="问答"
  9522. :visible.sync="answerDialogVisibleTeacher"
  9523. :append-to-body="true"
  9524. width="800px"
  9525. :before-close="handleClose"
  9526. class="dialog_diy"
  9527. >
  9528. <div>
  9529. <div class="w_name">
  9530. 学生姓名:<span>{{ sStudent.student }}</span>
  9531. </div>
  9532. <div
  9533. style="
  9534. display: flex;
  9535. flex-wrap: nowrap;
  9536. flex-direction: column;
  9537. position: relative;
  9538. "
  9539. >
  9540. <div class="queTop" style="padding: 20px 0 20px 0">
  9541. <div class="question">
  9542. <img src="../../assets/icon/question.png" alt />
  9543. </div>
  9544. <div class="queTitle">
  9545. <div style="width: 90px; min-width: 90px">提问:</div>
  9546. <div>{{ answerQ }}</div>
  9547. </div>
  9548. </div>
  9549. <div class="ediBottom">
  9550. <textarea
  9551. rows="6"
  9552. class="binfo_input"
  9553. cols
  9554. style="width: 95%; height: 120px"
  9555. v-model="questionAnswer"
  9556. ></textarea>
  9557. </div>
  9558. </div>
  9559. </div>
  9560. <div slot="footer">
  9561. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9562. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9563. </div>
  9564. </el-dialog>
  9565. <el-dialog
  9566. title="倒计时"
  9567. :visible.sync="timeDialogVisible"
  9568. :append-to-body="true"
  9569. width="800px"
  9570. :before-close="handleClose"
  9571. class="dialog_diy"
  9572. >
  9573. <div>
  9574. <div style="margin-bottom: 20px; color: #999">
  9575. 提示:点击“+”或“-”修改倒计时时长。
  9576. </div>
  9577. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9578. </div>
  9579. <div slot="footer">
  9580. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9581. </div>
  9582. </el-dialog>
  9583. <el-dialog
  9584. title="权限设置"
  9585. :visible.sync="juriVisible"
  9586. :append-to-body="true"
  9587. width="400px"
  9588. :before-close="handleClose"
  9589. class="dialog_diy"
  9590. >
  9591. <div>
  9592. <div class="open_box">
  9593. <div class="switch_box">
  9594. <span>允许学生查看所有作业</span>
  9595. <el-switch
  9596. v-model="sIsOpen"
  9597. active-text=""
  9598. class="switchCss"
  9599. @change="updateSLook"
  9600. ></el-switch>
  9601. </div>
  9602. <div
  9603. class="switch_box"
  9604. v-if="
  9605. courseDetail.userid == userid ||
  9606. (courseDetail.course_teacher &&
  9607. courseDetail.course_teacher.indexOf(userid) != -1)
  9608. "
  9609. >
  9610. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9611. <span>禁止学生查看所有阶段</span>
  9612. <el-switch
  9613. v-model="IsLookOpen"
  9614. active-text=""
  9615. class="switchCss"
  9616. @change="updateLookOpen"
  9617. ></el-switch>
  9618. </div>
  9619. <div class="switch_box" v-if="courseDetail.userid == userid">
  9620. <span>开启跟随模式</span>
  9621. <el-switch
  9622. v-model="IsFollow"
  9623. active-text=""
  9624. class="switchCss"
  9625. @change="updateFollow"
  9626. ></el-switch>
  9627. </div>
  9628. </div>
  9629. </div>
  9630. <div slot="footer">
  9631. <el-button
  9632. style="background: #409efe; color: #fff"
  9633. @click="juriVisible = false"
  9634. >关 闭</el-button
  9635. >
  9636. </div>
  9637. </el-dialog>
  9638. <el-dialog
  9639. title="查看视频"
  9640. :visible.sync="videoVisible"
  9641. :append-to-body="true"
  9642. width="1000px"
  9643. :before-close="handleClose"
  9644. class="dialog_diy1"
  9645. >
  9646. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9647. <video-player
  9648. class="video-player vjs-custom-skin"
  9649. :playsinline="true"
  9650. :options="videoDetail"
  9651. @play="onPlayerPlay($event)"
  9652. style="width: 100%; height: 100%"
  9653. ></video-player>
  9654. </div>
  9655. <div slot="footer">
  9656. <el-button
  9657. style="background: #409efe; color: #fff"
  9658. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9659. >
  9660. 关 闭</el-button
  9661. >
  9662. </div>
  9663. </el-dialog>
  9664. <el-dialog
  9665. title="查看详情"
  9666. :visible.sync="commentDialogVisible"
  9667. :append-to-body="true"
  9668. width="800px"
  9669. :before-close="handleClose"
  9670. class="dialog_diy"
  9671. >
  9672. <div class="commentTop">
  9673. <div class="studentDetail">
  9674. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9675. <div class="nameAndTime">
  9676. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9677. <div>{{ commentDetail.time }}</div>
  9678. </div>
  9679. <div
  9680. class="returnBtn"
  9681. style="margin-left: auto; width: 80px"
  9682. v-if="
  9683. commentDetail.works &&
  9684. commentDetail.type == 0 &&
  9685. (tType == 1 || tType == 4)
  9686. "
  9687. @click="
  9688. showPicturePaint(
  9689. commentDetail.img ? commentDetail.img : commentDetail.works
  9690. )
  9691. "
  9692. >
  9693. 教师批注
  9694. </div>
  9695. </div>
  9696. <div
  9697. class="worksAnswer"
  9698. v-if="commentDetail.works && commentDetail.type == 2"
  9699. >
  9700. {{ JSON.parse(commentDetail.works)[0].answer }}
  9701. </div>
  9702. <div
  9703. class="worksAnswer"
  9704. v-if="commentDetail.works && commentDetail.type == 1"
  9705. >
  9706. <img
  9707. src="../../assets/teacherWork.png"
  9708. v-if="commentDetail.ateacher"
  9709. class="w_teachert"
  9710. />
  9711. <pdf
  9712. v-if="showPDF"
  9713. :pdfUrl="pptImgUrl"
  9714. style="width: 100%; height: 520px; overflow: auto"
  9715. :class="{ fullStyle: full }"
  9716. ></pdf>
  9717. <iframe
  9718. v-else
  9719. :src="pptImgUrl"
  9720. frameborder="0"
  9721. width="100%"
  9722. height="600"
  9723. :class="{ fullStyle: full }"
  9724. ></iframe>
  9725. </div>
  9726. <div
  9727. class="worksAnswer"
  9728. v-if="commentDetail.works && commentDetail.type == 0"
  9729. >
  9730. <img
  9731. src="../../assets/teacherWork.png"
  9732. v-if="commentDetail.ateacher"
  9733. class="w_teachert"
  9734. style="right: 105px"
  9735. />
  9736. <img
  9737. :src="commentDetail.works"
  9738. alt=""
  9739. @click="previewImg(commentDetail.works)"
  9740. />
  9741. </div>
  9742. <div
  9743. class="worksAnswer"
  9744. v-if="commentDetail.works && commentDetail.type == 3"
  9745. >
  9746. <img
  9747. src="../../assets/teacherWork.png"
  9748. v-if="commentDetail.ateacher"
  9749. class="w_teachert"
  9750. />
  9751. <video-player
  9752. class="video-player vjs-custom-skin"
  9753. :playsinline="true"
  9754. :options="videoDetail"
  9755. @play="onPlayerPlay($event)"
  9756. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9757. ></video-player>
  9758. </div>
  9759. <div
  9760. class="worksAnswer"
  9761. v-if="commentDetail.works && commentDetail.type == 10"
  9762. >
  9763. <div class="cont" v-html="commentDetail.works.text"></div>
  9764. </div>
  9765. <div
  9766. class="worksAnswer codeFileBox"
  9767. v-if="commentDetail.works && commentDetail.type == 12"
  9768. @click="downloadFile(commentDetail.works)"
  9769. >
  9770. <img src="../../assets/icon/codeFile.png" />
  9771. <div>点击下载文件</div>
  9772. </div>
  9773. <div
  9774. class="worksAnswer codeFileBox"
  9775. v-if="commentDetail.works && commentDetail.type == 15"
  9776. @click="
  9777. openCocoPi(
  9778. 57,
  9779. commentIndexJson.toolIndex,
  9780. commentDetail.userid,
  9781. commentDetail.sName
  9782. )
  9783. "
  9784. >
  9785. <img src="../../assets/icon/codeFile.png" />
  9786. <div>点击打开CocoPi</div>
  9787. </div>
  9788. <div
  9789. class="worksAnswer"
  9790. v-if="commentDetail.works && commentDetail.type == 13"
  9791. >
  9792. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9793. </div>
  9794. <div
  9795. class="worksAnswer"
  9796. v-if="commentDetail.works && commentDetail.type == 4"
  9797. >
  9798. <div class="evalCss">
  9799. <div class="nav">请选择星星进行评分</div>
  9800. <div class="middleBox" v-if="eScore.eStar">
  9801. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9802. <div class="nameAndrate">
  9803. <div>{{ e.value }}</div>
  9804. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9805. </div>
  9806. <div v-if="e.detail">{{ e.detail }}</div>
  9807. </div>
  9808. <div class="bz">
  9809. <textarea
  9810. disabled
  9811. rows="4"
  9812. class="pj"
  9813. style="
  9814. padding: 10px 5px;
  9815. width: 70%;
  9816. background: #f7f6f9;
  9817. font-size: 14px;
  9818. text-indent: 10px;
  9819. color: #000;
  9820. "
  9821. cols
  9822. v-model="eScore.eBzText"
  9823. placeholder="请输入评价内容..."
  9824. ></textarea>
  9825. </div>
  9826. </div>
  9827. </div>
  9828. </div>
  9829. <div class="comment">
  9830. <div class="commentList">
  9831. <div class="commentImg">
  9832. <img
  9833. @click="
  9834. isLikes(
  9835. commentDetail.wid,
  9836. userid,
  9837. 1,
  9838. null,
  9839. commentDetail.isLikes
  9840. )
  9841. "
  9842. :src="commentDetail.isLikes == true ? likes : noLikes"
  9843. alt=""
  9844. />
  9845. </div>
  9846. <div>{{ commentDetail.likesCount }}</div>
  9847. </div>
  9848. <div class="commentList">
  9849. <div class="commentImg">
  9850. <img src="../../assets/icon/comment/comment.png" alt="" />
  9851. </div>
  9852. <div>{{ commentDetail.commentCount }}</div>
  9853. </div>
  9854. </div>
  9855. <div class="drawPBox" v-if="commentDetail.img">
  9856. <span>教师批注</span>
  9857. <img
  9858. :src="commentDetail.img"
  9859. alt=""
  9860. @click="previewImg(commentDetail.img)"
  9861. />
  9862. <span
  9863. class="deleteImg"
  9864. v-if="tType == 1 || tType == 4"
  9865. @click.stop="deletePicturePaint(commentDetail.wid)"
  9866. style="
  9867. font-size: 14px;
  9868. width: auto !important;
  9869. color: #b4b4b4;
  9870. top: unset;
  9871. bottom: 0;
  9872. border: none;
  9873. padding: 0;
  9874. height: auto !important;
  9875. margin: 0;
  9876. "
  9877. >删除</span
  9878. >
  9879. </div>
  9880. </div>
  9881. <div class="commentBox">
  9882. <div class="pl">评论:</div>
  9883. <div style="max-height: 200px; overflow: auto">
  9884. <div
  9885. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9886. style="padding: 10px 0 0 0"
  9887. >
  9888. <div
  9889. class="studentDetail"
  9890. style="padding-top: 10px"
  9891. v-for="(co, coIndex) in commentDetail.commentJson"
  9892. :key="coIndex"
  9893. >
  9894. <div class="tx" style="min-width: 50px">
  9895. <img src="../../assets/avatar.png" alt="" />
  9896. </div>
  9897. <div class="plPerson">
  9898. <div class="plName">
  9899. <div>{{ co.commentPeople }}</div>
  9900. <div style="margin-left: 5px">
  9901. {{ co.commentTime }}
  9902. </div>
  9903. <div
  9904. class="deleteComment"
  9905. v-if="userid == co.userid"
  9906. @click="deleteComment(co.wid)"
  9907. >
  9908. 删除
  9909. </div>
  9910. </div>
  9911. <div class="plContent">{{ co.commentText }}</div>
  9912. </div>
  9913. </div>
  9914. </div>
  9915. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9916. </div>
  9917. </div>
  9918. <div style="margin-top: 10px">
  9919. <div class="displayBox">
  9920. <div
  9921. style="
  9922. color: #556db4;
  9923. font-size: 14px;
  9924. font-weight: bold;
  9925. padding-bottom: 10px;
  9926. "
  9927. >
  9928. 评价
  9929. </div>
  9930. <div class="easy_comment" v-if="false">
  9931. <div
  9932. v-for="(p, pIndex) in PlTextList"
  9933. :key="pIndex"
  9934. @click="fastText(p, 1)"
  9935. >
  9936. {{ p }}
  9937. </div>
  9938. </div>
  9939. </div>
  9940. <div>
  9941. <textarea
  9942. rows="3"
  9943. class="pj"
  9944. style="padding: 10px 5px"
  9945. cols
  9946. v-model="commentText"
  9947. placeholder="请输入评论"
  9948. ></textarea>
  9949. </div>
  9950. </div>
  9951. <div slot="footer">
  9952. <el-button
  9953. @click="
  9954. (commentDialogVisible = false),
  9955. (commentIndexJson = {}),
  9956. videoDetail.sources && videoDetail.sources[0]
  9957. ? (videoDetail.sources[0].src = '')
  9958. : ''
  9959. "
  9960. >取 消</el-button
  9961. >
  9962. <el-button
  9963. type="primary"
  9964. @click="addComment(commentDetail.wid, userid, 2)"
  9965. >确 定</el-button
  9966. >
  9967. </div>
  9968. </el-dialog>
  9969. <el-dialog
  9970. title="查看文档"
  9971. :visible.sync="fullDialogVisible"
  9972. :append-to-body="true"
  9973. width="100%"
  9974. :before-close="handleClose"
  9975. :show-close="false"
  9976. class="dialog_diy full_diy"
  9977. :class="{ full_diy2: fulltype == 3 }"
  9978. >
  9979. <div slot="title" class="header-title">
  9980. <div style="color: #fff">查看文档</div>
  9981. <div
  9982. @click="fullDialogVisible = false"
  9983. style="
  9984. cursor: pointer;
  9985. position: absolute;
  9986. top: 20px;
  9987. right: 20px;
  9988. color: #fff;
  9989. "
  9990. >
  9991. 退出全屏
  9992. </div>
  9993. </div>
  9994. <div style="height: 100%">
  9995. <div
  9996. class="wheel"
  9997. v-if="
  9998. fulltype == 2 &&
  9999. fullUrl.indexOf(
  10000. 'https://view.officeapps.live.com/op/view.aspx?src='
  10001. ) != -1
  10002. "
  10003. style="width: 95%; margin: 0 auto"
  10004. >
  10005. <iframe
  10006. style="width: 100%; height: 100%; border: none"
  10007. :src="fullUrl"
  10008. ></iframe>
  10009. </div>
  10010. <iframe
  10011. v-else-if="fulltype == 2"
  10012. style="width: 100%; height: 100%; border: none"
  10013. :src="fullUrl"
  10014. security="restricted"
  10015. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10016. ></iframe>
  10017. <pdf
  10018. v-else-if="fulltype == 3"
  10019. :pdfUrl="fullUrl"
  10020. style="width: 100%; height: 100%; overflow: auto"
  10021. ></pdf>
  10022. <div
  10023. class="wheel"
  10024. v-if="fulltype == 1"
  10025. style="
  10026. box-shadow: 0 0 6px 1px #f2f2f2;
  10027. width: 100%;
  10028. background: #f1f1f1;
  10029. "
  10030. >
  10031. <div class="title" style="width: 100%; box-sizing: border-box">
  10032. 查看文档
  10033. </div>
  10034. <el-form class="textBox" style="height: 90%">
  10035. <el-form-item class="textTitle">
  10036. <div style="font-size: 22px">
  10037. {{ fullUrl.name }}
  10038. </div>
  10039. </el-form-item>
  10040. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10041. <div
  10042. v-html="fullUrl.url"
  10043. class="textContent"
  10044. style="height: auto"
  10045. ></div>
  10046. </el-form>
  10047. </div>
  10048. </div>
  10049. <!-- <div slot="footer">
  10050. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10051. </div> -->
  10052. </el-dialog>
  10053. <el-dialog
  10054. title="个人评价"
  10055. :visible.sync="studentEvalDialogVisible"
  10056. :append-to-body="true"
  10057. width="800px"
  10058. :before-close="handleClose"
  10059. class="dialog_diy"
  10060. >
  10061. <div class="evalCss">
  10062. <div class="nav">请选择星星进行评分</div>
  10063. <div class="middleBox" v-if="eScore.eStar">
  10064. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10065. <div class="nameAndrate">
  10066. <div>{{ e.value }}</div>
  10067. <el-rate
  10068. v-model="eScore.eStar[eIndex]"
  10069. :disabled="isStar"
  10070. ></el-rate>
  10071. </div>
  10072. <div v-if="e.detail">{{ e.detail }}</div>
  10073. </div>
  10074. <div class="easy_comment" v-if="false">
  10075. <div
  10076. v-for="(p, pIndex) in PlTextList"
  10077. :key="pIndex"
  10078. @click="fastText(p, 2)"
  10079. >
  10080. {{ p }}
  10081. </div>
  10082. </div>
  10083. <div class="bz">
  10084. <textarea
  10085. :disabled="isStar"
  10086. rows="4"
  10087. class="pj"
  10088. style="
  10089. padding: 10px 5px;
  10090. width: 70%;
  10091. background: #f7f6f9;
  10092. font-size: 14px;
  10093. text-indent: 10px;
  10094. "
  10095. cols
  10096. v-model="eScore.eBzText"
  10097. placeholder="请输入评价内容..."
  10098. ></textarea>
  10099. </div>
  10100. </div>
  10101. </div>
  10102. <div slot="footer">
  10103. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10104. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10105. >确 定</el-button
  10106. >
  10107. </div>
  10108. </el-dialog>
  10109. <el-dialog
  10110. title="个人评价"
  10111. :visible.sync="studentEvalDialogVisibleTeacher"
  10112. :append-to-body="true"
  10113. width="800px"
  10114. :before-close="handleClose"
  10115. class="dialog_diy"
  10116. >
  10117. <div class="w_name">
  10118. 学生姓名:<span>{{ sStudent.student }}</span>
  10119. </div>
  10120. <div class="evalCss">
  10121. <div class="nav">请选择星星进行评分</div>
  10122. <div class="middleBox" v-if="eScore.eStar">
  10123. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10124. <div class="nameAndrate">
  10125. <div>{{ e.value }}</div>
  10126. <el-rate
  10127. v-model="eScore.eStar[eIndex]"
  10128. :disabled="isStar"
  10129. ></el-rate>
  10130. </div>
  10131. <div v-if="e.detail">{{ e.detail }}</div>
  10132. </div>
  10133. <div class="easy_comment" v-if="false">
  10134. <div
  10135. v-for="(p, pIndex) in PlTextList"
  10136. :key="pIndex"
  10137. @click="fastText(p, 2)"
  10138. >
  10139. {{ p }}
  10140. </div>
  10141. </div>
  10142. <div class="bz">
  10143. <textarea
  10144. :disabled="isStar"
  10145. rows="4"
  10146. class="pj"
  10147. style="
  10148. padding: 10px 5px;
  10149. width: 70%;
  10150. background: #f7f6f9;
  10151. font-size: 14px;
  10152. text-indent: 10px;
  10153. "
  10154. cols
  10155. v-model="eScore.eBzText"
  10156. placeholder="请输入评价内容..."
  10157. ></textarea>
  10158. </div>
  10159. </div>
  10160. </div>
  10161. <div slot="footer">
  10162. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10163. >取 消</el-button
  10164. >
  10165. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10166. >确 定</el-button
  10167. >
  10168. </div>
  10169. </el-dialog>
  10170. <el-dialog
  10171. title="选择匹配"
  10172. :visible.sync="dialogVisibleSelect"
  10173. :append-to-body="true"
  10174. width="90%"
  10175. :before-close="handleClose"
  10176. class="dialog_diy dialog_diy3"
  10177. >
  10178. <div v-if="selectJson">
  10179. <div class="select_box2">
  10180. <div class="select_box2_title">
  10181. <div>选择匹配</div>
  10182. <div>请选择对应的答案进行答题!</div>
  10183. </div>
  10184. <div class="select_box2_box">
  10185. <div class="select_box2_img">
  10186. <img
  10187. :src="selectJson.url"
  10188. @click="previewImg(selectJson.url)"
  10189. alt=""
  10190. />
  10191. </div>
  10192. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10193. <div style="padding-top: 15px">
  10194. <div class="select_answer_title" v-if="isSelect">
  10195. {{ selectAnswer.stu }}
  10196. </div>
  10197. <div class="select_answer_title" v-else>
  10198. 根据题目选择对应答案
  10199. </div>
  10200. <div
  10201. class="select_box2_answer_box"
  10202. v-for="(item2, checkIndex) in selectJson.select"
  10203. :key="checkIndex"
  10204. >
  10205. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10206. <el-select
  10207. :disabled="isSelect"
  10208. v-model="selectAnswer.answer[checkIndex]"
  10209. placeholder="请选择正确答案"
  10210. >
  10211. <el-option
  10212. v-for="(e, eIndex) in selectJson.select"
  10213. :key="eIndex"
  10214. :label="e"
  10215. :value="eIndex"
  10216. >
  10217. </el-option>
  10218. </el-select>
  10219. </div>
  10220. </div>
  10221. <div
  10222. class="rightAnswerCss"
  10223. v-if="isSelect && (tType == 1 || tType == 4)"
  10224. >
  10225. <div
  10226. v-for="(a, aIndex) in selectJson.answer"
  10227. :key="aIndex"
  10228. class="rightAnswer"
  10229. >
  10230. <div
  10231. v-if="selectAnswer.answer[aIndex] === a"
  10232. style="color: #767de1"
  10233. >
  10234. 回答正确
  10235. </div>
  10236. <div v-else>回答错误</div>
  10237. <div
  10238. style="margin-left: 10px"
  10239. v-if="selectAnswer.answer[aIndex] !== a"
  10240. >
  10241. 正确答案:
  10242. </div>
  10243. <div
  10244. :class="
  10245. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10246. "
  10247. >
  10248. {{ selectJson.select[a] }}
  10249. </div>
  10250. </div>
  10251. </div>
  10252. </div>
  10253. <div class="upAnswerCss">
  10254. <el-button
  10255. type="primary"
  10256. @click="addSelectAnswer"
  10257. v-if="!isSelect"
  10258. >提交答案</el-button
  10259. >
  10260. </div>
  10261. </div>
  10262. </div>
  10263. </div>
  10264. </el-dialog>
  10265. <el-dialog
  10266. title="选择匹配"
  10267. :visible.sync="dialogVisibleSelectTeacher"
  10268. :append-to-body="true"
  10269. width="90%"
  10270. :before-close="handleClose"
  10271. class="dialog_diy dialog_diy3"
  10272. >
  10273. <div v-if="selectJson">
  10274. <div class="w_name">
  10275. 学生姓名:<span>{{ sStudent.student }}</span>
  10276. </div>
  10277. <div class="select_box2">
  10278. <div class="select_box2_title">
  10279. <div>选择匹配</div>
  10280. <div>请选择对应的答案进行答题!</div>
  10281. </div>
  10282. <div class="select_box2_box">
  10283. <div class="select_box2_img">
  10284. <img
  10285. :src="selectJson.url"
  10286. @click="previewImg(selectJson.url)"
  10287. alt=""
  10288. />
  10289. </div>
  10290. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10291. <div style="padding-top: 15px">
  10292. <div class="select_answer_title" v-if="isSelect">
  10293. {{ selectAnswer.stu }}
  10294. </div>
  10295. <div class="select_answer_title" v-else>
  10296. 根据题目选择对应答案
  10297. </div>
  10298. <div
  10299. class="select_box2_answer_box"
  10300. v-for="(item2, checkIndex) in selectJson.select"
  10301. :key="checkIndex"
  10302. >
  10303. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10304. <el-select
  10305. :disabled="isSelect"
  10306. v-model="selectAnswer.answer[checkIndex]"
  10307. placeholder="请选择正确答案"
  10308. >
  10309. <el-option
  10310. v-for="(e, eIndex) in selectJson.select"
  10311. :key="eIndex"
  10312. :label="e"
  10313. :value="eIndex"
  10314. >
  10315. </el-option>
  10316. </el-select>
  10317. </div>
  10318. </div>
  10319. <div
  10320. class="rightAnswerCss"
  10321. v-if="isSelect && (tType == 1 || tType == 4)"
  10322. >
  10323. <div
  10324. v-for="(a, aIndex) in selectJson.answer"
  10325. :key="aIndex"
  10326. class="rightAnswer"
  10327. >
  10328. <div
  10329. v-if="selectAnswer.answer[aIndex] === a"
  10330. style="color: #767de1"
  10331. >
  10332. 回答正确
  10333. </div>
  10334. <div v-else>回答错误</div>
  10335. <div
  10336. style="margin-left: 10px"
  10337. v-if="selectAnswer.answer[aIndex] !== a"
  10338. >
  10339. 正确答案:
  10340. </div>
  10341. <div
  10342. :class="
  10343. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10344. "
  10345. >
  10346. {{ selectJson.select[a] }}
  10347. </div>
  10348. </div>
  10349. </div>
  10350. </div>
  10351. <div class="upAnswerCss">
  10352. <el-button
  10353. type="primary"
  10354. @click="addSelectAnswerTeacher"
  10355. v-if="!isSelect"
  10356. >提交答案</el-button
  10357. >
  10358. </div>
  10359. </div>
  10360. </div>
  10361. </div>
  10362. </el-dialog>
  10363. <el-dialog
  10364. title="教师评分"
  10365. :visible.sync="dialogVisibleScore"
  10366. :append-to-body="true"
  10367. width="800px"
  10368. :before-close="handleClose"
  10369. class="dialog_diy"
  10370. >
  10371. <div>
  10372. <div class="studentDetail">
  10373. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10374. <div class="nameAndTime">
  10375. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10376. <div>{{ commentDetail.time }}</div>
  10377. </div>
  10378. </div>
  10379. <div
  10380. class="worksAnswer"
  10381. v-if="commentDetail.works && commentDetail.type == 2"
  10382. >
  10383. {{ JSON.parse(commentDetail.works)[0].answer }}
  10384. </div>
  10385. <div
  10386. class="worksAnswer"
  10387. v-if="commentDetail.works && commentDetail.type == 1"
  10388. >
  10389. <pdf
  10390. v-if="showPDF"
  10391. :pdfUrl="pptImgUrl"
  10392. style="width: 100%; height: 520px; overflow: auto"
  10393. :class="{ fullStyle: full }"
  10394. ></pdf>
  10395. <iframe
  10396. v-else
  10397. :src="pptImgUrl"
  10398. frameborder="0"
  10399. width="100%"
  10400. height="600"
  10401. :class="{ fullStyle: full }"
  10402. ></iframe>
  10403. </div>
  10404. <div
  10405. class="worksAnswer"
  10406. v-if="commentDetail.works && commentDetail.type == 0"
  10407. >
  10408. <img
  10409. :src="commentDetail.works"
  10410. alt=""
  10411. @click="previewImg(commentDetail.works)"
  10412. />
  10413. </div>
  10414. <div
  10415. class="worksAnswer"
  10416. v-if="commentDetail.works && commentDetail.type == 3"
  10417. >
  10418. <video-player
  10419. class="video-player vjs-custom-skin"
  10420. :playsinline="true"
  10421. :options="videoDetail"
  10422. @play="onPlayerPlay($event)"
  10423. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10424. ></video-player>
  10425. </div>
  10426. <div
  10427. class="worksAnswer codeFileBox"
  10428. v-if="commentDetail.works && commentDetail.type == 12"
  10429. @click="downloadFile(commentDetail.works)"
  10430. >
  10431. <img src="../../assets/icon/codeFile.png" />
  10432. <div>点击下载文件</div>
  10433. </div>
  10434. <div
  10435. class="worksAnswer codeFileBox"
  10436. v-if="commentDetail.works && commentDetail.type == 15"
  10437. @click="
  10438. openCocoPi(
  10439. 57,
  10440. commentIndexJson.toolIndex,
  10441. commentDetail.userid,
  10442. commentDetail.sName
  10443. )
  10444. "
  10445. >
  10446. <img src="../../assets/icon/codeFile.png" />
  10447. <div>点击打开CocoPi</div>
  10448. </div>
  10449. <div
  10450. class="worksAnswer"
  10451. v-if="commentDetail.works && commentDetail.type == 13"
  10452. >
  10453. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10454. </div>
  10455. <div class="scoreBox">
  10456. <span class="t">请输入分数</span>
  10457. <el-input-number
  10458. :disabled="courseDetail.userid != userid"
  10459. v-model="wScore"
  10460. :controls="false"
  10461. :min="0"
  10462. :max="100"
  10463. ></el-input-number>
  10464. </div>
  10465. <div class="scoreDetailBox">
  10466. <span class="t">评分评论</span>
  10467. <el-input
  10468. type="textarea"
  10469. :rows="5"
  10470. :disabled="courseDetail.userid != userid"
  10471. resize="none"
  10472. v-model="scoreDetail"
  10473. placeholder="请输入对学生的评价"
  10474. >
  10475. </el-input>
  10476. </div>
  10477. </div>
  10478. <span slot="footer" class="dialog-footer">
  10479. <el-button
  10480. @click="
  10481. (dialogVisibleScore = false),
  10482. (commentIndexJson = {}),
  10483. videoDetail.sources && videoDetail.sources[0]
  10484. ? (videoDetail.sources[0].src = '')
  10485. : ''
  10486. "
  10487. >取 消</el-button
  10488. >
  10489. <el-button
  10490. type="primary"
  10491. v-if="courseDetail.userid == userid"
  10492. @click="scoreWork(commentDetail.wid)"
  10493. >确 定
  10494. </el-button>
  10495. </span>
  10496. </el-dialog>
  10497. <el-dialog
  10498. title="排序"
  10499. :visible.sync="dialogVisibleSentence"
  10500. :append-to-body="true"
  10501. width="1000px"
  10502. :before-close="handleClose"
  10503. class="dialog_diy dialog_diy3"
  10504. >
  10505. <div>
  10506. <div class="sentenBox">
  10507. <div
  10508. v-for="(st, stIndex) in sentenceList"
  10509. :key="stIndex"
  10510. style="padding-bottom: 20px"
  10511. >
  10512. <div
  10513. style="padding: 15px 0 10px 20px"
  10514. class="sentenceTitle"
  10515. :index="stIndex + 1"
  10516. >
  10517. 题目{{ stIndex + 1 }}:请选择正确顺序
  10518. </div>
  10519. <div class="cardList" v-if="st.chooseSenList">
  10520. <div class="cardBox">
  10521. <div
  10522. v-for="(r, rIndex) in st.chooseSenList"
  10523. :key="rIndex"
  10524. @click="returnCard(r, stIndex, rIndex)"
  10525. >
  10526. <el-tooltip
  10527. class="item"
  10528. effect="light"
  10529. :content="r"
  10530. placement="top"
  10531. v-if="r != '' && r != undefined"
  10532. >
  10533. <div
  10534. :class="{
  10535. isCard: r,
  10536. isChooseCard: r == '' || r == undefined,
  10537. }"
  10538. >
  10539. <div>{{ r }}</div>
  10540. </div>
  10541. </el-tooltip>
  10542. <div
  10543. :class="{
  10544. isCard: r,
  10545. isChooseCard: r == '' || r == undefined,
  10546. }"
  10547. v-else
  10548. >
  10549. <div>{{ r }}</div>
  10550. </div>
  10551. </div>
  10552. </div>
  10553. </div>
  10554. <div class="cardList" v-if="st.addChangeSen">
  10555. <div class="cardBox">
  10556. <div
  10557. v-for="(s, sIndex) in st.addChangeSen"
  10558. :key="sIndex"
  10559. @click="setRightAnswer(s, stIndex, sIndex)"
  10560. >
  10561. <el-tooltip
  10562. class="item"
  10563. effect="light"
  10564. :content="s"
  10565. placement="top"
  10566. v-if="s != '' && s != undefined"
  10567. >
  10568. <div
  10569. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10570. >
  10571. <div>{{ s }}</div>
  10572. </div>
  10573. </el-tooltip>
  10574. <div
  10575. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10576. v-else
  10577. >
  10578. <div>{{ s }}</div>
  10579. </div>
  10580. </div>
  10581. </div>
  10582. </div>
  10583. </div>
  10584. </div>
  10585. </div>
  10586. <span slot="footer" class="dialog-footer">
  10587. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10588. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10589. </span>
  10590. </el-dialog>
  10591. <el-dialog
  10592. title="排序"
  10593. :visible.sync="dialogVisibleSentenceTeacher"
  10594. :append-to-body="true"
  10595. width="1000px"
  10596. :before-close="handleClose"
  10597. class="dialog_diy dialog_diy3"
  10598. >
  10599. <div>
  10600. <div class="w_name">
  10601. 学生姓名:<span>{{ sStudent.student }}</span>
  10602. </div>
  10603. <div class="sentenBox">
  10604. <div
  10605. v-for="(st, stIndex) in sentenceList"
  10606. :key="stIndex"
  10607. style="padding-bottom: 20px"
  10608. >
  10609. <div
  10610. style="padding: 15px 0 10px 20px"
  10611. class="sentenceTitle"
  10612. :index="stIndex + 1"
  10613. >
  10614. 题目{{ stIndex + 1 }}:请选择正确顺序
  10615. </div>
  10616. <div class="cardList" v-if="st.chooseSenList">
  10617. <div class="cardBox">
  10618. <div
  10619. v-for="(r, rIndex) in st.chooseSenList"
  10620. :key="rIndex"
  10621. @click="returnCard(r, stIndex, rIndex)"
  10622. >
  10623. <el-tooltip
  10624. class="item"
  10625. effect="light"
  10626. :content="r"
  10627. placement="top"
  10628. v-if="r != '' && r != undefined"
  10629. >
  10630. <div
  10631. :class="{
  10632. isCard: r,
  10633. isChooseCard: r == '' || r == undefined,
  10634. }"
  10635. >
  10636. <div>{{ r }}</div>
  10637. </div>
  10638. </el-tooltip>
  10639. <div
  10640. :class="{
  10641. isCard: r,
  10642. isChooseCard: r == '' || r == undefined,
  10643. }"
  10644. v-else
  10645. >
  10646. <div>{{ r }}</div>
  10647. </div>
  10648. </div>
  10649. </div>
  10650. </div>
  10651. <div class="cardList" v-if="st.addChangeSen">
  10652. <div class="cardBox">
  10653. <div
  10654. v-for="(s, sIndex) in st.addChangeSen"
  10655. :key="sIndex"
  10656. @click="setRightAnswer(s, stIndex, sIndex)"
  10657. >
  10658. <el-tooltip
  10659. class="item"
  10660. effect="light"
  10661. :content="s"
  10662. placement="top"
  10663. v-if="s != '' && s != undefined"
  10664. >
  10665. <div
  10666. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10667. >
  10668. <div>{{ s }}</div>
  10669. </div>
  10670. </el-tooltip>
  10671. <div
  10672. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10673. v-else
  10674. >
  10675. <div>{{ s }}</div>
  10676. </div>
  10677. </div>
  10678. </div>
  10679. </div>
  10680. </div>
  10681. </div>
  10682. </div>
  10683. <span slot="footer" class="dialog-footer">
  10684. <el-button @click="dialogVisibleSentenceTeacher = false"
  10685. >取 消</el-button
  10686. >
  10687. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10688. </span>
  10689. </el-dialog>
  10690. <el-dialog
  10691. title="排序"
  10692. :visible.sync="dialogVisibleSentence1"
  10693. :append-to-body="true"
  10694. width="1000px"
  10695. :before-close="handleClose"
  10696. class="dialog_diy dialog_diy3"
  10697. >
  10698. <div>
  10699. <div class="sentenBox">
  10700. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10701. {{ sentenceList1.stuName }}的作业
  10702. </div>
  10703. <div
  10704. v-for="(st, stIndex) in sentenceList1"
  10705. :key="stIndex"
  10706. style="padding-bottom: 20px"
  10707. >
  10708. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10709. 第{{ stIndex + 1 }}题
  10710. </div>
  10711. <div class="isWrong">
  10712. <div class="cardList1" v-if="st.chooseSenList">
  10713. <div class="cardBox">
  10714. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10715. <el-tooltip
  10716. class="item"
  10717. effect="light"
  10718. :content="s"
  10719. placement="top"
  10720. >
  10721. <div class="isCard">
  10722. <div>{{ s }}</div>
  10723. </div>
  10724. </el-tooltip>
  10725. </div>
  10726. </div>
  10727. <div class="cardAnswerBox">
  10728. 组成句子:{{ st.chooseSenList.join(" ") }}
  10729. </div>
  10730. </div>
  10731. <div v-if="tType == 2" class="isTj">
  10732. <div class="isTjImg">
  10733. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10734. </div>
  10735. <div>已提交</div>
  10736. </div>
  10737. <div
  10738. class="answerRight isTj"
  10739. v-if="
  10740. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10741. (tType == 1 || tType == 4)
  10742. "
  10743. >
  10744. <div class="isTjImg">
  10745. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10746. </div>
  10747. <div>回答正确</div>
  10748. </div>
  10749. <div
  10750. class="answerRight isTj"
  10751. v-if="
  10752. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10753. (tType == 1 || tType == 4)
  10754. "
  10755. >
  10756. <div class="isTjImg">
  10757. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10758. </div>
  10759. <div>回答错误</div>
  10760. </div>
  10761. </div>
  10762. <div
  10763. v-if="
  10764. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10765. (tType == 1 || tType == 4)
  10766. "
  10767. >
  10768. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10769. <div
  10770. class="cardList"
  10771. v-if="st.rightAnswer"
  10772. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10773. >
  10774. <div class="cardBox">
  10775. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10776. <el-tooltip
  10777. class="item"
  10778. effect="light"
  10779. :content="r"
  10780. placement="top"
  10781. >
  10782. <div class="isCard1">
  10783. <div>{{ r }}</div>
  10784. </div>
  10785. </el-tooltip>
  10786. </div>
  10787. </div>
  10788. <div class="cardAnswerBox">
  10789. 组成句子:{{ st.rightAnswer.join(" ") }}
  10790. </div>
  10791. </div>
  10792. </div>
  10793. </div>
  10794. </div>
  10795. </div>
  10796. <span slot="footer" class="dialog-footer">
  10797. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10798. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10799. >确 定</el-button
  10800. >
  10801. </span>
  10802. </el-dialog>
  10803. <el-dialog
  10804. title="教师提交作业"
  10805. :visible.sync="dialogVisibleWorks"
  10806. :append-to-body="true"
  10807. width="500px"
  10808. :before-close="handleClose"
  10809. class="dialog_change"
  10810. >
  10811. <div class="marginT">
  10812. <div class="w_name">
  10813. 学生姓名:<span>{{ sStudent.student }}</span>
  10814. </div>
  10815. <div>上传文件</div>
  10816. <div
  10817. class="chapter_add"
  10818. @click="addImg($event)"
  10819. v-if="studyJuri[0].cover.length == 0"
  10820. >
  10821. <div class="up_photo">
  10822. <img src="../../assets/uploadImg2.png" alt />
  10823. </div>
  10824. <!-- <input
  10825. type="file"
  10826. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10827. style="display: none"
  10828. @change="beforeUpload1($event, 1)"
  10829. /> -->
  10830. <input
  10831. type="file"
  10832. accept="*"
  10833. style="display: none"
  10834. @change="beforeUpload1($event, 1)"
  10835. />
  10836. </div>
  10837. <!-- capture="camera" -->
  10838. <div
  10839. class="chapter_add"
  10840. style="
  10841. display: flex;
  10842. width: 100%;
  10843. flex-direction: row;
  10844. flex-wrap: wrap;
  10845. justify-content: flex-start;
  10846. padding: 15px 0;
  10847. "
  10848. v-if="studyJuri[0].cover.length > 0"
  10849. >
  10850. <div class="upCover">
  10851. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10852. <img :src="word" alt v-else-if="fileType == 1" />
  10853. <img :src="video" alt v-else-if="fileType == 2" />
  10854. <img :src="word2" alt v-else-if="fileType == 3" />
  10855. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10856. <div class="deleteWord" @click="clean(1)">
  10857. <img src="../../assets/icon/deleteWorks.png" alt />
  10858. </div>
  10859. </div>
  10860. </div>
  10861. </div>
  10862. <div
  10863. class="upload_send"
  10864. @click="addCourseWorksTeacher(taskCount)"
  10865. v-if="!proVisible"
  10866. >
  10867. 提交
  10868. </div>
  10869. </el-dialog>
  10870. <ImgDraw
  10871. :drawShow="drawShow"
  10872. @closeDraw="closeDraw"
  10873. @addImgDraw="addImgDraw"
  10874. :bg="bg"
  10875. ></ImgDraw>
  10876. <el-dialog
  10877. title="表格"
  10878. :visible.sync="dialogVisibleTable"
  10879. :append-to-body="true"
  10880. width="95%"
  10881. :before-close="handleClose"
  10882. class="dialog_diy"
  10883. >
  10884. <el-form>
  10885. <div
  10886. style="
  10887. display: flex;
  10888. align-items: center;
  10889. justify-content: space-between;
  10890. "
  10891. >
  10892. <span>表格内容</span>
  10893. <el-button type="primary" size="small" @click="returnTableText"
  10894. >还原模板</el-button
  10895. >
  10896. </div>
  10897. <Table
  10898. v-model="tableJson.text"
  10899. @change="change"
  10900. v-if="dialogVisibleTable"
  10901. ></Table>
  10902. </el-form>
  10903. <span slot="footer" class="dialog-footer">
  10904. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10905. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10906. </span>
  10907. </el-dialog>
  10908. <el-dialog
  10909. title="表格"
  10910. :visible.sync="dialogVisibleTableTeacher"
  10911. :append-to-body="true"
  10912. width="95%"
  10913. :before-close="handleClose"
  10914. class="dialog_diy"
  10915. >
  10916. <el-form>
  10917. <div class="w_name">
  10918. 学生姓名:<span>{{ sStudent.student }}</span>
  10919. </div>
  10920. <div>表格内容</div>
  10921. <Table
  10922. v-model="tableJson.text"
  10923. @change="change"
  10924. v-if="dialogVisibleTableTeacher"
  10925. ></Table>
  10926. </el-form>
  10927. <span slot="footer" class="dialog-footer">
  10928. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10929. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10930. </span>
  10931. </el-dialog>
  10932. <el-dialog
  10933. title="文档"
  10934. :visible.sync="dialogVisibleWord"
  10935. :append-to-body="true"
  10936. width="95%"
  10937. :before-close="handleClose"
  10938. class="dialog_diy"
  10939. >
  10940. <el-form>
  10941. <div
  10942. style="
  10943. display: flex;
  10944. align-items: center;
  10945. justify-content: space-between;
  10946. "
  10947. >
  10948. <span>文档内容</span>
  10949. <el-button type="primary" size="small" @click="returnWordText"
  10950. >还原模板</el-button
  10951. >
  10952. </div>
  10953. <editor-bar
  10954. v-model="wordJson.text"
  10955. v-if="dialogVisibleWord"
  10956. ></editor-bar>
  10957. </el-form>
  10958. <span slot="footer" class="dialog-footer">
  10959. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10960. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10961. </span>
  10962. </el-dialog>
  10963. <el-dialog
  10964. title="文档"
  10965. :visible.sync="dialogVisibleWordTeacher"
  10966. :append-to-body="true"
  10967. width="95%"
  10968. :before-close="handleClose"
  10969. class="dialog_diy"
  10970. >
  10971. <el-form>
  10972. <div class="w_name">
  10973. 学生姓名:<span>{{ sStudent.student }}</span>
  10974. </div>
  10975. <div>文档内容</div>
  10976. <editor-bar
  10977. v-model="wordJson.text"
  10978. v-if="dialogVisibleWordTeacher"
  10979. ></editor-bar>
  10980. </el-form>
  10981. <span slot="footer" class="dialog-footer">
  10982. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10983. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10984. </span>
  10985. </el-dialog>
  10986. <el-dialog
  10987. title="表格"
  10988. :visible.sync="dialogVisibleTable2"
  10989. :append-to-body="true"
  10990. width="95%"
  10991. :before-close="handleClose"
  10992. class="dialog_diy"
  10993. >
  10994. <el-form>
  10995. <div class="cont" v-html="tableJson.text"></div>
  10996. </el-form>
  10997. <span slot="footer" class="dialog-footer">
  10998. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10999. </span>
  11000. </el-dialog>
  11001. <el-dialog
  11002. title="文档"
  11003. :visible.sync="dialogVisibleTable3"
  11004. :append-to-body="true"
  11005. width="95%"
  11006. :before-close="handleClose"
  11007. class="dialog_diy"
  11008. >
  11009. <el-form>
  11010. <div class="cont" v-html="tableJson.text"></div>
  11011. </el-form>
  11012. <span slot="footer" class="dialog-footer">
  11013. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11014. </span>
  11015. </el-dialog>
  11016. <el-dialog
  11017. title="分组设置"
  11018. :visible.sync="dialogVisibleGroup"
  11019. :append-to-body="true"
  11020. width="95%"
  11021. :before-close="handleClose"
  11022. class="dialog_diy"
  11023. >
  11024. <div v-if="dialogVisibleGroup">
  11025. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11026. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11027. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11028. </div>
  11029. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11030. @click="lockChair">
  11031. 锁定位置
  11032. </div>
  11033. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11034. 解锁位置
  11035. </div> -->
  11036. <div class="group_switch">
  11037. <span>开放选座</span>
  11038. <el-switch
  11039. v-model="islock"
  11040. active-text=""
  11041. class="switchCss"
  11042. @change="lockChair"
  11043. ></el-switch>
  11044. </div>
  11045. <div
  11046. type="primary"
  11047. @click="updateGroup"
  11048. class="returnBtn"
  11049. style="background-color: #225bc7"
  11050. >
  11051. 分组设置
  11052. </div>
  11053. </div>
  11054. <div>
  11055. <div
  11056. class="g_d_box"
  11057. v-if="groupJson.group && groupStudent[toolindex]"
  11058. >
  11059. <div
  11060. class="g_d_group"
  11061. v-for="(g, gindex) in groupJson.group"
  11062. :key="gindex"
  11063. >
  11064. <div class="g_d_group_chair">
  11065. <div v-if="groupJson.number > 1">
  11066. <span
  11067. :class="{
  11068. isChair:
  11069. groupStudent[toolindex][gindex] &&
  11070. groupStudent[toolindex][gindex][0],
  11071. updateChair:
  11072. courseDetail.userid == userid &&
  11073. groupStudent[toolindex][gindex] &&
  11074. groupStudent[toolindex][gindex][0] &&
  11075. groupJson.islock == 2,
  11076. }"
  11077. ><span
  11078. class="updateChairBtn"
  11079. @click="
  11080. updateGroupChair(
  11081. groupStudent[toolindex][gindex] &&
  11082. groupStudent[toolindex][gindex][0]
  11083. )
  11084. "
  11085. >修改</span
  11086. ></span
  11087. ><span>{{
  11088. groupStudent[toolindex][gindex] &&
  11089. groupStudent[toolindex][gindex][0]
  11090. ? groupStudent[toolindex][gindex] &&
  11091. groupStudent[toolindex][gindex][0].name
  11092. : "空位置"
  11093. }}</span>
  11094. </div>
  11095. <div v-if="groupJson.number > 4">
  11096. <span
  11097. :class="{
  11098. isChair:
  11099. groupStudent[toolindex][gindex] &&
  11100. groupStudent[toolindex][gindex][4],
  11101. updateChair:
  11102. courseDetail.userid == userid &&
  11103. groupStudent[toolindex][gindex] &&
  11104. groupStudent[toolindex][gindex][4] &&
  11105. groupJson.islock == 2,
  11106. }"
  11107. ><span
  11108. class="updateChairBtn"
  11109. @click="
  11110. updateGroupChair(
  11111. groupStudent[toolindex][gindex] &&
  11112. groupStudent[toolindex][gindex][4]
  11113. )
  11114. "
  11115. >修改</span
  11116. ></span
  11117. ><span>{{
  11118. groupStudent[toolindex][gindex] &&
  11119. groupStudent[toolindex][gindex][4]
  11120. ? groupStudent[toolindex][gindex] &&
  11121. groupStudent[toolindex][gindex][4].name
  11122. : "空位置"
  11123. }}</span>
  11124. </div>
  11125. <div v-if="groupJson.number > 8">
  11126. <span
  11127. :class="{
  11128. isChair:
  11129. groupStudent[toolindex][gindex] &&
  11130. groupStudent[toolindex][gindex][8],
  11131. updateChair:
  11132. courseDetail.userid == userid &&
  11133. groupStudent[toolindex][gindex] &&
  11134. groupStudent[toolindex][gindex][8] &&
  11135. groupJson.islock == 2,
  11136. }"
  11137. ><span
  11138. class="updateChairBtn"
  11139. @click="
  11140. updateGroupChair(
  11141. groupStudent[toolindex][gindex] &&
  11142. groupStudent[toolindex][gindex][8]
  11143. )
  11144. "
  11145. >修改</span
  11146. ></span
  11147. ><span>{{
  11148. groupStudent[toolindex][gindex] &&
  11149. groupStudent[toolindex][gindex][8]
  11150. ? groupStudent[toolindex][gindex] &&
  11151. groupStudent[toolindex][gindex][8].name
  11152. : "空位置"
  11153. }}</span>
  11154. </div>
  11155. </div>
  11156. <div class="g_d_group_tableBox">
  11157. <div class="g_d_group_chair2">
  11158. <div v-if="groupJson.number > 2">
  11159. <span
  11160. :class="{
  11161. isChair:
  11162. groupStudent[toolindex][gindex] &&
  11163. groupStudent[toolindex][gindex][2],
  11164. updateChair:
  11165. courseDetail.userid == userid &&
  11166. groupStudent[toolindex][gindex] &&
  11167. groupStudent[toolindex][gindex][2] &&
  11168. groupJson.islock == 2,
  11169. }"
  11170. ><span
  11171. class="updateChairBtn"
  11172. @click="
  11173. updateGroupChair(
  11174. groupStudent[toolindex][gindex] &&
  11175. groupStudent[toolindex][gindex][2]
  11176. )
  11177. "
  11178. >修改</span
  11179. ></span
  11180. ><span>{{
  11181. groupStudent[toolindex][gindex] &&
  11182. groupStudent[toolindex][gindex][2]
  11183. ? groupStudent[toolindex][gindex] &&
  11184. groupStudent[toolindex][gindex][2].name
  11185. : "空位置"
  11186. }}</span>
  11187. </div>
  11188. <div v-if="groupJson.number > 6">
  11189. <span
  11190. :class="{
  11191. isChair:
  11192. groupStudent[toolindex][gindex] &&
  11193. groupStudent[toolindex][gindex][6],
  11194. updateChair:
  11195. courseDetail.userid == userid &&
  11196. groupStudent[toolindex][gindex] &&
  11197. groupStudent[toolindex][gindex][6] &&
  11198. groupJson.islock == 2,
  11199. }"
  11200. ><span
  11201. class="updateChairBtn"
  11202. @click="
  11203. updateGroupChair(
  11204. groupStudent[toolindex][gindex] &&
  11205. groupStudent[toolindex][gindex][6]
  11206. )
  11207. "
  11208. >修改</span
  11209. ></span
  11210. ><span>{{
  11211. groupStudent[toolindex][gindex] &&
  11212. groupStudent[toolindex][gindex][6]
  11213. ? groupStudent[toolindex][gindex] &&
  11214. groupStudent[toolindex][gindex][6].name
  11215. : "空位置"
  11216. }}</span>
  11217. </div>
  11218. </div>
  11219. <div class="g_d_group_table">
  11220. <div>
  11221. {{ g.name }}
  11222. </div>
  11223. <div>
  11224. <div
  11225. v-if="
  11226. courseDetail.userid == userid && groupJson.islock == 2
  11227. "
  11228. @click="deleteGroupChair(gindex)"
  11229. >
  11230. 移除组员
  11231. </div>
  11232. <div
  11233. @click="selectGroup(gindex)"
  11234. v-else-if="
  11235. groupStudentUid[toolindex] &&
  11236. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11237. "
  11238. >
  11239. 加入分组
  11240. </div>
  11241. <div
  11242. @click="
  11243. exitGroup(
  11244. groupStudent[toolindex][gindex] &&
  11245. groupStudent[toolindex][gindex][
  11246. groupStudentUid[toolindex][gindex].indexOf(userid)
  11247. ].id
  11248. )
  11249. "
  11250. v-else-if="
  11251. groupStudentUid[toolindex] &&
  11252. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11253. "
  11254. >
  11255. 退出分组
  11256. </div>
  11257. </div>
  11258. </div>
  11259. <div class="g_d_group_chair2">
  11260. <div v-if="groupJson.number > 3">
  11261. <span
  11262. :class="{
  11263. isChair:
  11264. groupStudent[toolindex][gindex] &&
  11265. groupStudent[toolindex][gindex][3],
  11266. updateChair:
  11267. courseDetail.userid == userid &&
  11268. groupStudent[toolindex][gindex] &&
  11269. groupStudent[toolindex][gindex][3] &&
  11270. groupJson.islock == 2,
  11271. }"
  11272. ><span
  11273. class="updateChairBtn"
  11274. @click="
  11275. updateGroupChair(
  11276. groupStudent[toolindex][gindex] &&
  11277. groupStudent[toolindex][gindex][3]
  11278. )
  11279. "
  11280. >修改</span
  11281. ></span
  11282. ><span>{{
  11283. groupStudent[toolindex][gindex] &&
  11284. groupStudent[toolindex][gindex][3]
  11285. ? groupStudent[toolindex][gindex] &&
  11286. groupStudent[toolindex][gindex][3].name
  11287. : "空位置"
  11288. }}</span>
  11289. </div>
  11290. <div v-if="groupJson.number > 7">
  11291. <span
  11292. :class="{
  11293. isChair:
  11294. groupStudent[toolindex][gindex] &&
  11295. groupStudent[toolindex][gindex][7],
  11296. updateChair:
  11297. courseDetail.userid == userid &&
  11298. groupStudent[toolindex][gindex] &&
  11299. groupStudent[toolindex][gindex][7] &&
  11300. groupJson.islock == 2,
  11301. }"
  11302. ><span
  11303. class="updateChairBtn"
  11304. @click="
  11305. updateGroupChair(
  11306. groupStudent[toolindex][gindex] &&
  11307. groupStudent[toolindex][gindex][7]
  11308. )
  11309. "
  11310. >修改</span
  11311. ></span
  11312. ><span>{{
  11313. groupStudent[toolindex][gindex] &&
  11314. groupStudent[toolindex][gindex][7]
  11315. ? groupStudent[toolindex][gindex] &&
  11316. groupStudent[toolindex][gindex][7].name
  11317. : "空位置"
  11318. }}</span>
  11319. </div>
  11320. </div>
  11321. </div>
  11322. <div class="g_d_group_chair">
  11323. <div v-if="groupJson.number > 1">
  11324. <span
  11325. :class="{
  11326. isChair:
  11327. groupStudent[toolindex][gindex] &&
  11328. groupStudent[toolindex][gindex][1],
  11329. updateChair:
  11330. courseDetail.userid == userid &&
  11331. groupStudent[toolindex][gindex] &&
  11332. groupStudent[toolindex][gindex][1] &&
  11333. groupJson.islock == 2,
  11334. }"
  11335. ><span
  11336. class="updateChairBtn"
  11337. @click="
  11338. updateGroupChair(
  11339. groupStudent[toolindex][gindex] &&
  11340. groupStudent[toolindex][gindex][1]
  11341. )
  11342. "
  11343. >修改</span
  11344. ></span
  11345. ><span>{{
  11346. groupStudent[toolindex][gindex] &&
  11347. groupStudent[toolindex][gindex][1]
  11348. ? groupStudent[toolindex][gindex] &&
  11349. groupStudent[toolindex][gindex][1].name
  11350. : "空位置"
  11351. }}</span>
  11352. </div>
  11353. <div v-if="groupJson.number > 5">
  11354. <span
  11355. :class="{
  11356. isChair:
  11357. groupStudent[toolindex][gindex] &&
  11358. groupStudent[toolindex][gindex][5],
  11359. updateChair:
  11360. courseDetail.userid == userid &&
  11361. groupStudent[toolindex][gindex] &&
  11362. groupStudent[toolindex][gindex][5] &&
  11363. groupJson.islock == 2,
  11364. }"
  11365. ><span
  11366. class="updateChairBtn"
  11367. @click="
  11368. updateGroupChair(
  11369. groupStudent[toolindex][gindex] &&
  11370. groupStudent[toolindex][gindex][5]
  11371. )
  11372. "
  11373. >修改</span
  11374. ></span
  11375. ><span>{{
  11376. groupStudent[toolindex][gindex] &&
  11377. groupStudent[toolindex][gindex][5]
  11378. ? groupStudent[toolindex][gindex] &&
  11379. groupStudent[toolindex][gindex][5].name
  11380. : "空位置"
  11381. }}</span>
  11382. </div>
  11383. <div v-if="groupJson.number > 9">
  11384. <span
  11385. :class="{
  11386. isChair:
  11387. groupStudent[toolindex][gindex] &&
  11388. groupStudent[toolindex][gindex][9],
  11389. updateChair:
  11390. courseDetail.userid == userid &&
  11391. groupStudent[toolindex][gindex] &&
  11392. groupStudent[toolindex][gindex][9] &&
  11393. groupJson.islock == 2,
  11394. }"
  11395. ><span
  11396. class="updateChairBtn"
  11397. @click="
  11398. updateGroupChair(
  11399. groupStudent[toolindex][gindex] &&
  11400. groupStudent[toolindex][gindex][9]
  11401. )
  11402. "
  11403. >修改</span
  11404. ></span
  11405. ><span>{{
  11406. groupStudent[toolindex][gindex] &&
  11407. groupStudent[toolindex][gindex][9]
  11408. ? groupStudent[toolindex][gindex] &&
  11409. groupStudent[toolindex][gindex][9].name
  11410. : "空位置"
  11411. }}</span>
  11412. </div>
  11413. </div>
  11414. </div>
  11415. </div>
  11416. </div>
  11417. </div>
  11418. <span slot="footer" class="dialog-footer">
  11419. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11420. </span>
  11421. </el-dialog>
  11422. <el-dialog
  11423. title="分组设置"
  11424. :visible.sync="dialogVisibleGroup2"
  11425. :append-to-body="true"
  11426. width="650px"
  11427. :before-close="handleClose"
  11428. class="dialog_diy"
  11429. >
  11430. <div class="groupBox">
  11431. <div v-if="groupJson2.group" class="groupContent">
  11432. <div class="groupTitle">请设置小组数量及名称</div>
  11433. <div
  11434. v-for="(item, index) in groupJson2.group"
  11435. :key="index"
  11436. class="groupName"
  11437. >
  11438. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11439. <el-input
  11440. v-model="item.name"
  11441. placeholder="请输入名称..."
  11442. style="width: 250px"
  11443. ></el-input>
  11444. <!-- <div class="groupBtn">
  11445. <el-button type="primary" size="small" @click="addGroup(index)">
  11446. 添加</el-button>
  11447. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11448. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11449. </div> -->
  11450. </div>
  11451. </div>
  11452. <div class="groupContent">
  11453. <div class="groupTitle">请设置每组人数</div>
  11454. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11455. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11456. <el-input
  11457. v-model="groupJson.number"
  11458. style="width: 150px"
  11459. placeholder="请输入2-10的数字"
  11460. @change="numberPan"
  11461. ></el-input>
  11462. </div>
  11463. </div>
  11464. <span slot="footer" class="dialog-footer">
  11465. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11466. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11467. </span>
  11468. </el-dialog>
  11469. <el-dialog
  11470. title="作业提交"
  11471. :visible.sync="dialogVisibleGroupWork"
  11472. :append-to-body="true"
  11473. width="500px"
  11474. :before-close="handleClose"
  11475. class="dialog_change"
  11476. >
  11477. <div class="marginT">
  11478. <div>上传文件</div>
  11479. <div
  11480. class="chapter_add"
  11481. @click="addImg($event)"
  11482. v-if="studyJuri[0].cover.length == 0"
  11483. >
  11484. <div class="up_photo">
  11485. <img src="../../assets/icon/uploadImg.png" alt />
  11486. </div>
  11487. <!-- <input
  11488. type="file"
  11489. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11490. style="display: none"
  11491. @change="beforeUpload1($event, 1)"
  11492. /> -->
  11493. <input
  11494. type="file"
  11495. accept="*"
  11496. style="display: none"
  11497. @change="beforeUpload1($event, 1)"
  11498. />
  11499. </div>
  11500. <!-- capture="camera" -->
  11501. <div
  11502. class="chapter_add"
  11503. style="
  11504. display: flex;
  11505. width: 100%;
  11506. flex-direction: row;
  11507. flex-wrap: wrap;
  11508. justify-content: flex-start;
  11509. padding: 15px 0;
  11510. "
  11511. v-if="studyJuri[0].cover.length > 0"
  11512. >
  11513. <div class="upCover">
  11514. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11515. <img :src="word" alt v-else-if="fileType == 1" />
  11516. <img :src="video" alt v-else-if="fileType == 2" />
  11517. <img :src="word2" alt v-else-if="fileType == 3" />
  11518. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11519. <div class="deleteWord" @click="clean(1)">
  11520. <img src="../../assets/icon/deleteWorks.png" alt />
  11521. </div>
  11522. </div>
  11523. </div>
  11524. </div>
  11525. <div
  11526. class="upload_send"
  11527. @click="addCourseWorks2(taskCount)"
  11528. v-if="!proVisible"
  11529. >
  11530. 提交
  11531. </div>
  11532. </el-dialog>
  11533. <el-dialog
  11534. title="修改分组"
  11535. :visible.sync="dialogVisibleUpdateGroup"
  11536. :append-to-body="true"
  11537. width="350px"
  11538. :before-close="handleClose"
  11539. class="dialog_diy"
  11540. >
  11541. <div>
  11542. <h2>
  11543. {{ this.updateGroupUser.name }}
  11544. </h2>
  11545. <div style="color: rgb(171 171 171); margin-top: 10px">
  11546. 请选择要进入的分组
  11547. </div>
  11548. <el-radio-group v-model="checkChair">
  11549. <el-radio
  11550. style="display: block; margin-top: 20px"
  11551. v-for="(item, index) in updateGroupArray"
  11552. :label="item.label"
  11553. :key="index"
  11554. >{{ item.name }}</el-radio
  11555. >
  11556. </el-radio-group>
  11557. </div>
  11558. <span slot="footer" class="dialog-footer">
  11559. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11560. <el-button type="primary" @click="updateChair">确定</el-button>
  11561. </span>
  11562. </el-dialog>
  11563. <el-dialog
  11564. title="移除组员"
  11565. :visible.sync="dialogVisibleDeleteGroup"
  11566. :append-to-body="true"
  11567. width="350px"
  11568. :before-close="handleClose"
  11569. class="dialog_diy"
  11570. >
  11571. <div>
  11572. <h2>
  11573. {{ this.deleteGroupArray.name }}
  11574. </h2>
  11575. <div style="color: rgb(171 171 171); margin-top: 10px">
  11576. 请选择要删除的组员
  11577. </div>
  11578. <el-checkbox-group v-model="checkDeleteGroup">
  11579. <el-checkbox
  11580. style="display: flex; margin-top: 20px"
  11581. v-for="(item, index) in deleteGroupUser"
  11582. :label="item.userid"
  11583. :key="index"
  11584. >{{ item.name }}</el-checkbox
  11585. >
  11586. </el-checkbox-group>
  11587. </div>
  11588. <span slot="footer" class="dialog-footer">
  11589. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11590. <el-button type="primary" @click="deleteChair">确定</el-button>
  11591. </span>
  11592. </el-dialog>
  11593. <el-dialog
  11594. title="批量上传"
  11595. :visible.sync="dialogVisiblePl"
  11596. :append-to-body="true"
  11597. width="700px"
  11598. :before-close="handleClose"
  11599. class="dialog_change"
  11600. >
  11601. <div class="marginT">
  11602. <div class="plworkBox">
  11603. <div
  11604. class="chapter_add"
  11605. style="
  11606. display: flex;
  11607. width: 150px;
  11608. flex-direction: row;
  11609. flex-wrap: wrap;
  11610. justify-content: flex-start;
  11611. margin: 0 10px 10px 0;
  11612. "
  11613. v-for="(item, index) in plworkFile"
  11614. :key="index"
  11615. >
  11616. <div class="upCover2">
  11617. <img
  11618. :src="item.url"
  11619. alt
  11620. v-if="item.fileType == 1"
  11621. @click="previewImg(item.url)"
  11622. />
  11623. <img :src="word" alt v-else-if="item.fileType == 4" />
  11624. <img :src="video" alt v-else />
  11625. <!-- <span class="picName">{{ item.name }}</span> -->
  11626. <!-- <el-input
  11627. v-model="item.username"
  11628. placeholder="请输入学生名字"
  11629. style="margin-top: 10px"
  11630. ></el-input> -->
  11631. <div
  11632. class="pl_select_box"
  11633. @click="
  11634. getUpdateMore(true, checkUpload(), item.username, index)
  11635. "
  11636. >
  11637. {{ getSName(item.username) }}
  11638. </div>
  11639. <!-- <el-select
  11640. style="margin-top: 10px"
  11641. v-model="item.username"
  11642. filterable
  11643. allow-create
  11644. placeholder="请选择学生"
  11645. >
  11646. <el-option
  11647. v-for="item1 in checkUpload()"
  11648. :key="item1.userid"
  11649. :label="item1.name ? item1.name : item1.username"
  11650. :value="item1.userid"
  11651. >
  11652. </el-option>
  11653. </el-select> -->
  11654. <div class="deleteWord" @click="clean2(index)">
  11655. <img src="../../assets/icon/deleteWorks.png" alt />
  11656. </div>
  11657. </div>
  11658. </div>
  11659. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11660. <div class="up_photo2">
  11661. <img src="../../assets/icon/plwork.png" alt />
  11662. <span>点击上传文件</span>
  11663. </div>
  11664. <input
  11665. type="file"
  11666. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11667. multiple="multiple"
  11668. style="display: none"
  11669. @change="beforeUpload3($event, 6)"
  11670. />
  11671. </div>
  11672. </div>
  11673. </div>
  11674. <!-- capture="camera" -->
  11675. <div
  11676. class="upload_send"
  11677. @click="addCourseWorksPl(taskCount)"
  11678. v-if="!proVisible2"
  11679. >
  11680. 提交
  11681. </div>
  11682. </el-dialog>
  11683. <el-dialog
  11684. title="修改名称"
  11685. :visible.sync="dialogVisibleSname"
  11686. width="500px"
  11687. :before-close="handleClose"
  11688. class="dialog_diy"
  11689. center
  11690. >
  11691. <div
  11692. style="
  11693. text-align: center;
  11694. display: flex;
  11695. align-items: center;
  11696. justify-content: center;
  11697. "
  11698. >
  11699. <span class="tian1">名称</span>
  11700. <div
  11701. class="pl_select_box"
  11702. style="margin-left: 10px; width: 200px"
  11703. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11704. >
  11705. {{ getSName(worksSName) }}
  11706. </div>
  11707. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11708. placeholder="请选择学生">
  11709. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11710. :value="item.userid">
  11711. </el-option>
  11712. </el-select> -->
  11713. <!-- <el-input
  11714. v-model="worksSName"
  11715. style="width: 250px; margin: 15px 0px"
  11716. ></el-input> -->
  11717. </div>
  11718. <span slot="footer" class="dialog-footer">
  11719. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11720. <el-button type="primary" @click="updateName">确 定</el-button>
  11721. </span>
  11722. </el-dialog>
  11723. <el-dialog
  11724. title="英语写作"
  11725. :visible.sync="engDialogVisible"
  11726. :append-to-body="true"
  11727. width="800px"
  11728. :before-close="handleClose"
  11729. class="dialog_diy"
  11730. >
  11731. <onlineWrite
  11732. v-if="engDialogVisible"
  11733. :englishList="englishList"
  11734. :myAnswerList1="myAnswerList1"
  11735. ref="engJson"
  11736. ></onlineWrite>
  11737. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11738. <el-button @click="engDialogVisible = false">取 消</el-button>
  11739. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11740. </span>
  11741. </el-dialog>
  11742. <el-dialog
  11743. title="英语写作"
  11744. :visible.sync="engUpdateDialogVisible"
  11745. :append-to-body="true"
  11746. width="800px"
  11747. :before-close="handleClose"
  11748. class="dialog_diy fullStyle"
  11749. >
  11750. <div class="engUpBox">
  11751. <div class="engUpTop">
  11752. <div class="engTitle">
  11753. <div>作文题目:</div>
  11754. <div>{{ englishList1.engTitle }}</div>
  11755. </div>
  11756. <div class="engText">
  11757. <div>作文内容:</div>
  11758. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11759. </div>
  11760. </div>
  11761. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11762. <div class="oldBox">
  11763. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11764. <div class="oldText">
  11765. <div class="detailBox">
  11766. <div class="oldDetail">
  11767. <div>标题:</div>
  11768. <div>{{ oldEnglishJson.engTitle }} </div>
  11769. </div>
  11770. <div class="oldDetail1">
  11771. <div>正文:</div>
  11772. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11773. </div>
  11774. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11775. <div>图片:</div>
  11776. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11777. </div>
  11778. </div>
  11779. </div>
  11780. </div>
  11781. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11782. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11783. <div class="oldText">
  11784. <div class="detailBox" style="position: relative;">
  11785. <div class="oldDetail">
  11786. <div>标题:</div>
  11787. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11788. <div v-else v-html="newEnglishList.engTitle"></div>
  11789. </div>
  11790. <div class="oldDetail">
  11791. <div>正文:</div>
  11792. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11793. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11794. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div> -->
  11795. </div>
  11796. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11797. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11798. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11799. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11800. </div>
  11801. </div>
  11802. </div>
  11803. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11804. <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">
  11805. <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>
  11806. <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>
  11807. </div>
  11808. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11809. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11810. <div class="detailBox" style="position: relative;">
  11811. <div class="oldDetail">
  11812. <div>标题:</div>
  11813. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11814. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11815. </div>
  11816. <div class="oldDetail">
  11817. <div>正文:</div>
  11818. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11819. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11820. </div>
  11821. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11822. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11823. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11824. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11825. </div>
  11826. </div>
  11827. <div class="oldText" v-else-if="newEngIndex == -1">
  11828. <div class="detailBox" style="position: relative;">
  11829. <div class="oldDetail">
  11830. <div>标题:</div>
  11831. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11832. <div v-else v-html="newEnglishList.engTitle"></div>
  11833. </div>
  11834. <div class="oldDetail">
  11835. <div>正文:</div>
  11836. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11837. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11838. </div>
  11839. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11840. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11841. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11842. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11843. </div>
  11844. </div>
  11845. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11846. <div class="detailBox" style="position: relative;">
  11847. <div class="oldDetail">
  11848. <div>标题:</div>
  11849. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11850. <div v-else>
  11851. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  11852. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11853. </div>
  11854. </div>
  11855. <div class="oldDetail">
  11856. <div>正文:</div>
  11857. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11858. <div v-else>
  11859. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11860. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11861. </div>
  11862. </div>
  11863. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11864. <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>
  11865. <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>
  11866. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11867. </div>
  11868. </div>
  11869. </div>
  11870. </div>
  11871. </div>
  11872. <span slot="footer" class="dialog-footer">
  11873. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11874. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11875. </span>
  11876. </el-dialog>
  11877. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11878. <interVideo
  11879. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11880. :videoJson="videoJson"
  11881. :userid="userid"
  11882. :id="id"
  11883. :courseType="courseType"
  11884. :taskCount="taskCount"
  11885. :toolindex="toolindex"
  11886. :videoType="videoType"
  11887. ></interVideo>
  11888. <UpdateMore
  11889. :dialogVisibleMember.sync="dialogVisibleMember"
  11890. :cList="uploadStudentJuri"
  11891. :userid="userid"
  11892. :searchTN="worksSName2"
  11893. @setPlname="setPlname"
  11894. ></UpdateMore>
  11895. <wordCloud
  11896. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11897. :data="wordCloudData"
  11898. ></wordCloud>
  11899. <el-dialog
  11900. title="挑人"
  11901. :visible.sync="dialogVisiblePickPeople"
  11902. width="650px"
  11903. :before-close="handleClose"
  11904. class="dialog_diy"
  11905. center
  11906. >
  11907. <div class="pick_box">
  11908. <div
  11909. class="noWorksName"
  11910. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11911. v-for="(item, index) in uploadStudentJuri"
  11912. :key="index"
  11913. @click="pickStudent(item)"
  11914. >
  11915. {{ item.name }}
  11916. </div>
  11917. </div>
  11918. </el-dialog>
  11919. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11920. :englishVoiceJson='englishVoiceJson'
  11921. :userid="userid"
  11922. :id="id"
  11923. :courseType="courseType"
  11924. :taskCount="taskCount"
  11925. :toolindex="toolindex"
  11926. @selectSWorks="selectSWorks"
  11927. @selectStudent="selectStudent"
  11928. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11929. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11930. :userid="userid"
  11931. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11932. :commentDetail="commentDetail"
  11933. :courseDetail="courseDetail"
  11934. :wScore="wScore"
  11935. :scoreDetail="scoreDetail"
  11936. @selectSWorks="selectSWorks"
  11937. @selectStudent="selectStudent"></checkEnglishVoice>
  11938. </div>
  11939. </template>
  11940. <script>
  11941. import "../../common/aws-sdk-2.235.1.min.js";
  11942. // import pdf from "../components/pdf3";
  11943. import pdf from "../components/vpdf";
  11944. import AskStatic from "../components/askStatic";
  11945. import AskStatic2 from "../components/askStatic2";
  11946. import AnswerData2 from "../components/answerData2";
  11947. import AnswerData from "../components/answerData";
  11948. import EditorBar from "../tools/wangEnduit.vue";
  11949. import Table from "../tools/table.vue";
  11950. import Time from "../tools/time.vue";
  11951. import Mind from "../tools/jsmind.vue";
  11952. import Sunburst from "../tools/sunburst";
  11953. import SeeBoard from "../tools/seeBoard";
  11954. import * as imageConversion from "image-conversion";
  11955. import Audio from "../components/audio.vue";
  11956. import ImgDraw from "../tools/imgDraw/imgDraw";
  11957. import { Empty } from "element-ui";
  11958. import RecordRTC from "recordrtc";
  11959. import interVideo from "../interVideo/index.vue";
  11960. import UpdateMore from "../updateMore/updateMore.vue";
  11961. import wordCloud from "../wordCloud/index.vue";
  11962. import axios from "axios";
  11963. import JSZip from "jszip";
  11964. import FileSaver from "file-saver";
  11965. import onlineWrite from "./commpont/onlineWrite";
  11966. import englishEva from "../components/englishEva";
  11967. import * as Diff from 'diff'
  11968. import EnglishVoice from '../EnglishVoice2/index.vue'
  11969. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  11970. import correctText from '../components/correctText.vue'
  11971. import scoreItem from '../scoreList/scoreItem.vue'
  11972. import scoreZong from '../scoreZong/index.vue'
  11973. import classRoomHelper from '../classRoomHelper/index.vue'
  11974. import markScore from "./commpont/markScore";
  11975. const getFile = (url) => {
  11976. return new Promise((resolve, reject) => {
  11977. var credentials = {
  11978. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11979. secretAccessKey: "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",
  11980. }; //秘钥形式的登录上传
  11981. window.AWS.config.update(credentials);
  11982. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11983. let url2 = url;
  11984. let _url2 = "";
  11985. if (
  11986. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11987. ) {
  11988. _url2 = url2.split(
  11989. "https://view.officeapps.live.com/op/view.aspx?src="
  11990. )[1];
  11991. } else {
  11992. _url2 = url2;
  11993. }
  11994. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11995. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11996. var params = {
  11997. Bucket: "ccrb",
  11998. Key: name
  11999. };
  12000. s3.getObject(params, function (err, data) {
  12001. if (err) {
  12002. console.log(err, err.stack)
  12003. resolve({ data: 1 });
  12004. }else {
  12005. resolve({ data: data.Body });
  12006. console.log(data);
  12007. } // sxuccessful response
  12008. });
  12009. // axios({
  12010. // method: "get",
  12011. // url,
  12012. // responseType: "blob",
  12013. // })
  12014. // .then((data) => {
  12015. // resolve({ data: data.data });
  12016. // })
  12017. // .catch((error) => {
  12018. // resolve({ data: 1 });
  12019. // // reject(error.toString());
  12020. // });
  12021. });
  12022. };
  12023. export default {
  12024. components: {
  12025. EditorBar,
  12026. Time,
  12027. pdf,
  12028. AskStatic,
  12029. AskStatic2,
  12030. Mind,
  12031. Sunburst,
  12032. SeeBoard,
  12033. AnswerData2,
  12034. AnswerData,
  12035. Audio,
  12036. ImgDraw,
  12037. Table,
  12038. interVideo,
  12039. UpdateMore,
  12040. wordCloud,
  12041. onlineWrite,
  12042. englishEva,
  12043. EnglishVoice,
  12044. checkEnglishVoice,
  12045. correctText,
  12046. scoreItem,
  12047. classRoomHelper,
  12048. scoreZong,
  12049. markScore
  12050. },
  12051. data() {
  12052. return {
  12053. bg: null,
  12054. drawShow: false,
  12055. dialogVisible: false,
  12056. dialogVisiblePl: false,
  12057. commentDialogVisible: false,
  12058. dialogVisibleMember: false,
  12059. dialogVisibleWordCloud: false,
  12060. videoVisible: false,
  12061. isStar: false,
  12062. studentEvalDialogVisible: false,
  12063. studentEvalDialogVisibleTeacher: false,
  12064. dialogVisibleSelect: false,
  12065. dialogVisibleSelectTeacher: false,
  12066. dialogVisibleScore: false,
  12067. dialogVisibleENScore: false,
  12068. dialogVisibleSentence: false,
  12069. dialogVisibleSentenceTeacher: false,
  12070. dialogVisibleSentence1: false,
  12071. dialogVisibleWorks: false,
  12072. dialogVisibleTable: false,
  12073. dialogVisibleTableTeacher: false,
  12074. dialogVisibleWord: false,
  12075. dialogVisibleWordTeacher: false,
  12076. dialogVisibleTable2: false,
  12077. dialogVisibleTable3: false,
  12078. dialogVisibleGroupWork: false,
  12079. dialogVisibleUpdateGroup: false,
  12080. dialogVisibleDeleteGroup: false,
  12081. dialogVisibleSname: false,
  12082. dialogVisibleVideo: false,
  12083. dialogVisiblePickPeople: false,
  12084. engDialogVisible: false,
  12085. engUpdateDialogVisible:false,
  12086. engEvaDialogVisible: false,
  12087. evaEngJson: {
  12088. teacherJson: {},
  12089. studentJson: {},
  12090. message: {},
  12091. },
  12092. isNoUserid:false,
  12093. engListLength:0,
  12094. engWid:"",
  12095. newEnglishList:{
  12096. engTitle:"",
  12097. engText:"",
  12098. },
  12099. newEnglishList1:[],
  12100. oldEnglishJson:{},
  12101. oldEnglishJson1:{},
  12102. englishList1:{},
  12103. englishList:{},
  12104. myAnswerList1:{},
  12105. topHeight:0,
  12106. newEngIndex:-1,
  12107. englishToolIndex:0,
  12108. userMes:{},
  12109. englishToolIndex:0,
  12110. worksSName: "",
  12111. classJuri: [],
  12112. uploadStudentJuri: [],
  12113. uploadCid: "",
  12114. snameWid: "",
  12115. sStudent: {},
  12116. sTool: "",
  12117. bzText: "",
  12118. commentDetail: [],
  12119. selectAnswer: [],
  12120. videoDetail: {},
  12121. selectJson: {},
  12122. englishList: {},
  12123. topHeight:0,
  12124. eScore: { eBzText: "", eStar: [] },
  12125. id: this.$route.query.courseId,
  12126. userid: this.$route.query.userid,
  12127. classId: this.$route.query.cid,
  12128. // courseTypeLine: this.$route.query.type,
  12129. oid: this.$route.query.oid,
  12130. org: this.$route.query.org,
  12131. tType: this.$route.query.tType,
  12132. courseType: this.$route.query.type,
  12133. screenType: this.$route.query.screenType,
  12134. tcid2: this.$route.query.tcid,
  12135. tcid: "",
  12136. pptImgUrl: "",
  12137. pptImgUrl1: "",
  12138. commentText: "",
  12139. full: false,
  12140. sIsOpen: false,
  12141. IsLookOpen: false,
  12142. IsFollow: false,
  12143. pzDialog: false,
  12144. contentDialog: false,
  12145. mlDialog: false,
  12146. type: 1,
  12147. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12148. sentenceList1: [],
  12149. tableJson: [],
  12150. tableJsonO: [],
  12151. wordJson: [],
  12152. wordJsonO: [],
  12153. vedio: [],
  12154. text: [],
  12155. textList: [],
  12156. line: [],
  12157. lineList: [],
  12158. chapTools: [],
  12159. chapToolList: [],
  12160. file: [],
  12161. fileC: [],
  12162. vedioTime: [],
  12163. upToolImg: "",
  12164. preTime: 0,
  12165. rateList: {
  12166. ca: 0,
  12167. },
  12168. rateParams: [],
  12169. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12170. studyJuri: [
  12171. {
  12172. content: "",
  12173. cover: [],
  12174. upVedio: [],
  12175. upFile: [],
  12176. },
  12177. ],
  12178. isClose: 0,
  12179. plworkFile: [],
  12180. mr: require("../../assets/vedioPic.png"),
  12181. word: require("../../assets/icon/isWord.png"),
  12182. word2: require("../../assets/icon/word2.png"),
  12183. video: require("../../assets/icon/isVideo.png"),
  12184. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12185. likes: require("../../assets/icon/comment/likes.png"),
  12186. scoreImg: require("../../assets/score.png"),
  12187. courseDetail: {},
  12188. reply: "",
  12189. isSelect: false,
  12190. chapInfo: [],
  12191. chapInfoList: [],
  12192. taskCount: 0,
  12193. imgList: [],
  12194. noImgList: [],
  12195. pzList: [],
  12196. timeWorkList: [],
  12197. PlTextList: [
  12198. "Excellent!",
  12199. "nice!",
  12200. "很有创意!",
  12201. "还不错哦~",
  12202. "继续努力哦~",
  12203. ],
  12204. isClickNav: "",
  12205. navId: "",
  12206. playerOptions: {
  12207. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12208. autoplay: false, //如果true,浏览器准备好时开始回放。
  12209. muted: false, // 默认情况下将会消除任何音频。
  12210. loop: false, // 导致视频一结束就重新开始。
  12211. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12212. language: "zh-CN",
  12213. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12214. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12215. sources: [
  12216. {
  12217. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12218. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12219. },
  12220. ],
  12221. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12222. // poster: dataRes.imgUrl, //你的封面地址
  12223. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12224. controlBar: {
  12225. timeDivider: true, //当前时间和持续时间的分隔符
  12226. durationDisplay: true, //显示持续时间
  12227. remainingTimeDisplay: false, //是否显示剩余时间功能
  12228. fullscreenToggle: true, //全屏按钮
  12229. },
  12230. },
  12231. playerOptions1: {
  12232. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12233. autoplay: false, //如果true,浏览器准备好时开始回放。
  12234. muted: false, // 默认情况下将会消除任何音频。
  12235. loop: false, // 导致视频一结束就重新开始。
  12236. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12237. language: "zh-CN",
  12238. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12239. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12240. sources: [
  12241. {
  12242. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12243. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12244. },
  12245. ],
  12246. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12247. // poster: dataRes.imgUrl, //你的封面地址
  12248. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12249. controlBar: {
  12250. timeDivider: true, //当前时间和持续时间的分隔符
  12251. durationDisplay: true, //显示持续时间
  12252. remainingTimeDisplay: false, //是否显示剩余时间功能
  12253. fullscreenToggle: true, //全屏按钮
  12254. },
  12255. },
  12256. playerO: {},
  12257. noneBtnImg: false,
  12258. proVisible: false,
  12259. proVisible2: false,
  12260. progress: 0,
  12261. isFinishSize: 0,
  12262. isAllSize: 0,
  12263. questionAnswer: "",
  12264. answerQ: "", //问答标题
  12265. rateJson: [],
  12266. wbCount: 0,
  12267. wordCount: 0,
  12268. mindCount: 0,
  12269. askCount: 0,
  12270. noteCount: 0,
  12271. mindNetWorkCount: 0,
  12272. libraryCount: 0,
  12273. workCount: 0,
  12274. timeCount: 0,
  12275. answerCount: 0,
  12276. trainCount: 0,
  12277. evalCount: 0,
  12278. dialogImageUrl: "",
  12279. pictureDialog: false,
  12280. toolTypeList: [],
  12281. dialogVisible1: false,
  12282. dialogVisible2: false,
  12283. dialogVisible3: false,
  12284. dialogVisible6: false,
  12285. dialogVisible4: false,
  12286. isNoHomeWork: false,
  12287. dialogVisible5: false,
  12288. dialogVisible5Teacher: false,
  12289. dialogVisibleChoice: false,
  12290. dialogVisibleChoiceTeacher: false,
  12291. answerDialogVisible: false,
  12292. answerDialogVisibleTeacher: false,
  12293. juriVisible: false,
  12294. timeDialogVisible: false,
  12295. replyDialogVisible: false,
  12296. toolDialogVisible: false,
  12297. replyIndex: 0,
  12298. replyPid: "",
  12299. radio: [],
  12300. isAsk: false,
  12301. askJson: {
  12302. askCount: 1,
  12303. askTitle: "",
  12304. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12305. },
  12306. testJson: {},
  12307. videoType:0,
  12308. checkJson: [],
  12309. askList: [],
  12310. answerList: [],
  12311. navList: [],
  12312. addPzDialog: false,
  12313. pzConText: "",
  12314. worksStudent: [],
  12315. isCloseList: [],
  12316. workStudent: [],
  12317. groupStudent: [],
  12318. groupStudentUid: [],
  12319. noWorksS: [],
  12320. isWorksS: [],
  12321. noWorksStudent: [],
  12322. toolindex: 0,
  12323. toolDetailIndex: null,
  12324. groupIndex: 0,
  12325. workTypeB: false,
  12326. workTypeC: false,
  12327. isAnswer: false,
  12328. isHovered: false,
  12329. isHovered1: false,
  12330. isHovered2: false,
  12331. commentTagShow:0,
  12332. timer: null,
  12333. opertimer: null,
  12334. showType: 0,
  12335. fileType: 0,
  12336. showPDF: false,
  12337. noteName: "",
  12338. evaJuri: [],
  12339. evalua: "",
  12340. eTitle: "",
  12341. eName: "",
  12342. eJson: {},
  12343. fid: "", //一级
  12344. sid: "", //二级
  12345. tid: "", //二级
  12346. typeMode: 1,
  12347. eJSONNum: 0,
  12348. Etype: 1,
  12349. data: {
  12350. meta: {
  12351. name: "example",
  12352. author: "dd@163.com",
  12353. version: "0.2",
  12354. },
  12355. format: "node_array",
  12356. data: [{ id: "root", isroot: true, topic: "" }],
  12357. },
  12358. fullDialogVisible: false,
  12359. fulltype: "",
  12360. fullUrl: "",
  12361. commentIndexJson: {},
  12362. Stbodywidth: 0,
  12363. ispzType: 0,
  12364. pzType: 1,
  12365. wScore: 0,
  12366. scoreDetail: "",
  12367. videoStart: false,
  12368. recorder: null,
  12369. groupJson: {},
  12370. islock: false,
  12371. groupJson2: {},
  12372. dialogVisibleGroup: false,
  12373. dialogVisibleGroup2: false,
  12374. updateGroupArray: [],
  12375. updateGroupUser: {},
  12376. deleteGroupUser: [],
  12377. deleteGroupArray: {},
  12378. checkChair: "",
  12379. checkDeleteGroup: [],
  12380. inviteCode: "",
  12381. courseGroupStudent: [],
  12382. courseGroupStudentUid: [],
  12383. courseGroup: {},
  12384. isGroup: false,
  12385. toolIndex: null,
  12386. tool: {},
  12387. isWorkTool: [
  12388. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12389. ], //, 40
  12390. videoJson: {},
  12391. toolType: 0,
  12392. checktoolArray: [],
  12393. vChapterData: [],
  12394. isUpdateToolDetail: false,
  12395. isUpdateToolDetail1: false,
  12396. updateToolDetailInner: "",
  12397. checkboxList: [],
  12398. plIndex: "",
  12399. worksSName2: "",
  12400. worksSid: "",
  12401. wordCloudData: [],
  12402. isPickStudent: [],
  12403. pzStype: 1,
  12404. downLoading: false,
  12405. greyType: false,
  12406. correctWord: [],
  12407. EnglishVoiceDialog: false,
  12408. englishVoiceJson: {},
  12409. englishVoiceJsonWork:[],
  12410. scoreList:{
  12411. listdata:[],
  12412. isScoreList:[],
  12413. },
  12414. classRoomHelperWidth: '85px',
  12415. orgArray:[],
  12416. oidArray:[],
  12417. refreshKey:0,
  12418. AIloading:[],
  12419. worksStudentCopy:[],
  12420. loopLoading:[],
  12421. };
  12422. },
  12423. methods: {
  12424. getAIJ(){
  12425. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  12426. let oid = res.data[0];
  12427. let org = res.data[1];
  12428. let oidArray = [];
  12429. let orgArray = [];
  12430. oid.forEach(i=>oidArray.push(i.oid))
  12431. org.forEach(i=>orgArray.push(i.oid))
  12432. this.orgArray = orgArray;
  12433. this.oidArray = oidArray;
  12434. })
  12435. },
  12436. async loopEva(con,tit,stage,task,toolIndex,toolDetail,worksStudent){
  12437. console.log(con,tit,stage,task,toolIndex,toolDetail);
  12438. let jude = false
  12439. this.AIloading.forEach((e,index)=>{
  12440. if(index == toolIndex){
  12441. e.forEach(k=>{
  12442. if(k.loading == true)
  12443. jude=true
  12444. })
  12445. }
  12446. })
  12447. if(jude) return this.$message.info('请勿同时间进行AI评分')
  12448. this.AIloading.forEach((e,index)=>{
  12449. if(index == toolIndex){
  12450. e.forEach(k=>{
  12451. k.loading=true
  12452. })
  12453. }
  12454. })
  12455. this.loopLoading[toolIndex].loading=true
  12456. // return console.log(this.loopLoading,this.AIloading);
  12457. let _text = ''
  12458. for (let i = 0; i < tit.length; i++) {
  12459. _text += `评价名称:${tit[i].value} 评价描述:${tit[i].detail} \n`
  12460. }
  12461. for (let i = 0; i < con.length; i++) {
  12462. let msg = `NOTICE
  12463. Role: 你是一个专业的项目式学习导师,你要对学生的评价高度负责。你要根据“五级评价细则”给学生作品评分,并生成需要的JSON数据。
  12464. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  12465. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12466. Instruction: Based on the context, follow "Format example", write content.
  12467. #Context
  12468. ##要求
  12469. 根据<评价细则>和<作业内容>与<作业题目>的相关性评价作业,判断该作业属于五级中的哪个等级。
  12470. 具体的评价标准分为5级——1级,2级,3级,4级,5级。
  12471. 1 级,没有识别问题和需求;
  12472. 2 级,问题或需求没有被清晰理解或准确识别;
  12473. 3 级,问题或需求的一部分被识别;
  12474. 4 级,问题或需求的大部分被识别;
  12475. 5 级,问题或需求都被识别。
  12476. ##评分资料
  12477. 评价细则:${_text}
  12478. 作业题目:${toolDetail}
  12479. 作业内容:${JSON.parse(con[i].works).text}
  12480. # Format example
  12481. [{'评价名称':'评价等级0-5(数字)'},{'评价名称':'评价等级0-5(数字)'},{'评价名称':'评价等级0-5(数字)'},{'评价名称':'评价等级0-5(数字)'}]
  12482. `
  12483. let mk = `markSco${toolIndex}${i}`
  12484. await this.$refs[mk][0].aiupdetaSco(msg,con[i].userid,stage,task)
  12485. // this.refreshKey++
  12486. this.$refs[mk][0].getData()
  12487. this.AIloading[toolIndex][i].loading=false
  12488. }
  12489. worksStudent.forEach((e,index)=>{
  12490. if(toolIndex != index){
  12491. e.forEach((i,inx)=>{
  12492. let mk = `markSco${index}${inx}`
  12493. this.$refs[mk][0].getData()
  12494. })
  12495. }
  12496. })
  12497. this.loopLoading[toolIndex].loading = false;
  12498. },
  12499. // 组件刷新
  12500. refreshAssembly(val){
  12501. this.refreshKey++
  12502. console.log(this.refreshKey)
  12503. },
  12504. updateLoading(payload){
  12505. this.AIloading[payload.val][payload.val2].loading=payload.val3
  12506. },
  12507. handleShow(toolIndex,val) {
  12508. let mk = `markSco${toolIndex}${val}`
  12509. // console.log(mk);
  12510. this.$refs[mk][0].getData()
  12511. },
  12512. handleHide(toolIndex,val,worksStudent) {
  12513. console.log(worksStudent)
  12514. let mk = `markSco${toolIndex}${val}`
  12515. this.$refs[mk][0].getData()
  12516. worksStudent.forEach((e,index)=>{
  12517. if(toolIndex != index){
  12518. e.forEach((i,inx)=>{
  12519. let mk = `markSco${index}${inx}`
  12520. this.$refs[mk][0].getData()
  12521. })
  12522. }
  12523. })
  12524. },
  12525. updateDocSco(payload){
  12526. // console.log(this.AIloading[payload.val][payload.val2].sco , payload.val3);
  12527. this.AIloading[payload.val][payload.val2].sco=payload.val3
  12528. },
  12529. gx(){
  12530. this.$forceUpdate();
  12531. },
  12532. isUpdateCorrect(t,p){
  12533. if(this.greyType == false){
  12534. this.isUpdateText = t;
  12535. this.greyType = true;
  12536. }else{
  12537. if(p == 1){
  12538. this.newEnglishList.engText = this.isUpdateText;
  12539. }else if(p == 2){
  12540. this.oldEnglishJson1.engText = this.isUpdateText;
  12541. }else if(p == 3){
  12542. this.newEnglishList.engText = this.isUpdateText;
  12543. }else{
  12544. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12545. }
  12546. this.greyType = false
  12547. }
  12548. },
  12549. aiCorrect(t,p){
  12550. let aiText = "";
  12551. const loading = this.$loading.service({
  12552. background: "rgba(255, 255, 255)",
  12553. target: document.querySelectorAll(".loadingText")[0],
  12554. });
  12555. let param = {
  12556. model: "gpt-3.5-turbo",
  12557. temperature: 0,
  12558. max_tokens: 2048,
  12559. top_p: 1,
  12560. frequency_penalty: 0,
  12561. presence_penalty: 0,
  12562. messages: [
  12563. {
  12564. role: "user",
  12565. content:
  12566.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12567. },
  12568. ],
  12569. uid: this.userid,
  12570. stream: false,
  12571. };
  12572. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12573. (res) => {
  12574. if (
  12575. res.data.FunctionResponse &&
  12576. res.data.FunctionResponse.result &&
  12577. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12578. ) {
  12579. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12580. return;
  12581. }
  12582. aiText =
  12583. res.data.FunctionResponse.choices[0].message.content;
  12584. aiText = aiText.replace(/%/g,"%25");
  12585. // let w = "";
  12586. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12587. // for(var k = 0;k<a.length;k++){
  12588. // //diffWordsWithSpace
  12589. // if(a.length > 1){
  12590. // if(a[k].added == true){
  12591. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12592. // }else if(a[k].removed == true){
  12593. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12594. // }else{
  12595. // w += '<span>' + a[k].value + '</span>';
  12596. // }
  12597. // }else{
  12598. // if(p == 1){
  12599. // w = this.newEnglishList.engText;
  12600. // }else if(p == 2){
  12601. // w = this.oldEnglishJson1.engText;
  12602. // }else if(p == 3){
  12603. // w = this.newEnglishList.engText;
  12604. // }else{
  12605. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12606. // }
  12607. // }
  12608. // }
  12609. if(p == 1){
  12610. this.newEnglishList.engText = aiText;
  12611. }else if(p == 2){
  12612. this.oldEnglishJson1.engText = aiText;
  12613. }else if(p == 3){
  12614. this.newEnglishList.engText = aiText;
  12615. }else{
  12616. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12617. }
  12618. loading.close();
  12619. },
  12620. (err) => {
  12621. console.log(err);
  12622. loading.close();
  12623. }
  12624. );
  12625. },
  12626. addToolChoose() {
  12627. if (!this.checktoolArray.length) {
  12628. this.$message.error("请选择要添加的任务");
  12629. return;
  12630. }
  12631. if (
  12632. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12633. this.taskCount
  12634. ].toolChoose[0].tool.length
  12635. ) {
  12636. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12637. this.taskCount
  12638. ].toolChoose[0].tool = this.checktoolArray;
  12639. } else {
  12640. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12641. this.taskCount
  12642. ].toolChoose.push({
  12643. tool: this.checktoolArray,
  12644. toolDetail: "",
  12645. toolType: 0,
  12646. askCount: 1,
  12647. askTitle: "",
  12648. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12649. });
  12650. }
  12651. let params = [
  12652. {
  12653. cid: this.id,
  12654. chapters: JSON.stringify(this.chapInfoList),
  12655. uid: this.userid,
  12656. unitIndex: this.courseType,
  12657. },
  12658. ];
  12659. this.ajax
  12660. .post(this.$store.state.api + "updateWorkNew4", params)
  12661. .then((res) => {
  12662. this.$message({
  12663. message: "添加成功",
  12664. type: "success",
  12665. });
  12666. this.checktoolArray = [];
  12667. this.getCourseDetail(2);
  12668. this.checkBz(
  12669. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12670. this.taskCount
  12671. ].toolChoose.length - 1
  12672. );
  12673. this.toolDialogVisible = false;
  12674. this.refreshCourse();
  12675. this.$forceUpdate();
  12676. })
  12677. .catch((err) => {
  12678. console.error(err);
  12679. });
  12680. },
  12681. checkBz(index) {
  12682. this.isUpdateToolDetail = false;
  12683. this.$forceUpdate();
  12684. setTimeout(() => {
  12685. document.scrollingElement.scrollTop =
  12686. document.querySelectorAll(".filebox")[index].offsetTop +
  12687. document.querySelector(".student_body").offsetTop;
  12688. }, 500);
  12689. },
  12690. updateToolDetail(i, type) {
  12691. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12692. this.toolDetailIndex = i
  12693. this.isUpdateToolDetail1 = true;
  12694. setTimeout(() => {
  12695. this.updateToolDetailInner = JSON.parse(
  12696. JSON.stringify(
  12697. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12698. this.taskCount
  12699. ].toolChoose[i].toolDetail
  12700. )
  12701. );
  12702. document.querySelector(".checkTextArea").focus();
  12703. }, 0);
  12704. } else if((this.isUpdateToolDetail1 && type != 2)){
  12705. // this.toolDetailIndex = i;
  12706. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12707. this.taskCount
  12708. ].toolChoose[i].toolDetail = JSON.parse(
  12709. JSON.stringify(this.updateToolDetailInner)
  12710. );
  12711. let params = [
  12712. {
  12713. cid: this.id,
  12714. chapters: JSON.stringify(this.chapInfoList),
  12715. uid: this.userid,
  12716. unitIndex: this.courseType,
  12717. },
  12718. ];
  12719. this.ajax
  12720. .post(this.$store.state.api + "updateWorkNew4", params)
  12721. .then((res) => {
  12722. this.isUpdateToolDetail1 = false;
  12723. this.$message({
  12724. message: "修改成功",
  12725. type: "success",
  12726. });
  12727. this.toolDetailIndex = null;
  12728. this.updateToolDetailInner = "";
  12729. this.getCourseDetail(2);
  12730. this.$forceUpdate();
  12731. })
  12732. .catch((err) => {
  12733. console.error(err);
  12734. });
  12735. } else if((this.isUpdateToolDetail1 && type == 2)){
  12736. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12737. this.taskCount
  12738. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12739. JSON.stringify(this.updateToolDetailInner)
  12740. );
  12741. let params = [
  12742. {
  12743. cid: this.id,
  12744. chapters: JSON.stringify(this.chapInfoList),
  12745. uid: this.userid,
  12746. unitIndex: this.courseType,
  12747. },
  12748. ];
  12749. this.ajax
  12750. .post(this.$store.state.api + "updateWorkNew4", params)
  12751. .then((res) => {
  12752. this.$message({
  12753. message: "修改成功",
  12754. type: "success",
  12755. });
  12756. this.toolDetailIndex = i;
  12757. this.isUpdateToolDetail1 = true;
  12758. setTimeout(() => {
  12759. this.updateToolDetailInner = JSON.parse(
  12760. JSON.stringify(
  12761. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12762. this.taskCount
  12763. ].toolChoose[i].toolDetail
  12764. )
  12765. );
  12766. document.querySelector(".checkTextArea").focus();
  12767. }, 0);
  12768. this.getCourseDetail(2);
  12769. this.$forceUpdate();
  12770. })
  12771. .catch((err) => {
  12772. console.error(err);
  12773. });
  12774. }
  12775. },
  12776. jumpGj(i, j, k, l) {
  12777. this.refreshAssembly()
  12778. for (var z = 0; z < this.navList.length; z++) {
  12779. for (var q = 0; q < this.navList[z].task.length; q++) {
  12780. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12781. this.navList[z].task[q].tool[w].isTool = false;
  12782. }
  12783. }
  12784. }
  12785. this.navList[i].task[j].tool[k].isTool =
  12786. !this.navList[i].task[j].tool[k].isTool;
  12787. var a = document.scrollingElement;
  12788. let target = document.querySelector(`#gj${k}`);
  12789. if (target) {
  12790. target.scrollIntoView(true);
  12791. setTimeout(() => {
  12792. a.scrollTop = a.scrollTop - 150;
  12793. }, 0);
  12794. }
  12795. this.navId = ""
  12796. if (l) {
  12797. this.courseType = i;
  12798. // this.navId = l;
  12799. this.taskCount = j;
  12800. this.selectPz();
  12801. this.getHomeWork();
  12802. this.getCourseDetail(2);
  12803. }
  12804. // var b = this.$refs["bz" + k][0];
  12805. // a.scrollTop = b.offsetTop;
  12806. },
  12807. addTools2(i) {
  12808. if (i == 4) {
  12809. // this.openTools2(4);
  12810. this.$message.error("暂未开放");
  12811. return;
  12812. }
  12813. if (i == 45) {
  12814. // this.openTools2(45);
  12815. this.$message.error("暂未开放");
  12816. return;
  12817. }
  12818. if (i == 47) {
  12819. // this.openTools2(47);
  12820. this.$message.error("暂未开放");
  12821. return;
  12822. }
  12823. if (i == 49) {
  12824. // this.openTools2(49);
  12825. this.$message.error("暂未开放");
  12826. return;
  12827. }
  12828. if (i == 62) {
  12829. // this.openTools(itemTaskIndex, 62, toolIndex);
  12830. this.$message.error("暂未开放");
  12831. return;
  12832. }
  12833. if (i == 15) {
  12834. // this.openTools(itemTaskIndex, 15, toolIndex);
  12835. this.$message.error("暂未开放");
  12836. return;
  12837. }
  12838. if (i == 40) {
  12839. // this.openTools(itemTaskIndex, 40, toolIndex);
  12840. this.$message.error("暂未开放");
  12841. return;
  12842. }
  12843. if (i == 41) {
  12844. // this.openTools(itemTaskIndex, 41, toolIndex);
  12845. this.$message.error("暂未开放");
  12846. return;
  12847. }
  12848. if (i == 42) {
  12849. // this.openTools(itemTaskIndex, 42, toolIndex);
  12850. this.$message.error("暂未开放");
  12851. return;
  12852. }
  12853. if (this.checktoolArray.length > 0) {
  12854. if (this.checktoolArray.indexOf(i) != -1) {
  12855. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12856. } else {
  12857. this.checktoolArray = [];
  12858. this.checktoolArray.push(i);
  12859. }
  12860. } else {
  12861. this.checktoolArray.push(i);
  12862. }
  12863. this.$forceUpdate();
  12864. },
  12865. jump() {
  12866. window.parent.postMessage({ tools: "43" }, "*");
  12867. },
  12868. getUpdateMore(f, checkboxList, searchTN, index) {
  12869. this.dialogVisibleMember = f;
  12870. this.checkboxList = checkboxList;
  12871. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12872. this.plIndex = index;
  12873. },
  12874. setPlname(a) {
  12875. if (this.plworkFile.length) {
  12876. this.plworkFile[this.plIndex].username = a;
  12877. } else {
  12878. this.worksSName = a;
  12879. }
  12880. this.dialogVisibleMember = false;
  12881. },
  12882. previewImg(url) {
  12883. this.$hevueImgPreview(url);
  12884. },
  12885. checkImg(list) {
  12886. if (!list.length) {
  12887. return;
  12888. }
  12889. this.$hevueImgPreview({
  12890. multiple: true, // 开启多图预览模式
  12891. imgList: list, // 需要预览的多图数组
  12892. });
  12893. },
  12894. change(val) {
  12895. console.log(val);
  12896. },
  12897. goTo(path) {
  12898. this.$router.push(path);
  12899. },
  12900. handlePictureCardPreview(url) {
  12901. this.dialogImageUrl = url;
  12902. this.pictureDialog = true;
  12903. },
  12904. clean(type) {
  12905. if (type == 1) {
  12906. this.studyJuri[0].cover.splice(0, 1);
  12907. } else if (type == 2) {
  12908. this.studyJuri[0].upVedio.splice(0, 1);
  12909. } else {
  12910. this.studyJuri[0].upFile.splice(0, 1);
  12911. }
  12912. },
  12913. clean2(index) {
  12914. this.plworkFile.splice(index, 1);
  12915. },
  12916. handleClose(done) {
  12917. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12918. this.videoDetail.sources[0].src = "";
  12919. }
  12920. this.commentIndexJson = {};
  12921. done();
  12922. },
  12923. fullTools() {
  12924. this.full = !this.full;
  12925. },
  12926. imgChange(file, fileList, type) {
  12927. if (type == 1) {
  12928. var _tmp = this.studyJuri[0].cover;
  12929. } else if (type == 2) {
  12930. var _tmp = this.studyJuri[0].upVedio;
  12931. } else {
  12932. var _tmp = this.studyJuri[0].upFile;
  12933. }
  12934. this.noneBtnImg = _tmp.length >= 1;
  12935. },
  12936. setContent(bool) {
  12937. this.contentDialog = bool;
  12938. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12939. document.querySelector(".workd_media").style.height = "650px";
  12940. } else if (document.querySelector(".workd_media")) {
  12941. document.querySelector(".workd_media").style.height = "auto";
  12942. }
  12943. },
  12944. setContent2(bool) {
  12945. this.mlDialog = bool;
  12946. if (
  12947. bool &&
  12948. this.contentDialog &&
  12949. document.querySelector(".workd_media")
  12950. ) {
  12951. document.querySelector(".workd_media").style.height = "650px";
  12952. } else if (document.querySelector(".workd_media")) {
  12953. document.querySelector(".workd_media").style.height = "auto";
  12954. }
  12955. },
  12956. openToolAll() {
  12957. this.toolDialogVisible = true;
  12958. },
  12959. addImg(e) {
  12960. var el = e.currentTarget;
  12961. // this.$message.success('触发上传')
  12962. el.getElementsByTagName("input")[0].click();
  12963. e.target.value = "";
  12964. },
  12965. addSelectAnswer() {
  12966. let params = [
  12967. {
  12968. uid: this.userid,
  12969. cid: this.id,
  12970. stage: this.courseType,
  12971. task: this.taskCount,
  12972. tool: this.toolindex,
  12973. content: this.selectAnswer.answer,
  12974. type: 7,
  12975. },
  12976. ];
  12977. this.ajax
  12978. .post(this.$store.state.api + "addCourseWorks", params)
  12979. .then((res) => {
  12980. this.$message({
  12981. message: "提交成功",
  12982. type: "success",
  12983. });
  12984. this.dialogVisibleSelect = false;
  12985. // this.selectAnswer = {};
  12986. this.selectSWorks();
  12987. this.selectStudent();
  12988. })
  12989. .catch((err) => {
  12990. this.$message.error("提交失败");
  12991. console.error(err);
  12992. });
  12993. },
  12994. addSelectAnswerTeacher() {
  12995. let params = [
  12996. {
  12997. uid: this.sStudent.userid,
  12998. cid: this.id,
  12999. stage: this.courseType,
  13000. task: this.taskCount,
  13001. tool: this.toolindex,
  13002. content: this.selectAnswer.answer,
  13003. type: 7,
  13004. },
  13005. ];
  13006. this.ajax
  13007. .post(this.$store.state.api + "addCourseWorks", params)
  13008. .then((res) => {
  13009. this.$message({
  13010. message: "提交成功",
  13011. type: "success",
  13012. });
  13013. this.dialogVisibleSelectTeacher = false;
  13014. // this.selectAnswer = {};
  13015. this.selectSWorks();
  13016. this.selectStudent();
  13017. })
  13018. .catch((err) => {
  13019. this.$message.error("提交失败");
  13020. console.error(err);
  13021. });
  13022. },
  13023. addSenWorks() {
  13024. for (var i = 0; i < this.sentenceList.length; i++) {
  13025. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13026. if (
  13027. this.sentenceList[i].chooseSenList[j] == undefined ||
  13028. this.sentenceList[i].chooseSenList[j] == ""
  13029. ) {
  13030. this.$message.error("请将答案填写完整!");
  13031. return;
  13032. }
  13033. }
  13034. }
  13035. let params = [
  13036. {
  13037. uid: this.userid,
  13038. cid: this.id,
  13039. stage: this.courseType,
  13040. task: this.taskCount,
  13041. tool: this.toolindex,
  13042. content: JSON.stringify(this.sentenceList),
  13043. type: 9,
  13044. },
  13045. ];
  13046. this.ajax
  13047. .post(this.$store.state.api + "addCourseWorks", params)
  13048. .then((res) => {
  13049. this.$message({
  13050. message: "提交成功",
  13051. type: "success",
  13052. });
  13053. this.dialogVisibleSentence = false;
  13054. // this.selectAnswer = {};
  13055. this.selectSWorks();
  13056. this.selectStudent();
  13057. })
  13058. .catch((err) => {
  13059. this.$message.error("提交失败");
  13060. console.error(err);
  13061. });
  13062. },
  13063. addSenWorksTeacher() {
  13064. for (var i = 0; i < this.sentenceList.length; i++) {
  13065. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13066. if (
  13067. this.sentenceList[i].chooseSenList[j] == undefined ||
  13068. this.sentenceList[i].chooseSenList[j] == ""
  13069. ) {
  13070. this.$message.error("请将答案填写完整!");
  13071. return;
  13072. }
  13073. }
  13074. }
  13075. let params = [
  13076. {
  13077. uid: this.sStudent.userid,
  13078. cid: this.id,
  13079. stage: this.courseType,
  13080. task: this.taskCount,
  13081. tool: this.toolindex,
  13082. content: JSON.stringify(this.sentenceList),
  13083. type: 9,
  13084. },
  13085. ];
  13086. this.ajax
  13087. .post(this.$store.state.api + "addCourseWorks", params)
  13088. .then((res) => {
  13089. this.$message({
  13090. message: "提交成功",
  13091. type: "success",
  13092. });
  13093. this.dialogVisibleSentenceTeacher = false;
  13094. // this.selectAnswer = {};
  13095. this.selectSWorks();
  13096. this.selectStudent();
  13097. })
  13098. .catch((err) => {
  13099. this.$message.error("提交失败");
  13100. console.error(err);
  13101. });
  13102. },
  13103. returnTableText() {
  13104. this.$confirm("确定还原此模板吗?", "提示", {
  13105. confirmButtonText: "确定",
  13106. cancelButtonText: "取消",
  13107. type: "warning",
  13108. })
  13109. .then(() => {
  13110. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13111. })
  13112. .catch(() => {});
  13113. },
  13114. addTableWorks() {
  13115. let params = [
  13116. {
  13117. uid: this.userid,
  13118. cid: this.id,
  13119. stage: this.courseType,
  13120. task: this.taskCount,
  13121. tool: this.toolindex,
  13122. content: JSON.stringify(this.tableJson),
  13123. type: 10,
  13124. },
  13125. ];
  13126. this.ajax
  13127. .post(this.$store.state.api + "addCourseWorks", params)
  13128. .then((res) => {
  13129. this.$message({
  13130. message: "提交成功",
  13131. type: "success",
  13132. });
  13133. this.dialogVisibleTable = false;
  13134. // this.selectAnswer = {};
  13135. this.selectSWorks();
  13136. this.selectStudent();
  13137. })
  13138. .catch((err) => {
  13139. this.$message.error("提交失败");
  13140. console.error(err);
  13141. });
  13142. },
  13143. tableRowClassName({ row, rowIndex }) {
  13144. if ((rowIndex + 1) % 2 === 0) {
  13145. return "even_row";
  13146. } else {
  13147. return "";
  13148. }
  13149. },
  13150. addTableWorksTeacher() {
  13151. let params = [
  13152. {
  13153. uid: this.sStudent.userid,
  13154. cid: this.id,
  13155. stage: this.courseType,
  13156. task: this.taskCount,
  13157. tool: this.toolindex,
  13158. content: JSON.stringify(this.tableJson),
  13159. type: 10,
  13160. },
  13161. ];
  13162. this.ajax
  13163. .post(this.$store.state.api + "addCourseWorks", params)
  13164. .then((res) => {
  13165. this.$message({
  13166. message: "提交成功",
  13167. type: "success",
  13168. });
  13169. this.dialogVisibleTableTeacher = false;
  13170. // this.selectAnswer = {};
  13171. this.selectSWorks();
  13172. this.selectStudent();
  13173. })
  13174. .catch((err) => {
  13175. this.$message.error("提交失败");
  13176. console.error(err);
  13177. });
  13178. },
  13179. returnWordText() {
  13180. this.$confirm("确定还原此模板吗?", "提示", {
  13181. confirmButtonText: "确定",
  13182. cancelButtonText: "取消",
  13183. type: "warning",
  13184. })
  13185. .then(() => {
  13186. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13187. })
  13188. .catch(() => {});
  13189. },
  13190. addWordWorks() {
  13191. let params = [
  13192. {
  13193. uid: this.userid,
  13194. cid: this.id,
  13195. stage: this.courseType,
  13196. task: this.taskCount,
  13197. tool: this.toolindex,
  13198. content: JSON.stringify(this.wordJson),
  13199. type: 13,
  13200. atool: 52,
  13201. },
  13202. ];
  13203. this.ajax
  13204. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13205. .then((res) => {
  13206. this.$message({
  13207. message: "提交成功",
  13208. type: "success",
  13209. });
  13210. this.dialogVisibleWord = false;
  13211. // this.selectAnswer = {};
  13212. this.selectSWorks();
  13213. this.selectStudent();
  13214. })
  13215. .catch((err) => {
  13216. this.$message.error("提交失败");
  13217. console.error(err);
  13218. });
  13219. },
  13220. addWordWorksTeacher() {
  13221. let params = [
  13222. {
  13223. uid: this.sStudent.userid,
  13224. cid: this.id,
  13225. stage: this.courseType,
  13226. task: this.taskCount,
  13227. tool: this.toolindex,
  13228. content: JSON.stringify(this.wordJson),
  13229. type: 13,
  13230. atool: 52,
  13231. },
  13232. ];
  13233. this.ajax
  13234. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13235. .then((res) => {
  13236. this.$message({
  13237. message: "提交成功",
  13238. type: "success",
  13239. });
  13240. this.dialogVisibleWordTeacher = false;
  13241. // this.selectAnswer = {};
  13242. this.selectSWorks();
  13243. this.selectStudent();
  13244. })
  13245. .catch((err) => {
  13246. this.$message.error("提交失败");
  13247. console.error(err);
  13248. });
  13249. },
  13250. addCourseWorks(i) {
  13251. var typesql;
  13252. if (this.fileType === 0) {
  13253. typesql = 1;
  13254. } else if (this.fileType === 1) {
  13255. typesql = 4;
  13256. } else if (this.fileType === 2) {
  13257. typesql = 5;
  13258. } else if (this.fileType === 3) {
  13259. typesql = 12;
  13260. }
  13261. if (!this.studyJuri[0].cover[0].url) {
  13262. this.$message.error("请上传文件");
  13263. return;
  13264. }
  13265. let params = [
  13266. {
  13267. uid: this.userid,
  13268. cid: this.id,
  13269. stage: this.courseType,
  13270. task: i,
  13271. tool: this.toolindex,
  13272. content: this.studyJuri[0].cover[0].url,
  13273. type: typesql,
  13274. },
  13275. ];
  13276. this.ajax
  13277. .post(this.$store.state.api + "addCourseWorksR", params)
  13278. .then((res) => {
  13279. this.$message({
  13280. message: "提交成功",
  13281. type: "success",
  13282. });
  13283. this.studyJuri[0].cover = [];
  13284. this.dialogVisible = false;
  13285. this.getCourseDetail(2);
  13286. })
  13287. .catch((err) => {
  13288. this.$message.error("提交失败");
  13289. console.error(err);
  13290. });
  13291. },
  13292. addCourseWorksPl(i) {
  13293. let _files = this.plworkFile;
  13294. var c = 1;
  13295. for (var k = 0; k < _files.length; k++) {
  13296. if (!_files[k].username) {
  13297. c = 2;
  13298. }
  13299. }
  13300. if (c == 2) {
  13301. this.$message.error("请填写学生姓名");
  13302. return;
  13303. }
  13304. let params = [
  13305. {
  13306. ateacher: this.userid,
  13307. cid: this.id,
  13308. stage: this.courseType,
  13309. task: i,
  13310. tool: this.toolindex,
  13311. content: JSON.stringify(_files),
  13312. },
  13313. ];
  13314. this.ajax
  13315. .post(this.$store.state.api + "addCourseWorksPl", params)
  13316. .then((res) => {
  13317. this.$message({
  13318. message: "提交成功",
  13319. type: "success",
  13320. });
  13321. this.plworkFile = [];
  13322. this.dialogVisiblePl = false;
  13323. this.getCourseDetail(2);
  13324. })
  13325. .catch((err) => {
  13326. this.$message.error("提交失败");
  13327. console.error(err);
  13328. });
  13329. },
  13330. addCourseWorks2(i) {
  13331. var typesql;
  13332. if (this.fileType === 0) {
  13333. typesql = 0;
  13334. } else if (this.fileType === 1) {
  13335. typesql = 1;
  13336. } else if (this.fileType === 2) {
  13337. typesql = 3;
  13338. } else if (this.fileType === 3) {
  13339. typesql = 12;
  13340. }
  13341. if (!this.studyJuri[0].cover[0].url) {
  13342. this.$message.error("请上传文件");
  13343. return;
  13344. }
  13345. let params = [
  13346. {
  13347. uid: this.userid,
  13348. cid: this.id,
  13349. stage: this.courseType,
  13350. task: i,
  13351. tool: this.toolindex,
  13352. content: JSON.stringify({
  13353. type: typesql,
  13354. groupIndex: this.groupIndex,
  13355. url: this.studyJuri[0].cover[0].url,
  13356. }),
  13357. type: 11,
  13358. atool: 49,
  13359. text: "",
  13360. },
  13361. ];
  13362. this.ajax
  13363. .post(this.$store.state.api + "addCourseWorks5", params)
  13364. .then((res) => {
  13365. this.$message({
  13366. message: "提交成功",
  13367. type: "success",
  13368. });
  13369. this.studyJuri[0].cover = [];
  13370. this.dialogVisibleGroupWork = false;
  13371. this.getCourseDetail(2);
  13372. })
  13373. .catch((err) => {
  13374. this.$message.error("提交失败");
  13375. console.error(err);
  13376. });
  13377. },
  13378. addEnglishWork() {
  13379. this.myAnList = this.$refs['engJson'].myAnswerList;
  13380. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13381. this.$message.error("请输入作文标题和正文!");
  13382. return;
  13383. }
  13384. let params = [
  13385. {
  13386. uid: this.userid,
  13387. cid: this.id,
  13388. stage: this.courseType,
  13389. task: this.taskCount,
  13390. tool: this.englishToolIndex,
  13391. content: JSON.stringify(this.myAnList),
  13392. type: 16,
  13393. atool: 69,
  13394. text: "",
  13395. },
  13396. ];
  13397. this.ajax
  13398. .post(this.$store.state.api + "addCourseWorks5", params)
  13399. .then((res) => {
  13400. this.$message({
  13401. message: "提交成功",
  13402. type: "success",
  13403. });
  13404. this.myAnList = {};
  13405. this.englishList = {};
  13406. this.englishToolIndex = 0;
  13407. this.engDialogVisible = false;
  13408. this.selectSWorks();
  13409. this.selectStudent();
  13410. })
  13411. .catch((err) => {
  13412. this.$message.error("提交失败");
  13413. console.error(err);
  13414. });
  13415. },
  13416. addCourseWorksGong(i, data, tool) {
  13417. let params = [
  13418. {
  13419. uid: this.userid,
  13420. cid: this.id,
  13421. stage: this.courseType,
  13422. task: this.taskCount,
  13423. tool: i,
  13424. content: data,
  13425. type: 12,
  13426. atool: tool,
  13427. text: "",
  13428. },
  13429. ];
  13430. this.ajax
  13431. .post(this.$store.state.api + "addCourseWorks5", params)
  13432. .then((res) => {
  13433. this.$message({
  13434. message: "提交成功",
  13435. type: "success",
  13436. });
  13437. this.studyJuri[0].cover = [];
  13438. this.selectSWorks();
  13439. this.selectStudent();
  13440. })
  13441. .catch((err) => {
  13442. this.$message.error("提交失败");
  13443. console.error(err);
  13444. });
  13445. },
  13446. addCourseWorksGongTeacher(i, data, tool) {
  13447. let params = [
  13448. {
  13449. uid: this.sStudent.userid,
  13450. cid: this.id,
  13451. stage: this.courseType,
  13452. task: this.taskCount,
  13453. tool: i,
  13454. content: data,
  13455. type: 12,
  13456. atool: tool,
  13457. text: "",
  13458. },
  13459. ];
  13460. this.ajax
  13461. .post(this.$store.state.api + "addCourseWorks5", params)
  13462. .then((res) => {
  13463. this.$message({
  13464. message: "提交成功",
  13465. type: "success",
  13466. });
  13467. this.studyJuri[0].cover = [];
  13468. this.dialogVisibleWorks = false;
  13469. this.selectSWorks();
  13470. this.selectStudent();
  13471. })
  13472. .catch((err) => {
  13473. this.$message.error("提交失败");
  13474. console.error(err);
  13475. });
  13476. },
  13477. addCourseWorksGongPl(i, data, tool, type) {
  13478. let params = [
  13479. {
  13480. uid: this.sStudent.userid,
  13481. cid: this.id,
  13482. stage: this.courseType,
  13483. task: this.taskCount,
  13484. tool: i,
  13485. content: data,
  13486. type: type,
  13487. atool: tool,
  13488. text: "",
  13489. },
  13490. ];
  13491. this.ajax
  13492. .post(this.$store.state.api + "addCourseWorks5", params)
  13493. .then((res) => {
  13494. this.$message({
  13495. message: "提交成功",
  13496. type: "success",
  13497. });
  13498. this.studyJuri[0].cover = [];
  13499. this.dialogVisibleWorks = false;
  13500. this.selectSWorks();
  13501. this.selectStudent();
  13502. })
  13503. .catch((err) => {
  13504. this.$message.error("提交失败");
  13505. console.error(err);
  13506. });
  13507. },
  13508. addCourseWorksTeacher(i) {
  13509. var typesql;
  13510. if (this.sTool == 32) {
  13511. this.addCourseWorksGongTeacher(
  13512. this.toolindex,
  13513. this.studyJuri[0].cover[0].url,
  13514. this.sTool
  13515. );
  13516. return;
  13517. }
  13518. if (this.fileType === 0) {
  13519. typesql = 1;
  13520. } else if (this.fileType === 1) {
  13521. typesql = 4;
  13522. } else if (this.fileType === 2) {
  13523. typesql = 5;
  13524. } else if (this.fileType === 3) {
  13525. typesql = 12;
  13526. }
  13527. if (this.sTool == 50) {
  13528. this.addCourseWorksGongPl(
  13529. this.toolindex,
  13530. this.studyJuri[0].cover[0].url,
  13531. this.sTool,
  13532. typesql
  13533. );
  13534. return;
  13535. }
  13536. if (!this.studyJuri[0].cover[0].url) {
  13537. this.$message.error("请上传文件");
  13538. return;
  13539. }
  13540. let params = [
  13541. {
  13542. uid: this.sStudent.userid,
  13543. cid: this.id,
  13544. stage: this.courseType,
  13545. task: i,
  13546. tool: this.toolindex,
  13547. content: this.studyJuri[0].cover[0].url,
  13548. type: typesql,
  13549. ateacher: this.userid,
  13550. },
  13551. ];
  13552. this.ajax
  13553. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13554. .then((res) => {
  13555. this.$message({
  13556. message: "提交成功",
  13557. type: "success",
  13558. });
  13559. this.studyJuri[0].cover = [];
  13560. this.dialogVisibleWorks = false;
  13561. this.getCourseDetail(2);
  13562. })
  13563. .catch((err) => {
  13564. this.$message.error("提交失败");
  13565. console.error(err);
  13566. });
  13567. },
  13568. selectUploadStudent(type) {
  13569. const loading = this.$loading.service({
  13570. background: "rgba(255, 255, 255, 0.7)",
  13571. target: document.body,
  13572. });
  13573. let params = {
  13574. cid: this.uploadCid,
  13575. oid: this.oid,
  13576. cn: "",
  13577. };
  13578. this.ajax
  13579. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13580. .then((res) => {
  13581. loading.close();
  13582. var studentK = [];
  13583. if (this.isWorksS[this.toolindex].length > 0) {
  13584. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13585. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13586. }
  13587. studentK = studentK.join(",");
  13588. }
  13589. this.uploadStudentJuri = res.data[0].filter((el) => {
  13590. return studentK.indexOf(el.userid) == -1;
  13591. });
  13592. if (this.worksSName && this.worksSid) {
  13593. this.uploadStudentJuri.push({
  13594. userid: this.worksSid,
  13595. name: this.worksSName,
  13596. });
  13597. }
  13598. if (type == 1) {
  13599. this.plworkFile = [];
  13600. this.dialogVisibleSname = true;
  13601. } else if (type == 2) {
  13602. this.dialogVisiblePl = true;
  13603. }
  13604. })
  13605. .catch((err) => {
  13606. loading.close();
  13607. console.error(err);
  13608. });
  13609. },
  13610. selectPickStudent() {
  13611. const loading = this.$loading.service({
  13612. background: "rgba(255, 255, 255, 0.7)",
  13613. target: document.body,
  13614. });
  13615. let params = {
  13616. cid: this.uploadCid,
  13617. oid: this.oid,
  13618. cn: "",
  13619. };
  13620. this.ajax
  13621. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13622. .then((res) => {
  13623. loading.close();
  13624. this.uploadStudentJuri = res.data[0];
  13625. this.dialogVisiblePickPeople = true;
  13626. })
  13627. .catch((err) => {
  13628. loading.close();
  13629. console.error(err);
  13630. });
  13631. },
  13632. arrayToArray(arrayo, arrayt) {
  13633. let array1 = arrayo;
  13634. let array2 = arrayt;
  13635. let commonElements = [];
  13636. for (let i = 0; i < array1.length; i++) {
  13637. for (let j = 0; j < array2.length; j++) {
  13638. if (array1[i] === array2[j]) {
  13639. commonElements.push(array1[i]);
  13640. }
  13641. }
  13642. }
  13643. return commonElements;
  13644. },
  13645. selectWorksStudent() {
  13646. let params = {
  13647. oid: this.oid,
  13648. cid: this.courseDetail.juri,
  13649. };
  13650. this.ajax
  13651. .get(this.$store.state.api + "selectWorksStudent", params)
  13652. .then((res) => {
  13653. var a = res.data[0];
  13654. for (var i = 0; i < this.isWorksS.length; i++) {
  13655. this.noWorksS[i] = [];
  13656. var studentK = [];
  13657. if (this.isWorksS[i].length > 0) {
  13658. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13659. studentK.push(this.isWorksS[i][z].uid);
  13660. }
  13661. studentK = studentK.join(",");
  13662. for (var j = 0; j < a.length; j++) {
  13663. if (studentK.indexOf(a[j].userid) == -1) {
  13664. if (this.tcid) {
  13665. // a[j].classid.indexOf(this.tcid) != -1
  13666. if (
  13667. this.arrayToArray(
  13668. a[j].classid.split(","),
  13669. this.tcid.split(",")
  13670. ).length
  13671. ) {
  13672. this.noWorksS[i].push({
  13673. student: a[j].name,
  13674. userid: a[j].userid,
  13675. });
  13676. }
  13677. } else {
  13678. this.noWorksS[i].push({
  13679. student: a[j].name,
  13680. userid: a[j].userid,
  13681. });
  13682. }
  13683. }
  13684. }
  13685. } else {
  13686. for (var k = 0; k < a.length; k++) {
  13687. if (this.tcid) {
  13688. if (
  13689. this.arrayToArray(
  13690. a[k].classid.split(","),
  13691. this.tcid.split(",")
  13692. ).length
  13693. ) {
  13694. this.noWorksS[i].push({
  13695. student: a[k].name,
  13696. userid: a[k].userid,
  13697. });
  13698. }
  13699. } else {
  13700. this.noWorksS[i].push({
  13701. student: a[k].name,
  13702. userid: a[k].userid,
  13703. });
  13704. }
  13705. }
  13706. }
  13707. }
  13708. this.$forceUpdate();
  13709. if (
  13710. Object.keys(this.commentDetail).length &&
  13711. Object.keys(this.commentIndexJson).length &&
  13712. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13713. ) {
  13714. let a = 1;
  13715. let c = this.commentIndexJson;
  13716. if (
  13717. this.commentIndexJson.gindex ||
  13718. this.commentIndexJson.gindex === 0
  13719. ) {
  13720. for (
  13721. var i = 0;
  13722. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13723. i++
  13724. ) {
  13725. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13726. groupA: for (var k = 0; k < _el.length; k++) {
  13727. let el = _el[k];
  13728. if (el.wid == this.commentDetail.wid) {
  13729. a = 2;
  13730. this.commentOther(
  13731. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13732. this.commentIndexJson.toolIndex,
  13733. k,
  13734. this.commentIndexJson.gindex
  13735. );
  13736. break groupA;
  13737. }
  13738. }
  13739. }
  13740. if (a === 1) {
  13741. this.commentDetail = [];
  13742. this.commentIndexJson = {};
  13743. this.commentDialogVisible = false;
  13744. this.$message("此作业已被删除");
  13745. }
  13746. } else {
  13747. if (this.isGroup && this.commentIndexJson.gid) {
  13748. groupA: for (
  13749. var i = 0;
  13750. i < this.courseGroup.group.length;
  13751. i++
  13752. ) {
  13753. let _group = this.courseGroup.group[i];
  13754. if (_group.id == this.commentIndexJson.gid) {
  13755. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13756. for (var k = 0; k < _el2.length; k++) {
  13757. let el2 = _el2[k];
  13758. if (el2.wid == this.commentDetail.wid) {
  13759. a = 2;
  13760. this.commentOther(
  13761. _el2[k],
  13762. this.commentIndexJson.toolIndex,
  13763. k,
  13764. null,
  13765. this.commentIndexJson.gid
  13766. );
  13767. break groupA;
  13768. }
  13769. }
  13770. }
  13771. }
  13772. }
  13773. if (a == 1) {
  13774. for (
  13775. var i = 0;
  13776. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13777. i++
  13778. ) {
  13779. let el =
  13780. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13781. if (el.wid == this.commentDetail.wid) {
  13782. a = 2;
  13783. this.commentOther(
  13784. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13785. this.commentIndexJson.toolIndex,
  13786. i
  13787. );
  13788. break;
  13789. }
  13790. }
  13791. }
  13792. if (a === 1) {
  13793. this.commentDetail = [];
  13794. this.commentIndexJson = {};
  13795. this.commentDialogVisible = false;
  13796. this.$message("此作业已被删除");
  13797. }
  13798. }
  13799. }
  13800. })
  13801. .catch((err) => {
  13802. console.error(err);
  13803. });
  13804. },
  13805. selectStudent() {
  13806. //学生查看自己作业
  13807. let params = {
  13808. uid: this.userid,
  13809. cid: this.id,
  13810. s: this.courseType,
  13811. t: this.taskCount,
  13812. };
  13813. this.ajax
  13814. .get(this.$store.state.api + "selectStudentWorks", params)
  13815. .then((res) => {
  13816. var a =
  13817. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13818. this.taskCount
  13819. ].toolChoose;
  13820. var b = res.data[0];
  13821. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13822. var y = [
  13823. "AVI",
  13824. "NAVI",
  13825. "MPEG",
  13826. "ASF",
  13827. "MOV",
  13828. "WMV",
  13829. "3GP",
  13830. "RM",
  13831. "RMVB",
  13832. "FLV",
  13833. "F4V",
  13834. "H.264",
  13835. "H.265",
  13836. "REAL VIDEO",
  13837. "MKV",
  13838. "WebM",
  13839. "HDDVD",
  13840. "MP4",
  13841. "MPG",
  13842. "M4V",
  13843. "MGV",
  13844. "OGV",
  13845. "QTM",
  13846. "STR",
  13847. "AMC",
  13848. "DVX",
  13849. "EVO",
  13850. "DAT",
  13851. "OGG",
  13852. "OGM",
  13853. ];
  13854. for (var i = 0; i < a.length; i++) {
  13855. this.workStudent[i] = [];
  13856. for (var j = 0; j < b.length; j++) {
  13857. if (i == b[j].tool) {
  13858. if (
  13859. (b[j].type == 1 ||
  13860. b[j].type == 4 ||
  13861. b[j].type == 5 ||
  13862. b[j].type == 6 ||
  13863. b[j].type == 12 ||
  13864. b[j].type == 7) &&
  13865. a[i].tool[0] != 15 &&
  13866. a[i].tool[0] != 4 &&
  13867. a[i].tool[0] != 45 &&
  13868. a[i].tool[0] != 50 &&
  13869. a[i].tool[0] != 32 &&
  13870. a[i].tool[0] != 57 &&
  13871. a[i].tool[0] != 52 &&
  13872. a[i].tool[0] != 69
  13873. ) {
  13874. if (
  13875. c.indexOf(
  13876. b[j].content
  13877. .split(".")
  13878. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13879. ) != -1 &&
  13880. a[i].tool[0] == 16 &&
  13881. b[j].atool != 50
  13882. ) {
  13883. this.workStudent[i].push({
  13884. works: b[j].content,
  13885. sName: b[j].name,
  13886. score: b[j].score,
  13887. img: b[j].img,
  13888. type: 1,
  13889. time: b[j].time,
  13890. userid: b[j].userid,
  13891. wid: b[j].id,
  13892. });
  13893. } else if (
  13894. y.indexOf(
  13895. b[j].content
  13896. .split(".")
  13897. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13898. ) != -1 &&
  13899. a[i].tool[0] == 16 &&
  13900. b[j].atool != 50
  13901. ) {
  13902. this.workStudent[i].push({
  13903. userid: b[j].userid,
  13904. wid: b[j].id,
  13905. works: b[j].content,
  13906. sName: b[j].name,
  13907. score: b[j].score,
  13908. img: b[j].img,
  13909. type: 3,
  13910. time: b[j].time,
  13911. });
  13912. } else if (b[j].type == 6 && b[j].atool != 50) {
  13913. this.workStudent[i].push({
  13914. userid: b[j].userid,
  13915. wid: b[j].id,
  13916. works: b[j].content,
  13917. sName: b[j].name,
  13918. score: b[j].score,
  13919. img: b[j].img,
  13920. type: 4,
  13921. time: b[j].time,
  13922. });
  13923. } else if (b[j].type == 7 && b[j].atool != 50) {
  13924. this.workStudent[i].push({
  13925. userid: b[j].userid,
  13926. wid: b[j].id,
  13927. works: b[j].content,
  13928. sName: b[j].name,
  13929. score: b[j].score,
  13930. img: b[j].img,
  13931. type: 5,
  13932. time: b[j].time,
  13933. });
  13934. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13935. this.workStudent[i].push({
  13936. works: b[j].content,
  13937. sName: b[j].name,
  13938. score: b[j].score,
  13939. img: b[j].img,
  13940. type: 12,
  13941. time: b[j].time,
  13942. userid: b[j].userid,
  13943. wid: b[j].id,
  13944. });
  13945. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  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: 0,
  13952. time: b[j].time,
  13953. userid: b[j].userid,
  13954. wid: b[j].id,
  13955. });
  13956. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13957. this.workStudent[i].push({
  13958. works: b[j].content,
  13959. sName: b[j].name,
  13960. score: b[j].score,
  13961. img: b[j].img,
  13962. type: 0,
  13963. time: b[j].time,
  13964. userid: b[j].userid,
  13965. wid: b[j].id,
  13966. });
  13967. }
  13968. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13969. this.workStudent[i].push({
  13970. works: b[j].content,
  13971. sName: b[j].name,
  13972. score: b[j].score,
  13973. img: b[j].img,
  13974. type: 2,
  13975. time: b[j].time,
  13976. userid: b[j].userid,
  13977. wid: b[j].id,
  13978. });
  13979. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13980. //问卷
  13981. this.workStudent[i].push({
  13982. works: b[j].content,
  13983. sName: b[j].name,
  13984. score: b[j].score,
  13985. img: b[j].img,
  13986. type: 2,
  13987. time: b[j].time,
  13988. userid: b[j].userid,
  13989. wid: b[j].id,
  13990. });
  13991. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13992. //选择题
  13993. this.workStudent[i].push({
  13994. works: b[j].content,
  13995. sName: b[j].name,
  13996. score: b[j].score,
  13997. img: b[j].img,
  13998. type: 8,
  13999. time: b[j].time,
  14000. userid: b[j].userid,
  14001. wid: b[j].id,
  14002. });
  14003. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14004. //选择题
  14005. this.workStudent[i].push({
  14006. works: b[j].content,
  14007. sName: b[j].name,
  14008. score: b[j].score,
  14009. img: b[j].img,
  14010. type: 9,
  14011. time: b[j].time,
  14012. userid: b[j].userid,
  14013. wid: b[j].id,
  14014. });
  14015. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14016. //选择题
  14017. this.workStudent[i].push({
  14018. works: b[j].content,
  14019. sName: b[j].name,
  14020. score: b[j].score,
  14021. img: b[j].img,
  14022. type: 10,
  14023. time: b[j].time,
  14024. userid: b[j].userid,
  14025. wid: b[j].id,
  14026. });
  14027. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14028. //选择题
  14029. this.workStudent[i].push({
  14030. works: b[j].content,
  14031. sName: b[j].name,
  14032. score: b[j].score,
  14033. img: b[j].img,
  14034. type: 13,
  14035. time: b[j].time,
  14036. userid: b[j].userid,
  14037. wid: b[j].id,
  14038. });
  14039. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14040. //选择题
  14041. this.workStudent[i].push({
  14042. works: b[j].content,
  14043. sName: b[j].name,
  14044. score: b[j].score,
  14045. img: b[j].img,
  14046. type: 12,
  14047. time: b[j].time,
  14048. userid: b[j].userid,
  14049. wid: b[j].id,
  14050. });
  14051. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14052. //选择题
  14053. this.workStudent[i].push({
  14054. works: b[j].content,
  14055. sName: b[j].name,
  14056. score: b[j].score,
  14057. img: b[j].img,
  14058. type: 12,
  14059. time: b[j].time,
  14060. userid: b[j].userid,
  14061. wid: b[j].id,
  14062. });
  14063. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14064. //选择题
  14065. this.workStudent[i].push({
  14066. works: b[j].content,
  14067. sName: b[j].name,
  14068. score: b[j].score,
  14069. img: b[j].img,
  14070. type: 15,
  14071. time: b[j].time,
  14072. userid: b[j].userid,
  14073. wid: b[j].id,
  14074. });
  14075. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14076. //英语写作
  14077. this.workStudent[i].push({
  14078. works: b[j].content,
  14079. sName: b[j].name,
  14080. score: b[j].score,
  14081. img: b[j].img,
  14082. type: 16,
  14083. time: b[j].time,
  14084. userid: b[j].userid,
  14085. wid: b[j].id,
  14086. aiCode: b[j].aiCode,
  14087. teacherCode: b[j].teacherCode
  14088. });
  14089. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14090. //英语写作
  14091. this.workStudent[i].push({
  14092. works: b[j].content,
  14093. sName: b[j].name,
  14094. score: b[j].score,
  14095. img: b[j].img,
  14096. type: 17,
  14097. time: b[j].time,
  14098. userid: b[j].userid,
  14099. wid: b[j].id,
  14100. });
  14101. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14102. //英语口语
  14103. this.workStudent[i].push({
  14104. works: b[j].content,
  14105. sName: b[j].name,
  14106. score: b[j].score,
  14107. img: b[j].img,
  14108. type: 14,
  14109. time: b[j].time,
  14110. userid: b[j].userid,
  14111. wid: b[j].id,
  14112. });
  14113. }
  14114. }
  14115. }
  14116. }
  14117. })
  14118. .catch((err) => {
  14119. console.error(err);
  14120. });
  14121. },
  14122. openVideo(w) {
  14123. this.videoDetail = {};
  14124. this.playerOptions1.sources[0].src = w.works;
  14125. this.videoDetail = this.playerOptions1;
  14126. this.videoVisible = true;
  14127. },
  14128. isLikes(wid, uid, t, c, isLikes) {
  14129. if (isLikes == false) {
  14130. let params = [
  14131. {
  14132. wid: wid,
  14133. lid: uid,
  14134. t: t,
  14135. c: c,
  14136. },
  14137. ];
  14138. this.ajax
  14139. .post(this.$store.state.api + "insertComment", params)
  14140. .then((res) => {
  14141. this.$message({
  14142. message: "点赞成功",
  14143. type: "success",
  14144. });
  14145. this.selectSWorks();
  14146. this.selectStudent();
  14147. })
  14148. .catch((err) => {
  14149. this.$message.error("点赞失败");
  14150. console.error(err);
  14151. });
  14152. } else {
  14153. let params = {
  14154. wid: wid,
  14155. lid: uid,
  14156. type: t,
  14157. };
  14158. this.ajax
  14159. .get(this.$store.state.api + "deleteComment", params)
  14160. .then((res) => {
  14161. this.$message({
  14162. message: "取消点赞成功",
  14163. type: "success",
  14164. });
  14165. this.selectSWorks();
  14166. this.selectStudent();
  14167. })
  14168. .catch((err) => {
  14169. console.error(err);
  14170. });
  14171. }
  14172. },
  14173. deleteComment(wid) {
  14174. this.$confirm("确定删除此评论吗?", "提示", {
  14175. confirmButtonText: "确定",
  14176. cancelButtonText: "取消",
  14177. type: "warning",
  14178. })
  14179. .then(() => {
  14180. let params = {
  14181. id: wid,
  14182. };
  14183. this.ajax
  14184. .get(this.$store.state.api + "deleteComment2", params)
  14185. .then((res) => {
  14186. this.$message({
  14187. message: "删除评论成功",
  14188. type: "success",
  14189. });
  14190. this.selectSWorks();
  14191. this.selectStudent();
  14192. })
  14193. .catch((err) => {
  14194. console.error(err);
  14195. });
  14196. })
  14197. .catch(() => {});
  14198. },
  14199. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14200. this.commentIndexJson = {
  14201. toolIndex: toolIndex,
  14202. wIndex: wIndex,
  14203. gindex: gindex,
  14204. gid: gid,
  14205. };
  14206. this.commentDetail = [];
  14207. this.commentDialogVisible = true;
  14208. this.commentDetail = w;
  14209. if (w.works && w.type == 1) {
  14210. // this.pptImgUrl = "";
  14211. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14212. if (
  14213. a.indexOf(
  14214. w.works
  14215. .split(".")
  14216. [w.works.split(".").length - 1].toLocaleUpperCase()
  14217. ) != -1
  14218. ) {
  14219. let _uuurl = await this.checkLink(w.works);
  14220. this.pptImgUrl =
  14221. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14222. this.showPDF = false;
  14223. } else if (
  14224. w.works
  14225. .split(".")
  14226. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14227. ) {
  14228. this.pptImgUrl = w.works;
  14229. this.showPDF = true;
  14230. }
  14231. } else if (w.works && w.type == 3) {
  14232. this.videoDetail = {};
  14233. this.playerOptions1.sources[0].src = w.works;
  14234. this.videoDetail = this.playerOptions1;
  14235. // this.videoVisible = true;
  14236. } else if (w.works && w.type == 4) {
  14237. this.eScore = JSON.parse(w.works);
  14238. this.rateJson =
  14239. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14240. this.taskCount
  14241. ].toolChoose[toolIndex].rateJson;
  14242. } else if (w.works && w.type == 10) {
  14243. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14244. } else if (w.works && w.type == 13) {
  14245. this.wordJson =
  14246. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14247. this.taskCount
  14248. ].toolChoose[toolIndex].wordJson;
  14249. }
  14250. },
  14251. async openScore(w, index) {
  14252. this.wScore = 0;
  14253. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14254. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14255. this.commentDetail = [];
  14256. if(w.type == 17){
  14257. this.dialogVisibleENScore = true;
  14258. }else{
  14259. this.dialogVisibleScore = true;
  14260. }
  14261. this.commentDetail = w;
  14262. if (w.works && w.type == 1) {
  14263. this.pptImgUrl = "";
  14264. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14265. if (
  14266. a.indexOf(
  14267. w.works
  14268. .split(".")
  14269. [w.works.split(".").length - 1].toLocaleUpperCase()
  14270. ) != -1
  14271. ) {
  14272. let _uuurl = await this.checkLink(w.works);
  14273. this.pptImgUrl =
  14274. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14275. this.showPDF = false;
  14276. } else if (
  14277. w.works
  14278. .split(".")
  14279. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14280. ) {
  14281. this.pptImgUrl = w.works;
  14282. this.showPDF = true;
  14283. }
  14284. } else if (w.works && w.type == 3) {
  14285. this.videoDetail = {};
  14286. this.playerOptions1.sources[0].src = w.works;
  14287. this.videoDetail = this.playerOptions1;
  14288. }else if(w.type == 17){
  14289. let englishVoiceJson = {}
  14290. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14291. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14292. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14293. .toolChoose[index].englishVoiceJson
  14294. : {};
  14295. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14296. }
  14297. },
  14298. addComment(wid, uid, t) {
  14299. if (this.commentText == "") {
  14300. this.$message.error("请输入评论");
  14301. return;
  14302. }
  14303. let params2 = [
  14304. {
  14305. wid: wid,
  14306. lid: uid,
  14307. t: t,
  14308. },
  14309. ];
  14310. this.ajax
  14311. .post(this.$store.state.api + "getComment", params2)
  14312. .then((res) => {
  14313. if (res.data[0].length > 0) {
  14314. this.$message.error("一个作业只能评论一条");
  14315. } else {
  14316. let params = [
  14317. {
  14318. wid: wid,
  14319. lid: uid,
  14320. t: t,
  14321. c: this.commentText,
  14322. },
  14323. ];
  14324. this.ajax
  14325. .post(this.$store.state.api + "insertComment", params)
  14326. .then((res) => {
  14327. this.$message({
  14328. message: "评论成功",
  14329. type: "success",
  14330. });
  14331. this.commentText = "";
  14332. this.selectSWorks();
  14333. this.selectStudent();
  14334. })
  14335. .catch((err) => {
  14336. this.$message.error("评论失败");
  14337. console.error(err);
  14338. });
  14339. }
  14340. })
  14341. .catch((err) => {
  14342. // this.$message.error("评论失败");
  14343. console.error(err);
  14344. });
  14345. },
  14346. scoreWork(wid) {
  14347. if (this.wScore == 0) {
  14348. this.$message.error("请评分");
  14349. return;
  14350. }
  14351. let params = [
  14352. {
  14353. wid: wid,
  14354. score: JSON.stringify({
  14355. wScore: this.wScore,
  14356. detail: this.scoreDetail,
  14357. }),
  14358. },
  14359. ];
  14360. this.ajax
  14361. .post(this.$store.state.api + "scoreWork", params)
  14362. .then((res) => {
  14363. this.$message({
  14364. message: "评分成功",
  14365. type: "success",
  14366. });
  14367. this.wScore = 0;
  14368. this.scoreDetail = "";
  14369. this.dialogVisibleScore = false;
  14370. this.selectSWorks();
  14371. this.selectStudent();
  14372. })
  14373. .catch((err) => {
  14374. this.$message.error("评分失败");
  14375. console.error(err);
  14376. });
  14377. },
  14378. openXz(w, i) {
  14379. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14380. .taskJson[this.taskCount].toolChoose[i].selectJson
  14381. ? JSON.parse(
  14382. JSON.stringify(
  14383. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14384. this.taskCount
  14385. ].toolChoose[i].selectJson
  14386. )
  14387. )
  14388. : { url: "", select: [], answer: [] };
  14389. var a = w.works.split(",");
  14390. for (var k = 0; k < a.length; k++) {
  14391. a[k] = parseInt(a[k]);
  14392. }
  14393. this.selectAnswer = { answer: a, stu: w.sName };
  14394. this.isSelect = true;
  14395. this.dialogVisibleSelect = true;
  14396. },
  14397. openSen(w, i) {
  14398. this.sentenceList1 = JSON.parse(w.works);
  14399. this.sentenceList1.stuName = w.sName;
  14400. this.dialogVisibleSentence1 = true;
  14401. },
  14402. openPj(w, toolindex) {
  14403. this.isStar = true;
  14404. this.eScore = JSON.parse(w);
  14405. this.rateJson =
  14406. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14407. this.taskCount
  14408. ].toolChoose[toolindex].rateJson;
  14409. this.studentEvalDialogVisible = true;
  14410. },
  14411. openEnglishEva(id,i){
  14412. let params = {
  14413. wid: id
  14414. };
  14415. this.ajax
  14416. .get(this.$store.state.api + "selectEngWork", params)
  14417. .then((res) => {
  14418. this.evaEngJson.message = res.data[0][0];
  14419. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14420. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14421. .toolChoose[i].englishList;
  14422. this.engEvaDialogVisible = true;
  14423. })
  14424. .catch((err) => {
  14425. console.error(err);
  14426. });
  14427. },
  14428. deleteWorks(id) {
  14429. this.$confirm("确定删除此作业吗?", "提示", {
  14430. confirmButtonText: "确定",
  14431. cancelButtonText: "取消",
  14432. type: "warning",
  14433. })
  14434. .then(() => {
  14435. let params = [
  14436. {
  14437. id: id,
  14438. },
  14439. ];
  14440. this.ajax
  14441. .post(this.$store.state.api + "deleteCourseWork", params)
  14442. .then((res) => {
  14443. this.$message({
  14444. message: "删除成功",
  14445. type: "success",
  14446. });
  14447. this.selectStudent();
  14448. this.selectSWorks();
  14449. this.selectSLook();
  14450. })
  14451. .catch((err) => {
  14452. this.$message.error("网络异常");
  14453. console.error(err);
  14454. });
  14455. })
  14456. .catch(() => {});
  14457. },
  14458. selectSWorks(gindex) {
  14459. //教师查看全部作业
  14460. let params = {
  14461. cid: this.id,
  14462. s: this.courseType,
  14463. t: this.taskCount,
  14464. };
  14465. this.ajax
  14466. .get(this.$store.state.api + "selectSWorks", params)
  14467. .then((res) => {
  14468. var a =
  14469. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14470. this.taskCount
  14471. ].toolChoose;
  14472. var b = res.data[0];
  14473. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14474. var y = [
  14475. "AVI",
  14476. "NAVI",
  14477. "MPEG",
  14478. "ASF",
  14479. "MOV",
  14480. "WMV",
  14481. "3GP",
  14482. "RM",
  14483. "RMVB",
  14484. "FLV",
  14485. "F4V",
  14486. "H.264",
  14487. "H.265",
  14488. "REAL VIDEO",
  14489. "MKV",
  14490. "WebM",
  14491. "HDDVD",
  14492. "MP4",
  14493. "MPG",
  14494. "M4V",
  14495. "MGV",
  14496. "OGV",
  14497. "QTM",
  14498. "STR",
  14499. "AMC",
  14500. "DVX",
  14501. "EVO",
  14502. "DAT",
  14503. "OGG",
  14504. "OGM",
  14505. ];
  14506. var d = res.data[1];
  14507. var e = res.data[2];
  14508. var f = res.data[3];
  14509. let _worksStudent = [];
  14510. var _worksStudent2 = [];
  14511. for (var i = 0; i < a.length; i++) {
  14512. _worksStudent[i] = [];
  14513. _worksStudent2[i] = [];
  14514. if (
  14515. !this.isCloseList[i] ||
  14516. this.isCloseList[i].isClose == undefined
  14517. ) {
  14518. this.isCloseList[i] = { isClose: 0 };
  14519. }
  14520. this.groupStudent[i] = [];
  14521. this.groupStudentUid[i] = [];
  14522. if (this.isGroup) {
  14523. for (
  14524. var groupI = 0;
  14525. groupI < this.courseGroup.group.length;
  14526. groupI++
  14527. ) {
  14528. this.courseGroup.group[groupI].works[i] = [];
  14529. }
  14530. }
  14531. this.isWorksS[i] = [];
  14532. this.checkJson[i] = [];
  14533. if (a[i].tool[0] == 49) {
  14534. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14535. this.groupStudent[i][gA] = [];
  14536. this.groupStudentUid[i][gA] = [];
  14537. _worksStudent[i][gA] = [];
  14538. _worksStudent2[i][gA] = [];
  14539. this.isCloseList[i][gA] = [];
  14540. for (var g = 0; g < f.length; g++) {
  14541. if (
  14542. f[g].ttype == 2 &&
  14543. this.tcid &&
  14544. this.arrayToArray(
  14545. (f[g].classid ? f[g].classid.split(",") : []),
  14546. this.tcid.split(",")
  14547. ).length == 0
  14548. ) {
  14549. continue;
  14550. }
  14551. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14552. (f[g].classid ? f[g].classid.split(",") : []),
  14553. this.tcid.split(",")
  14554. ).length !== 0 || this.arrayToArray(
  14555. (f[g].classid ? f[g].classid.split(",") : []),
  14556. this.classId ? this.classId.split(",") : []
  14557. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14558. this.groupStudent[i][gA].push(f[g]);
  14559. this.groupStudentUid[i][gA].push(f[g].userid);
  14560. }
  14561. }
  14562. }
  14563. this.$forceUpdate();
  14564. }
  14565. for (var j = 0; j < b.length; j++) {
  14566. if (
  14567. b[j].ttype == 2 &&
  14568. this.tcid &&
  14569. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14570. .length == 0
  14571. ) {
  14572. continue;
  14573. }
  14574. var likesCount = 0;
  14575. var commentCount = 0;
  14576. var isLikes = false;
  14577. var commentJson = [];
  14578. var likeJson = [];
  14579. var data = b[j];
  14580. if (i == b[j].tool) {
  14581. if (data.type == 2 && a[i].tool[0] == 4) {
  14582. // if(JSON.parse(data.content)[0].anwer){
  14583. var checkL =
  14584. JSON.parse(data.content)[0].anwer instanceof Array
  14585. ? JSON.parse(data.content)[0].anwer
  14586. : JSON.parse(data.content)[0].anwer.split(",");
  14587. for (var z = 0; z < checkL.length; z++) {
  14588. if (!this.checkJson[i][z]) {
  14589. this.checkJson[i].push({
  14590. checkCount: [],
  14591. checkPerson: [],
  14592. rightPerson: [],
  14593. });
  14594. }
  14595. if (!this.checkJson[i][z].checkCount.length) {
  14596. this.checkJson[i][z].checkCount = [];
  14597. let _askItemCount = JSON.parse(data.content)[0].askJson
  14598. .askJson[z].askItem;
  14599. for (var aic = 0; aic < _askItemCount; aic++) {
  14600. this.checkJson[i][z].checkCount.push(0);
  14601. }
  14602. }
  14603. if (checkL[z] instanceof Array) {
  14604. if (
  14605. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14606. checkL[z].sort().join(",")
  14607. ) {
  14608. this.checkJson[i][z].rightPerson.push(data.name);
  14609. }
  14610. for (var q = 0; q < checkL[z].length; q++) {
  14611. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14612. ? this.checkJson[i][z].checkPerson[
  14613. parseInt(checkL[z][q])
  14614. ].push(data.name)
  14615. : (this.checkJson[i][z].checkPerson[
  14616. parseInt(checkL[z][q])
  14617. ] = [data.name]);
  14618. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14619. ? this.checkJson[i][z].checkCount[
  14620. parseInt(checkL[z][q])
  14621. ]++
  14622. : (this.checkJson[i][z].checkCount[
  14623. parseInt(checkL[z][q])
  14624. ] = 1);
  14625. }
  14626. } else {
  14627. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14628. this.checkJson[i][z].rightPerson.push(data.name);
  14629. }
  14630. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14631. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14632. ? this.checkJson[i][z].checkPerson[
  14633. parseInt(checkL[z])
  14634. ].push(data.name)
  14635. : (this.checkJson[i][z].checkPerson[
  14636. parseInt(checkL[z])
  14637. ] = [data.name]);
  14638. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14639. ? this.checkJson[i][z].checkCount[
  14640. parseInt(checkL[z])
  14641. ]++
  14642. : (this.checkJson[i][z].checkCount[
  14643. parseInt(checkL[z])
  14644. ] = 1);
  14645. }
  14646. }
  14647. }
  14648. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14649. var checkL = JSON.parse(data.content)[0].anwer;
  14650. for (var z = 0; z < checkL.length; z++) {
  14651. if (!this.checkJson[i][z]) {
  14652. this.checkJson[i].push({
  14653. checkCount: [],
  14654. checkPerson: [],
  14655. rightPerson: [],
  14656. });
  14657. }
  14658. if (!this.checkJson[i][z].checkCount.length) {
  14659. this.checkJson[i][z].checkCount = [];
  14660. let _askItemCount = JSON.parse(data.content)[0].testJson
  14661. .testJson[z].testItem;
  14662. for (var aic = 0; aic < _askItemCount; aic++) {
  14663. this.checkJson[i][z].checkCount.push(0);
  14664. }
  14665. }
  14666. if (checkL[z] instanceof Array) {
  14667. if (
  14668. JSON.parse(data.content)[0]
  14669. .testJson.testJson[z].answer.sort()
  14670. .join(",") == checkL[z].sort().join(",")
  14671. ) {
  14672. this.checkJson[i][z].rightPerson.push(data.name);
  14673. }
  14674. for (var q = 0; q < checkL[z].length; q++) {
  14675. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14676. ? this.checkJson[i][z].checkPerson[
  14677. parseInt(checkL[z][q])
  14678. ].push(data.name)
  14679. : (this.checkJson[i][z].checkPerson[
  14680. parseInt(checkL[z][q])
  14681. ] = [data.name]);
  14682. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14683. ? this.checkJson[i][z].checkCount[
  14684. parseInt(checkL[z][q])
  14685. ]++
  14686. : (this.checkJson[i][z].checkCount[
  14687. parseInt(checkL[z][q])
  14688. ] = 1);
  14689. }
  14690. } else {
  14691. if (
  14692. JSON.parse(data.content)[0].testJson.testJson[z]
  14693. .answer == checkL[z]
  14694. ) {
  14695. this.checkJson[i][z].rightPerson.push(data.name);
  14696. }
  14697. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14698. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14699. ? this.checkJson[i][z].checkPerson[
  14700. parseInt(checkL[z])
  14701. ].push(data.name)
  14702. : (this.checkJson[i][z].checkPerson[
  14703. parseInt(checkL[z])
  14704. ] = [data.name]);
  14705. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14706. ? this.checkJson[i][z].checkCount[
  14707. parseInt(checkL[z])
  14708. ]++
  14709. : (this.checkJson[i][z].checkCount[
  14710. parseInt(checkL[z])
  14711. ] = 1);
  14712. }
  14713. }
  14714. }
  14715. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14716. var checkL = JSON.parse(data.content);
  14717. for (var z = 0; z < checkL.length; z++) {
  14718. if (!this.checkJson[i][z]) {
  14719. this.checkJson[i].push({
  14720. checkCount: [],
  14721. checkPerson: [],
  14722. rightPerson: [],
  14723. });
  14724. }
  14725. this.checkJson[i][z].checkPerson.push(data.name);
  14726. if (
  14727. checkL[z].chooseSenList.toString() ==
  14728. checkL[z].rightAnswer.toString()
  14729. ) {
  14730. this.checkJson[i][z].rightPerson.push(data.name);
  14731. }
  14732. }
  14733. }
  14734. for (var k = 0; k < d.length; k++) {
  14735. //点赞
  14736. if (d[k].workId == b[j].id) {
  14737. likesCount++;
  14738. likeJson.push(d[k])
  14739. if (d[k].likesId == this.userid) {
  14740. isLikes = true;
  14741. }
  14742. }
  14743. }
  14744. for (var l = 0; l < e.length; l++) {
  14745. //评论
  14746. if (e[l].workId == b[j].id) {
  14747. if (e[l].comment != "") {
  14748. commentCount++;
  14749. commentJson.push({
  14750. commentText: e[l].comment,
  14751. commentTime: e[l].commentTime,
  14752. commentPeople: e[l].commentPeople,
  14753. userid: e[l].userid,
  14754. wid: e[l].id,
  14755. });
  14756. }
  14757. }
  14758. }
  14759. if (
  14760. (b[j].type == 1 ||
  14761. b[j].type == 4 ||
  14762. b[j].type == 5 ||
  14763. b[j].type == 6 ||
  14764. b[j].type == 12 ||
  14765. b[j].type == 7) &&
  14766. a[i].tool[0] != 15 &&
  14767. a[i].tool[0] != 4 &&
  14768. a[i].tool[0] != 45 &&
  14769. a[i].tool[0] != 50 &&
  14770. a[i].tool[0] != 32 &&
  14771. a[i].tool[0] != 57 &&
  14772. a[i].tool[0] != 52
  14773. ) {
  14774. if (
  14775. c.indexOf(
  14776. b[j].content
  14777. .split(".")
  14778. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14779. ) != -1 &&
  14780. a[i].tool[0] == 16 &&
  14781. b[j].atool != 50
  14782. ) {
  14783. let _works = {
  14784. userid: b[j].userid,
  14785. ateacher: b[j].ateacher,
  14786. wid: b[j].id,
  14787. works: b[j].content,
  14788. sName: b[j].name,
  14789. type: 1,
  14790. ttype:b[j].ttype,
  14791. time: b[j].time,
  14792. score: b[j].score,
  14793. img: b[j].img,
  14794. likesCount: likesCount,
  14795. commentCount: commentCount,
  14796. isLikes: isLikes,
  14797. commentJson: commentJson,
  14798. likeJson:likeJson
  14799. };
  14800. if (this.isGroup) {
  14801. let isGw = 1;
  14802. for (
  14803. var groupI = 0;
  14804. groupI < this.courseGroup.group.length;
  14805. groupI++
  14806. ) {
  14807. let gid = this.courseGroup.group[groupI].id;
  14808. if (
  14809. this.courseGroupStudentUid[gid].indexOf(
  14810. b[j].userid
  14811. ) != -1
  14812. ) {
  14813. isGw = 2;
  14814. this.courseGroup.group[groupI].works[i].push(_works);
  14815. break;
  14816. }
  14817. }
  14818. if (isGw == 1) {
  14819. _worksStudent[i].push(_works);
  14820. }
  14821. } else {
  14822. _worksStudent[i].push(_works);
  14823. }
  14824. _worksStudent2[i].push(_works);
  14825. this.isWorksS[i].push({
  14826. uid: b[j].userid,
  14827. sName: b[j].name,
  14828. });
  14829. } else if (
  14830. y.indexOf(
  14831. b[j].content
  14832. .split(".")
  14833. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14834. ) != -1 &&
  14835. a[i].tool[0] == 16 &&
  14836. b[j].atool != 50
  14837. ) {
  14838. let _works = {
  14839. userid: b[j].userid,
  14840. ateacher: b[j].ateacher,
  14841. wid: b[j].id,
  14842. works: b[j].content,
  14843. sName: b[j].name,
  14844. type: 3,
  14845. ttype:b[j].ttype,
  14846. time: b[j].time,
  14847. score: b[j].score,
  14848. img: b[j].img,
  14849. likesCount: likesCount,
  14850. commentCount: commentCount,
  14851. isLikes: isLikes,
  14852. commentJson: commentJson,
  14853. likeJson:likeJson
  14854. };
  14855. if (this.isGroup) {
  14856. let isGw = 1;
  14857. for (
  14858. var groupI = 0;
  14859. groupI < this.courseGroup.group.length;
  14860. groupI++
  14861. ) {
  14862. let gid = this.courseGroup.group[groupI].id;
  14863. if (
  14864. this.courseGroupStudentUid[gid].indexOf(
  14865. b[j].userid
  14866. ) != -1
  14867. ) {
  14868. isGw = 2;
  14869. this.courseGroup.group[groupI].works[i].push(_works);
  14870. break;
  14871. }
  14872. }
  14873. if (isGw == 1) {
  14874. _worksStudent[i].push(_works);
  14875. }
  14876. } else {
  14877. _worksStudent[i].push(_works);
  14878. }
  14879. _worksStudent2[i].push(_works);
  14880. this.isWorksS[i].push({
  14881. uid: b[j].userid,
  14882. sName: b[j].name,
  14883. });
  14884. } else if (b[j].type == 6 && b[j].atool != 50) {
  14885. let _works = {
  14886. userid: b[j].userid,
  14887. ateacher: b[j].ateacher,
  14888. wid: b[j].id,
  14889. works: b[j].content,
  14890. sName: b[j].name,
  14891. type: 4,
  14892. ttype:b[j].ttype,
  14893. time: b[j].time,
  14894. score: b[j].score,
  14895. img: b[j].img,
  14896. likesCount: likesCount,
  14897. commentCount: commentCount,
  14898. isLikes: isLikes,
  14899. commentJson: commentJson,
  14900. likeJson:likeJson
  14901. };
  14902. _worksStudent[i].push(_works);
  14903. _worksStudent2[i].push(_works);
  14904. this.isWorksS[i].push({
  14905. uid: b[j].userid,
  14906. sName: b[j].name,
  14907. });
  14908. } else if (b[j].type == 7 && b[j].atool != 50) {
  14909. let _work = {
  14910. userid: b[j].userid,
  14911. ateacher: b[j].ateacher,
  14912. wid: b[j].id,
  14913. works: b[j].content,
  14914. sName: b[j].name,
  14915. type: 5,
  14916. ttype:b[j].ttype,
  14917. time: b[j].time,
  14918. score: b[j].score,
  14919. img: b[j].img,
  14920. likesCount: likesCount,
  14921. commentCount: commentCount,
  14922. isLikes: isLikes,
  14923. commentJson: commentJson,
  14924. likeJson:likeJson
  14925. };
  14926. _worksStudent[i].push(_work);
  14927. _worksStudent2[i].push(_work);
  14928. this.isWorksS[i].push({
  14929. uid: b[j].userid,
  14930. sName: b[j].name,
  14931. });
  14932. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14933. let _works = {
  14934. userid: b[j].userid,
  14935. ateacher: b[j].ateacher,
  14936. wid: b[j].id,
  14937. works: b[j].content,
  14938. sName: b[j].name,
  14939. type: 12,
  14940. ttype:b[j].ttype,
  14941. time: b[j].time,
  14942. score: b[j].score,
  14943. img: b[j].img,
  14944. likesCount: likesCount,
  14945. commentCount: commentCount,
  14946. isLikes: isLikes,
  14947. commentJson: commentJson,
  14948. likeJson:likeJson
  14949. };
  14950. if (this.isGroup) {
  14951. let isGw = 1;
  14952. for (
  14953. var groupI = 0;
  14954. groupI < this.courseGroup.group.length;
  14955. groupI++
  14956. ) {
  14957. let gid = this.courseGroup.group[groupI].id;
  14958. if (
  14959. this.courseGroupStudentUid[gid].indexOf(
  14960. b[j].userid
  14961. ) != -1
  14962. ) {
  14963. isGw = 2;
  14964. this.courseGroup.group[groupI].works[i].push(_works);
  14965. break;
  14966. }
  14967. }
  14968. if (isGw == 1) {
  14969. _worksStudent[i].push(_works);
  14970. }
  14971. } else {
  14972. _worksStudent[i].push(_works);
  14973. }
  14974. _worksStudent2[i].push(_works);
  14975. this.isWorksS[i].push({
  14976. uid: b[j].userid,
  14977. sName: b[j].name,
  14978. });
  14979. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14980. let _works = {
  14981. userid: b[j].userid,
  14982. ateacher: b[j].ateacher,
  14983. wid: b[j].id,
  14984. works: b[j].content,
  14985. sName: b[j].name,
  14986. type: 0,
  14987. ttype:b[j].ttype,
  14988. time: b[j].time,
  14989. score: b[j].score,
  14990. img: b[j].img,
  14991. likesCount: likesCount,
  14992. commentCount: commentCount,
  14993. isLikes: isLikes,
  14994. commentJson: commentJson,
  14995. likeJson:likeJson
  14996. };
  14997. if (this.isGroup) {
  14998. let isGw = 1;
  14999. for (
  15000. var groupI = 0;
  15001. groupI < this.courseGroup.group.length;
  15002. groupI++
  15003. ) {
  15004. let gid = this.courseGroup.group[groupI].id;
  15005. if (
  15006. this.courseGroupStudentUid[gid].indexOf(
  15007. b[j].userid
  15008. ) != -1
  15009. ) {
  15010. isGw = 2;
  15011. this.courseGroup.group[groupI].works[i].push(_works);
  15012. break;
  15013. }
  15014. }
  15015. if (isGw == 1) {
  15016. _worksStudent[i].push(_works);
  15017. }
  15018. } else {
  15019. _worksStudent[i].push(_works);
  15020. }
  15021. _worksStudent2[i].push(_works);
  15022. this.isWorksS[i].push({
  15023. uid: b[j].userid,
  15024. sName: b[j].name,
  15025. });
  15026. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15027. let _works = {
  15028. userid: b[j].userid,
  15029. ateacher: b[j].ateacher,
  15030. wid: b[j].id,
  15031. works: b[j].content,
  15032. sName: b[j].name,
  15033. type: 0,
  15034. ttype:b[j].ttype,
  15035. time: b[j].time,
  15036. score: b[j].score,
  15037. img: b[j].img,
  15038. likesCount: likesCount,
  15039. commentCount: commentCount,
  15040. isLikes: isLikes,
  15041. commentJson: commentJson,
  15042. likeJson:likeJson
  15043. };
  15044. if (this.isGroup) {
  15045. let isGw = 1;
  15046. for (
  15047. var groupI = 0;
  15048. groupI < this.courseGroup.group.length;
  15049. groupI++
  15050. ) {
  15051. let gid = this.courseGroup.group[groupI].id;
  15052. if (
  15053. this.courseGroupStudentUid[gid].indexOf(
  15054. b[j].userid
  15055. ) != -1
  15056. ) {
  15057. isGw = 2;
  15058. this.courseGroup.group[groupI].works[i].push(_works);
  15059. break;
  15060. }
  15061. }
  15062. if (isGw == 1) {
  15063. _worksStudent[i].push(_works);
  15064. }
  15065. } else {
  15066. _worksStudent[i].push(_works);
  15067. }
  15068. _worksStudent2[i].push(_works);
  15069. this.isWorksS[i].push({
  15070. uid: b[j].userid,
  15071. sName: b[j].name,
  15072. });
  15073. }
  15074. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15075. let _works = {
  15076. userid: b[j].userid,
  15077. ateacher: b[j].ateacher,
  15078. wid: b[j].id,
  15079. works: b[j].content,
  15080. sName: b[j].name,
  15081. type: 2,
  15082. ttype:b[j].ttype,
  15083. time: b[j].time,
  15084. score: b[j].score,
  15085. img: b[j].img,
  15086. likesCount: likesCount,
  15087. commentCount: commentCount,
  15088. isLikes: isLikes,
  15089. commentJson: commentJson,
  15090. likeJson:likeJson
  15091. };
  15092. if (this.isGroup) {
  15093. let isGw = 1;
  15094. for (
  15095. var groupI = 0;
  15096. groupI < this.courseGroup.group.length;
  15097. groupI++
  15098. ) {
  15099. let gid = this.courseGroup.group[groupI].id;
  15100. if (
  15101. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15102. -1
  15103. ) {
  15104. isGw = 2;
  15105. this.courseGroup.group[groupI].works[i].push(_works);
  15106. break;
  15107. }
  15108. }
  15109. if (isGw == 1) {
  15110. _worksStudent[i].push(_works);
  15111. }
  15112. } else {
  15113. _worksStudent[i].push(_works);
  15114. }
  15115. _worksStudent2[i].push(_works);
  15116. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15117. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15118. //问卷
  15119. let _work = {
  15120. userid: b[j].userid,
  15121. ateacher: b[j].ateacher,
  15122. wid: b[j].id,
  15123. works: b[j].content,
  15124. sName: b[j].name,
  15125. type: 2,
  15126. ttype:b[j].ttype,
  15127. time: b[j].time,
  15128. score: b[j].score,
  15129. img: b[j].img,
  15130. likesCount: likesCount,
  15131. commentCount: commentCount,
  15132. isLikes: isLikes,
  15133. commentJson: commentJson,
  15134. likeJson:likeJson
  15135. };
  15136. _worksStudent[i].push(_work);
  15137. _worksStudent2[i].push(_work);
  15138. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15139. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15140. //选择题
  15141. let _work = {
  15142. userid: b[j].userid,
  15143. ateacher: b[j].ateacher,
  15144. wid: b[j].id,
  15145. works: b[j].content,
  15146. sName: b[j].name,
  15147. type: 8,
  15148. ttype:b[j].ttype,
  15149. time: b[j].time,
  15150. score: b[j].score,
  15151. img: b[j].img,
  15152. likesCount: likesCount,
  15153. commentCount: commentCount,
  15154. isLikes: isLikes,
  15155. commentJson: commentJson,
  15156. likeJson:likeJson
  15157. };
  15158. _worksStudent[i].push(_work);
  15159. _worksStudent2[i].push(_work);
  15160. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15161. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15162. //选择题
  15163. let _work = {
  15164. userid: b[j].userid,
  15165. ateacher: b[j].ateacher,
  15166. wid: b[j].id,
  15167. works: b[j].content,
  15168. sName: b[j].name,
  15169. type: 9,
  15170. ttype:b[j].ttype,
  15171. time: b[j].time,
  15172. score: b[j].score,
  15173. img: b[j].img,
  15174. likesCount: likesCount,
  15175. commentCount: commentCount,
  15176. isLikes: isLikes,
  15177. commentJson: commentJson,
  15178. likeJson:likeJson
  15179. };
  15180. _worksStudent[i].push(_work);
  15181. _worksStudent2[i].push(_work);
  15182. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15183. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15184. //选择题
  15185. let _work = {
  15186. userid: b[j].userid,
  15187. ateacher: b[j].ateacher,
  15188. wid: b[j].id,
  15189. works: b[j].content,
  15190. sName: b[j].name,
  15191. type: 10,
  15192. ttype:b[j].ttype,
  15193. time: b[j].time,
  15194. score: b[j].score,
  15195. img: b[j].img,
  15196. likesCount: likesCount,
  15197. commentCount: commentCount,
  15198. isLikes: isLikes,
  15199. commentJson: commentJson,
  15200. likeJson:likeJson
  15201. };
  15202. _worksStudent[i].push(_work);
  15203. _worksStudent2[i].push(_work);
  15204. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15205. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15206. //选择题
  15207. let _work = {
  15208. userid: b[j].userid,
  15209. ateacher: b[j].ateacher,
  15210. wid: b[j].id,
  15211. works: b[j].content,
  15212. sName: b[j].name,
  15213. type: 13,
  15214. ttype:b[j].ttype,
  15215. time: b[j].time,
  15216. score: b[j].score,
  15217. img: b[j].img,
  15218. likesCount: likesCount,
  15219. commentCount: commentCount,
  15220. isLikes: isLikes,
  15221. commentJson: commentJson,
  15222. likeJson:likeJson
  15223. };
  15224. _worksStudent[i].push(_work);
  15225. _worksStudent2[i].push(_work);
  15226. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15227. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15228. //选择题
  15229. let _work = {
  15230. userid: b[j].userid,
  15231. ateacher: b[j].ateacher,
  15232. wid: b[j].id,
  15233. works: b[j].content,
  15234. sName: b[j].name,
  15235. type: 16,
  15236. ttype:b[j].ttype,
  15237. time: b[j].time,
  15238. score: b[j].score,
  15239. img: b[j].img,
  15240. likesCount: likesCount,
  15241. commentCount: commentCount,
  15242. isLikes: isLikes,
  15243. commentJson: commentJson,
  15244. aiCode: b[j].aiCode,
  15245. teacherCode: b[j].teacherCode,
  15246. likeJson:likeJson
  15247. };
  15248. _worksStudent[i].push(_work);
  15249. _worksStudent2[i].push(_work);
  15250. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15251. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15252. //选择题
  15253. let _work = {
  15254. userid: b[j].userid,
  15255. ateacher: b[j].ateacher,
  15256. wid: b[j].id,
  15257. works: b[j].content,
  15258. sName: b[j].name,
  15259. type: 17,
  15260. ttype:b[j].ttype,
  15261. time: b[j].time,
  15262. score: b[j].score,
  15263. img: b[j].img,
  15264. likesCount: likesCount,
  15265. commentCount: commentCount,
  15266. isLikes: isLikes,
  15267. commentJson: commentJson,
  15268. likeJson:likeJson
  15269. };
  15270. _worksStudent[i].push(_work);
  15271. _worksStudent2[i].push(_work);
  15272. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15273. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15274. //交互视频
  15275. let _work = {
  15276. userid: b[j].userid,
  15277. ateacher: b[j].ateacher,
  15278. wid: b[j].id,
  15279. works: b[j].content,
  15280. sName: b[j].name,
  15281. type: 14,
  15282. ttype:b[j].ttype,
  15283. time: b[j].time,
  15284. score: b[j].score,
  15285. img: b[j].img,
  15286. likesCount: likesCount,
  15287. commentCount: commentCount,
  15288. isLikes: isLikes,
  15289. commentJson: commentJson,
  15290. likeJson:likeJson
  15291. };
  15292. _worksStudent[i].push(_work);
  15293. _worksStudent2[i].push(_work);
  15294. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15295. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15296. let _gindex = JSON.parse(b[j].content);
  15297. if (
  15298. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15299. b[j].userid
  15300. ) != -1
  15301. ) {
  15302. let _work = {
  15303. userid: b[j].userid,
  15304. ateacher: b[j].ateacher,
  15305. wid: b[j].id,
  15306. works: _gindex.url,
  15307. sName: b[j].name,
  15308. type: _gindex.type,
  15309. ttype:b[j].ttype,
  15310. time: b[j].time,
  15311. score: b[j].score,
  15312. img: b[j].img,
  15313. likesCount: likesCount,
  15314. commentCount: commentCount,
  15315. isLikes: isLikes,
  15316. commentJson: commentJson,
  15317. likeJson:likeJson
  15318. };
  15319. _worksStudent[i][_gindex.groupIndex].push(_work);
  15320. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15321. }
  15322. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15323. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15324. let _work = {
  15325. userid: b[j].userid,
  15326. ateacher: b[j].ateacher,
  15327. wid: b[j].id,
  15328. works: b[j].content,
  15329. sName: b[j].name ? b[j].name : b[j].userid,
  15330. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15331. ttype:b[j].ttype,
  15332. time: b[j].time,
  15333. score: b[j].score,
  15334. img: b[j].img,
  15335. likesCount: likesCount,
  15336. commentCount: commentCount,
  15337. isLikes: isLikes,
  15338. commentJson: commentJson,
  15339. likeJson:likeJson
  15340. };
  15341. _worksStudent[i].push(_work);
  15342. _worksStudent2[i].push(_work);
  15343. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15344. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15345. let _work = {
  15346. userid: b[j].userid,
  15347. ateacher: b[j].ateacher,
  15348. wid: b[j].id,
  15349. works: b[j].content,
  15350. sName: b[j].name ? b[j].name : b[j].userid,
  15351. type: 12,
  15352. ttype:b[j].ttype,
  15353. time: b[j].time,
  15354. score: b[j].score,
  15355. img: b[j].img,
  15356. likesCount: likesCount,
  15357. commentCount: commentCount,
  15358. isLikes: isLikes,
  15359. commentJson: commentJson,
  15360. likeJson:likeJson
  15361. };
  15362. _worksStudent[i].push(_work);
  15363. _worksStudent2[i].push(_work);
  15364. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15365. } else if (
  15366. a[i].tool[0] == 57 &&
  15367. b[j].atool == 57 &&
  15368. b[j].type == 12
  15369. ) {
  15370. let _work = {
  15371. userid: b[j].userid,
  15372. ateacher: b[j].ateacher,
  15373. wid: b[j].id,
  15374. works: b[j].content,
  15375. sName: b[j].name ? b[j].name : b[j].userid,
  15376. type: 12,
  15377. ttype:b[j].ttype,
  15378. time: b[j].time,
  15379. score: b[j].score,
  15380. img: b[j].img,
  15381. likesCount: likesCount,
  15382. commentCount: commentCount,
  15383. isLikes: isLikes,
  15384. commentJson: commentJson,
  15385. likeJson:likeJson
  15386. };
  15387. _worksStudent[i].push(_work);
  15388. _worksStudent2[i].push(_work);
  15389. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15390. } else if (
  15391. a[i].tool[0] == 57 &&
  15392. b[j].atool == 57 &&
  15393. b[j].type == 15
  15394. ) {
  15395. let _work = {
  15396. userid: b[j].userid,
  15397. ateacher: b[j].ateacher,
  15398. wid: b[j].id,
  15399. works: b[j].content,
  15400. sName: b[j].name ? b[j].name : b[j].userid,
  15401. type: 15,
  15402. ttype:b[j].ttype,
  15403. time: b[j].time,
  15404. score: b[j].score,
  15405. img: b[j].img,
  15406. likesCount: likesCount,
  15407. commentCount: commentCount,
  15408. isLikes: isLikes,
  15409. commentJson: commentJson,
  15410. likeJson:likeJson
  15411. };
  15412. _worksStudent[i].push(_work);
  15413. _worksStudent2[i].push(_work);
  15414. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15415. }
  15416. }
  15417. }
  15418. if (_worksStudent[i] && _worksStudent[i].length) {
  15419. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15420. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15421. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15422. var scoreA = parseFloat(jscoreA);
  15423. var scoreB = parseFloat(jscoreB);
  15424. if (scoreA == scoreB) {
  15425. return b.likesCount - a.likesCount;
  15426. }
  15427. return scoreB - scoreA;
  15428. });
  15429. if (this.isGroup) {
  15430. for (
  15431. var groupI = 0;
  15432. groupI < this.courseGroup.group.length;
  15433. groupI++
  15434. ) {
  15435. this.courseGroup.group[groupI].works[i] =
  15436. this.courseGroup.group[groupI].works[i].sort(function (
  15437. a,
  15438. b
  15439. ) {
  15440. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15441. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15442. var scoreA = parseFloat(jscoreA);
  15443. var scoreB = parseFloat(jscoreB);
  15444. if (scoreA == scoreB) {
  15445. return b.likesCount - a.likesCount;
  15446. }
  15447. return scoreB - scoreA;
  15448. });
  15449. }
  15450. }
  15451. }
  15452. }
  15453. this.timeWorkList = _worksStudent2;
  15454. for (var i = 0; i < a.length; i++) {
  15455. for (var j = 0; j < b.length; j++) {
  15456. var data = b[j];
  15457. if (i == b[j].tool) {
  15458. if (data.type == 2 || data.type == 8) {
  15459. for (var z = 0; z < this.checkJson[i].length; z++) {
  15460. this.checkJson[i][z].checkPerent = [];
  15461. this.checkJson[i][z].right = Math.round(
  15462. (this.checkJson[i][z].rightPerson.length /
  15463. parseInt(_worksStudent[i].length)) *
  15464. 100
  15465. );
  15466. let aaaa = this.checkJson[i][z];
  15467. for (
  15468. var k = 0;
  15469. k < this.checkJson[i][z].checkCount.length;
  15470. k++
  15471. ) {
  15472. this.checkJson[i][z].checkPerent.push(
  15473. Math.round(
  15474. (this.checkJson[i][z].checkCount[k] /
  15475. parseInt(_worksStudent[i].length)) *
  15476. 100
  15477. )
  15478. );
  15479. }
  15480. }
  15481. } else if (data.type == 9) {
  15482. for (var z = 0; z < this.checkJson[i].length; z++) {
  15483. this.checkJson[i][z].checkPerent = [];
  15484. this.checkJson[i][z].right = Math.round(
  15485. (this.checkJson[i][z].rightPerson.length /
  15486. this.checkJson[i][z].checkPerson.length) *
  15487. 100
  15488. );
  15489. }
  15490. }
  15491. }
  15492. }
  15493. }
  15494. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15495. this.joinGroup(gindex);
  15496. }
  15497. this.worksStudent = _worksStudent;
  15498. if( JSON.stringify(this.worksStudentCopy) != JSON.stringify(this.worksStudent)){
  15499. this.worksStudentCopy=this.worksStudent
  15500. this.AIloading=[]
  15501. this.loopLoading=[]
  15502. this.worksStudent.forEach((e,index)=>{
  15503. this.loopLoading.push({loading:false})
  15504. this.AIloading.push([])
  15505. e.forEach(k=>{
  15506. this.AIloading[index].push({loading:false,sco:0})
  15507. })
  15508. })
  15509. }
  15510. this.selectWorksStudent();
  15511. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15512. this.$nextTick(()=>{
  15513. setTimeout(()=>{
  15514. setTimeout(()=>{
  15515. this.panToolHeight('tool-'+ci);
  15516. }, 500)
  15517. }, 0)
  15518. })
  15519. }
  15520. })
  15521. .catch((err) => {
  15522. console.error(err);
  15523. });
  15524. },
  15525. pngToWhiteBg(file) {
  15526. const _file = file;
  15527. let read = new FileReader();
  15528. read.readAsDataURL(file); // 文件转base64
  15529. return new Promise((resolve, reject) => {
  15530. read.onload = (e) => {
  15531. let img = new Image();
  15532. img.src = e.target.result;
  15533. img.onload = async () => {
  15534. // 生成canvas
  15535. let canvas = document.createElement("canvas");
  15536. let context = canvas.getContext("2d");
  15537. // 绘制图片到canvas上
  15538. canvas.width = img.width;
  15539. canvas.height = img.height;
  15540. // 在canvas绘制前填充白色背景
  15541. context.fillStyle = "#fff";
  15542. context.fillRect(0, 0, canvas.width, canvas.height);
  15543. context.drawImage(img, 0, 0);
  15544. let base64 = canvas.toDataURL(file["type"], 1);
  15545. let newFile = this.dataUrlToFile(base64, _file);
  15546. resolve(newFile);
  15547. };
  15548. };
  15549. });
  15550. },
  15551. dataUrlToFile(dataurl, file) {
  15552. let arr = dataurl.split(","),
  15553. mime = arr[0].match(/:(.*?);/)[1],
  15554. bstr = atob(arr[1]),
  15555. n = bstr.length,
  15556. u8arr = new Uint8Array(n);
  15557. while (n--) {
  15558. u8arr[n] = bstr.charCodeAt(n);
  15559. }
  15560. // return new Blob([u8arr], { type: mime });
  15561. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15562. type: mime,
  15563. });
  15564. },
  15565. async beforeUpload1(event, type, i) {
  15566. // this.$message.success('进入上传')
  15567. var file = "";
  15568. if (type == 5) {
  15569. file = event;
  15570. } else {
  15571. file = event.target.files[0];
  15572. }
  15573. var credentials = {
  15574. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15575. secretAccessKey: "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",
  15576. }; //秘钥形式的登录上传
  15577. window.AWS.config.update(credentials);
  15578. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15579. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15580. var _this = this;
  15581. _this.progress = 0;
  15582. _this.proVisible = true;
  15583. _this.isFinishSize = 0;
  15584. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15585. var b = [
  15586. "DOC",
  15587. "DOCX",
  15588. "DOCM",
  15589. "DOTM",
  15590. "DOTX",
  15591. "PPTX",
  15592. "PPSX",
  15593. "PPT",
  15594. "PPS",
  15595. "PPTM",
  15596. "POTM",
  15597. "PPAM",
  15598. "POTX",
  15599. "PPSM",
  15600. ];
  15601. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15602. var photoA = [
  15603. "BMP",
  15604. "GIF",
  15605. "PNG",
  15606. "JPEG",
  15607. "JPEG",
  15608. "JPG",
  15609. "TIF",
  15610. "PCX",
  15611. "TGA",
  15612. "EXIF",
  15613. "FPX",
  15614. "SVG",
  15615. "APNG",
  15616. ];
  15617. // if (
  15618. // b.indexOf(
  15619. // file.name
  15620. // .split(".")
  15621. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15622. // ) != -1
  15623. // ) {
  15624. // if (file.size / 1024 / 1024 > 10) {
  15625. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15626. // return;
  15627. // }
  15628. // } else if (
  15629. // excelA.indexOf(
  15630. // file.name
  15631. // .split(".")
  15632. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15633. // ) != "-1"
  15634. // ) {
  15635. // if (file.size / 1024 / 1024 > 5) {
  15636. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15637. // return;
  15638. // }
  15639. // }
  15640. if (
  15641. photoA.indexOf(
  15642. file.name
  15643. .split(".")
  15644. [file.name.split(".").length - 1].toLocaleUpperCase()
  15645. ) != -1 &&
  15646. type != 4
  15647. ) {
  15648. // const blob = await imageConversion.compress(file, 0.8)
  15649. file = await this.pngToWhiteBg(file);
  15650. const blob = await imageConversion.compressAccurately(file, 256);
  15651. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15652. file = new File([blob], file.name, { type: file.type });
  15653. }
  15654. if (file) {
  15655. var params = {
  15656. Key:
  15657. file.name.split(".")[0] +
  15658. new Date().getTime() +
  15659. "." +
  15660. file.name.split(".")[file.name.split(".").length - 1],
  15661. ContentType: file.type,
  15662. Body: file,
  15663. "Access-Control-Allow-Credentials": "*",
  15664. ACL: "public-read",
  15665. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15666. var options = {
  15667. // partSize: 2048 * 1024 * 1024,
  15668. partSize: 1024 * 1024 * 1024,
  15669. queueSize: 2,
  15670. leavePartsOnError: true,
  15671. };
  15672. bucket
  15673. .upload(params, options)
  15674. .on("httpUploadProgress", function (evt) {
  15675. //这里可以写进度条
  15676. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15677. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15678. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15679. })
  15680. .send(function (err, data) {
  15681. _this.progress = 100;
  15682. _this.isFinishSize = _this.isAllSize;
  15683. setTimeout(() => {
  15684. _this.proVisible = false;
  15685. }, 1000);
  15686. if (err) {
  15687. var a = _this.$refs.upload1.uploadFiles;
  15688. a.splice(a.length - 1, a.length);
  15689. _this.$message.error("上传失败");
  15690. } else {
  15691. // _this.$message.success('上传成功')
  15692. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15693. var c = [
  15694. "AVI",
  15695. "NAVI",
  15696. "MPEG",
  15697. "ASF",
  15698. "MOV",
  15699. "WMV",
  15700. "3GP",
  15701. "RM",
  15702. "RMVB",
  15703. "FLV",
  15704. "F4V",
  15705. "H.264",
  15706. "H.265",
  15707. "REAL VIDEO",
  15708. "MKV",
  15709. "WebM",
  15710. "HDDVD",
  15711. "MP4",
  15712. "MPG",
  15713. "M4V",
  15714. "MGV",
  15715. "OGV",
  15716. "QTM",
  15717. "STR",
  15718. "AMC",
  15719. "DVX",
  15720. "EVO",
  15721. "DAT",
  15722. "OGG",
  15723. "OGM",
  15724. ];
  15725. if (type == 1) {
  15726. _this.studyJuri[0].cover.push({
  15727. name: file.name,
  15728. url: data.Location,
  15729. uid: file.uid,
  15730. });
  15731. if (
  15732. c.indexOf(
  15733. _this.studyJuri[0].cover[0].url
  15734. .split(".")
  15735. [
  15736. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15737. ].toLocaleUpperCase()
  15738. ) != -1
  15739. ) {
  15740. _this.fileType = 2;
  15741. } else if (
  15742. b.indexOf(
  15743. _this.studyJuri[0].cover[0].url
  15744. .split(".")
  15745. [
  15746. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15747. ].toLocaleUpperCase()
  15748. ) != -1
  15749. ) {
  15750. _this.fileType = 1;
  15751. } else if (
  15752. photoA.indexOf(
  15753. _this.studyJuri[0].cover[0].url
  15754. .split(".")
  15755. [
  15756. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15757. ].toLocaleUpperCase()
  15758. ) != -1
  15759. ) {
  15760. _this.fileType = 0;
  15761. } else {
  15762. _this.fileType = 3;
  15763. }
  15764. _this.imgChange(null, null, type);
  15765. } else if (type == 2) {
  15766. _this.upToolImg = data.Location;
  15767. _this.imgChange(null, null, type);
  15768. _this.addCourseWorks(i);
  15769. } else if (type == 4) {
  15770. _this.addPz("3", data.Location);
  15771. } else if (type == 5) {
  15772. _this.addImgDrawImG(data.Location);
  15773. } else if (type == 6) {
  15774. var _ftype = 1;
  15775. if (
  15776. c.indexOf(
  15777. data.Location.split(".")[
  15778. data.Location.split(".").length - 1
  15779. ].toLocaleUpperCase()
  15780. ) != -1
  15781. ) {
  15782. _ftype = 5;
  15783. } else if (
  15784. b.indexOf(
  15785. data.Location.split(".")[
  15786. data.Location.split(".").length - 1
  15787. ].toLocaleUpperCase()
  15788. ) != -1
  15789. ) {
  15790. _ftype = 4;
  15791. } else {
  15792. _ftype = 1;
  15793. }
  15794. _this.plworkFile.push({
  15795. name: file.name,
  15796. url: data.Location,
  15797. uid: file.uid,
  15798. fileType: _ftype,
  15799. username:
  15800. _this.plworkFile.length > 10
  15801. ? _this.plworkFile.length + 1
  15802. : "0" + (_this.plworkFile.length + 1),
  15803. });
  15804. } else if (type == 7) {
  15805. _this.addCourseWorksGong(i, data.Location, 32);
  15806. } else if (type == 8) {
  15807. _this.addCourseWorksGong(i, data.Location, 57);
  15808. }
  15809. _this.imgChange(null, null, type);
  15810. console.log(data.Location);
  15811. // _this.$message.success('上传成功'+data.Location)
  15812. }
  15813. });
  15814. }
  15815. },
  15816. async beforeUpload3(event, type, i) {
  15817. // this.$message.success('进入上传')
  15818. let file = "";
  15819. let cfindex2 = 0;
  15820. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15821. file = event.target.files[cfindex];
  15822. var credentials = {
  15823. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15824. secretAccessKey: "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",
  15825. }; //秘钥形式的登录上传
  15826. window.AWS.config.update(credentials);
  15827. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15828. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15829. var _this = this;
  15830. // _this.progress = 0;
  15831. _this.proVisible2 = true;
  15832. var b = [
  15833. "DOC",
  15834. "DOCX",
  15835. "DOCM",
  15836. "DOTM",
  15837. "DOTX",
  15838. "PPTX",
  15839. "PPSX",
  15840. "PPT",
  15841. "PPS",
  15842. "PPTM",
  15843. "POTM",
  15844. "PPAM",
  15845. "POTX",
  15846. "PPSM",
  15847. ];
  15848. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15849. var photoA = [
  15850. "BMP",
  15851. "GIF",
  15852. "PNG",
  15853. "JPEG",
  15854. "JPG",
  15855. "TIF",
  15856. "PCX",
  15857. "TGA",
  15858. "EXIF",
  15859. "FPX",
  15860. "SVG",
  15861. "APNG",
  15862. ];
  15863. if (
  15864. photoA.indexOf(
  15865. file.name
  15866. .split(".")
  15867. [file.name.split(".").length - 1].toLocaleUpperCase()
  15868. ) != -1 &&
  15869. type != 4
  15870. ) {
  15871. // const blob = await imageConversion.compress(file, 0.8)
  15872. file = await this.pngToWhiteBg(file);
  15873. const blob = await imageConversion.compressAccurately(file, 256);
  15874. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15875. file = new File([blob], file.name, { type: file.type });
  15876. }
  15877. if (file) {
  15878. var params = {
  15879. Key:
  15880. file.name.split(".")[0] +
  15881. new Date().getTime() +
  15882. "." +
  15883. file.name.split(".")[file.name.split(".").length - 1],
  15884. ContentType: file.type,
  15885. Body: file,
  15886. "Access-Control-Allow-Credentials": "*",
  15887. ACL: "public-read",
  15888. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15889. var options = {
  15890. // partSize: 2048 * 1024 * 1024,
  15891. partSize: 1024 * 1024 * 1024,
  15892. queueSize: 2,
  15893. leavePartsOnError: true,
  15894. };
  15895. bucket
  15896. .upload(params, options)
  15897. .on("httpUploadProgress", function (evt) {
  15898. //这里可以写进度条
  15899. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15900. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15901. })
  15902. .send(function (err, data) {
  15903. // _this.progress = 100;
  15904. cfindex2++;
  15905. setTimeout(() => {
  15906. if (
  15907. cfindex2 == event.target.files.length - 1 ||
  15908. cfindex2 > event.target.files.length - 1
  15909. ) {
  15910. _this.proVisible2 = false;
  15911. }
  15912. }, 1000);
  15913. if (err) {
  15914. var a = _this.$refs.upload1.uploadFiles;
  15915. a.splice(a.length - 1, a.length);
  15916. _this.$message.error("上传失败");
  15917. } else {
  15918. // _this.$message.success('上传成功')
  15919. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15920. var c = [
  15921. "AVI",
  15922. "NAVI",
  15923. "MPEG",
  15924. "ASF",
  15925. "MOV",
  15926. "WMV",
  15927. "3GP",
  15928. "RM",
  15929. "RMVB",
  15930. "FLV",
  15931. "F4V",
  15932. "H.264",
  15933. "H.265",
  15934. "REAL VIDEO",
  15935. "MKV",
  15936. "WebM",
  15937. "HDDVD",
  15938. "MP4",
  15939. "MPG",
  15940. "M4V",
  15941. "MGV",
  15942. "OGV",
  15943. "QTM",
  15944. "STR",
  15945. "AMC",
  15946. "DVX",
  15947. "EVO",
  15948. "DAT",
  15949. "OGG",
  15950. "OGM",
  15951. ];
  15952. if (type == 1) {
  15953. _this.studyJuri[0].cover.push({
  15954. name: file.name,
  15955. url: data.Location,
  15956. uid: file.uid,
  15957. });
  15958. if (
  15959. c.indexOf(
  15960. _this.studyJuri[0].cover[0].url
  15961. .split(".")
  15962. [
  15963. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15964. ].toLocaleUpperCase()
  15965. ) != -1
  15966. ) {
  15967. _this.fileType = 2;
  15968. } else if (
  15969. b.indexOf(
  15970. _this.studyJuri[0].cover[0].url
  15971. .split(".")
  15972. [
  15973. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15974. ].toLocaleUpperCase()
  15975. ) != -1
  15976. ) {
  15977. _this.fileType = 1;
  15978. } else {
  15979. _this.fileType = 0;
  15980. }
  15981. _this.imgChange(null, null, type);
  15982. } else if (type == 2) {
  15983. _this.upToolImg = data.Location;
  15984. _this.imgChange(null, null, type);
  15985. _this.addCourseWorks(i);
  15986. } else if (type == 4) {
  15987. _this.addPz("3", data.Location);
  15988. } else if (type == 5) {
  15989. _this.addImgDrawImG(data.Location);
  15990. } else if (type == 6) {
  15991. var _ftype = 1;
  15992. if (
  15993. c.indexOf(
  15994. data.Location.split(".")[
  15995. data.Location.split(".").length - 1
  15996. ].toLocaleUpperCase()
  15997. ) != -1
  15998. ) {
  15999. _ftype = 5;
  16000. } else if (
  16001. b.indexOf(
  16002. data.Location.split(".")[
  16003. data.Location.split(".").length - 1
  16004. ].toLocaleUpperCase()
  16005. ) != -1
  16006. ) {
  16007. _ftype = 4;
  16008. } else {
  16009. _ftype = 1;
  16010. }
  16011. _this.plworkFile.push({
  16012. name: file.name,
  16013. url: data.Location,
  16014. uid: file.uid,
  16015. fileType: _ftype,
  16016. username:
  16017. _this.plworkFile.length + 1 > 9
  16018. ? _this.plworkFile.length + 1
  16019. : "0" + (_this.plworkFile.length + 1),
  16020. });
  16021. }
  16022. _this.imgChange(null, null, type);
  16023. console.log(data.Location);
  16024. // _this.$message.success('上传成功'+data.Location)
  16025. }
  16026. });
  16027. }
  16028. }
  16029. },
  16030. beforeUpload2(event, type) {
  16031. var file = event.target.files[0];
  16032. var credentials = {
  16033. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16034. secretAccessKey: "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",
  16035. }; //秘钥形式的登录上传
  16036. window.AWS.config.update(credentials);
  16037. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16038. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16039. var _this = this;
  16040. _this.progress = 0;
  16041. _this.proVisible = true;
  16042. if (file) {
  16043. var params = {
  16044. Key:
  16045. file.name.split(".")[0] +
  16046. new Date().getTime() +
  16047. "." +
  16048. file.name.split(".")[file.name.split(".").length - 1],
  16049. ContentType: file.type,
  16050. Body: file,
  16051. "Access-Control-Allow-Credentials": "*",
  16052. ACL: "public-read",
  16053. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16054. var options = {
  16055. partSize: 2048 * 1024 * 1024,
  16056. queueSize: 2,
  16057. leavePartsOnError: true,
  16058. };
  16059. bucket
  16060. .upload(params, options)
  16061. .on("httpUploadProgress", function (evt) {
  16062. //这里可以写进度条
  16063. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16064. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16065. })
  16066. .send(function (err, data) {
  16067. _this.progress = 100;
  16068. setTimeout(() => {
  16069. _this.proVisible = false;
  16070. }, 1000);
  16071. if (err) {
  16072. var a = _this.$refs.upload1.uploadFiles;
  16073. a.splice(a.length - 1, a.length);
  16074. _this.$message.error("上传失败");
  16075. } else {
  16076. if (type == 2) {
  16077. _this.studyJuri[0].upVedio.push({
  16078. name: file.name,
  16079. url: data.Location,
  16080. uid: file.uid,
  16081. });
  16082. _this.imgChange(null, null, type);
  16083. } else if (type == 3) {
  16084. _this.studyJuri[0].upFile.push({
  16085. name: file.name,
  16086. url: data.Location,
  16087. uid: file.uid,
  16088. });
  16089. _this.imgChange(null, null, type);
  16090. }
  16091. console.log(data.Location);
  16092. }
  16093. });
  16094. }
  16095. },
  16096. allScrell() {
  16097. window.parent.postMessage({ allScreen: this.screenType }, "*");
  16098. },
  16099. nextOrpreSteps(t) {
  16100. if (this.IsFollow && this.tType == 2) {
  16101. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16102. return;
  16103. }
  16104. var b = this.chapInfoList.length - 1;
  16105. if (t == 0) {
  16106. if (this.courseType == 0) {
  16107. if (this.taskCount == 0) {
  16108. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16109. if (this.IsLookOpen) {
  16110. if (
  16111. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16112. ) {
  16113. if (
  16114. this.courseDetail.userid != this.userid &&
  16115. (!this.courseDetail.course_teacher ||
  16116. (this.courseDetail.course_teacher &&
  16117. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16118. ) {
  16119. this.$message.error("任务未解锁");
  16120. } else {
  16121. this.$message.error("上一任务未解锁");
  16122. }
  16123. return;
  16124. }
  16125. }
  16126. this.navList[this.courseType].isOpen = false;
  16127. this.courseType = b;
  16128. this.taskCount =
  16129. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16130. .length - 1;
  16131. this.navList[this.courseType].isOpen = true;
  16132. } else {
  16133. this.taskCount--;
  16134. }
  16135. } else {
  16136. if (this.taskCount == 0) {
  16137. this.navList[this.courseType].isOpen = false;
  16138. this.courseType--;
  16139. this.taskCount =
  16140. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16141. .length - 1;
  16142. this.navList[this.courseType].isOpen = true;
  16143. } else {
  16144. this.taskCount--;
  16145. }
  16146. }
  16147. } else {
  16148. if (this.courseType == b) {
  16149. if (
  16150. this.taskCount ==
  16151. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16152. 1
  16153. ) {
  16154. this.navList[this.courseType].isOpen = false;
  16155. this.courseType = 0;
  16156. this.taskCount = 0;
  16157. this.navList[this.courseType].isOpen = true;
  16158. } else {
  16159. var bbb = parseInt(this.taskCount) + 1;
  16160. if (
  16161. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16162. .isLook &&
  16163. this.courseDetail.userid != this.userid &&
  16164. (!this.courseDetail.course_teacher ||
  16165. (this.courseDetail.course_teacher &&
  16166. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16167. this.IsLookOpen
  16168. ) {
  16169. this.$message.error("任务未解锁");
  16170. return;
  16171. }
  16172. this.taskCount++;
  16173. if (this.IsLookOpen) {
  16174. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16175. this.taskCount
  16176. ].isLook = true;
  16177. this.addCourseState(3);
  16178. }
  16179. }
  16180. } else {
  16181. if (
  16182. this.taskCount ==
  16183. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16184. 1
  16185. ) {
  16186. var bbb = parseInt(this.courseType) + 1;
  16187. if (
  16188. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16189. this.courseDetail.userid != this.userid &&
  16190. (!this.courseDetail.course_teacher ||
  16191. (this.courseDetail.course_teacher &&
  16192. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16193. this.IsLookOpen
  16194. ) {
  16195. this.$message.error("任务未解锁");
  16196. return;
  16197. }
  16198. this.navList[this.courseType].isOpen = false;
  16199. this.courseType++;
  16200. this.taskCount = 0;
  16201. this.navList[this.courseType].isOpen = true;
  16202. } else {
  16203. var bbb = parseInt(this.taskCount) + 1;
  16204. if (
  16205. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16206. .isLook &&
  16207. this.courseDetail.userid != this.userid &&
  16208. (!this.courseDetail.course_teacher ||
  16209. (this.courseDetail.course_teacher &&
  16210. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16211. this.IsLookOpen
  16212. ) {
  16213. this.$message.error("任务未解锁");
  16214. return;
  16215. }
  16216. this.taskCount++;
  16217. }
  16218. if (this.IsLookOpen) {
  16219. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16220. this.taskCount
  16221. ].isLook = true;
  16222. this.addCourseState(3);
  16223. }
  16224. }
  16225. // if (
  16226. // this.taskCount ==
  16227. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16228. // ) {
  16229. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16230. // } else {
  16231. // this.taskCount++;
  16232. // }
  16233. }
  16234. document.scrollingElement.scrollTop = 0;
  16235. this.showType = 7;
  16236. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16237. // if (this.vedio[this.taskCount].length > 0) {
  16238. // var a =
  16239. // document.getElementsByClassName("box_course")[this.taskCount]
  16240. // .offsetHeight;
  16241. // document.getElementsByClassName("vedioList")[
  16242. // this.taskCount
  16243. // ].style.height = a + "px";
  16244. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16245. // a - 40 + "px";
  16246. // }
  16247. this.isNoHomeWork = false;
  16248. (this.studyJuri = [
  16249. {
  16250. content: "",
  16251. cover: [],
  16252. upVedio: [],
  16253. upFile: [],
  16254. },
  16255. ]),
  16256. (this.radio = []);
  16257. this.isClickNav = "";
  16258. this.selectPz();
  16259. this.getHomeWork();
  16260. this.getCourseDetail(2);
  16261. this.$forceUpdate();
  16262. },
  16263. openTask(s, n, i) {
  16264. this.refreshAssembly()
  16265. if (this.IsFollow && this.tType == 2) {
  16266. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16267. return;
  16268. }
  16269. if (this.IsLookOpen) {
  16270. if (
  16271. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16272. this.courseDetail.userid != this.userid &&
  16273. (!this.courseDetail.course_teacher ||
  16274. (this.courseDetail.course_teacher &&
  16275. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16276. ) {
  16277. this.$message.error("任务未解锁");
  16278. return;
  16279. }
  16280. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16281. if (
  16282. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16283. .isLook
  16284. ) {
  16285. this.$message.error("上一任务未解锁");
  16286. return;
  16287. }
  16288. } else if (s > this.courseType) {
  16289. if (n > 0) {
  16290. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16291. this.$message.error("上一任务未解锁");
  16292. return;
  16293. }
  16294. } else {
  16295. if (
  16296. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16297. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16298. ].isLook
  16299. ) {
  16300. this.$message.error("上一任务未解锁");
  16301. return;
  16302. }
  16303. }
  16304. }
  16305. }
  16306. if (this.navList[s].task[n].isOpen == true) {
  16307. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16308. return;
  16309. }
  16310. this.courseType = s;
  16311. this.navId = i;
  16312. this.taskCount = n;
  16313. this.navList[this.courseType].task[this.taskCount].isOpen =
  16314. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16315. if (this.IsLookOpen) {
  16316. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16317. this.taskCount
  16318. ].isLook = true;
  16319. this.addCourseState(3);
  16320. }
  16321. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  16322. this.isCloseList[ci].isClose = 0;
  16323. this.isCloseList[ci].isCloseBoolean = false;
  16324. this.$nextTick(()=>{
  16325. setTimeout(()=>{
  16326. setTimeout(()=>{
  16327. this.panToolHeight('tool-'+ci);
  16328. }, 0)
  16329. }, 0)
  16330. })
  16331. }
  16332. this.showType = 7;
  16333. this.isNoHomeWork = false;
  16334. (this.studyJuri = [
  16335. {
  16336. content: "",
  16337. cover: [],
  16338. upVedio: [],
  16339. upFile: [],
  16340. },
  16341. ]),
  16342. (this.radio = []);
  16343. document.scrollingElement.scrollTop = 0;
  16344. // setTimeout(() => {
  16345. // let a = document.getElementById(i);
  16346. // if (a.offsetTop - 110 == 0) {
  16347. // window.scrollTo(0, 0);
  16348. // } else {
  16349. // window.scrollTo(0, a.offsetTop);
  16350. // }
  16351. // }, 0);
  16352. for (var z = 0; z < this.navList.length; z++) {
  16353. for (var q = 0; q < this.navList[z].task.length; q++) {
  16354. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16355. this.navList[z].task[q].tool[w].isTool = false;
  16356. }
  16357. }
  16358. }
  16359. this.selectPz();
  16360. this.getHomeWork();
  16361. this.getCourseDetail(2);
  16362. },
  16363. get(i) {
  16364. if (this.IsFollow && this.tType == 2) {
  16365. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16366. return;
  16367. }
  16368. // for(var k=0;k<this.navList.length;k++){
  16369. // this.navList[k].isOpen = false;
  16370. // }
  16371. // this.navList[i].isOpen = true;
  16372. this.navList[i].isOpen = !this.navList[i].isOpen;
  16373. if (this.navList[i].isOpen) {
  16374. this.openTask(i, 0, i + "-0");
  16375. }
  16376. },
  16377. addQuestion() {
  16378. this.answerList.push({
  16379. answerTitle: this.answerQ,
  16380. answer: this.questionAnswer,
  16381. });
  16382. let params = [
  16383. {
  16384. uid: this.userid,
  16385. cid: this.id,
  16386. stage: this.courseType,
  16387. task: this.taskCount,
  16388. tool: this.toolindex,
  16389. content: JSON.stringify(this.answerList),
  16390. type: 3,
  16391. },
  16392. ];
  16393. this.ajax
  16394. .post(this.$store.state.api + "addCourseWorks", params)
  16395. .then((res) => {
  16396. this.$message({
  16397. message: "提交成功",
  16398. type: "success",
  16399. });
  16400. this.answerList = [];
  16401. this.answerDialogVisible = false;
  16402. this.selectStudent();
  16403. this.selectSWorks();
  16404. this.selectSLook();
  16405. })
  16406. .catch((err) => {
  16407. this.$message.error("提交失败");
  16408. console.error(err);
  16409. });
  16410. },
  16411. addQuestionTeacher() {
  16412. this.answerList.push({
  16413. answerTitle: this.answerQ,
  16414. answer: this.questionAnswer,
  16415. });
  16416. let params = [
  16417. {
  16418. uid: this.sStudent.userid,
  16419. cid: this.id,
  16420. stage: this.courseType,
  16421. task: this.taskCount,
  16422. tool: this.toolindex,
  16423. content: JSON.stringify(this.answerList),
  16424. type: 3,
  16425. ateacher: this.userid,
  16426. },
  16427. ];
  16428. this.ajax
  16429. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16430. .then((res) => {
  16431. this.$message({
  16432. message: "提交成功",
  16433. type: "success",
  16434. });
  16435. this.answerList = [];
  16436. this.questionAnswer = "";
  16437. this.answerDialogVisibleTeacher = false;
  16438. this.selectStudent();
  16439. this.selectSWorks();
  16440. this.selectSLook();
  16441. })
  16442. .catch((err) => {
  16443. this.$message.error("提交失败");
  16444. console.error(err);
  16445. });
  16446. },
  16447. refreshCourse() {
  16448. // window.location.reload();
  16449. this.navList = [];
  16450. this.getCourseDetail(1);
  16451. },
  16452. getCourseDetail(type, gindex) {
  16453. let loading;
  16454. if (type != 2) {
  16455. loading = this.$loading.service({
  16456. background: "rgba(255, 255, 255, 0.7)",
  16457. target: document.querySelector(".student_table"),
  16458. });
  16459. }
  16460. this.downLoading = false
  16461. // this.navList[0].isOpen = false;
  16462. // this.navList[this.courseType].isOpen = true;
  16463. // this.courseType = this.courseTypeLine;
  16464. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16465. let params = {
  16466. courseId: this.id,
  16467. };
  16468. this.ajax
  16469. .get(this.$store.state.api + "selectCourseDetail3", params)
  16470. .then((res) => {
  16471. if (type != 2) {
  16472. loading.close();
  16473. if (
  16474. this.courseType >
  16475. JSON.parse(res.data[0][0].chapters).length - 1
  16476. ) {
  16477. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16478. }
  16479. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16480. .chapterInfo[0].taskJson;
  16481. var b = [
  16482. "AVI",
  16483. "NAVI",
  16484. "MPEG",
  16485. "ASF",
  16486. "MOV",
  16487. "WMV",
  16488. "3GP",
  16489. "RM",
  16490. "RMVB",
  16491. "FLV",
  16492. "F4V",
  16493. "H.264",
  16494. "H.265",
  16495. "REAL VIDEO",
  16496. "MKV",
  16497. "WebM",
  16498. "HDDVD",
  16499. "MP4",
  16500. "MPG",
  16501. "M4V",
  16502. "MGV",
  16503. "OGV",
  16504. "QTM",
  16505. "STR",
  16506. "AMC",
  16507. "DVX",
  16508. "EVO",
  16509. "DAT",
  16510. "OGG",
  16511. "OGM",
  16512. "MP3",
  16513. ];
  16514. let _chapterData = [];
  16515. for (var i = 0; i < a.length; i++) {
  16516. var c = a[i].chapterData;
  16517. this.vedio[i] = [];
  16518. this.textList[i] = [];
  16519. this.lineList[i] = [];
  16520. this.chapToolList[i] = [];
  16521. this.file[i] = [];
  16522. this.fileC[i] = [];
  16523. _chapterData[i] = c.filter((el) => {
  16524. return el.type != 12;
  16525. });
  16526. this.fileC[i] = c.filter((el) => {
  16527. return el.type == 12;
  16528. });
  16529. // else if (c[j].type == 12) {
  16530. // this.fileC[i].push(c[j]);
  16531. // }
  16532. for (var j = 0; j < c.length; j++) {
  16533. if (c[j].type == 7) {
  16534. this.chapToolList[i].push(c[j]);
  16535. } else if (c[j].type == 8 || c[j].type == 14) {
  16536. this.lineList[i].push(c[j]);
  16537. } else if (c[j].type == 6) {
  16538. this.textList[i].push(c[j]);
  16539. } else {
  16540. if (
  16541. b.indexOf(
  16542. c[j].url
  16543. .split(".")
  16544. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16545. ) != -1
  16546. ) {
  16547. this.vedio[i].push(c[j]);
  16548. } else {
  16549. this.file[i].push(c[j]);
  16550. }
  16551. }
  16552. }
  16553. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16554. d.sources[0].src =
  16555. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16556. this.playerO[i] = d;
  16557. }
  16558. this.courseDetail = res.data[0][0];
  16559. this.tcid = this.arrayToArray(
  16560. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16561. this.tcid2 ? this.tcid2.split(",") : []
  16562. ).join(",");
  16563. this.evalua = res.data[0][0].evaId;
  16564. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16565. this.courseType
  16566. ];
  16567. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16568. if (this.tcid && res.data[1].length) {
  16569. let _inviteA = [];
  16570. for (var ik = 0; ik < res.data[1].length; ik++) {
  16571. _inviteA.push({
  16572. cid: res.data[1][ik].classid,
  16573. ic: res.data[1][ik].code,
  16574. });
  16575. }
  16576. for (var ik = 0; ik < _inviteA.length; ik++) {
  16577. if (
  16578. this.arrayToArray(
  16579. _inviteA[ik].cid.split(","),
  16580. this.tcid.split(",")
  16581. ).length
  16582. ) {
  16583. this.inviteCode = _inviteA[ik].ic;
  16584. break;
  16585. }
  16586. }
  16587. }
  16588. for (var l = 0; l < this.chapInfoList.length; l++) {
  16589. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16590. for (var m = 0; m < w.length; m++) {
  16591. w[m].id = l + "-" + m;
  16592. }
  16593. }
  16594. if (
  16595. _chapterData[this.taskCount].length &&
  16596. _chapterData[this.taskCount][0].type == 2
  16597. ) {
  16598. this.showType = 0;
  16599. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16600. } else {
  16601. if (_chapterData[this.taskCount].length > 0) {
  16602. let _url = _chapterData[this.taskCount][0].url;
  16603. if (
  16604. _chapterData[this.taskCount][0].type == 8 ||
  16605. _chapterData[this.taskCount][0].type == 14
  16606. ) {
  16607. this.showType = 2;
  16608. if (
  16609. _url.indexOf("https://") == -1 &&
  16610. _url.indexOf("http://") == -1
  16611. ) {
  16612. _url = "https://" + _url;
  16613. }
  16614. this.pptImgUrl1 = _url;
  16615. } else if (_chapterData[this.taskCount][0].type == 3) {
  16616. if (
  16617. _url
  16618. .split(".")
  16619. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16620. ) {
  16621. this.showType = 3;
  16622. this.pptImgUrl1 = _url;
  16623. } else if (
  16624. this.isAssetTypeAnImage(
  16625. _url
  16626. .split(".")
  16627. [_url.split(".").length - 1].toLocaleLowerCase()
  16628. )
  16629. ) {
  16630. this.showType = 4;
  16631. this.pptImgUrl1 = _url;
  16632. } else {
  16633. this.showType = 2;
  16634. this.pptImgUrl1 =
  16635. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16636. encodeURIComponent(_url);
  16637. }
  16638. } else if (_chapterData[this.taskCount][0].type == 13) {
  16639. this.showType = 4;
  16640. this.pptImgUrl1 = _url;
  16641. } else if (_chapterData[this.taskCount][0].type == 6) {
  16642. this.showType = 1;
  16643. this.text = this.textList[this.taskCount][0];
  16644. }
  16645. }
  16646. }
  16647. this.isClickNav = 0;
  16648. if (
  16649. !_chapterData[this.taskCount].length ||
  16650. _chapterData[this.taskCount][0].type == 12
  16651. ) {
  16652. this.isClickNav = "";
  16653. this.showType = "";
  16654. }
  16655. this.vChapterData = _chapterData;
  16656. } else {
  16657. this.showType = 0;
  16658. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16659. .chapterInfo[0].taskJson;
  16660. var b = [
  16661. "AVI",
  16662. "NAVI",
  16663. "MPEG",
  16664. "ASF",
  16665. "MOV",
  16666. "WMV",
  16667. "3GP",
  16668. "RM",
  16669. "RMVB",
  16670. "FLV",
  16671. "F4V",
  16672. "H.264",
  16673. "H.265",
  16674. "REAL VIDEO",
  16675. "MKV",
  16676. "WebM",
  16677. "HDDVD",
  16678. "MP4",
  16679. "MPG",
  16680. "M4V",
  16681. "MGV",
  16682. "OGV",
  16683. "QTM",
  16684. "STR",
  16685. "AMC",
  16686. "DVX",
  16687. "EVO",
  16688. "DAT",
  16689. "OGG",
  16690. "OGM",
  16691. "MP3",
  16692. ];
  16693. let _chapterData = [];
  16694. for (var i = 0; i < a.length; i++) {
  16695. var c = a[i].chapterData;
  16696. this.vedio[i] = [];
  16697. this.textList[i] = [];
  16698. this.lineList[i] = [];
  16699. this.chapToolList[i] = [];
  16700. this.file[i] = [];
  16701. this.fileC[i] = [];
  16702. _chapterData[i] = c.filter((el) => {
  16703. return el.type != 12;
  16704. });
  16705. this.fileC[i] = c.filter((el) => {
  16706. return el.type == 12;
  16707. });
  16708. for (var j = 0; j < c.length; j++) {
  16709. if (c[j].type == 7) {
  16710. this.chapToolList[i].push(c[j]);
  16711. } else if (c[j].type == 8 || c[j].type == 14) {
  16712. this.lineList[i].push(c[j]);
  16713. } else if (c[j].type == 6) {
  16714. this.textList[i].push(c[j]);
  16715. } else {
  16716. if (
  16717. b.indexOf(
  16718. c[j].url
  16719. .split(".")
  16720. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16721. ) != -1
  16722. ) {
  16723. this.vedio[i].push(c[j]);
  16724. } else {
  16725. this.file[i].push(c[j]);
  16726. }
  16727. }
  16728. }
  16729. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16730. d.sources[0].src =
  16731. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16732. this.playerO[i] = d;
  16733. }
  16734. if (
  16735. _chapterData[this.taskCount].length &&
  16736. _chapterData[this.taskCount][0].type == 2
  16737. ) {
  16738. this.showType = 0;
  16739. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16740. } else {
  16741. if (_chapterData[this.taskCount].length > 0) {
  16742. let _url = _chapterData[this.taskCount][0].url;
  16743. if (
  16744. _chapterData[this.taskCount][0].type == 8 ||
  16745. _chapterData[this.taskCount][0].type == 14
  16746. ) {
  16747. this.showType = 2;
  16748. if (
  16749. _url.indexOf("https://") == -1 &&
  16750. _url.indexOf("http://") == -1
  16751. ) {
  16752. _url = "https://" + _url;
  16753. }
  16754. this.pptImgUrl1 = _url;
  16755. } else if (_chapterData[this.taskCount][0].type == 3) {
  16756. if (
  16757. _url
  16758. .split(".")
  16759. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16760. ) {
  16761. this.showType = 3;
  16762. this.pptImgUrl1 = _url;
  16763. } else if (
  16764. this.isAssetTypeAnImage(
  16765. _url
  16766. .split(".")
  16767. [_url.split(".").length - 1].toLocaleLowerCase()
  16768. )
  16769. ) {
  16770. this.showType = 4;
  16771. this.pptImgUrl1 = _url;
  16772. } else {
  16773. this.showType = 2;
  16774. this.pptImgUrl1 =
  16775. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16776. encodeURIComponent(_url);
  16777. }
  16778. } else if (_chapterData[this.taskCount][0].type == 13) {
  16779. this.showType = 4;
  16780. this.pptImgUrl1 = _url;
  16781. } else if (_chapterData[this.taskCount][0].type == 6) {
  16782. this.showType = 1;
  16783. this.text = this.textList[this.taskCount][0];
  16784. }
  16785. }
  16786. }
  16787. this.isClickNav = 0;
  16788. if (
  16789. !_chapterData[this.taskCount].length ||
  16790. _chapterData[this.taskCount][0].type == 12
  16791. ) {
  16792. this.isClickNav = "";
  16793. this.showType = "";
  16794. }
  16795. this.vChapterData = _chapterData;
  16796. this.$forceUpdate();
  16797. }
  16798. // else {
  16799. // this.courseDetail = res.data[0][0];
  16800. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16801. // }
  16802. let _this = this;
  16803. if (_this.timer) {
  16804. clearInterval(_this.timer);
  16805. _this.timer = null;
  16806. }
  16807. if (_this.tcid) {
  16808. _this.getCourseGroup(gindex);
  16809. } else {
  16810. _this.selectSWorks(gindex);
  16811. }
  16812. _this.selectStudent();
  16813. _this.selectSLook();
  16814. _this.getPick();
  16815. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16816. _this.setCTask();
  16817. }
  16818. if (_this.dialogVisibleGroup) {
  16819. _this.groupJson =
  16820. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16821. _this.taskCount
  16822. ].toolChoose[_this.toolindex].groupJson;
  16823. }
  16824. _this.$nextTick(() => {
  16825. setTimeout(() => {
  16826. _this.checkEva();
  16827. }, 1000);
  16828. });
  16829. _this.timer = setInterval(function () {
  16830. // _this.getCourseDetail(2);
  16831. if (_this.tcid) {
  16832. _this.getCourseGroup(gindex);
  16833. } else {
  16834. _this.selectSWorks(gindex);
  16835. }
  16836. _this.selectStudent();
  16837. _this.selectSLook();
  16838. _this.getPick();
  16839. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16840. _this.setCTask();
  16841. }
  16842. if (_this.dialogVisibleGroup) {
  16843. _this.groupJson =
  16844. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16845. _this.taskCount
  16846. ].toolChoose[_this.toolindex].groupJson;
  16847. }
  16848. if (_this.tType == 4 || _this.ispzType == 4) {
  16849. _this.selectPz();
  16850. }
  16851. }, 5000);
  16852. _this.$nextTick(function () {
  16853. setTimeout(() => {
  16854. // var a =
  16855. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16856. // document.getElementsByClassName("vedioList")[0].style.height =
  16857. // a + "px";
  16858. // document.getElementsByClassName("navBox")[0].style.height =
  16859. // a - 40 + "px";
  16860. // if (_this.vedio[_this.taskCount].length > 0) {
  16861. // _this.vedioTime = [];
  16862. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16863. // _this.vedioTime[i] = document.getElementsByClassName(
  16864. // "vjs-duration-display"
  16865. // )[i].textContent;
  16866. // }
  16867. // }
  16868. }, 1000);
  16869. });
  16870. })
  16871. .catch((err) => {
  16872. loading.close();
  16873. console.error(err);
  16874. });
  16875. },
  16876. getCourseGroup(gindex) {
  16877. let params = {
  16878. cid: this.id,
  16879. classid: this.tcid ? this.tcid : "1",
  16880. };
  16881. this.ajax
  16882. .get(this.$store.state.api + "getCourseGroup", params)
  16883. .then((res) => {
  16884. if (res.data && res.data[0].length) {
  16885. if (!this.isGroup) {
  16886. let courseGroup = JSON.parse(res.data[0][0].group);
  16887. courseGroup.group = courseGroup.group.filter((el) => {
  16888. el.works = [];
  16889. return el;
  16890. });
  16891. if (courseGroup.isopen == 2) {
  16892. this.isGroup = false;
  16893. this.selectSWorks(gindex);
  16894. return;
  16895. }
  16896. this.courseGroup = courseGroup;
  16897. let groupPerson = res.data[1];
  16898. let group = JSON.parse(res.data[0][0].group).group;
  16899. let courseGroupStudent = {};
  16900. let courseGroupStudentUid = {};
  16901. for (var i = 0; i < group.length; i++) {
  16902. courseGroupStudent[group[i].id] = [];
  16903. courseGroupStudentUid[group[i].id] = [];
  16904. for (var j = 0; j < groupPerson.length; j++) {
  16905. if (groupPerson[j].groupCid == group[i].id) {
  16906. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16907. courseGroupStudentUid[group[i].id].push(
  16908. groupPerson[j].userid
  16909. );
  16910. }
  16911. }
  16912. }
  16913. this.courseGroupStudent = courseGroupStudent;
  16914. this.courseGroupStudentUid = courseGroupStudentUid;
  16915. }
  16916. if (this.courseGroup.isopen == 2) {
  16917. this.isGroup = false;
  16918. } else {
  16919. this.isGroup = true;
  16920. }
  16921. this.selectSWorks(gindex);
  16922. } else {
  16923. this.selectSWorks(gindex);
  16924. this.isGroup = false;
  16925. }
  16926. })
  16927. .catch((err) => {
  16928. // this.$message.error("网络不佳");
  16929. console.error(err);
  16930. });
  16931. },
  16932. setOperationTime() {
  16933. let _this = this;
  16934. if (_this.opertimer) {
  16935. clearInterval(_this.opertimer);
  16936. _this.opertimer = null;
  16937. }
  16938. _this.opertimer = setInterval(() => {
  16939. _this.setoTime("600");
  16940. }, 600000);
  16941. },
  16942. setoTime(time) {
  16943. let params = [
  16944. {
  16945. uid: this.userid,
  16946. cid: this.id,
  16947. type: "2",
  16948. time: time,
  16949. },
  16950. ];
  16951. this.ajax
  16952. .post(this.$store.state.api + "addOperationTimeT2", params)
  16953. .then((res) => {})
  16954. .catch((err) => {
  16955. console.error(err);
  16956. });
  16957. },
  16958. addPz(type, content) {
  16959. if (type == "1" && this.pzConText == "") {
  16960. this.$message.error("评论不能为空!");
  16961. return;
  16962. }
  16963. let params = [
  16964. {
  16965. cid: this.id,
  16966. uid: this.userid,
  16967. s: this.courseType,
  16968. t: this.taskCount,
  16969. c: type == "1" ? this.pzConText : content,
  16970. type: type,
  16971. },
  16972. ];
  16973. this.ajax
  16974. .post(this.$store.state.api + "addPz2", params)
  16975. .then((res) => {
  16976. this.$message({
  16977. message: "添加成功",
  16978. type: "success",
  16979. });
  16980. this.pzConText = "";
  16981. this.addPzDialog = false;
  16982. this.selectPz();
  16983. })
  16984. .catch((err) => {
  16985. this.$message.error("添加失败");
  16986. console.error(err);
  16987. });
  16988. },
  16989. setReplyIndex(id, i) {
  16990. this.replyIndex = i;
  16991. this.replyPid = id;
  16992. this.replyDialogVisible = true;
  16993. },
  16994. addHf() {
  16995. if (this.reply == "") {
  16996. this.$message.error("回复不能为空!");
  16997. return;
  16998. }
  16999. let params = [
  17000. {
  17001. cid: this.id,
  17002. uid: this.userid,
  17003. s: this.courseType,
  17004. t: this.taskCount,
  17005. type: "1",
  17006. ct: 2,
  17007. pid: this.replyPid,
  17008. c: this.reply,
  17009. },
  17010. ];
  17011. this.ajax
  17012. .post(this.$store.state.api + "addHf", params)
  17013. .then((res) => {
  17014. this.reply = "";
  17015. this.$message({
  17016. message: "回复成功",
  17017. type: "success",
  17018. });
  17019. this.replyDialogVisible = false;
  17020. this.selectPz();
  17021. })
  17022. .catch((err) => {
  17023. this.$message.error("回复失败");
  17024. console.error(err);
  17025. });
  17026. },
  17027. deletePz(id) {
  17028. this.$confirm("确定删除此评论吗?", "提示", {
  17029. confirmButtonText: "确定",
  17030. cancelButtonText: "取消",
  17031. type: "warning",
  17032. })
  17033. .then(() => {
  17034. let params = [
  17035. {
  17036. id: id,
  17037. },
  17038. ];
  17039. this.ajax
  17040. .post(this.$store.state.api + "deletePz", params)
  17041. .then((res) => {
  17042. this.$message({
  17043. message: "删除成功",
  17044. type: "success",
  17045. });
  17046. this.selectPz();
  17047. })
  17048. .catch((err) => {
  17049. this.$message.error("网络异常");
  17050. console.error(err);
  17051. });
  17052. })
  17053. .catch(() => {});
  17054. },
  17055. deleteReply(id) {
  17056. this.$confirm("确定删除此回复吗?", "提示", {
  17057. confirmButtonText: "确定",
  17058. cancelButtonText: "取消",
  17059. type: "warning",
  17060. })
  17061. .then(() => {
  17062. let params = [
  17063. {
  17064. id: id,
  17065. },
  17066. ];
  17067. this.ajax
  17068. .post(this.$store.state.api + "deleteReply", params)
  17069. .then((res) => {
  17070. this.$message({
  17071. message: "删除成功",
  17072. type: "success",
  17073. });
  17074. this.selectPz();
  17075. })
  17076. .catch((err) => {
  17077. this.$message.error("网络异常");
  17078. console.error(err);
  17079. });
  17080. })
  17081. .catch(() => {});
  17082. },
  17083. setPz() {
  17084. if (this.ispzType == 4) {
  17085. this.ispzType = 0;
  17086. this.pzDialog = false;
  17087. return;
  17088. }
  17089. this.ispzType = 4;
  17090. this.pzDialog = true;
  17091. this.selectPz();
  17092. },
  17093. selectPz() {
  17094. let params = {
  17095. cid: this.id,
  17096. s: this.courseType,
  17097. t: this.taskCount,
  17098. type: this.pzStype,
  17099. uid: this.userid,
  17100. };
  17101. this.ajax
  17102. .get(this.$store.state.api + "selectPzListType", params)
  17103. .then((res) => {
  17104. this.pzList = res.data[0];
  17105. var a = res.data[1];
  17106. for (var i = 0; i < a.length; i++) {
  17107. for (var j = 0; j < this.pzList.length; j++) {
  17108. if (!this.pzList[j].hfList) {
  17109. this.pzList[j].hfList = [];
  17110. }
  17111. if (a[i].pid == this.pzList[j].id) {
  17112. this.pzList[j].hfList.push(a[i]);
  17113. }
  17114. }
  17115. }
  17116. })
  17117. .catch((err) => {
  17118. console.error(err);
  17119. });
  17120. },
  17121. // selectHf() {
  17122. // let params = {
  17123. // cid: this.id,
  17124. // s: this.courseType,
  17125. // t: this.taskCount,
  17126. // };
  17127. // this.ajax
  17128. // .get(this.$store.state.api + "selectHfList", params)
  17129. // .then((res) => {
  17130. // var a = res.data[0];
  17131. // for (var i = 0; i < a.length; i++) {
  17132. // for (var j = 0; j < this.pzList.length; j++) {
  17133. // if (!this.pzList[i].hfList) {
  17134. // this.pzList[i].hfList = [];
  17135. // }
  17136. // if (a[i].pid == this.pzList[j].id) {
  17137. // this.pzList[i].hfList.push(a[i]);
  17138. // }
  17139. // }
  17140. // }
  17141. // })
  17142. // .catch((err) => {
  17143. // console.error(err);
  17144. // });
  17145. // },
  17146. updateSLook() {
  17147. let params = {
  17148. sopen: this.sIsOpen == false ? 1 : 2,
  17149. cid: this.id,
  17150. };
  17151. this.ajax
  17152. .get(this.$store.state.api + "updateCourseSLook", params)
  17153. .then((res) => {
  17154. if (this.sIsOpen == true) {
  17155. this.$message({
  17156. message: "权限设置成功",
  17157. type: "success",
  17158. });
  17159. } else {
  17160. this.$message({
  17161. message: "权限关闭成功",
  17162. type: "success",
  17163. });
  17164. }
  17165. })
  17166. .catch((err) => {
  17167. console.error(err);
  17168. });
  17169. },
  17170. updateFollow() {
  17171. let params = [
  17172. {
  17173. sopen: this.IsFollow == false ? 1 : 2,
  17174. cid: this.id,
  17175. },
  17176. ];
  17177. this.ajax
  17178. .post(this.$store.state.api + "updateCourseFollow", params)
  17179. .then((res) => {
  17180. if (this.IsFollow == true) {
  17181. this.$message({
  17182. message: "开启成功",
  17183. type: "success",
  17184. });
  17185. } else {
  17186. this.$message({
  17187. message: "关闭成功",
  17188. type: "success",
  17189. });
  17190. }
  17191. this.setCTask();
  17192. })
  17193. .catch((err) => {
  17194. console.error(err);
  17195. });
  17196. },
  17197. setCTask() {
  17198. let params = [
  17199. {
  17200. sopen: this.courseType + "-" + this.taskCount,
  17201. cid: this.id,
  17202. },
  17203. ];
  17204. this.ajax
  17205. .post(this.$store.state.api + "updateCourseFollowC", params)
  17206. .then((res) => {})
  17207. .catch((err) => {
  17208. console.error(err);
  17209. });
  17210. },
  17211. updateLookOpen() {
  17212. let params = [
  17213. {
  17214. sopen: this.IsLookOpen == false ? 1 : 2,
  17215. cid: this.id,
  17216. },
  17217. ];
  17218. this.ajax
  17219. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17220. .then((res) => {
  17221. if (this.IsLookOpen == true) {
  17222. // if (this.courseType != 0 && this.taskCount != 0) {
  17223. // this.openTask(0, 0, "0-0");
  17224. // }
  17225. this.$message({
  17226. message: "权限设置成功",
  17227. type: "success",
  17228. });
  17229. } else {
  17230. this.$message({
  17231. message: "权限关闭成功",
  17232. type: "success",
  17233. });
  17234. }
  17235. this.getCourseState(2);
  17236. })
  17237. .catch((err) => {
  17238. console.error(err);
  17239. });
  17240. },
  17241. selectSLook() {
  17242. let params = {
  17243. cid: this.id,
  17244. };
  17245. this.ajax
  17246. .get(this.$store.state.api + "selectCourseSLook", params)
  17247. .then((res) => {
  17248. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17249. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17250. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17251. if (!this.IsLookOpen) {
  17252. this.setNavList();
  17253. } else {
  17254. this.getCourseState(1);
  17255. }
  17256. if (this.IsFollow && this.tType == 2) {
  17257. this.setContent2(false);
  17258. let _followC = res.data[0][0].followC.split("-");
  17259. if (
  17260. this.courseType != _followC[0] ||
  17261. this.taskCount != _followC[1]
  17262. ) {
  17263. this.navList[this.courseType].isOpen = false;
  17264. this.courseType = _followC[0];
  17265. this.navList[this.courseType].isOpen = true;
  17266. this.taskCount = parseInt(_followC[1]);
  17267. this.navId = res.data[0][0].followC;
  17268. document.scrollingElement.scrollTop = 0;
  17269. this.getCourseDetail(2);
  17270. }
  17271. }
  17272. })
  17273. .catch((err) => {
  17274. console.error(err);
  17275. });
  17276. },
  17277. setNavList() {
  17278. if (this.navList.length == 0) {
  17279. this.navList = [];
  17280. var copyList = [];
  17281. for (var l = 0; l < this.chapInfoList.length; l++) {
  17282. var q = this.chapInfoList[l].dyName;
  17283. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17284. var e;
  17285. copyList.push({
  17286. dyName: q,
  17287. isOpen: l === 0 ? true : false,
  17288. task: [],
  17289. });
  17290. for (var r = 0; r < w.length; r++) {
  17291. e = w[r].task;
  17292. if (this.chapInfoList[l].easy == 1) {
  17293. copyList[l].task.push({
  17294. taskName: q,
  17295. id: l + "-" + r,
  17296. isLook: w[r].isLook,
  17297. isOpen: r === 0 ? true : false,
  17298. tool: [],
  17299. });
  17300. } else {
  17301. copyList[l].task.push({
  17302. taskName: e,
  17303. id: l + "-" + r,
  17304. isLook: w[r].isLook,
  17305. isOpen: r === 0 ? true : false,
  17306. tool: [],
  17307. });
  17308. }
  17309. var t = w[r].toolChoose;
  17310. for (var k = 0; k < t.length; k++) {
  17311. var tool = t[k].tool[0];
  17312. copyList[l].task[r].tool.push({
  17313. tool: tool,
  17314. isTool: false,
  17315. });
  17316. }
  17317. // this.navId = this.navId ? this.navId : l + "-" + r;
  17318. // this.navId = l + "-" + r;
  17319. }
  17320. }
  17321. this.navList = copyList;
  17322. this.navList[0].isOpen = false;
  17323. this.navList[this.courseType].isOpen = true;
  17324. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17325. } else {
  17326. this.setNavList2();
  17327. }
  17328. },
  17329. setNavList2() {
  17330. for (var l = 0; l < this.chapInfoList.length; l++) {
  17331. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17332. for (var r = 0; r < w.length; r++) {
  17333. this.navList[l].task[r].isLook = w[r].isLook;
  17334. }
  17335. }
  17336. if (
  17337. this.IsLookOpen &&
  17338. !this.navList[this.courseType].task[this.taskCount].isLook
  17339. ) {
  17340. this.openTask(0, 0, "0-0");
  17341. }
  17342. this.$forceUpdate();
  17343. },
  17344. getCourseState(type) {
  17345. let params = {
  17346. cid: this.id,
  17347. };
  17348. this.ajax
  17349. .get(this.$store.state.api + "getCourseState", params)
  17350. .then((res) => {
  17351. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17352. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17353. this.setNavList();
  17354. this.$forceUpdate();
  17355. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17356. this.addCourseState(2);
  17357. } else {
  17358. this.addCourseState(1);
  17359. }
  17360. })
  17361. .catch((err) => {
  17362. console.error(err);
  17363. });
  17364. },
  17365. addCourseState(type) {
  17366. let _state = this.chapInfoList;
  17367. // this.courseType this.taskCount
  17368. if (type == 1 || type == 2) {
  17369. for (var i = 0; i < _state.length; i++) {
  17370. let el = _state[i].chapterInfo[0].taskJson;
  17371. for (var j = 0; j < el.length; j++) {
  17372. // if (i == 0 && j == 0) {
  17373. // el[j].isLook = true;
  17374. // } else {
  17375. // el[j].isLook = false;
  17376. // }
  17377. if (
  17378. this.courseType > i ||
  17379. (this.courseType == i && this.taskCount + 1 > j)
  17380. ) {
  17381. el[j].isLook = true;
  17382. } else {
  17383. el[j].isLook = false;
  17384. }
  17385. }
  17386. }
  17387. }
  17388. let params = [
  17389. {
  17390. cid: this.id,
  17391. state: JSON.stringify(_state),
  17392. },
  17393. ];
  17394. this.ajax
  17395. .post(
  17396. this.$store.state.api +
  17397. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17398. params
  17399. )
  17400. .then((res) => {
  17401. if (this.IsLookOpen) {
  17402. this.setNavList();
  17403. }
  17404. if (type == 3 && type == 2) {
  17405. this.getCourseState(1);
  17406. }
  17407. })
  17408. .catch((err) => {
  17409. console.error(err);
  17410. });
  17411. },
  17412. getHomeWork() {
  17413. let params = {
  17414. cid: this.id,
  17415. stage: this.courseType,
  17416. task: this.taskCount,
  17417. uid: this.userid,
  17418. };
  17419. this.ajax
  17420. .get(this.$store.state.api + "selectWork", params)
  17421. .then((res) => {
  17422. if (res.data[0].length > 0) {
  17423. this.studyJuri = JSON.parse(res.data[0][0].content);
  17424. this.isNoHomeWork = true;
  17425. }
  17426. })
  17427. .catch((err) => {
  17428. console.error(err);
  17429. });
  17430. },
  17431. isAssetTypeAnImage(ext) {
  17432. return (
  17433. [
  17434. "png",
  17435. "jpg",
  17436. "jpeg",
  17437. "bmp",
  17438. "gif",
  17439. "webp",
  17440. "psd",
  17441. "svg",
  17442. "tiff",
  17443. ].indexOf(ext) !== -1
  17444. );
  17445. },
  17446. switchVideo(media) {
  17447. this.playerO = {};
  17448. this.playerOptions.poster = "";
  17449. this.playerOptions.sources[0].src = media;
  17450. this.playerO = this.playerOptions;
  17451. },
  17452. onPlayerPlay() {},
  17453. onPlayerTimeupdate(player) {
  17454. let gklog = player.cache_.currentTime; //当前播放的秒数
  17455. let a = player.cache_.duration; //视频的总时长
  17456. let gklog2 = parseInt(gklog);
  17457. // if(gklog2 == '3'){
  17458. // player.pause()
  17459. // setTimeout(()=>{
  17460. // player.currentTime(gklog2+1)
  17461. // player.play()
  17462. // },1000)
  17463. // }
  17464. console.log(" onPlayerTimeupdate!", gklog);
  17465. console.log(" onPlayerTimeupdate!", gklog2);
  17466. },
  17467. lookVedio(u, i) {
  17468. this.isClickNav = "";
  17469. // this.playerOptions.sources[0].src = u;
  17470. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17471. d.sources[0].src = u;
  17472. this.playerO[this.taskCount] = d;
  17473. this.showType = 0;
  17474. // this.isClickNav = "video" + i;
  17475. this.isClickNav = i;
  17476. this.$forceUpdate();
  17477. },
  17478. lookText(i, t) {
  17479. this.isClickNav = "";
  17480. // this.text = this.textList[i][t];
  17481. this.text = this.vChapterData[i][t];
  17482. // this.dialogVisible1 = true;
  17483. this.showType = 1;
  17484. // this.isClickNav = "text" + t;
  17485. this.isClickNav = t;
  17486. },
  17487. lookTools(i, t) {
  17488. this.chapTools = this.chapToolList[i][t];
  17489. this.dialogVisible2 = true;
  17490. },
  17491. async openFile(f) {
  17492. this.pptImgUrl = "";
  17493. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17494. if (
  17495. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17496. -1
  17497. ) {
  17498. let _uuurl = await this.checkLink(f);
  17499. this.pptImgUrl =
  17500. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17501. this.showPDF = false;
  17502. this.dialogVisible3 = true;
  17503. } else if (
  17504. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17505. ) {
  17506. this.pptImgUrl = f;
  17507. this.showPDF = true;
  17508. this.dialogVisible3 = true;
  17509. }
  17510. },
  17511. openTable(f) {
  17512. this.tableJson = JSON.parse(f.works);
  17513. this.dialogVisibleTable2 = true;
  17514. },
  17515. openWord(f) {
  17516. this.tableJson = JSON.parse(f.works);
  17517. this.dialogVisibleTable3 = true;
  17518. },
  17519. doUrl(url, i) {
  17520. this.isClickNav = "";
  17521. this.pptImgUrl1 = "";
  17522. this.showType = 2;
  17523. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17524. url = "https://" + url;
  17525. }
  17526. this.pptImgUrl1 = "";
  17527. setTimeout(() => {
  17528. this.pptImgUrl1 = url;
  17529. }, 500);
  17530. // this.isClickNav = "line" + i;
  17531. this.isClickNav = i;
  17532. this.$forceUpdate();
  17533. },
  17534. checkPhoto(f, i) {
  17535. this.showType = 4;
  17536. this.pptImgUrl1 = f.url;
  17537. this.isClickNav = i;
  17538. this.$forceUpdate();
  17539. },
  17540. async downFile(f, i) {
  17541. this.isClickNav = "";
  17542. this.pptImgUrl1 = "";
  17543. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17544. if (
  17545. a.indexOf(
  17546. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17547. ) != -1
  17548. ) {
  17549. let _uuurl = await this.checkLink(f.url);
  17550. this.pptImgUrl1 =
  17551. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17552. // this.dialogVisible3 = true;
  17553. this.showType = 2;
  17554. } else if (
  17555. this.isAssetTypeAnImage(
  17556. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17557. )
  17558. ) {
  17559. this.showType = 4;
  17560. this.pptImgUrl1 = f.url;
  17561. } else if (
  17562. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17563. "PDF"
  17564. ) {
  17565. this.pptImgUrl1 = f.url;
  17566. // this.dialogVisible3 = true;
  17567. this.showType = 3;
  17568. } else {
  17569. window.open(this.file[i].url);
  17570. }
  17571. // this.isClickNav = "word" + i;
  17572. this.isClickNav = i;
  17573. },
  17574. downFileList(i) {
  17575. window.open(this.noImgList[i].url);
  17576. },
  17577. openAddWork() {
  17578. this.dialogVisible = true;
  17579. },
  17580. addBzWorks() {
  17581. let params = [
  17582. {
  17583. uid: this.userid,
  17584. cid: this.id,
  17585. stage: this.courseType,
  17586. task: this.taskCount,
  17587. tool: this.toolindex,
  17588. content: JSON.stringify(this.eScore),
  17589. type: 6,
  17590. },
  17591. ];
  17592. this.ajax
  17593. .post(this.$store.state.api + "addCourseWorks", params)
  17594. .then((res) => {
  17595. this.$message({
  17596. message: "提交成功",
  17597. type: "success",
  17598. });
  17599. this.eScore = { eBzText: "", eStar: [] };
  17600. this.studentEvalDialogVisible = false;
  17601. this.selectSWorks();
  17602. })
  17603. .catch((err) => {
  17604. this.$message.error("提交失败");
  17605. console.error(err);
  17606. });
  17607. },
  17608. addBzWorksTeacher() {
  17609. let params = [
  17610. {
  17611. uid: this.sStudent.userid,
  17612. cid: this.id,
  17613. stage: this.courseType,
  17614. task: this.taskCount,
  17615. tool: this.toolindex,
  17616. content: JSON.stringify(this.eScore),
  17617. type: 6,
  17618. },
  17619. ];
  17620. this.ajax
  17621. .post(this.$store.state.api + "addCourseWorks", params)
  17622. .then((res) => {
  17623. this.$message({
  17624. message: "提交成功",
  17625. type: "success",
  17626. });
  17627. this.eScore = { eBzText: "", eStar: [] };
  17628. this.studentEvalDialogVisibleTeacher = false;
  17629. this.selectSWorks();
  17630. })
  17631. .catch((err) => {
  17632. this.$message.error("提交失败");
  17633. console.error(err);
  17634. });
  17635. },
  17636. addStudentAsk() {
  17637. if (!this.radio.length) {
  17638. this.$message.error("请选择选项");
  17639. return;
  17640. }
  17641. for (var i = 0; i < this.askJson.askCount; i++) {
  17642. if (
  17643. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17644. (this.radio[i] !== 0 && !this.radio[i])
  17645. ) {
  17646. this.$message.error("请选择选项");
  17647. return;
  17648. }
  17649. }
  17650. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17651. let params = [
  17652. {
  17653. uid: this.userid,
  17654. cid: this.id,
  17655. stage: this.courseType,
  17656. task: this.taskCount,
  17657. tool: this.toolindex,
  17658. content: JSON.stringify(this.askList),
  17659. type: 2,
  17660. },
  17661. ];
  17662. this.ajax
  17663. .post(this.$store.state.api + "addCourseWorks", params)
  17664. .then((res) => {
  17665. this.$message({
  17666. message: "提交成功",
  17667. type: "success",
  17668. });
  17669. this.askList = [];
  17670. this.dialogVisible5 = false;
  17671. this.selectStudent();
  17672. this.selectSWorks();
  17673. this.selectSLook();
  17674. })
  17675. .catch((err) => {
  17676. this.$message.error("提交失败");
  17677. console.error(err);
  17678. });
  17679. },
  17680. addStudentAskTeacher() {
  17681. if (!this.radio.length) {
  17682. this.$message.error("请选择选项");
  17683. return;
  17684. }
  17685. for (var i = 0; i < this.askJson.askCount; i++) {
  17686. if (
  17687. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17688. (this.radio[i] !== 0 && !this.radio[i])
  17689. ) {
  17690. this.$message.error("请选择选项");
  17691. return;
  17692. }
  17693. }
  17694. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17695. let params = [
  17696. {
  17697. uid: this.sStudent.userid,
  17698. cid: this.id,
  17699. stage: this.courseType,
  17700. task: this.taskCount,
  17701. tool: this.toolindex,
  17702. content: JSON.stringify(this.askList),
  17703. type: 2,
  17704. },
  17705. ];
  17706. this.ajax
  17707. .post(this.$store.state.api + "addCourseWorks", params)
  17708. .then((res) => {
  17709. this.$message({
  17710. message: "提交成功",
  17711. type: "success",
  17712. });
  17713. this.askList = [];
  17714. this.dialogVisible5Teacher = false;
  17715. this.selectStudent();
  17716. this.selectSWorks();
  17717. this.selectSLook();
  17718. })
  17719. .catch((err) => {
  17720. this.$message.error("提交失败");
  17721. console.error(err);
  17722. });
  17723. },
  17724. addStudentTest() {
  17725. if (!this.radio.length) {
  17726. this.$message.error("请选择选项");
  17727. return;
  17728. }
  17729. for (var i = 0; i < this.testJson.testCount; i++) {
  17730. if (
  17731. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17732. (this.radio[i] !== 0 && !this.radio[i])
  17733. ) {
  17734. this.$message.error("请选择选项");
  17735. return;
  17736. }
  17737. }
  17738. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17739. let params = [
  17740. {
  17741. uid: this.userid,
  17742. cid: this.id,
  17743. stage: this.courseType,
  17744. task: this.taskCount,
  17745. tool: this.toolindex,
  17746. content: JSON.stringify(this.askList),
  17747. type: 8,
  17748. },
  17749. ];
  17750. this.ajax
  17751. .post(this.$store.state.api + "addCourseWorks", params)
  17752. .then((res) => {
  17753. this.$message({
  17754. message: "提交成功",
  17755. type: "success",
  17756. });
  17757. this.askList = [];
  17758. this.dialogVisibleChoice = false;
  17759. this.selectStudent();
  17760. this.selectSWorks();
  17761. this.selectSLook();
  17762. })
  17763. .catch((err) => {
  17764. this.$message.error("提交失败");
  17765. console.error(err);
  17766. });
  17767. },
  17768. addStudentTestTeacher() {
  17769. if (!this.radio.length) {
  17770. this.$message.error("请选择选项");
  17771. return;
  17772. }
  17773. for (var i = 0; i < this.testJson.testCount; i++) {
  17774. if (
  17775. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17776. (this.radio[i] !== 0 && !this.radio[i])
  17777. ) {
  17778. this.$message.error("请选择选项");
  17779. return;
  17780. }
  17781. }
  17782. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17783. let params = [
  17784. {
  17785. uid: this.sStudent.userid,
  17786. cid: this.id,
  17787. stage: this.courseType,
  17788. task: this.taskCount,
  17789. tool: this.toolindex,
  17790. content: JSON.stringify(this.askList),
  17791. type: 8,
  17792. },
  17793. ];
  17794. this.ajax
  17795. .post(this.$store.state.api + "addCourseWorks", params)
  17796. .then((res) => {
  17797. this.$message({
  17798. message: "提交成功",
  17799. type: "success",
  17800. });
  17801. this.askList = [];
  17802. this.dialogVisibleChoiceTeacher = false;
  17803. this.selectStudent();
  17804. this.selectSWorks();
  17805. this.selectSLook();
  17806. })
  17807. .catch((err) => {
  17808. this.$message.error("提交失败");
  17809. console.error(err);
  17810. });
  17811. },
  17812. addWork() {
  17813. if (this.studyJuri[0].content == "") {
  17814. this.$message.error("请将信息填写完整");
  17815. return;
  17816. } else if (this.studyJuri[0].cover.length == 0) {
  17817. this.$message.error("请将信息填写完整");
  17818. return;
  17819. } else if (this.studyJuri[0].upVedio.length == 0) {
  17820. this.$message.error("请将信息填写完整");
  17821. return;
  17822. }
  17823. if (this.isNoHomeWork) {
  17824. this.$confirm(
  17825. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17826. "提示",
  17827. {
  17828. confirmButtonText: "确定",
  17829. cancelButtonText: "取消",
  17830. type: "warning",
  17831. }
  17832. )
  17833. .then(() => {
  17834. let params = [
  17835. {
  17836. uid: this.userid,
  17837. cid: this.id,
  17838. stage: this.courseType,
  17839. task: this.taskCount,
  17840. content: JSON.stringify(this.studyJuri),
  17841. },
  17842. ];
  17843. this.ajax
  17844. .post(this.$store.state.api + "addWorks", params)
  17845. .then((res) => {
  17846. this.$message({
  17847. message: "提交成功",
  17848. type: "success",
  17849. });
  17850. this.isNoHomeWork = true;
  17851. this.dialogVisible = false;
  17852. })
  17853. .catch((err) => {
  17854. this.$message.error("提交失败");
  17855. console.error(err);
  17856. });
  17857. })
  17858. .catch(() => {});
  17859. } else {
  17860. let params = [
  17861. {
  17862. uid: this.userid,
  17863. cid: this.id,
  17864. stage: this.courseType,
  17865. task: this.taskCount,
  17866. content: JSON.stringify(this.studyJuri),
  17867. },
  17868. ];
  17869. this.ajax
  17870. .post(this.$store.state.api + "addWorks", params)
  17871. .then((res) => {
  17872. this.$message({
  17873. message: "提交成功",
  17874. type: "success",
  17875. });
  17876. this.isNoHomeWork = true;
  17877. this.dialogVisible = false;
  17878. })
  17879. .catch((err) => {
  17880. this.$message.error("提交失败");
  17881. console.error(err);
  17882. });
  17883. }
  17884. },
  17885. selectCount() {
  17886. let params = {
  17887. cid: this.id,
  17888. chid: this.courseType,
  17889. uid: this.userid,
  17890. };
  17891. this.ajax
  17892. .get(this.$store.state.api + "selectToolsCount", params)
  17893. .then((res) => {
  17894. for (var i = 0; i < res.data[0].length; i++) {
  17895. if (res.data[0][i].tools == 1) {
  17896. this.wbCount = res.data[0][i].count;
  17897. } else if (res.data[0][i].tools == 2) {
  17898. this.wordCount = res.data[0][i].count;
  17899. } else if (res.data[0][i].tools == 3) {
  17900. this.mindCount = res.data[0][i].count;
  17901. } else if (res.data[0][i].tools == 4) {
  17902. this.askCount = res.data[0][i].count;
  17903. } else if (res.data[0][i].tools == 6) {
  17904. this.noteCount = res.data[0][i].count;
  17905. } else if (res.data[0][i].tools == 7) {
  17906. this.mindNetWorkCount = res.data[0][i].count;
  17907. } else if (res.data[0][i].tools == 8) {
  17908. this.libraryCount = res.data[0][i].count;
  17909. } else if (res.data[0][i].tools == 16) {
  17910. this.workCount = res.data[0][i].count;
  17911. } else if (res.data[0][i].tools == 10) {
  17912. this.timeCount = res.data[0][i].count;
  17913. } else if (res.data[0][i].tools == 15) {
  17914. this.answerCount = res.data[0][i].count;
  17915. } else if (res.data[0][i].tools == 18) {
  17916. this.trainCount = res.data[0][i].count;
  17917. }
  17918. }
  17919. })
  17920. .catch((err) => {
  17921. console.error(err);
  17922. });
  17923. },
  17924. openTools(t, i, index, c, sName,id) {
  17925. var z = JSON.parse(c);
  17926. this.noteName = sName;
  17927. if (t == 4) {
  17928. this.radio = [];
  17929. this.isAnswer = false;
  17930. let b = z[0].anwer;
  17931. this.radio = b;
  17932. this.askJson = z[0].askJson;
  17933. this.isAnswer = true;
  17934. this.dialogVisible5 = true;
  17935. } else if (t == 45) {
  17936. this.radio = [];
  17937. this.isAnswer = false;
  17938. let b = z[0].anwer;
  17939. this.radio = b;
  17940. this.testJson = z[0].testJson;
  17941. this.isAnswer = true;
  17942. this.dialogVisibleChoice = true;
  17943. }else if(t == 69){
  17944. this.oldEnglishJson1 = {}
  17945. this.oldEnglishJson = {}
  17946. this.englishList1 = {}
  17947. this.newEngIndex = -1;
  17948. this.isNoUserid = false;
  17949. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17950. .toolChoose[i].englishList;
  17951. this.oldEnglishJson = z;
  17952. this.engWid = id;
  17953. this.newEnglishList = { engTitle:"",engText:"" }
  17954. this.newEnglishList1 = []
  17955. this.selectEngC(id,z);
  17956. }else if(t == 62){
  17957. this.videoType = 1;
  17958. this.videoJson = {};
  17959. this.videoJson = JSON.parse(c);
  17960. // this.videoJson =
  17961. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17962. // index
  17963. // ].toolChoose[i].videoJson;
  17964. this.dialogVisibleVideo = true;
  17965. }
  17966. // else if (t == 15) {
  17967. // this.answerQ = "";
  17968. // this.questionAnswer = "";
  17969. // this.answerQ = z[0].answerTitle;
  17970. // this.questionAnswer = z[0].answer;
  17971. // this.answerDialogVisible = true;
  17972. // }
  17973. },
  17974. fastText(p, t) {
  17975. if (t == 1) {
  17976. this.commentText += p;
  17977. } else {
  17978. this.eScore.eBzText += p;
  17979. }
  17980. },
  17981. addTools(t, i, index) {
  17982. var a = 0;
  17983. // this.taskCount = index;
  17984. this.toolindex = i;
  17985. if (t == 1) {
  17986. if (this.wbCount > 0) {
  17987. this.updateCount(this.wbCount, t);
  17988. } else {
  17989. this.wbCount++;
  17990. a = this.wbCount;
  17991. this.toolsCount(a, t);
  17992. }
  17993. window.parent.postMessage(
  17994. {
  17995. tools: "1",
  17996. cid: this.id,
  17997. stage: this.courseType,
  17998. task: this.taskCount,
  17999. tool: i,
  18000. },
  18001. "*"
  18002. );
  18003. } else if (t == 2) {
  18004. if (this.wordCount > 0) {
  18005. this.updateCount(this.wordCount, t);
  18006. } else {
  18007. this.wordCount++;
  18008. a = this.wordCount;
  18009. this.toolsCount(a, t);
  18010. }
  18011. window.parent.postMessage({ tools: "2" }, "*");
  18012. } else if (t == 3) {
  18013. if (this.mindCount > 0) {
  18014. this.updateCount(this.mindCount, t);
  18015. } else {
  18016. this.mindCount++;
  18017. a = this.mindCount;
  18018. this.toolsCount(a, t);
  18019. }
  18020. window.parent.postMessage(
  18021. {
  18022. tools: "3",
  18023. cid: this.id,
  18024. stage: this.courseType,
  18025. task: this.taskCount,
  18026. tool: i,
  18027. },
  18028. "*"
  18029. );
  18030. } else if (t == 4) {
  18031. this.radio = [];
  18032. this.noteName = "";
  18033. this.isAnswer = false;
  18034. if (this.askCount > 0) {
  18035. this.updateCount(this.askCount, t);
  18036. } else {
  18037. this.askCount++;
  18038. a = this.askCount;
  18039. this.toolsCount(a, t);
  18040. }
  18041. if (!this.dialogVisible2) {
  18042. this.askJson.askJson =
  18043. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18044. index
  18045. ].toolChoose[i].askJson;
  18046. this.askJson.askTitle =
  18047. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18048. index
  18049. ].toolChoose[i].askTitle;
  18050. this.askJson.askCount =
  18051. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18052. index
  18053. ].toolChoose[i].askCount;
  18054. } else {
  18055. this.askJson.askJson = this.chapTools.askJson.askJson;
  18056. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18057. this.askJson.askCount = this.chapTools.askJson.askCount;
  18058. }
  18059. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18060. if (this.askJson.askJson[k].type == "2") {
  18061. this.radio.push([]);
  18062. } else {
  18063. this.radio.push("");
  18064. }
  18065. }
  18066. this.dialogVisible5 = true;
  18067. // window.parent.postMessage({ tools: "4" }, "*");
  18068. } else if (t == 45) {
  18069. this.noteName = "";
  18070. this.radio = [];
  18071. this.isAnswer = false;
  18072. if (this.askCount > 0) {
  18073. this.updateCount(this.askCount, t);
  18074. } else {
  18075. this.askCount++;
  18076. a = this.askCount;
  18077. this.toolsCount(a, t);
  18078. }
  18079. this.testJson =
  18080. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18081. index
  18082. ].toolChoose[i].testJson;
  18083. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18084. if (this.testJson.testJson[k].type == "2") {
  18085. this.radio.push([]);
  18086. } else {
  18087. this.radio.push("");
  18088. }
  18089. }
  18090. this.dialogVisibleChoice = true;
  18091. // window.parent.postMessage({ tools: "4" }, "*");
  18092. } else if (t == 5) {
  18093. if (this.scoreCount > 0) {
  18094. this.updateCount(this.scoreCount, t);
  18095. } else {
  18096. this.scoreCount++;
  18097. a = this.scoreCount;
  18098. this.toolsCount(a, t);
  18099. }
  18100. this.dialogVisible4 = true;
  18101. // window.parent.postMessage({ tools: "5" }, "*");
  18102. } else if (t == 6) {
  18103. if (this.noteCount > 0) {
  18104. this.updateCount(this.noteCount, t);
  18105. } else {
  18106. this.noteCount++;
  18107. a = this.noteCount;
  18108. this.toolsCount(a, t);
  18109. }
  18110. window.parent.postMessage(
  18111. {
  18112. tools: "6",
  18113. cid: this.id,
  18114. stage: this.courseType,
  18115. task: this.taskCount,
  18116. tool: i,
  18117. },
  18118. "*"
  18119. );
  18120. } else if (t == 7) {
  18121. if (this.mindNetWorkCount > 0) {
  18122. this.updateCount(this.mindNetWorkCount, t);
  18123. } else {
  18124. this.mindNetWorkCount++;
  18125. a = this.mindNetWorkCount;
  18126. this.toolsCount(a, t);
  18127. }
  18128. window.parent.postMessage(
  18129. {
  18130. tools: "7",
  18131. cid: this.id,
  18132. stage: this.courseType,
  18133. task: this.taskCount,
  18134. tool: i,
  18135. },
  18136. "*"
  18137. );
  18138. } else if (t == 16) {
  18139. if (this.workCount > 0) {
  18140. this.updateCount(this.workCount, t);
  18141. } else {
  18142. this.workCount++;
  18143. a = this.workCount;
  18144. this.toolsCount(a, t);
  18145. }
  18146. this.dialogVisible = true;
  18147. } else if (t == 50) {
  18148. if (this.tType == 2) {
  18149. this.$message.error("不支持学生使用");
  18150. return;
  18151. }
  18152. this.plworkFile = [];
  18153. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18154. if (!this.uploadCid) {
  18155. this.$message.error(
  18156. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18157. );
  18158. return;
  18159. }
  18160. // this.uploadCid =
  18161. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18162. // index
  18163. // ].toolChoose[i].uploadJson[0];
  18164. this.selectUploadStudent(2);
  18165. } else if (t == 8) {
  18166. if (this.libraryCount > 0) {
  18167. this.updateCount(this.libraryCount, t);
  18168. } else {
  18169. this.libraryCount++;
  18170. a = this.libraryCount;
  18171. this.toolsCount(a, t);
  18172. }
  18173. window.parent.postMessage({ tools: "8" }, "*");
  18174. } else if (t == 17) {
  18175. if (this.libraryCount > 0) {
  18176. this.updateCount(this.libraryCount, t);
  18177. } else {
  18178. this.libraryCount++;
  18179. a = this.libraryCount;
  18180. this.toolsCount(a, t);
  18181. }
  18182. window.parent.postMessage({ tools: "17" }, "*");
  18183. } else if (t == 18) {
  18184. if (this.trainCount > 0) {
  18185. this.updateCount(this.trainCount, t);
  18186. } else {
  18187. this.trainCount++;
  18188. a = this.trainCount;
  18189. this.toolsCount(a, t);
  18190. }
  18191. window.parent.postMessage({ tools: "18" }, "*");
  18192. } else if (t == 10) {
  18193. if (this.timeCount > 0) {
  18194. this.updateCount(this.timeCount, t);
  18195. } else {
  18196. this.timeCount++;
  18197. a = this.timeCount;
  18198. this.toolsCount(a, t);
  18199. }
  18200. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18201. .taskJson[index].toolChoose[i].preTime
  18202. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18203. .toolChoose[i].preTime
  18204. : "";
  18205. this.timeDialogVisible = true;
  18206. } else if (t == 15) {
  18207. this.answerQ = "";
  18208. this.questionAnswer = "";
  18209. if (this.answerCount > 0) {
  18210. this.updateCount(this.answerCount, t);
  18211. } else {
  18212. this.answerCount++;
  18213. a = this.answerCount;
  18214. this.toolsCount(a, t);
  18215. }
  18216. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18217. .taskJson[index].toolChoose[i].answerQ
  18218. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18219. .toolChoose[i].answerQ
  18220. : "";
  18221. this.answerDialogVisible = true;
  18222. } else if (t == 21) {
  18223. window.parent.postMessage({ tools: "21" }, "*");
  18224. } else if (t == 22) {
  18225. window.parent.postMessage({ tools: "22" }, "*");
  18226. } else if (t == 23) {
  18227. window.parent.postMessage({ tools: "23" }, "*");
  18228. } else if (t == 24) {
  18229. window.parent.postMessage({ tools: "24" }, "*");
  18230. } else if (t == 25) {
  18231. window.parent.postMessage({ tools: "25" }, "*");
  18232. } else if (t == 31) {
  18233. window.parent.postMessage({ tools: "31" }, "*");
  18234. } else if (t == 28) {
  18235. window.parent.postMessage({ tools: "28" }, "*");
  18236. } else if (t == 37) {
  18237. window.parent.postMessage({ tools: "37" }, "*");
  18238. } else if (t == 38) {
  18239. window.parent.postMessage({ tools: "38" }, "*");
  18240. } else if (t == 39) {
  18241. window.parent.postMessage({ tools: "39" }, "*");
  18242. } else if (t == 32) {
  18243. window.parent.postMessage({ tools: "32" }, "*");
  18244. } else if (t == 66) {
  18245. window.parent.postMessage({ tools: "66" }, "*");
  18246. } else if (t == 67) {
  18247. window.parent.postMessage({ tools: "67" }, "*");
  18248. } else if (t == 68) {
  18249. window.parent.postMessage({ tools: "68" }, "*");
  18250. } else if (t == 57) {
  18251. // window.parent.postMessage({ tools: "57" }, "*");
  18252. window.parent.postMessage(
  18253. {
  18254. tools: "57u",
  18255. cid: this.id,
  18256. stage: this.courseType,
  18257. task: this.taskCount,
  18258. tool: i,
  18259. },
  18260. "*"
  18261. );
  18262. } else if (t == 58) {
  18263. window.parent.postMessage({ tools: "58" }, "*");
  18264. } else if (t == 59) {
  18265. window.parent.postMessage({ tools: "59" }, "*");
  18266. } else if (t == 60) {
  18267. window.parent.postMessage({ tools: "60" }, "*");
  18268. } else if (t == 61) {
  18269. window.parent.postMessage({ tools: "61" }, "*");
  18270. } else if (t == 63) {
  18271. window.parent.postMessage({ tools: "63" }, "*");
  18272. } else if (t == 71) {
  18273. window.parent.postMessage({ tools: "71" }, "*");
  18274. } else if (t == 69) {
  18275. if (this.worksStudent[i].length) {
  18276. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18277. if (this.userid == this.worksStudent[i][k].userid) {
  18278. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18279. break;
  18280. } else {
  18281. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18282. }
  18283. }
  18284. } else {
  18285. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18286. }
  18287. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18288. .taskJson[index].toolChoose[i].englishList
  18289. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18290. .toolChoose[i].englishList
  18291. : {};
  18292. this.englishToolIndex = i;
  18293. this.myAnList = this.myAnswerList1;
  18294. this.engDialogVisible = true;
  18295. } else if (t == 70) {
  18296. if (this.worksStudent[i].length) {
  18297. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18298. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18299. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18300. break;
  18301. } else {
  18302. this.englishVoiceJsonWork = [];
  18303. }
  18304. }
  18305. } else {
  18306. this.englishVoiceJsonWork = [];
  18307. }
  18308. let englishVoiceJson = {}
  18309. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18310. .taskJson[index].toolChoose[i].englishVoiceJson
  18311. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18312. .toolChoose[i].englishVoiceJson
  18313. : {};
  18314. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18315. this.EnglishVoiceDialog = true;
  18316. } else if (t == 65) {
  18317. if (this.tType == 2) {
  18318. this.$message.error("不支持学生使用");
  18319. return;
  18320. }
  18321. this.uploadCid = this.tcid;
  18322. if (!this.uploadCid) {
  18323. this.$message.error(
  18324. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18325. );
  18326. return;
  18327. }
  18328. this.selectPickStudent();
  18329. } else if (t == 26) {
  18330. window.parent.postMessage(
  18331. {
  18332. tools: "26",
  18333. cid: this.id,
  18334. stage: this.courseType,
  18335. task: this.taskCount,
  18336. tool: i,
  18337. },
  18338. "*"
  18339. );
  18340. } else if (t == 40) {
  18341. if (this.evalCount > 0) {
  18342. this.updateCount(this.evalCount, t);
  18343. } else {
  18344. this.evalCount++;
  18345. a = this.evalCount;
  18346. this.toolsCount(a, t);
  18347. }
  18348. this.eScore = { eBzText: "", eStar: [] };
  18349. if (this.worksStudent[i].length) {
  18350. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18351. if (this.userid == this.worksStudent[i][k].userid) {
  18352. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18353. this.rateJson =
  18354. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18355. index
  18356. ].toolChoose[i].rateJson;
  18357. break;
  18358. } else {
  18359. this.rateJson =
  18360. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18361. index
  18362. ].toolChoose[i].rateJson;
  18363. }
  18364. }
  18365. } else {
  18366. this.rateJson =
  18367. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18368. index
  18369. ].toolChoose[i].rateJson;
  18370. }
  18371. this.isStar = false;
  18372. this.studentEvalDialogVisible = true;
  18373. } else if (t == 41) {
  18374. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18375. .taskJson[index].toolChoose[i].selectJson
  18376. ? JSON.parse(
  18377. JSON.stringify(
  18378. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18379. index
  18380. ].toolChoose[i].selectJson
  18381. )
  18382. )
  18383. : { url: "", select: [], answer: [] };
  18384. if (this.worksStudent[i].length) {
  18385. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18386. if (this.userid == this.worksStudent[i][k].userid) {
  18387. var a = this.worksStudent[i][k].works.split(",");
  18388. for (var ki = 0; ki < a.length; ki++) {
  18389. a[ki] = parseInt(a[ki]);
  18390. }
  18391. this.selectAnswer = {
  18392. answer: a,
  18393. stu: this.worksStudent[i][k].sName,
  18394. };
  18395. break;
  18396. } else {
  18397. this.selectAnswer = { answer: [], stu: "" };
  18398. }
  18399. }
  18400. } else {
  18401. this.selectAnswer = { answer: [], stu: "" };
  18402. }
  18403. this.isSelect = false;
  18404. this.dialogVisibleSelect = true;
  18405. } else if (t == 44) {
  18406. window.parent.postMessage({ tools: "44" }, "*");
  18407. } else if (t == 47) {
  18408. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18409. .taskJson[index].toolChoose[i].sentenceList
  18410. ? JSON.parse(
  18411. JSON.stringify(
  18412. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18413. index
  18414. ].toolChoose[i].sentenceList
  18415. )
  18416. )
  18417. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18418. for (var q = 0; q < this.sentenceList.length; q++) {
  18419. this.sentenceList[q].chooseSenList = [];
  18420. this.sentenceList[q].addChangeSen = [];
  18421. this.sentenceList[q].addChangeSen = JSON.parse(
  18422. JSON.stringify(this.sentenceList[q].addSentence)
  18423. );
  18424. this.sentenceList[q].chooseSenList.length =
  18425. this.sentenceList[q].rightAnswer.length;
  18426. }
  18427. this.dialogVisibleSentence = true;
  18428. } else if (t == 48) {
  18429. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18430. .taskJson[index].toolChoose[i].tableJson
  18431. ? JSON.parse(
  18432. JSON.stringify(
  18433. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18434. index
  18435. ].toolChoose[i].tableJson
  18436. )
  18437. )
  18438. : { text: "" };
  18439. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18440. if (this.worksStudent[i].length) {
  18441. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18442. if (this.userid == this.worksStudent[i][k].userid) {
  18443. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18444. break;
  18445. }
  18446. }
  18447. }
  18448. this.dialogVisibleTable = true;
  18449. } else if (t == 52) {
  18450. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18451. .taskJson[index].toolChoose[i].wordJson
  18452. ? JSON.parse(
  18453. JSON.stringify(
  18454. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18455. index
  18456. ].toolChoose[i].wordJson
  18457. )
  18458. )
  18459. : { text: "" };
  18460. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18461. if (this.worksStudent[i].length) {
  18462. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18463. if (this.userid == this.worksStudent[i][k].userid) {
  18464. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18465. break;
  18466. }
  18467. }
  18468. }
  18469. this.dialogVisibleWord = true;
  18470. } else if (t == 49) {
  18471. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18472. return
  18473. }
  18474. this.groupJson =
  18475. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18476. index
  18477. ].toolChoose[i].groupJson;
  18478. this.islock = this.groupJson.islock == 1 ? true : false;
  18479. this.dialogVisibleGroup = true;
  18480. } else if (t == 62) {
  18481. this.videoType = 0;
  18482. this.videoJson = {};
  18483. this.videoJson =
  18484. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18485. index
  18486. ].toolChoose[i].videoJson;
  18487. this.dialogVisibleVideo = true;
  18488. }
  18489. },
  18490. teacherWorkSubmit(t, i, index, s) {
  18491. this.sStudent = s;
  18492. this.toolindex = i;
  18493. this.sTool = t;
  18494. if (this.tType !== "1" && this.tType !== "4") {
  18495. return;
  18496. }
  18497. if (t == 16 || t == 32 || t == 50) {
  18498. this.dialogVisibleWorks = true;
  18499. } else if (t == 15) {
  18500. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18501. .taskJson[index].toolChoose[i].answerQ
  18502. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18503. .toolChoose[i].answerQ
  18504. : "";
  18505. this.questionAnswer = "";
  18506. this.answerDialogVisibleTeacher = true; //问答
  18507. } else if (t == 52) {
  18508. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18509. .taskJson[index].toolChoose[i].wordJson
  18510. ? JSON.parse(
  18511. JSON.stringify(
  18512. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18513. index
  18514. ].toolChoose[i].wordJson
  18515. )
  18516. )
  18517. : { text: "" };
  18518. if (this.worksStudent[i].length) {
  18519. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18520. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18521. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18522. break;
  18523. }
  18524. }
  18525. }
  18526. this.dialogVisibleWordTeacher = true; //文档
  18527. } else if (t == 4) {
  18528. this.radio = [];
  18529. this.noteName = "";
  18530. this.isAnswer = false;
  18531. if (this.askCount > 0) {
  18532. this.updateCount(this.askCount, t);
  18533. } else {
  18534. this.askCount++;
  18535. a = this.askCount;
  18536. this.toolsCount(a, t);
  18537. }
  18538. if (!this.dialogVisible2) {
  18539. this.askJson.askJson =
  18540. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18541. index
  18542. ].toolChoose[i].askJson;
  18543. this.askJson.askTitle =
  18544. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18545. index
  18546. ].toolChoose[i].askTitle;
  18547. this.askJson.askCount =
  18548. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18549. index
  18550. ].toolChoose[i].askCount;
  18551. } else {
  18552. this.askJson.askJson = this.chapTools.askJson.askJson;
  18553. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18554. this.askJson.askCount = this.chapTools.askJson.askCount;
  18555. }
  18556. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18557. if (this.askJson.askJson[k].type == "2") {
  18558. this.radio.push([]);
  18559. } else {
  18560. this.radio.push("");
  18561. }
  18562. }
  18563. this.dialogVisible5Teacher = true;
  18564. } else if (t == 45) {
  18565. this.noteName = "";
  18566. this.radio = [];
  18567. this.isAnswer = false;
  18568. if (this.askCount > 0) {
  18569. this.updateCount(this.askCount, t);
  18570. } else {
  18571. this.askCount++;
  18572. a = this.askCount;
  18573. this.toolsCount(a, t);
  18574. }
  18575. this.testJson =
  18576. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18577. index
  18578. ].toolChoose[i].testJson;
  18579. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18580. if (this.testJson.testJson[k].type == "2") {
  18581. this.radio.push([]);
  18582. } else {
  18583. this.radio.push("");
  18584. }
  18585. }
  18586. this.dialogVisibleChoiceTeacher = true;
  18587. } else if (t == 41) {
  18588. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18589. .taskJson[index].toolChoose[i].selectJson
  18590. ? JSON.parse(
  18591. JSON.stringify(
  18592. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18593. index
  18594. ].toolChoose[i].selectJson
  18595. )
  18596. )
  18597. : { url: "", select: [], answer: [] };
  18598. if (this.worksStudent[i].length) {
  18599. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18600. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18601. var a = this.worksStudent[i][k].works.split(",");
  18602. for (var ki = 0; ki < a.length; ki++) {
  18603. a[ki] = parseInt(a[ki]);
  18604. }
  18605. this.selectAnswer = {
  18606. answer: a,
  18607. stu: this.worksStudent[i][k].sName,
  18608. };
  18609. break;
  18610. } else {
  18611. this.selectAnswer = { answer: [], stu: "" };
  18612. }
  18613. }
  18614. } else {
  18615. this.selectAnswer = { answer: [], stu: "" };
  18616. }
  18617. this.isSelect = false;
  18618. this.dialogVisibleSelectTeacher = true;
  18619. } else if (t == 47) {
  18620. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18621. .taskJson[index].toolChoose[i].sentenceList
  18622. ? JSON.parse(
  18623. JSON.stringify(
  18624. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18625. index
  18626. ].toolChoose[i].sentenceList
  18627. )
  18628. )
  18629. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18630. for (var q = 0; q < this.sentenceList.length; q++) {
  18631. this.sentenceList[q].chooseSenList = [];
  18632. this.sentenceList[q].addChangeSen = [];
  18633. this.sentenceList[q].addChangeSen = JSON.parse(
  18634. JSON.stringify(this.sentenceList[q].addSentence)
  18635. );
  18636. this.sentenceList[q].chooseSenList.length =
  18637. this.sentenceList[q].rightAnswer.length;
  18638. }
  18639. this.dialogVisibleSentenceTeacher = true;
  18640. } else if (t == 48) {
  18641. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18642. .taskJson[index].toolChoose[i].tableJson
  18643. ? JSON.parse(
  18644. JSON.stringify(
  18645. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18646. index
  18647. ].toolChoose[i].tableJson
  18648. )
  18649. )
  18650. : { text: "" };
  18651. if (this.worksStudent[i].length) {
  18652. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18653. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18654. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18655. break;
  18656. }
  18657. }
  18658. }
  18659. this.dialogVisibleTableTeacher = true;
  18660. } else if (t == 40) {
  18661. if (this.evalCount > 0) {
  18662. this.updateCount(this.evalCount, t);
  18663. } else {
  18664. this.evalCount++;
  18665. a = this.evalCount;
  18666. this.toolsCount(a, t);
  18667. }
  18668. this.eScore = { eBzText: "", eStar: [] };
  18669. if (this.worksStudent[i].length) {
  18670. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18671. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18672. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18673. this.rateJson =
  18674. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18675. index
  18676. ].toolChoose[i].rateJson;
  18677. break;
  18678. } else {
  18679. this.rateJson =
  18680. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18681. index
  18682. ].toolChoose[i].rateJson;
  18683. }
  18684. }
  18685. } else {
  18686. this.rateJson =
  18687. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18688. index
  18689. ].toolChoose[i].rateJson;
  18690. }
  18691. this.isStar = false;
  18692. this.studentEvalDialogVisibleTeacher = true;
  18693. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18694. window.parent.postMessage(
  18695. {
  18696. tools: t + "teacher",
  18697. cid: this.id,
  18698. stage: this.courseType,
  18699. task: this.taskCount,
  18700. tool: i,
  18701. student: this.sStudent,
  18702. },
  18703. "*"
  18704. );
  18705. }
  18706. },
  18707. openCocoPi(tool, i, uid, uname) {
  18708. let student = {
  18709. userid: uid,
  18710. student: uname,
  18711. };
  18712. if (tool == 57) {
  18713. window.parent.postMessage(
  18714. {
  18715. tools: tool + "teacher",
  18716. cid: this.id,
  18717. stage: this.courseType,
  18718. task: this.taskCount,
  18719. tool: i,
  18720. student: student,
  18721. },
  18722. "*"
  18723. );
  18724. }
  18725. },
  18726. setRightAnswer(s, i, j) {
  18727. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18728. if (
  18729. this.sentenceList[i].chooseSenList[q] == undefined ||
  18730. this.sentenceList[i].chooseSenList[q] == ""
  18731. ) {
  18732. this.sentenceList[i].chooseSenList[q] = s;
  18733. this.sentenceList[i].addChangeSen[j] = "";
  18734. break;
  18735. }
  18736. }
  18737. this.$forceUpdate();
  18738. },
  18739. returnCard(r, i, j) {
  18740. var a = this.sentenceList[i].addSentence.indexOf(r);
  18741. this.sentenceList[i].chooseSenList[j] = "";
  18742. this.sentenceList[i].addChangeSen[a] = r;
  18743. this.$forceUpdate();
  18744. },
  18745. // addSentenceTool() {
  18746. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18747. // this.taskCount
  18748. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18749. // this.sentenceList = [
  18750. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18751. // ];
  18752. // this.dialogVisibleSentence = false;
  18753. // },
  18754. toolsCount(a, t) {
  18755. let params = {
  18756. cid: this.id,
  18757. chid: this.courseType,
  18758. uid: this.userid,
  18759. tid: t,
  18760. count: a,
  18761. };
  18762. this.ajax
  18763. .get(this.$store.state.api + "insertToolsCount", params)
  18764. .then((res) => {
  18765. this.selectCount();
  18766. })
  18767. .catch((err) => {
  18768. console.error(err);
  18769. });
  18770. },
  18771. updateCount(c, t) {
  18772. c++;
  18773. let params = {
  18774. cid: this.id,
  18775. chid: this.courseType,
  18776. uid: this.userid,
  18777. tid: t,
  18778. count: c,
  18779. };
  18780. this.ajax
  18781. .get(this.$store.state.api + "updateToolsCount", params)
  18782. .then((res) => {
  18783. this.selectCount();
  18784. })
  18785. .catch((err) => {
  18786. console.error(err);
  18787. });
  18788. },
  18789. checkEva() {
  18790. if (this.evalua != "") {
  18791. for (var i = 0; i < this.evaJuri.length; i++) {
  18792. if (this.evalua == this.evaJuri[i].id) {
  18793. this.eTitle = this.evaJuri[i].title;
  18794. this.eJson = JSON.parse(this.evaJuri[i].content);
  18795. }
  18796. }
  18797. this.$forceUpdate();
  18798. setTimeout(() => {
  18799. this.setMindData();
  18800. }, 0);
  18801. }
  18802. },
  18803. selectEva() {
  18804. let params = {
  18805. oid: this.oid,
  18806. };
  18807. this.ajax
  18808. .get(this.$store.state.api + "selectAllEvaluation", params)
  18809. .then((res) => {
  18810. this.evaJuri = res.data[0];
  18811. })
  18812. .catch((err) => {
  18813. console.error(err);
  18814. });
  18815. },
  18816. setMindData() {
  18817. this.data.data = [];
  18818. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18819. let _eJson = Object.keys(this.eJson);
  18820. let _e = this.eJson;
  18821. for (let i = 0; i < _eJson.length; i++) {
  18822. let element = _e[_eJson[i]];
  18823. this.data.data.push({
  18824. id: element.id,
  18825. parentid: "root",
  18826. topic: element.name,
  18827. });
  18828. let _eJsonc = Object.keys(element.child);
  18829. let _e2 = element.child;
  18830. for (let j = 0; j < _eJsonc.length; j++) {
  18831. let _ec = _e2[_eJsonc[j]];
  18832. this.data.data.push({
  18833. id: _ec.id,
  18834. parentid: element.id,
  18835. topic: _ec.name,
  18836. });
  18837. let _eJsonz = Object.keys(_ec.child);
  18838. let _e3 = _ec.child;
  18839. for (let z = 0; z < _eJsonz.length; z++) {
  18840. let _ez = _e3[_eJsonz[z]];
  18841. this.data.data.push({
  18842. id: _ez.id,
  18843. parentid: _ec.id,
  18844. topic: _ez.name,
  18845. });
  18846. }
  18847. }
  18848. }
  18849. this.$forceUpdate();
  18850. },
  18851. checkFileFull(type, url) {
  18852. this.fullDialogVisible = true;
  18853. this.fulltype = type;
  18854. this.fullUrl = url;
  18855. },
  18856. async checkFileFull1(t, f) {
  18857. this.fullDialogVisible = true;
  18858. if (t == 6) {
  18859. this.fulltype = 1;
  18860. this.fullUrl = JSON.parse(JSON.stringify(f));
  18861. } else if (t == 8) {
  18862. this.fulltype = 2;
  18863. this.fullUrl = f.url;
  18864. } else if (
  18865. t == 3 &&
  18866. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18867. "PDF"
  18868. ) {
  18869. this.fulltype = 3;
  18870. this.fullUrl = f.url;
  18871. } else if (t == 3) {
  18872. this.fulltype = 2;
  18873. let _uuurl = await this.checkLink(f.url);
  18874. this.fullUrl =
  18875. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18876. }
  18877. },
  18878. openSname(n, id, i, uid) {
  18879. this.snameWid = id;
  18880. this.worksSName = n;
  18881. this.worksSid = uid == n ? "" : uid;
  18882. this.toolindex = i;
  18883. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18884. if (!this.uploadCid) {
  18885. this.$message.error(
  18886. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18887. );
  18888. return;
  18889. }
  18890. this.selectUploadStudent(1);
  18891. },
  18892. updateName() {
  18893. let params = {
  18894. n: this.worksSName,
  18895. cid: this.snameWid,
  18896. };
  18897. this.ajax
  18898. .get(this.$store.state.api + "updateCourseWorksName", params)
  18899. .then((res) => {
  18900. this.$message({
  18901. message: "修改成功",
  18902. type: "success",
  18903. });
  18904. this.dialogVisibleSname = false;
  18905. this.getCourseDetail(2);
  18906. this.snameWid = "";
  18907. this.worksSName = "";
  18908. })
  18909. .catch((err) => {
  18910. console.error(err);
  18911. });
  18912. },
  18913. downloadFile2(f) {
  18914. // const loading = this.$loading.service({
  18915. // background: "rgba(255, 255, 255, 0.7)",
  18916. // target: document.body,
  18917. // text: "文件加载中...",
  18918. // });
  18919. // let url2 = f.url;
  18920. // let _url2 = "";
  18921. // if (
  18922. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18923. // ) {
  18924. // _url2 = url2.split(
  18925. // "https://view.officeapps.live.com/op/view.aspx?src="
  18926. // )[1];
  18927. // } else {
  18928. // _url2 = url2;
  18929. // }
  18930. // let params = {
  18931. // url: _url2,
  18932. // name: f.name,
  18933. // };
  18934. // this.ajax
  18935. // .get(this.$store.state.api + "download", params)
  18936. // .then((res) => {
  18937. // loading.close();
  18938. // let content = res.data.data.data;
  18939. // let ab = new ArrayBuffer(content.length);
  18940. // let view = new Uint8Array(ab);
  18941. // for (var i = 0; i < content.length; ++i) {
  18942. // view[i] = content[i];
  18943. // }
  18944. // let elink = document.createElement("a");
  18945. // elink.download = f.name;
  18946. // elink.style.display = "none";
  18947. // let blob = new Blob([ab], {
  18948. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18949. // });
  18950. // elink.href = URL.createObjectURL(blob);
  18951. // document.body.appendChild(elink);
  18952. // elink.click();
  18953. // document.body.removeChild(elink);
  18954. // })
  18955. // .catch((err) => {
  18956. // loading.close();
  18957. // console.error(err);
  18958. // });
  18959. var credentials = {
  18960. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18961. secretAccessKey: "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",
  18962. }; //秘钥形式的登录上传
  18963. window.AWS.config.update(credentials);
  18964. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18965. let url2 = f.url;
  18966. let _url2 = "";
  18967. if (
  18968. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18969. ) {
  18970. _url2 = url2.split(
  18971. "https://view.officeapps.live.com/op/view.aspx?src="
  18972. )[1];
  18973. } else {
  18974. _url2 = url2;
  18975. }
  18976. let _this = this;
  18977. _this.downLoading = true
  18978. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18979. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18980. var params = {
  18981. Bucket: "ccrb",
  18982. Key: name
  18983. };
  18984. s3.getObject(params, function (err, data) {
  18985. _this.downLoading = false
  18986. if (err) console.log(err, err.stack); // an error occurred
  18987. else {
  18988. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18989. let a = document.createElement("a");
  18990. a.name = f.name;
  18991. a.href = url;
  18992. a.download = f.name;
  18993. a.click();
  18994. console.log(data);
  18995. } // sxuccessful response
  18996. });
  18997. return;
  18998. let url = f.url;
  18999. let _url = "";
  19000. if (
  19001. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19002. ) {
  19003. _url = url.split(
  19004. "https://view.officeapps.live.com/op/view.aspx?src="
  19005. )[1];
  19006. } else {
  19007. _url = url;
  19008. }
  19009. _this.downLoading = true
  19010. // const loading = _this.$loading.service({
  19011. // background: "rgba(255, 255, 255, 0.7)",
  19012. // target: document.body,
  19013. // text: "文件加载中...",
  19014. // });
  19015. let x = new XMLHttpRequest();
  19016. x.open("GET", _url, true);
  19017. x.responseType = "blob";
  19018. x.onload = function () {
  19019. _this.downLoading = false
  19020. // loading.close();
  19021. let url = window.URL.createObjectURL(new Blob([x.response]));
  19022. let a = document.createElement("a");
  19023. a.name = f.name;
  19024. a.href = url;
  19025. a.download = f.name;
  19026. a.click();
  19027. };
  19028. x.send();
  19029. },
  19030. downloadFile(url) {
  19031. var credentials = {
  19032. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19033. secretAccessKey: "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",
  19034. }; //秘钥形式的登录上传
  19035. window.AWS.config.update(credentials);
  19036. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19037. let url2 = url;
  19038. let _url2 = "";
  19039. if (
  19040. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19041. ) {
  19042. _url2 = url2.split(
  19043. "https://view.officeapps.live.com/op/view.aspx?src="
  19044. )[1];
  19045. } else {
  19046. _url2 = url2;
  19047. }
  19048. const loading2 = this.$loading.service({
  19049. background: "rgba(255, 255, 255, 0.7)",
  19050. target: document.body,
  19051. text: "文件加载中...",
  19052. });
  19053. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19054. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19055. var params = {
  19056. Bucket: "ccrb",
  19057. Key: name
  19058. };
  19059. s3.getObject(params, function (err, data) {
  19060. loading2.close();
  19061. if (err) console.log(err, err.stack); // an error occurred
  19062. else {
  19063. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19064. let a = document.createElement("a");
  19065. a.name = name;
  19066. a.href = url;
  19067. a.download = name;
  19068. a.click();
  19069. console.log(data);
  19070. } // sxuccessful response
  19071. });
  19072. return;
  19073. let _this = this;
  19074. let _url = "";
  19075. if (
  19076. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19077. ) {
  19078. _url = url.split(
  19079. "https://view.officeapps.live.com/op/view.aspx?src="
  19080. )[1];
  19081. } else {
  19082. _url = url;
  19083. }
  19084. const x = new XMLHttpRequest();
  19085. x.open("GET", _url, true);
  19086. x.responseType = "blob";
  19087. const loading = _this.$loading.service({
  19088. background: "rgba(255, 255, 255, 0.7)",
  19089. target: document.body,
  19090. text: "文件加载中...",
  19091. });
  19092. // _this.$message.success("文件下载中...");
  19093. x.onload = function (e) {
  19094. loading.close();
  19095. let content = x.response;
  19096. let elink = document.createElement("a");
  19097. elink.download = decodeURI(
  19098. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19099. );
  19100. elink.style.display = "none";
  19101. let blob = new Blob([content]);
  19102. elink.href = URL.createObjectURL(blob);
  19103. document.body.appendChild(elink);
  19104. elink.click();
  19105. document.body.removeChild(elink);
  19106. };
  19107. x.send();
  19108. },
  19109. openLine(url) {
  19110. window.open(url);
  19111. },
  19112. resize() {
  19113. if (document.getElementsByClassName("box_course").length) {
  19114. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19115. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19116. if (this.showType == 2 || this.showType == 3) {
  19117. document.getElementsByClassName("navBox")[0].style.height =
  19118. a - 40 + 0+ "px";
  19119. } else {
  19120. document.getElementsByClassName("navBox")[0].style.height =
  19121. a - 40 + "px";
  19122. }
  19123. }
  19124. this.Stbodywidth =
  19125. document.getElementsByClassName("student_body").length &&
  19126. document.getElementsByClassName("student_body")[0].offsetWidth;
  19127. },
  19128. closeDraw() {
  19129. this.bg = null;
  19130. this.drawShow = false;
  19131. },
  19132. showPicturePaint(url) {
  19133. let params = {
  19134. img: url,
  19135. };
  19136. this.ajax
  19137. .get(this.$store.state.api + "imgToBase64", params)
  19138. .then((res) => {
  19139. this.drawShow = true;
  19140. this.bg = res.data[0].img;
  19141. })
  19142. .catch((err) => {
  19143. console.error(err);
  19144. });
  19145. },
  19146. addImgDraw(base64) {
  19147. let file = { name: "批注图.png" };
  19148. let img = this.dataUrlToFile(base64, file);
  19149. this.beforeUpload1(img, 5);
  19150. },
  19151. addImgDrawImG(url) {
  19152. // console.log(url);
  19153. let params = [
  19154. {
  19155. wid: this.commentDetail.wid,
  19156. img: url,
  19157. },
  19158. ];
  19159. this.ajax
  19160. .post(this.$store.state.api + "updateCourseWorks", params)
  19161. .then((res) => {
  19162. this.$message({
  19163. message: "提交成功",
  19164. type: "success",
  19165. });
  19166. this.drawShow = false;
  19167. this.bg = "";
  19168. this.selectSWorks();
  19169. this.selectStudent();
  19170. })
  19171. .catch((err) => {
  19172. this.$message.error("提交失败");
  19173. console.error(err);
  19174. });
  19175. },
  19176. deletePicturePaint() {
  19177. this.$confirm("确定删除此批注吗?", "提示", {
  19178. confirmButtonText: "确定",
  19179. cancelButtonText: "取消",
  19180. type: "warning",
  19181. })
  19182. .then(() => {
  19183. let params = [
  19184. {
  19185. wid: this.commentDetail.wid,
  19186. img: "",
  19187. },
  19188. ];
  19189. this.ajax
  19190. .post(this.$store.state.api + "updateCourseWorks", params)
  19191. .then((res) => {
  19192. this.$message({
  19193. message: "删除成功",
  19194. type: "success",
  19195. });
  19196. this.selectSWorks();
  19197. this.selectStudent();
  19198. })
  19199. .catch((err) => {
  19200. this.$message.error("删除失败");
  19201. console.error(err);
  19202. });
  19203. })
  19204. .catch(() => {});
  19205. },
  19206. getAudioVideo(constraintsData) {
  19207. if (navigator.mediaDevices === undefined) {
  19208. navigator.mediaDevices = {};
  19209. }
  19210. if (navigator.mediaDevices.getUserMedia === undefined) {
  19211. navigator.mediaDevices.getUserMedia = function (constraints) {
  19212. // 首先,如果有getUserMedia的话,就获得它
  19213. var getUserMedia =
  19214. navigator.getUserMedia ||
  19215. navigator.webkitGetUserMedia ||
  19216. navigator.mozGetUserMedia ||
  19217. navigator.msGetUserMedia;
  19218. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19219. if (!getUserMedia) {
  19220. return Promise.reject({ code: 404 });
  19221. }
  19222. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19223. return new Promise(function (resolve, reject) {
  19224. getUserMedia.call(navigator, constraints, resolve, reject);
  19225. });
  19226. };
  19227. }
  19228. return navigator.mediaDevices.getUserMedia(constraintsData);
  19229. },
  19230. /**
  19231. * 开始录制
  19232. */
  19233. startRecording(callback) {
  19234. let _function = (screenStream) => {
  19235. this.addStreamStopListener(screenStream, () => {
  19236. console.log("流停止监听");
  19237. this.stopRecording();
  19238. this.$emit("streamStop", {});
  19239. // this.stopRecording();
  19240. });
  19241. var options = {
  19242. type: "video",
  19243. mimeType: "video/webm",
  19244. disableLogs: false,
  19245. getNativeBlob: false, // enable it for longer recordings
  19246. ignoreMutedMedia: false,
  19247. };
  19248. // this.video.srcObject = screenStream;
  19249. this.recorder = RecordRTC(screenStream, options);
  19250. this.recorder.startRecording();
  19251. this.recorder.screen = screenStream;
  19252. this.videoStart = true;
  19253. // callback(true);
  19254. };
  19255. this.getAudioVideo({ audio: true })
  19256. .then((res) => {
  19257. this.captureScreen(_function, true);
  19258. console.log("已点击允许,开启成功");
  19259. })
  19260. .catch((err) => {
  19261. // console.log('浏览器不支持,请更换浏览器')
  19262. // } else {
  19263. this.captureScreen(_function, false);
  19264. console.log("请检查是否存在麦克风");
  19265. });
  19266. },
  19267. /**
  19268. * 停止录制
  19269. */
  19270. stopRecording(callback) {
  19271. this.recorder.stopRecording(() => {
  19272. // this.video.src = this.video.srcObject = null;
  19273. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19274. const url = URL.createObjectURL(this.recorder.getBlob());
  19275. const a = document.createElement("a"); //this.fileName+
  19276. let videoFile = new File(
  19277. [this.recorder.getBlob()],
  19278. this.courseDetail.title + "录屏.mp4",
  19279. {
  19280. type: "video/mp4",
  19281. }
  19282. );
  19283. let downloadUrl = URL.createObjectURL(videoFile);
  19284. document.body.appendChild(a);
  19285. a.style.display = "none";
  19286. a.href = url;
  19287. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19288. a.click();
  19289. this.recorder.screen.stop();
  19290. this.recorder.destroy();
  19291. this.recorder = null;
  19292. this.videoStart = false;
  19293. // callback(false);
  19294. });
  19295. },
  19296. //初始化
  19297. captureScreen(callback, type) {
  19298. if (navigator.getDisplayMedia) {
  19299. //录制结束,文件下载
  19300. navigator
  19301. .getDisplayMedia({
  19302. video: true,
  19303. })
  19304. .then((screenStream) => {
  19305. if (type) {
  19306. navigator.mediaDevices
  19307. .getUserMedia({ audio: true })
  19308. .then((mic) => {
  19309. screenStream.addTrack(mic.getTracks()[0]);
  19310. callback(screenStream);
  19311. });
  19312. } else {
  19313. callback(screenStream);
  19314. }
  19315. })
  19316. .catch(function (error) {
  19317. console.log("error", error);
  19318. });
  19319. } else if (navigator.mediaDevices.getDisplayMedia) {
  19320. navigator.mediaDevices
  19321. .getDisplayMedia({
  19322. video: true,
  19323. })
  19324. .then((screenStream) => {
  19325. if (type) {
  19326. navigator.mediaDevices
  19327. .getUserMedia({ audio: true })
  19328. .then((mic) => {
  19329. screenStream.addTrack(mic.getTracks()[0]);
  19330. callback(screenStream);
  19331. });
  19332. } else {
  19333. callback(screenStream);
  19334. }
  19335. })
  19336. .catch(function (error) {
  19337. console.log("error", error);
  19338. });
  19339. } else {
  19340. var error = "getDisplayMedia API are not supported in this browser.";
  19341. console.log("error", error);
  19342. alert(error);
  19343. }
  19344. },
  19345. //流监听
  19346. addStreamStopListener(stream, callback) {
  19347. stream.addEventListener(
  19348. "ended",
  19349. function () {
  19350. callback();
  19351. callback = function () {};
  19352. },
  19353. false
  19354. );
  19355. stream.addEventListener(
  19356. "inactive",
  19357. function () {
  19358. callback();
  19359. callback = function () {};
  19360. },
  19361. false
  19362. );
  19363. stream.getTracks().forEach(function (track) {
  19364. track.addEventListener(
  19365. "ended",
  19366. function () {
  19367. callback();
  19368. callback = function () {};
  19369. },
  19370. false
  19371. );
  19372. track.addEventListener(
  19373. "inactive",
  19374. function () {
  19375. callback();
  19376. callback = function () {};
  19377. },
  19378. false
  19379. );
  19380. });
  19381. },
  19382. updateGroup() {
  19383. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19384. this.dialogVisibleGroup2 = true;
  19385. },
  19386. numberPan() {
  19387. if (
  19388. /[^\d]/.test(this.groupJson.number) ||
  19389. this.groupJson.number < 2 ||
  19390. this.groupJson.number > 10
  19391. ) {
  19392. this.$message.error("请输入2-10的数字");
  19393. this.groupJson.number = "";
  19394. }
  19395. },
  19396. updateGroupJson() {
  19397. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19398. if (
  19399. this.groupStudentUid[this.toolindex][i].length >
  19400. this.groupJson2.number
  19401. ) {
  19402. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19403. return;
  19404. }
  19405. }
  19406. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19407. this.islock = this.groupJson.islock == 1 ? true : false;
  19408. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19409. this.taskCount
  19410. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19411. let params = [
  19412. {
  19413. cid: this.id,
  19414. chapters: JSON.stringify(this.chapInfoList),
  19415. uid: this.userid,
  19416. unitIndex: this.courseType,
  19417. },
  19418. ];
  19419. this.ajax
  19420. .post(this.$store.state.api + "updateWorkNew4", params)
  19421. .then((res) => {
  19422. this.$message.success("设置成功");
  19423. this.getCourseDetail(2);
  19424. this.dialogVisibleGroup2 = false;
  19425. this.groupJson2 = {};
  19426. this.$forceUpdate();
  19427. })
  19428. .catch((err) => {
  19429. this.$message.error("网络不佳");
  19430. console.error(err);
  19431. });
  19432. },
  19433. lockChair() {
  19434. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19435. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19436. this.updateGroupJson();
  19437. },
  19438. selectGroup(index) {
  19439. this.getCourseDetail(2, index);
  19440. },
  19441. joinGroup(index) {
  19442. if (this.groupJson.islock == 2) {
  19443. this.$message.error("位置已被锁定,无法加入");
  19444. return;
  19445. }
  19446. if (
  19447. this.groupStudent[this.toolindex][index].length >
  19448. this.groupJson.number ||
  19449. this.groupStudent[this.toolindex][index].length == 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: index,
  19461. uid: this.userid,
  19462. },
  19463. ];
  19464. this.ajax
  19465. .post(this.$store.state.api + "joinGroup", params)
  19466. .then((res) => {
  19467. this.$message.success("加入成功");
  19468. this.getCourseDetail(2);
  19469. })
  19470. .catch((err) => {
  19471. this.$message.error("网络不佳");
  19472. console.error(err);
  19473. });
  19474. },
  19475. exitGroup(id) {
  19476. if (this.groupJson.islock == 2) {
  19477. this.$message.error("位置已被锁定,无法退出");
  19478. return;
  19479. }
  19480. let params = [
  19481. {
  19482. gid: id,
  19483. },
  19484. ];
  19485. this.ajax
  19486. .post(this.$store.state.api + "exitGroup", params)
  19487. .then((res) => {
  19488. this.$message.success("退出成功");
  19489. this.getCourseDetail(2);
  19490. })
  19491. .catch((err) => {
  19492. this.$message.error("网络不佳");
  19493. console.error(err);
  19494. });
  19495. },
  19496. groupUpload(index, task, gindex) {
  19497. this.taskCount = task;
  19498. this.toolindex = index;
  19499. this.groupIndex = gindex;
  19500. this.dialogVisibleGroupWork = true;
  19501. },
  19502. updateGroupChair(user) {
  19503. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19504. el.label = index;
  19505. return index != user.group;
  19506. });
  19507. this.updateGroupUser = user;
  19508. this.dialogVisibleUpdateGroup = true;
  19509. },
  19510. updateChair() {
  19511. if (
  19512. this.groupStudent[this.toolindex][this.checkChair].length >
  19513. this.groupJson.number ||
  19514. this.groupStudent[this.toolindex][this.checkChair].length ==
  19515. this.groupJson.number
  19516. ) {
  19517. this.$message.error("位置已满,无法加入");
  19518. return;
  19519. }
  19520. let params = [
  19521. {
  19522. cid: this.id,
  19523. stage: this.courseType,
  19524. task: this.taskCount,
  19525. tool: this.toolindex,
  19526. g: this.checkChair,
  19527. uid: this.updateGroupUser.userid,
  19528. },
  19529. ];
  19530. this.ajax
  19531. .post(this.$store.state.api + "joinGroup", params)
  19532. .then((res) => {
  19533. this.$message.success("修改成功");
  19534. this.updateGroupUser = {};
  19535. this.checkChair = "";
  19536. this.updateGroupArray = {};
  19537. this.dialogVisibleUpdateGroup = false;
  19538. this.getCourseDetail(2);
  19539. })
  19540. .catch((err) => {
  19541. this.$message.error("网络不佳");
  19542. console.error(err);
  19543. });
  19544. },
  19545. deleteGroupChair(gindex) {
  19546. this.checkDeleteGroup = [];
  19547. this.deleteGroupUser = JSON.parse(
  19548. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19549. );
  19550. this.deleteGroupArray = this.groupJson.group[gindex];
  19551. this.groupIndex = gindex;
  19552. this.dialogVisibleDeleteGroup = true;
  19553. },
  19554. async deleteChair() {
  19555. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19556. const gid =
  19557. this.groupStudent[this.toolindex][this.groupIndex][
  19558. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19559. this.checkDeleteGroup[i]
  19560. )
  19561. ];
  19562. let params = [
  19563. {
  19564. gid: gid.id,
  19565. },
  19566. ];
  19567. var a = await this.deleteChairA(params);
  19568. if (i == this.checkDeleteGroup.length - 1) {
  19569. this.$message.success("退出成功");
  19570. this.dialogVisibleDeleteGroup = false;
  19571. this.deleteGroupUser = [];
  19572. this.deleteGroupArray = {};
  19573. this.groupIndex = "";
  19574. this.checkDeleteGroup = [];
  19575. this.getCourseDetail(2);
  19576. }
  19577. }
  19578. },
  19579. deleteChairA(params) {
  19580. return new Promise((resolve, reject) => {
  19581. this.ajax
  19582. .post(this.$store.state.api + "exitGroup", params)
  19583. .then((res) => {
  19584. resolve(1);
  19585. })
  19586. .catch((err) => {
  19587. this.$message.error("网络不佳");
  19588. console.error(err);
  19589. });
  19590. });
  19591. },
  19592. contract(i) {
  19593. if (this.isCloseList[i].isClose == 0) {
  19594. this.isCloseList[i].isClose = 1;
  19595. } else {
  19596. this.isCloseList[i].isClose = 0;
  19597. }
  19598. this.$forceUpdate();
  19599. },
  19600. openWordCloud(toolindex) {
  19601. let array = [];
  19602. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19603. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19604. array.push({ name: works });
  19605. }
  19606. if (this.isGroup) {
  19607. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19608. let works = this.courseGroup.group[i].works[toolindex];
  19609. for (var j = 0; j < works.length; j++) {
  19610. let answer = JSON.parse(works[j].works)[0].answer;
  19611. array.push({ name: answer });
  19612. }
  19613. }
  19614. }
  19615. this.wordCloudData = array;
  19616. this.dialogVisibleWordCloud = true;
  19617. },
  19618. openTips(i) {
  19619. this.tipsIndex = i;
  19620. this.downDialogVisible = true;
  19621. },
  19622. uploadWorks() {
  19623. this.$confirm("确定导出作业吗?", "提示", {
  19624. confirmButtonText: "确定",
  19625. cancelButtonText: "取消",
  19626. type: "warning",
  19627. })
  19628. .then(() => {
  19629. const loading = this.$loading.service({
  19630. background: "rgba(255, 255, 255, 0.7)",
  19631. target: document.body,
  19632. text: "文件加载中...",
  19633. });
  19634. const _worksStudent = this.worksStudent;
  19635. let url = [];
  19636. var counts = {};
  19637. for (var l = 0; l < _worksStudent[i].length; l++) {
  19638. var item = _worksStudent[i][l];
  19639. var name = item.sName;
  19640. if (!counts.hasOwnProperty(name)) {
  19641. counts[name] = 0;
  19642. } else {
  19643. counts[name]++;
  19644. }
  19645. if (counts[name] > 0) {
  19646. item.sName += " (" + counts[name] + ")";
  19647. }
  19648. }
  19649. for (var l = 0; l < _worksStudent[i].length; l++) {
  19650. var item = _worksStudent[i][l];
  19651. if (
  19652. item.works.indexOf(
  19653. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19654. ) !== -1 &&
  19655. item.works.indexOf("img") === -1
  19656. ) {
  19657. url.push({ name: item.sName, url: item.works });
  19658. }
  19659. }
  19660. // var toolList = [
  19661. // { name: "电子白板", tool: 1 },
  19662. // { name: "思维导图", tool: 3 },
  19663. // { name: "协同文档", tool: 6 },
  19664. // { name: "思维网格", tool: 7 },
  19665. // { name: "素材库", tool: 8 },
  19666. // { name: "学习资料", tool: 17 },
  19667. // { name: "便签", tool: 2 },
  19668. // { name: "问卷调查", tool: 4 },
  19669. // { name: "选择题", tool: 45 },
  19670. // { name: "倒计时", tool: 10 },
  19671. // { name: "问答", tool: 15 },
  19672. // { name: "课程设计", tool: 26 },
  19673. // { name: "训练服务器", tool: 18 },
  19674. // { name: "作业提交", tool: 16 },
  19675. // { name: "批量上传", tool: 50 },
  19676. // { name: "AIoT Blockly", tool: 21 },
  19677. // { name: "AI Python", tool: 23 },
  19678. // { name: "AI Blockly", tool: 24 },
  19679. // { name: "目标管理", tool: 25 },
  19680. // { name: "数学画板", tool: 31 },
  19681. // { name: "翻译", tool: 28 },
  19682. // { name: "魔盒识字", tool: 37 },
  19683. // { name: "数学画板", tool: 31 },
  19684. // { name: "24点", tool: 38 },
  19685. // { name: "GeoGebra", tool: 39 },
  19686. // { name: "源码编辑", tool: 32 },
  19687. // { name: "个人评价", tool: 40 },
  19688. // { name: "选择匹配", tool: 41 },
  19689. // { name: "汉字宫", tool: 44 },
  19690. // { name: "排序", tool: 47 },
  19691. // { name: "表格", tool: 48 },
  19692. // { name: "文档", tool: 52 },
  19693. // { name: "学生分组", tool: 49 },
  19694. // { name: "CocoPi", tool: 57 },
  19695. // { name: "模拟驾驶", tool: 58 },
  19696. // { name: "路径搜索", tool: 59 },
  19697. // { name: "深度学习", tool: 60 },
  19698. // { name: "全历史", tool: 61 },
  19699. // { name: "交互视频", tool: 62 },
  19700. // { name: "海龟编程", tool: 63 },
  19701. // { name: "挑人", tool: 65 },
  19702. // { name: "公式编辑", tool: 66 },
  19703. // { name: "分子结构", tool: 67 },
  19704. // { name: "时间轴", tool: 68 },
  19705. // ];
  19706. // var toolName = "";
  19707. // for(var w = 0;w<toolList.length;w++){
  19708. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19709. // toolName = toolList[w].name;
  19710. // }
  19711. // }
  19712. console.log(url);
  19713. this.downLoadAll(url, loading);
  19714. })
  19715. .catch(() => {});
  19716. },
  19717. downLoadAll(url, loading) {
  19718. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19719. const zip = new JSZip();
  19720. const cache = {};
  19721. const promises = [];
  19722. data.forEach((item) => {
  19723. const promise = getFile(item.url).then((data) => {
  19724. if (data.data != 1) {
  19725. // 下载文件, 并存成ArrayBuffer对象
  19726. const file_name =
  19727. item.name +
  19728. "." +
  19729. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19730. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19731. cache[file_name] = data.data;
  19732. }
  19733. });
  19734. promises.push(promise);
  19735. });
  19736. Promise.all(promises).then(() => {
  19737. zip.generateAsync({ type: "blob" }).then((content) => {
  19738. // 生成二进制流
  19739. FileSaver.saveAs(
  19740. content,
  19741. this.courseDetail.title + "-" + "作业提交工具.zip"
  19742. ); // 利用file-saver保存文件 自定义文件名
  19743. setTimeout(() => {
  19744. loading.close();
  19745. }, 2000);
  19746. });
  19747. });
  19748. },
  19749. pickStudent(stu) {
  19750. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19751. return;
  19752. }
  19753. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19754. confirmButtonText: "确定",
  19755. cancelButtonText: "取消",
  19756. type: "warning",
  19757. })
  19758. .then(() => {
  19759. let params = [
  19760. {
  19761. uid: stu.userid,
  19762. cid: this.id,
  19763. stage: this.courseType,
  19764. task: this.taskCount,
  19765. tool: this.toolindex,
  19766. },
  19767. ];
  19768. this.ajax
  19769. .post(this.$store.state.api + "updateCoursePick", params)
  19770. .then((res) => {
  19771. this.$message.success("操作成功");
  19772. this.getPick();
  19773. })
  19774. .catch((err) => {
  19775. this.$message.error("网络不佳");
  19776. console.error(err);
  19777. });
  19778. })
  19779. .catch(() => {});
  19780. },
  19781. selectUser(){
  19782. let params = {
  19783. userid: this.userid,
  19784. };
  19785. this.ajax
  19786. .get(this.$store.state.api + "selectUser", params)
  19787. .then((res) => {
  19788. this.userMes = res.data[0];
  19789. })
  19790. .catch((err) => {
  19791. console.error(err);
  19792. });
  19793. },
  19794. setEngText(i){
  19795. this.newEngIndex = i;
  19796. this.$forceUpdate();
  19797. },
  19798. addCorrect(){
  19799. this.$confirm("你确定提交批改嘛?", "提示", {
  19800. confirmButtonText: "确定",
  19801. showCancelButton: false,
  19802. closeOnClickModal: false,
  19803. type: "warning",
  19804. })
  19805. .then(() => {
  19806. let params = {
  19807. cid: this.id,
  19808. s: parseInt(this.courseType),
  19809. t: this.taskCount,
  19810. tool: this.toolindex,
  19811. wid: this.engWid,
  19812. c: this.userid,
  19813. 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) : "",
  19814. };
  19815. this.ajax
  19816. .get(this.$store.state.api + "addEngC", params)
  19817. .then((res) => {
  19818. this.$message.success("提交成功");
  19819. this.engUpdateDialogVisible = false;
  19820. })
  19821. .catch((err) => {
  19822. console.error(err);
  19823. });
  19824. })
  19825. .catch(() => {});
  19826. },
  19827. selectEngC(id,z){
  19828. let params = {
  19829. workid: id,
  19830. };
  19831. this.ajax
  19832. .get(this.$store.state.api + "selectEngC", params)
  19833. .then((res) => {
  19834. if(res.data[0].length == 0){
  19835. this.newEnglishList.engTitle = z.engTitle;
  19836. this.newEnglishList.engText = z.engText;
  19837. }else{
  19838. var a = res.data[0];
  19839. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19840. if(this.userMes[0].type == 2){
  19841. var snum = 0;
  19842. for(var i = 0;i<a.length;i++){
  19843. if(this.userMes[0].userid == a[i].correct){
  19844. this.newEnglishList = JSON.parse(a[i].cWork);
  19845. snum = 1;
  19846. }
  19847. }
  19848. if(snum == 0){
  19849. this.newEnglishList = { engTitle:"",engText:"" };
  19850. this.newEnglishList.engTitle = z.engTitle;
  19851. this.newEnglishList.engText = z.engText;
  19852. }
  19853. }else if(this.userMes[0].type == 1){
  19854. var num = 0;
  19855. for(var w= 0;w<a.length;w++){
  19856. if(this.userMes[0].userid == a[w].correct){
  19857. num = 1;
  19858. }
  19859. }
  19860. if(num == 0){
  19861. this.isNoUserid = true;
  19862. var c = JSON.parse(JSON.stringify(z));
  19863. this.oldEnglishJson1 = c;
  19864. }else{
  19865. this.isNoUserid = false;
  19866. }
  19867. var b = a.sort((item, index) => {
  19868. console.log(item)
  19869. if (item.correct === this.userMes[0].userid) {
  19870. return -1; // 将a移到前面
  19871. } else if (index.correct === this.userMes[0].userid) {
  19872. return 1; // 将b移到前面
  19873. } else {
  19874. return 0; // 保持默认顺序
  19875. }
  19876. });
  19877. for(var p = 0;p<b.length;p++){
  19878. for(var y = 0;y<ppp.length;y++){
  19879. if(b[p].id == ppp[y].id){
  19880. b[p].cWork = JSON.parse(ppp[y].cWork);
  19881. break
  19882. }
  19883. }
  19884. }
  19885. this.newEnglishList1 = b;
  19886. }
  19887. }
  19888. this.greyType = false;
  19889. setTimeout(() => {
  19890. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19891. if(this.newEnglishList1.length > 0){
  19892. if(this.isNoUserid == true){
  19893. this.engListLength = this.newEnglishList1.length + 1;
  19894. this.newEngIndex = -1;
  19895. }else{
  19896. this.engListLength = this.newEnglishList1.length;
  19897. this.newEngIndex = 0;
  19898. }
  19899. }
  19900. if(this.userMes[0].type == 2){
  19901. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19902. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19903. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19904. }else if(this.newEngIndex == -1){
  19905. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19906. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19907. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19908. }
  19909. }, 500);
  19910. this.engUpdateDialogVisible = true;
  19911. this.$forceUpdate();
  19912. })
  19913. .catch((err) => {
  19914. console.error(err);
  19915. });
  19916. },
  19917. getPick() {
  19918. let params = {
  19919. cid: this.id,
  19920. };
  19921. this.ajax
  19922. .get(this.$store.state.api + "getPick", params)
  19923. .then((res) => {
  19924. let array = [];
  19925. for (var i = 0; i < res.data[0].length; i++) {
  19926. array.push(res.data[0][i].userid);
  19927. }
  19928. this.isPickStudent = array;
  19929. if (array.indexOf(this.userid) !== -1) {
  19930. this.$confirm("你被老师选到啦!", "提示", {
  19931. confirmButtonText: "确定",
  19932. showCancelButton: false,
  19933. closeOnClickModal: false,
  19934. type: "warning",
  19935. })
  19936. .then(() => {
  19937. let pa = [
  19938. {
  19939. uid: this.userid,
  19940. cid: this.id,
  19941. },
  19942. ];
  19943. this.ajax
  19944. .post(this.$store.state.api + "deletePick", pa)
  19945. .then((res) => {
  19946. this.getPick();
  19947. })
  19948. .catch((err) => {
  19949. this.$message.error("网络不佳");
  19950. console.error(err);
  19951. });
  19952. })
  19953. .catch(() => {});
  19954. }
  19955. })
  19956. .catch((err) => {
  19957. this.$message.error("网络不佳");
  19958. console.error(err);
  19959. });
  19960. },
  19961. foldEva() {
  19962. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19963. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19964. } else {
  19965. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19966. setTimeout(() => {
  19967. this.checkEva();
  19968. setTimeout(() => {
  19969. this.checkEva();
  19970. }, 500);
  19971. }, 0);
  19972. }
  19973. this.$forceUpdate();
  19974. },
  19975. panToolHeight(tool) {
  19976. var _tool = document.querySelectorAll('#'+tool)[0]
  19977. var _toolA = _tool ? _tool.offsetHeight : 0
  19978. var _toolC = 0
  19979. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19980. let boolean2 = (_toolA > _toolC) ? true : false
  19981. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19982. this.$forceUpdate();
  19983. },
  19984. async checkLink(url) {
  19985. // console.log(url)
  19986. let _url = url
  19987. try {
  19988. const response = await fetch(url);
  19989. if(!response.ok){
  19990. _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]))
  19991. }
  19992. // console.log(response.ok)
  19993. } catch (error) {
  19994. console.error('Error checking link:', error);
  19995. // console.log(false)
  19996. _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]))
  19997. }
  19998. // console.log(_url)
  19999. return _url
  20000. },
  20001. setClassRoomHelperWidth(width){
  20002. this.classRoomHelperWidth = width
  20003. }
  20004. },
  20005. directives: {
  20006. // 使用局部注册指令的方式
  20007. resize: {
  20008. // 指令的名称
  20009. bind(el, binding) {
  20010. // el为绑定的元素,binding为绑定给指令的对象
  20011. let width = "",
  20012. height = "";
  20013. function isReize() {
  20014. const style = document.defaultView.getComputedStyle(el);
  20015. if (width !== style.width || height !== style.height) {
  20016. binding.value(); // 关键
  20017. }
  20018. width = style.width;
  20019. height = style.height;
  20020. }
  20021. el.__vueSetInterval__ = setInterval(isReize, 300);
  20022. },
  20023. unbind(el) {
  20024. clearInterval(el.__vueSetInterval__);
  20025. },
  20026. },
  20027. autoHeight: {
  20028. update(el, binding) {
  20029. const { value } = binding
  20030. if (value && typeof value === 'number') {
  20031. el.style.height = `${value}px`
  20032. } else {
  20033. el.style.height = 'auto'
  20034. }
  20035. },
  20036. componentUpdated(el) {
  20037. el.style.height = `${el.scrollHeight + 5}px`
  20038. },
  20039. }
  20040. },
  20041. beforeDestroy() {
  20042. window.onresize = null;
  20043. clearInterval(this.timer);
  20044. this.timer = null;
  20045. clearInterval(this.opertimer);
  20046. this.opertimer = null;
  20047. },
  20048. computed: {
  20049. // getdocumentSco(){
  20050. // return function (w,task,tooindex) {
  20051. // console.log(w);
  20052. // return task;
  20053. // };
  20054. // },
  20055. getHeight(){
  20056. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20057. },
  20058. contentConvent() {
  20059. return function (c) {
  20060. return c
  20061. ? c
  20062. .replaceAll(/\r\n/g, "<br/>")
  20063. .replaceAll(/\n/g, "<br/>")
  20064. .replaceAll(/\s/g, " &nbsp")
  20065. : "";
  20066. };
  20067. },
  20068. commentRight(){
  20069. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  20070. return "35px";
  20071. }
  20072. return `calc(${this.classRoomHelperWidth} + 5px)`
  20073. // if(this.$refs["classRoomHelperRef"].type==0){
  20074. // return "100px";
  20075. // }else if(this.$refs["classRoomHelperRef"].type==1){
  20076. // return "502px"
  20077. // }else{
  20078. // return "0px"
  20079. // }
  20080. },
  20081. checkUpload() {
  20082. return function () {
  20083. var studentK = [];
  20084. if (this.plworkFile.length > 0) {
  20085. for (var z = 0; z < this.plworkFile.length; z++) {
  20086. studentK.push(this.plworkFile[z].username);
  20087. }
  20088. studentK = studentK.join(",");
  20089. }
  20090. var a = this.uploadStudentJuri.filter((el) => {
  20091. return studentK.indexOf(el.userid) == -1;
  20092. });
  20093. return a;
  20094. };
  20095. },
  20096. getSName() {
  20097. return function (name) {
  20098. var check = name;
  20099. this.uploadStudentJuri.forEach((el) => {
  20100. if (el.userid == check) {
  20101. check = el.name ? el.name : el.username;
  20102. }
  20103. });
  20104. return check;
  20105. };
  20106. },
  20107. getImgList() {
  20108. return function (val) {
  20109. let srcList = []; // 定义一个数组用来接收后面的img地址
  20110. val.replace(
  20111. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  20112. function (match, capture) {
  20113. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  20114. srcList.push(capture);
  20115. }
  20116. );
  20117. return srcList;
  20118. };
  20119. },
  20120. retrnToolHeight(){
  20121. return function (tool) {
  20122. var _tool = document.querySelectorAll('#'+tool)[0]
  20123. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  20124. };
  20125. },
  20126. Correct() {
  20127. return function (c) {
  20128. let w = "";
  20129. let a = this.correctWord;
  20130. for(var k = 0;k<a.length;k++){
  20131. //diffWordsWithSpace
  20132. if(a.length > 1){
  20133. if(a[k].added == true){
  20134. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20135. }else if(a[k].removed == true){
  20136. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20137. }else{
  20138. w += '<span>' + a[k].value + '</span>';
  20139. }
  20140. }else{
  20141. w = c
  20142. }
  20143. //diffChars方法
  20144. // if(w == ""){
  20145. // if(a.length > 1){
  20146. // if(a[k].added == true){
  20147. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20148. // }else if(a[k].removed == true){
  20149. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20150. // }
  20151. // }else{
  20152. // w = c
  20153. // }
  20154. // }else{
  20155. // if(k == a.length - 1){
  20156. // if(a[k].added == true){
  20157. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20158. // }else if(a[k].removed == true){
  20159. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20160. // }
  20161. // }else{
  20162. // if(a[k].added == true){
  20163. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20164. // }else if(a[k].removed == true){
  20165. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20166. // }
  20167. // }
  20168. // }
  20169. }
  20170. c = w;
  20171. return c;
  20172. };
  20173. },
  20174. getScoreList(){
  20175. let params = {
  20176. cid: this.id,
  20177. };
  20178. this.ajax
  20179. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20180. .then((res) => {
  20181. let result = res.data;
  20182. this.scoreList.datalist = result[0];
  20183. this.scoreList.isScoreList = result[1];
  20184. })
  20185. .catch((err) => {
  20186. console.error(err);
  20187. });
  20188. },
  20189. },
  20190. mounted() {
  20191. document.body.addEventListener("click", (e) => {
  20192. if (this.isUpdateToolDetail1) {
  20193. this.updateToolDetail(this.toolDetailIndex);
  20194. }
  20195. });
  20196. if (this.screenType == 2) {
  20197. window.parent.postMessage({ allScreen: 4 }, "*");
  20198. } else if (this.screenType == 3) {
  20199. window.parent.postMessage({ allScreen: 5 }, "*");
  20200. } else if (this.screenType == 1) {
  20201. window.parent.postMessage({ allScreen: 6 }, "*");
  20202. }
  20203. this.setOperationTime();
  20204. this.selectEva();
  20205. this.getCourseDetail();
  20206. this.selectCount();
  20207. this.getHomeWork();
  20208. this.selectUser();
  20209. this.getAIJ()
  20210. this.contentDialog = true;
  20211. this.setContent2(true);
  20212. if (this.tType == 4) {
  20213. this.pzDialog = true;
  20214. this.selectPz();
  20215. }
  20216. // 获取评分列表
  20217. this.getScoreList()
  20218. document.scrollingElement.scrollTop = 0;
  20219. window.addEventListener("resize", () => {
  20220. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20221. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20222. if (this.showType == 2 || this.showType == 3) {
  20223. document.getElementsByClassName("navBox")[0].style.height =
  20224. a - 40 + 0+ "px";
  20225. } else {
  20226. document.getElementsByClassName("navBox")[0].style.height =
  20227. a - 40 + "px";
  20228. }
  20229. });
  20230. let _this = this;
  20231. setTimeout(() => {
  20232. // _this.vedioTime = [];
  20233. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20234. // _this.vedioTime[i] = document.getElementsByClassName(
  20235. // "vjs-duration-display"
  20236. // )[i].textContent;
  20237. // }
  20238. }, 1000);
  20239. },
  20240. };
  20241. </script>
  20242. <style scoped>
  20243. @media screen and (max-width: 1280px) {
  20244. /* .courseIndex > div:first-child(2) {
  20245. width: 15% !important;
  20246. } */
  20247. /* .navText {
  20248. width: 120px !important;
  20249. } */
  20250. .evaCss {
  20251. flex-direction: column !important;
  20252. align-items: center !important;
  20253. }
  20254. .elist_input {
  20255. width: 90% !important;
  20256. }
  20257. .dialog_diy1 >>> .el-dialog {
  20258. width: 100% !important;
  20259. }
  20260. .rightWidthCss {
  20261. width: 100% !important;
  20262. }
  20263. .dialog_diy3 >>> .el-dialog {
  20264. width: 100% !important;
  20265. }
  20266. .addToolCss {
  20267. right: 0 !important;
  20268. width: 100% !important;
  20269. min-width: unset !important;
  20270. }
  20271. }
  20272. .evaCssMax {
  20273. flex-direction: column !important;
  20274. align-items: center !important;
  20275. }
  20276. .dialog_diy >>> .el-dialog {
  20277. margin-top: 10vh !important;
  20278. }
  20279. .body_student {
  20280. width: 77%;
  20281. height: 100%;
  20282. position: absolute;
  20283. left: 22%;
  20284. top: 0;
  20285. }
  20286. .student_head {
  20287. width: 100%;
  20288. margin: 20px auto 0;
  20289. padding-bottom: 20px;
  20290. display: flex;
  20291. flex-direction: column;
  20292. flex-wrap: nowrap;
  20293. align-items: flex-start;
  20294. justify-content: flex-start;
  20295. }
  20296. .pb_left {
  20297. width: 20%;
  20298. margin-right: 10px;
  20299. background: rgb(255, 255, 255);
  20300. position: fixed;
  20301. height: calc(100% - 40px);
  20302. border-radius: 20px;
  20303. padding-bottom: 15px;
  20304. box-sizing: border-box;
  20305. }
  20306. .wheel > img,
  20307. .project > img,
  20308. .star > img,
  20309. .evaluate > img,
  20310. .up_photo > img,
  20311. .chapter_add > img,
  20312. .deleteWord > img,
  20313. .question > img,
  20314. .homework > img {
  20315. width: 100%;
  20316. height: 100%;
  20317. }
  20318. .upCover > img {
  20319. width: 131px;
  20320. height: 69px;
  20321. object-fit: cover;
  20322. }
  20323. .upCover {
  20324. width: calc(100% / 3.5);
  20325. position: relative;
  20326. margin: 0 15px 10px 0;
  20327. display: flex;
  20328. flex-direction: column;
  20329. flex-wrap: nowrap;
  20330. justify-content: center;
  20331. align-content: center;
  20332. align-items: center;
  20333. height: fit-content;
  20334. }
  20335. .upCover2 {
  20336. width: 100%;
  20337. position: relative;
  20338. margin: 0 15px 10px 0;
  20339. display: flex;
  20340. flex-direction: column;
  20341. flex-wrap: nowrap;
  20342. justify-content: center;
  20343. align-content: center;
  20344. align-items: center;
  20345. }
  20346. .upCover2 > img {
  20347. width: 100%;
  20348. height: 90px;
  20349. object-fit: contain;
  20350. }
  20351. .chapter_add {
  20352. width: 120px;
  20353. position: relative;
  20354. text-align: center;
  20355. }
  20356. .isAddThings {
  20357. margin-top: 20px;
  20358. position: relative;
  20359. text-align: center;
  20360. background: #f7f8fa;
  20361. height: 90px;
  20362. width: 90px;
  20363. display: flex;
  20364. flex-direction: column;
  20365. justify-content: center;
  20366. }
  20367. .deleteWord {
  20368. width: 22px;
  20369. height: 22px;
  20370. position: absolute;
  20371. right: -5px;
  20372. top: -5px;
  20373. cursor: pointer;
  20374. }
  20375. .box_course {
  20376. /* width: 60%; */
  20377. width: calc(100% - 300px);
  20378. }
  20379. .wheel {
  20380. width: 100%;
  20381. /* height: 100%; */
  20382. height: 650px;
  20383. }
  20384. .right_box {
  20385. display: flex;
  20386. flex-direction: column;
  20387. margin-left: 30px;
  20388. justify-content: space-around;
  20389. }
  20390. .right_box_title {
  20391. font-size: 23px;
  20392. }
  20393. .people {
  20394. display: flex;
  20395. }
  20396. .student_body {
  20397. width: 100%;
  20398. margin: 0 auto;
  20399. margin-top: 10px;
  20400. padding: 0 0 20px;
  20401. }
  20402. .study_top {
  20403. margin-top: 100px;
  20404. width: 100%;
  20405. height: auto;
  20406. padding-bottom: 20px;
  20407. }
  20408. .study_top .checkbox {
  20409. display: flex;
  20410. align-items: center;
  20411. padding: 15px 0 15px 30px;
  20412. flex: 0 0 auto;
  20413. font-weight: bold;
  20414. border-bottom: 1px solid #eee;
  20415. }
  20416. .study_top .check {
  20417. padding-bottom: 5px;
  20418. text-align: center;
  20419. cursor: pointer;
  20420. height: 30px;
  20421. box-sizing: border-box;
  20422. display: flex;
  20423. }
  20424. .study_top .checked {
  20425. border-bottom: 4px solid #3fc6a0;
  20426. padding-bottom: 5px;
  20427. color: #3fc6a0;
  20428. display: flex;
  20429. height: 35px;
  20430. }
  20431. .study_top .checked > div,
  20432. .study_top .check > div {
  20433. margin-right: 5px;
  20434. }
  20435. .videoTop {
  20436. display: flex;
  20437. flex-direction: row;
  20438. justify-content: space-between;
  20439. background: #fff;
  20440. align-items: center;
  20441. width: 95%;
  20442. padding: 20px;
  20443. }
  20444. .filebox {
  20445. display: flex;
  20446. flex-wrap: wrap;
  20447. flex-direction: column;
  20448. padding: 0 0 5px;
  20449. position: relative;
  20450. }
  20451. .filebox:before {
  20452. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20453. position: absolute;
  20454. top: 20px;
  20455. left: 13px;
  20456. border-left: 2px dotted #cad1dc;
  20457. height: calc(100% - 15px);
  20458. }
  20459. .toolHeng2 > div:last-child::before {
  20460. height: calc(100% - 43px);
  20461. }
  20462. .filebox .tooldetail {
  20463. width: calc(100% - 280px);
  20464. margin: 0px 12px;
  20465. padding: 12px;
  20466. line-height: 30px;
  20467. word-break: break-word;
  20468. background: #ffffff;
  20469. border-radius: 8px 8px 8px 8px;
  20470. opacity: 1;
  20471. border: 1px solid #cad1dc;
  20472. overflow:hidden;
  20473. box-sizing:border-box;
  20474. }
  20475. .file {
  20476. display: flex;
  20477. flex-direction: column;
  20478. align-items: center;
  20479. justify-content: center;
  20480. cursor: pointer;
  20481. width: 200px;
  20482. }
  20483. .file div {
  20484. margin-top: 10px;
  20485. width: 150px;
  20486. text-align: center;
  20487. overflow: hidden;
  20488. white-space: nowrap;
  20489. text-overflow: ellipsis;
  20490. }
  20491. .media {
  20492. display: flex;
  20493. flex-direction: column;
  20494. align-items: center;
  20495. justify-content: center;
  20496. margin: 0 20px 20px 0;
  20497. cursor: pointer;
  20498. margin: 12px 0 5px 15px;
  20499. overflow: hidden;
  20500. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  20501. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  20502. box-sizing: border-box;
  20503. }
  20504. .media img {
  20505. height: 90px;
  20506. width: 160px;
  20507. object-fit: cover;
  20508. }
  20509. .media .title {
  20510. padding: 5px;
  20511. text-align: left;
  20512. width: 100%;
  20513. box-sizing: border-box;
  20514. }
  20515. .media .btn {
  20516. width: 100%;
  20517. height: 35px;
  20518. line-height: 35px;
  20519. color: #fff;
  20520. background: #606060;
  20521. text-align: center;
  20522. overflow: hidden;
  20523. white-space: nowrap;
  20524. text-overflow: ellipsis;
  20525. }
  20526. .detail_content_top {
  20527. width: 100%;
  20528. padding: 25px 0 25px 0;
  20529. }
  20530. .detail_title {
  20531. text-align: center;
  20532. font-size: 24px;
  20533. }
  20534. .detail_time {
  20535. font-size: 13px;
  20536. padding: 15px 0 0 40px;
  20537. }
  20538. .detail_content {
  20539. line-height: 2pc;
  20540. width: 90%;
  20541. margin: 0 auto;
  20542. padding-top: 30px;
  20543. text-indent: 30px;
  20544. overflow: auto;
  20545. height: 200px;
  20546. }
  20547. .score_box >>> .el-rate {
  20548. margin-left: 10px;
  20549. }
  20550. .dialog_change >>> .el-dialog {
  20551. border-radius: 5px;
  20552. }
  20553. .dialog_change >>> .el-dialog__header {
  20554. background: #f2f2f2;
  20555. text-align: center;
  20556. }
  20557. .dialog_change >>> .el-dialog__title {
  20558. line-height: 5px;
  20559. }
  20560. .dialog_change >>> .el-dialog__body {
  20561. background: #fff;
  20562. padding: 10px 20px;
  20563. }
  20564. .score_box {
  20565. display: flex;
  20566. align-items: center;
  20567. margin-bottom: 18px;
  20568. margin-top: 20px;
  20569. }
  20570. .up_photo {
  20571. width: 120px;
  20572. cursor: pointer;
  20573. margin-top: 10px;
  20574. }
  20575. .up_photo2 {
  20576. width: 180px;
  20577. box-sizing: border-box;
  20578. min-width: 180px;
  20579. height: 180px;
  20580. max-height: 180px;
  20581. min-height: 180px;
  20582. cursor: pointer;
  20583. display: flex;
  20584. flex-direction: column;
  20585. align-items: center;
  20586. justify-content: center;
  20587. background: rgb(242, 246, 255);
  20588. /* padding: 25px; */
  20589. margin-bottom: 10px;
  20590. }
  20591. .up_photo2 img {
  20592. width: 50%;
  20593. height: auto;
  20594. }
  20595. .up_photo2 span {
  20596. color: #898989;
  20597. }
  20598. .plworkBox {
  20599. display: flex;
  20600. align-items: center;
  20601. margin-top: 10px;
  20602. flex-wrap: wrap;
  20603. }
  20604. .upload_send {
  20605. margin: 30px auto 30px;
  20606. width: 60%;
  20607. background: #3681fc;
  20608. text-align: center;
  20609. height: 35px;
  20610. line-height: 35px;
  20611. color: #fff;
  20612. border-radius: 5px;
  20613. cursor: pointer;
  20614. }
  20615. .marginT {
  20616. margin-top: 20px;
  20617. }
  20618. .cd_content_steps {
  20619. display: flex;
  20620. width: 90%;
  20621. justify-content: space-around;
  20622. border-top: 1px solid #eeeeee;
  20623. }
  20624. .cd_steps_box {
  20625. display: flex;
  20626. justify-content: center;
  20627. align-items: center;
  20628. flex-direction: column;
  20629. cursor: pointer;
  20630. }
  20631. .first {
  20632. display: flex;
  20633. align-items: center;
  20634. margin: 15px 0 20px 0;
  20635. font-size: 20px;
  20636. }
  20637. .first > div:nth-child(2) {
  20638. font-size: 16px !important;
  20639. padding-left: 10px;
  20640. line-height: 26px;
  20641. box-sizing: border-box;
  20642. }
  20643. .blue_box_one {
  20644. text-align: center;
  20645. color: #fff;
  20646. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  20647. border-radius: 7px;
  20648. margin: 10px;
  20649. cursor: pointer;
  20650. width: 95%;
  20651. height: 45px;
  20652. display: flex;
  20653. flex-direction: row;
  20654. justify-content: flex-start;
  20655. align-items: center;
  20656. }
  20657. .blue_box_one > div:nth-child(1) {
  20658. line-height: 30px;
  20659. margin: 0 5px 0 10px;
  20660. width: 30%;
  20661. min-width: 70px;
  20662. border-radius: 4px;
  20663. }
  20664. .blue_box_one > div:nth-child(2) {
  20665. white-space: nowrap;
  20666. text-overflow: ellipsis;
  20667. overflow: hidden;
  20668. word-break: break-all;
  20669. width: 70%;
  20670. text-align: left;
  20671. margin-right: 10px;
  20672. max-width: calc(100% - 85px);
  20673. }
  20674. .blue_box_one > div:nth-child(2):hover {
  20675. overflow: hidden;
  20676. text-overflow: ellipsis;
  20677. white-space: nowrap;
  20678. cursor: pointer;
  20679. }
  20680. .upFile {
  20681. margin: 0 auto;
  20682. width: 120px;
  20683. background: #3681fc;
  20684. color: #fff;
  20685. height: 30px;
  20686. text-align: center;
  20687. line-height: 30px;
  20688. border-radius: 5px;
  20689. font-size: 14px;
  20690. cursor: pointer;
  20691. }
  20692. .courseTitle {
  20693. width: 85%;
  20694. margin: 10px auto 26px auto;
  20695. display: flex;
  20696. flex-direction: row;
  20697. align-items: center;
  20698. justify-content: space-between;
  20699. text-align: center;
  20700. }
  20701. .courseTitle .ctitle {
  20702. font-size: 20px;
  20703. font-weight: bold;
  20704. color: #0e1e33;
  20705. white-space: nowrap;
  20706. overflow: hidden;
  20707. text-overflow: ellipsis;
  20708. }
  20709. .inviteBox {
  20710. font-size: 14px;
  20711. /* margin-top: 5px; */
  20712. color: #00000099;
  20713. text-align: center;
  20714. }
  20715. .courseTitle >>> .el-tooltip {
  20716. width: 100%;
  20717. white-space: nowrap;
  20718. overflow: hidden;
  20719. text-overflow: ellipsis;
  20720. word-break: break-word;
  20721. }
  20722. .ml {
  20723. margin-left: 20px;
  20724. color: #5b7dba;
  20725. border-left: 3px solid #5b7dba;
  20726. padding-left: 5px;
  20727. font-weight: bold;
  20728. }
  20729. .return {
  20730. width: 2rem;
  20731. height: 2rem;
  20732. cursor: pointer;
  20733. }
  20734. .return > img {
  20735. width: 100%;
  20736. height: 100%;
  20737. }
  20738. .returnBtn {
  20739. width: 86px;
  20740. height: 36px;
  20741. background: #3681fc;
  20742. border-radius: 4px;
  20743. color: #fff;
  20744. text-align: center;
  20745. line-height: 36px;
  20746. margin-right: 20px;
  20747. cursor: pointer;
  20748. font-size: 14px;
  20749. font-weight: 400;
  20750. display: flex;
  20751. flex-direction: row;
  20752. flex-wrap: nowrap;
  20753. align-items: center;
  20754. justify-content: center;
  20755. }
  20756. .reBtnIcon,
  20757. .commentIcon,
  20758. .vedioIcon,
  20759. .vedioIcon1 {
  20760. /* width: 36px; */
  20761. height: 36px;
  20762. border-radius: 4px;
  20763. position: relative;
  20764. /* background: #e0eafb; */
  20765. background: #0061ff;
  20766. cursor: pointer;
  20767. margin-right: 12px;
  20768. display: flex;
  20769. align-items: center;
  20770. padding: 0 10px;
  20771. box-sizing: border-box;
  20772. font-size: 14px;
  20773. color: #fff;
  20774. }
  20775. .reBtnIcon::before,
  20776. .commentIcon::before,
  20777. .vedioIcon::before,
  20778. .vedioIcon1::before {
  20779. content: "";
  20780. display: block;
  20781. background-size: 100% 100%;
  20782. background-repeat: no-repeat;
  20783. width: 20px;
  20784. height: 20px;
  20785. margin-right: 5px;
  20786. /* position: absolute; */
  20787. /* top: 8px;
  20788. left: 8px; */
  20789. }
  20790. .vedioIcon1 {
  20791. background: #f63564;
  20792. }
  20793. .reBtnIcon::before {
  20794. background-image: url("../../assets/icon/newIcons/refresh.png");
  20795. }
  20796. .commentIcon::before {
  20797. background-image: url("../../assets/icon/newIcons/comment.png");
  20798. }
  20799. .vedioIcon::before {
  20800. background-image: url("../../assets/icon/newIcons/transcribe.png");
  20801. }
  20802. .vedioIcon1::before {
  20803. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  20804. background-image: url("../../assets/icon/newIcons/transcribe.png");
  20805. }
  20806. .tool {
  20807. display: flex;
  20808. flex-direction: column;
  20809. flex-wrap: nowrap;
  20810. width: 13%;
  20811. margin: 0 30px;
  20812. align-items: center;
  20813. position: relative;
  20814. padding: 10px 25px;
  20815. cursor: pointer;
  20816. }
  20817. .whiteBIcon {
  20818. width: 150px;
  20819. }
  20820. .whiteBIcon > img {
  20821. width: 100%;
  20822. height: 100%;
  20823. }
  20824. .mask {
  20825. background-color: rgba(0, 0, 0, 0);
  20826. position: fixed;
  20827. top: 0;
  20828. left: 0;
  20829. width: 100%;
  20830. height: 100%;
  20831. z-index: 20000;
  20832. display: flex;
  20833. align-items: center;
  20834. justify-content: center;
  20835. }
  20836. .progressBox {
  20837. width: 500px;
  20838. height: 180px;
  20839. background: #fff;
  20840. border-radius: 10px;
  20841. box-shadow: 0 0 6px 1px #bfbfbf;
  20842. display: flex;
  20843. align-items: center;
  20844. justify-content: center;
  20845. flex-direction: column;
  20846. position: relative;
  20847. color: #6c6c6c;
  20848. }
  20849. .progressBox >>> .el-progress-bar__outer {
  20850. background-color: #d1dfff !important;
  20851. }
  20852. .progressBox .lbox {
  20853. height: 50px;
  20854. font-size: 19px;
  20855. display: flex;
  20856. align-items: center;
  20857. color: #747474;
  20858. }
  20859. .progressBox .lbox img {
  20860. width: 40px;
  20861. margin-right: 20px;
  20862. }
  20863. .closeCss {
  20864. position: absolute;
  20865. top: 8px;
  20866. right: 8px;
  20867. cursor: pointer;
  20868. width: 20px;
  20869. height: 20px;
  20870. }
  20871. .closeCss > img {
  20872. width: 100%;
  20873. height: 100%;
  20874. }
  20875. .uploadVedio {
  20876. display: flex;
  20877. flex-direction: column;
  20878. flex-wrap: nowrap;
  20879. justify-content: center;
  20880. align-items: center;
  20881. margin: 0 15px 10px 0;
  20882. }
  20883. .uploadVedio > img {
  20884. width: 30px;
  20885. height: 30px;
  20886. }
  20887. .uploadVedio > span {
  20888. white-space: nowrap;
  20889. overflow: hidden;
  20890. text-overflow: ellipsis;
  20891. width: 75px;
  20892. margin-top: 7px;
  20893. }
  20894. .picName {
  20895. white-space: nowrap;
  20896. overflow: hidden;
  20897. text-overflow: ellipsis;
  20898. width: 75px;
  20899. margin-top: 7px;
  20900. }
  20901. .new_top {
  20902. display: flex;
  20903. background: #fff;
  20904. flex-direction: row;
  20905. justify-content: flex-start;
  20906. align-items: center;
  20907. height: 60px;
  20908. position: fixed;
  20909. top: 20px;
  20910. left: 22%;
  20911. width: 77%;
  20912. z-index: 999;
  20913. border-radius: 12px 12px 0 0;
  20914. border-bottom: 1px solid #cad1dc;
  20915. padding: 10px 0;
  20916. }
  20917. .new_topFixed {
  20918. width: 100%;
  20919. height: 40px;
  20920. position: fixed;
  20921. top: 0px;
  20922. display: block;
  20923. background: #f2f2f2;
  20924. z-index: 998;
  20925. }
  20926. .before {
  20927. position: absolute;
  20928. background: #c3dad4;
  20929. width: 6px;
  20930. height: 100%;
  20931. }
  20932. .courseIndex {
  20933. display: flex;
  20934. flex-direction: row;
  20935. align-items: center;
  20936. width: calc(100% - 745px);
  20937. }
  20938. .courseIndex > div:nth-child(1) {
  20939. margin: 0 0 0 10px;
  20940. font-size: 20px;
  20941. min-width: 100px;
  20942. font-weight: bold;
  20943. border-left: 4px solid #3363b9;
  20944. height: 32px;
  20945. text-align: center;
  20946. line-height: 35px;
  20947. }
  20948. .courseIndex > div:nth-child(2) {
  20949. font-size: 20px;
  20950. /* width: 300px; */
  20951. max-width: calc(100% - 105px);
  20952. white-space: nowrap;
  20953. overflow: hidden;
  20954. text-overflow: ellipsis;
  20955. }
  20956. .courseIndex > div:nth-child(3) {
  20957. border-bottom: 1px solid #d7d7d7;
  20958. padding-bottom: 5px;
  20959. background: #3681fc;
  20960. width: 55px;
  20961. min-width: 55px;
  20962. border-radius: 5px;
  20963. color: #fff;
  20964. text-align: center;
  20965. height: 20px;
  20966. line-height: 26px;
  20967. font-size: 14px;
  20968. margin: 0 0 0 10px;
  20969. }
  20970. .course_text {
  20971. padding: 20px 0 0 15px;
  20972. text-indent: 30px;
  20973. width: 80%;
  20974. min-height: 20px;
  20975. }
  20976. .vedioList {
  20977. background: #f2f2f2;
  20978. border: 1px solid #ececec;
  20979. /* width: 38.8%; */
  20980. /* width: 300px; */
  20981. width: 100%;
  20982. height: 445px;
  20983. border-radius: 10px;
  20984. overflow: hidden;
  20985. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  20986. }
  20987. .vedioNav {
  20988. margin: 10px 0 0 15px;
  20989. border-bottom: 1px solid #d7d7d7;
  20990. padding-bottom: 5px;
  20991. background: #3681fc;
  20992. width: 55px;
  20993. min-width: 55px;
  20994. border-radius: 5px;
  20995. color: #fff;
  20996. text-align: center;
  20997. height: 20px;
  20998. line-height: 26px;
  20999. font-size: 14px;
  21000. }
  21001. .queTop {
  21002. display: flex;
  21003. padding: 20px 0 20px 30px;
  21004. width: 100%;
  21005. flex-direction: row;
  21006. justify-content: flex-start;
  21007. align-items: center;
  21008. box-sizing: border-box;
  21009. }
  21010. .queTopTitle {
  21011. display: flex;
  21012. flex-direction: row;
  21013. flex-wrap: nowrap;
  21014. align-items: center;
  21015. font-weight: bold;
  21016. font-size: 20px;
  21017. color: rgb(14, 30, 51);
  21018. }
  21019. .queTopTitle::before {
  21020. content: "";
  21021. width: 2px;
  21022. height: 22px;
  21023. background: #3681fc;
  21024. border-radius: 3px;
  21025. display: block;
  21026. margin: 2px 6px 0 0;
  21027. }
  21028. .queTopRight {
  21029. display: flex;
  21030. flex-direction: row;
  21031. flex-wrap: nowrap;
  21032. align-items: center;
  21033. }
  21034. .queTopClose {
  21035. margin-right: 20px;
  21036. cursor: pointer;
  21037. position: relative;
  21038. display: flex;
  21039. }
  21040. .closeImg,
  21041. .openImg {
  21042. width: 25px;
  21043. height: 25px;
  21044. position: absolute;
  21045. left: -20px;
  21046. top: -1px;
  21047. }
  21048. .closeImg > img,
  21049. .openImg > img {
  21050. width: 100%;
  21051. height: 100%;
  21052. }
  21053. .question {
  21054. width: 40px;
  21055. margin-right: 10px;
  21056. margin-top: 7px;
  21057. }
  21058. .queTitle {
  21059. margin-left: 5px;
  21060. font-size: 25px;
  21061. display: flex;
  21062. align-items: center;
  21063. }
  21064. .addEditor {
  21065. width: 100px;
  21066. height: 30px;
  21067. background: #42cda6;
  21068. color: #fff;
  21069. border-radius: 5px;
  21070. text-align: center;
  21071. line-height: 30px;
  21072. box-shadow: 1px 3px 6px 1px #bfbfbf;
  21073. cursor: pointer;
  21074. }
  21075. /* .vedioName {
  21076. cursor: pointer;
  21077. margin: 0px 0px 10px 5px;
  21078. white-space: nowrap;
  21079. overflow: hidden;
  21080. text-overflow: ellipsis;
  21081. width: 100%;
  21082. } */
  21083. .vedioTime {
  21084. width: 35px;
  21085. position: absolute;
  21086. color: #fff;
  21087. bottom: 0px;
  21088. right: 0px;
  21089. text-align: center;
  21090. background: #46411f;
  21091. height: 20px;
  21092. font-size: 14px;
  21093. line-height: 20px;
  21094. }
  21095. .homework {
  21096. width: 200px;
  21097. display: flex;
  21098. flex-direction: column;
  21099. flex-wrap: nowrap;
  21100. align-items: center;
  21101. cursor: pointer;
  21102. }
  21103. .homebox {
  21104. display: flex;
  21105. flex-wrap: wrap;
  21106. flex-direction: row;
  21107. justify-content: flex-start;
  21108. align-items: center;
  21109. padding: 15px 0;
  21110. }
  21111. .isChooseActive {
  21112. color: #3681fc !important;
  21113. font-weight: bold !important;
  21114. }
  21115. .chooseWho {
  21116. display: flex;
  21117. width: 100%;
  21118. flex-direction: row;
  21119. flex-wrap: nowrap;
  21120. justify-content: flex-start;
  21121. padding-bottom: 10px;
  21122. }
  21123. .chooseWho > div {
  21124. cursor: pointer;
  21125. padding-bottom: 10px;
  21126. margin: 0 30px 0 0;
  21127. font-weight: 400;
  21128. color: #0e1e33;
  21129. }
  21130. .addPoint > div > img {
  21131. cursor: pointer;
  21132. width: 85px;
  21133. border-radius: 15px;
  21134. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  21135. }
  21136. .addPoint > div {
  21137. display: flex;
  21138. flex-direction: column;
  21139. flex-wrap: nowrap;
  21140. align-items: center;
  21141. }
  21142. .isBorder > div {
  21143. margin: 0 0 10px 0;
  21144. align-items: flex-start !important;
  21145. }
  21146. .noiframeBox {
  21147. display: flex;
  21148. flex-wrap: wrap;
  21149. }
  21150. .iframeBox iframe {
  21151. width: 100%;
  21152. height: 800px;
  21153. border: none;
  21154. margin-bottom: 20px;
  21155. border: 1px solid #ccc;
  21156. }
  21157. .upload_toolBtn {
  21158. background: #3681fc;
  21159. color: #fff;
  21160. width: 110px;
  21161. text-align: center;
  21162. height: 35px;
  21163. line-height: 35px;
  21164. font-size: 14px;
  21165. border-radius: 5px;
  21166. cursor: pointer;
  21167. position: absolute;
  21168. right: 10px;
  21169. bottom: 0;
  21170. }
  21171. .binfo_input,
  21172. .pj {
  21173. font: inherit;
  21174. color: currentColor;
  21175. width: 100%;
  21176. margin: 0;
  21177. padding: 15px 14px;
  21178. display: block;
  21179. min-width: 0;
  21180. outline: none;
  21181. box-sizing: content-box;
  21182. background: none;
  21183. -webkit-tap-highlight-color: transparent;
  21184. border: 1px solid rgba(0, 0, 0, 0.23);
  21185. border-radius: 4px;
  21186. box-sizing: border-box;
  21187. resize: none;
  21188. }
  21189. .binfo_input:focus-visible {
  21190. border: 1px solid rgba(61, 103, 188);
  21191. }
  21192. .dialog_diy >>> .el-dialog__header,
  21193. .dialog_diy1 >>> .el-dialog__header {
  21194. background: #454545 !important;
  21195. padding: 15px 20px;
  21196. }
  21197. .dialog_diy >>> .el-dialog__title,
  21198. .dialog_diy1 >>> .el-dialog__title {
  21199. color: #fff;
  21200. }
  21201. .dialog_diy >>> .el-dialog__headerbtn,
  21202. .dialog_diy1 >>> .el-dialog__headerbtn {
  21203. top: 19px;
  21204. }
  21205. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21206. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21207. color: #fff;
  21208. }
  21209. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21210. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21211. color: #fff;
  21212. }
  21213. .dialog_diy1 >>> .el-dialog__body {
  21214. padding: 0;
  21215. }
  21216. .dialog_diy >>> .el-dialog__body,
  21217. .dialog_diy >>> .el-dialog__footer,
  21218. .dialog_diy1 >>> .el-dialog__footer {
  21219. background: #fafafa;
  21220. }
  21221. .a_addBox {
  21222. padding: 0 0 0 15px;
  21223. }
  21224. .a_add_box {
  21225. padding: 10px;
  21226. background: #fff;
  21227. margin-bottom: 10px;
  21228. border-radius: 5px;
  21229. box-shadow: 0 0 5px 0 #d5d5d5;
  21230. }
  21231. .a_add_head {
  21232. display: flex;
  21233. align-items: flex-start;
  21234. /* justify-content: space-between; */
  21235. flex-direction: column;
  21236. /* flex-direction: row; */
  21237. margin: 10px 0 20px 0;
  21238. font-size: 18px;
  21239. width: 100%;
  21240. }
  21241. .askIndex {
  21242. background: #3681fc;
  21243. border-radius: 50%;
  21244. color: #fff;
  21245. width: 25px;
  21246. height: 25px;
  21247. min-width: 25px;
  21248. min-height: 25px;
  21249. text-align: center;
  21250. line-height: 25px;
  21251. margin-right: 5px;
  21252. }
  21253. .a_add_head .a_add_head_input {
  21254. width: 300px;
  21255. }
  21256. .a_add_head .a_add_head_div {
  21257. display: flex;
  21258. align-items: center;
  21259. justify-content: space-between;
  21260. }
  21261. .a_add_body {
  21262. display: flex;
  21263. align-items: center;
  21264. }
  21265. .a_add_input {
  21266. display: flex;
  21267. align-items: center;
  21268. flex-wrap: wrap;
  21269. width: 100%;
  21270. }
  21271. .a_add_input >>> .el-radio-group,
  21272. .a_add_input >>> .el-checkbox-group {
  21273. width: 100%;
  21274. }
  21275. .a_add_input >>> .el-radio,
  21276. .a_add_input >>> .el-checkbox {
  21277. display: flex;
  21278. flex-direction: row;
  21279. flex-wrap: nowrap;
  21280. align-items: center;
  21281. padding: 15px 0;
  21282. }
  21283. .a_add_input >>> .el-radio:not(:last-child),
  21284. .a_add_input >>> .el-checkbox:not(:last-child) {
  21285. width: 100%;
  21286. border-bottom: 1px solid #efefef;
  21287. }
  21288. .redioStyle >>> .el-radio__label {
  21289. font-size: 18px;
  21290. }
  21291. .redioStyle >>> .el-radio__label > span,
  21292. .redioStyle >>> .el-checkbox__label > span {
  21293. word-break: break-all;
  21294. white-space: normal;
  21295. }
  21296. .redioStyle >>> .el-checkbox__label {
  21297. font-size: 18px;
  21298. }
  21299. .toolHeng2 {
  21300. width: 100%;
  21301. padding-left: 37px;
  21302. box-sizing: border-box;
  21303. }
  21304. .workNav {
  21305. font-size: 20px;
  21306. font-weight: bold;
  21307. color: #0e1e33;
  21308. display: flex;
  21309. flex-direction: row;
  21310. flex-wrap: nowrap;
  21311. align-items: center;
  21312. padding: 15px 0 15px 0;
  21313. }
  21314. .workNav::before {
  21315. content: "";
  21316. width: 2px;
  21317. height: 22px;
  21318. background: #3681fc;
  21319. border-radius: 3px;
  21320. display: block;
  21321. margin: 2px 6px 0 0;
  21322. }
  21323. .toolHeng {
  21324. display: flex;
  21325. flex-direction: row;
  21326. flex-wrap: wrap;
  21327. justify-content: flex-start;
  21328. align-items: center;
  21329. width: 100%;
  21330. }
  21331. .toolHeng > div {
  21332. padding-left: 20px;
  21333. }
  21334. .isWidth {
  21335. width: 20%;
  21336. }
  21337. .textTitle {
  21338. display: flex;
  21339. flex-direction: row;
  21340. flex-wrap: nowrap;
  21341. align-items: center;
  21342. width: 95%;
  21343. }
  21344. .textTitle >>> .el-form-item__label {
  21345. font-size: 22px;
  21346. color: #918f8f;
  21347. width: 100px;
  21348. }
  21349. .textTitle >>> .el-form-item__content {
  21350. width: calc(100% - 100px);
  21351. }
  21352. .textCss >>> .el-dialog {
  21353. width: 800px !important;
  21354. height: 400px;
  21355. background: #fafafa;
  21356. }
  21357. .textCss >>> .el-dialog__body {
  21358. margin: 55px 8% 0 8%;
  21359. padding: 0 !important;
  21360. }
  21361. .textCss >>> .el-dialog__footer {
  21362. padding-top: 38px;
  21363. }
  21364. .toolsCss >>> .el-dialog__body {
  21365. padding: 20px;
  21366. }
  21367. .lineCss >>> .el-dialog__body {
  21368. display: flex;
  21369. flex-direction: row;
  21370. align-items: center;
  21371. justify-content: center;
  21372. }
  21373. .newNav {
  21374. display: flex;
  21375. flex-direction: row;
  21376. align-items: baseline;
  21377. justify-content: flex-start;
  21378. }
  21379. .navListItem {
  21380. width: calc(100% - 20px);
  21381. height: 50px;
  21382. margin: 0px auto 10px;
  21383. display: flex;
  21384. flex-direction: row;
  21385. flex-wrap: nowrap;
  21386. align-items: center;
  21387. justify-content: space-between;
  21388. background: #f0f4fa;
  21389. border-radius: 6px 6px 6px 6px;
  21390. }
  21391. .navText {
  21392. cursor: pointer;
  21393. white-space: nowrap;
  21394. overflow: hidden;
  21395. text-overflow: ellipsis;
  21396. width: 220px;
  21397. padding: 0 10px;
  21398. font-weight: 400;
  21399. color: #0e1e33;
  21400. }
  21401. .downIcon {
  21402. width: 20px;
  21403. min-width: 20px;
  21404. height: 20px;
  21405. margin-right: 15px;
  21406. cursor: pointer;
  21407. }
  21408. .downIcon > img {
  21409. width: 100%;
  21410. height: 100%;
  21411. }
  21412. .noVedio {
  21413. display: flex;
  21414. flex-direction: row;
  21415. justify-content: center;
  21416. align-content: center;
  21417. }
  21418. .noNavText {
  21419. cursor: pointer;
  21420. margin: 0px 0px 10px 5px;
  21421. width: 112px;
  21422. }
  21423. .listNoVedio {
  21424. margin: 0 0 0 30px;
  21425. width: 97%;
  21426. }
  21427. .video-player >>> .video-js {
  21428. height: 100%;
  21429. }
  21430. .hangVedioList {
  21431. width: 90% !important;
  21432. height: 150px !important;
  21433. margin: 20px 0 0 30px;
  21434. }
  21435. .hangVedio {
  21436. width: 100%;
  21437. height: 170px !important;
  21438. align-items: flex-start !important;
  21439. }
  21440. .hangHand {
  21441. height: 150px !important;
  21442. }
  21443. .twoChild {
  21444. width: 95%;
  21445. margin: 10px;
  21446. border-radius: 5px;
  21447. background: #f2f2f2;
  21448. display: flex;
  21449. flex-direction: column;
  21450. flex-wrap: nowrap;
  21451. justify-content: flex-start;
  21452. align-items: flex-start;
  21453. transition: all 0.5s;
  21454. overflow: hidden;
  21455. height: 0;
  21456. background: #e7f3ff;
  21457. }
  21458. .twoChild > div:nth-child(1) {
  21459. margin-top: 5px;
  21460. }
  21461. .navChild {
  21462. width: 100%;
  21463. cursor: pointer;
  21464. margin-bottom: 10px;
  21465. position: relative;
  21466. }
  21467. .navChild img {
  21468. position: absolute;
  21469. right: 11px;
  21470. width: 15px;
  21471. top: 50%;
  21472. transform: translateY(-50%);
  21473. }
  21474. .navActive,
  21475. .toolActive {
  21476. height: auto !important;
  21477. overflow: auto !important;
  21478. /* // padding-bottom: 16px; */
  21479. }
  21480. .toolActive {
  21481. padding: 0;
  21482. }
  21483. .navTask {
  21484. display: flex;
  21485. flex-direction: row;
  21486. flex-wrap: nowrap;
  21487. align-items: center;
  21488. align-content: flex-start;
  21489. height: 40px;
  21490. justify-content: flex-start;
  21491. padding: 0 10px;
  21492. width: 100%;
  21493. box-sizing: border-box;
  21494. }
  21495. .navTaskname {
  21496. white-space: nowrap;
  21497. text-overflow: ellipsis;
  21498. overflow: hidden;
  21499. word-break: break-all;
  21500. padding-left: 5px;
  21501. }
  21502. .openTaskActive {
  21503. /* background-color: #e0eafb !important;
  21504. color: #0061ff; */
  21505. color:#fff;
  21506. background: rgb(55, 129, 252) !important;
  21507. }
  21508. .iframeName {
  21509. margin: 5px 0;
  21510. border-left: 4px solid #41c4a4;
  21511. padding-left: 4px;
  21512. }
  21513. .toolTitle {
  21514. margin: 0px 0px 20px;
  21515. font-size: 20px;
  21516. font-weight: 500;
  21517. border-left: 4px solid #41c4a4;
  21518. padding-left: 4px;
  21519. }
  21520. .cru_selectBox {
  21521. overflow: auto;
  21522. width: 95%;
  21523. margin: 17px auto 0;
  21524. height: calc(100% - 40px - 21px - 20px - 17px);
  21525. background: #fff;
  21526. border-radius: 8px;
  21527. }
  21528. .cru_selectBox::-webkit-scrollbar,
  21529. .study_top::-webkit-scrollbar,
  21530. .textContent::-webkit-scrollbar {
  21531. /*滚动条整体样式*/
  21532. width: 6px;
  21533. /*高宽分别对应横竖滚动条的尺寸*/
  21534. height: 6px;
  21535. }
  21536. /*定义滚动条轨道 内阴影+圆角*/
  21537. .cru_selectBox::-webkit-scrollbar-track,
  21538. .study_top::-webkit-scrollbar-track,
  21539. .textContent::-webkit-scrollbar {
  21540. border-radius: 10px;
  21541. background-color: #b8bdc9;
  21542. }
  21543. /*定义滑块 内阴影+圆角*/
  21544. .cru_selectBox::-webkit-scrollbar-thumb,
  21545. .study_top::-webkit-scrollbar-thumb,
  21546. .textContent::-webkit-scrollbar-thumb {
  21547. border-radius: 10px;
  21548. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  21549. background-color: #2c5ab3;
  21550. }
  21551. .vedioBox {
  21552. border-radius: 0 0 20px 20px;
  21553. background: #fff;
  21554. overflow: auto;
  21555. }
  21556. .taskBox {
  21557. width: 98%;
  21558. background: #f0f4fa;
  21559. margin: 10px auto;
  21560. padding: 0 10px;
  21561. border-radius: 4px;
  21562. box-sizing: border-box;
  21563. }
  21564. .vedioTaskBox {
  21565. width: 100%;
  21566. display: flex;
  21567. flex-direction: row;
  21568. flex-wrap: nowrap;
  21569. align-items: flex-start;
  21570. position: relative;
  21571. }
  21572. .toolBox {
  21573. margin: 15px 0 0 25px;
  21574. display: flex;
  21575. position: relative;
  21576. padding: 18px 20px;
  21577. border-top-left-radius: 5px;
  21578. border-top-right-radius: 5px;
  21579. width: 90%;
  21580. }
  21581. .btnAll {
  21582. position: absolute;
  21583. right: 0;
  21584. display: flex;
  21585. flex-direction: row;
  21586. flex-wrap: nowrap;
  21587. align-items: center;
  21588. }
  21589. .btnLeft,
  21590. .btnRight {
  21591. display: flex;
  21592. flex-direction: row;
  21593. flex-wrap: nowrap;
  21594. align-items: center;
  21595. padding: 5px 0;
  21596. }
  21597. .btnLeft {
  21598. border-right: 1px solid #cad1dc;
  21599. }
  21600. .btnLeft > .custom-tooltip {
  21601. background: #3681fc;
  21602. color: #fff;
  21603. }
  21604. .last:hover {
  21605. background: #3383fa !important;
  21606. color: #fff;
  21607. border: 1px solid #3383fa !important;
  21608. }
  21609. .last,
  21610. .returnBtn1 {
  21611. width: 90px;
  21612. height: 36px;
  21613. background: #ffffff;
  21614. border-radius: 4px;
  21615. border: 1px solid #0061ff;
  21616. color: #0061ff;
  21617. cursor: pointer;
  21618. display: flex;
  21619. flex-direction: row;
  21620. flex-wrap: nowrap;
  21621. align-items: center;
  21622. justify-content: center;
  21623. margin-left: 12px;
  21624. }
  21625. .returnBtn1 {
  21626. background: #f0f4fa;
  21627. border-radius: 4px;
  21628. border: 1px solid #cad1dc;
  21629. margin: 0 12px;
  21630. }
  21631. .lastImg {
  21632. min-width: 15px;
  21633. width: 15px;
  21634. height: 15px;
  21635. display: flex;
  21636. }
  21637. .lastText {
  21638. padding: 0 5px 0 5px;
  21639. box-sizing: border-box;
  21640. font-size: 14px;
  21641. }
  21642. .lastImg > img {
  21643. width: 100%;
  21644. height: 100%;
  21645. }
  21646. /* .vedioTimeBox {
  21647. display: flex;
  21648. flex-direction: row;
  21649. align-items: center;
  21650. flex-wrap: nowrap;
  21651. position: relative;
  21652. } */
  21653. .navBox {
  21654. background: #fff;
  21655. height: calc(100% - 40px);
  21656. overflow-y: auto;
  21657. overflow-x: hidden;
  21658. }
  21659. .worksBox {
  21660. margin: 0 0 10px 25px;
  21661. border-bottom: 1px solid #eeeeee;
  21662. padding: 18px 20px;
  21663. border-radius: 4px;
  21664. width: 90%;
  21665. }
  21666. .worksBTitle {
  21667. font-size: 20px;
  21668. padding-bottom: 15px;
  21669. border-bottom: 1px solid #eeeeee;
  21670. display: flex;
  21671. align-items: center;
  21672. }
  21673. .greenBox {
  21674. width: 5px;
  21675. height: 30px;
  21676. background: #63b6fa;
  21677. margin-right: 5px;
  21678. }
  21679. .worksDetailBox {
  21680. display: flex;
  21681. width: 100%;
  21682. flex-direction: row;
  21683. flex-wrap: wrap;
  21684. align-items: flex-end;
  21685. justify-content: flex-start;
  21686. padding: 15px 5px;
  21687. box-sizing: border-box;
  21688. }
  21689. .works {
  21690. display: flex;
  21691. flex-direction: column;
  21692. flex-wrap: nowrap;
  21693. align-items: flex-start;
  21694. justify-content: flex-start;
  21695. align-content: center;
  21696. max-width: 240px;
  21697. width: calc(100% / 3 - 10px);
  21698. height: auto;
  21699. margin-right: 10px;
  21700. margin-bottom: 10px;
  21701. overflow: hidden;
  21702. height: 140px;
  21703. box-shadow: 0 0 6px 1px #dfdada;
  21704. border-radius: 15px;
  21705. }
  21706. .workImg {
  21707. width: 100%;
  21708. /* height: calc(100% - 40px); */
  21709. height: 105px;
  21710. position: relative;
  21711. }
  21712. .workImg > img {
  21713. width: 100%;
  21714. height: 100%;
  21715. object-fit: contain;
  21716. cursor: pointer;
  21717. }
  21718. .worksName {
  21719. height: 40px;
  21720. line-height: 40px;
  21721. display: flex;
  21722. width: 100%;
  21723. flex-direction: row;
  21724. flex-wrap: nowrap;
  21725. justify-content: space-between;
  21726. align-items: center;
  21727. margin: 0 0 0 10px;
  21728. }
  21729. .worksName > div:nth-child(1) {
  21730. width: 110px;
  21731. white-space: nowrap;
  21732. overflow: hidden;
  21733. text-overflow: ellipsis;
  21734. }
  21735. .worksName > div:nth-child(2) {
  21736. color: #b7b4b5;
  21737. }
  21738. .noWorksS {
  21739. padding: 15px 0;
  21740. display: flex;
  21741. flex-direction: row;
  21742. flex-wrap: wrap;
  21743. align-items: center;
  21744. justify-content: flex-start;
  21745. }
  21746. .noWorksName,
  21747. .isWorksName,
  21748. .isWorksName2 {
  21749. background: #ddebf8;
  21750. color: #000;
  21751. width: 90px;
  21752. height: 25px;
  21753. text-align: center;
  21754. line-height: 25px;
  21755. border-radius: 4px;
  21756. margin: 10px 15px 10px 0;
  21757. white-space: nowrap;
  21758. overflow: hidden;
  21759. padding: 5px;
  21760. text-overflow: ellipsis;
  21761. cursor: pointer;
  21762. border: 1px solid #ddebf8;
  21763. }
  21764. .noWorksName {
  21765. background: #fff;
  21766. color: #0061ff;
  21767. border: 1px solid #0061ff;
  21768. }
  21769. .noWorksName > span{
  21770. max-width: 100%;
  21771. display: block;
  21772. overflow: hidden;
  21773. text-overflow: ellipsis;
  21774. white-space: nowrap;
  21775. }
  21776. .isWorksName2 {
  21777. width: 100px;
  21778. height: 40px;
  21779. line-height: 40px;
  21780. position: relative;
  21781. background: #dae6f9;
  21782. }
  21783. .isWorksName {
  21784. background: #e7ebf1 !important;
  21785. width: 100px;
  21786. height: 40px;
  21787. line-height: 40px;
  21788. position: relative;
  21789. color: #acb4bf;
  21790. border: 1px solid #cad1dc !important;
  21791. }
  21792. .isSelectName,
  21793. .noWorksName:hover {
  21794. background: #3383fa !important;
  21795. color: #fff !important;
  21796. border: 1px solid #3383fa !important;
  21797. }
  21798. .title {
  21799. background: #1e5cc9;
  21800. /* width: 98%; */
  21801. height: 45px;
  21802. color: #fff;
  21803. line-height: 45px;
  21804. padding-left: 20px;
  21805. box-sizing: border-box;
  21806. }
  21807. .textBox {
  21808. font-size: 20px;
  21809. width: 90%;
  21810. display: flex;
  21811. flex-direction: column;
  21812. align-items: center;
  21813. margin: 20px auto 0;
  21814. max-height: calc(100% - 75px);
  21815. overflow: auto;
  21816. }
  21817. .textContent {
  21818. font-size: 18px;
  21819. width: 95%;
  21820. max-width: 95%;
  21821. }
  21822. .answerBg {
  21823. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  21824. background-size: 100% 100%;
  21825. width: 100%;
  21826. height: 100%;
  21827. color: #fff;
  21828. text-align: center;
  21829. display: flex;
  21830. flex-direction: column;
  21831. flex-wrap: nowrap;
  21832. align-items: center;
  21833. position: relative;
  21834. justify-content: center;
  21835. }
  21836. .answerBg > div:nth-child(1) {
  21837. /* font-size: 22px;
  21838. padding: 25px 0 10px; */
  21839. }
  21840. .answerContent {
  21841. width: 215px;
  21842. max-height: 60px;
  21843. word-break: break-all;
  21844. text-align: center;
  21845. /* white-space: nowrap; */
  21846. overflow: hidden;
  21847. text-overflow: ellipsis;
  21848. /* padding: 23px 0 0; */
  21849. -webkit-line-clamp: 3;
  21850. -webkit-box-orient: vertical;
  21851. display: -webkit-box;
  21852. font-size: 15px;
  21853. cursor: pointer;
  21854. }
  21855. .elist_input_box {
  21856. display: flex;
  21857. align-items: flex-start;
  21858. flex-wrap: nowrap;
  21859. padding: 10px 0 15px 30px;
  21860. flex-direction: column;
  21861. }
  21862. .elist_input {
  21863. /* width: 40%; */
  21864. width: 45%;
  21865. padding: 20px;
  21866. /* margin: 20px; */
  21867. box-sizing: border-box;
  21868. }
  21869. .elist_input .elist_input_box input {
  21870. font: inherit;
  21871. color: currentColor;
  21872. width: 200px;
  21873. padding: 8px 14px;
  21874. display: block;
  21875. min-width: 0;
  21876. outline: none;
  21877. border: 1px solid rgba(0, 0, 0, 0.23);
  21878. border-radius: 4px;
  21879. box-sizing: border-box;
  21880. background: #fff;
  21881. margin: 0 20px 0 0;
  21882. }
  21883. .elist_input .elist_input_box span {
  21884. height: 36px;
  21885. line-height: 36px;
  21886. color: rgb(82, 82, 82);
  21887. }
  21888. .elist_input .elist_input_box .remove {
  21889. height: 20px;
  21890. width: 20px;
  21891. background-size: 100% 100%;
  21892. background-position: unset;
  21893. margin-left: 5px;
  21894. }
  21895. .elist_input_box >>> .el-rate {
  21896. display: flex;
  21897. height: 36px;
  21898. align-items: center;
  21899. }
  21900. .elist_input_box .elist_inptu_text {
  21901. min-height: 50px;
  21902. /* width: 500px;
  21903. max-height: 150px; */
  21904. width: 100%;
  21905. line-height: 50px;
  21906. color: rgb(82, 82, 82);
  21907. overflow: auto;
  21908. text-indent: 5px;
  21909. background: #f7f6f9;
  21910. border-radius: 10px;
  21911. }
  21912. .elist_input_box .elist_inptu_text input {
  21913. width: 500px;
  21914. }
  21915. .elist_input_box >>> .el-rate__icon {
  21916. font-size: 24px;
  21917. }
  21918. .isClick {
  21919. background: #4d9def;
  21920. }
  21921. .bzBox {
  21922. display: flex;
  21923. flex-direction: row;
  21924. align-items: center;
  21925. }
  21926. .bzBox .yCss {
  21927. width: 7px;
  21928. height: 7px;
  21929. background: #fff;
  21930. margin: 0 16px 0 6px;
  21931. border-radius: 50%;
  21932. border: 5px solid #3681fc;
  21933. z-index: 99;
  21934. }
  21935. .bzBox > div:nth-child(2) {
  21936. font-size: 18px;
  21937. font-weight: bold;
  21938. color: #0e1e33;
  21939. }
  21940. .navTitile {
  21941. padding: 0 0px 0 15px;
  21942. font-size: 16px;
  21943. font-weight: bold;
  21944. color: #0e1e33;
  21945. height: 40px;
  21946. line-height: 40px;
  21947. }
  21948. .isTypeOne {
  21949. width: 240px;
  21950. height: 170px;
  21951. /* border: 1px solid #f8f8f8; */
  21952. border-radius: 10px;
  21953. box-shadow: 0 0 6px 1px #dfdada;
  21954. }
  21955. .e_add_top {
  21956. display: flex;
  21957. justify-content: space-between;
  21958. padding: 10px 20px;
  21959. border-radius: 3px;
  21960. background: #fff;
  21961. }
  21962. .e_add_title2 {
  21963. display: flex;
  21964. align-items: center;
  21965. }
  21966. .e_add_title2 span {
  21967. width: 40px;
  21968. }
  21969. .e_add_title {
  21970. display: flex;
  21971. align-items: center;
  21972. color: #b8b8b8;
  21973. font-size: 18px;
  21974. position: relative;
  21975. height: 40px;
  21976. }
  21977. .e_add_title span {
  21978. margin-right: 10px;
  21979. }
  21980. .e_add_title .el_input {
  21981. width: 300px;
  21982. }
  21983. .e_add_title >>> .el-input__inner {
  21984. width: 400px;
  21985. }
  21986. .e_add_btn {
  21987. }
  21988. .e_add_content {
  21989. display: flex;
  21990. width: 100%;
  21991. max-width: 650px;
  21992. height: 550px;
  21993. }
  21994. .e_add_list {
  21995. background: #fff;
  21996. height: 500px;
  21997. width: 210px;
  21998. position: relative;
  21999. margin: 15px 5px 0 0;
  22000. flex-shrink: 0;
  22001. display: flex;
  22002. flex-direction: column;
  22003. }
  22004. .e_add_list_title {
  22005. font-size: 20px;
  22006. width: 100%;
  22007. box-sizing: border-box;
  22008. padding: 15px 40px;
  22009. text-align: center;
  22010. border-bottom: 1px solid #eaeaea;
  22011. position: relative;
  22012. display: flex;
  22013. align-items: center;
  22014. justify-content: center;
  22015. height: 57px;
  22016. background: #f6f6f6;
  22017. }
  22018. .e_add_list_title span {
  22019. overflow: hidden;
  22020. white-space: nowrap;
  22021. text-overflow: ellipsis;
  22022. }
  22023. .e_add_list_title img {
  22024. position: absolute;
  22025. right: 15px;
  22026. width: 25px;
  22027. cursor: pointer;
  22028. top: 50%;
  22029. transform: translateY(-50%);
  22030. }
  22031. .e_add_list_body {
  22032. height: calc(100% - 187px);
  22033. overflow: auto;
  22034. }
  22035. .e_add_list_child {
  22036. width: 100%;
  22037. display: flex;
  22038. align-items: center;
  22039. justify-content: center;
  22040. position: relative;
  22041. box-sizing: border-box;
  22042. padding: 15px 40px;
  22043. text-align: center;
  22044. }
  22045. .e_add_list_child span {
  22046. overflow: hidden;
  22047. white-space: nowrap;
  22048. text-overflow: ellipsis;
  22049. cursor: pointer;
  22050. }
  22051. .e_add_list_child img {
  22052. position: absolute;
  22053. right: 10px;
  22054. width: 21px;
  22055. cursor: pointer;
  22056. top: 50%;
  22057. transform: translateY(-50%);
  22058. }
  22059. .e_add_list_child + .e_add_list_child {
  22060. border-top: 1px solid #eaeaea;
  22061. }
  22062. .e_add_list_child .active {
  22063. color: #409eff;
  22064. }
  22065. .e_add_list_btn {
  22066. position: absolute;
  22067. bottom: 0;
  22068. height: 50px;
  22069. background: rgb(120, 120, 254);
  22070. width: 100%;
  22071. color: #fff;
  22072. font-size: 16px;
  22073. text-align: center;
  22074. line-height: 50px;
  22075. cursor: pointer;
  22076. }
  22077. .e_add_list_detail {
  22078. position: absolute;
  22079. bottom: 0;
  22080. height: 130px;
  22081. background: rgb(120, 120, 254);
  22082. width: 100%;
  22083. color: #fff;
  22084. font-size: 16px;
  22085. display: flex;
  22086. align-items: center;
  22087. justify-content: center;
  22088. }
  22089. .e_add_list_detail textarea {
  22090. height: 90%;
  22091. width: 95%;
  22092. border: none;
  22093. resize: none;
  22094. outline: none;
  22095. padding: 5px;
  22096. box-sizing: border-box;
  22097. }
  22098. .e_add_list_pbox {
  22099. width: 100%;
  22100. max-width: 650px;
  22101. /* height: 600px; */
  22102. }
  22103. .e_add_list_pbox_title {
  22104. height: 50px;
  22105. background: #fff;
  22106. display: flex;
  22107. align-items: center;
  22108. width: 100%;
  22109. box-sizing: border-box;
  22110. padding: 0 20px;
  22111. }
  22112. .type_title {
  22113. font-size: 18px;
  22114. font-weight: 700;
  22115. }
  22116. .type_content {
  22117. font-size: 16px;
  22118. /* margin-left: 30px; */
  22119. }
  22120. .type_content span + span {
  22121. margin-left: 20px;
  22122. }
  22123. .type_content span {
  22124. cursor: pointer;
  22125. padding-bottom: 5px;
  22126. box-sizing: border-box;
  22127. }
  22128. .type_content .active {
  22129. color: #409eff;
  22130. border-bottom: 2px solid #409eff;
  22131. }
  22132. .e_add_list_pbox_content {
  22133. height: calc(100% - 50px);
  22134. display: flex;
  22135. align-items: center;
  22136. width: 100%;
  22137. background: #fff;
  22138. }
  22139. .evaCss {
  22140. display: flex;
  22141. flex-direction: row;
  22142. flex-wrap: nowrap;
  22143. align-items: flex-start;
  22144. padding: 0 0 20px;
  22145. }
  22146. .cru_line {
  22147. position: absolute;
  22148. bottom: 0px;
  22149. transition: all 0.5s;
  22150. left: 0px;
  22151. width: 125px;
  22152. margin-left: -25px;
  22153. }
  22154. .isNoMessage {
  22155. width: 20%;
  22156. margin: 25% auto 0;
  22157. }
  22158. .isNoMessage > img {
  22159. width: 100%;
  22160. height: 100%;
  22161. }
  22162. .fullStyle >>> .el-dialog__body {
  22163. height: 100% !important;
  22164. }
  22165. .fullStyle >>> .el-dialog,
  22166. .fullStyle {
  22167. width: 100% !important;
  22168. max-width: 100% !important;
  22169. height: 100% !important;
  22170. margin: 0 !important;
  22171. }
  22172. .full_diy >>> .el-dialog {
  22173. margin: 0 !important;
  22174. height: 100%;
  22175. padding: 4px;
  22176. }
  22177. .full_diy >>> .el-dialog__body {
  22178. height: calc(100% - 100px);
  22179. }
  22180. .full_diy2 >>> .el-dialog__body {
  22181. height: calc(100% - 50px);
  22182. padding: 0;
  22183. }
  22184. .switchCss {
  22185. /* width: 100%; */
  22186. display: flex;
  22187. flex-direction: row;
  22188. flex-wrap: nowrap;
  22189. align-items: center;
  22190. /* justify-content: center; */
  22191. }
  22192. .isClickNav {
  22193. /* color: #499eef; */
  22194. color: #000;
  22195. }
  22196. .commentImg {
  22197. width: 25px;
  22198. height: 25px;
  22199. cursor: pointer;
  22200. }
  22201. .commentImg > img {
  22202. width: 100%;
  22203. height: 100%;
  22204. }
  22205. .comment {
  22206. background: #f9f9f9;
  22207. border-radius: 0 0 4px 4px;
  22208. display: flex;
  22209. flex-direction: row;
  22210. flex-wrap: nowrap;
  22211. align-items: center;
  22212. justify-content: flex-end;
  22213. height: 35px;
  22214. }
  22215. .commentList {
  22216. display: flex;
  22217. flex-direction: row;
  22218. flex-wrap: nowrap;
  22219. align-items: center;
  22220. justify-content: center;
  22221. align-content: center;
  22222. /* margin-left: 15px; */
  22223. /* margin-left: 8px; */
  22224. }
  22225. .scoreImg {
  22226. width: 17px;
  22227. height: 17px;
  22228. }
  22229. .studentDetail {
  22230. display: flex;
  22231. flex-direction: row;
  22232. flex-wrap: nowrap;
  22233. /* align-items: center; */
  22234. align-items: flex-start;
  22235. }
  22236. .tx {
  22237. width: 50px;
  22238. }
  22239. .tx > img {
  22240. width: 100%;
  22241. height: 100%;
  22242. }
  22243. .nameAndTime {
  22244. display: flex;
  22245. flex-direction: column;
  22246. flex-wrap: nowrap;
  22247. align-items: flex-start;
  22248. margin-left: 10px;
  22249. }
  22250. .worksAnswer {
  22251. color: #4078dd;
  22252. margin: 10px 0;
  22253. font-size: 16px;
  22254. position: relative;
  22255. }
  22256. .worksAnswer > img {
  22257. width: 500px;
  22258. height: 300px;
  22259. object-fit: contain;
  22260. margin: 0 auto;
  22261. display: block;
  22262. }
  22263. .commentTop {
  22264. border-bottom: 1px solid #eaeaea;
  22265. padding-bottom: 10px;
  22266. }
  22267. .commentBox {
  22268. padding-top: 15px;
  22269. }
  22270. .pl {
  22271. font-size: 18px;
  22272. }
  22273. .plPerson {
  22274. width: 100%;
  22275. }
  22276. .plName {
  22277. display: flex;
  22278. flex-direction: row;
  22279. flex-wrap: nowrap;
  22280. align-items: baseline;
  22281. color: #78787a;
  22282. width: 100%;
  22283. }
  22284. .deleteComment {
  22285. cursor: pointer;
  22286. margin-left: auto;
  22287. color: #237ade;
  22288. }
  22289. .plContent {
  22290. margin-top: 5px;
  22291. }
  22292. .evalCss {
  22293. background: #fff;
  22294. font-size: 18px;
  22295. }
  22296. .nav {
  22297. color: #9d9d9d;
  22298. padding: 5px 0 15px 20px;
  22299. }
  22300. .middleBox {
  22301. padding: 5px 0 15px 20px;
  22302. }
  22303. .pfBox {
  22304. padding-bottom: 30px;
  22305. }
  22306. .nameAndrate {
  22307. display: flex;
  22308. flex-direction: row;
  22309. flex-wrap: nowrap;
  22310. align-items: center;
  22311. padding-bottom: 10px;
  22312. height: 30px;
  22313. line-height: 30px;
  22314. }
  22315. .nameAndrate > div {
  22316. margin-left: 10px;
  22317. color: #000;
  22318. height: 30px;
  22319. }
  22320. .nameAndrate >>> .el-rate__icon {
  22321. font-size: 28px !important;
  22322. }
  22323. .pfBox > div:nth-child(2) {
  22324. background: #f7f6f9;
  22325. width: 400px;
  22326. min-height: 45px;
  22327. border-radius: 10px;
  22328. font-size: 16px;
  22329. display: flex;
  22330. flex-wrap: wrap;
  22331. align-items: center;
  22332. padding: 10px 20px;
  22333. box-sizing: border-box;
  22334. color: #000;
  22335. }
  22336. .bz {
  22337. display: flex;
  22338. flex-direction: row;
  22339. flex-wrap: nowrap;
  22340. align-items: flex-start;
  22341. }
  22342. .bz > div {
  22343. padding: 0 10px;
  22344. }
  22345. .select_box2_title {
  22346. background: #fff;
  22347. border-radius: 5px;
  22348. padding: 15px 10px;
  22349. box-sizing: border-box;
  22350. margin-bottom: 10px;
  22351. display: flex;
  22352. flex-direction: row;
  22353. flex-wrap: nowrap;
  22354. align-items: center;
  22355. }
  22356. .select_box2_title > div:nth-child(2) {
  22357. margin-left: 10px;
  22358. color: #c4c4c4;
  22359. }
  22360. .select_box2_box {
  22361. display: flex;
  22362. height: 500px;
  22363. }
  22364. .select_box2_img {
  22365. width: calc(100% - 310px);
  22366. height: 100%;
  22367. overflow: auto;
  22368. background: #fff;
  22369. border-radius: 5px;
  22370. }
  22371. .select_box2_img img {
  22372. width: 100%;
  22373. }
  22374. .select_box2_answer {
  22375. background: #fff;
  22376. margin-left: 10px;
  22377. border-radius: 5px;
  22378. width: 300px;
  22379. overflow: auto;
  22380. height: 90%;
  22381. display: flex;
  22382. flex-direction: column;
  22383. align-items: flex-start;
  22384. padding-top: 10px;
  22385. box-sizing: border-box;
  22386. position: relative;
  22387. }
  22388. .select_answer_title {
  22389. padding: 0 0 15px 20px;
  22390. color: #c4c4c4;
  22391. }
  22392. .select_box2_answer_box {
  22393. margin: 0 0 10px 20px;
  22394. width: 85%;
  22395. display: flex;
  22396. flex-direction: row;
  22397. flex-wrap: nowrap;
  22398. align-items: center;
  22399. }
  22400. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22401. color: #000;
  22402. }
  22403. .upAnswerCss {
  22404. position: absolute;
  22405. bottom: 15px;
  22406. right: 15px;
  22407. }
  22408. .upAnswerCss >>> .el-button {
  22409. width: 95px;
  22410. height: 35px;
  22411. line-height: 35px;
  22412. padding: 0;
  22413. }
  22414. .rightWidthCss {
  22415. width: 60%;
  22416. display: flex;
  22417. flex-direction: row;
  22418. align-items: flex-start;
  22419. }
  22420. .rightAnswer {
  22421. display: flex;
  22422. flex-direction: row;
  22423. flex-wrap: nowrap;
  22424. align-items: center;
  22425. color: red;
  22426. margin-bottom: 31px;
  22427. }
  22428. .rightAnswerCss {
  22429. display: flex;
  22430. flex-direction: column;
  22431. flex-wrap: nowrap;
  22432. padding-top: 60px;
  22433. }
  22434. .blueCss {
  22435. color: #767de1;
  22436. margin-left: 10px;
  22437. }
  22438. .redCss {
  22439. color: red;
  22440. }
  22441. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22442. color: rgb(0 123 255) !important;
  22443. }
  22444. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22445. color: rgb(0 123 255) !important;
  22446. }
  22447. .zuoyeYulan {
  22448. padding-top: 0;
  22449. font-size: 18px;
  22450. display: flex;
  22451. align-items: flex-end;
  22452. }
  22453. .buttonA {
  22454. margin-left: 10px;
  22455. padding: 0;
  22456. }
  22457. .displayBox {
  22458. margin-bottom: 10px;
  22459. display: block;
  22460. border-bottom: 3px solid #eee;
  22461. display: flex;
  22462. align-items: center;
  22463. }
  22464. .easy_comment {
  22465. width: calc(100% - 90px);
  22466. margin-left: 10px;
  22467. display: flex;
  22468. flex-wrap: wrap;
  22469. }
  22470. .easy_comment > div {
  22471. border: 1px solid #4a4a4a;
  22472. color: #666;
  22473. border-radius: 15px;
  22474. padding: 5px 10px;
  22475. font-size: 16px;
  22476. margin-bottom: 10px;
  22477. margin-right: 5px;
  22478. cursor: pointer;
  22479. }
  22480. .easy_comment div:hover {
  22481. border: 1px solid #f7ba2a;
  22482. color: #c69217;
  22483. }
  22484. .xuan_right_box {
  22485. padding: 10px 0;
  22486. background: #f0f4fa;
  22487. margin: 0 15px 0 25px;
  22488. border-bottom-left-radius: 5px;
  22489. border-bottom-right-radius: 5px;
  22490. width: 91.5%;
  22491. }
  22492. .tool_right_box {
  22493. display: flex;
  22494. align-items: center;
  22495. }
  22496. .tool_right_box + .tool_right_box {
  22497. margin-top: 10px;
  22498. }
  22499. .right_box_xuan {
  22500. border-radius: 5px;
  22501. padding: 5px;
  22502. margin-left: 10px;
  22503. min-width: 85px;
  22504. background: #fff;
  22505. color: #0061ff;
  22506. border: 1px solid #0061ff;
  22507. font-size: 14px;
  22508. }
  22509. .pButton:hover {
  22510. opacity: 1 !important;
  22511. }
  22512. .pButton {
  22513. position: fixed;
  22514. text-align: center;
  22515. cursor: pointer;
  22516. z-index: 999;
  22517. right: 20px;
  22518. top: 110px;
  22519. width: 50px;
  22520. height: 50px;
  22521. display: flex;
  22522. align-items: center;
  22523. justify-content: center;
  22524. border-radius: 5px;
  22525. }
  22526. .pzClass {
  22527. width: calc(100% - 340px);
  22528. }
  22529. .newDialogCss {
  22530. /* position: fixed;
  22531. right: 5%;
  22532. top: 50%;
  22533. width: 340px;
  22534. transform: translateY(-50%);
  22535. height: 60%;
  22536. box-shadow: 0px 0 8px 0px #555555;
  22537. border-radius: 15px;
  22538. z-index: 999; */
  22539. position: fixed;
  22540. right: 20px;
  22541. top: 101px;
  22542. width: 330px;
  22543. height: calc(100% - 80px);
  22544. z-index: 999;
  22545. background: #fff;
  22546. border-top-right-radius: 0px;
  22547. border-bottom-right-radius: 0px;
  22548. overflow: hidden;
  22549. }
  22550. .newDialogCss>.scoreList{
  22551. width:100%;
  22552. height:100%;
  22553. box-sizing:border-box;
  22554. padding:10px 15px;
  22555. overflow:auto;
  22556. padding-bottom:80px;
  22557. }
  22558. .pzTop {
  22559. color: #fff;
  22560. background: #000;
  22561. display: flex;
  22562. flex-direction: row;
  22563. flex-wrap: nowrap;
  22564. align-items: center;
  22565. justify-content: space-between;
  22566. height: 40px;
  22567. border-radius: 15px 15px 0 0;
  22568. user-select: none;
  22569. }
  22570. .pzTop2 .checkbox {
  22571. display: flex;
  22572. align-items: center;
  22573. padding: 5px 10px;
  22574. flex: 0 0 auto;
  22575. font-weight: bold;
  22576. border-bottom: 1px solid #eee;
  22577. justify-content: space-between;
  22578. }
  22579. .checkbox>.cb-tabList{
  22580. display:flex;
  22581. align-items:center;
  22582. }
  22583. .cb-tabList>div{
  22584. margin-right:20px;
  22585. font-weight:400;
  22586. cursor:pointer;
  22587. }
  22588. .cb-tabList>.cb-tabItem{
  22589. color:#1684FC;
  22590. position:relative;
  22591. }
  22592. .cb-tabItem::after{
  22593. content:"";
  22594. width:100%;
  22595. height:2px;
  22596. background:#1684FC;
  22597. position:absolute;
  22598. bottom:-5px;
  22599. left:0
  22600. }
  22601. .pzTop2 .check {
  22602. text-align: center;
  22603. cursor: pointer;
  22604. box-sizing: border-box;
  22605. display: flex;
  22606. }
  22607. .pzTop2 img {
  22608. width: 25px;
  22609. cursor: pointer;
  22610. }
  22611. .pzTop > div:nth-child(1) {
  22612. padding-left: 10px;
  22613. }
  22614. .pzTop > div:nth-child(2) {
  22615. width: 15px;
  22616. height: 15px;
  22617. padding-right: 10px;
  22618. cursor: pointer;
  22619. }
  22620. .pzTop > div:nth-child(2) > img {
  22621. width: 100%;
  22622. height: 100%;
  22623. }
  22624. .pzBox,
  22625. .noPzBox {
  22626. height: calc(100% - 60px);
  22627. /* background: #ededed; */
  22628. background: #fff;
  22629. /* border-radius: 0 0 15px 15px; */
  22630. }
  22631. .noPzBox {
  22632. display: flex;
  22633. flex-direction: column;
  22634. flex-wrap: nowrap;
  22635. justify-content: center;
  22636. align-items: center;
  22637. }
  22638. .pzList {
  22639. background: #f7f7f7;
  22640. width: 90%;
  22641. margin: 0 auto 15px;
  22642. border-radius: 5px;
  22643. }
  22644. .pzNavTop {
  22645. display: flex;
  22646. flex-direction: row;
  22647. flex-wrap: nowrap;
  22648. padding: 10px 10px 0 10px;
  22649. align-items: center;
  22650. }
  22651. .pzDelete {
  22652. cursor: pointer;
  22653. margin-left: auto;
  22654. font-size: 14px;
  22655. color: #afafaf;
  22656. }
  22657. .pzNavTop > div:nth-child(1) {
  22658. background: #3760af;
  22659. width: 35px;
  22660. height: 35px;
  22661. color: #fff;
  22662. text-align: center;
  22663. line-height: 35px;
  22664. border-radius: 50%;
  22665. font-size: 14px;
  22666. }
  22667. .pzNavTop > div:nth-child(2) {
  22668. font-size: 18px;
  22669. color: #959595;
  22670. margin-left: 5px;
  22671. }
  22672. .pzContent {
  22673. padding: 10px;
  22674. word-break: break-word;
  22675. }
  22676. .pzContent audio {
  22677. width: 100%;
  22678. }
  22679. .pzContent audio::-webkit-media-controls-panel {
  22680. background: #fff;
  22681. }
  22682. .pzContent >>> img {
  22683. max-width: 100%;
  22684. }
  22685. .pzListBox {
  22686. padding-top: 15px;
  22687. height: calc(100% - 110px);
  22688. overflow: auto;
  22689. }
  22690. .addPzButton {
  22691. position: relative;
  22692. margin-top: 3px;
  22693. width: 100%;
  22694. }
  22695. .addPzButton .img1 {
  22696. position: absolute;
  22697. top: 50%;
  22698. right: 25px;
  22699. transform: translateY(-50%);
  22700. height: 100%;
  22701. display: flex;
  22702. align-items: center;
  22703. }
  22704. .addPzButton .img1 div {
  22705. display: flex;
  22706. }
  22707. .addPzButton .img1 div img {
  22708. width: 28px;
  22709. margin-left: 10px;
  22710. cursor: pointer;
  22711. }
  22712. .addPzButton .img1 div span {
  22713. font-size: 14px;
  22714. margin: 4px 0 0 3px;
  22715. color: #afafaf;
  22716. }
  22717. .addPz {
  22718. background: #4b79ce;
  22719. width: 100px;
  22720. color: #fff;
  22721. font-size: 12px;
  22722. height: 30px;
  22723. margin: 0 auto;
  22724. text-align: center;
  22725. line-height: 30px;
  22726. border-radius: 10px;
  22727. cursor: pointer;
  22728. }
  22729. .addDialogCss {
  22730. position: fixed;
  22731. width: 600px;
  22732. height: 70%;
  22733. min-height: 450px;
  22734. box-shadow: 0px 0 8px 0px #555555;
  22735. border-radius: 15px;
  22736. z-index: 999;
  22737. left: 50%;
  22738. top: 50%;
  22739. margin: -18% 0 0 -300px;
  22740. }
  22741. .teacherPz {
  22742. display: flex;
  22743. flex-direction: row;
  22744. align-items: center;
  22745. flex-wrap: nowrap;
  22746. }
  22747. .teacherPzImg {
  22748. width: 30px;
  22749. height: 30px;
  22750. }
  22751. .teacherPzImg > img {
  22752. width: 100%;
  22753. height: 100%;
  22754. }
  22755. .addPzBox {
  22756. height: calc(100% - 40px);
  22757. background: #ededed;
  22758. border-bottom-left-radius: 15px;
  22759. border-bottom-right-radius: 15px;
  22760. }
  22761. .pzAudioClass {
  22762. margin: 15px 14px;
  22763. background: #fff;
  22764. height: 100%;
  22765. display: flex;
  22766. justify-content: center;
  22767. align-items: center;
  22768. }
  22769. .pzConText {
  22770. width: 95%;
  22771. height: 100%;
  22772. margin: 10px auto 0;
  22773. border: none;
  22774. background: #fff;
  22775. border-radius: 0px;
  22776. }
  22777. .pzConText >>> .text {
  22778. height: calc(100% - 82px);
  22779. }
  22780. .addTextCss {
  22781. background: #4b79ce;
  22782. width: 80px;
  22783. height: 30px;
  22784. text-align: center;
  22785. color: #fff;
  22786. line-height: 30px;
  22787. border-radius: 10px;
  22788. margin: 10px auto 0;
  22789. cursor: pointer;
  22790. }
  22791. .pzConText:focus-visible {
  22792. border: none !important;
  22793. }
  22794. .maxWidth {
  22795. width: 1000px;
  22796. }
  22797. .noPz {
  22798. width: 150px;
  22799. margin: 0 auto 20%;
  22800. }
  22801. .noPz > img {
  22802. width: 100%;
  22803. height: 100%;
  22804. }
  22805. .timeAndReply {
  22806. display: flex;
  22807. flex-direction: row;
  22808. flex-wrap: nowrap;
  22809. justify-content: space-between;
  22810. align-items: center;
  22811. font-size: 14px;
  22812. box-sizing: border-box;
  22813. padding: 0 10px 10px 0px;
  22814. }
  22815. .timeAndReply .time {
  22816. color: #bfbfbf;
  22817. padding: 0 0 0 10px;
  22818. box-sizing: border-box;
  22819. }
  22820. .timeAndReply > div:last-child {
  22821. cursor: pointer;
  22822. color: #777;
  22823. }
  22824. /* table 样式 */
  22825. .cont >>> table {
  22826. border-top: 1px solid #ccc;
  22827. border-left: 1px solid #ccc;
  22828. }
  22829. .cont >>> table td,
  22830. .cont >>> table th {
  22831. border-bottom: 1px solid #ccc;
  22832. border-right: 1px solid #ccc;
  22833. /* padding: 20px 5px; */
  22834. padding: 5px 10px;
  22835. max-width: 0px;
  22836. height: 30px;
  22837. vertical-align: baseline;
  22838. box-sizing: border-box;
  22839. }
  22840. .cont >>> table th {
  22841. border-bottom: 2px solid #ccc;
  22842. text-align: center;
  22843. }
  22844. /* blockquote 样式 */
  22845. .cont >>> blockquote {
  22846. display: block;
  22847. border-left: 8px solid #d0e5f2;
  22848. padding: 5px 10px;
  22849. margin: 10px 0;
  22850. line-height: 1.4;
  22851. font-size: 100%;
  22852. background-color: #f1f1f1;
  22853. }
  22854. /* code 样式 */
  22855. .cont >>> code {
  22856. display: inline-block;
  22857. /* *display: inline; */
  22858. zoom: 1;
  22859. background-color: #f1f1f1;
  22860. border-radius: 3px;
  22861. padding: 3px 5px;
  22862. margin: 0 3px;
  22863. }
  22864. .cont >>> pre code {
  22865. display: block;
  22866. }
  22867. /* ul ol 样式 */
  22868. .cont >>> ul,
  22869. ol {
  22870. margin: 10px 0 10px 20px;
  22871. }
  22872. .addPzCheck {
  22873. display: flex;
  22874. flex-direction: row;
  22875. flex-wrap: nowrap;
  22876. padding: 10px 15px 0;
  22877. }
  22878. .addPzCheck span {
  22879. cursor: pointer;
  22880. padding-bottom: 5px;
  22881. font-weight: bold;
  22882. }
  22883. .addPzCheck span + span {
  22884. margin-left: 10px;
  22885. }
  22886. .addPzCheck .isChooseActive {
  22887. color: #3e88f4;
  22888. border-bottom: 2px solid #2f80f3;
  22889. }
  22890. /* code 样式 */
  22891. .cont {
  22892. /* -webkit-user-modify: read-write; */
  22893. overflow-wrap: break-word;
  22894. -webkit-line-break: after-white-space;
  22895. word-break: break-word;
  22896. white-space: pre-line;
  22897. }
  22898. .scoreBox,
  22899. .scoreDetailBox {
  22900. display: flex;
  22901. align-items: center;
  22902. justify-content: flex-start;
  22903. margin-top: 20px;
  22904. font-size: 18px;
  22905. width: 100%;
  22906. }
  22907. .scoreBox .t,
  22908. .scoreDetailBox .t {
  22909. margin-right: 10px;
  22910. width: 100px;
  22911. text-align: right;
  22912. }
  22913. .scoreDetailBox {
  22914. align-items: flex-start;
  22915. }
  22916. .scoreDetailBox >>> .el-textarea {
  22917. width: calc(100% - 200px);
  22918. }
  22919. .scoreBox >>> .el-input {
  22920. width: 130px;
  22921. font-size: 38px;
  22922. }
  22923. .scoreBox >>> .el-input__inner {
  22924. height: 60px;
  22925. }
  22926. .answerScore {
  22927. position: absolute;
  22928. top: 10px;
  22929. right: 10px;
  22930. background: #0000008f;
  22931. border-radius: 5px;
  22932. padding: 3px 5px;
  22933. font-size: 14px;
  22934. color: #fff;
  22935. cursor: pointer;
  22936. }
  22937. .open_box .switch_box {
  22938. width: 100%;
  22939. margin: 0 auto;
  22940. display: flex;
  22941. justify-content: space-between;
  22942. }
  22943. .open_box .switch_box + .switch_box {
  22944. margin-top: 10px;
  22945. }
  22946. .deleteImg,.deleteImg1 {
  22947. width: 25px !important;
  22948. height: 25px !important;
  22949. cursor: pointer;
  22950. position: absolute;
  22951. top: 10px;
  22952. right: 10px;
  22953. }
  22954. .deleteImg2 {
  22955. width: 23px !important;
  22956. height: 23px !important;
  22957. top: 5px;
  22958. right: 5px;
  22959. }
  22960. .deleteImg1{
  22961. width: 23px !important;
  22962. height: 23px !important;
  22963. top: 5px !important;
  22964. right: 30px !important;
  22965. }
  22966. .rightW {
  22967. right: 40px;
  22968. }
  22969. .drawPBox {
  22970. display: flex;
  22971. flex-direction: column;
  22972. position: relative;
  22973. }
  22974. .drawPBox span {
  22975. font-size: 18px;
  22976. color: #606266;
  22977. padding-bottom: 10px;
  22978. margin: 10px 0;
  22979. border-bottom: 1px solid #eaeaea;
  22980. }
  22981. .drawPBox img {
  22982. width: 500px;
  22983. height: 300px;
  22984. object-fit: contain;
  22985. cursor: pointer;
  22986. margin: 0 auto;
  22987. }
  22988. .sentenBox {
  22989. background: #fff;
  22990. height: 450px;
  22991. overflow: auto;
  22992. background-image: url("../../assets/icon/conSentences/stuBg.png");
  22993. background-position: 102%;
  22994. background-repeat: no-repeat;
  22995. background-size: 60%;
  22996. }
  22997. .addSen {
  22998. background: #409efe;
  22999. width: 90px;
  23000. color: #fff;
  23001. height: 35px;
  23002. text-align: center;
  23003. line-height: 35px;
  23004. border-radius: 5px;
  23005. float: right;
  23006. margin: 10px 20px 0 0;
  23007. cursor: pointer;
  23008. }
  23009. .sentenTop {
  23010. display: flex;
  23011. flex-direction: row;
  23012. flex-wrap: nowrap;
  23013. align-items: center;
  23014. padding: 55px 0 0 20px;
  23015. box-sizing: border-box;
  23016. }
  23017. .sentenTop > div:nth-child(2) {
  23018. width: 300px;
  23019. margin: 0 15px;
  23020. }
  23021. .sentenTop > div:nth-child(3) {
  23022. background: #409efe;
  23023. color: #fff;
  23024. width: 65px;
  23025. height: 35px;
  23026. text-align: center;
  23027. line-height: 35px;
  23028. border-radius: 5px;
  23029. cursor: pointer;
  23030. }
  23031. .cardList,
  23032. .cardList1 {
  23033. padding: 10px 0 10px 0;
  23034. display: flex;
  23035. flex-direction: row;
  23036. flex-wrap: wrap;
  23037. align-items: center;
  23038. box-sizing: border-box;
  23039. border-bottom: 1px solid #f4f4f4;
  23040. width: 98%;
  23041. margin: 0 auto;
  23042. min-width: 60%;
  23043. max-width: 85%;
  23044. }
  23045. .cardList1 {
  23046. padding: 10px 0 10px 10px !important;
  23047. margin: 0 !important;
  23048. }
  23049. .cardBox {
  23050. display: flex;
  23051. flex-direction: row;
  23052. flex-wrap: wrap;
  23053. align-items: center;
  23054. align-content: center;
  23055. }
  23056. .cardBox > div {
  23057. margin-bottom: 10px;
  23058. }
  23059. .isCard,
  23060. .isChooseCard,
  23061. .noCard,
  23062. .isCard1 {
  23063. width: 130px;
  23064. height: 60px;
  23065. text-align: center;
  23066. line-height: 60px;
  23067. font-size: 20px;
  23068. cursor: pointer;
  23069. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  23070. background-size: cover;
  23071. transition: all 2s;
  23072. margin-right: 20px;
  23073. }
  23074. .isCard > div,
  23075. .noCard > div,
  23076. .isCard1 > div {
  23077. white-space: nowrap;
  23078. overflow: hidden;
  23079. text-overflow: ellipsis;
  23080. width: 75%;
  23081. margin: 0 auto;
  23082. }
  23083. .noCard {
  23084. background-image: none;
  23085. }
  23086. .isCard1 {
  23087. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  23088. }
  23089. .isChooseCard {
  23090. background-image: none;
  23091. border: 1px dashed #b9b9b9;
  23092. border-radius: 10px;
  23093. }
  23094. .card {
  23095. width: 130px;
  23096. height: 60px;
  23097. }
  23098. .card > img {
  23099. width: 100%;
  23100. height: 100%;
  23101. }
  23102. .rightCardBox {
  23103. margin: 10px 0 0 10px;
  23104. }
  23105. .rightCardBox > div:nth-child(1) {
  23106. margin-bottom: 10px;
  23107. }
  23108. .cardCss {
  23109. display: flex;
  23110. flex-direction: column;
  23111. flex-wrap: nowrap;
  23112. align-items: center;
  23113. border-bottom: 3px solid #b4c3d3;
  23114. padding: 0 0 5px 0;
  23115. margin-right: 10px;
  23116. }
  23117. .cardCss > div:nth-child(2) {
  23118. background: #5b7b9d;
  23119. color: #fff;
  23120. width: 20px;
  23121. height: 20px;
  23122. border-radius: 50%;
  23123. text-align: center;
  23124. line-height: 20px;
  23125. }
  23126. .isWrong {
  23127. display: flex;
  23128. flex-direction: row;
  23129. flex-wrap: nowrap;
  23130. align-content: center;
  23131. align-items: center;
  23132. }
  23133. .answerRight {
  23134. width: 25%;
  23135. }
  23136. .isTj {
  23137. display: flex;
  23138. flex-direction: row;
  23139. flex-wrap: nowrap;
  23140. align-items: center;
  23141. }
  23142. .isTj > div:nth-child(2) {
  23143. color: #727070;
  23144. margin-left: 10px;
  23145. }
  23146. .isTjImg {
  23147. width: 30px;
  23148. height: 30px;
  23149. }
  23150. .isTjImg > img {
  23151. width: 100%;
  23152. height: 100%;
  23153. }
  23154. .cardAnswerBox {
  23155. font-size: 18px;
  23156. width: 97%;
  23157. border: 5px;
  23158. padding: 0;
  23159. border-radius: 5px;
  23160. margin: 10px auto;
  23161. word-break: break-word;
  23162. }
  23163. .w_name {
  23164. margin-bottom: 10px;
  23165. }
  23166. .w_name span {
  23167. font-size: 16px;
  23168. }
  23169. .w_teachert {
  23170. width: 50px !important;
  23171. position: absolute;
  23172. height: auto !important;
  23173. z-index: 10;
  23174. right: 25px;
  23175. top: -25px;
  23176. }
  23177. .group_workBox {
  23178. }
  23179. .group_workBox + .group_workBox {
  23180. margin-top: 20px;
  23181. }
  23182. .group_box {
  23183. padding-bottom: 20px;
  23184. border-bottom: 2px solid #f0f0f0;
  23185. margin-top: 10px;
  23186. }
  23187. .group_title {
  23188. display: flex;
  23189. align-items: center;
  23190. justify-content: space-between;
  23191. width: 95%;
  23192. }
  23193. .group_name {
  23194. background-image: url(../../assets/icon/groupN.png);
  23195. width: 220px;
  23196. background-size: 100% 100%;
  23197. height: 67px;
  23198. padding: 0 20px 0 43px;
  23199. box-sizing: border-box;
  23200. line-height: 63px;
  23201. color: #fff;
  23202. overflow: hidden;
  23203. white-space: nowrap;
  23204. text-overflow: ellipsis;
  23205. }
  23206. .group_work {
  23207. width: 100%;
  23208. padding: 0 10px;
  23209. box-sizing: border-box;
  23210. display: flex;
  23211. flex-wrap: wrap;
  23212. }
  23213. .g_d_box {
  23214. display: flex;
  23215. flex-flow: wrap;
  23216. justify-content: space-around;
  23217. }
  23218. .g_d_box .isChair {
  23219. background-image: url(../../assets/avatar.png) !important;
  23220. }
  23221. .g_d_group {
  23222. width: 500px;
  23223. margin-bottom: 80px;
  23224. }
  23225. .g_d_group_chair {
  23226. display: flex;
  23227. align-items: center;
  23228. justify-content: center;
  23229. }
  23230. .g_d_group_chair > div + div {
  23231. margin-left: 30px;
  23232. }
  23233. .g_d_group_chair > div,
  23234. .g_d_group_chair2 > div {
  23235. display: flex;
  23236. flex-direction: column;
  23237. align-items: center;
  23238. }
  23239. .g_d_group_chair > div > span:nth-child(1),
  23240. .g_d_group_chair2 > div > span:nth-child(1) {
  23241. background-image: url(../../assets/icon/chair.png);
  23242. width: 50px;
  23243. height: 50px;
  23244. display: block;
  23245. background-size: 100% 100%;
  23246. }
  23247. .g_d_group_tableBox {
  23248. display: flex;
  23249. align-items: center;
  23250. justify-content: center;
  23251. }
  23252. .g_d_group_chair2 {
  23253. display: flex;
  23254. flex-direction: column;
  23255. align-items: center;
  23256. justify-content: center;
  23257. }
  23258. .g_d_group_chair2 > div + div {
  23259. margin-top: 10px;
  23260. }
  23261. .g_d_group_table {
  23262. background-image: url(../../assets/icon/groupBg.png);
  23263. width: 354px;
  23264. height: 196px;
  23265. background-size: 100% 100%;
  23266. display: flex;
  23267. align-items: center;
  23268. justify-content: center;
  23269. flex-direction: column;
  23270. color: #fff;
  23271. }
  23272. .g_d_group_table > div:nth-child(1) {
  23273. font-size: 24px;
  23274. margin-bottom: 5px;
  23275. }
  23276. .g_d_group_table > div:nth-child(2) div {
  23277. cursor: pointer;
  23278. background: #2e77bf;
  23279. padding: 4px 10px;
  23280. border-radius: 5px;
  23281. }
  23282. .groupBox {
  23283. }
  23284. .groupContent + .groupContent {
  23285. margin-top: 30px;
  23286. }
  23287. .groupTitle {
  23288. font-size: 24px;
  23289. color: rgb(80, 80, 80);
  23290. margin-bottom: 20px;
  23291. }
  23292. .groupName {
  23293. display: flex;
  23294. align-items: center;
  23295. }
  23296. .groupn {
  23297. font-size: 15px;
  23298. margin-right: 10px;
  23299. }
  23300. .groupName + .groupName {
  23301. margin-top: 15px;
  23302. }
  23303. .groupBtn {
  23304. margin-left: 10px;
  23305. }
  23306. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23307. text-align: left;
  23308. }
  23309. .g_d_btnBox {
  23310. display: flex;
  23311. justify-content: flex-end;
  23312. align-items: center;
  23313. margin-bottom: 20px;
  23314. }
  23315. .updateChair {
  23316. position: relative;
  23317. }
  23318. .updateChairBtn {
  23319. position: absolute;
  23320. width: 50px;
  23321. height: 50px;
  23322. overflow: hidden;
  23323. /* display: flex; */
  23324. align-items: center;
  23325. justify-content: center;
  23326. background: #00000087;
  23327. color: #fff;
  23328. border-radius: 50px;
  23329. display: none;
  23330. cursor: pointer;
  23331. }
  23332. .updateChair:hover .updateChairBtn {
  23333. display: flex;
  23334. }
  23335. .group_staic_box {
  23336. display: flex;
  23337. padding: 30px 40px 10px;
  23338. flex-wrap: wrap;
  23339. }
  23340. .group_staic {
  23341. /* width: 50%; */
  23342. margin-bottom: 20px;
  23343. display: flex;
  23344. align-items: center;
  23345. }
  23346. .group_staic span:nth-child(1) {
  23347. width: 150px;
  23348. text-align: right;
  23349. margin-right: 15px;
  23350. }
  23351. .group_staic span:nth-child(2) {
  23352. background: rgb(0 123 255);
  23353. color: #fff;
  23354. border-radius: 5px;
  23355. padding: 5px;
  23356. }
  23357. .codeFileBox {
  23358. height: 300px;
  23359. background: #fff;
  23360. display: flex;
  23361. align-items: center;
  23362. justify-content: center;
  23363. }
  23364. .codeFileBox img {
  23365. width: 200px;
  23366. margin: 0;
  23367. height: auto;
  23368. }
  23369. .codeFileBox div {
  23370. background: rgb(80, 142, 226);
  23371. color: #fff;
  23372. padding: 10px 20px;
  23373. border-radius: 25px;
  23374. cursor: pointer;
  23375. margin-left: 15px;
  23376. }
  23377. .radioBox {
  23378. display: flex;
  23379. flex-direction: column;
  23380. flex-wrap: nowrap;
  23381. align-items: flex-start;
  23382. }
  23383. .radioBox > div {
  23384. margin: 10px 0 0 10px;
  23385. }
  23386. /* .radioBox >>> .el-radio__input,
  23387. .radioBox >>> .el-checkbox__inner {
  23388. margin-left: 10px;
  23389. } */
  23390. .radioBox >>> .el-radio__label,
  23391. .radioBox >>> .el-checkbox__label {
  23392. display: flex;
  23393. align-items: center;
  23394. width: 100%;
  23395. }
  23396. .radioBox >>> .el-radio__label > span {
  23397. width: 100%;
  23398. display: -webkit-box;
  23399. overflow: hidden;
  23400. white-space: normal !important;
  23401. text-overflow: ellipsis;
  23402. word-wrap: break-word;
  23403. }
  23404. .inImg {
  23405. width: 100px;
  23406. cursor: pointer;
  23407. }
  23408. .inImg > img {
  23409. width: 100%;
  23410. height: 100%;
  23411. object-fit: cover;
  23412. }
  23413. .timuImgBox {
  23414. margin: 10px 0;
  23415. display: flex;
  23416. flex-direction: column;
  23417. flex-wrap: wrap;
  23418. align-items: flex-start;
  23419. }
  23420. .timuImg {
  23421. width: 150px;
  23422. margin: 5px 0;
  23423. cursor: pointer;
  23424. }
  23425. .timuImg > img {
  23426. width: 100%;
  23427. height: 100%;
  23428. object-fit: cover;
  23429. }
  23430. .worksTop {
  23431. display: flex;
  23432. flex-direction: row;
  23433. align-items: flex-end;
  23434. }
  23435. .worksTitle{
  23436. display: flex;
  23437. flex-direction: row;
  23438. flex-wrap: nowrap;
  23439. align-items: center;
  23440. }
  23441. .worksTitle::before,.worksTop::before{
  23442. content: '';
  23443. display: block;
  23444. width: 3px;
  23445. height: 20px;
  23446. background: #0061FF;
  23447. border-radius: 3px;
  23448. margin: 0 5px 0 0;
  23449. }
  23450. .corOpen {
  23451. margin: 0 0 0 10px;
  23452. font-size: 14px;
  23453. cursor: pointer;
  23454. color: #505050;
  23455. }
  23456. .corOpen:hover {
  23457. color: #499eef;
  23458. }
  23459. .navCorOpenBox {
  23460. display: flex;
  23461. flex-direction: row;
  23462. align-items: center;
  23463. justify-content: space-between;
  23464. height: 55px;
  23465. background: #ffffff;
  23466. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23467. border-radius: 8px 8px 0px 0px;
  23468. z-index: 9;
  23469. position: relative;
  23470. }
  23471. .navCorOpen {
  23472. padding-right: 15px;
  23473. cursor: pointer;
  23474. width: 45px;
  23475. display: flex;
  23476. }
  23477. .navCorOpen > img {
  23478. width: 100%;
  23479. height: 100%;
  23480. }
  23481. .mlImg {
  23482. width: 40px !important;
  23483. min-width: 40px;
  23484. cursor: pointer;
  23485. transform: rotate(180deg);
  23486. }
  23487. .mlImg > img {
  23488. width: 100%;
  23489. height: 100%;
  23490. }
  23491. .navLeftCss {
  23492. width: 100% !important;
  23493. left: 0 !important;
  23494. }
  23495. .isContentCss {
  23496. width: 100% !important;
  23497. }
  23498. .isAllWidth {
  23499. width: 100% !important;
  23500. }
  23501. .group_switch {
  23502. margin-right: 10px;
  23503. height: 30px;
  23504. display: flex;
  23505. align-items: center;
  23506. }
  23507. .group_switch > span {
  23508. margin-right: 5px;
  23509. }
  23510. .fileC_box {
  23511. padding-top: 15px;
  23512. }
  23513. .fileC_box > .fileC_title {
  23514. padding: 10px 5px 14px 10px;
  23515. border-top: 1px solid #cad1dc;
  23516. font-size: 14px;
  23517. font-weight: 400;
  23518. color: #cad1dc;
  23519. width: calc(100% - 20px);
  23520. margin: 0 auto;
  23521. box-sizing: border-box;
  23522. }
  23523. .pl_select_box {
  23524. height: 40px;
  23525. line-height: 40px;
  23526. width: 100%;
  23527. cursor: pointer;
  23528. padding: 0 20px;
  23529. box-sizing: border-box;
  23530. border-radius: 5px;
  23531. border: 1px solid #d6d6d6;
  23532. white-space: nowrap;
  23533. overflow: hidden;
  23534. text-overflow: ellipsis;
  23535. background: #fff;
  23536. text-align: left;
  23537. }
  23538. .newButton {
  23539. width: 102px;
  23540. height: 36px;
  23541. background: #e7ebf1;
  23542. border-radius: 4px;
  23543. color: #0e1e33;
  23544. font-weight: 400;
  23545. font-size: 14px;
  23546. border: none;
  23547. float: right;
  23548. margin-left: 10px;
  23549. }
  23550. .el-table >>> .even_row {
  23551. background-color: #f0f4fa;
  23552. }
  23553. .stageBoxCss,
  23554. .stageBoxIsCss {
  23555. display: flex;
  23556. flex-direction: row;
  23557. flex-wrap: nowrap;
  23558. align-items: center;
  23559. height: 50px;
  23560. border-bottom: 1px solid #e2f5fc;
  23561. cursor: pointer;
  23562. width: 100%;
  23563. }
  23564. .stageBoxIsCss {
  23565. background: #0061ff;
  23566. color: #fff;
  23567. border-radius: 8px;
  23568. }
  23569. .closeTri,
  23570. .closeTri1 {
  23571. min-width: 15px;
  23572. width: 15px;
  23573. height: 15px;
  23574. }
  23575. .closeTri1 {
  23576. padding-left: 10px;
  23577. cursor: pointer;
  23578. }
  23579. .closeTri > img,
  23580. .closeTri1 > img {
  23581. width: 100%;
  23582. height: 100%;
  23583. /* transition: all .5s; */
  23584. }
  23585. .noToolBlue {
  23586. min-width: 10px;
  23587. width: 10px;
  23588. height: 10px;
  23589. background: #0061ff;
  23590. border-radius: 50%;
  23591. margin-left: 13px;
  23592. }
  23593. .stageChild,
  23594. .toolChild {
  23595. height: 0;
  23596. overflow: hidden;
  23597. transition: all 0.5s;
  23598. }
  23599. .toolChild {
  23600. /* margin: 0 0 0 17px;
  23601. padding: 0 0 0 20px;
  23602. border-left: 1px solid #d7d7d7; */
  23603. }
  23604. .toolChild > div + div{
  23605. margin-top:5px;
  23606. }
  23607. .gjCss {
  23608. display: flex;
  23609. flex-direction: row;
  23610. flex-wrap: nowrap;
  23611. align-items: center;
  23612. padding: 10px 0 10px 40px;
  23613. box-sizing: border-box;
  23614. font-size: 14px;
  23615. cursor: pointer;
  23616. border-radius:5px;
  23617. }
  23618. .toolChild > div {
  23619. position: relative;
  23620. width: 100%;
  23621. }
  23622. .toolChild > div::before {
  23623. /* content: "";
  23624. width: 15px;
  23625. height: 1px;
  23626. background: #cad1dc;
  23627. position: absolute;
  23628. top: 24px;
  23629. left: -20px;
  23630. display: block; */
  23631. }
  23632. .isGjCss {
  23633. /* color: #0061ff; */
  23634. color:#fff;
  23635. background: rgb(55, 129, 252);
  23636. /* background-color: #e0eafb !important;
  23637. color: #0061ff !important; */
  23638. }
  23639. .navItem {
  23640. background: #ffffff;
  23641. border-radius: 4px;
  23642. width: 100%;
  23643. margin: 10px auto;
  23644. position: relative;
  23645. height: 40px;
  23646. display: flex;
  23647. flex-direction: row;
  23648. flex-wrap: nowrap;
  23649. align-items: center;
  23650. }
  23651. .navItemList {
  23652. display: flex;
  23653. flex-direction: row;
  23654. flex-wrap: nowrap;
  23655. align-items: center;
  23656. padding: 0 13px;
  23657. cursor: pointer;
  23658. width: calc(100% - 60px);
  23659. height: 100%;
  23660. }
  23661. .navItemList > div:first-child {
  23662. min-width: 60px;
  23663. }
  23664. .navItemList > div:last-child {
  23665. width: calc(100% - 80px);
  23666. white-space: nowrap;
  23667. overflow: hidden;
  23668. text-overflow: ellipsis;
  23669. word-break: break-word;
  23670. }
  23671. /* .isItemList > div {
  23672. color: #fff !important;
  23673. } */
  23674. .tool_work_box {
  23675. width: 100%;
  23676. padding: 0 37px 0;
  23677. box-sizing: border-box;
  23678. }
  23679. .tool_box {
  23680. width: 100%;
  23681. padding: 0 0 0 20px;
  23682. }
  23683. .tool_type_box {
  23684. display: flex;
  23685. flex-direction: row;
  23686. align-items: baseline;
  23687. flex-wrap: nowrap;
  23688. justify-content: flex-start;
  23689. position: relative;
  23690. }
  23691. .toolSort {
  23692. display: flex;
  23693. flex-direction: row;
  23694. flex-wrap: wrap;
  23695. justify-content: flex-start;
  23696. align-items: flex-start;
  23697. padding: 0 0 15px 0;
  23698. }
  23699. .toolSort > div {
  23700. margin: 0 10px 0 0;
  23701. width: 135px;
  23702. box-sizing: border-box;
  23703. border: 2px solid transparent;
  23704. }
  23705. .tools {
  23706. width: 100%;
  23707. display: flex;
  23708. flex-direction: column;
  23709. flex-wrap: nowrap;
  23710. align-items: flex-start;
  23711. }
  23712. .whiteBIcon {
  23713. width: fit-content;
  23714. cursor: pointer;
  23715. display: flex;
  23716. flex-direction: column;
  23717. flex-wrap: nowrap;
  23718. align-items: center;
  23719. font-size: 14px;
  23720. }
  23721. .tool:hover {
  23722. border: 2px solid #a5c7ff;
  23723. border-radius: 5px;
  23724. }
  23725. .whiteBIcon > img {
  23726. width: 65px;
  23727. height: 100%;
  23728. }
  23729. .whiteBIcon > img {
  23730. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  23731. border-radius: 15px;
  23732. }
  23733. .check {
  23734. /* width: 20px;
  23735. height: 20px; */
  23736. cursor: pointer;
  23737. margin: 10px 0;
  23738. position: absolute;
  23739. right: 2px;
  23740. top: -5px;
  23741. }
  23742. .noChoose,
  23743. .isChoose {
  23744. width: 15px;
  23745. height: 15px;
  23746. border-radius: 50%;
  23747. border: 1px solid #adadad;
  23748. }
  23749. .isChoose {
  23750. border: 4px solid #0363ff !important;
  23751. width: 10px;
  23752. height: 10px;
  23753. }
  23754. .isToolChoose {
  23755. border: 2px solid #5394ff !important;
  23756. border-radius: 5px;
  23757. box-shadow: 0 0 6px 0px #5394ff;
  23758. }
  23759. .checkDiv {
  23760. display: flex;
  23761. align-items: center;
  23762. }
  23763. .checkDiv span {
  23764. margin-left: 5px;
  23765. color: #858585;
  23766. }
  23767. .check img {
  23768. width: 20px;
  23769. height: 20px;
  23770. }
  23771. .lockTaskIcon {
  23772. width: 20px;
  23773. height: 20px;
  23774. position: absolute;
  23775. right: 10px;
  23776. top: 10px;
  23777. }
  23778. .lockTaskIcon > img {
  23779. width: 100%;
  23780. height: 100%;
  23781. }
  23782. .pick_box {
  23783. display: flex;
  23784. align-items: flex-start;
  23785. flex-wrap: wrap;
  23786. }
  23787. .selectBox {
  23788. width: 110px;
  23789. margin-left: 10px;
  23790. margin: 0 10px 0 auto;
  23791. }
  23792. .selectBox >>> .el-input__inner {
  23793. height: 30px;
  23794. line-height: 30px;
  23795. }
  23796. .selectBox >>> .el-input__icon {
  23797. line-height: 30px;
  23798. }
  23799. .sentenceTitle {
  23800. display: flex;
  23801. flex-direction: row;
  23802. flex-wrap: nowrap;
  23803. align-items: center;
  23804. }
  23805. .sentenceTitle::before {
  23806. content: attr(index);
  23807. background: #3681fc;
  23808. border-radius: 50%;
  23809. color: #fff;
  23810. width: 25px;
  23811. height: 25px;
  23812. min-width: 25px;
  23813. min-height: 25px;
  23814. text-align: center;
  23815. line-height: 25px;
  23816. margin-right: 5px;
  23817. }
  23818. .hfBox {
  23819. padding: 10px;
  23820. box-sizing: border-box;
  23821. }
  23822. .whoReplyWho {
  23823. display: flex;
  23824. flex-direction: row;
  23825. flex-wrap: nowrap;
  23826. align-items: baseline;
  23827. justify-content: flex-start;
  23828. }
  23829. .hfBottom {
  23830. display: flex;
  23831. flex-direction: row;
  23832. flex-wrap: nowrap;
  23833. align-items: center;
  23834. justify-content: space-between;
  23835. font-size: 14px;
  23836. }
  23837. .deleteHfItem {
  23838. cursor: pointer;
  23839. width: 20px;
  23840. height: 20px;
  23841. }
  23842. .deleteHfItem > img {
  23843. width: 100%;
  23844. height: 100%;
  23845. }
  23846. .whoReplyWho > .hfImg {
  23847. width: 12px;
  23848. height: 12px;
  23849. margin: 0 5px;
  23850. }
  23851. .whoReplyWho > .hfImg > img {
  23852. width: 100%;
  23853. height: 100%;
  23854. }
  23855. .hfContent {
  23856. padding-top: 10px;
  23857. box-sizing: border-box;
  23858. display: -webkit-box;
  23859. overflow: hidden;
  23860. white-space: normal !important;
  23861. text-overflow: ellipsis;
  23862. word-wrap: break-word;
  23863. -webkit-box-orient: vertical;
  23864. }
  23865. .hfTime {
  23866. text-align: left;
  23867. box-sizing: border-box;
  23868. padding: 10px 0 10px 0px;
  23869. color: #bfbfbf;
  23870. font-size: 14px;
  23871. }
  23872. .btnAllNT {
  23873. position: fixed;
  23874. bottom: 100px;
  23875. right: 40px;
  23876. z-index: 999;
  23877. display: flex;
  23878. flex-direction: row;
  23879. }
  23880. .btnAllNT > img {
  23881. cursor: pointer;
  23882. width: 80px;
  23883. }
  23884. .toolMask {
  23885. position: fixed;
  23886. width: 100%;
  23887. height: 100%;
  23888. background: #3f3c3c;
  23889. opacity: 0.5;
  23890. top: 0;
  23891. left: 0;
  23892. z-index: 999;
  23893. }
  23894. .addToolCss {
  23895. position: fixed;
  23896. z-index: 999;
  23897. background: #fff;
  23898. right: 5%;
  23899. bottom: 18%;
  23900. min-width: 1035px;
  23901. min-height: 300px;
  23902. border-radius: 10px;
  23903. box-shadow: 0 0 8px 1px #b2b2b2;
  23904. }
  23905. .toolTop {
  23906. display: flex;
  23907. flex-direction: row;
  23908. flex-wrap: nowrap;
  23909. justify-content: space-between;
  23910. align-items: center;
  23911. padding: 20px;
  23912. }
  23913. .toolTop > div:nth-child(2) {
  23914. width: 15px;
  23915. height: 15px;
  23916. padding-right: 10px;
  23917. cursor: pointer;
  23918. }
  23919. .toolTop > div:nth-child(2) > img {
  23920. width: 100%;
  23921. height: 100%;
  23922. }
  23923. .fullStyle>>>.el-dialog__body {
  23924. height: calc(100% - 125px) !important;
  23925. box-sizing: border-box;
  23926. padding: 30px 0 !important;
  23927. background: #fff !important;
  23928. }
  23929. .fullStyle>>>.el-dialog {
  23930. width: 100% !important;
  23931. max-width: 100% !important;
  23932. height: 100% !important;
  23933. margin: 0 !important;
  23934. }
  23935. .fullStyle {
  23936. width: 100% !important;
  23937. max-width: 100% !important;
  23938. height: 100% !important;
  23939. margin: 0 auto !important;
  23940. }
  23941. .fullStyle>>>.el-dialog__footer{
  23942. background: #fff !important;
  23943. }
  23944. .engUpBox {
  23945. width: 100%;
  23946. height: 100%;
  23947. }
  23948. .engTitle,
  23949. .engText {
  23950. display: flex;
  23951. flex-direction: row;
  23952. flex-wrap: nowrap;
  23953. align-items: flex-start;
  23954. padding: 0 20px 20px 20px;
  23955. box-sizing: border-box;
  23956. }
  23957. .engTitle > .div:first-child,
  23958. .engText > div:first-child {
  23959. min-width: 75px;
  23960. }
  23961. .correctBox{
  23962. width: 100%;
  23963. display: flex;
  23964. flex-direction: row;
  23965. flex-wrap: nowrap;
  23966. align-items: flex-start;
  23967. }
  23968. .oldBox{
  23969. width: 50%;
  23970. height: 100%;
  23971. display: flex;
  23972. flex-direction: column;
  23973. flex-wrap: nowrap;
  23974. align-items: center;
  23975. border-top: 1px solid #d9d9d9;
  23976. border-left: 1px solid #d9d9d9;
  23977. border-right: 1px solid #d9d9d9;
  23978. }
  23979. .oldBox>div:first-child{
  23980. width: 100%;
  23981. text-align: center;
  23982. background: #d9d9d9;
  23983. height: 35px;
  23984. line-height: 35px;
  23985. font-weight: bold;
  23986. }
  23987. .oldText{
  23988. width: 100%;
  23989. height: calc(100% - 35px);
  23990. overflow: auto;
  23991. margin: 10px 0;
  23992. display: flex;
  23993. flex-direction: column;
  23994. flex-wrap: nowrap;
  23995. align-content: center;
  23996. align-items: center;
  23997. }
  23998. .detailBox{
  23999. width: 50%;
  24000. padding: 10px;
  24001. background: #f6f6f6;
  24002. border-radius: 5px;
  24003. }
  24004. .oldDetail,.oldDetail1{
  24005. padding-bottom: 30px;
  24006. }
  24007. .oldImg{
  24008. width:30px;
  24009. height: 30px;
  24010. }
  24011. .oldImg>img{
  24012. width: 100%;
  24013. height: 100%;
  24014. }
  24015. .allName{
  24016. min-width: 200px;
  24017. white-space: nowrap;
  24018. overflow: hidden;
  24019. text-overflow: ellipsis;
  24020. word-break: break-word;
  24021. cursor: pointer;
  24022. text-align: center;
  24023. border: 1px solid #bcc2cc;
  24024. box-sizing: border-box;
  24025. }
  24026. .engUpTop{
  24027. max-height: 300px;
  24028. overflow: auto;
  24029. }
  24030. .isUpdateToolDetailClass{
  24031. padding: 0 !important;
  24032. }
  24033. .isUpdateToolDetailClass textarea{
  24034. padding:12px;
  24035. font-size: 16px;
  24036. min-height:100%;
  24037. width: 100%;
  24038. box-sizing:border-box;
  24039. outline: none;
  24040. border:none;
  24041. line-height: 30px;
  24042. resize: none;
  24043. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  24044. color: #838383;
  24045. }
  24046. .show_taskD {
  24047. min-width: fit-content;
  24048. margin-left: 10px;
  24049. display: flex;
  24050. align-items: center;
  24051. font-size: 14px;
  24052. cursor: pointer;
  24053. color: #717c8d;
  24054. }
  24055. .show_taskD > img {
  24056. width: 15px;
  24057. margin-right: 5px;
  24058. transition: 0.2s all;
  24059. transform: rotate(-90deg);
  24060. }
  24061. .show_taskD.show > img {
  24062. transform: rotate(0deg);
  24063. }
  24064. .correctCss{
  24065. position: absolute;
  24066. bottom: -70px;
  24067. background: #409eff;
  24068. color: #fff;
  24069. }
  24070. .ScoreBtn{
  24071. background: rgba(87, 159, 248, 1);
  24072. display: flex;
  24073. justify-content: center;
  24074. align-items: center;
  24075. color: #fff;
  24076. font-size: 14px;
  24077. padding:8px 12px;
  24078. border-radius: 5px;
  24079. cursor: pointer;
  24080. }
  24081. .max-height-popover .el-popover {
  24082. min-height: 200px;
  24083. max-height: 400px; /* 设置最大高度 */
  24084. overflow: auto; /* 超出部分显示滚动条 */
  24085. }
  24086. </style>