studyStudent.vue 903 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327
  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. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1329. <div style="height:100%;"
  1330. v-html="contentConvent(tool.toolDetail)"
  1331. v-if="toolDetailIndex != toolIndex"
  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: -45px"
  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: -45px"
  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: -45px"
  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,w)"
  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,w)"
  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,w)"
  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,w)"
  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,w)"
  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,w)"
  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. style="display: flex;justify-content: space-between;align-items: center;"
  2454. v-if="
  2455. (worksStudent.length &&
  2456. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2457. "
  2458. >
  2459. <div class="worksTop">
  2460. <div>作业预览</div>
  2461. <div
  2462. class="corOpen"
  2463. @click="contract(toolIndex)"
  2464. v-if="
  2465. (isCloseList[toolIndex].isCloseBoolean) &&
  2466. isCloseList[toolIndex].isClose == 0
  2467. "
  2468. >
  2469. 折叠
  2470. </div>
  2471. <div
  2472. class="corOpen"
  2473. @click="contract(toolIndex)"
  2474. v-if="isCloseList[toolIndex].isClose == 1"
  2475. >
  2476. 展开
  2477. </div>
  2478. </div>
  2479. <div style="display: flex;" v-if="courseDetail.userid == userid && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length && courseDetail.state == 5 && finalMarkList == toolIndex ">
  2480. <div style="margin-right:10px" class="ScoreBtn" @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  2481. 一键重置
  2482. </div>
  2483. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
  2484. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  2485. AI评分
  2486. </div>
  2487. <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  2488. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  2489. AI评分
  2490. </div>
  2491. <div class="ScoreBtn" v-else >
  2492. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  2493. 正在评分
  2494. </div>
  2495. </div>
  2496. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2497. </div>
  2498. <div
  2499. class="group_workBox"
  2500. v-for="(g, gindex) in courseGroup.group"
  2501. :key="gindex"
  2502. >
  2503. <div class="group_box">
  2504. <div class="group_title">
  2505. <el-tooltip
  2506. class="item"
  2507. effect="light"
  2508. :content="g.name"
  2509. placement="top"
  2510. >
  2511. <div class="group_name">{{ g.name }}</div>
  2512. </el-tooltip>
  2513. </div>
  2514. <div
  2515. class="group_work"
  2516. v-if="
  2517. g.works &&
  2518. g.works.length &&
  2519. g.works[toolIndex].length
  2520. "
  2521. >
  2522. <div
  2523. class="works"
  2524. style="
  2525. width: 200px;
  2526. height: 140px;
  2527. margin: 10px 10px 10px 0;
  2528. border-radius: 15px;
  2529. box-shadow: 0 0 6px 1px #dfdada;
  2530. "
  2531. v-for="(w, wIndex) in g.works[toolIndex]"
  2532. :key="wIndex"
  2533. :class="w.type == 1 ? 'isTypeOne' : ''"
  2534. >
  2535. <div class="workImg" v-if="w.type == 0">
  2536. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2537. <img
  2538. :src="w.works"
  2539. @click="previewImg(w.works,w)"
  2540. alt
  2541. />
  2542. <div
  2543. class="answerScore"
  2544. v-if="w.score"
  2545. @click.stop="openScore(w)"
  2546. :class="{
  2547. rightW:
  2548. w.userid == userid ||
  2549. tType == 1 ||
  2550. tType == 4 ||
  2551. w.ateacher == userid,
  2552. }"
  2553. >
  2554. {{ JSON.parse(w.score).wScore }}分
  2555. </div>
  2556. <div
  2557. class="answerScore"
  2558. @click.stop="openScore(w)"
  2559. v-else-if="courseDetail.userid == userid"
  2560. :class="{
  2561. rightW:
  2562. w.userid == userid ||
  2563. tType == 1 ||
  2564. tType == 4 ||
  2565. w.ateacher == userid,
  2566. }"
  2567. >
  2568. 评分
  2569. </div>
  2570. <img
  2571. class="deleteImg"
  2572. src="../../assets/deleteworks.png"
  2573. v-if="
  2574. w.userid == userid || tType == 1 || tType == 4
  2575. "
  2576. @click.stop="deleteWorks(w.wid)"
  2577. alt
  2578. />
  2579. </div>
  2580. <div class="workImg" v-if="w.type == 1">
  2581. <img :src="word" @click="openFile(w.works)" alt />
  2582. <!-- @click="openFile(w.works)" -->
  2583. <div
  2584. class="answerScore"
  2585. v-if="w.score"
  2586. @click.stop="openScore(w)"
  2587. :class="{
  2588. rightW:
  2589. w.userid == userid ||
  2590. tType == 1 ||
  2591. tType == 4 ||
  2592. w.ateacher == userid,
  2593. }"
  2594. >
  2595. {{ JSON.parse(w.score).wScore }}分
  2596. </div>
  2597. <div
  2598. class="answerScore"
  2599. @click.stop="openScore(w)"
  2600. v-else-if="courseDetail.userid == userid"
  2601. :class="{
  2602. rightW:
  2603. w.userid == userid ||
  2604. tType == 1 ||
  2605. tType == 4 ||
  2606. w.ateacher == userid,
  2607. }"
  2608. >
  2609. 评分
  2610. </div>
  2611. <img
  2612. class="deleteImg"
  2613. src="../../assets/deleteworks.png"
  2614. v-if="
  2615. w.userid == userid || tType == 1 || tType == 4
  2616. "
  2617. @click.stop="deleteWorks(w.wid)"
  2618. alt
  2619. />
  2620. </div>
  2621. <div class="workImg" v-if="w.type == 3">
  2622. <img
  2623. style="cursor: pointer"
  2624. :src="video"
  2625. @click="openVideo(w)"
  2626. alt
  2627. />
  2628. <!-- @click="openVideo(w.works)" -->
  2629. <div
  2630. class="answerScore"
  2631. v-if="w.score"
  2632. @click.stop="openScore(w)"
  2633. :class="{
  2634. rightW:
  2635. w.userid == userid ||
  2636. tType == 1 ||
  2637. tType == 4 ||
  2638. w.ateacher == userid,
  2639. }"
  2640. >
  2641. {{ JSON.parse(w.score).wScore }}分
  2642. </div>
  2643. <div
  2644. class="answerScore"
  2645. @click.stop="openScore(w)"
  2646. v-else-if="courseDetail.userid == userid"
  2647. :class="{
  2648. rightW:
  2649. w.userid == userid ||
  2650. tType == 1 ||
  2651. tType == 4 ||
  2652. w.ateacher == userid,
  2653. }"
  2654. >
  2655. 评分
  2656. </div>
  2657. <img
  2658. class="deleteImg"
  2659. src="../../assets/deleteworks.png"
  2660. v-if="
  2661. w.userid == userid || tType == 1 || tType == 4
  2662. "
  2663. @click.stop="deleteWorks(w.wid)"
  2664. alt
  2665. />
  2666. </div>
  2667. <div class="workImg" v-if="w.type == 12">
  2668. <img
  2669. style="cursor: pointer"
  2670. :src="word2"
  2671. @click="downloadFile(w.works)"
  2672. alt
  2673. />
  2674. <!-- @click="openVideo(w.works)" -->
  2675. <div
  2676. class="answerScore"
  2677. v-if="w.score"
  2678. @click.stop="openScore(w)"
  2679. :class="{
  2680. rightW:
  2681. w.userid == userid ||
  2682. tType == 1 ||
  2683. tType == 4 ||
  2684. w.ateacher == userid,
  2685. }"
  2686. >
  2687. {{ JSON.parse(w.score).wScore }}分
  2688. </div>
  2689. <div
  2690. class="answerScore"
  2691. @click.stop="openScore(w)"
  2692. v-else-if="courseDetail.userid == userid"
  2693. :class="{
  2694. rightW:
  2695. w.userid == userid ||
  2696. tType == 1 ||
  2697. tType == 4 ||
  2698. w.ateacher == userid,
  2699. }"
  2700. >
  2701. 评分
  2702. </div>
  2703. <img
  2704. class="deleteImg"
  2705. src="../../assets/deleteworks.png"
  2706. v-if="
  2707. w.userid == userid || tType == 1 || tType == 4
  2708. "
  2709. @click.stop="deleteWorks(w.wid)"
  2710. alt
  2711. />
  2712. </div>
  2713. <div class="comment" style="min-width: 200px">
  2714. <div class="worksName">
  2715. <div>{{ w.sName }}</div>
  2716. </div>
  2717. <div class="commentList">
  2718. <div class="commentList">
  2719. <div
  2720. class="commentImg"
  2721. @click="
  2722. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2723. "
  2724. >
  2725. <img
  2726. :src="w.isLikes == true ? likes : noLikes"
  2727. alt=""
  2728. />
  2729. </div>
  2730. <div>{{ w.likesCount }}</div>
  2731. </div>
  2732. <div
  2733. class="commentList"
  2734. style="margin-right: 15px"
  2735. >
  2736. <div
  2737. class="commentImg"
  2738. @click="
  2739. commentOther(
  2740. w,
  2741. toolIndex,
  2742. wIndex,
  2743. null,
  2744. g.id
  2745. )
  2746. "
  2747. >
  2748. <img
  2749. src="../../assets/icon/comment/comment.png"
  2750. alt=""
  2751. />
  2752. </div>
  2753. <div>{{ w.commentCount }}</div>
  2754. </div>
  2755. </div>
  2756. </div>
  2757. </div>
  2758. </div>
  2759. <div class="group_work" v-else>暂无提交作业</div>
  2760. </div>
  2761. </div>
  2762. <div
  2763. :id="'tool-' + toolIndex"
  2764. :style="{
  2765. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2766. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2767. }"
  2768. class="worksDetailBox"
  2769. v-if="
  2770. worksStudent.length &&
  2771. worksStudent[toolIndex].length > 0
  2772. "
  2773. >
  2774. <div
  2775. class="works"
  2776. style="
  2777. width: 200px;
  2778. height: 140px;
  2779. margin: 10px 10px 10px 0;
  2780. border-radius: 15px;
  2781. box-shadow: 0 0 6px 1px #dfdada;
  2782. "
  2783. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2784. :key="wIndex"
  2785. :class="w.type == 1 ? 'isTypeOne' : ''"
  2786. >
  2787. <div class="workImg" v-if="w.type == 0">
  2788. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2789. <img
  2790. :src="w.works"
  2791. @click="previewImg(w.works,w)"
  2792. alt
  2793. />
  2794. <div
  2795. class="answerScore"
  2796. v-if="w.score"
  2797. @click.stop="openScore(w)"
  2798. :class="{
  2799. rightW:
  2800. w.userid == userid ||
  2801. tType == 1 ||
  2802. tType == 4 ||
  2803. w.ateacher == userid,
  2804. }"
  2805. >
  2806. {{ JSON.parse(w.score).wScore }}分
  2807. </div>
  2808. <div
  2809. class="answerScore"
  2810. @click.stop="openScore(w)"
  2811. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  2812. :class="{
  2813. rightW:
  2814. w.userid == userid ||
  2815. tType == 1 ||
  2816. tType == 4 ||
  2817. w.ateacher == userid,
  2818. }"
  2819. >
  2820. 评分
  2821. </div>
  2822. <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length">
  2823. <div
  2824. v-if="finalMarkList != toolIndex"
  2825. class="answerScore"
  2826. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  2827. :class="{
  2828. rightW:
  2829. w.userid == userid ||
  2830. tType == 1 ||
  2831. tType == 4 ||
  2832. w.ateacher == userid,
  2833. }"
  2834. >
  2835. <span>查看</span>
  2836. </div>
  2837. <el-popover
  2838. v-else
  2839. placement="top"
  2840. width="318"
  2841. :disabled="AIloading[toolIndex][wIndex].loading"
  2842. trigger="hover"
  2843. >
  2844. <markScore
  2845. :loading="AIloading[toolIndex][wIndex].loading"
  2846. :ref="`markSco${toolIndex}${wIndex}`"
  2847. @updateLoading=updateLoading
  2848. @updateDocSco=updateDocSco
  2849. @refreshOther=refreshOther
  2850. @markScoreDig=markScoreDig
  2851. @handleHide=handleHide
  2852. :wIndex="wIndex"
  2853. :scoCon="w"
  2854. :toolIndex="toolIndex"
  2855. :key="refreshKey"
  2856. :stage="courseType"
  2857. :task="taskCount"
  2858. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  2859. >
  2860. </markScore>
  2861. <div
  2862. class="answerScore"
  2863. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  2864. slot="reference"
  2865. :class="{
  2866. rightW:
  2867. w.userid == userid ||
  2868. tType == 1 ||
  2869. tType == 4 ||
  2870. w.ateacher == userid,
  2871. }"
  2872. >
  2873. <span v-if="AIloading[toolIndex][wIndex].sco">
  2874. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  2875. </span>
  2876. <span v-else>
  2877. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  2878. </span>
  2879. </div>
  2880. </el-popover>
  2881. </div>
  2882. <img
  2883. class="deleteImg"
  2884. src="../../assets/deleteworks.png"
  2885. v-if="
  2886. w.userid == userid || tType == 1 || tType == 4
  2887. "
  2888. @click.stop="deleteWorks(w.wid)"
  2889. alt
  2890. />
  2891. </div>
  2892. <div class="workImg" v-if="w.type == 1">
  2893. <img :src="word" @click="openFile(w.works)" alt />
  2894. <!-- @click="openFile(w.works)" -->
  2895. <div
  2896. class="answerScore"
  2897. v-if="w.score"
  2898. @click.stop="openScore(w)"
  2899. :class="{
  2900. rightW:
  2901. w.userid == userid ||
  2902. tType == 1 ||
  2903. tType == 4 ||
  2904. w.ateacher == userid,
  2905. }"
  2906. >
  2907. {{ JSON.parse(w.score).wScore }}分
  2908. </div>
  2909. <div
  2910. class="answerScore"
  2911. @click.stop="openScore(w)"
  2912. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  2913. :class="{
  2914. rightW:
  2915. w.userid == userid ||
  2916. tType == 1 ||
  2917. tType == 4 ||
  2918. w.ateacher == userid,
  2919. }"
  2920. >
  2921. 评分
  2922. </div>
  2923. <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length">
  2924. <div
  2925. v-if="finalMarkList != toolIndex"
  2926. class="answerScore"
  2927. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  2928. :class="{
  2929. rightW:
  2930. w.userid == userid ||
  2931. tType == 1 ||
  2932. tType == 4 ||
  2933. w.ateacher == userid,
  2934. }"
  2935. >
  2936. <span>查看</span>
  2937. </div>
  2938. <el-popover
  2939. v-else
  2940. placement="top"
  2941. width="318"
  2942. :disabled="AIloading[toolIndex][wIndex].loading"
  2943. trigger="hover"
  2944. >
  2945. <markScore
  2946. :loading="AIloading[toolIndex][wIndex].loading"
  2947. :ref="`markSco${toolIndex}${wIndex}`"
  2948. @updateLoading=updateLoading
  2949. @updateDocSco=updateDocSco
  2950. @refreshOther=refreshOther
  2951. @markScoreDig=markScoreDig
  2952. @handleHide=handleHide
  2953. :wIndex="wIndex"
  2954. :scoCon="w"
  2955. :toolIndex="toolIndex"
  2956. :key="refreshKey"
  2957. :stage="courseType"
  2958. :task="taskCount"
  2959. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  2960. >
  2961. </markScore>
  2962. <div
  2963. class="answerScore"
  2964. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  2965. slot="reference"
  2966. :class="{
  2967. rightW:
  2968. w.userid == userid ||
  2969. tType == 1 ||
  2970. tType == 4 ||
  2971. w.ateacher == userid,
  2972. }"
  2973. >
  2974. <span v-if="AIloading[toolIndex][wIndex].sco">
  2975. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  2976. </span>
  2977. <span v-else>
  2978. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  2979. </span>
  2980. </div>
  2981. </el-popover>
  2982. </div>
  2983. <img
  2984. class="deleteImg"
  2985. src="../../assets/deleteworks.png"
  2986. v-if="
  2987. w.userid == userid || tType == 1 || tType == 4
  2988. "
  2989. @click.stop="deleteWorks(w.wid)"
  2990. alt
  2991. />
  2992. </div>
  2993. <div class="workImg" v-if="w.type == 3">
  2994. <img
  2995. style="cursor: pointer"
  2996. :src="video"
  2997. @click="openVideo(w)"
  2998. alt
  2999. />
  3000. <!-- @click="openVideo(w.works)" -->
  3001. <div
  3002. class="answerScore"
  3003. v-if="w.score"
  3004. @click.stop="openScore(w)"
  3005. :class="{
  3006. rightW:
  3007. w.userid == userid ||
  3008. tType == 1 ||
  3009. tType == 4 ||
  3010. w.ateacher == userid,
  3011. }"
  3012. >
  3013. {{ JSON.parse(w.score).wScore }}分
  3014. </div>
  3015. <div
  3016. class="answerScore"
  3017. @click.stop="openScore(w)"
  3018. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  3019. :class="{
  3020. rightW:
  3021. w.userid == userid ||
  3022. tType == 1 ||
  3023. tType == 4 ||
  3024. w.ateacher == userid,
  3025. }"
  3026. >
  3027. 评分
  3028. </div>
  3029. <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length">
  3030. <div
  3031. v-if="finalMarkList != toolIndex"
  3032. class="answerScore"
  3033. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  3034. :class="{
  3035. rightW:
  3036. w.userid == userid ||
  3037. tType == 1 ||
  3038. tType == 4 ||
  3039. w.ateacher == userid,
  3040. }"
  3041. >
  3042. <span>查看</span>
  3043. </div>
  3044. <el-popover
  3045. v-else
  3046. placement="top"
  3047. width="318"
  3048. :disabled="AIloading[toolIndex][wIndex].loading"
  3049. trigger="hover"
  3050. >
  3051. <markScore
  3052. :loading="AIloading[toolIndex][wIndex].loading"
  3053. :ref="`markSco${toolIndex}${wIndex}`"
  3054. @updateLoading=updateLoading
  3055. @updateDocSco=updateDocSco
  3056. @refreshOther=refreshOther
  3057. @markScoreDig=markScoreDig
  3058. @handleHide=handleHide
  3059. :wIndex="wIndex"
  3060. :scoCon="w"
  3061. :toolIndex="toolIndex"
  3062. :key="refreshKey"
  3063. :stage="courseType"
  3064. :task="taskCount"
  3065. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  3066. >
  3067. </markScore>
  3068. <div
  3069. class="answerScore"
  3070. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  3071. slot="reference"
  3072. :class="{
  3073. rightW:
  3074. w.userid == userid ||
  3075. tType == 1 ||
  3076. tType == 4 ||
  3077. w.ateacher == userid,
  3078. }"
  3079. >
  3080. <span v-if="AIloading[toolIndex][wIndex].sco">
  3081. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  3082. </span>
  3083. <span v-else>
  3084. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  3085. </span>
  3086. </div>
  3087. </el-popover>
  3088. </div>
  3089. <img
  3090. class="deleteImg"
  3091. src="../../assets/deleteworks.png"
  3092. v-if="
  3093. w.userid == userid || tType == 1 || tType == 4
  3094. "
  3095. @click.stop="deleteWorks(w.wid)"
  3096. alt
  3097. />
  3098. </div>
  3099. <div class="workImg" v-if="w.type == 12">
  3100. <img
  3101. style="cursor: pointer"
  3102. :src="word2"
  3103. @click="downloadFile(w.works)"
  3104. alt
  3105. />
  3106. <!-- @click="openVideo(w.works)" -->
  3107. <div
  3108. class="answerScore"
  3109. v-if="w.score"
  3110. @click.stop="openScore(w)"
  3111. :class="{
  3112. rightW:
  3113. w.userid == userid ||
  3114. tType == 1 ||
  3115. tType == 4 ||
  3116. w.ateacher == userid,
  3117. }"
  3118. >
  3119. {{ JSON.parse(w.score).wScore }}分
  3120. </div>
  3121. <div
  3122. class="answerScore"
  3123. @click.stop="openScore(w)"
  3124. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  3125. :class="{
  3126. rightW:
  3127. w.userid == userid ||
  3128. tType == 1 ||
  3129. tType == 4 ||
  3130. w.ateacher == userid,
  3131. }"
  3132. >
  3133. 评分
  3134. </div>
  3135. <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length">
  3136. <div
  3137. v-if="finalMarkList != toolIndex"
  3138. class="answerScore"
  3139. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  3140. :class="{
  3141. rightW:
  3142. w.userid == userid ||
  3143. tType == 1 ||
  3144. tType == 4 ||
  3145. w.ateacher == userid,
  3146. }"
  3147. >
  3148. <span>查看</span>
  3149. </div>
  3150. <el-popover
  3151. v-else
  3152. placement="top"
  3153. width="318"
  3154. :disabled="AIloading[toolIndex][wIndex].loading"
  3155. trigger="hover"
  3156. >
  3157. <markScore
  3158. :loading="AIloading[toolIndex][wIndex].loading"
  3159. :ref="`markSco${toolIndex}${wIndex}`"
  3160. @updateLoading=updateLoading
  3161. @updateDocSco=updateDocSco
  3162. @refreshOther=refreshOther
  3163. @markScoreDig=markScoreDig
  3164. @handleHide=handleHide
  3165. :wIndex="wIndex"
  3166. :scoCon="w"
  3167. :toolIndex="toolIndex"
  3168. :key="refreshKey"
  3169. :stage="courseType"
  3170. :task="taskCount"
  3171. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  3172. >
  3173. </markScore>
  3174. <div
  3175. class="answerScore"
  3176. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  3177. slot="reference"
  3178. :class="{
  3179. rightW:
  3180. w.userid == userid ||
  3181. tType == 1 ||
  3182. tType == 4 ||
  3183. w.ateacher == userid,
  3184. }"
  3185. >
  3186. <span v-if="AIloading[toolIndex][wIndex].sco">
  3187. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  3188. </span>
  3189. <span v-else>
  3190. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  3191. </span>
  3192. </div>
  3193. </el-popover>
  3194. </div>
  3195. <img
  3196. class="deleteImg"
  3197. src="../../assets/deleteworks.png"
  3198. v-if="
  3199. w.userid == userid || tType == 1 || tType == 4
  3200. "
  3201. @click.stop="deleteWorks(w.wid)"
  3202. alt
  3203. />
  3204. </div>
  3205. <div class="comment" style="min-width: 200px">
  3206. <div class="worksName">
  3207. <div>{{ w.sName }}</div>
  3208. </div>
  3209. <div class="commentList">
  3210. <div class="commentList">
  3211. <div
  3212. class="commentImg"
  3213. @click="
  3214. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3215. "
  3216. >
  3217. <img
  3218. :src="w.isLikes == true ? likes : noLikes"
  3219. alt=""
  3220. />
  3221. </div>
  3222. <div>{{ w.likesCount }}</div>
  3223. </div>
  3224. <div class="commentList" style="margin-right: 15px">
  3225. <div
  3226. class="commentImg"
  3227. @click="commentOther(w, toolIndex, wIndex)"
  3228. >
  3229. <img
  3230. src="../../assets/icon/comment/comment.png"
  3231. alt=""
  3232. />
  3233. </div>
  3234. <div>{{ w.commentCount }}</div>
  3235. </div>
  3236. </div>
  3237. </div>
  3238. </div>
  3239. </div>
  3240. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3241. 未提交
  3242. </div>
  3243. <div
  3244. class="noWorksS"
  3245. v-if="noWorksS && noWorksS[toolIndex].length"
  3246. >
  3247. <div
  3248. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3249. :key="sIndex"
  3250. class="noWorksName"
  3251. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3252. >
  3253. <el-tooltip effect="dark" :content="s.student" placement="top">
  3254. <span>{{ s.student }}</span>
  3255. </el-tooltip>
  3256. </div>
  3257. </div>
  3258. </div>
  3259. <div
  3260. v-if="
  3261. tType &&
  3262. ((tType == 2 && sIsOpen == true) ||
  3263. tType == 1 ||
  3264. tType == 4) &&
  3265. tool.tool.indexOf(70) != -1
  3266. "
  3267. class="worksBox"
  3268. >
  3269. <div
  3270. class="zuoyeYulan"
  3271. v-if="
  3272. (worksStudent.length &&
  3273. worksStudent[toolIndex].length > 0)
  3274. "
  3275. >
  3276. <div class="worksTop">
  3277. <div>作业预览</div>
  3278. <div
  3279. class="corOpen"
  3280. @click="contract(toolIndex)"
  3281. v-if="
  3282. (isCloseList[toolIndex].isCloseBoolean) &&
  3283. isCloseList[toolIndex].isClose == 0
  3284. "
  3285. >
  3286. 折叠
  3287. </div>
  3288. <div
  3289. class="corOpen"
  3290. @click="contract(toolIndex)"
  3291. v-if="isCloseList[toolIndex].isClose == 1"
  3292. >
  3293. 展开
  3294. </div>
  3295. </div>
  3296. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3297. </div>
  3298. <div
  3299. :id="'tool-' + toolIndex"
  3300. :style="{
  3301. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3302. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3303. }"
  3304. class="worksDetailBox"
  3305. v-if="
  3306. worksStudent.length &&
  3307. worksStudent[toolIndex].length > 0
  3308. "
  3309. >
  3310. <div
  3311. class="works"
  3312. style="
  3313. width: 200px;
  3314. height: 140px;
  3315. margin: 10px 10px 10px 0;
  3316. border-radius: 15px;
  3317. box-shadow: 0 0 6px 1px #dfdada;
  3318. "
  3319. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3320. :key="wIndex"
  3321. :class="w.type == 1 ? 'isTypeOne' : ''"
  3322. >
  3323. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3324. <img :src="word" alt />
  3325. <img
  3326. class="deleteImg"
  3327. src="../../assets/deleteworks.png"
  3328. v-if="
  3329. w.userid == userid || tType == 1 || tType == 4
  3330. "
  3331. @click.stop="deleteWorks(w.wid)"
  3332. alt
  3333. />
  3334. </div>
  3335. <div class="comment" style="min-width: 200px">
  3336. <div class="worksName">
  3337. <div>{{ w.sName }}</div>
  3338. </div>
  3339. </div>
  3340. </div>
  3341. </div>
  3342. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3343. 未提交
  3344. </div>
  3345. <div
  3346. class="noWorksS"
  3347. v-if="noWorksS && noWorksS[toolIndex].length"
  3348. >
  3349. <div
  3350. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3351. :key="sIndex"
  3352. class="noWorksName"
  3353. >
  3354. <el-tooltip effect="dark" :content="s.student" placement="top">
  3355. <span>{{ s.student }}</span>
  3356. </el-tooltip>
  3357. </div>
  3358. </div>
  3359. </div>
  3360. <div
  3361. v-if="
  3362. tType &&
  3363. tType == 2 &&
  3364. !sIsOpen &&
  3365. tool.tool.indexOf(70) != -1
  3366. "
  3367. class="worksBox"
  3368. >
  3369. <div
  3370. class="zuoyeYulan"
  3371. v-if="workStudent[toolIndex].length > 0"
  3372. >
  3373. <span class="worksTitle">作业预览</span>
  3374. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3375. </div>
  3376. <div
  3377. class="worksDetailBox"
  3378. v-if="workStudent[toolIndex].length > 0"
  3379. >
  3380. <div
  3381. class="works"
  3382. style="
  3383. width: 200px;
  3384. height: 140px;
  3385. margin: 10px 10px 10px 0;
  3386. box-shadow: 0 0 6px 1px #dfdada;
  3387. "
  3388. v-for="(w, wIndex) in workStudent[toolIndex]"
  3389. :key="wIndex"
  3390. >
  3391. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3392. <img :src="word" alt />
  3393. <img
  3394. class="deleteImg"
  3395. src="../../assets/deleteworks.png"
  3396. v-if="
  3397. w.userid == userid || tType == 1 || tType == 4
  3398. "
  3399. @click.stop="deleteWorks(w.wid)"
  3400. alt
  3401. />
  3402. </div>
  3403. <div class="worksName">
  3404. <div>{{ w.sName }}</div>
  3405. </div>
  3406. </div>
  3407. </div>
  3408. </div>
  3409. <div
  3410. v-if="
  3411. tType &&
  3412. ((tType == 2 && sIsOpen == true) ||
  3413. tType == 1 ||
  3414. tType == 4) &&
  3415. tool.tool.indexOf(32) != -1
  3416. "
  3417. class="worksBox"
  3418. >
  3419. <div
  3420. class="zuoyeYulan"
  3421. v-if="
  3422. worksStudent.length &&
  3423. worksStudent[toolIndex].length > 0
  3424. "
  3425. >
  3426. <div class="worksTop">
  3427. <div>作业预览</div>
  3428. <div
  3429. class="corOpen"
  3430. @click="contract(toolIndex)"
  3431. v-if="
  3432. (isCloseList[toolIndex].isCloseBoolean) &&
  3433. isCloseList[toolIndex].isClose == 0
  3434. "
  3435. >
  3436. 折叠
  3437. </div>
  3438. <div
  3439. class="corOpen"
  3440. @click="contract(toolIndex)"
  3441. v-if="isCloseList[toolIndex].isClose == 1"
  3442. >
  3443. 展开
  3444. </div>
  3445. </div>
  3446. </div>
  3447. <div
  3448. :id="'tool-' + toolIndex"
  3449. :style="{
  3450. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3451. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3452. }"
  3453. class="worksDetailBox"
  3454. v-if="
  3455. worksStudent.length &&
  3456. worksStudent[toolIndex].length > 0
  3457. "
  3458. >
  3459. <div
  3460. class="works"
  3461. style="
  3462. width: 200px;
  3463. height: 140px;
  3464. margin: 10px 10px 10px 0;
  3465. border-radius: 15px;
  3466. box-shadow: 0 0 6px 1px #dfdada;
  3467. "
  3468. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3469. :key="wIndex"
  3470. :class="w.type == 1 ? 'isTypeOne' : ''"
  3471. >
  3472. <div class="workImg">
  3473. <img
  3474. :src="word2"
  3475. @click="downloadFile(w.works)"
  3476. alt
  3477. />
  3478. <div
  3479. class="answerScore"
  3480. v-if="w.score"
  3481. @click.stop="openScore(w)"
  3482. :class="{
  3483. rightW:
  3484. w.userid == userid ||
  3485. tType == 1 ||
  3486. tType == 4 ||
  3487. w.ateacher == userid,
  3488. }"
  3489. >
  3490. {{ JSON.parse(w.score).wScore }}分
  3491. </div>
  3492. <div
  3493. class="answerScore"
  3494. @click.stop="openScore(w)"
  3495. v-else-if="courseDetail.userid == userid"
  3496. :class="{
  3497. rightW:
  3498. w.userid == userid ||
  3499. tType == 1 ||
  3500. tType == 4 ||
  3501. w.ateacher == userid,
  3502. }"
  3503. >
  3504. 评分
  3505. </div>
  3506. <img
  3507. class="deleteImg"
  3508. src="../../assets/deleteworks.png"
  3509. v-if="
  3510. w.userid == userid || tType == 1 || tType == 4
  3511. "
  3512. @click.stop="deleteWorks(w.wid)"
  3513. alt
  3514. />
  3515. </div>
  3516. <div class="comment" style="min-width: 200px">
  3517. <div class="worksName">
  3518. <div>{{ w.sName }}</div>
  3519. </div>
  3520. <div class="commentList">
  3521. <div class="commentList">
  3522. <div
  3523. class="commentImg"
  3524. @click="
  3525. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3526. "
  3527. >
  3528. <img
  3529. :src="w.isLikes == true ? likes : noLikes"
  3530. alt=""
  3531. />
  3532. </div>
  3533. <div>{{ w.likesCount }}</div>
  3534. </div>
  3535. <div class="commentList" style="margin-right: 15px">
  3536. <div
  3537. class="commentImg"
  3538. @click="commentOther(w, toolIndex, wIndex)"
  3539. >
  3540. <img
  3541. src="../../assets/icon/comment/comment.png"
  3542. alt=""
  3543. />
  3544. </div>
  3545. <div>{{ w.commentCount }}</div>
  3546. </div>
  3547. </div>
  3548. </div>
  3549. </div>
  3550. </div>
  3551. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3552. 未提交
  3553. </div>
  3554. <div
  3555. class="noWorksS"
  3556. v-if="noWorksS && noWorksS[toolIndex].length"
  3557. >
  3558. <div
  3559. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3560. :key="sIndex"
  3561. class="noWorksName"
  3562. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3563. >
  3564. <el-tooltip effect="dark" :content="s.student" placement="top">
  3565. <span>{{ s.student }}</span>
  3566. </el-tooltip>
  3567. </div>
  3568. </div>
  3569. </div>
  3570. <div
  3571. v-if="
  3572. tType &&
  3573. ((tType == 2 && sIsOpen == true) ||
  3574. tType == 1 ||
  3575. tType == 4) &&
  3576. tool.tool.indexOf(57) != -1
  3577. "
  3578. class="worksBox"
  3579. >
  3580. <div
  3581. class="zuoyeYulan"
  3582. v-if="
  3583. worksStudent.length &&
  3584. worksStudent[toolIndex].length > 0
  3585. "
  3586. >
  3587. <div class="worksTop">
  3588. <div>作业预览</div>
  3589. <div
  3590. class="corOpen"
  3591. @click="contract(toolIndex)"
  3592. v-if="
  3593. (isCloseList[toolIndex].isCloseBoolean) &&
  3594. isCloseList[toolIndex].isClose == 0
  3595. "
  3596. >
  3597. 折叠
  3598. </div>
  3599. <div
  3600. class="corOpen"
  3601. @click="contract(toolIndex)"
  3602. v-if="isCloseList[toolIndex].isClose == 1"
  3603. >
  3604. 展开
  3605. </div>
  3606. </div>
  3607. </div>
  3608. <div
  3609. :id="'tool-' + toolIndex"
  3610. :style="{
  3611. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3612. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3613. }"
  3614. class="worksDetailBox"
  3615. v-if="
  3616. worksStudent.length &&
  3617. worksStudent[toolIndex].length > 0
  3618. "
  3619. >
  3620. <div
  3621. class="works"
  3622. style="
  3623. width: 200px;
  3624. height: 140px;
  3625. margin: 10px 10px 10px 0;
  3626. border-radius: 15px;
  3627. box-shadow: 0 0 6px 1px #dfdada;
  3628. "
  3629. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3630. :key="wIndex"
  3631. :class="w.type == 1 ? 'isTypeOne' : ''"
  3632. >
  3633. <div class="workImg">
  3634. <img
  3635. :src="word2"
  3636. @click="downloadFile(w.works)"
  3637. v-if="w.type == 12"
  3638. alt
  3639. />
  3640. <img
  3641. :src="word2"
  3642. @click="
  3643. openCocoPi(57, toolIndex, w.userid, w.sName)
  3644. "
  3645. v-else-if="w.type == 15"
  3646. alt
  3647. />
  3648. <div
  3649. class="answerScore"
  3650. v-if="w.score"
  3651. @click.stop="openScore(w)"
  3652. :class="{
  3653. rightW:
  3654. w.userid == userid ||
  3655. tType == 1 ||
  3656. tType == 4 ||
  3657. w.ateacher == userid,
  3658. }"
  3659. >
  3660. {{ JSON.parse(w.score).wScore }}分
  3661. </div>
  3662. <div
  3663. class="answerScore"
  3664. @click.stop="openScore(w)"
  3665. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  3666. :class="{
  3667. rightW:
  3668. w.userid == userid ||
  3669. tType == 1 ||
  3670. tType == 4 ||
  3671. w.ateacher == userid,
  3672. }"
  3673. >
  3674. 评分
  3675. </div>
  3676. <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length">
  3677. <div
  3678. v-if="finalMarkList != toolIndex"
  3679. class="answerScore"
  3680. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  3681. :class="{
  3682. rightW:
  3683. w.userid == userid ||
  3684. tType == 1 ||
  3685. tType == 4 ||
  3686. w.ateacher == userid,
  3687. }"
  3688. >
  3689. <span>查看</span>
  3690. </div>
  3691. <el-popover
  3692. v-else
  3693. placement="top"
  3694. width="318"
  3695. :disabled="AIloading[toolIndex][wIndex].loading"
  3696. trigger="hover"
  3697. >
  3698. <markScore
  3699. :loading="AIloading[toolIndex][wIndex].loading"
  3700. :ref="`markSco${toolIndex}${wIndex}`"
  3701. @updateLoading=updateLoading
  3702. @updateDocSco=updateDocSco
  3703. @refreshOther=refreshOther
  3704. @markScoreDig=markScoreDig
  3705. @handleHide=handleHide
  3706. :wIndex="wIndex"
  3707. :scoCon="w"
  3708. :toolIndex="toolIndex"
  3709. :key="refreshKey"
  3710. :stage="courseType"
  3711. :task="taskCount"
  3712. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  3713. >
  3714. </markScore>
  3715. <div
  3716. class="answerScore"
  3717. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  3718. slot="reference"
  3719. :class="{
  3720. rightW:
  3721. w.userid == userid ||
  3722. tType == 1 ||
  3723. tType == 4 ||
  3724. w.ateacher == userid,
  3725. }"
  3726. >
  3727. <span v-if="AIloading[toolIndex][wIndex].sco">
  3728. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  3729. </span>
  3730. <span v-else>
  3731. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  3732. </span>
  3733. </div>
  3734. </el-popover>
  3735. </div>
  3736. <img
  3737. class="deleteImg"
  3738. src="../../assets/deleteworks.png"
  3739. v-if="
  3740. w.userid == userid || tType == 1 || tType == 4
  3741. "
  3742. @click.stop="deleteWorks(w.wid)"
  3743. alt
  3744. />
  3745. </div>
  3746. <div class="comment" style="min-width: 200px">
  3747. <div class="worksName">
  3748. <div>{{ w.sName }}</div>
  3749. </div>
  3750. <div class="commentList">
  3751. <div class="commentList">
  3752. <div
  3753. class="commentImg"
  3754. @click="
  3755. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3756. "
  3757. >
  3758. <img
  3759. :src="w.isLikes == true ? likes : noLikes"
  3760. alt=""
  3761. />
  3762. </div>
  3763. <div>{{ w.likesCount }}</div>
  3764. </div>
  3765. <div class="commentList" style="margin-right: 15px">
  3766. <div
  3767. class="commentImg"
  3768. @click="commentOther(w, toolIndex, wIndex)"
  3769. >
  3770. <img
  3771. src="../../assets/icon/comment/comment.png"
  3772. alt=""
  3773. />
  3774. </div>
  3775. <div>{{ w.commentCount }}</div>
  3776. </div>
  3777. </div>
  3778. </div>
  3779. </div>
  3780. </div>
  3781. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3782. 未提交
  3783. </div>
  3784. <div
  3785. class="noWorksS"
  3786. v-if="noWorksS && noWorksS[toolIndex].length"
  3787. >
  3788. <div
  3789. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3790. :key="sIndex"
  3791. class="noWorksName"
  3792. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3793. >
  3794. <el-tooltip effect="dark" :content="s.student" placement="top">
  3795. <span>{{ s.student }}</span>
  3796. </el-tooltip>
  3797. </div>
  3798. </div>
  3799. </div>
  3800. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3801. <div style="display: flex;justify-content: space-between;align-items: center;">
  3802. <div
  3803. class="zuoyeYulan"
  3804. v-if="
  3805. worksStudent.length &&
  3806. worksStudent[toolIndex].length > 0
  3807. "
  3808. >
  3809. <span class="worksTitle">作业预览</span>
  3810. <div
  3811. class="corOpen"
  3812. @click="contract(toolIndex)"
  3813. v-if="
  3814. (isCloseList[toolIndex].isCloseBoolean) &&
  3815. isCloseList[toolIndex].isClose == 0
  3816. "
  3817. >
  3818. 折叠
  3819. </div>
  3820. <div
  3821. class="corOpen"
  3822. @click="contract(toolIndex)"
  3823. v-if="isCloseList[toolIndex].isClose == 1"
  3824. >
  3825. 展开
  3826. </div>
  3827. </div>
  3828. <div style="display: flex;" v-if="courseDetail.userid == userid && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length && courseDetail.state == 5 && finalMarkList == toolIndex">
  3829. <div style="margin-right:10px" class="ScoreBtn" @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  3830. 一键重置
  3831. </div>
  3832. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
  3833. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  3834. AI评分
  3835. </div>
  3836. <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  3837. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  3838. AI评分
  3839. </div>
  3840. <div class="ScoreBtn" v-else >
  3841. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  3842. 正在评分
  3843. </div>
  3844. </div>
  3845. </div>
  3846. <div
  3847. :id="'tool-' + toolIndex"
  3848. :style="{
  3849. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3850. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3851. }"
  3852. class="worksDetailBox"
  3853. v-if="
  3854. worksStudent.length &&
  3855. worksStudent[toolIndex].length > 0
  3856. "
  3857. >
  3858. <div
  3859. class="works"
  3860. style="
  3861. width: 200px;
  3862. height: 140px;
  3863. margin: 10px 10px 10px 0;
  3864. border-radius: 15px;
  3865. box-shadow: 0 0 6px 1px #dfdada;
  3866. "
  3867. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3868. :key="wIndex"
  3869. :class="w.type == 1 ? 'isTypeOne' : ''"
  3870. >
  3871. <div class="workImg" v-if="w.type == 0">
  3872. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3873. <img
  3874. :src="w.works"
  3875. @click="previewImg(w.works,w)"
  3876. alt
  3877. />
  3878. <div
  3879. class="answerScore"
  3880. v-if="w.score"
  3881. @click.stop="openScore(w)"
  3882. :class="{
  3883. rightW:
  3884. w.userid == userid ||
  3885. tType == 1 ||
  3886. tType == 4 ||
  3887. w.ateacher == userid,
  3888. }"
  3889. >
  3890. {{ JSON.parse(w.score).wScore }}分
  3891. </div>
  3892. <div
  3893. class="answerScore"
  3894. @click.stop="openScore(w)"
  3895. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  3896. :class="{
  3897. rightW:
  3898. w.userid == userid ||
  3899. tType == 1 ||
  3900. tType == 4 ||
  3901. w.ateacher == userid,
  3902. }"
  3903. >
  3904. 评分
  3905. </div>
  3906. <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length">
  3907. <div
  3908. v-if="finalMarkList != toolIndex"
  3909. class="answerScore"
  3910. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  3911. :class="{
  3912. rightW:
  3913. w.userid == userid ||
  3914. tType == 1 ||
  3915. tType == 4 ||
  3916. w.ateacher == userid,
  3917. }"
  3918. >
  3919. <span>查看</span>
  3920. </div>
  3921. <el-popover
  3922. v-else
  3923. placement="top"
  3924. width="318"
  3925. :disabled="AIloading[toolIndex][wIndex].loading"
  3926. trigger="hover"
  3927. >
  3928. <markScore
  3929. :loading="AIloading[toolIndex][wIndex].loading"
  3930. :ref="`markSco${toolIndex}${wIndex}`"
  3931. @updateLoading=updateLoading
  3932. @updateDocSco=updateDocSco
  3933. @refreshOther=refreshOther
  3934. @markScoreDig=markScoreDig
  3935. @handleHide=handleHide
  3936. :wIndex="wIndex"
  3937. :scoCon="w"
  3938. :toolIndex="toolIndex"
  3939. :key="refreshKey"
  3940. :stage="courseType"
  3941. :task="taskCount"
  3942. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  3943. >
  3944. </markScore>
  3945. <div
  3946. class="answerScore"
  3947. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  3948. slot="reference"
  3949. :class="{
  3950. rightW:
  3951. w.userid == userid ||
  3952. tType == 1 ||
  3953. tType == 4 ||
  3954. w.ateacher == userid,
  3955. }"
  3956. >
  3957. <span v-if="AIloading[toolIndex][wIndex].sco">
  3958. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  3959. </span>
  3960. <span v-else>
  3961. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  3962. </span>
  3963. </div>
  3964. </el-popover>
  3965. </div>
  3966. <img
  3967. class="deleteImg"
  3968. src="../../assets/deleteworks.png"
  3969. v-if="
  3970. w.userid == userid || tType == 1 || tType == 4
  3971. "
  3972. @click.stop="deleteWorks(w.wid)"
  3973. alt
  3974. />
  3975. </div>
  3976. <div
  3977. class="workImg"
  3978. style="cursor: pointer"
  3979. v-if="w.type == 1"
  3980. >
  3981. <img :src="word" @click="openFile(w.works)" alt />
  3982. <!-- @click="openFile(w.works)" -->
  3983. <div
  3984. class="answerScore"
  3985. v-if="w.score"
  3986. @click.stop="openScore(w)"
  3987. :class="{
  3988. rightW:
  3989. w.userid == userid ||
  3990. tType == 1 ||
  3991. tType == 4 ||
  3992. w.ateacher == userid,
  3993. }"
  3994. >
  3995. {{ JSON.parse(w.score).wScore }}分
  3996. </div>
  3997. <div
  3998. class="answerScore"
  3999. @click.stop="openScore(w)"
  4000. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  4001. :class="{
  4002. rightW:
  4003. w.userid == userid ||
  4004. tType == 1 ||
  4005. tType == 4 ||
  4006. w.ateacher == userid,
  4007. }"
  4008. >
  4009. 评分
  4010. </div>
  4011. <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length">
  4012. <div
  4013. v-if="finalMarkList != toolIndex"
  4014. class="answerScore"
  4015. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  4016. :class="{
  4017. rightW:
  4018. w.userid == userid ||
  4019. tType == 1 ||
  4020. tType == 4 ||
  4021. w.ateacher == userid,
  4022. }"
  4023. >
  4024. <span>查看</span>
  4025. </div>
  4026. <el-popover
  4027. v-else
  4028. placement="top"
  4029. width="318"
  4030. :disabled="AIloading[toolIndex][wIndex].loading"
  4031. trigger="hover"
  4032. >
  4033. <markScore
  4034. :loading="AIloading[toolIndex][wIndex].loading"
  4035. :ref="`markSco${toolIndex}${wIndex}`"
  4036. @updateLoading=updateLoading
  4037. @updateDocSco=updateDocSco
  4038. @refreshOther=refreshOther
  4039. @markScoreDig=markScoreDig
  4040. @handleHide=handleHide
  4041. :wIndex="wIndex"
  4042. :scoCon="w"
  4043. :toolIndex="toolIndex"
  4044. :key="refreshKey"
  4045. :stage="courseType"
  4046. :task="taskCount"
  4047. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  4048. >
  4049. </markScore>
  4050. <div
  4051. class="answerScore"
  4052. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  4053. slot="reference"
  4054. :class="{
  4055. rightW:
  4056. w.userid == userid ||
  4057. tType == 1 ||
  4058. tType == 4 ||
  4059. w.ateacher == userid,
  4060. }"
  4061. >
  4062. <span v-if="AIloading[toolIndex][wIndex].sco">
  4063. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  4064. </span>
  4065. <span v-else>
  4066. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  4067. </span>
  4068. </div>
  4069. </el-popover>
  4070. </div>
  4071. <img
  4072. class="deleteImg"
  4073. src="../../assets/deleteworks.png"
  4074. v-if="
  4075. w.userid == userid || tType == 1 || tType == 4
  4076. "
  4077. @click.stop="deleteWorks(w.wid)"
  4078. alt
  4079. />
  4080. </div>
  4081. <div class="workImg" v-if="w.type == 3">
  4082. <img
  4083. style="cursor: pointer"
  4084. :src="video"
  4085. @click="openVideo(w)"
  4086. alt
  4087. />
  4088. <!-- @click="openVideo(w.works)" -->
  4089. <div
  4090. class="answerScore"
  4091. v-if="w.score"
  4092. @click.stop="openScore(w)"
  4093. :class="{
  4094. rightW:
  4095. w.userid == userid ||
  4096. tType == 1 ||
  4097. tType == 4 ||
  4098. w.ateacher == userid,
  4099. }"
  4100. >
  4101. {{ JSON.parse(w.score).wScore }}分
  4102. </div>
  4103. <div
  4104. class="answerScore"
  4105. @click.stop="openScore(w)"
  4106. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  4107. :class="{
  4108. rightW:
  4109. w.userid == userid ||
  4110. tType == 1 ||
  4111. tType == 4 ||
  4112. w.ateacher == userid,
  4113. }"
  4114. >
  4115. 评分
  4116. </div>
  4117. <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length">
  4118. <div
  4119. v-if="finalMarkList != toolIndex"
  4120. class="answerScore"
  4121. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  4122. :class="{
  4123. rightW:
  4124. w.userid == userid ||
  4125. tType == 1 ||
  4126. tType == 4 ||
  4127. w.ateacher == userid,
  4128. }"
  4129. >
  4130. <span>查看</span>
  4131. </div>
  4132. <el-popover
  4133. v-else
  4134. placement="top"
  4135. width="318"
  4136. :disabled="AIloading[toolIndex][wIndex].loading"
  4137. trigger="hover"
  4138. >
  4139. <markScore
  4140. :loading="AIloading[toolIndex][wIndex].loading"
  4141. :ref="`markSco${toolIndex}${wIndex}`"
  4142. @updateLoading=updateLoading
  4143. @updateDocSco=updateDocSco
  4144. @refreshOther=refreshOther
  4145. @markScoreDig=markScoreDig
  4146. @handleHide=handleHide
  4147. :wIndex="wIndex"
  4148. :scoCon="w"
  4149. :toolIndex="toolIndex"
  4150. :key="refreshKey"
  4151. :stage="courseType"
  4152. :task="taskCount"
  4153. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  4154. >
  4155. </markScore>
  4156. <div
  4157. class="answerScore"
  4158. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  4159. slot="reference"
  4160. :class="{
  4161. rightW:
  4162. w.userid == userid ||
  4163. tType == 1 ||
  4164. tType == 4 ||
  4165. w.ateacher == userid,
  4166. }"
  4167. >
  4168. <span v-if="AIloading[toolIndex][wIndex].sco">
  4169. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  4170. </span>
  4171. <span v-else>
  4172. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  4173. </span>
  4174. </div>
  4175. </el-popover>
  4176. </div>
  4177. <img
  4178. class="deleteImg"
  4179. src="../../assets/deleteworks.png"
  4180. v-if="
  4181. w.userid == userid || tType == 1 || tType == 4
  4182. "
  4183. @click.stop="deleteWorks(w.wid)"
  4184. alt
  4185. />
  4186. </div>
  4187. <div class="comment" style="min-width: 200px">
  4188. <div class="worksName">
  4189. <div
  4190. style="cursor: pointer"
  4191. @click="
  4192. openSname(w.sName, w.wid, toolIndex, w.userid)
  4193. "
  4194. >
  4195. {{ w.sName }}
  4196. </div>
  4197. </div>
  4198. <div class="commentList">
  4199. <div class="commentList">
  4200. <div
  4201. class="commentImg"
  4202. @click="
  4203. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4204. "
  4205. >
  4206. <img
  4207. :src="w.isLikes == true ? likes : noLikes"
  4208. alt=""
  4209. />
  4210. </div>
  4211. <div>{{ w.likesCount }}</div>
  4212. </div>
  4213. <div class="commentList" style="margin-right: 15px">
  4214. <div
  4215. class="commentImg"
  4216. @click="commentOther(w, toolIndex, wIndex)"
  4217. >
  4218. <img
  4219. src="../../assets/icon/comment/comment.png"
  4220. alt=""
  4221. />
  4222. </div>
  4223. <div>{{ w.commentCount }}</div>
  4224. </div>
  4225. </div>
  4226. </div>
  4227. </div>
  4228. </div>
  4229. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4230. 未提交
  4231. </div>
  4232. <div
  4233. class="noWorksS"
  4234. v-if="noWorksS && noWorksS[toolIndex].length"
  4235. >
  4236. <div
  4237. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4238. :key="sIndex"
  4239. class="noWorksName"
  4240. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4241. >
  4242. <el-tooltip effect="dark" :content="s.student" placement="top">
  4243. <span>{{ s.student }}</span>
  4244. </el-tooltip>
  4245. </div>
  4246. </div>
  4247. </div>
  4248. <div
  4249. v-if="
  4250. tType &&
  4251. ((tType == 2 && sIsOpen == true) ||
  4252. tType == 1 ||
  4253. tType == 4) &&
  4254. tool.tool.indexOf(4) != -1 &&
  4255. (tool.askJson[0].answer ||
  4256. tool.askJson[0].answer === 0) &&
  4257. checkJson[toolIndex].length
  4258. "
  4259. class="xuan_right_box"
  4260. >
  4261. <div
  4262. class="tool_right_box"
  4263. v-for="(item, index) in tool.askJson"
  4264. :key="index"
  4265. >
  4266. <div style="width: calc(100% - 30px);">
  4267. <el-tooltip
  4268. effect="light"
  4269. :content="index + 1 + '、' + item.askstitle"
  4270. placement="top"
  4271. popper-class="text_tooltip"
  4272. >
  4273. <div
  4274. style="
  4275. width: calc(100% - 130px);
  4276. display: block;
  4277. white-space: nowrap;
  4278. overflow: hidden;
  4279. text-overflow: ellipsis;
  4280. word-break: break-word;
  4281. cursor: pointer;
  4282. "
  4283. >
  4284. {{ index + 1 + "、" + item.askstitle }}
  4285. </div>
  4286. </el-tooltip>
  4287. </div>
  4288. <div class="right_box_xuan">
  4289. <span>正确率</span>
  4290. <span>{{
  4291. (checkJson[toolIndex][index].right
  4292. ? checkJson[toolIndex][index].right
  4293. : 0) + "%"
  4294. }}</span>
  4295. </div>
  4296. </div>
  4297. </div>
  4298. <div
  4299. class="xuan_right_box"
  4300. style="background: unset; padding: 0 10px"
  4301. v-if="
  4302. tType &&
  4303. ((tType == 2 && sIsOpen == true) ||
  4304. tType == 1 ||
  4305. tType == 4) &&
  4306. tool.tool.indexOf(4) != -1
  4307. "
  4308. >
  4309. <AskStatic
  4310. v-if="
  4311. worksStudent.length &&
  4312. worksStudent[toolIndex].length > 0
  4313. "
  4314. :askJSON="tool"
  4315. :checkJson="checkJson[toolIndex]"
  4316. ></AskStatic>
  4317. </div>
  4318. <div
  4319. v-if="
  4320. tType &&
  4321. ((tType == 2 && sIsOpen == true) ||
  4322. tType == 1 ||
  4323. tType == 4) &&
  4324. tool.tool.indexOf(4) != -1
  4325. "
  4326. class="worksBox"
  4327. >
  4328. <div
  4329. class="zuoyeYulan"
  4330. v-if="
  4331. worksStudent.length &&
  4332. worksStudent[toolIndex].length > 0
  4333. "
  4334. >
  4335. <div class="worksTop">
  4336. <div>作业预览</div>
  4337. <div
  4338. class="corOpen"
  4339. @click="contract(toolIndex)"
  4340. v-if="
  4341. (isCloseList[toolIndex].isCloseBoolean) &&
  4342. isCloseList[toolIndex].isClose == 0
  4343. "
  4344. >
  4345. 折叠
  4346. </div>
  4347. <div
  4348. class="corOpen"
  4349. @click="contract(toolIndex)"
  4350. v-if="isCloseList[toolIndex].isClose == 1"
  4351. >
  4352. 展开
  4353. </div>
  4354. </div>
  4355. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4356. </div>
  4357. <div>
  4358. <div
  4359. :id="'tool-' + toolIndex"
  4360. :style="{
  4361. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4362. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4363. }"
  4364. class="worksDetailBox"
  4365. v-if="
  4366. worksStudent.length &&
  4367. worksStudent[toolIndex].length > 0
  4368. "
  4369. >
  4370. <div
  4371. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4372. :key="wIndex"
  4373. class="isWorksName2"
  4374. @click="
  4375. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4376. "
  4377. >
  4378. {{ w.sName }}
  4379. <img
  4380. class="deleteImg deleteImg2"
  4381. src="../../assets/deleteworks.png"
  4382. v-if="
  4383. w.userid == userid || tType == 1 || tType == 4
  4384. "
  4385. @click.stop="deleteWorks(w.wid)"
  4386. alt
  4387. />
  4388. </div>
  4389. <!-- <div class="works" style="
  4390. width: 200px;
  4391. height: 140px;
  4392. border-radius: 10px;
  4393. box-shadow: 0 0 6px 1px #dfdada;
  4394. overflow: hidden;
  4395. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4396. <div class="workImg">
  4397. <img src="../../assets/icon/works/noImg.png" @click="
  4398. openTools(
  4399. 4,
  4400. toolIndex,
  4401. taskCount,
  4402. w.works,
  4403. w.sName
  4404. )
  4405. " alt />
  4406. </div>
  4407. <div class="worksName">
  4408. <div>{{ w.sName }}</div>
  4409. <div>{{ w.time }}</div>
  4410. </div>
  4411. </div> -->
  4412. </div>
  4413. </div>
  4414. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4415. 未提交
  4416. </div>
  4417. <div
  4418. class="noWorksS"
  4419. v-if="noWorksS && noWorksS[toolIndex].length"
  4420. >
  4421. <div
  4422. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4423. :key="sIndex"
  4424. class="noWorksName"
  4425. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4426. >
  4427. <el-tooltip effect="dark" :content="s.student" placement="top">
  4428. <span>{{ s.student }}</span>
  4429. </el-tooltip>
  4430. </div>
  4431. </div>
  4432. </div>
  4433. <div
  4434. v-if="
  4435. tType &&
  4436. ((tType == 2 && sIsOpen == true) ||
  4437. tType == 1 ||
  4438. tType == 4) &&
  4439. tool.tool.indexOf(45) != -1 &&
  4440. (tool.testJson.testJson[0].answer ||
  4441. tool.testJson.testJson[0].answer === 0) &&
  4442. checkJson[toolIndex].length
  4443. "
  4444. class="xuan_right_box"
  4445. >
  4446. <div
  4447. class="tool_right_box"
  4448. v-for="(item, index) in tool.testJson.testJson"
  4449. :key="index"
  4450. >
  4451. <div class="right_box_xuan" style="margin-right: 10px">
  4452. <span>正确率</span>
  4453. <span>{{
  4454. (checkJson[toolIndex][index].right
  4455. ? checkJson[toolIndex][index].right
  4456. : 0) + "%"
  4457. }}</span>
  4458. </div>
  4459. <div style="width: calc(100% - 30px);">
  4460. <el-tooltip
  4461. effect="light"
  4462. :content="index + 1 + '、' + item.teststitle"
  4463. placement="top"
  4464. popper-class="text_tooltip"
  4465. >
  4466. <div
  4467. style="
  4468. width: calc(100% - 130px);
  4469. display: block;
  4470. white-space: nowrap;
  4471. overflow: hidden;
  4472. text-overflow: ellipsis;
  4473. word-break: break-word;
  4474. cursor: pointer;
  4475. "
  4476. >
  4477. {{ index + 1 + "、" + item.teststitle }}
  4478. </div>
  4479. </el-tooltip>
  4480. </div>
  4481. </div>
  4482. </div>
  4483. <div
  4484. class="xuan_right_box"
  4485. style="background: unset; padding: 0 10px; width: 91.5%"
  4486. v-if="
  4487. tType &&
  4488. ((tType == 2 && sIsOpen == true) ||
  4489. tType == 1 ||
  4490. tType == 4) &&
  4491. tool.tool.indexOf(45) != -1
  4492. "
  4493. >
  4494. <AskStatic2
  4495. v-if="
  4496. worksStudent.length &&
  4497. worksStudent[toolIndex].length > 0
  4498. "
  4499. :askJSON="tool"
  4500. :checkJson="checkJson[toolIndex]"
  4501. ></AskStatic2>
  4502. </div>
  4503. <div
  4504. v-if="
  4505. tType &&
  4506. ((tType == 2 && sIsOpen == true) ||
  4507. tType == 1 ||
  4508. tType == 4) &&
  4509. tool.tool.indexOf(45) != -1
  4510. "
  4511. class="worksBox"
  4512. >
  4513. <div
  4514. class="zuoyeYulan"
  4515. v-if="
  4516. worksStudent.length &&
  4517. worksStudent[toolIndex].length > 0
  4518. "
  4519. >
  4520. <div class="worksTop">
  4521. <div>作业预览</div>
  4522. <div
  4523. class="corOpen"
  4524. @click="contract(toolIndex)"
  4525. v-if="
  4526. (isCloseList[toolIndex].isCloseBoolean) &&
  4527. isCloseList[toolIndex].isClose == 0
  4528. "
  4529. >
  4530. 折叠
  4531. </div>
  4532. <div
  4533. class="corOpen"
  4534. @click="contract(toolIndex)"
  4535. v-if="isCloseList[toolIndex].isClose == 1"
  4536. >
  4537. 展开
  4538. </div>
  4539. </div>
  4540. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4541. </div>
  4542. <div>
  4543. <div
  4544. :id="'tool-' + toolIndex"
  4545. :style="{
  4546. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4547. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4548. }"
  4549. class="worksDetailBox"
  4550. v-if="
  4551. worksStudent.length &&
  4552. worksStudent[toolIndex].length > 0
  4553. "
  4554. >
  4555. <div
  4556. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4557. :key="wIndex"
  4558. class="isWorksName2"
  4559. @click="
  4560. openTools(
  4561. 45,
  4562. toolIndex,
  4563. taskCount,
  4564. w.works,
  4565. w.sName
  4566. )
  4567. "
  4568. >
  4569. {{ w.sName }}
  4570. <img
  4571. class="deleteImg deleteImg2"
  4572. src="../../assets/deleteworks.png"
  4573. v-if="
  4574. w.userid == userid || tType == 1 || tType == 4
  4575. "
  4576. @click.stop="deleteWorks(w.wid)"
  4577. alt
  4578. />
  4579. </div>
  4580. </div>
  4581. </div>
  4582. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4583. 未提交
  4584. </div>
  4585. <div
  4586. class="noWorksS"
  4587. v-if="noWorksS && noWorksS[toolIndex].length"
  4588. >
  4589. <div
  4590. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4591. :key="sIndex"
  4592. class="noWorksName"
  4593. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4594. >
  4595. <el-tooltip effect="dark" :content="s.student" placement="top">
  4596. <span>{{ s.student }}</span>
  4597. </el-tooltip>
  4598. </div>
  4599. </div>
  4600. </div>
  4601. <div
  4602. v-if="
  4603. tType &&
  4604. ((tType == 2 && sIsOpen == true) ||
  4605. tType == 1 ||
  4606. tType == 4) &&
  4607. tool.tool.indexOf(69) != -1
  4608. "
  4609. class="worksBox"
  4610. >
  4611. <div
  4612. class="zuoyeYulan"
  4613. v-if="
  4614. worksStudent.length &&
  4615. worksStudent[toolIndex].length > 0
  4616. "
  4617. >
  4618. <div class="worksTop">
  4619. <div>作业预览</div>
  4620. <div
  4621. class="corOpen"
  4622. @click="contract(toolIndex)"
  4623. v-if="
  4624. (isCloseList[toolIndex].isCloseBoolean) &&
  4625. isCloseList[toolIndex].isClose == 0
  4626. "
  4627. >
  4628. 折叠
  4629. </div>
  4630. <div
  4631. class="corOpen"
  4632. @click="contract(toolIndex)"
  4633. v-if="isCloseList[toolIndex].isClose == 1"
  4634. >
  4635. 展开
  4636. </div>
  4637. </div>
  4638. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4639. </div>
  4640. <div>
  4641. <div
  4642. :id="'tool-' + toolIndex"
  4643. :style="{
  4644. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4645. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4646. }"
  4647. class="worksDetailBox"
  4648. v-if="
  4649. worksStudent.length &&
  4650. worksStudent[toolIndex].length > 0
  4651. "
  4652. >
  4653. <div
  4654. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4655. :key="wIndex"
  4656. class="isWorksName2"
  4657. style="width: 160px;height: 65px;line-height: 65px;"
  4658. @click="
  4659. openTools(
  4660. 69,
  4661. toolIndex,
  4662. taskCount,
  4663. w.works,
  4664. w.sName,
  4665. w.wid
  4666. )
  4667. "
  4668. >
  4669. {{ w.sName }}
  4670. <img
  4671. class="deleteImg1"
  4672. src="../../assets/evaEnglish.png"
  4673. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4674. alt
  4675. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4676. />
  4677. <img
  4678. class="deleteImg deleteImg2"
  4679. src="../../assets/deleteworks.png"
  4680. v-if="
  4681. w.userid == userid || tType == 1 || tType == 4
  4682. "
  4683. @click.stop="deleteWorks(w.wid)"
  4684. alt
  4685. />
  4686. </div>
  4687. </div>
  4688. </div>
  4689. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4690. 未提交
  4691. </div>
  4692. <div
  4693. class="noWorksS"
  4694. v-if="noWorksS && noWorksS[toolIndex].length"
  4695. >
  4696. <div
  4697. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4698. :key="sIndex"
  4699. class="noWorksName"
  4700. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4701. >
  4702. <el-tooltip effect="dark" :content="s.student" placement="top">
  4703. <span>{{ s.student }}</span>
  4704. </el-tooltip>
  4705. </div>
  4706. </div>
  4707. </div>
  4708. <div
  4709. v-if="
  4710. tType &&
  4711. ((tType == 2 && sIsOpen == true) ||
  4712. tType == 1 ||
  4713. tType == 4) &&
  4714. tool.tool.indexOf(15) != -1
  4715. "
  4716. class="worksBox"
  4717. >
  4718. <div
  4719. class="zuoyeYulan"
  4720. v-if="
  4721. (worksStudent.length &&
  4722. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4723. "
  4724. >
  4725. <div class="worksTop">
  4726. <div>作业预览</div>
  4727. <div
  4728. class="corOpen"
  4729. @click="contract(toolIndex)"
  4730. v-if="
  4731. (isCloseList[toolIndex].isCloseBoolean) &&
  4732. isCloseList[toolIndex].isClose == 0
  4733. "
  4734. >
  4735. 折叠
  4736. </div>
  4737. <div
  4738. class="corOpen"
  4739. @click="contract(toolIndex)"
  4740. v-if="isCloseList[toolIndex].isClose == 1"
  4741. >
  4742. 展开
  4743. </div>
  4744. </div>
  4745. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4746. </div>
  4747. <div
  4748. class="group_workBox"
  4749. v-for="(g, gindex) in courseGroup.group"
  4750. :key="gindex"
  4751. >
  4752. <div class="group_box">
  4753. <div class="group_title">
  4754. <el-tooltip
  4755. class="item"
  4756. effect="light"
  4757. :content="g.name"
  4758. placement="top"
  4759. >
  4760. <div class="group_name">{{ g.name }}</div>
  4761. </el-tooltip>
  4762. </div>
  4763. <div
  4764. class="group_work"
  4765. v-if="
  4766. g.works &&
  4767. g.works.length &&
  4768. g.works[toolIndex].length
  4769. "
  4770. >
  4771. <div
  4772. class="works"
  4773. v-for="(w, wIndex) in g.works[toolIndex]"
  4774. :key="wIndex"
  4775. >
  4776. <div
  4777. class="workImg"
  4778. style="
  4779. border-radius: 15px;
  4780. box-shadow: 0px 0px 5px 5px #eee;
  4781. "
  4782. >
  4783. <div
  4784. class="answerBg"
  4785. style="border-radius: 15px 15px 0 0"
  4786. @click="
  4787. commentOther(w, toolIndex, wIndex, null, g.id)
  4788. "
  4789. >
  4790. <div class="answerContent">
  4791. {{ JSON.parse(w.works)[0].answer }}
  4792. </div>
  4793. <div
  4794. class="answerScore"
  4795. v-if="w.score"
  4796. @click.stop="openScore(w)"
  4797. :class="{
  4798. rightW:
  4799. w.userid == userid ||
  4800. tType == 1 ||
  4801. tType == 4,
  4802. }"
  4803. >
  4804. {{ JSON.parse(w.score).wScore }}分
  4805. </div>
  4806. <div
  4807. class="answerScore"
  4808. @click.stop="openScore(w)"
  4809. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  4810. :class="{
  4811. rightW:
  4812. w.userid == userid ||
  4813. tType == 1 ||
  4814. tType == 4,
  4815. }"
  4816. >
  4817. 评分
  4818. </div>
  4819. <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length">
  4820. <div
  4821. v-if="finalMarkList != toolIndex"
  4822. class="answerScore"
  4823. @click.stop="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  4824. :class="{
  4825. rightW:
  4826. w.userid == userid ||
  4827. tType == 1 ||
  4828. tType == 4 ||
  4829. w.ateacher == userid,
  4830. }"
  4831. >
  4832. <span>查看</span>
  4833. </div>
  4834. <el-popover
  4835. v-else
  4836. placement="top"
  4837. width="318"
  4838. :disabled="AIloading[toolIndex][wIndex].loading"
  4839. trigger="hover"
  4840. >
  4841. <markScore
  4842. :loading="AIloading[toolIndex][wIndex].loading"
  4843. :ref="`markSco${toolIndex}${wIndex}`"
  4844. @updateLoading=updateLoading
  4845. @updateDocSco=updateDocSco
  4846. @refreshOther=refreshOther
  4847. @markScoreDig=markScoreDig
  4848. @handleHide=handleHide
  4849. :wIndex="wIndex"
  4850. :scoCon="w"
  4851. :toolIndex="toolIndex"
  4852. :key="refreshKey"
  4853. :stage="courseType"
  4854. :task="taskCount"
  4855. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  4856. >
  4857. </markScore>
  4858. <div
  4859. class="answerScore"
  4860. @click.stop="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  4861. slot="reference"
  4862. :class="{
  4863. rightW:
  4864. w.userid == userid ||
  4865. tType == 1 ||
  4866. tType == 4 ||
  4867. w.ateacher == userid,
  4868. }"
  4869. >
  4870. <span v-if="AIloading[toolIndex][wIndex].sco">
  4871. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  4872. </span>
  4873. <span v-else>
  4874. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  4875. </span>
  4876. </div>
  4877. </el-popover>
  4878. </div>
  4879. <img
  4880. class="deleteImg"
  4881. src="../../assets/deleteworks.png"
  4882. v-if="
  4883. w.userid == userid ||
  4884. tType == 1 ||
  4885. tType == 4
  4886. "
  4887. @click.stop="deleteWorks(w.wid)"
  4888. alt
  4889. />
  4890. </div>
  4891. <div class="comment">
  4892. <div class="worksName">
  4893. <div>{{ w.sName }}</div>
  4894. </div>
  4895. <div class="commentList">
  4896. <div
  4897. class="commentImg"
  4898. @click="
  4899. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4900. "
  4901. >
  4902. <img
  4903. :src="w.isLikes == true ? likes : noLikes"
  4904. alt=""
  4905. />
  4906. </div>
  4907. <div>{{ w.likesCount }}</div>
  4908. </div>
  4909. <div
  4910. class="commentList"
  4911. style="margin-right: 15px"
  4912. >
  4913. <div
  4914. class="commentImg"
  4915. @click="
  4916. commentOther(
  4917. w,
  4918. toolIndex,
  4919. wIndex,
  4920. null,
  4921. g.id
  4922. )
  4923. "
  4924. >
  4925. <img
  4926. src="../../assets/icon/comment/comment.png"
  4927. alt=""
  4928. />
  4929. </div>
  4930. <div>{{ w.commentCount }}</div>
  4931. </div>
  4932. </div>
  4933. </div>
  4934. </div>
  4935. </div>
  4936. <div class="group_work" v-else>暂无提交作业</div>
  4937. </div>
  4938. </div>
  4939. <div
  4940. :id="'tool-' + toolIndex"
  4941. :style="{
  4942. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4943. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4944. }"
  4945. class="worksDetailBox"
  4946. v-if="
  4947. worksStudent.length &&
  4948. worksStudent[toolIndex].length > 0
  4949. "
  4950. >
  4951. <div
  4952. class="works"
  4953. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4954. :key="wIndex"
  4955. >
  4956. <div
  4957. class="workImg"
  4958. style="
  4959. border-radius: 15px;
  4960. box-shadow: 0px 0px 5px 5px #eee;
  4961. "
  4962. >
  4963. <!-- <img
  4964. src="../../assets/icon/works/noImg.png"
  4965. @click="openTools(15, toolIndex, taskCount, w.works)"
  4966. alt=""
  4967. />-->
  4968. <div
  4969. class="answerBg"
  4970. style="border-radius: 15px 15px 0 0"
  4971. @click="commentOther(w, toolIndex, wIndex)"
  4972. >
  4973. <!-- <div>{{ w.sName }}</div> -->
  4974. <div class="answerContent">
  4975. {{ JSON.parse(w.works)[0].answer }}
  4976. </div>
  4977. <div
  4978. class="answerScore"
  4979. v-if="w.score"
  4980. @click.stop="openScore(w)"
  4981. :class="{
  4982. rightW:
  4983. w.userid == userid ||
  4984. tType == 1 ||
  4985. tType == 4,
  4986. }"
  4987. >
  4988. {{ JSON.parse(w.score).wScore }}分
  4989. </div>
  4990. <div
  4991. class="answerScore"
  4992. @click.stop="openScore(w)"
  4993. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  4994. :class="{
  4995. rightW:
  4996. w.userid == userid ||
  4997. tType == 1 ||
  4998. tType == 4,
  4999. }"
  5000. >
  5001. 评分
  5002. </div>
  5003. <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length">
  5004. <div
  5005. v-if="finalMarkList != toolIndex"
  5006. class="answerScore"
  5007. @click.stop="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  5008. :class="{
  5009. rightW:
  5010. w.userid == userid ||
  5011. tType == 1 ||
  5012. tType == 4 ||
  5013. w.ateacher == userid,
  5014. }"
  5015. >
  5016. <span>查看</span>
  5017. </div>
  5018. <el-popover
  5019. v-else
  5020. placement="top"
  5021. width="318"
  5022. :disabled="AIloading[toolIndex][wIndex].loading"
  5023. trigger="hover"
  5024. >
  5025. <markScore
  5026. :loading="AIloading[toolIndex][wIndex].loading"
  5027. :ref="`markSco${toolIndex}${wIndex}`"
  5028. @updateLoading=updateLoading
  5029. @updateDocSco=updateDocSco
  5030. @refreshOther=refreshOther
  5031. @markScoreDig=markScoreDig
  5032. @handleHide=handleHide
  5033. :wIndex="wIndex"
  5034. :scoCon="w"
  5035. :toolIndex="toolIndex"
  5036. :key="refreshKey"
  5037. :stage="courseType"
  5038. :task="taskCount"
  5039. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  5040. >
  5041. </markScore>
  5042. <div
  5043. class="answerScore"
  5044. @click.stop="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  5045. slot="reference"
  5046. :class="{
  5047. rightW:
  5048. w.userid == userid ||
  5049. tType == 1 ||
  5050. tType == 4 ||
  5051. w.ateacher == userid,
  5052. }"
  5053. >
  5054. <span v-if="AIloading[toolIndex][wIndex].sco">
  5055. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  5056. </span>
  5057. <span v-else>
  5058. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  5059. </span>
  5060. </div>
  5061. </el-popover>
  5062. </div>
  5063. <img
  5064. class="deleteImg"
  5065. src="../../assets/deleteworks.png"
  5066. v-if="
  5067. w.userid == userid || tType == 1 || tType == 4
  5068. "
  5069. @click.stop="deleteWorks(w.wid)"
  5070. alt
  5071. />
  5072. </div>
  5073. <div class="comment">
  5074. <div class="worksName">
  5075. <div>{{ w.sName }}</div>
  5076. </div>
  5077. <div class="commentList">
  5078. <div
  5079. class="commentImg"
  5080. @click="
  5081. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5082. "
  5083. >
  5084. <img
  5085. :src="w.isLikes == true ? likes : noLikes"
  5086. alt=""
  5087. />
  5088. </div>
  5089. <div>{{ w.likesCount }}</div>
  5090. </div>
  5091. <div class="commentList" style="margin-right: 15px">
  5092. <div
  5093. class="commentImg"
  5094. @click="commentOther(w, toolIndex, wIndex)"
  5095. >
  5096. <img
  5097. src="../../assets/icon/comment/comment.png"
  5098. alt=""
  5099. />
  5100. </div>
  5101. <div>{{ w.commentCount }}</div>
  5102. </div>
  5103. </div>
  5104. </div>
  5105. </div>
  5106. </div>
  5107. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5108. 未提交
  5109. </div>
  5110. <div
  5111. class="noWorksS"
  5112. v-if="noWorksS && noWorksS[toolIndex].length"
  5113. >
  5114. <div
  5115. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5116. :key="sIndex"
  5117. class="noWorksName"
  5118. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  5119. >
  5120. <el-tooltip effect="dark" :content="s.student" placement="top">
  5121. <span>{{ s.student }}</span>
  5122. </el-tooltip>
  5123. </div>
  5124. </div>
  5125. </div>
  5126. <div
  5127. v-if="
  5128. tType &&
  5129. ((tType == 2 && sIsOpen == true) ||
  5130. tType == 1 ||
  5131. tType == 4) &&
  5132. tool.tool.indexOf(1) != -1
  5133. "
  5134. class="worksBox"
  5135. >
  5136. <div
  5137. class="zuoyeYulan"
  5138. v-if="
  5139. (worksStudent.length &&
  5140. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5141. "
  5142. >
  5143. <div class="worksTop">
  5144. <div>作业预览</div>
  5145. <div
  5146. class="corOpen"
  5147. @click="contract(toolIndex)"
  5148. v-if="
  5149. (isCloseList[toolIndex].isCloseBoolean) &&
  5150. isCloseList[toolIndex].isClose == 0
  5151. "
  5152. >
  5153. 折叠
  5154. </div>
  5155. <div
  5156. class="corOpen"
  5157. @click="contract(toolIndex)"
  5158. v-if="isCloseList[toolIndex].isClose == 1"
  5159. >
  5160. 展开
  5161. </div>
  5162. </div>
  5163. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5164. </div>
  5165. <div
  5166. class="group_workBox"
  5167. v-for="(g, gindex) in courseGroup.group"
  5168. :key="gindex"
  5169. >
  5170. <div class="group_box">
  5171. <div class="group_title">
  5172. <el-tooltip
  5173. class="item"
  5174. effect="light"
  5175. :content="g.name"
  5176. placement="top"
  5177. >
  5178. <div class="group_name">{{ g.name }}</div>
  5179. </el-tooltip>
  5180. </div>
  5181. <div
  5182. class="group_work"
  5183. v-if="
  5184. g.works &&
  5185. g.works.length &&
  5186. g.works[toolIndex].length
  5187. "
  5188. >
  5189. <div
  5190. class="works"
  5191. style="
  5192. width: 200px;
  5193. height: 140px;
  5194. margin: 10px 10px 10px 0;
  5195. border-radius: 15px;
  5196. box-shadow: 0 0 6px 1px #dfdada;
  5197. "
  5198. v-for="(w, wIndex) in g.works[toolIndex]"
  5199. :key="wIndex"
  5200. :class="w.type == 1 ? 'isTypeOne' : ''"
  5201. >
  5202. <div class="workImg">
  5203. <img
  5204. :src="w.works"
  5205. @click="previewImg(w.works,w)"
  5206. alt
  5207. />
  5208. <div
  5209. class="answerScore"
  5210. v-if="w.score"
  5211. @click.stop="openScore(w)"
  5212. :class="{
  5213. rightW:
  5214. w.userid == userid ||
  5215. tType == 1 ||
  5216. tType == 4,
  5217. }"
  5218. >
  5219. {{ JSON.parse(w.score).wScore }}分
  5220. </div>
  5221. <div
  5222. class="answerScore"
  5223. @click.stop="openScore(w)"
  5224. v-else-if="courseDetail.userid == userid"
  5225. :class="{
  5226. rightW:
  5227. w.userid == userid ||
  5228. tType == 1 ||
  5229. tType == 4,
  5230. }"
  5231. >
  5232. 评分
  5233. </div>
  5234. <img
  5235. class="deleteImg"
  5236. src="../../assets/deleteworks.png"
  5237. v-if="
  5238. w.userid == userid || tType == 1 || tType == 4
  5239. "
  5240. @click.stop="deleteWorks(w.wid)"
  5241. alt
  5242. />
  5243. </div>
  5244. <div class="comment" style="min-width: 200px">
  5245. <div class="worksName">
  5246. <div>{{ w.sName }}</div>
  5247. </div>
  5248. <div class="commentList">
  5249. <div class="commentList">
  5250. <div
  5251. class="commentImg"
  5252. @click="
  5253. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5254. "
  5255. >
  5256. <img
  5257. :src="w.isLikes == true ? likes : noLikes"
  5258. alt=""
  5259. />
  5260. </div>
  5261. <div>{{ w.likesCount }}</div>
  5262. </div>
  5263. <div
  5264. class="commentList"
  5265. style="margin-right: 15px"
  5266. >
  5267. <div
  5268. class="commentImg"
  5269. @click="
  5270. commentOther(
  5271. w,
  5272. toolIndex,
  5273. wIndex,
  5274. null,
  5275. g.id
  5276. )
  5277. "
  5278. >
  5279. <img
  5280. src="../../assets/icon/comment/comment.png"
  5281. alt=""
  5282. />
  5283. </div>
  5284. <div>{{ w.commentCount }}</div>
  5285. </div>
  5286. </div>
  5287. </div>
  5288. </div>
  5289. </div>
  5290. <div class="group_work" v-else>暂无提交作业</div>
  5291. </div>
  5292. </div>
  5293. <div
  5294. :id="'tool-' + toolIndex"
  5295. :style="{
  5296. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5297. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5298. }"
  5299. class="worksDetailBox"
  5300. v-if="
  5301. worksStudent.length &&
  5302. worksStudent[toolIndex].length > 0
  5303. "
  5304. >
  5305. <div
  5306. class="works"
  5307. style="
  5308. width: 200px;
  5309. height: 140px;
  5310. margin: 10px 10px 10px 0;
  5311. border-radius: 15px;
  5312. box-shadow: 0 0 6px 1px #dfdada;
  5313. "
  5314. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5315. :key="wIndex"
  5316. >
  5317. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5318. <div class="workImg">
  5319. <img
  5320. :src="w.works"
  5321. @click="previewImg(w.works,w)"
  5322. alt
  5323. />
  5324. <div
  5325. class="answerScore"
  5326. v-if="w.score"
  5327. @click.stop="openScore(w)"
  5328. :class="{
  5329. rightW:
  5330. w.userid == userid || tType == 1 || tType == 4,
  5331. }"
  5332. >
  5333. {{ JSON.parse(w.score).wScore }}分
  5334. </div>
  5335. <div
  5336. class="answerScore"
  5337. @click.stop="openScore(w)"
  5338. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  5339. :class="{
  5340. rightW:
  5341. w.userid == userid || tType == 1 || tType == 4,
  5342. }"
  5343. >
  5344. 评分
  5345. </div>
  5346. <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length">
  5347. <div
  5348. v-if="finalMarkList != toolIndex"
  5349. class="answerScore"
  5350. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  5351. :class="{
  5352. rightW:
  5353. w.userid == userid ||
  5354. tType == 1 ||
  5355. tType == 4 ||
  5356. w.ateacher == userid,
  5357. }"
  5358. >
  5359. <span>查看</span>
  5360. </div>
  5361. <el-popover
  5362. v-else
  5363. placement="top"
  5364. width="318"
  5365. :disabled="AIloading[toolIndex][wIndex].loading"
  5366. trigger="hover"
  5367. >
  5368. <markScore
  5369. :loading="AIloading[toolIndex][wIndex].loading"
  5370. :ref="`markSco${toolIndex}${wIndex}`"
  5371. @updateLoading=updateLoading
  5372. @updateDocSco=updateDocSco
  5373. @refreshOther=refreshOther
  5374. @markScoreDig=markScoreDig
  5375. @handleHide=handleHide
  5376. :wIndex="wIndex"
  5377. :scoCon="w"
  5378. :toolIndex="toolIndex"
  5379. :key="refreshKey"
  5380. :stage="courseType"
  5381. :task="taskCount"
  5382. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  5383. >
  5384. </markScore>
  5385. <div
  5386. class="answerScore"
  5387. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  5388. slot="reference"
  5389. :class="{
  5390. rightW:
  5391. w.userid == userid ||
  5392. tType == 1 ||
  5393. tType == 4 ||
  5394. w.ateacher == userid,
  5395. }"
  5396. >
  5397. <span v-if="AIloading[toolIndex][wIndex].sco">
  5398. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  5399. </span>
  5400. <span v-else>
  5401. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  5402. </span>
  5403. </div>
  5404. </el-popover>
  5405. </div>
  5406. <img
  5407. class="deleteImg"
  5408. src="../../assets/deleteworks.png"
  5409. v-if="
  5410. w.userid == userid || tType == 1 || tType == 4
  5411. "
  5412. @click.stop="deleteWorks(w.wid)"
  5413. alt
  5414. />
  5415. </div>
  5416. <div class="comment" style="min-width: 200px">
  5417. <div class="worksName">
  5418. <div>{{ w.sName }}</div>
  5419. </div>
  5420. <div class="commentList">
  5421. <div class="commentList">
  5422. <div
  5423. class="commentImg"
  5424. @click="
  5425. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5426. "
  5427. >
  5428. <img
  5429. :src="w.isLikes == true ? likes : noLikes"
  5430. alt=""
  5431. />
  5432. </div>
  5433. <div>{{ w.likesCount }}</div>
  5434. </div>
  5435. <div class="commentList" style="margin-right: 15px">
  5436. <div
  5437. class="commentImg"
  5438. @click="commentOther(w, toolIndex, wIndex)"
  5439. >
  5440. <img
  5441. src="../../assets/icon/comment/comment.png"
  5442. alt=""
  5443. />
  5444. </div>
  5445. <div>{{ w.commentCount }}</div>
  5446. </div>
  5447. </div>
  5448. </div>
  5449. </div>
  5450. </div>
  5451. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5452. 未提交
  5453. </div>
  5454. <div
  5455. class="noWorksS"
  5456. v-if="noWorksS && noWorksS[toolIndex].length"
  5457. >
  5458. <div
  5459. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5460. :key="sIndex"
  5461. class="noWorksName"
  5462. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5463. >
  5464. <el-tooltip effect="dark" :content="s.student" placement="top">
  5465. <span>{{ s.student }}</span>
  5466. </el-tooltip>
  5467. </div>
  5468. </div>
  5469. </div>
  5470. <div
  5471. v-if="
  5472. tType &&
  5473. ((tType == 2 && sIsOpen == true) ||
  5474. tType == 1 ||
  5475. tType == 4) &&
  5476. tool.tool.indexOf(3) != -1
  5477. "
  5478. class="worksBox"
  5479. >
  5480. <div
  5481. class="zuoyeYulan"
  5482. v-if="
  5483. (worksStudent.length &&
  5484. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5485. "
  5486. >
  5487. <div class="worksTop">
  5488. <div>作业预览</div>
  5489. <div
  5490. class="corOpen"
  5491. @click="contract(toolIndex)"
  5492. v-if="
  5493. (isCloseList[toolIndex].isCloseBoolean) &&
  5494. isCloseList[toolIndex].isClose == 0
  5495. "
  5496. >
  5497. 折叠
  5498. </div>
  5499. <div
  5500. class="corOpen"
  5501. @click="contract(toolIndex)"
  5502. v-if="isCloseList[toolIndex].isClose == 1"
  5503. >
  5504. 展开
  5505. </div>
  5506. </div>
  5507. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5508. </div>
  5509. <div
  5510. class="group_workBox"
  5511. v-for="(g, gindex) in courseGroup.group"
  5512. :key="gindex"
  5513. >
  5514. <div class="group_box">
  5515. <div class="group_title">
  5516. <el-tooltip
  5517. class="item"
  5518. effect="light"
  5519. :content="g.name"
  5520. placement="top"
  5521. >
  5522. <div class="group_name">{{ g.name }}</div>
  5523. </el-tooltip>
  5524. </div>
  5525. <div
  5526. class="group_work"
  5527. v-if="
  5528. g.works &&
  5529. g.works.length &&
  5530. g.works[toolIndex].length
  5531. "
  5532. >
  5533. <div
  5534. class="works"
  5535. style="
  5536. width: 200px;
  5537. height: 140px;
  5538. margin: 10px 10px 10px 0;
  5539. border-radius: 15px;
  5540. box-shadow: 0 0 6px 1px #dfdada;
  5541. "
  5542. v-for="(w, wIndex) in g.works[toolIndex]"
  5543. :key="wIndex"
  5544. :class="w.type == 1 ? 'isTypeOne' : ''"
  5545. >
  5546. <div class="workImg">
  5547. <img
  5548. :src="w.works"
  5549. @click="previewImg(w.works,w)"
  5550. alt
  5551. />
  5552. <div
  5553. class="answerScore"
  5554. v-if="w.score"
  5555. @click.stop="openScore(w)"
  5556. :class="{
  5557. rightW:
  5558. w.userid == userid ||
  5559. tType == 1 ||
  5560. tType == 4,
  5561. }"
  5562. >
  5563. {{ JSON.parse(w.score).wScore }}分
  5564. </div>
  5565. <div
  5566. class="answerScore"
  5567. @click.stop="openScore(w)"
  5568. v-else-if="courseDetail.userid == userid"
  5569. :class="{
  5570. rightW:
  5571. w.userid == userid ||
  5572. tType == 1 ||
  5573. tType == 4,
  5574. }"
  5575. >
  5576. 评分
  5577. </div>
  5578. <img
  5579. class="deleteImg"
  5580. src="../../assets/deleteworks.png"
  5581. v-if="
  5582. w.userid == userid || tType == 1 || tType == 4
  5583. "
  5584. @click.stop="deleteWorks(w.wid)"
  5585. alt
  5586. />
  5587. </div>
  5588. <div class="comment" style="min-width: 200px">
  5589. <div class="worksName">
  5590. <div>{{ w.sName }}</div>
  5591. </div>
  5592. <div class="commentList">
  5593. <div class="commentList">
  5594. <div
  5595. class="commentImg"
  5596. @click="
  5597. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5598. "
  5599. >
  5600. <img
  5601. :src="w.isLikes == true ? likes : noLikes"
  5602. alt=""
  5603. />
  5604. </div>
  5605. <div>{{ w.likesCount }}</div>
  5606. </div>
  5607. <div
  5608. class="commentList"
  5609. style="margin-right: 15px"
  5610. >
  5611. <div
  5612. class="commentImg"
  5613. @click="
  5614. commentOther(
  5615. w,
  5616. toolIndex,
  5617. wIndex,
  5618. null,
  5619. g.id
  5620. )
  5621. "
  5622. >
  5623. <img
  5624. src="../../assets/icon/comment/comment.png"
  5625. alt=""
  5626. />
  5627. </div>
  5628. <div>{{ w.commentCount }}</div>
  5629. </div>
  5630. </div>
  5631. </div>
  5632. </div>
  5633. </div>
  5634. <div class="group_work" v-else>暂无提交作业</div>
  5635. </div>
  5636. </div>
  5637. <div
  5638. :id="'tool-' + toolIndex"
  5639. :style="{
  5640. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5641. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5642. }"
  5643. class="worksDetailBox"
  5644. v-if="
  5645. worksStudent.length &&
  5646. worksStudent[toolIndex].length > 0
  5647. "
  5648. >
  5649. <div
  5650. class="works"
  5651. style="
  5652. width: 200px;
  5653. height: 140px;
  5654. margin: 10px 10px 10px 0;
  5655. border-radius: 15px;
  5656. box-shadow: 0 0 6px 1px #dfdada;
  5657. "
  5658. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5659. :key="wIndex"
  5660. >
  5661. <!-- @click="previewImg(w.works)" -->
  5662. <div class="workImg">
  5663. <img
  5664. :src="w.works"
  5665. @click="previewImg(w.works,w)"
  5666. alt
  5667. />
  5668. <div
  5669. class="answerScore"
  5670. v-if="w.score"
  5671. @click.stop="openScore(w)"
  5672. :class="{
  5673. rightW:
  5674. w.userid == userid || tType == 1 || tType == 4,
  5675. }"
  5676. >
  5677. {{ JSON.parse(w.score).wScore }}分
  5678. </div>
  5679. <div
  5680. class="answerScore"
  5681. @click.stop="openScore(w)"
  5682. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  5683. :class="{
  5684. rightW:
  5685. w.userid == userid || tType == 1 || tType == 4,
  5686. }"
  5687. >
  5688. 评分
  5689. </div>
  5690. <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length">
  5691. <div
  5692. v-if="finalMarkList != toolIndex"
  5693. class="answerScore"
  5694. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  5695. :class="{
  5696. rightW:
  5697. w.userid == userid ||
  5698. tType == 1 ||
  5699. tType == 4 ||
  5700. w.ateacher == userid,
  5701. }"
  5702. >
  5703. <span>查看</span>
  5704. </div>
  5705. <el-popover
  5706. v-else
  5707. placement="top"
  5708. width="318"
  5709. :disabled="AIloading[toolIndex][wIndex].loading"
  5710. trigger="hover"
  5711. >
  5712. <markScore
  5713. :loading="AIloading[toolIndex][wIndex].loading"
  5714. :ref="`markSco${toolIndex}${wIndex}`"
  5715. @updateLoading=updateLoading
  5716. @updateDocSco=updateDocSco
  5717. @refreshOther=refreshOther
  5718. @markScoreDig=markScoreDig
  5719. @handleHide=handleHide
  5720. :wIndex="wIndex"
  5721. :scoCon="w"
  5722. :toolIndex="toolIndex"
  5723. :key="refreshKey"
  5724. :stage="courseType"
  5725. :task="taskCount"
  5726. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  5727. >
  5728. </markScore>
  5729. <div
  5730. class="answerScore"
  5731. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  5732. slot="reference"
  5733. :class="{
  5734. rightW:
  5735. w.userid == userid ||
  5736. tType == 1 ||
  5737. tType == 4 ||
  5738. w.ateacher == userid,
  5739. }"
  5740. >
  5741. <span v-if="AIloading[toolIndex][wIndex].sco">
  5742. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  5743. </span>
  5744. <span v-else>
  5745. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  5746. </span>
  5747. </div>
  5748. </el-popover>
  5749. </div>
  5750. <img
  5751. class="deleteImg"
  5752. src="../../assets/deleteworks.png"
  5753. v-if="
  5754. w.userid == userid || tType == 1 || tType == 4
  5755. "
  5756. @click.stop="deleteWorks(w.wid)"
  5757. alt
  5758. />
  5759. </div>
  5760. <div class="comment" style="min-width: 200px">
  5761. <div class="worksName">
  5762. <div>{{ w.sName }}</div>
  5763. </div>
  5764. <div class="commentList">
  5765. <div class="commentList">
  5766. <div
  5767. class="commentImg"
  5768. @click="
  5769. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5770. "
  5771. >
  5772. <img
  5773. :src="w.isLikes == true ? likes : noLikes"
  5774. alt=""
  5775. />
  5776. </div>
  5777. <div>{{ w.likesCount }}</div>
  5778. </div>
  5779. <div class="commentList" style="margin-right: 15px">
  5780. <div
  5781. class="commentImg"
  5782. @click="commentOther(w, toolIndex, wIndex)"
  5783. >
  5784. <img
  5785. src="../../assets/icon/comment/comment.png"
  5786. alt=""
  5787. />
  5788. </div>
  5789. <div>{{ w.commentCount }}</div>
  5790. </div>
  5791. </div>
  5792. </div>
  5793. </div>
  5794. </div>
  5795. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5796. 未提交
  5797. </div>
  5798. <div
  5799. class="noWorksS"
  5800. v-if="noWorksS && noWorksS[toolIndex].length"
  5801. >
  5802. <div
  5803. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5804. :key="sIndex"
  5805. class="noWorksName"
  5806. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5807. >
  5808. <el-tooltip effect="dark" :content="s.student" placement="top">
  5809. <span>{{ s.student }}</span>
  5810. </el-tooltip>
  5811. </div>
  5812. </div>
  5813. </div>
  5814. <div
  5815. v-if="
  5816. tType &&
  5817. ((tType == 2 && sIsOpen == true) ||
  5818. tType == 1 ||
  5819. tType == 4) &&
  5820. tool.tool.indexOf(6) != -1
  5821. "
  5822. class="worksBox"
  5823. >
  5824. <div
  5825. class="zuoyeYulan"
  5826. v-if="
  5827. (worksStudent.length &&
  5828. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5829. "
  5830. >
  5831. <div class="worksTop">
  5832. <div>作业预览</div>
  5833. <div
  5834. class="corOpen"
  5835. @click="contract(toolIndex)"
  5836. v-if="
  5837. (isCloseList[toolIndex].isCloseBoolean) &&
  5838. isCloseList[toolIndex].isClose == 0
  5839. "
  5840. >
  5841. 折叠
  5842. </div>
  5843. <div
  5844. class="corOpen"
  5845. @click="contract(toolIndex)"
  5846. v-if="isCloseList[toolIndex].isClose == 1"
  5847. >
  5848. 展开
  5849. </div>
  5850. </div>
  5851. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5852. </div>
  5853. <div
  5854. class="group_workBox"
  5855. v-for="(g, gindex) in courseGroup.group"
  5856. :key="gindex"
  5857. >
  5858. <div class="group_box">
  5859. <div class="group_title">
  5860. <el-tooltip
  5861. class="item"
  5862. effect="light"
  5863. :content="g.name"
  5864. placement="top"
  5865. >
  5866. <div class="group_name">{{ g.name }}</div>
  5867. </el-tooltip>
  5868. </div>
  5869. <div
  5870. class="group_work"
  5871. v-if="
  5872. g.works &&
  5873. g.works.length &&
  5874. g.works[toolIndex].length
  5875. "
  5876. >
  5877. <div
  5878. class="works"
  5879. style="
  5880. width: 200px;
  5881. height: 140px;
  5882. margin: 10px 10px 10px 0;
  5883. border-radius: 15px;
  5884. box-shadow: 0 0 6px 1px #dfdada;
  5885. "
  5886. v-for="(w, wIndex) in g.works[toolIndex]"
  5887. :key="wIndex"
  5888. :class="w.type == 1 ? 'isTypeOne' : ''"
  5889. >
  5890. <div class="workImg">
  5891. <img
  5892. :src="w.works"
  5893. @click="previewImg(w.works,w)"
  5894. alt
  5895. />
  5896. <div
  5897. class="answerScore"
  5898. v-if="w.score"
  5899. @click.stop="openScore(w)"
  5900. :class="{
  5901. rightW:
  5902. w.userid == userid ||
  5903. tType == 1 ||
  5904. tType == 4,
  5905. }"
  5906. >
  5907. {{ JSON.parse(w.score).wScore }}分
  5908. </div>
  5909. <div
  5910. class="answerScore"
  5911. @click.stop="openScore(w)"
  5912. v-else-if="courseDetail.userid == userid"
  5913. :class="{
  5914. rightW:
  5915. w.userid == userid ||
  5916. tType == 1 ||
  5917. tType == 4,
  5918. }"
  5919. >
  5920. 评分
  5921. </div>
  5922. <img
  5923. class="deleteImg"
  5924. src="../../assets/deleteworks.png"
  5925. v-if="
  5926. w.userid == userid || tType == 1 || tType == 4
  5927. "
  5928. @click.stop="deleteWorks(w.wid)"
  5929. alt
  5930. />
  5931. </div>
  5932. <div class="comment" style="min-width: 200px">
  5933. <div class="worksName">
  5934. <div>{{ w.sName }}</div>
  5935. </div>
  5936. <div class="commentList">
  5937. <div class="commentList">
  5938. <div
  5939. class="commentImg"
  5940. @click="
  5941. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5942. "
  5943. >
  5944. <img
  5945. :src="w.isLikes == true ? likes : noLikes"
  5946. alt=""
  5947. />
  5948. </div>
  5949. <div>{{ w.likesCount }}</div>
  5950. </div>
  5951. <div
  5952. class="commentList"
  5953. style="margin-right: 15px"
  5954. >
  5955. <div
  5956. class="commentImg"
  5957. @click="
  5958. commentOther(
  5959. w,
  5960. toolIndex,
  5961. wIndex,
  5962. null,
  5963. g.id
  5964. )
  5965. "
  5966. >
  5967. <img
  5968. src="../../assets/icon/comment/comment.png"
  5969. alt=""
  5970. />
  5971. </div>
  5972. <div>{{ w.commentCount }}</div>
  5973. </div>
  5974. </div>
  5975. </div>
  5976. </div>
  5977. </div>
  5978. <div class="group_work" v-else>暂无提交作业</div>
  5979. </div>
  5980. </div>
  5981. <div
  5982. :id="'tool-' + toolIndex"
  5983. :style="{
  5984. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5985. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5986. }"
  5987. class="worksDetailBox"
  5988. v-if="
  5989. worksStudent.length &&
  5990. worksStudent[toolIndex].length > 0
  5991. "
  5992. >
  5993. <div
  5994. class="works"
  5995. style="
  5996. width: 200px;
  5997. height: 140px;
  5998. margin: 10px 10px 10px 0;
  5999. border-radius: 15px;
  6000. box-shadow: 0 0 6px 1px #dfdada;
  6001. "
  6002. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6003. :key="wIndex"
  6004. >
  6005. <!-- @click="previewImg(w.works)" -->
  6006. <div class="workImg">
  6007. <img
  6008. :src="w.works"
  6009. @click="previewImg(w.works,w)"
  6010. alt
  6011. />
  6012. <div
  6013. class="answerScore"
  6014. v-if="w.score"
  6015. @click.stop="openScore(w)"
  6016. :class="{
  6017. rightW:
  6018. w.userid == userid || tType == 1 || tType == 4,
  6019. }"
  6020. >
  6021. {{ JSON.parse(w.score).wScore }}分
  6022. </div>
  6023. <div
  6024. class="answerScore"
  6025. @click.stop="openScore(w)"
  6026. v-else-if="courseDetail.userid == userid"
  6027. :class="{
  6028. rightW:
  6029. w.userid == userid || tType == 1 || tType == 4,
  6030. }"
  6031. >
  6032. 评分
  6033. </div>
  6034. <img
  6035. class="deleteImg"
  6036. src="../../assets/deleteworks.png"
  6037. v-if="
  6038. w.userid == userid || tType == 1 || tType == 4
  6039. "
  6040. @click.stop="deleteWorks(w.wid)"
  6041. alt
  6042. />
  6043. </div>
  6044. <div class="comment" style="min-width: 200px">
  6045. <div class="worksName">
  6046. <div>{{ w.sName }}</div>
  6047. </div>
  6048. <div class="commentList">
  6049. <div class="commentList">
  6050. <div
  6051. class="commentImg"
  6052. @click="
  6053. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6054. "
  6055. >
  6056. <img
  6057. :src="w.isLikes == true ? likes : noLikes"
  6058. alt=""
  6059. />
  6060. </div>
  6061. <div>{{ w.likesCount }}</div>
  6062. </div>
  6063. <div class="commentList" style="margin-right: 15px">
  6064. <div
  6065. class="commentImg"
  6066. @click="commentOther(w, toolIndex, wIndex)"
  6067. >
  6068. <img
  6069. src="../../assets/icon/comment/comment.png"
  6070. alt=""
  6071. />
  6072. </div>
  6073. <div>{{ w.commentCount }}</div>
  6074. </div>
  6075. </div>
  6076. </div>
  6077. </div>
  6078. </div>
  6079. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6080. 未提交
  6081. </div>
  6082. <div
  6083. class="noWorksS"
  6084. v-if="noWorksS && noWorksS[toolIndex].length"
  6085. >
  6086. <div
  6087. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6088. :key="sIndex"
  6089. class="noWorksName"
  6090. >
  6091. <el-tooltip effect="dark" :content="s.student" placement="top">
  6092. <span>{{ s.student }}</span>
  6093. </el-tooltip>
  6094. </div>
  6095. </div>
  6096. </div>
  6097. <div
  6098. v-if="
  6099. tType &&
  6100. ((tType == 2 && sIsOpen == true) ||
  6101. tType == 1 ||
  6102. tType == 4) &&
  6103. tool.tool.indexOf(7) != -1
  6104. "
  6105. class="worksBox"
  6106. >
  6107. <div
  6108. class="zuoyeYulan"
  6109. v-if="
  6110. (worksStudent.length &&
  6111. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  6112. "
  6113. >
  6114. <div class="worksTop">
  6115. <div>作业预览</div>
  6116. <div
  6117. class="corOpen"
  6118. @click="contract(toolIndex)"
  6119. v-if="
  6120. (isCloseList[toolIndex].isCloseBoolean) &&
  6121. isCloseList[toolIndex].isClose == 0
  6122. "
  6123. >
  6124. 折叠
  6125. </div>
  6126. <div
  6127. class="corOpen"
  6128. @click="contract(toolIndex)"
  6129. v-if="isCloseList[toolIndex].isClose == 1"
  6130. >
  6131. 展开
  6132. </div>
  6133. </div>
  6134. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6135. </div>
  6136. <div
  6137. class="group_workBox"
  6138. v-for="(g, gindex) in courseGroup.group"
  6139. :key="gindex"
  6140. >
  6141. <div class="group_box">
  6142. <div class="group_title">
  6143. <el-tooltip
  6144. class="item"
  6145. effect="light"
  6146. :content="g.name"
  6147. placement="top"
  6148. >
  6149. <div class="group_name">{{ g.name }}</div>
  6150. </el-tooltip>
  6151. </div>
  6152. <div
  6153. class="group_work"
  6154. v-if="
  6155. g.works &&
  6156. g.works.length &&
  6157. g.works[toolIndex].length
  6158. "
  6159. >
  6160. <div
  6161. class="works"
  6162. style="
  6163. width: 200px;
  6164. height: 140px;
  6165. margin: 10px 10px 10px 0;
  6166. border-radius: 15px;
  6167. box-shadow: 0 0 6px 1px #dfdada;
  6168. "
  6169. v-for="(w, wIndex) in g.works[toolIndex]"
  6170. :key="wIndex"
  6171. :class="w.type == 1 ? 'isTypeOne' : ''"
  6172. >
  6173. <div class="workImg">
  6174. <img
  6175. :src="w.works"
  6176. @click="previewImg(w.works,w)"
  6177. alt
  6178. />
  6179. <div
  6180. class="answerScore"
  6181. v-if="w.score"
  6182. @click.stop="openScore(w)"
  6183. :class="{
  6184. rightW:
  6185. w.userid == userid ||
  6186. tType == 1 ||
  6187. tType == 4,
  6188. }"
  6189. >
  6190. {{ JSON.parse(w.score).wScore }}分
  6191. </div>
  6192. <div
  6193. class="answerScore"
  6194. @click.stop="openScore(w)"
  6195. v-else-if="courseDetail.userid == userid"
  6196. :class="{
  6197. rightW:
  6198. w.userid == userid ||
  6199. tType == 1 ||
  6200. tType == 4,
  6201. }"
  6202. >
  6203. 评分
  6204. </div>
  6205. <img
  6206. class="deleteImg"
  6207. src="../../assets/deleteworks.png"
  6208. v-if="
  6209. w.userid == userid || tType == 1 || tType == 4
  6210. "
  6211. @click.stop="deleteWorks(w.wid)"
  6212. alt
  6213. />
  6214. </div>
  6215. <div class="comment" style="min-width: 200px">
  6216. <div class="worksName">
  6217. <div>{{ w.sName }}</div>
  6218. </div>
  6219. <div class="commentList">
  6220. <div class="commentList">
  6221. <div
  6222. class="commentImg"
  6223. @click="
  6224. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6225. "
  6226. >
  6227. <img
  6228. :src="w.isLikes == true ? likes : noLikes"
  6229. alt=""
  6230. />
  6231. </div>
  6232. <div>{{ w.likesCount }}</div>
  6233. </div>
  6234. <div
  6235. class="commentList"
  6236. style="margin-right: 15px"
  6237. >
  6238. <div
  6239. class="commentImg"
  6240. @click="
  6241. commentOther(
  6242. w,
  6243. toolIndex,
  6244. wIndex,
  6245. null,
  6246. g.id
  6247. )
  6248. "
  6249. >
  6250. <img
  6251. src="../../assets/icon/comment/comment.png"
  6252. alt=""
  6253. />
  6254. </div>
  6255. <div>{{ w.commentCount }}</div>
  6256. </div>
  6257. </div>
  6258. </div>
  6259. </div>
  6260. </div>
  6261. <div class="group_work" v-else>暂无提交作业</div>
  6262. </div>
  6263. </div>
  6264. <div
  6265. :id="'tool-' + toolIndex"
  6266. :style="{
  6267. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6268. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6269. }"
  6270. class="worksDetailBox"
  6271. v-if="
  6272. worksStudent.length &&
  6273. worksStudent[toolIndex].length > 0
  6274. "
  6275. >
  6276. <div
  6277. class="works"
  6278. style="
  6279. width: 200px;
  6280. height: 140px;
  6281. margin: 10px 10px 10px 0;
  6282. border-radius: 15px;
  6283. box-shadow: 0 0 6px 1px #dfdada;
  6284. "
  6285. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6286. :key="wIndex"
  6287. >
  6288. <!-- @click="previewImg(w.works)" -->
  6289. <div class="workImg">
  6290. <img
  6291. :src="w.works"
  6292. @click="previewImg(w.works,w)"
  6293. alt
  6294. />
  6295. <div
  6296. class="answerScore"
  6297. v-if="w.score"
  6298. @click.stop="openScore(w)"
  6299. :class="{
  6300. rightW:
  6301. w.userid == userid || tType == 1 || tType == 4,
  6302. }"
  6303. >
  6304. {{ JSON.parse(w.score).wScore }}分
  6305. </div>
  6306. <div
  6307. class="answerScore"
  6308. @click.stop="openScore(w)"
  6309. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  6310. :class="{
  6311. rightW:
  6312. w.userid == userid || tType == 1 || tType == 4,
  6313. }"
  6314. >
  6315. 评分
  6316. </div>
  6317. <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length">
  6318. <div
  6319. v-if="finalMarkList != toolIndex"
  6320. class="answerScore"
  6321. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  6322. :class="{
  6323. rightW:
  6324. w.userid == userid ||
  6325. tType == 1 ||
  6326. tType == 4 ||
  6327. w.ateacher == userid,
  6328. }"
  6329. >
  6330. <span>查看</span>
  6331. </div>
  6332. <el-popover
  6333. v-else
  6334. placement="top"
  6335. width="318"
  6336. :disabled="AIloading[toolIndex][wIndex].loading"
  6337. trigger="hover"
  6338. >
  6339. <markScore
  6340. :loading="AIloading[toolIndex][wIndex].loading"
  6341. :ref="`markSco${toolIndex}${wIndex}`"
  6342. @updateLoading=updateLoading
  6343. @updateDocSco=updateDocSco
  6344. @refreshOther=refreshOther
  6345. @markScoreDig=markScoreDig
  6346. @handleHide=handleHide
  6347. :wIndex="wIndex"
  6348. :scoCon="w"
  6349. :toolIndex="toolIndex"
  6350. :key="refreshKey"
  6351. :stage="courseType"
  6352. :task="taskCount"
  6353. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  6354. >
  6355. </markScore>
  6356. <div
  6357. class="answerScore"
  6358. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  6359. slot="reference"
  6360. :class="{
  6361. rightW:
  6362. w.userid == userid ||
  6363. tType == 1 ||
  6364. tType == 4 ||
  6365. w.ateacher == userid,
  6366. }"
  6367. >
  6368. <span v-if="AIloading[toolIndex][wIndex].sco">
  6369. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  6370. </span>
  6371. <span v-else>
  6372. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  6373. </span>
  6374. </div>
  6375. </el-popover>
  6376. </div>
  6377. <img
  6378. class="deleteImg"
  6379. src="../../assets/deleteworks.png"
  6380. v-if="
  6381. w.userid == userid || tType == 1 || tType == 4
  6382. "
  6383. @click.stop="deleteWorks(w.wid)"
  6384. alt
  6385. />
  6386. </div>
  6387. <div class="comment" style="min-width: 200px">
  6388. <div class="worksName">
  6389. <div>{{ w.sName }}</div>
  6390. </div>
  6391. <div class="commentList">
  6392. <div class="commentList">
  6393. <div
  6394. class="commentImg"
  6395. @click="
  6396. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6397. "
  6398. >
  6399. <img
  6400. :src="w.isLikes == true ? likes : noLikes"
  6401. alt=""
  6402. />
  6403. </div>
  6404. <div>{{ w.likesCount }}</div>
  6405. </div>
  6406. <div class="commentList" style="margin-right: 15px">
  6407. <div
  6408. class="commentImg"
  6409. @click="commentOther(w, toolIndex, wIndex)"
  6410. >
  6411. <img
  6412. src="../../assets/icon/comment/comment.png"
  6413. alt=""
  6414. />
  6415. </div>
  6416. <div>{{ w.commentCount }}</div>
  6417. </div>
  6418. </div>
  6419. </div>
  6420. </div>
  6421. </div>
  6422. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6423. 未提交
  6424. </div>
  6425. <div
  6426. class="noWorksS"
  6427. v-if="noWorksS && noWorksS[toolIndex].length"
  6428. >
  6429. <div
  6430. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6431. :key="sIndex"
  6432. class="noWorksName"
  6433. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6434. >
  6435. <el-tooltip effect="dark" :content="s.student" placement="top">
  6436. <span>{{ s.student }}</span>
  6437. </el-tooltip>
  6438. </div>
  6439. </div>
  6440. </div>
  6441. <div
  6442. v-if="
  6443. tType &&
  6444. ((tType == 2 && sIsOpen == true) ||
  6445. tType == 1 ||
  6446. tType == 4) &&
  6447. tool.tool.indexOf(26) != -1
  6448. "
  6449. class="worksBox"
  6450. >
  6451. <div
  6452. class="zuoyeYulan"
  6453. v-if="
  6454. worksStudent.length &&
  6455. worksStudent[toolIndex].length > 0
  6456. "
  6457. >
  6458. <div class="worksTop">
  6459. <div>作业预览</div>
  6460. <div
  6461. class="corOpen"
  6462. @click="contract(toolIndex)"
  6463. v-if="
  6464. (isCloseList[toolIndex].isCloseBoolean) &&
  6465. isCloseList[toolIndex].isClose == 0
  6466. "
  6467. >
  6468. 折叠
  6469. </div>
  6470. <div
  6471. class="corOpen"
  6472. @click="contract(toolIndex)"
  6473. v-if="isCloseList[toolIndex].isClose == 1"
  6474. >
  6475. 展开
  6476. </div>
  6477. </div>
  6478. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6479. </div>
  6480. <div
  6481. :id="'tool-' + toolIndex"
  6482. :style="{
  6483. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6484. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6485. }"
  6486. class="worksDetailBox"
  6487. v-if="
  6488. worksStudent.length &&
  6489. worksStudent[toolIndex].length > 0
  6490. "
  6491. >
  6492. <div
  6493. class="works"
  6494. style="width: 240px; height: 140px; overflow: hidden"
  6495. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6496. :key="wIndex"
  6497. :class="w.type == 1 ? 'isTypeOne' : ''"
  6498. >
  6499. <div class="workImg" v-if="w.type == 0">
  6500. <img
  6501. :src="w.works"
  6502. @click="previewImg(w.works,w)"
  6503. alt
  6504. />
  6505. <img
  6506. class="deleteImg"
  6507. src="../../assets/deleteworks.png"
  6508. v-if="
  6509. w.userid == userid || tType == 1 || tType == 4
  6510. "
  6511. @click.stop="deleteWorks(w.wid)"
  6512. alt
  6513. />
  6514. </div>
  6515. <div class="workImg" v-if="w.type == 1">
  6516. <img :src="word" @click="openFile(w.works)" alt />
  6517. <img
  6518. class="deleteImg"
  6519. src="../../assets/deleteworks.png"
  6520. v-if="
  6521. w.userid == userid || tType == 1 || tType == 4
  6522. "
  6523. @click.stop="deleteWorks(w.wid)"
  6524. alt
  6525. />
  6526. </div>
  6527. <div class="worksName">
  6528. <div>{{ w.sName }}</div>
  6529. </div>
  6530. </div>
  6531. </div>
  6532. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6533. 未提交
  6534. </div>
  6535. <div
  6536. class="noWorksS"
  6537. v-if="noWorksS && noWorksS[toolIndex].length"
  6538. >
  6539. <div
  6540. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6541. :key="sIndex"
  6542. class="noWorksName"
  6543. >
  6544. <el-tooltip effect="dark" :content="s.student" placement="top">
  6545. <span>{{ s.student }}</span>
  6546. </el-tooltip>
  6547. </div>
  6548. </div>
  6549. </div>
  6550. <div
  6551. v-if="
  6552. tType &&
  6553. ((tType == 2 && sIsOpen == true) ||
  6554. tType == 1 ||
  6555. tType == 4) &&
  6556. tool.tool.indexOf(40) != -1
  6557. "
  6558. class="worksBox"
  6559. >
  6560. <div
  6561. class="zuoyeYulan"
  6562. v-if="
  6563. worksStudent.length &&
  6564. worksStudent[toolIndex].length > 0
  6565. "
  6566. >
  6567. <div class="worksTop">
  6568. <div>作业预览</div>
  6569. <div
  6570. class="corOpen"
  6571. @click="contract(toolIndex)"
  6572. v-if="
  6573. (isCloseList[toolIndex].isCloseBoolean) &&
  6574. isCloseList[toolIndex].isClose == 0
  6575. "
  6576. >
  6577. 折叠
  6578. </div>
  6579. <div
  6580. class="corOpen"
  6581. @click="contract(toolIndex)"
  6582. v-if="isCloseList[toolIndex].isClose == 1"
  6583. >
  6584. 展开
  6585. </div>
  6586. </div>
  6587. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6588. </div>
  6589. <div
  6590. :id="'tool-' + toolIndex"
  6591. :style="{
  6592. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6593. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6594. }"
  6595. class="worksDetailBox"
  6596. v-if="
  6597. worksStudent.length &&
  6598. worksStudent[toolIndex].length > 0
  6599. "
  6600. >
  6601. <div
  6602. class="works"
  6603. style="
  6604. width: 200px;
  6605. height: 140px;
  6606. margin: 10px 10px 10px 0;
  6607. border-radius: 15px;
  6608. box-shadow: 0 0 6px 1px #dfdada;
  6609. "
  6610. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6611. :key="wIndex"
  6612. :class="w.type == 1 ? 'isTypeOne' : ''"
  6613. >
  6614. <div class="workImg">
  6615. <img
  6616. src="../../assets/icon/works/noImg.png"
  6617. @click="openPj(w.works, toolIndex)"
  6618. alt
  6619. />
  6620. <img
  6621. class="deleteImg"
  6622. src="../../assets/deleteworks.png"
  6623. v-if="
  6624. w.userid == userid || tType == 1 || tType == 4
  6625. "
  6626. @click.stop="deleteWorks(w.wid)"
  6627. alt
  6628. />
  6629. </div>
  6630. <div class="comment" style="min-width: 200px">
  6631. <div class="worksName">
  6632. <div>{{ w.sName }}</div>
  6633. </div>
  6634. <div class="commentList">
  6635. <div class="commentList">
  6636. <div
  6637. class="commentImg"
  6638. @click="
  6639. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6640. "
  6641. >
  6642. <img
  6643. :src="w.isLikes == true ? likes : noLikes"
  6644. alt=""
  6645. />
  6646. </div>
  6647. <div>{{ w.likesCount }}</div>
  6648. </div>
  6649. <div class="commentList" style="margin-right: 15px">
  6650. <div
  6651. class="commentImg"
  6652. @click="commentOther(w, toolIndex, wIndex)"
  6653. >
  6654. <img
  6655. src="../../assets/icon/comment/comment.png"
  6656. alt=""
  6657. />
  6658. </div>
  6659. <div>{{ w.commentCount }}</div>
  6660. </div>
  6661. </div>
  6662. </div>
  6663. </div>
  6664. </div>
  6665. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6666. 未提交
  6667. </div>
  6668. <div
  6669. class="noWorksS"
  6670. v-if="noWorksS && noWorksS[toolIndex].length"
  6671. >
  6672. <div
  6673. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6674. :key="sIndex"
  6675. class="noWorksName"
  6676. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6677. >
  6678. <el-tooltip effect="dark" :content="s.student" placement="top">
  6679. <span>{{ s.student }}</span>
  6680. </el-tooltip>
  6681. </div>
  6682. </div>
  6683. </div>
  6684. <div
  6685. v-if="
  6686. tType &&
  6687. tType == 2 &&
  6688. !sIsOpen &&
  6689. tool.tool.indexOf(40) != -1
  6690. "
  6691. class="worksBox"
  6692. >
  6693. <div
  6694. class="zuoyeYulan"
  6695. v-if="workStudent[toolIndex].length > 0"
  6696. >
  6697. <span class="worksTitle">作业预览</span>
  6698. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6699. </div>
  6700. <div
  6701. class="worksDetailBox"
  6702. v-if="workStudent[toolIndex].length > 0"
  6703. >
  6704. <div
  6705. class="works"
  6706. style="
  6707. width: 200px;
  6708. height: 140px;
  6709. margin: 10px 10px 10px 0;
  6710. "
  6711. v-for="(w, wIndex) in workStudent[toolIndex]"
  6712. :key="wIndex"
  6713. >
  6714. <div class="workImg">
  6715. <img
  6716. src="../../assets/icon/works/noImg.png"
  6717. @click="openPj(w.works, toolIndex)"
  6718. alt
  6719. />
  6720. <img
  6721. class="deleteImg"
  6722. src="../../assets/deleteworks.png"
  6723. v-if="
  6724. w.userid == userid || tType == 1 || tType == 4
  6725. "
  6726. @click.stop="deleteWorks(w.wid)"
  6727. alt
  6728. />
  6729. </div>
  6730. <div class="worksName">
  6731. <div>{{ w.sName }}</div>
  6732. </div>
  6733. </div>
  6734. </div>
  6735. </div>
  6736. <div
  6737. v-if="
  6738. tType &&
  6739. ((tType == 2 && sIsOpen == true) ||
  6740. tType == 1 ||
  6741. tType == 4) &&
  6742. tool.tool.indexOf(41) != -1
  6743. "
  6744. >
  6745. <AnswerData2
  6746. v-if="
  6747. worksStudent.length &&
  6748. worksStudent[toolIndex].length > 0
  6749. "
  6750. :problemJson="tool.selectJson.answer"
  6751. :people="worksStudent[toolIndex]"
  6752. ></AnswerData2>
  6753. </div>
  6754. <div
  6755. v-if="
  6756. tType &&
  6757. ((tType == 2 && sIsOpen == true) ||
  6758. tType == 1 ||
  6759. tType == 4) &&
  6760. tool.tool.indexOf(41) != -1
  6761. "
  6762. class="worksBox"
  6763. >
  6764. <div
  6765. class="zuoyeYulan"
  6766. v-if="
  6767. worksStudent.length &&
  6768. worksStudent[toolIndex].length > 0
  6769. "
  6770. >
  6771. <div class="worksTop">
  6772. <div>作业预览</div>
  6773. <div
  6774. class="corOpen"
  6775. @click="contract(toolIndex)"
  6776. v-if="
  6777. (isCloseList[toolIndex].isCloseBoolean) &&
  6778. isCloseList[toolIndex].isClose == 0
  6779. "
  6780. >
  6781. 折叠
  6782. </div>
  6783. <div
  6784. class="corOpen"
  6785. @click="contract(toolIndex)"
  6786. v-if="isCloseList[toolIndex].isClose == 1"
  6787. >
  6788. 展开
  6789. </div>
  6790. </div>
  6791. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6792. </div>
  6793. <div
  6794. :id="'tool-' + toolIndex"
  6795. :style="{
  6796. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6797. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6798. }"
  6799. class="worksDetailBox"
  6800. v-if="
  6801. worksStudent.length &&
  6802. worksStudent[toolIndex].length > 0
  6803. "
  6804. >
  6805. <div
  6806. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6807. :key="wIndex"
  6808. class="isWorksName2"
  6809. @click="openXz(w, toolIndex)"
  6810. >
  6811. {{ w.sName }}
  6812. <img
  6813. class="deleteImg deleteImg2"
  6814. src="../../assets/deleteworks.png"
  6815. v-if="w.userid == userid || tType == 1 || tType == 4"
  6816. @click.stop="deleteWorks(w.wid)"
  6817. alt
  6818. />
  6819. </div>
  6820. <!-- <div
  6821. class="works"
  6822. style="
  6823. width: 200px;
  6824. height: 140px;
  6825. margin: 10px 10px 10px 0;
  6826. border-radius: 15px;
  6827. box-shadow: 0 0 6px 1px #dfdada;
  6828. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6829. :class="w.type == 5 ? 'isTypeOne' : ''">
  6830. <div class="workImg">
  6831. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6832. </div>
  6833. <div class="worksName">
  6834. <div>{{ w.sName }}</div>
  6835. </div>
  6836. </div> -->
  6837. </div>
  6838. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6839. 未提交
  6840. </div>
  6841. <div
  6842. class="noWorksS"
  6843. v-if="noWorksS && noWorksS[toolIndex].length"
  6844. >
  6845. <div
  6846. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6847. :key="sIndex"
  6848. class="noWorksName"
  6849. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6850. >
  6851. <el-tooltip effect="dark" :content="s.student" placement="top">
  6852. <span>{{ s.student }}</span>
  6853. </el-tooltip>
  6854. </div>
  6855. </div>
  6856. </div>
  6857. <div
  6858. v-if="
  6859. tType &&
  6860. tType == 2 &&
  6861. !sIsOpen &&
  6862. tool.tool.indexOf(41) != -1
  6863. "
  6864. class="worksBox"
  6865. >
  6866. <div
  6867. class="zuoyeYulan"
  6868. v-if="workStudent[toolIndex].length > 0"
  6869. >
  6870. <span class="worksTitle">作业预览</span>
  6871. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6872. </div>
  6873. <div
  6874. class="worksDetailBox"
  6875. v-if="workStudent[toolIndex].length > 0"
  6876. >
  6877. <div
  6878. class="works"
  6879. style="
  6880. width: 200px;
  6881. height: 140px;
  6882. margin: 10px 10px 10px 0;
  6883. "
  6884. v-for="(w, wIndex) in workStudent[toolIndex]"
  6885. :key="wIndex"
  6886. >
  6887. <div class="workImg">
  6888. <img
  6889. src="../../assets/icon/works/noImg.png"
  6890. @click="openXz(w, toolIndex)"
  6891. alt
  6892. />
  6893. <img
  6894. class="deleteImg"
  6895. src="../../assets/deleteworks.png"
  6896. v-if="
  6897. w.userid == userid || tType == 1 || tType == 4
  6898. "
  6899. @click.stop="deleteWorks(w.wid)"
  6900. alt
  6901. />
  6902. </div>
  6903. <div class="worksName">
  6904. <div>{{ w.sName }}</div>
  6905. </div>
  6906. </div>
  6907. </div>
  6908. </div>
  6909. <div v-if="false" class="xuan_right_box">
  6910. <div
  6911. class="tool_right_box"
  6912. v-for="(item, index) in tool.sentenceList"
  6913. :key="index"
  6914. >
  6915. <div>
  6916. <span
  6917. style="word-break: break-all; white-space: normal"
  6918. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6919. >
  6920. </div>
  6921. <div class="right_box_xuan">
  6922. <span>正确率</span>
  6923. <span>{{
  6924. (checkJson[toolIndex][index].right
  6925. ? checkJson[toolIndex][index].right
  6926. : 0) + "%"
  6927. }}</span>
  6928. </div>
  6929. <div class="right_box_xuan">
  6930. <span>答对人数</span>
  6931. <span>{{
  6932. checkJson[toolIndex][index].rightPerson.length
  6933. }}</span>
  6934. </div>
  6935. </div>
  6936. </div>
  6937. <div
  6938. v-if="
  6939. tType &&
  6940. ((tType == 2 && sIsOpen == true) ||
  6941. tType == 1 ||
  6942. tType == 4) &&
  6943. tool.tool.indexOf(47) != -1
  6944. "
  6945. >
  6946. <AnswerData
  6947. v-if="
  6948. checkJson[toolIndex].length &&
  6949. (tool.sentenceList || tool.sentenceList.length > 0)
  6950. "
  6951. :people="checkJson[toolIndex]"
  6952. ></AnswerData>
  6953. </div>
  6954. <div
  6955. v-if="
  6956. tType &&
  6957. tType == 2 &&
  6958. !sIsOpen &&
  6959. tool.tool.indexOf(47) != -1
  6960. "
  6961. class="worksBox"
  6962. >
  6963. <div
  6964. class="zuoyeYulan"
  6965. v-if="workStudent[toolIndex].length > 0"
  6966. >
  6967. <span class="worksTitle">作业预览</span>
  6968. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6969. </div>
  6970. <div
  6971. class="worksDetailBox"
  6972. v-if="workStudent[toolIndex].length > 0"
  6973. >
  6974. <div
  6975. class="works"
  6976. style="
  6977. width: 200px;
  6978. height: 140px;
  6979. margin: 10px 10px 10px 0;
  6980. "
  6981. v-for="(w, wIndex) in workStudent[toolIndex]"
  6982. :key="wIndex"
  6983. >
  6984. <!-- @click="openXz(w, toolIndex)" -->
  6985. <div class="workImg" @click="openSen(w, toolIndex)">
  6986. <img src="../../assets/icon/works/noImg.png" alt />
  6987. <img
  6988. class="deleteImg"
  6989. src="../../assets/deleteworks.png"
  6990. v-if="
  6991. w.userid == userid || tType == 1 || tType == 4
  6992. "
  6993. @click.stop="deleteWorks(w.wid)"
  6994. alt
  6995. />
  6996. </div>
  6997. <div class="worksName">
  6998. <div>
  6999. {{ w.sName }}
  7000. </div>
  7001. </div>
  7002. </div>
  7003. </div>
  7004. </div>
  7005. <div
  7006. v-if="
  7007. tType &&
  7008. ((tType == 2 && sIsOpen == true) ||
  7009. tType == 1 ||
  7010. tType == 4) &&
  7011. tool.tool.indexOf(47) != -1
  7012. "
  7013. class="worksBox"
  7014. >
  7015. <div
  7016. class="zuoyeYulan"
  7017. v-if="
  7018. worksStudent.length &&
  7019. worksStudent[toolIndex].length > 0
  7020. "
  7021. >
  7022. <div class="worksTop">
  7023. <div>作业预览</div>
  7024. <div
  7025. class="corOpen"
  7026. @click="contract(toolIndex)"
  7027. v-if="
  7028. (isCloseList[toolIndex].isCloseBoolean) &&
  7029. isCloseList[toolIndex].isClose == 0
  7030. "
  7031. >
  7032. 折叠
  7033. </div>
  7034. <div
  7035. class="corOpen"
  7036. @click="contract(toolIndex)"
  7037. v-if="isCloseList[toolIndex].isClose == 1"
  7038. >
  7039. 展开
  7040. </div>
  7041. </div>
  7042. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7043. </div>
  7044. <div
  7045. :id="'tool-' + toolIndex"
  7046. :style="{
  7047. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7048. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7049. }"
  7050. class="worksDetailBox"
  7051. v-if="
  7052. worksStudent.length &&
  7053. worksStudent[toolIndex].length > 0
  7054. "
  7055. >
  7056. <!-- @click="openXz(w, toolIndex)" -->
  7057. <div
  7058. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7059. :key="wIndex"
  7060. class="isWorksName2"
  7061. @click="openSen(w, toolIndex)"
  7062. >
  7063. {{ w.sName }}
  7064. <img
  7065. class="deleteImg deleteImg2"
  7066. src="../../assets/deleteworks.png"
  7067. v-if="w.userid == userid || tType == 1 || tType == 4"
  7068. @click.stop="deleteWorks(w.wid)"
  7069. alt
  7070. />
  7071. </div>
  7072. </div>
  7073. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7074. 未提交
  7075. </div>
  7076. <div
  7077. class="noWorksS"
  7078. v-if="noWorksS && noWorksS[toolIndex].length"
  7079. >
  7080. <div
  7081. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7082. :key="sIndex"
  7083. class="noWorksName"
  7084. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  7085. >
  7086. <el-tooltip effect="dark" :content="s.student" placement="top">
  7087. <span>{{ s.student }}</span>
  7088. </el-tooltip>
  7089. </div>
  7090. </div>
  7091. </div>
  7092. <div
  7093. v-if="
  7094. tType &&
  7095. ((tType == 2 && sIsOpen == true) ||
  7096. tType == 1 ||
  7097. tType == 4) &&
  7098. tool.tool.indexOf(48) != -1
  7099. "
  7100. class="worksBox"
  7101. >
  7102. <div
  7103. class="zuoyeYulan"
  7104. style="display: flex;justify-content: space-between;align-items: center;"
  7105. v-if="
  7106. worksStudent.length &&
  7107. worksStudent[toolIndex].length > 0
  7108. "
  7109. >
  7110. <div class="worksTop">
  7111. <div>作业预览</div>
  7112. <div
  7113. class="corOpen"
  7114. @click="contract(toolIndex)"
  7115. v-if="
  7116. (isCloseList[toolIndex].isCloseBoolean) &&
  7117. isCloseList[toolIndex].isClose == 0
  7118. "
  7119. >
  7120. 折叠
  7121. </div>
  7122. <div
  7123. class="corOpen"
  7124. @click="contract(toolIndex)"
  7125. v-if="isCloseList[toolIndex].isClose == 1"
  7126. >
  7127. 展开
  7128. </div>
  7129. </div>
  7130. <div style="display: flex;" v-if="courseDetail.userid == userid && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length && courseDetail.state == 5 && finalMarkList == toolIndex">
  7131. <div style="margin-right:10px" class="ScoreBtn" @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  7132. 一键重置
  7133. </div>
  7134. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
  7135. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  7136. AI评分
  7137. </div>
  7138. <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  7139. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  7140. AI评分
  7141. </div>
  7142. <div class="ScoreBtn" v-else >
  7143. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  7144. 正在评分
  7145. </div>
  7146. </div>
  7147. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7148. </div>
  7149. <div
  7150. :id="'tool-' + toolIndex"
  7151. :style="{
  7152. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7153. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7154. }"
  7155. class="worksDetailBox"
  7156. v-if="
  7157. worksStudent.length &&
  7158. worksStudent[toolIndex].length > 0
  7159. "
  7160. >
  7161. <div
  7162. class="works"
  7163. style="
  7164. width: 200px;
  7165. height: 140px;
  7166. margin: 10px 10px 10px 0;
  7167. border-radius: 15px;
  7168. box-shadow: 0 0 6px 1px #dfdada;
  7169. "
  7170. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7171. :key="wIndex"
  7172. :class="w.type == 1 ? 'isTypeOne' : ''"
  7173. >
  7174. <div class="workImg">
  7175. <img :src="word" @click="openTable(w)" alt />
  7176. <!-- @click="openFile(w.works)" -->
  7177. <div
  7178. class="answerScore"
  7179. v-if="w.score"
  7180. @click.stop="openScore(w)"
  7181. :class="{
  7182. rightW:
  7183. w.userid == userid ||
  7184. tType == 1 ||
  7185. tType == 4 ||
  7186. w.ateacher == userid,
  7187. }"
  7188. >
  7189. {{ JSON.parse(w.score).wScore }}分
  7190. </div>
  7191. <div
  7192. class="answerScore"
  7193. @click.stop="openScore(w)"
  7194. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  7195. :class="{
  7196. rightW:
  7197. w.userid == userid ||
  7198. tType == 1 ||
  7199. tType == 4 ||
  7200. w.ateacher == userid,
  7201. }"
  7202. >
  7203. 评分
  7204. </div>
  7205. <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length">
  7206. <div
  7207. v-if="finalMarkList != toolIndex"
  7208. class="answerScore"
  7209. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  7210. :class="{
  7211. rightW:
  7212. w.userid == userid ||
  7213. tType == 1 ||
  7214. tType == 4 ||
  7215. w.ateacher == userid,
  7216. }"
  7217. >
  7218. <span>查看</span>
  7219. </div>
  7220. <el-popover
  7221. v-else
  7222. placement="top"
  7223. width="318"
  7224. :disabled="AIloading[toolIndex][wIndex].loading"
  7225. trigger="hover"
  7226. >
  7227. <markScore
  7228. :loading="AIloading[toolIndex][wIndex].loading"
  7229. :ref="`markSco${toolIndex}${wIndex}`"
  7230. @updateLoading=updateLoading
  7231. @updateDocSco=updateDocSco
  7232. @refreshOther=refreshOther
  7233. @markScoreDig=markScoreDig
  7234. @handleHide=handleHide
  7235. :wIndex="wIndex"
  7236. :scoCon="w"
  7237. :toolIndex="toolIndex"
  7238. :key="refreshKey"
  7239. :stage="courseType"
  7240. :task="taskCount"
  7241. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  7242. >
  7243. </markScore>
  7244. <div
  7245. class="answerScore"
  7246. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  7247. slot="reference"
  7248. :class="{
  7249. rightW:
  7250. w.userid == userid ||
  7251. tType == 1 ||
  7252. tType == 4 ||
  7253. w.ateacher == userid,
  7254. }"
  7255. >
  7256. <span v-if="AIloading[toolIndex][wIndex].sco">
  7257. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  7258. </span>
  7259. <span v-else>
  7260. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  7261. </span>
  7262. </div>
  7263. </el-popover>
  7264. </div>
  7265. <img
  7266. class="deleteImg"
  7267. src="../../assets/deleteworks.png"
  7268. v-if="
  7269. w.userid == userid || tType == 1 || tType == 4
  7270. "
  7271. @click.stop="deleteWorks(w.wid)"
  7272. alt
  7273. />
  7274. </div>
  7275. <div class="comment" style="min-width: 200px">
  7276. <div class="worksName">
  7277. <div>{{ w.sName }}</div>
  7278. </div>
  7279. <div class="commentList">
  7280. <div class="commentList">
  7281. <div
  7282. class="commentImg"
  7283. @click="
  7284. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7285. "
  7286. >
  7287. <img
  7288. :src="w.isLikes == true ? likes : noLikes"
  7289. alt=""
  7290. />
  7291. </div>
  7292. <div>{{ w.likesCount }}</div>
  7293. </div>
  7294. <div class="commentList" style="margin-right: 15px">
  7295. <div
  7296. class="commentImg"
  7297. @click="commentOther(w, toolIndex, wIndex)"
  7298. >
  7299. <img
  7300. src="../../assets/icon/comment/comment.png"
  7301. alt=""
  7302. />
  7303. </div>
  7304. <div>{{ w.commentCount }}</div>
  7305. </div>
  7306. </div>
  7307. </div>
  7308. </div>
  7309. </div>
  7310. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7311. 未提交
  7312. </div>
  7313. <div
  7314. class="noWorksS"
  7315. v-if="noWorksS && noWorksS[toolIndex].length"
  7316. >
  7317. <div
  7318. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7319. :key="sIndex"
  7320. class="noWorksName"
  7321. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  7322. >
  7323. <el-tooltip effect="dark" :content="s.student" placement="top">
  7324. <span>{{ s.student }}</span>
  7325. </el-tooltip>
  7326. </div>
  7327. </div>
  7328. </div>
  7329. <div
  7330. v-if="
  7331. tType &&
  7332. tType == 2 &&
  7333. !sIsOpen &&
  7334. tool.tool.indexOf(48) != -1
  7335. "
  7336. class="worksBox"
  7337. >
  7338. <div
  7339. class="zuoyeYulan"
  7340. v-if="workStudent[toolIndex].length > 0"
  7341. >
  7342. <span class="worksTitle">作业预览</span>
  7343. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7344. </div>
  7345. <div
  7346. class="worksDetailBox"
  7347. v-if="workStudent[toolIndex].length > 0"
  7348. >
  7349. <div
  7350. class="works"
  7351. style="
  7352. width: 200px;
  7353. height: 140px;
  7354. margin: 10px 10px 10px 0;
  7355. box-shadow: 0 0 6px 1px #dfdada;
  7356. "
  7357. v-for="(w, wIndex) in workStudent[toolIndex]"
  7358. :key="wIndex"
  7359. >
  7360. <div class="workImg">
  7361. <img :src="word" @click="openTable(w)" alt />
  7362. <div
  7363. class="answerScore"
  7364. v-if="w.score"
  7365. @click.stop="openScore(w)"
  7366. :class="{
  7367. rightW:
  7368. w.userid == userid || tType == 1 || tType == 4,
  7369. }"
  7370. >
  7371. {{ JSON.parse(w.score).wScore }}分
  7372. </div>
  7373. <div
  7374. class="answerScore"
  7375. @click.stop="openScore(w)"
  7376. v-else-if="courseDetail.userid == userid"
  7377. :class="{
  7378. rightW:
  7379. w.userid == userid || tType == 1 || tType == 4,
  7380. }"
  7381. >
  7382. 评分
  7383. </div>
  7384. <img
  7385. class="deleteImg"
  7386. src="../../assets/deleteworks.png"
  7387. v-if="
  7388. w.userid == userid || tType == 1 || tType == 4
  7389. "
  7390. @click.stop="deleteWorks(w.wid)"
  7391. alt
  7392. />
  7393. </div>
  7394. <div class="worksName">
  7395. <div>{{ w.sName }}</div>
  7396. </div>
  7397. </div>
  7398. </div>
  7399. </div>
  7400. <div
  7401. v-if="
  7402. tType &&
  7403. ((tType == 2 && sIsOpen == true) ||
  7404. tType == 1 ||
  7405. tType == 4) &&
  7406. tool.tool.indexOf(52) != -1
  7407. "
  7408. class="worksBox"
  7409. >
  7410. <div
  7411. class="zuoyeYulan"
  7412. style="display: flex;justify-content: space-between;align-items: center;"
  7413. v-if="
  7414. worksStudent.length &&
  7415. worksStudent[toolIndex].length > 0
  7416. "
  7417. >
  7418. <div class="worksTop">
  7419. <div>作业预览</div>
  7420. <div
  7421. class="corOpen"
  7422. @click="contract(toolIndex)"
  7423. v-if="
  7424. (isCloseList[toolIndex].isCloseBoolean) &&
  7425. isCloseList[toolIndex].isClose == 0
  7426. "
  7427. >
  7428. 折叠
  7429. </div>
  7430. <div
  7431. class="corOpen"
  7432. @click="contract(toolIndex)"
  7433. v-if="isCloseList[toolIndex].isClose == 1"
  7434. >
  7435. 展开
  7436. </div>
  7437. </div>
  7438. <div style="display: flex;" v-if="courseDetail.userid == userid && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length && courseDetail.state == 5 && finalMarkList == toolIndex">
  7439. <div @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" style="margin-right:10px" class="ScoreBtn">
  7440. 一键重置
  7441. </div>
  7442. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
  7443. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  7444. AI评分
  7445. </div>
  7446. <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  7447. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  7448. AI评分
  7449. </div>
  7450. <div class="ScoreBtn" v-else >
  7451. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  7452. 正在评分
  7453. </div>
  7454. </div>
  7455. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7456. </div>
  7457. <div
  7458. :id="'tool-' + toolIndex"
  7459. :style="{
  7460. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7461. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7462. }"
  7463. class="worksDetailBox"
  7464. v-if="
  7465. worksStudent.length &&
  7466. worksStudent[toolIndex].length > 0
  7467. "
  7468. >
  7469. <div
  7470. class="works"
  7471. style="
  7472. width: 200px;
  7473. height: 140px;
  7474. margin: 10px 10px 10px 0;
  7475. border-radius: 15px;
  7476. box-shadow: 0 0 6px 1px #dfdada;
  7477. "
  7478. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7479. :key="wIndex"
  7480. :class="w.type == 1 ? 'isTypeOne' : ''"
  7481. >
  7482. <div class="workImg">
  7483. <img :src="word" @click="openWord(w)" alt />
  7484. <!-- @click="openFile(w.works)" -->
  7485. <div
  7486. class="answerScore"
  7487. v-if="w.score"
  7488. @click.stop="openScore(w)"
  7489. :class="{
  7490. rightW:
  7491. w.userid == userid ||
  7492. tType == 1 ||
  7493. tType == 4 ||
  7494. w.ateacher == userid,
  7495. }"
  7496. >
  7497. {{ JSON.parse(w.score).wScore }}分
  7498. </div>
  7499. <div
  7500. class="answerScore"
  7501. @click.stop="openScore(w)"
  7502. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  7503. :class="{
  7504. rightW:
  7505. w.userid == userid ||
  7506. tType == 1 ||
  7507. tType == 4 ||
  7508. w.ateacher == userid,
  7509. }"
  7510. >
  7511. 评分
  7512. </div>
  7513. <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length">
  7514. <!-- <div
  7515. class="answerScore"
  7516. @click="markScoreDig(w.userid,toolIndex)"
  7517. :class="{
  7518. rightW:
  7519. w.userid == userid ||
  7520. tType == 1 ||
  7521. tType == 4 ||
  7522. w.ateacher == userid,
  7523. }"
  7524. >
  7525. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  7526. </div> -->
  7527. <!-- @show="handleShow(toolIndex,wIndex)"
  7528. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  7529. <div
  7530. v-if="finalMarkList != toolIndex"
  7531. class="answerScore"
  7532. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  7533. :class="{
  7534. rightW:
  7535. w.userid == userid ||
  7536. tType == 1 ||
  7537. tType == 4 ||
  7538. w.ateacher == userid,
  7539. }"
  7540. >
  7541. <span>查看</span>
  7542. </div>
  7543. <el-popover
  7544. v-else
  7545. placement="top"
  7546. width="318"
  7547. :disabled="AIloading[toolIndex][wIndex].loading"
  7548. trigger="hover"
  7549. >
  7550. <markScore
  7551. :loading="AIloading[toolIndex][wIndex].loading"
  7552. :ref="`markSco${toolIndex}${wIndex}`"
  7553. @updateLoading=updateLoading
  7554. @updateDocSco=updateDocSco
  7555. @refreshOther=refreshOther
  7556. @markScoreDig=markScoreDig
  7557. @handleHide=handleHide
  7558. :wIndex="wIndex"
  7559. :scoCon="w"
  7560. :toolIndex="toolIndex"
  7561. :key="refreshKey"
  7562. :stage="courseType"
  7563. :task="taskCount"
  7564. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  7565. >
  7566. </markScore>
  7567. <div
  7568. class="answerScore"
  7569. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading)"
  7570. slot="reference"
  7571. :class="{
  7572. rightW:
  7573. w.userid == userid ||
  7574. tType == 1 ||
  7575. tType == 4 ||
  7576. w.ateacher == userid,
  7577. }"
  7578. >
  7579. <span v-if="AIloading[toolIndex][wIndex].sco">
  7580. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  7581. </span>
  7582. <span v-else>
  7583. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  7584. </span>
  7585. </div>
  7586. </el-popover>
  7587. </div>
  7588. <img
  7589. class="deleteImg"
  7590. src="../../assets/deleteworks.png"
  7591. v-if="
  7592. w.userid == userid || tType == 1 || tType == 4
  7593. "
  7594. @click.stop="deleteWorks(w.wid)"
  7595. alt
  7596. />
  7597. </div>
  7598. <div class="comment" style="min-width: 200px">
  7599. <div class="worksName">
  7600. <div>{{ w.sName }}</div>
  7601. </div>
  7602. <div class="commentList">
  7603. <div class="commentList">
  7604. <div
  7605. class="commentImg"
  7606. @click="
  7607. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7608. "
  7609. >
  7610. <img
  7611. :src="w.isLikes == true ? likes : noLikes"
  7612. alt=""
  7613. />
  7614. </div>
  7615. <div>{{ w.likesCount }}</div>
  7616. </div>
  7617. <div class="commentList" style="margin-right: 15px">
  7618. <div
  7619. class="commentImg"
  7620. @click="commentOther(w, toolIndex, wIndex)"
  7621. >
  7622. <img
  7623. src="../../assets/icon/comment/comment.png"
  7624. alt=""
  7625. />
  7626. </div>
  7627. <div>{{ w.commentCount }}</div>
  7628. </div>
  7629. </div>
  7630. </div>
  7631. </div>
  7632. </div>
  7633. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7634. 未提交
  7635. </div>
  7636. <div
  7637. class="noWorksS"
  7638. v-if="noWorksS && noWorksS[toolIndex].length"
  7639. >
  7640. <div
  7641. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7642. :key="sIndex"
  7643. class="noWorksName"
  7644. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7645. >
  7646. <el-tooltip effect="dark" :content="s.student" placement="top">
  7647. <span>{{ s.student }}</span>
  7648. </el-tooltip>
  7649. </div>
  7650. </div>
  7651. </div>
  7652. <div
  7653. v-if="
  7654. tType &&
  7655. tType == 2 &&
  7656. !sIsOpen &&
  7657. tool.tool.indexOf(52) != -1
  7658. "
  7659. class="worksBox"
  7660. >
  7661. <div
  7662. class="zuoyeYulan"
  7663. v-if="workStudent[toolIndex].length > 0"
  7664. >
  7665. <span class="worksTitle">作业预览</span>
  7666. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7667. </div>
  7668. <div
  7669. class="worksDetailBox"
  7670. v-if="workStudent[toolIndex].length > 0"
  7671. >
  7672. <div
  7673. class="works"
  7674. style="
  7675. width: 200px;
  7676. height: 140px;
  7677. margin: 10px 10px 10px 0;
  7678. box-shadow: 0 0 6px 1px #dfdada;
  7679. "
  7680. v-for="(w, wIndex) in workStudent[toolIndex]"
  7681. :key="wIndex"
  7682. >
  7683. <div class="workImg">
  7684. <img :src="word" @click="openWord(w)" alt />
  7685. <div
  7686. class="answerScore"
  7687. v-if="w.score"
  7688. @click.stop="openScore(w)"
  7689. :class="{
  7690. rightW:
  7691. w.userid == userid || tType == 1 || tType == 4,
  7692. }"
  7693. >
  7694. {{ JSON.parse(w.score).wScore }}分
  7695. </div>
  7696. <div
  7697. class="answerScore"
  7698. @click.stop="openScore(w)"
  7699. v-else-if="courseDetail.userid == userid"
  7700. :class="{
  7701. rightW:
  7702. w.userid == userid || tType == 1 || tType == 4,
  7703. }"
  7704. >
  7705. 评分
  7706. </div>
  7707. <img
  7708. class="deleteImg"
  7709. src="../../assets/deleteworks.png"
  7710. v-if="
  7711. w.userid == userid || tType == 1 || tType == 4
  7712. "
  7713. @click.stop="deleteWorks(w.wid)"
  7714. alt
  7715. />
  7716. </div>
  7717. <div class="worksName">
  7718. <div>{{ w.sName }}</div>
  7719. </div>
  7720. </div>
  7721. </div>
  7722. </div>
  7723. <div
  7724. v-if="tool.tool.indexOf(49) != -1"
  7725. class="xuan_right_box"
  7726. style="margin: 0 15px 0 25px; width: 93%"
  7727. >
  7728. <div
  7729. v-if="courseDetail.userid == userid"
  7730. style="
  7731. display: flex;
  7732. justify-content: flex-end;
  7733. margin-right: 10px;
  7734. "
  7735. >
  7736. <el-button
  7737. type="primary"
  7738. size="small"
  7739. @click="addTools(49, toolIndex, taskCount)"
  7740. >分组设置</el-button
  7741. >
  7742. </div>
  7743. <div
  7744. v-if="groupStudentUid[toolIndex]"
  7745. class="group_staic_box"
  7746. >
  7747. <div
  7748. v-for="(gp, gd) in tool.groupJson.group"
  7749. :key="gd"
  7750. class="group_staic"
  7751. >
  7752. <span> {{ gp.name }}</span>
  7753. <span>
  7754. 目前人数{{
  7755. groupStudentUid[toolIndex][gd].length
  7756. }}人</span
  7757. >
  7758. </div>
  7759. </div>
  7760. </div>
  7761. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7762. <div
  7763. class="zuoyeYulan"
  7764. v-if="
  7765. worksStudent.length &&
  7766. worksStudent[toolIndex].length > 0
  7767. "
  7768. >
  7769. <span class="worksTitle">作业预览</span>
  7770. </div>
  7771. <div>
  7772. <div
  7773. class="group_workBox"
  7774. v-for="(g, gindex) in tool.groupJson.group"
  7775. :key="gindex"
  7776. >
  7777. <div
  7778. class="group_box"
  7779. v-if="
  7780. groupStudentUid[toolIndex] &&
  7781. worksStudent[toolIndex] &&
  7782. (worksStudent[toolIndex][gindex].length ||
  7783. groupStudentUid[toolIndex][gindex].indexOf(
  7784. userid
  7785. ) != -1)
  7786. "
  7787. >
  7788. <div class="group_title">
  7789. <el-tooltip
  7790. class="item"
  7791. effect="light"
  7792. :content="g.name"
  7793. placement="top"
  7794. >
  7795. <div class="group_name">{{ g.name }}</div>
  7796. </el-tooltip>
  7797. <el-button
  7798. type="primary"
  7799. v-if="
  7800. groupStudentUid[toolIndex][gindex].indexOf(
  7801. userid
  7802. ) != -1
  7803. "
  7804. @click="groupUpload(toolIndex, taskCount, gindex)"
  7805. >上传作业</el-button
  7806. >
  7807. </div>
  7808. <div class="group_work">
  7809. <div
  7810. class="works"
  7811. style="
  7812. width: 200px;
  7813. height: 140px;
  7814. margin: 10px 10px 10px 0;
  7815. border-radius: 15px;
  7816. box-shadow: 0 0 6px 1px #dfdada;
  7817. "
  7818. v-for="(w, wIndex) in worksStudent[toolIndex][
  7819. gindex
  7820. ]"
  7821. :key="wIndex"
  7822. :class="w.type == 1 ? 'isTypeOne' : ''"
  7823. >
  7824. <div class="workImg" v-if="w.type == 0">
  7825. <img
  7826. :src="w.works"
  7827. @click="previewImg(w.works,w)"
  7828. alt
  7829. />
  7830. <div
  7831. class="answerScore"
  7832. v-if="w.score"
  7833. @click.stop="openScore(w)"
  7834. :class="{
  7835. rightW:
  7836. w.userid == userid ||
  7837. tType == 1 ||
  7838. tType == 4 ||
  7839. w.ateacher == userid,
  7840. }"
  7841. >
  7842. {{ JSON.parse(w.score).wScore }}分
  7843. </div>
  7844. <div
  7845. class="answerScore"
  7846. @click.stop="openScore(w)"
  7847. v-else-if="courseDetail.userid == userid"
  7848. :class="{
  7849. rightW:
  7850. w.userid == userid ||
  7851. tType == 1 ||
  7852. tType == 4 ||
  7853. w.ateacher == userid,
  7854. }"
  7855. >
  7856. 评分
  7857. </div>
  7858. <img
  7859. class="deleteImg"
  7860. src="../../assets/deleteworks.png"
  7861. v-if="
  7862. w.userid == userid ||
  7863. tType == 1 ||
  7864. tType == 4
  7865. "
  7866. @click.stop="deleteWorks(w.wid)"
  7867. alt
  7868. />
  7869. </div>
  7870. <div class="workImg" v-if="w.type == 1">
  7871. <img
  7872. :src="word"
  7873. @click="openFile(w.works)"
  7874. alt
  7875. />
  7876. <!-- @click="openFile(w.works)" -->
  7877. <div
  7878. class="answerScore"
  7879. v-if="w.score"
  7880. @click.stop="openScore(w)"
  7881. :class="{
  7882. rightW:
  7883. w.userid == userid ||
  7884. tType == 1 ||
  7885. tType == 4 ||
  7886. w.ateacher == userid,
  7887. }"
  7888. >
  7889. {{ JSON.parse(w.score).wScore }}分
  7890. </div>
  7891. <div
  7892. class="answerScore"
  7893. @click.stop="openScore(w)"
  7894. v-else-if="courseDetail.userid == userid"
  7895. :class="{
  7896. rightW:
  7897. w.userid == userid ||
  7898. tType == 1 ||
  7899. tType == 4 ||
  7900. w.ateacher == userid,
  7901. }"
  7902. >
  7903. 评分
  7904. </div>
  7905. <img
  7906. class="deleteImg"
  7907. src="../../assets/deleteworks.png"
  7908. v-if="
  7909. w.userid == userid ||
  7910. tType == 1 ||
  7911. tType == 4
  7912. "
  7913. @click.stop="deleteWorks(w.wid)"
  7914. alt
  7915. />
  7916. </div>
  7917. <div class="workImg" v-if="w.type == 3">
  7918. <img
  7919. style="cursor: pointer"
  7920. :src="video"
  7921. @click="openVideo(w)"
  7922. alt
  7923. />
  7924. <!-- @click="openVideo(w.works)" -->
  7925. <div
  7926. class="answerScore"
  7927. v-if="w.score"
  7928. @click.stop="openScore(w)"
  7929. :class="{
  7930. rightW:
  7931. w.userid == userid ||
  7932. tType == 1 ||
  7933. tType == 4 ||
  7934. w.ateacher == userid,
  7935. }"
  7936. >
  7937. {{ JSON.parse(w.score).wScore }}分
  7938. </div>
  7939. <div
  7940. class="answerScore"
  7941. @click.stop="openScore(w)"
  7942. v-else-if="courseDetail.userid == userid"
  7943. :class="{
  7944. rightW:
  7945. w.userid == userid ||
  7946. tType == 1 ||
  7947. tType == 4 ||
  7948. w.ateacher == userid,
  7949. }"
  7950. >
  7951. 评分
  7952. </div>
  7953. <img
  7954. class="deleteImg"
  7955. src="../../assets/deleteworks.png"
  7956. v-if="
  7957. w.userid == userid ||
  7958. tType == 1 ||
  7959. tType == 4
  7960. "
  7961. @click.stop="deleteWorks(w.wid)"
  7962. alt
  7963. />
  7964. </div>
  7965. <div class="workImg" v-if="w.type == 12">
  7966. <img
  7967. style="cursor: pointer"
  7968. :src="word2"
  7969. @click="downloadFile(w.works)"
  7970. alt
  7971. />
  7972. <!-- @click="openVideo(w.works)" -->
  7973. <div
  7974. class="answerScore"
  7975. v-if="w.score"
  7976. @click.stop="openScore(w)"
  7977. :class="{
  7978. rightW:
  7979. w.userid == userid ||
  7980. tType == 1 ||
  7981. tType == 4 ||
  7982. w.ateacher == userid,
  7983. }"
  7984. >
  7985. {{ JSON.parse(w.score).wScore }}分
  7986. </div>
  7987. <div
  7988. class="answerScore"
  7989. @click.stop="openScore(w)"
  7990. v-else-if="courseDetail.userid == userid"
  7991. :class="{
  7992. rightW:
  7993. w.userid == userid ||
  7994. tType == 1 ||
  7995. tType == 4 ||
  7996. w.ateacher == userid,
  7997. }"
  7998. >
  7999. 评分
  8000. </div>
  8001. <img
  8002. class="deleteImg"
  8003. src="../../assets/deleteworks.png"
  8004. v-if="
  8005. w.userid == userid ||
  8006. tType == 1 ||
  8007. tType == 4
  8008. "
  8009. @click.stop="deleteWorks(w.wid)"
  8010. alt
  8011. />
  8012. </div>
  8013. <div class="comment" style="min-width: 200px">
  8014. <div class="worksName">
  8015. <div>{{ w.sName }}</div>
  8016. </div>
  8017. <div class="commentList">
  8018. <div class="commentList">
  8019. <div
  8020. class="commentImg"
  8021. @click="
  8022. isLikes(
  8023. w.wid,
  8024. userid,
  8025. 1,
  8026. null,
  8027. w.isLikes,
  8028. w.sName
  8029. )
  8030. "
  8031. >
  8032. <img
  8033. :src="
  8034. w.isLikes == true ? likes : noLikes
  8035. "
  8036. alt=""
  8037. />
  8038. </div>
  8039. <div>{{ w.likesCount }}</div>
  8040. </div>
  8041. <div
  8042. class="commentList"
  8043. style="margin-right: 15px"
  8044. >
  8045. <div
  8046. class="commentImg"
  8047. @click="
  8048. commentOther(
  8049. w,
  8050. toolIndex,
  8051. wIndex,
  8052. gindex
  8053. )
  8054. "
  8055. >
  8056. <img
  8057. src="../../assets/icon/comment/comment.png"
  8058. alt=""
  8059. />
  8060. </div>
  8061. <div>{{ w.commentCount }}</div>
  8062. </div>
  8063. </div>
  8064. </div>
  8065. </div>
  8066. </div>
  8067. </div>
  8068. </div>
  8069. </div>
  8070. </div>
  8071. </div>
  8072. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  8073. 上传文件
  8074. <input
  8075. type="file"
  8076. accept="image/png, image/gif, image/jpeg"
  8077. style="display: none"
  8078. @change="beforeUpload1($event, 2, index)"
  8079. />
  8080. </div>-->
  8081. </div>
  8082. </div>
  8083. <!-- <div
  8084. class="vedioBox"
  8085. style="margin-top: 10px"
  8086. v-if="
  8087. courseDetail.userid == userid ||
  8088. (courseDetail.course_teacher &&
  8089. courseDetail.course_teacher.indexOf(userid) != -1)
  8090. "
  8091. :style="{
  8092. borderRadius:
  8093. !(
  8094. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8095. .toolChoose[0].tool &&
  8096. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8097. .toolChoose[0].tool.length > 0
  8098. ) &&
  8099. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8100. .taskDetail == '' &&
  8101. vChapterData[taskCount].length == 0 &&
  8102. fileC[taskCount].length == 0
  8103. ? '0 0 20px 20px'
  8104. : '20px',
  8105. }"
  8106. >
  8107. <div
  8108. class="queTop"
  8109. @click="isClose = !isClose"
  8110. style="
  8111. padding: 15px 0 15px 37px;
  8112. justify-content: space-between;
  8113. "
  8114. >
  8115. <div class="queTopTitle">新增工具</div>
  8116. <div class="queTopRight">
  8117. <div class="queTopClose" v-if="isClose == 0">
  8118. 展开
  8119. <div class="closeImg">
  8120. <img src="../../assets/icon/newIcon/close.png" alt="" />
  8121. </div>
  8122. </div>
  8123. <div class="queTopClose" v-if="isClose == 1">
  8124. 折叠
  8125. <div class="openImg">
  8126. <img src="../../assets/icon/newIcon/open.png" alt="" />
  8127. </div>
  8128. </div>
  8129. <el-button
  8130. style="margin: 0 30px 0 auto"
  8131. type="primary"
  8132. size="small"
  8133. v-if="isClose == 1 && checktoolArray.length > 0"
  8134. @click.stop="addToolChoose"
  8135. >确定</el-button
  8136. >
  8137. </div>
  8138. </div>
  8139. <div
  8140. class="tool_work_box"
  8141. :style="isClose == 0 ? 'display:none' : 'display:block'"
  8142. >
  8143. <div class="tool_box">
  8144. <div class="tool_type_box">
  8145. <div class="chooseWho">
  8146. <div
  8147. :class="toolType == 0 ? 'isChooseActive' : ''"
  8148. @click="(toolType = 0), $forceUpdate()"
  8149. >
  8150. 互动类
  8151. </div>
  8152. <div
  8153. :class="toolType == 1 ? 'isChooseActive' : ''"
  8154. @click="(toolType = 1), $forceUpdate()"
  8155. >
  8156. 思维类
  8157. </div>
  8158. <div
  8159. :class="toolType == 2 ? 'isChooseActive' : ''"
  8160. @click="(toolType = 2), $forceUpdate()"
  8161. >
  8162. 测评类
  8163. </div>
  8164. <div
  8165. :class="toolType == 3 ? 'isChooseActive' : ''"
  8166. @click="(toolType = 3), $forceUpdate()"
  8167. >
  8168. 编程类
  8169. </div>
  8170. <div
  8171. :class="toolType == 5 ? 'isChooseActive' : ''"
  8172. @click="(toolType = 5), $forceUpdate()"
  8173. >
  8174. 学科类
  8175. </div>
  8176. </div>
  8177. </div>
  8178. <div>
  8179. <div class="toolSort" v-if="toolType == 0">
  8180. <div class="tool">
  8181. <div class="whiteBIcon" @click="addTools2(10)">
  8182. <img
  8183. src="../../assets/icon/thirdToolList/time.png"
  8184. alt
  8185. />
  8186. <div style="margin: 5px 0">倒计时</div>
  8187. </div>
  8188. <div class="check" @click="addTools2(10)">
  8189. <img
  8190. src="../../assets/icon/checkNo.png"
  8191. alt
  8192. v-if="checktoolArray.indexOf(10) == -1"
  8193. />
  8194. <div class="checkDiv" v-else>
  8195. <img src="../../assets/icon/checkedIs.png" alt /><span
  8196. >已选择</span
  8197. >
  8198. </div>
  8199. </div>
  8200. </div>
  8201. <div class="tool">
  8202. <div class="whiteBIcon" @click="addTools2(65)">
  8203. <img
  8204. src="../../assets/icon/firstToolList/pickPeople.png"
  8205. alt
  8206. />
  8207. <div style="margin: 5px 0">挑人</div>
  8208. </div>
  8209. <div class="check" @click="addTools2(65)">
  8210. <img
  8211. src="../../assets/icon/checkNo.png"
  8212. alt
  8213. v-if="checktoolArray.indexOf(65) == -1"
  8214. />
  8215. <div class="checkDiv" v-else>
  8216. <img src="../../assets/icon/checkedIs.png" alt /><span
  8217. >已选择</span
  8218. >
  8219. </div>
  8220. </div>
  8221. </div>
  8222. </div>
  8223. <div class="toolSort" v-if="toolType == 1">
  8224. <div class="tool">
  8225. <div class="whiteBIcon" @click="addTools2(7)">
  8226. <img
  8227. src="../../assets/icon/secondToolList/mindNetwork.png"
  8228. alt
  8229. />
  8230. <div style="margin: 5px 0">思维网格</div>
  8231. </div>
  8232. <div class="check" @click="addTools2(7)">
  8233. <img
  8234. src="../../assets/icon/checkNo.png"
  8235. alt
  8236. v-if="checktoolArray.indexOf(7) == -1"
  8237. />
  8238. <div class="checkDiv" v-else>
  8239. <img src="../../assets/icon/checkedIs.png" alt /><span
  8240. >已选择</span
  8241. >
  8242. </div>
  8243. </div>
  8244. </div>
  8245. <div class="tool">
  8246. <div class="whiteBIcon" @click="addTools2(1)">
  8247. <img
  8248. src="../../assets/icon/secondToolList/whiteBoard.png"
  8249. alt
  8250. />
  8251. <div style="margin: 5px 0">电子白板</div>
  8252. </div>
  8253. <div class="check" @click="addTools2(1)">
  8254. <img
  8255. src="../../assets/icon/checkNo.png"
  8256. alt
  8257. v-if="checktoolArray.indexOf(1) == -1"
  8258. />
  8259. <div class="checkDiv" v-else>
  8260. <img src="../../assets/icon/checkedIs.png" alt /><span
  8261. >已选择</span
  8262. >
  8263. </div>
  8264. </div>
  8265. </div>
  8266. <div class="tool">
  8267. <div class="whiteBIcon" @click="addTools2(52)">
  8268. <img
  8269. src="../../assets/icon/fourthToolList/text.png"
  8270. alt
  8271. />
  8272. <div style="margin: 5px 0">文档</div>
  8273. </div>
  8274. <div class="check" @click="addTools2(52)">
  8275. <img
  8276. src="../../assets/icon/checkNo.png"
  8277. alt
  8278. v-if="checktoolArray.indexOf(52) == -1"
  8279. />
  8280. <div class="checkDiv" v-else>
  8281. <img src="../../assets/icon/checkedIs.png" alt /><span
  8282. >已选择</span
  8283. >
  8284. </div>
  8285. </div>
  8286. </div>
  8287. <div class="tool">
  8288. <div class="whiteBIcon" @click="addTools2(3)">
  8289. <img
  8290. src="../../assets/icon/secondToolList/mindMapping.png"
  8291. alt
  8292. />
  8293. <div style="margin: 5px 0">思维导图</div>
  8294. </div>
  8295. <div class="check" @click="addTools2(3)">
  8296. <img
  8297. src="../../assets/icon/checkNo.png"
  8298. alt
  8299. v-if="checktoolArray.indexOf(3) == -1"
  8300. />
  8301. <div class="checkDiv" v-else>
  8302. <img src="../../assets/icon/checkedIs.png" alt /><span
  8303. >已选择</span
  8304. >
  8305. </div>
  8306. </div>
  8307. </div>
  8308. <div class="tool">
  8309. <div class="whiteBIcon" @click="addTools2(48)">
  8310. <img
  8311. src="../../assets/icon/fourthToolList/table.png"
  8312. alt
  8313. />
  8314. <div style="margin: 5px 0">表格</div>
  8315. </div>
  8316. <div class="check" @click="addTools2(48)">
  8317. <img
  8318. src="../../assets/icon/checkNo.png"
  8319. alt
  8320. v-if="checktoolArray.indexOf(48) == -1"
  8321. />
  8322. <div class="checkDiv" v-else>
  8323. <img src="../../assets/icon/checkedIs.png" alt /><span
  8324. >已选择</span
  8325. >
  8326. </div>
  8327. </div>
  8328. </div>
  8329. </div>
  8330. <div class="toolSort" v-if="toolType == 6">
  8331. <div v-show="tooC == 49">
  8332. <img
  8333. @click="addTools(tooC, toolIndex, taskCount)"
  8334. src="../../assets/icon/fourthToolList/group.png"
  8335. alt
  8336. />
  8337. <div style="margin: 5px 0">学生分组</div>
  8338. </div>
  8339. </div>
  8340. <div class="toolSort" v-if="toolType == 2">
  8341. <div class="tool">
  8342. <div class="whiteBIcon" @click="addTools2(16)">
  8343. <img
  8344. src="../../assets/icon/thirdToolList/work.png"
  8345. alt
  8346. />
  8347. <div style="margin: 5px 0">作业提交</div>
  8348. </div>
  8349. <div class="check" @click="addTools2(16)">
  8350. <img
  8351. src="../../assets/icon/checkNo.png"
  8352. alt
  8353. v-if="checktoolArray.indexOf(16) == -1"
  8354. />
  8355. <div class="checkDiv" v-else>
  8356. <img src="../../assets/icon/checkedIs.png" alt /><span
  8357. >已选择</span
  8358. >
  8359. </div>
  8360. </div>
  8361. </div>
  8362. <div class="tool">
  8363. <div class="whiteBIcon" @click="addTools2(50)">
  8364. <img
  8365. src="../../assets/icon/thirdToolList/plwork.png"
  8366. alt
  8367. />
  8368. <div style="margin: 5px 0">批量上传</div>
  8369. </div>
  8370. <div class="check" @click="addTools2(50)">
  8371. <img
  8372. src="../../assets/icon/checkNo.png"
  8373. alt
  8374. v-if="checktoolArray.indexOf(50) == -1"
  8375. />
  8376. <div class="checkDiv" v-else>
  8377. <img src="../../assets/icon/checkedIs.png" alt /><span
  8378. >已选择</span
  8379. >
  8380. </div>
  8381. </div>
  8382. </div>
  8383. </div>
  8384. <div class="toolSort" v-if="toolType == 3">
  8385. <div class="tool">
  8386. <div class="whiteBIcon" @click="addTools2(18)">
  8387. <img
  8388. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8389. alt
  8390. />
  8391. <div style="margin: 5px 0">训练平台</div>
  8392. </div>
  8393. <div class="check" @click="addTools2(18)">
  8394. <img
  8395. src="../../assets/icon/checkNo.png"
  8396. alt
  8397. v-if="checktoolArray.indexOf(18) == -1"
  8398. />
  8399. <div class="checkDiv" v-else>
  8400. <img src="../../assets/icon/checkedIs.png" alt /><span
  8401. >已选择</span
  8402. >
  8403. </div>
  8404. </div>
  8405. </div>
  8406. <div class="tool">
  8407. <div class="whiteBIcon" @click="addTools2(21)">
  8408. <img
  8409. src="../../assets/icon/fourthToolList/program.png"
  8410. alt
  8411. />
  8412. <div style="margin: 5px 0">AIoT Blockly</div>
  8413. </div>
  8414. <div class="check" @click="addTools2(21)">
  8415. <img
  8416. src="../../assets/icon/checkNo.png"
  8417. alt
  8418. v-if="checktoolArray.indexOf(21) == -1"
  8419. />
  8420. <div class="checkDiv" v-else>
  8421. <img src="../../assets/icon/checkedIs.png" alt /><span
  8422. >已选择</span
  8423. >
  8424. </div>
  8425. </div>
  8426. </div>
  8427. <div class="tool">
  8428. <div class="whiteBIcon" @click="addTools2(23)">
  8429. <img
  8430. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8431. alt
  8432. />
  8433. <div style="margin: 5px 0">AI Python</div>
  8434. </div>
  8435. <div class="check" @click="addTools2(23)">
  8436. <img
  8437. src="../../assets/icon/checkNo.png"
  8438. alt
  8439. v-if="checktoolArray.indexOf(23) == -1"
  8440. />
  8441. <div class="checkDiv" v-else>
  8442. <img src="../../assets/icon/checkedIs.png" alt /><span
  8443. >已选择</span
  8444. >
  8445. </div>
  8446. </div>
  8447. </div>
  8448. <div class="tool">
  8449. <div class="whiteBIcon" @click="addTools2(24)">
  8450. <img
  8451. src="../../assets/icon/fourthToolList/AIprogram.png"
  8452. alt
  8453. />
  8454. <div style="margin: 5px 0">AI Blockly</div>
  8455. </div>
  8456. <div class="check" @click="addTools2(24)">
  8457. <img
  8458. src="../../assets/icon/checkNo.png"
  8459. alt
  8460. v-if="checktoolArray.indexOf(24) == -1"
  8461. />
  8462. <div class="checkDiv" v-else>
  8463. <img src="../../assets/icon/checkedIs.png" alt /><span
  8464. >已选择</span
  8465. >
  8466. </div>
  8467. </div>
  8468. </div>
  8469. <div class="tool">
  8470. <div class="whiteBIcon" @click="addTools2(32)">
  8471. <img
  8472. src="../../assets/icon/thirdToolList/code.png"
  8473. alt
  8474. />
  8475. <div style="margin: 5px 0">源码编辑</div>
  8476. </div>
  8477. <div class="check" @click="addTools2(32)">
  8478. <img
  8479. src="../../assets/icon/checkNo.png"
  8480. alt
  8481. v-if="checktoolArray.indexOf(32) == -1"
  8482. />
  8483. <div class="checkDiv" v-else>
  8484. <img src="../../assets/icon/checkedIs.png" alt /><span
  8485. >已选择</span
  8486. >
  8487. </div>
  8488. </div>
  8489. </div>
  8490. <div class="tool">
  8491. <div class="whiteBIcon" @click="addTools2(57)">
  8492. <img
  8493. src="../../assets/icon/fourthToolList/cocopi.png"
  8494. alt
  8495. />
  8496. <div style="margin: 5px 0">CocoPi</div>
  8497. </div>
  8498. <div class="check" @click="addTools2(57)">
  8499. <img
  8500. src="../../assets/icon/checkNo.png"
  8501. alt
  8502. v-if="checktoolArray.indexOf(57) == -1"
  8503. />
  8504. <div class="checkDiv" v-else>
  8505. <img src="../../assets/icon/checkedIs.png" alt /><span
  8506. >已选择</span
  8507. >
  8508. </div>
  8509. </div>
  8510. </div>
  8511. <div class="tool">
  8512. <div class="whiteBIcon" @click="addTools2(63)">
  8513. <img
  8514. src="../../assets/icon/fourthToolList/Wood.png"
  8515. alt
  8516. />
  8517. <div style="margin: 5px 0">海龟编程</div>
  8518. </div>
  8519. <div class="check" @click="addTools2(63)">
  8520. <img
  8521. src="../../assets/icon/checkNo.png"
  8522. alt
  8523. v-if="checktoolArray.indexOf(63) == -1"
  8524. />
  8525. <div class="checkDiv" v-else>
  8526. <img src="../../assets/icon/checkedIs.png" alt /><span
  8527. >已选择</span
  8528. >
  8529. </div>
  8530. </div>
  8531. </div>
  8532. </div>
  8533. <div class="toolSort" v-if="toolType == 5">
  8534. <div class="tool">
  8535. <div class="whiteBIcon" @click="addTools2(28)">
  8536. <img
  8537. src="../../assets/icon/secondToolList/translation.png"
  8538. alt
  8539. />
  8540. <div style="margin: 5px 0">翻译</div>
  8541. </div>
  8542. <div class="check" @click="addTools2(28)">
  8543. <img
  8544. src="../../assets/icon/checkNo.png"
  8545. alt
  8546. v-if="checktoolArray.indexOf(28) == -1"
  8547. />
  8548. <div class="checkDiv" v-else>
  8549. <img src="../../assets/icon/checkedIs.png" alt /><span
  8550. >已选择</span
  8551. >
  8552. </div>
  8553. </div>
  8554. </div>
  8555. <div class="tool">
  8556. <div class="whiteBIcon" @click="addTools2(31)">
  8557. <img
  8558. src="../../assets/icon/secondToolList/networkPanel.png"
  8559. alt
  8560. />
  8561. <div style="margin: 5px 0">数字画板</div>
  8562. </div>
  8563. <div class="check" @click="addTools2(31)">
  8564. <img
  8565. src="../../assets/icon/checkNo.png"
  8566. alt
  8567. v-if="checktoolArray.indexOf(31) == -1"
  8568. />
  8569. <div class="checkDiv" v-else>
  8570. <img src="../../assets/icon/checkedIs.png" alt /><span
  8571. >已选择</span
  8572. >
  8573. </div>
  8574. </div>
  8575. </div>
  8576. <div class="tool">
  8577. <div class="whiteBIcon" @click="addTools2(39)">
  8578. <img
  8579. src="../../assets/icon/secondToolList/GeoGebra.png"
  8580. alt
  8581. />
  8582. <div style="margin: 5px 0">GeoGebra</div>
  8583. </div>
  8584. <div class="check" @click="addTools2(39)">
  8585. <img
  8586. src="../../assets/icon/checkNo.png"
  8587. alt
  8588. v-if="checktoolArray.indexOf(39) == -1"
  8589. />
  8590. <div class="checkDiv" v-else>
  8591. <img src="../../assets/icon/checkedIs.png" alt /><span
  8592. >已选择</span
  8593. >
  8594. </div>
  8595. </div>
  8596. </div>
  8597. <div class="tool">
  8598. <div class="whiteBIcon" @click="addTools2(66)">
  8599. <img
  8600. src="../../assets/icon/secondToolList/formulaEdi.png"
  8601. alt
  8602. />
  8603. <div style="margin: 5px 0">公式编辑</div>
  8604. </div>
  8605. <div class="check" @click="addTools2(66)">
  8606. <img
  8607. src="../../assets/icon/checkNo.png"
  8608. alt
  8609. v-if="checktoolArray.indexOf(66) == -1"
  8610. />
  8611. <div class="checkDiv" v-else>
  8612. <img src="../../assets/icon/checkedIs.png" alt /><span
  8613. >已选择</span
  8614. >
  8615. </div>
  8616. </div>
  8617. </div>
  8618. <div class="tool">
  8619. <div class="whiteBIcon" @click="addTools2(67)">
  8620. <img
  8621. src="../../assets/icon/secondToolList/molStr.png"
  8622. alt
  8623. />
  8624. <div style="margin: 5px 0">分子结构</div>
  8625. </div>
  8626. <div class="check" @click="addTools2(67)">
  8627. <img
  8628. src="../../assets/icon/checkNo.png"
  8629. alt
  8630. v-if="checktoolArray.indexOf(67) == -1"
  8631. />
  8632. <div class="checkDiv" v-else>
  8633. <img src="../../assets/icon/checkedIs.png" alt /><span
  8634. >已选择</span
  8635. >
  8636. </div>
  8637. </div>
  8638. </div>
  8639. <div class="tool">
  8640. <div class="whiteBIcon" @click="addTools2(68)">
  8641. <img
  8642. src="../../assets/icon/secondToolList/timeAxis.png"
  8643. alt
  8644. />
  8645. <div style="margin: 5px 0">时间轴</div>
  8646. </div>
  8647. <div class="check" @click="addTools2(68)">
  8648. <img
  8649. src="../../assets/icon/checkNo.png"
  8650. alt
  8651. v-if="checktoolArray.indexOf(68) == -1"
  8652. />
  8653. <div class="checkDiv" v-else>
  8654. <img src="../../assets/icon/checkedIs.png" alt /><span
  8655. >已选择</span
  8656. >
  8657. </div>
  8658. </div>
  8659. </div>
  8660. </div>
  8661. <div class="toolSort" v-if="toolType == 7">
  8662. <div class="tool">
  8663. <div class="whiteBIcon" @click="addTools2(40)">
  8664. <img
  8665. src="../../assets/icon/secondToolList/eval.png"
  8666. alt
  8667. />
  8668. <div style="margin: 5px 0">个人评价</div>
  8669. </div>
  8670. <div class="check" @click="addTools2(40)">
  8671. <img
  8672. src="../../assets/icon/checkNo.png"
  8673. alt
  8674. v-if="checktoolArray.indexOf(40) == -1"
  8675. />
  8676. <div class="checkDiv" v-else>
  8677. <img src="../../assets/icon/checkedIs.png" alt /><span
  8678. >已选择</span
  8679. >
  8680. </div>
  8681. </div>
  8682. </div>
  8683. </div>
  8684. <div class="toolSort" v-if="toolType == 4">
  8685. <div class="tool">
  8686. <div class="whiteBIcon" @click="addTools2(26)">
  8687. <img
  8688. src="../../assets/icon/thirdToolList/courseDesign.png"
  8689. alt
  8690. />
  8691. <div style="margin: 5px 0">课程设计</div>
  8692. </div>
  8693. <div class="check" @click="addTools2(26)">
  8694. <img
  8695. src="../../assets/icon/checkNo.png"
  8696. alt
  8697. v-if="checktoolArray.indexOf(26) == -1"
  8698. />
  8699. <div class="checkDiv" v-else>
  8700. <img src="../../assets/icon/checkedIs.png" alt /><span
  8701. >已选择</span
  8702. >
  8703. </div>
  8704. </div>
  8705. </div>
  8706. <div class="tool">
  8707. <div class="whiteBIcon" @click="addTools2(25)">
  8708. <img
  8709. src="../../assets/icon/thirdToolList/evalua.png"
  8710. alt
  8711. />
  8712. <div style="margin: 5px 0">目标管理</div>
  8713. </div>
  8714. <div class="check" @click="addTools2(25)">
  8715. <img
  8716. src="../../assets/icon/checkNo.png"
  8717. alt
  8718. v-if="checktoolArray.indexOf(25) == -1"
  8719. />
  8720. <div class="checkDiv" v-else>
  8721. <img src="../../assets/icon/checkedIs.png" alt /><span
  8722. >已选择</span
  8723. >
  8724. </div>
  8725. </div>
  8726. </div>
  8727. </div>
  8728. </div>
  8729. </div>
  8730. </div>
  8731. </div> -->
  8732. <div
  8733. class="vedioBox"
  8734. style="margin-top: 10px; border-radius: 20px"
  8735. v-if="
  8736. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8737. .eList &&
  8738. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8739. .eList.length &&
  8740. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8741. .eList.length > 0 &&
  8742. tType != 2
  8743. "
  8744. >
  8745. <div
  8746. class="queTop"
  8747. style="
  8748. font-size: 20px;
  8749. padding: 15px 0 15px 37px;
  8750. font-weight: bold;
  8751. "
  8752. >
  8753. <!-- <div class="question" style="width: 30px">
  8754. <img src="../assets/icon/toolIcon.png" alt />
  8755. </div>
  8756. <div class="queTitle">
  8757. <div>工具</div>
  8758. </div>-->
  8759. 评一评
  8760. </div>
  8761. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8762. <div class="elist_input" :style="{marginLeft: '20px',width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : 'calc(100% - 20px)'}">
  8763. <el-table
  8764. :data="
  8765. chapInfoList[courseType].chapterInfo[0].taskJson[
  8766. taskCount
  8767. ].eList
  8768. "
  8769. :header-cell-style="{ background: '#F0F4FA' }"
  8770. :row-class-name="tableRowClassName"
  8771. border
  8772. stripe
  8773. style="width: 100%"
  8774. >
  8775. <el-table-column :width="courseDetail.state == 5? '230': '150'" label="目标" align="center">
  8776. <template slot-scope="scope"
  8777. >
  8778. <div style="display:flex;justify-content: center;align-items: center;">
  8779. <img
  8780. class="blueRootCss"
  8781. v-if="scope.row.isai == 1 || !scope.row.isai && courseDetail.state == 5"
  8782. src="../../assets/icon/newIcons/blueRoot.png"
  8783. alt=""
  8784. />
  8785. <div v-if="courseDetail.state == 5">
  8786. {{
  8787. scope.row.target
  8788. ? scope.row.target
  8789. : "-"
  8790. }}
  8791. </div>
  8792. <div v-else>
  8793. {{
  8794. scope.row.target
  8795. ? scope.row.target[scope.row.target.length - 1]
  8796. : "-"
  8797. }}
  8798. </div>
  8799. </div>
  8800. </template
  8801. ></el-table-column
  8802. >
  8803. <el-table-column
  8804. label="评价维度"
  8805. align="center"
  8806. v-if="courseDetail.state != 5"
  8807. >
  8808. <template slot-scope="scope"
  8809. ><div>{{ scope.row.value }}</div></template
  8810. >
  8811. </el-table-column>
  8812. <el-table-column
  8813. :label="courseDetail.state == 5? '评价标准' : '维度描述'"
  8814. align="center"
  8815. >
  8816. <template slot-scope="scope"
  8817. ><div>
  8818. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  8819. </div></template
  8820. >
  8821. </el-table-column>
  8822. <el-table-column
  8823. label="细则"
  8824. align="center"
  8825. v-if="courseDetail.state == 5"
  8826. >
  8827. <template slot-scope="scope"
  8828. ><div style="display:flex;justify-content: space-around;margin:auto" v-if="scope.row.rule">
  8829. <el-popover
  8830. placement="top"
  8831. width="350"
  8832. trigger="hover"
  8833. >
  8834. <div v-html="scope.row.rule" style="white-space:pre-wrap"></div>
  8835. <div slot="reference" style="color:#4383FF;cursor: pointer;">查看</div>
  8836. </el-popover>
  8837. </div>
  8838. <div v-else>-</div>
  8839. </template
  8840. >
  8841. </el-table-column>
  8842. </el-table>
  8843. <!-- <div
  8844. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8845. .chapterInfo[0].taskJson[taskCount].eList"
  8846. :key="eIndex"
  8847. class="elist_input_box"
  8848. >
  8849. <div style="width: 95%">
  8850. <div
  8851. style="
  8852. display: flex;
  8853. flex-direction: row;
  8854. flex-wrap: nowrap;
  8855. align-items: center;
  8856. "
  8857. >
  8858. <div style="max-width: calc(100% - 285px)">
  8859. <span>{{ eItem.value }}</span>
  8860. </div>
  8861. <div
  8862. style="
  8863. padding-left: 25px;
  8864. display: flex;
  8865. flex-direction: row;
  8866. align-items: center;
  8867. "
  8868. >
  8869. <el-rate
  8870. v-model="eItem.score"
  8871. :colors="colors"
  8872. disabled
  8873. ></el-rate>
  8874. </div>
  8875. </div>
  8876. <div class="elist_inptu_text" style="padding-left: 10px">
  8877. <span v-if="eItem.detail != ''">{{
  8878. eItem.detail
  8879. }}</span>
  8880. <span v-else style="color: #b2b1b3; font-size: 14px"
  8881. >暂无描述...</span
  8882. >
  8883. </div>
  8884. </div>
  8885. </div> -->
  8886. </div>
  8887. <div
  8888. v-if="evalua"
  8889. style="
  8890. border: 1px solid #e5e5e5;
  8891. max-width: 650px;
  8892. width: 100%;
  8893. margin-top: 20px;
  8894. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8895. "
  8896. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  8897. >
  8898. <div class="e_add_top">
  8899. <div class="e_add_title" style="width: 100%">
  8900. <!-- <span>目标管理名称</span> -->
  8901. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  8902. <img
  8903. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  8904. src="../../assets/line.png"
  8905. class="cru_line"
  8906. style="
  8907. width: 125px;
  8908. height: 20px;
  8909. bottom: -10px;
  8910. left: 5px;
  8911. "
  8912. />
  8913. <!-- <el-input
  8914. v-model="eTitle"
  8915. placeholder="请输入名称"
  8916. @change="setMindData"
  8917. ></el-input>-->
  8918. <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>
  8919. <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>
  8920. </div>
  8921. </div>
  8922. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  8923. <div class="e_add_list_pbox">
  8924. <div class="e_add_list_pbox_title">
  8925. <!-- <span class="type_title">切换模式</span> -->
  8926. <div class="type_content">
  8927. <span
  8928. :class="{ active: typeMode == 1 }"
  8929. @click="typeMode = 1"
  8930. >目标树</span
  8931. >
  8932. <span
  8933. :class="{ active: typeMode == 2 }"
  8934. @click="typeMode = 2"
  8935. >目标罗盘</span
  8936. >
  8937. <!-- <span
  8938. :class="{ active: typeMode == 3 }"
  8939. @click="typeMode = 3"
  8940. >目标看板</span
  8941. > -->
  8942. </div>
  8943. </div>
  8944. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  8945. <Mind
  8946. :showBar="false"
  8947. :mindData="data"
  8948. style="width: 100%"
  8949. v-show="typeMode == 1"
  8950. ></Mind>
  8951. <Sunburst
  8952. :Josn="eJson"
  8953. :num="eJSONNum"
  8954. style="width: 100%"
  8955. v-if="typeMode == 2"
  8956. ></Sunburst>
  8957. <SeeBoard
  8958. :Josn="eJson"
  8959. :num="eJSONNum"
  8960. :ename="eTitle"
  8961. style="width: 100%"
  8962. v-if="typeMode == 3"
  8963. >
  8964. </SeeBoard>
  8965. </div>
  8966. </div>
  8967. </div>
  8968. </div>
  8969. </div>
  8970. </div>
  8971. <!-- <div
  8972. class="project_box"
  8973. style="margin-top: 15px; padding-bottom: 30px"
  8974. >
  8975. <div
  8976. style="
  8977. display: flex;
  8978. flex-wrap: nowrap;
  8979. flex-direction: column;
  8980. position: relative;
  8981. "
  8982. >
  8983. <div class="queTop">
  8984. <div class="question">
  8985. <img src="../../assets/icon/homeWork.png" alt="" />
  8986. </div>
  8987. <div class="queTitle">
  8988. <div>作业提交<span>(提交图文视频等)</span></div>
  8989. <div>:任务:{{ task.task }}</div>
  8990. </div>
  8991. </div>
  8992. <div class="ediBottom">
  8993. <div
  8994. class="addEditor"
  8995. style="margin-top: 23px"
  8996. @click="openAddWork"
  8997. v-if="!isNoHomeWork"
  8998. >
  8999. 选择文件
  9000. </div>
  9001. <div
  9002. class="addEditor"
  9003. style="margin-top: 23px"
  9004. @click="openAddWork"
  9005. v-else
  9006. >
  9007. 已提交
  9008. </div>
  9009. </div>
  9010. </div>
  9011. </div>-->
  9012. </div>
  9013. </div>
  9014. <el-dialog
  9015. title="作业提交"
  9016. :visible.sync="dialogVisible"
  9017. :append-to-body="true"
  9018. width="500px"
  9019. :before-close="handleClose"
  9020. class="dialog_change"
  9021. >
  9022. <div class="marginT">
  9023. <div>上传文件</div>
  9024. <div
  9025. class="chapter_add"
  9026. @click="addImg($event)"
  9027. v-if="studyJuri[0].cover.length == 0"
  9028. >
  9029. <div class="up_photo">
  9030. <img src="../../assets/icon/uploadImg.png" alt />
  9031. </div>
  9032. <!-- <input
  9033. type="file"
  9034. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  9035. style="display: none"
  9036. @change="beforeUpload1($event, 1)"
  9037. /> -->
  9038. <input
  9039. type="file"
  9040. accept="*"
  9041. style="display: none"
  9042. @change="beforeUpload1($event, 1)"
  9043. />
  9044. <!-- <input
  9045. type="file"
  9046. accept="image/*"
  9047. capture="camera"
  9048. style="display: none"
  9049. @change="beforeUpload1($event, 1)"
  9050. /> -->
  9051. </div>
  9052. <div
  9053. class="chapter_add"
  9054. style="
  9055. display: flex;
  9056. width: 100%;
  9057. flex-direction: row;
  9058. flex-wrap: wrap;
  9059. justify-content: flex-start;
  9060. padding: 15px 0;
  9061. "
  9062. v-if="studyJuri[0].cover.length > 0"
  9063. >
  9064. <div class="upCover">
  9065. <img
  9066. :src="studyJuri[0].cover[0].url"
  9067. alt
  9068. v-if="fileType == 0"
  9069. />
  9070. <img :src="word" alt v-else-if="fileType == 1" />
  9071. <img :src="video" alt v-else-if="fileType == 2" />
  9072. <img :src="word2" alt v-else-if="fileType == 3" />
  9073. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  9074. <div class="deleteWord" @click="clean(1)">
  9075. <img src="../../assets/icon/deleteWorks.png" alt />
  9076. </div>
  9077. </div>
  9078. </div>
  9079. </div>
  9080. <div
  9081. class="upload_send"
  9082. @click="addCourseWorks(taskCount)"
  9083. v-if="!proVisible"
  9084. >
  9085. 提交
  9086. </div>
  9087. </el-dialog>
  9088. </div>
  9089. </div>
  9090. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  9091. <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(
  9092. '/courseDetail?userid=' +
  9093. userid +
  9094. '&oid=' +
  9095. oid +
  9096. '&org=' +
  9097. org +
  9098. '&cid=' +
  9099. classId +
  9100. '&courseId=' +
  9101. id +
  9102. '&tType=' +
  9103. tType +
  9104. '&screenType=' +
  9105. screenType
  9106. )"></classRoomHelper>
  9107. <div
  9108. class="pButton"
  9109. @click="(pzDialog = true), selectPz()"
  9110. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  9111. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  9112. >
  9113. <!-- 批 -->
  9114. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  9115. </div>
  9116. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  9117. <div class="pzTop2">
  9118. <!-- <div>评论</div>
  9119. <div @click="pzDialog = false">
  9120. <img src="../../assets/close1.png" alt="" />
  9121. </div> -->
  9122. <div class="checkbox">
  9123. <!-- <div class="check" style="font-size: 25px; position: unset">
  9124. 评论
  9125. </div> -->
  9126. <div class="cb-tabList">
  9127. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  9128. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  9129. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  9130. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  9131. </div>
  9132. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  9133. <el-option label="时间降序" :value="1"></el-option>
  9134. <el-option label="时间升序" :value="2"></el-option>
  9135. <el-option label="我的评课" :value="3"></el-option>
  9136. </el-select>
  9137. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  9138. </div>
  9139. </div>
  9140. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  9141. <div class="pzListBox" v-if="pzList && pzList.length">
  9142. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  9143. <div class="pzNavTop">
  9144. <div>评</div>
  9145. <div>
  9146. {{
  9147. pz.username && pz.username.length > 5
  9148. ? pz.username.substring(0, 5) + "..."
  9149. : pz.username
  9150. }}的评论
  9151. </div>
  9152. <div
  9153. class="pzDelete"
  9154. v-if="pz.userid == userid"
  9155. @click="deletePz(pz.id)"
  9156. >
  9157. 删除
  9158. </div>
  9159. </div>
  9160. <div
  9161. @click="checkImg(getImgList(pz.content))"
  9162. class="pzContent cont"
  9163. v-html="pz.content"
  9164. v-if="pz.type == '1'"
  9165. ></div>
  9166. <div class="pzContent" v-if="pz.type == '2'">
  9167. <audio :src="pz.content" controls="controls" ref="audio">
  9168. Your browser does not support the audio element.
  9169. </audio>
  9170. </div>
  9171. <div class="pzContent" v-if="pz.type == '3'">
  9172. <img
  9173. :src="pz.content"
  9174. style="width: 90%; margin: 0 auto; display: block"
  9175. @click="previewImg(pz.content)"
  9176. />
  9177. </div>
  9178. <div class="timeAndReply">
  9179. <div class="time">
  9180. {{ pz.time }}
  9181. </div>
  9182. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  9183. </div>
  9184. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  9185. <div
  9186. v-for="(h, hIndex) in pz.hfList"
  9187. :key="hIndex"
  9188. class="hfItem"
  9189. >
  9190. <div class="whoReplyWho">
  9191. <div class="hfName">{{ h.username }}</div>
  9192. <div class="hfImg">
  9193. <img src="../../assets/icon/newIcons/right.png" alt="" />
  9194. </div>
  9195. <div class="hfName">{{ pz.username }}</div>
  9196. </div>
  9197. <div class="hfContent" v-html="h.content"></div>
  9198. <div class="hfBottom">
  9199. <div class="hfTime">{{ h.time }}</div>
  9200. <div
  9201. class="deleteHfItem"
  9202. @click="deleteReply(h.id)"
  9203. v-if="userid == h.userid"
  9204. >
  9205. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  9206. </div>
  9207. </div>
  9208. </div>
  9209. </div>
  9210. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  9211. <div class="replyInput">
  9212. <el-input v-model="reply[pzIndex]"></el-input>
  9213. </div>
  9214. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  9215. </div> -->
  9216. </div>
  9217. </div>
  9218. <div class="noPz" v-else>
  9219. <img src="../../assets/icon/noPz.png" alt="" />
  9220. </div>
  9221. <div class="addPzButton">
  9222. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  9223. 添加评论
  9224. </div>
  9225. <!-- <div class="img1">
  9226. <div @click="(addPzDialog = true), (pzType = 2)">
  9227. <img src="../../assets/audio.png" /><span>音频</span>
  9228. </div>
  9229. </div> -->
  9230. </div>
  9231. </div>
  9232. <div class="scoreList" v-if="commentTagShow==1">
  9233. <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"/>
  9234. </div>
  9235. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  9236. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  9237. </div>
  9238. </div>
  9239. <div
  9240. v-if="toolDialogVisible == true"
  9241. class="toolMask"
  9242. @click="toolDialogVisible = false"
  9243. ></div>
  9244. <div v-if="toolDialogVisible == true" class="addToolCss">
  9245. <div class="toolTop">
  9246. <div style="font-weight: bold">新增工具</div>
  9247. <div @click="toolDialogVisible = false">
  9248. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  9249. </div>
  9250. </div>
  9251. <div class="tool_box">
  9252. <div class="tool_type_box">
  9253. <div class="chooseWho">
  9254. <div
  9255. :class="toolType == 0 ? 'isChooseActive' : ''"
  9256. @click="(toolType = 0), $forceUpdate()"
  9257. >
  9258. 互动类
  9259. </div>
  9260. <div
  9261. :class="toolType == 1 ? 'isChooseActive' : ''"
  9262. @click="(toolType = 1), $forceUpdate()"
  9263. >
  9264. 思维类
  9265. </div>
  9266. <div
  9267. :class="toolType == 2 ? 'isChooseActive' : ''"
  9268. @click="(toolType = 2), $forceUpdate()"
  9269. >
  9270. 测评类
  9271. </div>
  9272. <div
  9273. :class="toolType == 3 ? 'isChooseActive' : ''"
  9274. @click="(toolType = 3), $forceUpdate()"
  9275. >
  9276. 编程类
  9277. </div>
  9278. <div
  9279. :class="toolType == 5 ? 'isChooseActive' : ''"
  9280. @click="(toolType = 5), $forceUpdate()"
  9281. >
  9282. 学科类
  9283. </div>
  9284. </div>
  9285. </div>
  9286. <div>
  9287. <div class="toolSort" v-if="toolType == 0">
  9288. <div
  9289. class="tool"
  9290. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  9291. @click="addTools2(10)"
  9292. >
  9293. <div class="whiteBIcon">
  9294. <img src="../../assets/icon/thirdToolList/time.png" alt />
  9295. <div style="margin: 5px 0">倒计时</div>
  9296. </div>
  9297. <div class="check">
  9298. <div
  9299. v-if="checktoolArray.indexOf(10) == -1"
  9300. class="noChoose"
  9301. ></div>
  9302. <div v-else class="isChoose"></div>
  9303. </div>
  9304. </div>
  9305. <div
  9306. class="tool"
  9307. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  9308. @click="addTools2(65)"
  9309. >
  9310. <div class="whiteBIcon">
  9311. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  9312. <div style="margin: 5px 0">挑人</div>
  9313. </div>
  9314. <div class="check">
  9315. <div
  9316. v-if="checktoolArray.indexOf(65) == -1"
  9317. class="noChoose"
  9318. ></div>
  9319. <div v-else class="isChoose"></div>
  9320. </div>
  9321. </div>
  9322. </div>
  9323. <div class="toolSort" v-if="toolType == 1">
  9324. <div
  9325. class="tool"
  9326. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  9327. @click="addTools2(7)"
  9328. >
  9329. <div class="whiteBIcon">
  9330. <img
  9331. src="../../assets/icon/secondToolList/mindNetwork.png"
  9332. alt
  9333. />
  9334. <div style="margin: 5px 0">思维网格</div>
  9335. </div>
  9336. <div class="check">
  9337. <div
  9338. v-if="checktoolArray.indexOf(7) == -1"
  9339. class="noChoose"
  9340. ></div>
  9341. <div v-else class="isChoose"></div>
  9342. </div>
  9343. </div>
  9344. <div
  9345. class="tool"
  9346. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  9347. @click="addTools2(1)"
  9348. >
  9349. <div class="whiteBIcon">
  9350. <img
  9351. src="../../assets/icon/secondToolList/whiteBoard.png"
  9352. alt
  9353. />
  9354. <div style="margin: 5px 0">电子白板</div>
  9355. </div>
  9356. <div class="check">
  9357. <div
  9358. v-if="checktoolArray.indexOf(1) == -1"
  9359. class="noChoose"
  9360. ></div>
  9361. <div v-else class="isChoose"></div>
  9362. </div>
  9363. </div>
  9364. <div
  9365. class="tool"
  9366. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  9367. @click="addTools2(52)"
  9368. >
  9369. <div class="whiteBIcon">
  9370. <img src="../../assets/icon/fourthToolList/text.png" alt />
  9371. <div style="margin: 5px 0">文档</div>
  9372. </div>
  9373. <div class="check">
  9374. <div
  9375. v-if="checktoolArray.indexOf(52) == -1"
  9376. class="noChoose"
  9377. ></div>
  9378. <div v-else class="isChoose"></div>
  9379. </div>
  9380. </div>
  9381. <div
  9382. class="tool"
  9383. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  9384. @click="addTools2(3)"
  9385. >
  9386. <div class="whiteBIcon">
  9387. <img
  9388. src="../../assets/icon/secondToolList/mindMapping.png"
  9389. alt
  9390. />
  9391. <div style="margin: 5px 0">思维导图</div>
  9392. </div>
  9393. <div class="check">
  9394. <div
  9395. v-if="checktoolArray.indexOf(3) == -1"
  9396. class="noChoose"
  9397. ></div>
  9398. <div v-else class="isChoose"></div>
  9399. </div>
  9400. </div>
  9401. <div
  9402. class="tool"
  9403. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  9404. @click="addTools2(48)"
  9405. >
  9406. <div class="whiteBIcon">
  9407. <img src="../../assets/icon/fourthToolList/table.png" alt />
  9408. <div style="margin: 5px 0">表格</div>
  9409. </div>
  9410. <div class="check">
  9411. <div
  9412. v-if="checktoolArray.indexOf(48) == -1"
  9413. class="noChoose"
  9414. ></div>
  9415. <div v-else class="isChoose"></div>
  9416. </div>
  9417. </div>
  9418. </div>
  9419. <div class="toolSort" v-if="toolType == 6">
  9420. <div v-show="tooC == 49">
  9421. <img
  9422. @click="addTools(tooC, toolIndex, taskCount)"
  9423. src="../../assets/icon/fourthToolList/group.png"
  9424. alt
  9425. />
  9426. <div style="margin: 5px 0">学生分组</div>
  9427. </div>
  9428. </div>
  9429. <div class="toolSort" v-if="toolType == 2">
  9430. <div
  9431. class="tool"
  9432. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  9433. @click="addTools2(16)"
  9434. >
  9435. <div class="whiteBIcon">
  9436. <img src="../../assets/icon/thirdToolList/work.png" alt />
  9437. <div style="margin: 5px 0">作业提交</div>
  9438. </div>
  9439. <div class="check">
  9440. <div
  9441. v-if="checktoolArray.indexOf(16) == -1"
  9442. class="noChoose"
  9443. ></div>
  9444. <div v-else class="isChoose"></div>
  9445. </div>
  9446. </div>
  9447. <div
  9448. class="tool"
  9449. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  9450. @click="addTools2(50)"
  9451. >
  9452. <div class="whiteBIcon">
  9453. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  9454. <div style="margin: 5px 0">批量上传</div>
  9455. </div>
  9456. <div class="check">
  9457. <div
  9458. v-if="checktoolArray.indexOf(50) == -1"
  9459. class="noChoose"
  9460. ></div>
  9461. <div v-else class="isChoose"></div>
  9462. </div>
  9463. </div>
  9464. </div>
  9465. <div class="toolSort" v-if="toolType == 3">
  9466. <div
  9467. class="tool"
  9468. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  9469. @click="addTools2(18)"
  9470. >
  9471. <div class="whiteBIcon">
  9472. <img
  9473. src="../../assets/icon/thirdToolList/trainPlatform.png"
  9474. alt
  9475. />
  9476. <div style="margin: 5px 0">训练平台</div>
  9477. </div>
  9478. <div class="check">
  9479. <div
  9480. v-if="checktoolArray.indexOf(18) == -1"
  9481. class="noChoose"
  9482. ></div>
  9483. <div v-else class="isChoose"></div>
  9484. </div>
  9485. </div>
  9486. <div
  9487. class="tool"
  9488. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  9489. @click="addTools2(21)"
  9490. >
  9491. <div class="whiteBIcon">
  9492. <img src="../../assets/icon/fourthToolList/program.png" alt />
  9493. <div style="margin: 5px 0">AIoT Blockly</div>
  9494. </div>
  9495. <div class="check">
  9496. <div
  9497. v-if="checktoolArray.indexOf(21) == -1"
  9498. class="noChoose"
  9499. ></div>
  9500. <div v-else class="isChoose"></div>
  9501. </div>
  9502. </div>
  9503. <div
  9504. class="tool"
  9505. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  9506. @click="addTools2(23)"
  9507. >
  9508. <div class="whiteBIcon">
  9509. <img
  9510. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  9511. alt
  9512. />
  9513. <div style="margin: 5px 0">AI Python</div>
  9514. </div>
  9515. <div class="check">
  9516. <div
  9517. v-if="checktoolArray.indexOf(23) == -1"
  9518. class="noChoose"
  9519. ></div>
  9520. <div v-else class="isChoose"></div>
  9521. </div>
  9522. </div>
  9523. <div
  9524. class="tool"
  9525. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  9526. @click="addTools2(24)"
  9527. >
  9528. <div class="whiteBIcon">
  9529. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  9530. <div style="margin: 5px 0">AI Blockly</div>
  9531. </div>
  9532. <div class="check">
  9533. <div
  9534. v-if="checktoolArray.indexOf(24) == -1"
  9535. class="noChoose"
  9536. ></div>
  9537. <div v-else class="isChoose"></div>
  9538. </div>
  9539. </div>
  9540. <div
  9541. class="tool"
  9542. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  9543. @click="addTools2(32)"
  9544. >
  9545. <div class="whiteBIcon">
  9546. <img src="../../assets/icon/thirdToolList/code.png" alt />
  9547. <div style="margin: 5px 0">源码编辑</div>
  9548. </div>
  9549. <div class="check">
  9550. <div
  9551. v-if="checktoolArray.indexOf(32) == -1"
  9552. class="noChoose"
  9553. ></div>
  9554. <div v-else class="isChoose"></div>
  9555. </div>
  9556. </div>
  9557. <div
  9558. class="tool"
  9559. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  9560. @click="addTools2(57)"
  9561. >
  9562. <div class="whiteBIcon">
  9563. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  9564. <div style="margin: 5px 0">CocoPi</div>
  9565. </div>
  9566. <div class="check">
  9567. <div
  9568. v-if="checktoolArray.indexOf(57) == -1"
  9569. class="noChoose"
  9570. ></div>
  9571. <div v-else class="isChoose"></div>
  9572. </div>
  9573. </div>
  9574. <div
  9575. class="tool"
  9576. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9577. @click="addTools2(63)"
  9578. >
  9579. <div class="whiteBIcon">
  9580. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  9581. <div style="margin: 5px 0">海龟编程</div>
  9582. </div>
  9583. <div class="check">
  9584. <div
  9585. v-if="checktoolArray.indexOf(63) == -1"
  9586. class="noChoose"
  9587. ></div>
  9588. <div v-else class="isChoose"></div>
  9589. </div>
  9590. </div>
  9591. <div
  9592. class="tool"
  9593. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  9594. @click="addTools2(71)"
  9595. >
  9596. <div class="whiteBIcon">
  9597. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  9598. <div style="margin: 5px 0">AI智能体</div>
  9599. </div>
  9600. <div class="check">
  9601. <div
  9602. v-if="checktoolArray.indexOf(71) == -1"
  9603. class="noChoose"
  9604. ></div>
  9605. <div v-else class="isChoose"></div>
  9606. </div>
  9607. </div>
  9608. </div>
  9609. <div class="toolSort" v-if="toolType == 7">
  9610. <div
  9611. class="tool"
  9612. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9613. @click="addTools2(40)"
  9614. >
  9615. <div class="whiteBIcon">
  9616. <img src="../../assets/icon/secondToolList/eval.png" alt />
  9617. <div style="margin: 5px 0">个人评价</div>
  9618. </div>
  9619. <div class="check">
  9620. <div
  9621. v-if="checktoolArray.indexOf(40) == -1"
  9622. class="noChoose"
  9623. ></div>
  9624. <div v-else class="isChoose"></div>
  9625. </div>
  9626. </div>
  9627. </div>
  9628. <div class="toolSort" v-if="toolType == 5">
  9629. <div
  9630. class="tool"
  9631. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9632. @click="addTools2(28)"
  9633. >
  9634. <div class="whiteBIcon">
  9635. <img
  9636. src="../../assets/icon/secondToolList/translation.png"
  9637. alt
  9638. />
  9639. <div style="margin: 5px 0">翻译</div>
  9640. </div>
  9641. <div class="check">
  9642. <div
  9643. v-if="checktoolArray.indexOf(28) == -1"
  9644. class="noChoose"
  9645. ></div>
  9646. <div v-else class="isChoose"></div>
  9647. </div>
  9648. </div>
  9649. <div
  9650. class="tool"
  9651. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9652. @click="addTools2(31)"
  9653. >
  9654. <div class="whiteBIcon">
  9655. <img
  9656. src="../../assets/icon/secondToolList/networkPanel.png"
  9657. alt
  9658. />
  9659. <div style="margin: 5px 0">数字画板</div>
  9660. </div>
  9661. <div class="check">
  9662. <div
  9663. v-if="checktoolArray.indexOf(31) == -1"
  9664. class="noChoose"
  9665. ></div>
  9666. <div v-else class="isChoose"></div>
  9667. </div>
  9668. </div>
  9669. <div
  9670. class="tool"
  9671. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9672. @click="addTools2(39)"
  9673. >
  9674. <div class="whiteBIcon">
  9675. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  9676. <div style="margin: 5px 0">GeoGebra</div>
  9677. </div>
  9678. <div class="check">
  9679. <div
  9680. v-if="checktoolArray.indexOf(39) == -1"
  9681. class="noChoose"
  9682. ></div>
  9683. <div v-else class="isChoose"></div>
  9684. </div>
  9685. </div>
  9686. <div
  9687. class="tool"
  9688. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9689. @click="addTools2(66)"
  9690. >
  9691. <div class="whiteBIcon">
  9692. <img
  9693. src="../../assets/icon/secondToolList/formulaEdi.png"
  9694. alt
  9695. />
  9696. <div style="margin: 5px 0">公式编辑</div>
  9697. </div>
  9698. <div class="check">
  9699. <div
  9700. v-if="checktoolArray.indexOf(66) == -1"
  9701. class="noChoose"
  9702. ></div>
  9703. <div v-else class="isChoose"></div>
  9704. </div>
  9705. </div>
  9706. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9707. <div class="whiteBIcon" @click="addTools2(67)">
  9708. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  9709. <div style="margin: 5px 0">分子结构</div>
  9710. </div>
  9711. <div class="check" @click="addTools2(67)">
  9712. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9713. <div v-else class="isChoose"></div>
  9714. </div>
  9715. </div> -->
  9716. <div
  9717. class="tool"
  9718. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9719. @click="addTools2(68)"
  9720. >
  9721. <div class="whiteBIcon">
  9722. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  9723. <div style="margin: 5px 0">时间轴</div>
  9724. </div>
  9725. <div class="check">
  9726. <div
  9727. v-if="checktoolArray.indexOf(68) == -1"
  9728. class="noChoose"
  9729. ></div>
  9730. <div v-else class="isChoose"></div>
  9731. </div>
  9732. </div>
  9733. <!-- <div
  9734. class="tool"
  9735. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9736. @click="addTools2(69)"
  9737. >
  9738. <div class="whiteBIcon">
  9739. <img src="../../assets/icon/secondToolList/english.png" alt />
  9740. <div style="margin: 5px 0">英语写作</div>
  9741. </div>
  9742. <div class="check">
  9743. <div
  9744. v-if="checktoolArray.indexOf(69) == -1"
  9745. class="noChoose"
  9746. ></div>
  9747. <div v-else class="isChoose"></div>
  9748. </div>
  9749. </div> -->
  9750. </div>
  9751. <div class="toolSort" v-if="toolType == 4">
  9752. <div
  9753. class="tool"
  9754. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9755. @click="addTools2(26)"
  9756. >
  9757. <div class="whiteBIcon">
  9758. <img
  9759. src="../../assets/icon/thirdToolList/courseDesign.png"
  9760. alt
  9761. />
  9762. <div style="margin: 5px 0">课程设计</div>
  9763. </div>
  9764. <div class="check">
  9765. <div
  9766. v-if="checktoolArray.indexOf(26) == -1"
  9767. class="noChoose"
  9768. ></div>
  9769. <div v-else class="isChoose"></div>
  9770. </div>
  9771. </div>
  9772. <div
  9773. class="tool"
  9774. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9775. @click="addTools2(25)"
  9776. >
  9777. <div class="whiteBIcon">
  9778. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  9779. <div style="margin: 5px 0">目标管理</div>
  9780. </div>
  9781. <div class="check">
  9782. <div
  9783. v-if="checktoolArray.indexOf(25) == -1"
  9784. class="noChoose"
  9785. ></div>
  9786. <div v-else class="isChoose"></div>
  9787. </div>
  9788. </div>
  9789. </div>
  9790. </div>
  9791. </div>
  9792. <span
  9793. slot="footer"
  9794. class="dialog-footer"
  9795. style="display: block; text-align: center; padding: 0 0 10px 0"
  9796. >
  9797. <el-button @click="toolDialogVisible = false">取 消</el-button>
  9798. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  9799. </span>
  9800. </div>
  9801. <div
  9802. v-if="replyDialogVisible == true"
  9803. class="addDialogCss"
  9804. v-el-drag-dialog
  9805. >
  9806. <div class="pzTop">
  9807. <div class="teacherPz">
  9808. <div class="teacherPzImg">
  9809. <img src="../../assets/icon/teacherPz.png" alt="" />
  9810. </div>
  9811. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9812. </div>
  9813. <div @click="replyDialogVisible = false">
  9814. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9815. </div>
  9816. </div>
  9817. <div class="addPzBox">
  9818. <!-- <div class="addPzCheck">
  9819. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9820. >文本</span
  9821. >
  9822. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9823. >音频</span
  9824. >
  9825. </div> -->
  9826. <div style="height: calc(100% - 50px)">
  9827. <editor-bar
  9828. class="binfo_input pzConText"
  9829. style="width: 100% !important; margin: 0 auto"
  9830. placeholder="请输入回复描述"
  9831. v-model="reply"
  9832. @change="change"
  9833. ></editor-bar>
  9834. </div>
  9835. <div class="addTextCss" @click="addHf">确定</div>
  9836. </div>
  9837. </div>
  9838. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9839. <div class="pzTop">
  9840. <div class="teacherPz">
  9841. <div class="teacherPzImg">
  9842. <img src="../../assets/icon/teacherPz.png" alt="" />
  9843. </div>
  9844. <div style="margin-left: 10px; height: 25px">教师评论</div>
  9845. </div>
  9846. <div @click="addPzDialog = false">
  9847. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9848. </div>
  9849. </div>
  9850. <div class="addPzBox">
  9851. <div class="addPzCheck">
  9852. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9853. >文本</span
  9854. >
  9855. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9856. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9857. >音频</span
  9858. >
  9859. </div>
  9860. <div style="height: calc(100% - 95px)">
  9861. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9862. v-if="pzType == 1"></textarea> -->
  9863. <editor-bar
  9864. class="binfo_input pzConText"
  9865. style="width: 100% !important"
  9866. placeholder="请输入任务描述"
  9867. v-model="pzConText"
  9868. @change="change"
  9869. v-if="pzType == 1"
  9870. ></editor-bar>
  9871. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9872. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9873. <div @click="addImg($event)">
  9874. <el-button type="primary">上传图片</el-button>
  9875. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9876. @change="beforeUpload1($event, 4)" />
  9877. </div>
  9878. </div> -->
  9879. </div>
  9880. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9881. 确定
  9882. </div>
  9883. </div>
  9884. </div>
  9885. <div v-if="proVisible" class="mask">
  9886. <div class="progressBox">
  9887. <!-- <div id="closePro" class="closeCss">
  9888. <img src="../../assets/icon/close.png" alt />
  9889. </div> -->
  9890. <div class="lbox">
  9891. <img src="../../assets/loading.gif" />上传中,请稍后
  9892. </div>
  9893. <div style="margin-bottom: 10px">
  9894. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9895. </div>
  9896. <el-progress
  9897. :text-inside="true"
  9898. :stroke-width="20"
  9899. :percentage="progress"
  9900. style="width: 80%"
  9901. ></el-progress>
  9902. </div>
  9903. </div>
  9904. <div v-if="proVisible2" class="mask">
  9905. <div class="progressBox">
  9906. <div class="lbox">
  9907. <img src="../../assets/loading.gif" />上传中,请稍后
  9908. </div>
  9909. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9910. </div>
  9911. </div>
  9912. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9913. <img width="100%" :src="dialogImageUrl" alt />
  9914. </el-dialog>
  9915. <el-dialog
  9916. :title="noteName != '' ? noteName : '查看问卷'"
  9917. :visible.sync="dialogVisible5"
  9918. :append-to-body="true"
  9919. width="1000px"
  9920. :before-close="handleClose"
  9921. class="dialog_diy dialog_diy3"
  9922. >
  9923. <div>
  9924. <div
  9925. class="a_add_title"
  9926. style="
  9927. display: flex;
  9928. flex-direction: row;
  9929. align-items: center;
  9930. justify-content: center;
  9931. "
  9932. >
  9933. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9934. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9935. </div>
  9936. <div class="a_addBox">
  9937. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9938. 题目内容
  9939. </div>
  9940. <div
  9941. class="a_add_box"
  9942. v-for="(item1, index1) in askJson.askCount"
  9943. :key="index1"
  9944. >
  9945. <div class="a_add_head">
  9946. <div style="display: flex">
  9947. <span class="askIndex"> {{ index1 + 1 }}</span>
  9948. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9949. </div>
  9950. <img
  9951. v-if="askJson.askJson[index1].img"
  9952. :src="askJson.askJson[index1].img"
  9953. style="height: 300px; margin-top: 10px; max-width: 100%"
  9954. />
  9955. </div>
  9956. <div class="a_add_body">
  9957. <div class="a_add_input">
  9958. <el-radio-group
  9959. v-model="radio[index1]"
  9960. v-if="
  9961. askJson.askJson[index1].type == '1' ||
  9962. !askJson.askJson[index1].type
  9963. "
  9964. >
  9965. <el-radio
  9966. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9967. .checkList"
  9968. :key="checkIndex"
  9969. :label="checkIndex"
  9970. :disabled="isAnswer"
  9971. class="redioStyle"
  9972. ><span v-html="item2"></span
  9973. ></el-radio>
  9974. </el-radio-group>
  9975. <el-checkbox-group
  9976. v-model="radio[index1]"
  9977. v-if="askJson.askJson[index1].type == '2'"
  9978. >
  9979. <el-checkbox
  9980. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9981. .checkList"
  9982. :key="checkIndex1"
  9983. :label="checkIndex1"
  9984. :disabled="isAnswer"
  9985. class="redioStyle"
  9986. ><span v-html="item2"></span>
  9987. </el-checkbox>
  9988. </el-checkbox-group>
  9989. </div>
  9990. </div>
  9991. </div>
  9992. </div>
  9993. </div>
  9994. <span slot="footer" class="dialog-footer">
  9995. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9996. >取 消</el-button
  9997. >
  9998. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9999. >确 定</el-button
  10000. >
  10001. </span>
  10002. </el-dialog>
  10003. <el-dialog
  10004. :title="noteName != '' ? noteName : '查看问卷'"
  10005. :visible.sync="dialogVisible5Teacher"
  10006. :append-to-body="true"
  10007. width="1000px"
  10008. :before-close="handleClose"
  10009. class="dialog_diy dialog_diy3"
  10010. >
  10011. <div>
  10012. <div class="w_name">
  10013. 学生姓名:<span>{{ sStudent.student }}</span>
  10014. </div>
  10015. <div
  10016. class="a_add_title"
  10017. style="
  10018. display: flex;
  10019. flex-direction: row;
  10020. align-items: center;
  10021. justify-content: center;
  10022. "
  10023. >
  10024. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  10025. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  10026. </div>
  10027. <div class="a_addBox">
  10028. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  10029. 题目内容
  10030. </div>
  10031. <div
  10032. class="a_add_box"
  10033. v-for="(item1, index1) in askJson.askCount"
  10034. :key="index1"
  10035. >
  10036. <div class="a_add_head">
  10037. <div style="display: flex">
  10038. <span class="askIndex">{{ index1 + 1 }}</span>
  10039. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  10040. </div>
  10041. <img
  10042. v-if="askJson.askJson[index1].img"
  10043. :src="askJson.askJson[index1].img"
  10044. style="height: 300px; margin-top: 10px; max-width: 100%"
  10045. />
  10046. </div>
  10047. <div class="a_add_body">
  10048. <div class="a_add_input">
  10049. <el-radio-group
  10050. v-model="radio[index1]"
  10051. v-if="
  10052. askJson.askJson[index1].type == '1' ||
  10053. !askJson.askJson[index1].type
  10054. "
  10055. >
  10056. <el-radio
  10057. v-for="(item2, checkIndex) in askJson.askJson[index1]
  10058. .checkList"
  10059. :key="checkIndex"
  10060. :label="checkIndex"
  10061. :disabled="isAnswer"
  10062. class="redioStyle"
  10063. ><span v-html="item2"></span
  10064. ></el-radio>
  10065. </el-radio-group>
  10066. <el-checkbox-group
  10067. v-model="radio[index1]"
  10068. v-if="askJson.askJson[index1].type == '2'"
  10069. >
  10070. <el-checkbox
  10071. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  10072. .checkList"
  10073. :key="checkIndex1"
  10074. :label="checkIndex1"
  10075. :disabled="isAnswer"
  10076. class="redioStyle"
  10077. ><span v-html="item2"></span>
  10078. </el-checkbox>
  10079. </el-checkbox-group>
  10080. </div>
  10081. </div>
  10082. </div>
  10083. </div>
  10084. </div>
  10085. <span slot="footer" class="dialog-footer">
  10086. <el-button
  10087. @click="dialogVisible5Teacher = false"
  10088. v-show="noteName == ''"
  10089. >取 消</el-button
  10090. >
  10091. <el-button
  10092. type="primary"
  10093. @click="addStudentAskTeacher"
  10094. v-show="noteName == ''"
  10095. >确 定</el-button
  10096. >
  10097. </span>
  10098. </el-dialog>
  10099. <el-dialog
  10100. :title="noteName != '' ? noteName : '查看选择题'"
  10101. :visible.sync="dialogVisibleChoice"
  10102. :append-to-body="true"
  10103. width="1000px"
  10104. :before-close="handleClose"
  10105. class="dialog_diy dialog_diy3"
  10106. >
  10107. <div>
  10108. <!-- <div class="a_add_title" style="
  10109. display: flex;
  10110. flex-direction: row;
  10111. align-items: center;
  10112. justify-content: center;
  10113. ">
  10114. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  10115. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  10116. </div> -->
  10117. <div class="a_addBox">
  10118. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  10119. 题目内容
  10120. </div>
  10121. <div
  10122. class="a_add_box"
  10123. v-for="(item1, index1) in testJson.testCount"
  10124. :key="index1"
  10125. >
  10126. <div class="a_add_head">
  10127. <div style="display: flex">
  10128. <span class="askIndex">{{ index1 + 1 }}</span>
  10129. <div
  10130. v-if="testJson.testJson[index1].type == '1'"
  10131. style="margin-right: 5px; min-width: 70px"
  10132. >
  10133. (单选题)
  10134. </div>
  10135. <div
  10136. v-if="testJson.testJson[index1].type == '2'"
  10137. style="margin-right: 5px; min-width: 70px"
  10138. >
  10139. (多选题)
  10140. </div>
  10141. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  10142. </div>
  10143. <img
  10144. v-if="testJson.testJson[index1].img"
  10145. :src="testJson.testJson[index1].img"
  10146. style="height: 300px; margin-top: 10px; max-width: 100%"
  10147. />
  10148. </div>
  10149. <div
  10150. class="timuImgBox"
  10151. v-if="
  10152. testJson.testJson[index1].timuList &&
  10153. testJson.testJson[index1].timuList.length
  10154. "
  10155. >
  10156. <div
  10157. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  10158. :key="tIndex"
  10159. class="timuImg"
  10160. @click.stop="previewImg(timg.src)"
  10161. >
  10162. <img :src="timg.src" alt="" />
  10163. </div>
  10164. </div>
  10165. <div class="a_add_body">
  10166. <div class="a_add_input">
  10167. <el-radio-group
  10168. v-model="radio[index1]"
  10169. v-if="testJson.testJson[index1].type == '1'"
  10170. >
  10171. <div class="radioBox">
  10172. <el-radio
  10173. v-for="(item2, checkIndex) in testJson.testJson[index1]
  10174. .checkList"
  10175. :key="checkIndex"
  10176. :label="checkIndex"
  10177. :disabled="isAnswer"
  10178. class="redioStyle"
  10179. >
  10180. <div
  10181. style="margin-right: 10px"
  10182. v-if="item2 && item2.imgType && item2.imgType == 1"
  10183. >
  10184. <div class="inImg" @click.stop="previewImg(item2.src)">
  10185. <img :src="item2.src" alt="" />
  10186. </div>
  10187. </div>
  10188. <span v-else v-html="item2"></span>
  10189. </el-radio>
  10190. </div>
  10191. </el-radio-group>
  10192. <el-checkbox-group
  10193. v-model="radio[index1]"
  10194. v-if="testJson.testJson[index1].type == '2'"
  10195. >
  10196. <div class="radioBox">
  10197. <el-checkbox
  10198. v-for="(item2, checkIndex) in testJson.testJson[index1]
  10199. .checkList"
  10200. :key="checkIndex"
  10201. :label="checkIndex"
  10202. :disabled="isAnswer"
  10203. class="redioStyle"
  10204. >
  10205. <div
  10206. style="margin-right: 10px"
  10207. v-if="item2 && item2.imgType && item2.imgType == 1"
  10208. >
  10209. <div class="inImg" @click.stop="previewImg(item2.src)">
  10210. <img :src="item2.src" alt="" />
  10211. </div>
  10212. </div>
  10213. <span v-else v-html="item2"></span>
  10214. </el-checkbox>
  10215. </div>
  10216. </el-checkbox-group>
  10217. </div>
  10218. </div>
  10219. </div>
  10220. </div>
  10221. </div>
  10222. <span slot="footer" class="dialog-footer">
  10223. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  10224. >取 消</el-button
  10225. >
  10226. <el-button
  10227. type="primary"
  10228. @click="addStudentTest"
  10229. v-show="noteName == ''"
  10230. >确 定</el-button
  10231. >
  10232. </span>
  10233. </el-dialog>
  10234. <el-dialog
  10235. :title="noteName != '' ? noteName : '查看选择题'"
  10236. :visible.sync="dialogVisibleChoiceTeacher"
  10237. :append-to-body="true"
  10238. width="1000px"
  10239. :before-close="handleClose"
  10240. class="dialog_diy dialog_diy3"
  10241. >
  10242. <div>
  10243. <div class="w_name">
  10244. 学生姓名:<span>{{ sStudent.student }}</span>
  10245. </div>
  10246. <div class="a_addBox">
  10247. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  10248. 题目内容
  10249. </div>
  10250. <div
  10251. class="a_add_box"
  10252. v-for="(item1, index1) in testJson.testCount"
  10253. :key="index1"
  10254. >
  10255. <div class="a_add_head">
  10256. <div style="display: flex">
  10257. <span class="askIndex">{{ index1 + 1 }}</span>
  10258. <div
  10259. v-if="testJson.testJson[index1].type == '1'"
  10260. style="margin-right: 5px; min-width: 70px"
  10261. >
  10262. (单选题)
  10263. </div>
  10264. <div
  10265. v-if="testJson.testJson[index1].type == '2'"
  10266. style="margin-right: 5px; min-width: 70px"
  10267. >
  10268. (多选题)
  10269. </div>
  10270. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  10271. </div>
  10272. <img
  10273. v-if="testJson.testJson[index1].img"
  10274. :src="testJson.testJson[index1].img"
  10275. style="height: 300px; margin-top: 10px; max-width: 100%"
  10276. />
  10277. </div>
  10278. <div
  10279. class="timuImgBox"
  10280. v-if="
  10281. testJson.testJson[index1].timuList &&
  10282. testJson.testJson[index1].timuList.length
  10283. "
  10284. >
  10285. <div
  10286. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  10287. :key="tIndex"
  10288. class="timuImg"
  10289. @click.stop="previewImg(timg.src)"
  10290. >
  10291. <img :src="timg.src" alt="" />
  10292. </div>
  10293. </div>
  10294. <div class="a_add_body">
  10295. <div class="a_add_input">
  10296. <el-radio-group
  10297. v-model="radio[index1]"
  10298. v-if="testJson.testJson[index1].type == '1'"
  10299. >
  10300. <div class="radioBox">
  10301. <el-radio
  10302. v-for="(item2, checkIndex) in testJson.testJson[index1]
  10303. .checkList"
  10304. :key="checkIndex"
  10305. :label="checkIndex"
  10306. :disabled="isAnswer"
  10307. class="redioStyle"
  10308. >
  10309. <div
  10310. style="margin-right: 10px"
  10311. v-if="item2 && item2.imgType && item2.imgType == 1"
  10312. >
  10313. <div class="inImg" @click.stop="previewImg(item2.src)">
  10314. <img :src="item2.src" alt="" />
  10315. </div>
  10316. </div>
  10317. <span v-else v-html="item2"></span>
  10318. </el-radio>
  10319. </div>
  10320. </el-radio-group>
  10321. <el-checkbox-group
  10322. v-model="radio[index1]"
  10323. v-if="testJson.testJson[index1].type == '2'"
  10324. >
  10325. <div class="radioBox">
  10326. <el-checkbox
  10327. v-for="(item2, checkIndex) in testJson.testJson[index1]
  10328. .checkList"
  10329. :key="checkIndex"
  10330. :label="checkIndex"
  10331. :disabled="isAnswer"
  10332. class="redioStyle"
  10333. >
  10334. <div
  10335. style="margin-right: 10px"
  10336. v-if="item2 && item2.imgType && item2.imgType == 1"
  10337. >
  10338. <div class="inImg" @click.stop="previewImg(item2.src)">
  10339. <img :src="item2.src" alt="" />
  10340. </div>
  10341. </div>
  10342. <span v-else v-html="item2"></span>
  10343. </el-checkbox>
  10344. </div>
  10345. </el-checkbox-group>
  10346. </div>
  10347. </div>
  10348. </div>
  10349. </div>
  10350. </div>
  10351. <span slot="footer" class="dialog-footer">
  10352. <el-button
  10353. @click="dialogVisibleChoiceTeacher = false"
  10354. v-show="noteName == ''"
  10355. >取 消</el-button
  10356. >
  10357. <el-button
  10358. type="primary"
  10359. @click="addStudentTestTeacher"
  10360. v-show="noteName == ''"
  10361. >确 定</el-button
  10362. >
  10363. </span>
  10364. </el-dialog>
  10365. <el-dialog
  10366. title="查看富文本"
  10367. :visible.sync="dialogVisible1"
  10368. :append-to-body="true"
  10369. width="500px"
  10370. :before-close="handleClose"
  10371. class="dialog_diy textCss"
  10372. >
  10373. <el-form style="font-size: 20px">
  10374. <el-form-item label="文本标题" class="textTitle">
  10375. <div style="font-size: 20px">{{ text.name }}</div>
  10376. </el-form-item>
  10377. <div>富文本内容</div>
  10378. <div
  10379. v-html="text.url"
  10380. style="font-size: 18px; padding: 40px 0 0 0"
  10381. ></div>
  10382. </el-form>
  10383. <span slot="footer" class="dialog-footer">
  10384. <el-button type="primary" @click="dialogVisible1 = false"
  10385. >确定</el-button
  10386. >
  10387. </span>
  10388. </el-dialog>
  10389. <el-dialog
  10390. title="文件预览"
  10391. :visible.sync="dialogVisible3"
  10392. width="50%"
  10393. :before-close="handleClose"
  10394. class="dialog_diy"
  10395. :class="{ fullStyle: full }"
  10396. >
  10397. <div slot="title" class="header-title">
  10398. <div style="color: #fff">文件预览</div>
  10399. <div style="position: absolute; top: 19px; right: 50px">
  10400. <img
  10401. src="../../assets/full.png"
  10402. style="height: 16px; cursor: pointer"
  10403. alt=""
  10404. @click="fullTools"
  10405. />
  10406. </div>
  10407. </div>
  10408. <pdf
  10409. v-if="showPDF"
  10410. :pdfUrl="pptImgUrl"
  10411. style="width: 100%; height: 520px; overflow: auto"
  10412. :class="{ fullStyle: full }"
  10413. ></pdf>
  10414. <iframe
  10415. v-else
  10416. :src="pptImgUrl"
  10417. frameborder="0"
  10418. width="100%"
  10419. height="600"
  10420. :class="{ fullStyle: full }"
  10421. ></iframe>
  10422. </el-dialog>
  10423. <el-dialog
  10424. title="文件预览"
  10425. :visible.sync="dialogVisible6"
  10426. width="50%"
  10427. :before-close="handleClose"
  10428. class="dialog_diy"
  10429. >
  10430. <iframe
  10431. :src="pptImgUrl1"
  10432. frameborder="0"
  10433. width="100%"
  10434. height="600"
  10435. ></iframe>
  10436. </el-dialog>
  10437. <el-dialog
  10438. title="提示"
  10439. :visible.sync="dialogVisible4"
  10440. :append-to-body="true"
  10441. width="800px"
  10442. :before-close="handleClose"
  10443. class="dialog_diy notice"
  10444. >
  10445. <div>此功能暂未开放!</div>
  10446. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  10447. </el-dialog>
  10448. <el-dialog
  10449. title="问答"
  10450. :visible.sync="answerDialogVisible"
  10451. :append-to-body="true"
  10452. width="800px"
  10453. :before-close="handleClose"
  10454. class="dialog_diy"
  10455. >
  10456. <div>
  10457. <div
  10458. style="
  10459. display: flex;
  10460. flex-wrap: nowrap;
  10461. flex-direction: column;
  10462. position: relative;
  10463. "
  10464. >
  10465. <div class="queTop" style="padding: 20px 0 20px 0">
  10466. <div class="question">
  10467. <img src="../../assets/icon/question.png" alt />
  10468. </div>
  10469. <div class="queTitle">
  10470. <div style="width: 90px; min-width: 90px">提问:</div>
  10471. <div>{{ answerQ }}</div>
  10472. </div>
  10473. </div>
  10474. <div class="ediBottom">
  10475. <textarea
  10476. rows="6"
  10477. class="binfo_input"
  10478. cols
  10479. style="width: 95%; height: 120px"
  10480. v-model="questionAnswer"
  10481. ></textarea>
  10482. </div>
  10483. </div>
  10484. </div>
  10485. <div slot="footer">
  10486. <el-button @click="answerDialogVisible = false">取 消</el-button>
  10487. <el-button type="primary" @click="addQuestion">提 交</el-button>
  10488. </div>
  10489. </el-dialog>
  10490. <el-dialog
  10491. title="问答"
  10492. :visible.sync="answerDialogVisibleTeacher"
  10493. :append-to-body="true"
  10494. width="800px"
  10495. :before-close="handleClose"
  10496. class="dialog_diy"
  10497. >
  10498. <div>
  10499. <div class="w_name">
  10500. 学生姓名:<span>{{ sStudent.student }}</span>
  10501. </div>
  10502. <div
  10503. style="
  10504. display: flex;
  10505. flex-wrap: nowrap;
  10506. flex-direction: column;
  10507. position: relative;
  10508. "
  10509. >
  10510. <div class="queTop" style="padding: 20px 0 20px 0">
  10511. <div class="question">
  10512. <img src="../../assets/icon/question.png" alt />
  10513. </div>
  10514. <div class="queTitle">
  10515. <div style="width: 90px; min-width: 90px">提问:</div>
  10516. <div>{{ answerQ }}</div>
  10517. </div>
  10518. </div>
  10519. <div class="ediBottom">
  10520. <textarea
  10521. rows="6"
  10522. class="binfo_input"
  10523. cols
  10524. style="width: 95%; height: 120px"
  10525. v-model="questionAnswer"
  10526. ></textarea>
  10527. </div>
  10528. </div>
  10529. </div>
  10530. <div slot="footer">
  10531. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10532. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10533. </div>
  10534. </el-dialog>
  10535. <el-dialog
  10536. title="倒计时"
  10537. :visible.sync="timeDialogVisible"
  10538. :append-to-body="true"
  10539. width="800px"
  10540. :before-close="handleClose"
  10541. class="dialog_diy"
  10542. >
  10543. <div>
  10544. <div style="margin-bottom: 20px; color: #999">
  10545. 提示:点击“+”或“-”修改倒计时时长。
  10546. </div>
  10547. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  10548. </div>
  10549. <div slot="footer">
  10550. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  10551. </div>
  10552. </el-dialog>
  10553. <el-dialog
  10554. title="权限设置"
  10555. :visible.sync="juriVisible"
  10556. :append-to-body="true"
  10557. width="400px"
  10558. :before-close="handleClose"
  10559. class="dialog_diy"
  10560. >
  10561. <div>
  10562. <div class="open_box">
  10563. <div class="switch_box">
  10564. <span>允许学生查看所有作业</span>
  10565. <el-switch
  10566. v-model="sIsOpen"
  10567. active-text=""
  10568. class="switchCss"
  10569. @change="updateSLook"
  10570. ></el-switch>
  10571. </div>
  10572. <div
  10573. class="switch_box"
  10574. v-if="
  10575. courseDetail.userid == userid ||
  10576. (courseDetail.course_teacher &&
  10577. courseDetail.course_teacher.indexOf(userid) != -1)
  10578. "
  10579. >
  10580. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10581. <span>禁止学生查看所有阶段</span>
  10582. <el-switch
  10583. v-model="IsLookOpen"
  10584. active-text=""
  10585. class="switchCss"
  10586. @change="updateLookOpen"
  10587. ></el-switch>
  10588. </div>
  10589. <div class="switch_box" v-if="courseDetail.userid == userid">
  10590. <span>开启跟随模式</span>
  10591. <el-switch
  10592. v-model="IsFollow"
  10593. active-text=""
  10594. class="switchCss"
  10595. @change="updateFollow"
  10596. ></el-switch>
  10597. </div>
  10598. </div>
  10599. </div>
  10600. <div slot="footer">
  10601. <el-button
  10602. style="background: #409efe; color: #fff"
  10603. @click="juriVisible = false"
  10604. >关 闭</el-button
  10605. >
  10606. </div>
  10607. </el-dialog>
  10608. <el-dialog
  10609. title="查看视频"
  10610. :visible.sync="videoVisible"
  10611. :append-to-body="true"
  10612. width="1000px"
  10613. :before-close="handleClose"
  10614. class="dialog_diy1"
  10615. >
  10616. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10617. <video-player
  10618. class="video-player vjs-custom-skin"
  10619. :playsinline="true"
  10620. :options="videoDetail"
  10621. @play="onPlayerPlay($event)"
  10622. style="width: 100%; height: 100%"
  10623. ></video-player>
  10624. </div>
  10625. <div slot="footer">
  10626. <el-button
  10627. style="background: #409efe; color: #fff"
  10628. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10629. >
  10630. 关 闭</el-button
  10631. >
  10632. </div>
  10633. </el-dialog>
  10634. <el-dialog
  10635. title="查看详情"
  10636. :visible.sync="commentDialogVisible"
  10637. :append-to-body="true"
  10638. width="800px"
  10639. :before-close="handleClose"
  10640. class="dialog_diy"
  10641. >
  10642. <div class="commentTop">
  10643. <div class="studentDetail">
  10644. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10645. <div class="nameAndTime">
  10646. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10647. <div>{{ commentDetail.time }}</div>
  10648. </div>
  10649. <div
  10650. class="returnBtn"
  10651. style="margin-left: auto; width: 80px"
  10652. v-if="
  10653. commentDetail.works &&
  10654. commentDetail.type == 0 &&
  10655. (tType == 1 || tType == 4)
  10656. "
  10657. @click="
  10658. showPicturePaint(
  10659. commentDetail.img ? commentDetail.img : commentDetail.works
  10660. )
  10661. "
  10662. >
  10663. 教师批注
  10664. </div>
  10665. </div>
  10666. <div
  10667. class="worksAnswer"
  10668. v-if="commentDetail.works && commentDetail.type == 2"
  10669. >
  10670. {{ JSON.parse(commentDetail.works)[0].answer }}
  10671. </div>
  10672. <div
  10673. class="worksAnswer"
  10674. v-if="commentDetail.works && commentDetail.type == 1"
  10675. >
  10676. <img
  10677. src="../../assets/teacherWork.png"
  10678. v-if="commentDetail.ateacher"
  10679. class="w_teachert"
  10680. />
  10681. <pdf
  10682. v-if="showPDF"
  10683. :pdfUrl="pptImgUrl"
  10684. style="width: 100%; height: 520px; overflow: auto"
  10685. :class="{ fullStyle: full }"
  10686. ></pdf>
  10687. <iframe
  10688. v-else
  10689. :src="pptImgUrl"
  10690. frameborder="0"
  10691. width="100%"
  10692. height="600"
  10693. :class="{ fullStyle: full }"
  10694. ></iframe>
  10695. </div>
  10696. <div
  10697. class="worksAnswer"
  10698. v-if="commentDetail.works && commentDetail.type == 0"
  10699. >
  10700. <img
  10701. src="../../assets/teacherWork.png"
  10702. v-if="commentDetail.ateacher"
  10703. class="w_teachert"
  10704. style="right: 105px"
  10705. />
  10706. <img
  10707. :src="commentDetail.works"
  10708. alt=""
  10709. @click="previewImg(commentDetail.works)"
  10710. />
  10711. </div>
  10712. <div
  10713. class="worksAnswer"
  10714. v-if="commentDetail.works && commentDetail.type == 3"
  10715. >
  10716. <img
  10717. src="../../assets/teacherWork.png"
  10718. v-if="commentDetail.ateacher"
  10719. class="w_teachert"
  10720. />
  10721. <video-player
  10722. class="video-player vjs-custom-skin"
  10723. :playsinline="true"
  10724. :options="videoDetail"
  10725. @play="onPlayerPlay($event)"
  10726. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10727. ></video-player>
  10728. </div>
  10729. <div
  10730. class="worksAnswer"
  10731. v-if="commentDetail.works && commentDetail.type == 10"
  10732. >
  10733. <div class="cont" v-html="commentDetail.works.text"></div>
  10734. </div>
  10735. <div
  10736. class="worksAnswer codeFileBox"
  10737. v-if="commentDetail.works && commentDetail.type == 12"
  10738. @click="downloadFile(commentDetail.works)"
  10739. >
  10740. <img src="../../assets/icon/codeFile.png" />
  10741. <div>点击下载文件</div>
  10742. </div>
  10743. <div
  10744. class="worksAnswer codeFileBox"
  10745. v-if="commentDetail.works && commentDetail.type == 15"
  10746. @click="
  10747. openCocoPi(
  10748. 57,
  10749. commentIndexJson.toolIndex,
  10750. commentDetail.userid,
  10751. commentDetail.sName
  10752. )
  10753. "
  10754. >
  10755. <img src="../../assets/icon/codeFile.png" />
  10756. <div>点击打开CocoPi</div>
  10757. </div>
  10758. <div
  10759. class="worksAnswer"
  10760. v-if="commentDetail.works && commentDetail.type == 13"
  10761. >
  10762. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10763. </div>
  10764. <div
  10765. class="worksAnswer"
  10766. v-if="commentDetail.works && commentDetail.type == 4"
  10767. >
  10768. <div class="evalCss">
  10769. <div class="nav">请选择星星进行评分</div>
  10770. <div class="middleBox" v-if="eScore.eStar">
  10771. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10772. <div class="nameAndrate">
  10773. <div>{{ e.value }}</div>
  10774. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10775. </div>
  10776. <div v-if="e.detail">{{ e.detail }}</div>
  10777. </div>
  10778. <div class="bz">
  10779. <textarea
  10780. disabled
  10781. rows="4"
  10782. class="pj"
  10783. style="
  10784. padding: 10px 5px;
  10785. width: 70%;
  10786. background: #f7f6f9;
  10787. font-size: 14px;
  10788. text-indent: 10px;
  10789. color: #000;
  10790. "
  10791. cols
  10792. v-model="eScore.eBzText"
  10793. placeholder="请输入评价内容..."
  10794. ></textarea>
  10795. </div>
  10796. </div>
  10797. </div>
  10798. </div>
  10799. <div class="comment">
  10800. <div class="commentList">
  10801. <div class="commentImg">
  10802. <img
  10803. @click="
  10804. isLikes(
  10805. commentDetail.wid,
  10806. userid,
  10807. 1,
  10808. null,
  10809. commentDetail.isLikes,
  10810. commentDetail.sName
  10811. )
  10812. "
  10813. :src="commentDetail.isLikes == true ? likes : noLikes"
  10814. alt=""
  10815. />
  10816. </div>
  10817. <div>{{ commentDetail.likesCount }}</div>
  10818. </div>
  10819. <div class="commentList">
  10820. <div class="commentImg">
  10821. <img src="../../assets/icon/comment/comment.png" alt="" />
  10822. </div>
  10823. <div>{{ commentDetail.commentCount }}</div>
  10824. </div>
  10825. </div>
  10826. <div class="drawPBox" v-if="commentDetail.img">
  10827. <span>教师批注</span>
  10828. <img
  10829. :src="commentDetail.img"
  10830. alt=""
  10831. @click="previewImg(commentDetail.img)"
  10832. />
  10833. <span
  10834. class="deleteImg"
  10835. v-if="tType == 1 || tType == 4"
  10836. @click.stop="deletePicturePaint(commentDetail.wid)"
  10837. style="
  10838. font-size: 14px;
  10839. width: auto !important;
  10840. color: #b4b4b4;
  10841. top: unset;
  10842. bottom: 0;
  10843. border: none;
  10844. padding: 0;
  10845. height: auto !important;
  10846. margin: 0;
  10847. "
  10848. >删除</span
  10849. >
  10850. </div>
  10851. </div>
  10852. <div class="commentBox">
  10853. <div class="pl">评论:</div>
  10854. <div style="max-height: 200px; overflow: auto">
  10855. <div
  10856. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10857. style="padding: 10px 0 0 0"
  10858. >
  10859. <div
  10860. class="studentDetail"
  10861. style="padding-top: 10px"
  10862. v-for="(co, coIndex) in commentDetail.commentJson"
  10863. :key="coIndex"
  10864. >
  10865. <div class="tx" style="min-width: 50px">
  10866. <img src="../../assets/avatar.png" alt="" />
  10867. </div>
  10868. <div class="plPerson">
  10869. <div class="plName">
  10870. <div>{{ co.commentPeople }}</div>
  10871. <div style="margin-left: 5px">
  10872. {{ co.commentTime }}
  10873. </div>
  10874. <div
  10875. class="deleteComment"
  10876. v-if="userid == co.userid"
  10877. @click="deleteComment(co.wid)"
  10878. >
  10879. 删除
  10880. </div>
  10881. </div>
  10882. <div class="plContent">{{ co.commentText }}</div>
  10883. </div>
  10884. </div>
  10885. </div>
  10886. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10887. </div>
  10888. </div>
  10889. <div style="margin-top: 10px">
  10890. <div class="displayBox">
  10891. <div
  10892. style="
  10893. color: #556db4;
  10894. font-size: 14px;
  10895. font-weight: bold;
  10896. padding-bottom: 10px;
  10897. "
  10898. >
  10899. 评价
  10900. </div>
  10901. <div class="easy_comment" v-if="false">
  10902. <div
  10903. v-for="(p, pIndex) in PlTextList"
  10904. :key="pIndex"
  10905. @click="fastText(p, 1)"
  10906. >
  10907. {{ p }}
  10908. </div>
  10909. </div>
  10910. </div>
  10911. <div>
  10912. <textarea
  10913. rows="3"
  10914. class="pj"
  10915. style="padding: 10px 5px"
  10916. cols
  10917. v-model="commentText"
  10918. placeholder="请输入评论"
  10919. ></textarea>
  10920. </div>
  10921. </div>
  10922. <div slot="footer">
  10923. <el-button
  10924. @click="
  10925. (commentDialogVisible = false),
  10926. (commentIndexJson = {}),
  10927. videoDetail.sources && videoDetail.sources[0]
  10928. ? (videoDetail.sources[0].src = '')
  10929. : ''
  10930. "
  10931. >取 消</el-button
  10932. >
  10933. <el-button
  10934. type="primary"
  10935. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  10936. >确 定</el-button
  10937. >
  10938. </div>
  10939. </el-dialog>
  10940. <el-dialog
  10941. title="查看文档"
  10942. :visible.sync="fullDialogVisible"
  10943. :append-to-body="true"
  10944. width="100%"
  10945. :before-close="handleClose"
  10946. :show-close="false"
  10947. class="dialog_diy full_diy"
  10948. :class="{ full_diy2: fulltype == 3 }"
  10949. >
  10950. <div slot="title" class="header-title">
  10951. <div style="color: #fff">查看文档</div>
  10952. <div
  10953. @click="fullDialogVisible = false"
  10954. style="
  10955. cursor: pointer;
  10956. position: absolute;
  10957. top: 20px;
  10958. right: 20px;
  10959. color: #fff;
  10960. "
  10961. >
  10962. 退出全屏
  10963. </div>
  10964. </div>
  10965. <div style="height: 100%">
  10966. <div
  10967. class="wheel"
  10968. v-if="
  10969. fulltype == 2 &&
  10970. fullUrl.indexOf(
  10971. 'https://view.officeapps.live.com/op/view.aspx?src='
  10972. ) != -1
  10973. "
  10974. style="width: 95%; margin: 0 auto"
  10975. >
  10976. <iframe
  10977. style="width: 100%; height: 100%; border: none"
  10978. :src="fullUrl"
  10979. ></iframe>
  10980. </div>
  10981. <iframe
  10982. v-else-if="fulltype == 2"
  10983. style="width: 100%; height: 100%; border: none"
  10984. :src="fullUrl"
  10985. security="restricted"
  10986. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10987. ></iframe>
  10988. <pdf
  10989. v-else-if="fulltype == 3"
  10990. :pdfUrl="fullUrl"
  10991. style="width: 100%; height: 100%; overflow: auto"
  10992. ></pdf>
  10993. <div
  10994. class="wheel"
  10995. v-if="fulltype == 1"
  10996. style="
  10997. box-shadow: 0 0 6px 1px #f2f2f2;
  10998. width: 100%;
  10999. background: #f1f1f1;
  11000. "
  11001. >
  11002. <div class="title" style="width: 100%; box-sizing: border-box">
  11003. 查看文档
  11004. </div>
  11005. <el-form class="textBox" style="height: 90%">
  11006. <el-form-item class="textTitle">
  11007. <div style="font-size: 22px">
  11008. {{ fullUrl.name }}
  11009. </div>
  11010. </el-form-item>
  11011. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  11012. <div
  11013. v-html="fullUrl.url"
  11014. class="textContent"
  11015. style="height: auto"
  11016. ></div>
  11017. </el-form>
  11018. </div>
  11019. </div>
  11020. <!-- <div slot="footer">
  11021. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  11022. </div> -->
  11023. </el-dialog>
  11024. <el-dialog
  11025. title="个人评价"
  11026. :visible.sync="studentEvalDialogVisible"
  11027. :append-to-body="true"
  11028. width="800px"
  11029. :before-close="handleClose"
  11030. class="dialog_diy"
  11031. >
  11032. <div class="evalCss">
  11033. <div class="nav">请选择星星进行评分</div>
  11034. <div class="middleBox" v-if="eScore.eStar">
  11035. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  11036. <div class="nameAndrate">
  11037. <div>{{ e.value }}</div>
  11038. <el-rate
  11039. v-model="eScore.eStar[eIndex]"
  11040. :disabled="isStar"
  11041. ></el-rate>
  11042. </div>
  11043. <div v-if="e.detail">{{ e.detail }}</div>
  11044. </div>
  11045. <div class="easy_comment" v-if="false">
  11046. <div
  11047. v-for="(p, pIndex) in PlTextList"
  11048. :key="pIndex"
  11049. @click="fastText(p, 2)"
  11050. >
  11051. {{ p }}
  11052. </div>
  11053. </div>
  11054. <div class="bz">
  11055. <textarea
  11056. :disabled="isStar"
  11057. rows="4"
  11058. class="pj"
  11059. style="
  11060. padding: 10px 5px;
  11061. width: 70%;
  11062. background: #f7f6f9;
  11063. font-size: 14px;
  11064. text-indent: 10px;
  11065. "
  11066. cols
  11067. v-model="eScore.eBzText"
  11068. placeholder="请输入评价内容..."
  11069. ></textarea>
  11070. </div>
  11071. </div>
  11072. </div>
  11073. <div slot="footer">
  11074. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  11075. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  11076. >确 定</el-button
  11077. >
  11078. </div>
  11079. </el-dialog>
  11080. <el-dialog
  11081. title="个人评价"
  11082. :visible.sync="studentEvalDialogVisibleTeacher"
  11083. :append-to-body="true"
  11084. width="800px"
  11085. :before-close="handleClose"
  11086. class="dialog_diy"
  11087. >
  11088. <div class="w_name">
  11089. 学生姓名:<span>{{ sStudent.student }}</span>
  11090. </div>
  11091. <div class="evalCss">
  11092. <div class="nav">请选择星星进行评分</div>
  11093. <div class="middleBox" v-if="eScore.eStar">
  11094. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  11095. <div class="nameAndrate">
  11096. <div>{{ e.value }}</div>
  11097. <el-rate
  11098. v-model="eScore.eStar[eIndex]"
  11099. :disabled="isStar"
  11100. ></el-rate>
  11101. </div>
  11102. <div v-if="e.detail">{{ e.detail }}</div>
  11103. </div>
  11104. <div class="easy_comment" v-if="false">
  11105. <div
  11106. v-for="(p, pIndex) in PlTextList"
  11107. :key="pIndex"
  11108. @click="fastText(p, 2)"
  11109. >
  11110. {{ p }}
  11111. </div>
  11112. </div>
  11113. <div class="bz">
  11114. <textarea
  11115. :disabled="isStar"
  11116. rows="4"
  11117. class="pj"
  11118. style="
  11119. padding: 10px 5px;
  11120. width: 70%;
  11121. background: #f7f6f9;
  11122. font-size: 14px;
  11123. text-indent: 10px;
  11124. "
  11125. cols
  11126. v-model="eScore.eBzText"
  11127. placeholder="请输入评价内容..."
  11128. ></textarea>
  11129. </div>
  11130. </div>
  11131. </div>
  11132. <div slot="footer">
  11133. <el-button @click="studentEvalDialogVisibleTeacher = false"
  11134. >取 消</el-button
  11135. >
  11136. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  11137. >确 定</el-button
  11138. >
  11139. </div>
  11140. </el-dialog>
  11141. <el-dialog
  11142. title="选择匹配"
  11143. :visible.sync="dialogVisibleSelect"
  11144. :append-to-body="true"
  11145. width="90%"
  11146. :before-close="handleClose"
  11147. class="dialog_diy dialog_diy3"
  11148. >
  11149. <div v-if="selectJson">
  11150. <div class="select_box2">
  11151. <div class="select_box2_title">
  11152. <div>选择匹配</div>
  11153. <div>请选择对应的答案进行答题!</div>
  11154. </div>
  11155. <div class="select_box2_box">
  11156. <div class="select_box2_img">
  11157. <img
  11158. :src="selectJson.url"
  11159. @click="previewImg(selectJson.url)"
  11160. alt=""
  11161. />
  11162. </div>
  11163. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  11164. <div style="padding-top: 15px">
  11165. <div class="select_answer_title" v-if="isSelect">
  11166. {{ selectAnswer.stu }}
  11167. </div>
  11168. <div class="select_answer_title" v-else>
  11169. 根据题目选择对应答案
  11170. </div>
  11171. <div
  11172. class="select_box2_answer_box"
  11173. v-for="(item2, checkIndex) in selectJson.select"
  11174. :key="checkIndex"
  11175. >
  11176. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  11177. <el-select
  11178. :disabled="isSelect"
  11179. v-model="selectAnswer.answer[checkIndex]"
  11180. placeholder="请选择正确答案"
  11181. >
  11182. <el-option
  11183. v-for="(e, eIndex) in selectJson.select"
  11184. :key="eIndex"
  11185. :label="e"
  11186. :value="eIndex"
  11187. >
  11188. </el-option>
  11189. </el-select>
  11190. </div>
  11191. </div>
  11192. <div
  11193. class="rightAnswerCss"
  11194. v-if="isSelect && (tType == 1 || tType == 4)"
  11195. >
  11196. <div
  11197. v-for="(a, aIndex) in selectJson.answer"
  11198. :key="aIndex"
  11199. class="rightAnswer"
  11200. >
  11201. <div
  11202. v-if="selectAnswer.answer[aIndex] === a"
  11203. style="color: #767de1"
  11204. >
  11205. 回答正确
  11206. </div>
  11207. <div v-else>回答错误</div>
  11208. <div
  11209. style="margin-left: 10px"
  11210. v-if="selectAnswer.answer[aIndex] !== a"
  11211. >
  11212. 正确答案:
  11213. </div>
  11214. <div
  11215. :class="
  11216. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  11217. "
  11218. >
  11219. {{ selectJson.select[a] }}
  11220. </div>
  11221. </div>
  11222. </div>
  11223. </div>
  11224. <div class="upAnswerCss">
  11225. <el-button
  11226. type="primary"
  11227. @click="addSelectAnswer"
  11228. v-if="!isSelect"
  11229. >提交答案</el-button
  11230. >
  11231. </div>
  11232. </div>
  11233. </div>
  11234. </div>
  11235. </el-dialog>
  11236. <el-dialog
  11237. title="选择匹配"
  11238. :visible.sync="dialogVisibleSelectTeacher"
  11239. :append-to-body="true"
  11240. width="90%"
  11241. :before-close="handleClose"
  11242. class="dialog_diy dialog_diy3"
  11243. >
  11244. <div v-if="selectJson">
  11245. <div class="w_name">
  11246. 学生姓名:<span>{{ sStudent.student }}</span>
  11247. </div>
  11248. <div class="select_box2">
  11249. <div class="select_box2_title">
  11250. <div>选择匹配</div>
  11251. <div>请选择对应的答案进行答题!</div>
  11252. </div>
  11253. <div class="select_box2_box">
  11254. <div class="select_box2_img">
  11255. <img
  11256. :src="selectJson.url"
  11257. @click="previewImg(selectJson.url)"
  11258. alt=""
  11259. />
  11260. </div>
  11261. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  11262. <div style="padding-top: 15px">
  11263. <div class="select_answer_title" v-if="isSelect">
  11264. {{ selectAnswer.stu }}
  11265. </div>
  11266. <div class="select_answer_title" v-else>
  11267. 根据题目选择对应答案
  11268. </div>
  11269. <div
  11270. class="select_box2_answer_box"
  11271. v-for="(item2, checkIndex) in selectJson.select"
  11272. :key="checkIndex"
  11273. >
  11274. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  11275. <el-select
  11276. :disabled="isSelect"
  11277. v-model="selectAnswer.answer[checkIndex]"
  11278. placeholder="请选择正确答案"
  11279. >
  11280. <el-option
  11281. v-for="(e, eIndex) in selectJson.select"
  11282. :key="eIndex"
  11283. :label="e"
  11284. :value="eIndex"
  11285. >
  11286. </el-option>
  11287. </el-select>
  11288. </div>
  11289. </div>
  11290. <div
  11291. class="rightAnswerCss"
  11292. v-if="isSelect && (tType == 1 || tType == 4)"
  11293. >
  11294. <div
  11295. v-for="(a, aIndex) in selectJson.answer"
  11296. :key="aIndex"
  11297. class="rightAnswer"
  11298. >
  11299. <div
  11300. v-if="selectAnswer.answer[aIndex] === a"
  11301. style="color: #767de1"
  11302. >
  11303. 回答正确
  11304. </div>
  11305. <div v-else>回答错误</div>
  11306. <div
  11307. style="margin-left: 10px"
  11308. v-if="selectAnswer.answer[aIndex] !== a"
  11309. >
  11310. 正确答案:
  11311. </div>
  11312. <div
  11313. :class="
  11314. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  11315. "
  11316. >
  11317. {{ selectJson.select[a] }}
  11318. </div>
  11319. </div>
  11320. </div>
  11321. </div>
  11322. <div class="upAnswerCss">
  11323. <el-button
  11324. type="primary"
  11325. @click="addSelectAnswerTeacher"
  11326. v-if="!isSelect"
  11327. >提交答案</el-button
  11328. >
  11329. </div>
  11330. </div>
  11331. </div>
  11332. </div>
  11333. </el-dialog>
  11334. <el-dialog
  11335. title="教师评分"
  11336. :visible.sync="dialogVisibleScore"
  11337. :append-to-body="true"
  11338. width="800px"
  11339. :before-close="handleClose"
  11340. class="dialog_diy"
  11341. >
  11342. <div>
  11343. <div class="studentDetail">
  11344. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  11345. <div class="nameAndTime">
  11346. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  11347. <div>{{ commentDetail.time }}</div>
  11348. </div>
  11349. </div>
  11350. <div
  11351. class="worksAnswer"
  11352. v-if="commentDetail.works && commentDetail.type == 2"
  11353. >
  11354. {{ JSON.parse(commentDetail.works)[0].answer }}
  11355. </div>
  11356. <div
  11357. class="worksAnswer"
  11358. v-if="commentDetail.works && commentDetail.type == 1"
  11359. >
  11360. <pdf
  11361. v-if="showPDF"
  11362. :pdfUrl="pptImgUrl"
  11363. style="width: 100%; height: 520px; overflow: auto"
  11364. :class="{ fullStyle: full }"
  11365. ></pdf>
  11366. <iframe
  11367. v-else
  11368. :src="pptImgUrl"
  11369. frameborder="0"
  11370. width="100%"
  11371. height="600"
  11372. :class="{ fullStyle: full }"
  11373. ></iframe>
  11374. </div>
  11375. <div
  11376. class="worksAnswer"
  11377. v-if="commentDetail.works && commentDetail.type == 0"
  11378. >
  11379. <img
  11380. :src="commentDetail.works"
  11381. alt=""
  11382. @click="previewImg(commentDetail.works)"
  11383. />
  11384. </div>
  11385. <div
  11386. class="worksAnswer"
  11387. v-if="commentDetail.works && commentDetail.type == 3"
  11388. >
  11389. <video-player
  11390. class="video-player vjs-custom-skin"
  11391. :playsinline="true"
  11392. :options="videoDetail"
  11393. @play="onPlayerPlay($event)"
  11394. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  11395. ></video-player>
  11396. </div>
  11397. <div
  11398. class="worksAnswer codeFileBox"
  11399. v-if="commentDetail.works && commentDetail.type == 12"
  11400. @click="downloadFile(commentDetail.works)"
  11401. >
  11402. <img src="../../assets/icon/codeFile.png" />
  11403. <div>点击下载文件</div>
  11404. </div>
  11405. <div
  11406. class="worksAnswer codeFileBox"
  11407. v-if="commentDetail.works && commentDetail.type == 15"
  11408. @click="
  11409. openCocoPi(
  11410. 57,
  11411. commentIndexJson.toolIndex,
  11412. commentDetail.userid,
  11413. commentDetail.sName
  11414. )
  11415. "
  11416. >
  11417. <img src="../../assets/icon/codeFile.png" />
  11418. <div>点击打开CocoPi</div>
  11419. </div>
  11420. <div
  11421. class="worksAnswer"
  11422. v-if="commentDetail.works && commentDetail.type == 13"
  11423. >
  11424. <div v-html="JSON.parse(commentDetail.works).text"></div>
  11425. </div>
  11426. <div class="scoreBox">
  11427. <span class="t">请输入分数</span>
  11428. <el-input-number
  11429. :disabled="courseDetail.userid != userid"
  11430. v-model="wScore"
  11431. :controls="false"
  11432. :min="0"
  11433. :max="100"
  11434. ></el-input-number>
  11435. </div>
  11436. <div class="scoreDetailBox">
  11437. <span class="t">评分评论</span>
  11438. <el-input
  11439. type="textarea"
  11440. :rows="5"
  11441. :disabled="courseDetail.userid != userid"
  11442. resize="none"
  11443. v-model="scoreDetail"
  11444. placeholder="请输入对学生的评价"
  11445. >
  11446. </el-input>
  11447. </div>
  11448. </div>
  11449. <span slot="footer" class="dialog-footer">
  11450. <el-button
  11451. @click="
  11452. (dialogVisibleScore = false),
  11453. (commentIndexJson = {}),
  11454. videoDetail.sources && videoDetail.sources[0]
  11455. ? (videoDetail.sources[0].src = '')
  11456. : ''
  11457. "
  11458. >取 消</el-button
  11459. >
  11460. <el-button
  11461. type="primary"
  11462. v-if="courseDetail.userid == userid"
  11463. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  11464. >确 定
  11465. </el-button>
  11466. </span>
  11467. </el-dialog>
  11468. <el-dialog
  11469. title="排序"
  11470. :visible.sync="dialogVisibleSentence"
  11471. :append-to-body="true"
  11472. width="1000px"
  11473. :before-close="handleClose"
  11474. class="dialog_diy dialog_diy3"
  11475. >
  11476. <div>
  11477. <div class="sentenBox">
  11478. <div
  11479. v-for="(st, stIndex) in sentenceList"
  11480. :key="stIndex"
  11481. style="padding-bottom: 20px"
  11482. >
  11483. <div
  11484. style="padding: 15px 0 10px 20px"
  11485. class="sentenceTitle"
  11486. :index="stIndex + 1"
  11487. >
  11488. 题目{{ stIndex + 1 }}:请选择正确顺序
  11489. </div>
  11490. <div class="cardList" v-if="st.chooseSenList">
  11491. <div class="cardBox">
  11492. <div
  11493. v-for="(r, rIndex) in st.chooseSenList"
  11494. :key="rIndex"
  11495. @click="returnCard(r, stIndex, rIndex)"
  11496. >
  11497. <el-tooltip
  11498. class="item"
  11499. effect="light"
  11500. :content="r"
  11501. placement="top"
  11502. v-if="r != '' && r != undefined"
  11503. >
  11504. <div
  11505. :class="{
  11506. isCard: r,
  11507. isChooseCard: r == '' || r == undefined,
  11508. }"
  11509. >
  11510. <div>{{ r }}</div>
  11511. </div>
  11512. </el-tooltip>
  11513. <div
  11514. :class="{
  11515. isCard: r,
  11516. isChooseCard: r == '' || r == undefined,
  11517. }"
  11518. v-else
  11519. >
  11520. <div>{{ r }}</div>
  11521. </div>
  11522. </div>
  11523. </div>
  11524. </div>
  11525. <div class="cardList" v-if="st.addChangeSen">
  11526. <div class="cardBox">
  11527. <div
  11528. v-for="(s, sIndex) in st.addChangeSen"
  11529. :key="sIndex"
  11530. @click="setRightAnswer(s, stIndex, sIndex)"
  11531. >
  11532. <el-tooltip
  11533. class="item"
  11534. effect="light"
  11535. :content="s"
  11536. placement="top"
  11537. v-if="s != '' && s != undefined"
  11538. >
  11539. <div
  11540. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11541. >
  11542. <div>{{ s }}</div>
  11543. </div>
  11544. </el-tooltip>
  11545. <div
  11546. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11547. v-else
  11548. >
  11549. <div>{{ s }}</div>
  11550. </div>
  11551. </div>
  11552. </div>
  11553. </div>
  11554. </div>
  11555. </div>
  11556. </div>
  11557. <span slot="footer" class="dialog-footer">
  11558. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11559. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11560. </span>
  11561. </el-dialog>
  11562. <el-dialog
  11563. title="排序"
  11564. :visible.sync="dialogVisibleSentenceTeacher"
  11565. :append-to-body="true"
  11566. width="1000px"
  11567. :before-close="handleClose"
  11568. class="dialog_diy dialog_diy3"
  11569. >
  11570. <div>
  11571. <div class="w_name">
  11572. 学生姓名:<span>{{ sStudent.student }}</span>
  11573. </div>
  11574. <div class="sentenBox">
  11575. <div
  11576. v-for="(st, stIndex) in sentenceList"
  11577. :key="stIndex"
  11578. style="padding-bottom: 20px"
  11579. >
  11580. <div
  11581. style="padding: 15px 0 10px 20px"
  11582. class="sentenceTitle"
  11583. :index="stIndex + 1"
  11584. >
  11585. 题目{{ stIndex + 1 }}:请选择正确顺序
  11586. </div>
  11587. <div class="cardList" v-if="st.chooseSenList">
  11588. <div class="cardBox">
  11589. <div
  11590. v-for="(r, rIndex) in st.chooseSenList"
  11591. :key="rIndex"
  11592. @click="returnCard(r, stIndex, rIndex)"
  11593. >
  11594. <el-tooltip
  11595. class="item"
  11596. effect="light"
  11597. :content="r"
  11598. placement="top"
  11599. v-if="r != '' && r != undefined"
  11600. >
  11601. <div
  11602. :class="{
  11603. isCard: r,
  11604. isChooseCard: r == '' || r == undefined,
  11605. }"
  11606. >
  11607. <div>{{ r }}</div>
  11608. </div>
  11609. </el-tooltip>
  11610. <div
  11611. :class="{
  11612. isCard: r,
  11613. isChooseCard: r == '' || r == undefined,
  11614. }"
  11615. v-else
  11616. >
  11617. <div>{{ r }}</div>
  11618. </div>
  11619. </div>
  11620. </div>
  11621. </div>
  11622. <div class="cardList" v-if="st.addChangeSen">
  11623. <div class="cardBox">
  11624. <div
  11625. v-for="(s, sIndex) in st.addChangeSen"
  11626. :key="sIndex"
  11627. @click="setRightAnswer(s, stIndex, sIndex)"
  11628. >
  11629. <el-tooltip
  11630. class="item"
  11631. effect="light"
  11632. :content="s"
  11633. placement="top"
  11634. v-if="s != '' && s != undefined"
  11635. >
  11636. <div
  11637. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11638. >
  11639. <div>{{ s }}</div>
  11640. </div>
  11641. </el-tooltip>
  11642. <div
  11643. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11644. v-else
  11645. >
  11646. <div>{{ s }}</div>
  11647. </div>
  11648. </div>
  11649. </div>
  11650. </div>
  11651. </div>
  11652. </div>
  11653. </div>
  11654. <span slot="footer" class="dialog-footer">
  11655. <el-button @click="dialogVisibleSentenceTeacher = false"
  11656. >取 消</el-button
  11657. >
  11658. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11659. </span>
  11660. </el-dialog>
  11661. <el-dialog
  11662. title="排序"
  11663. :visible.sync="dialogVisibleSentence1"
  11664. :append-to-body="true"
  11665. width="1000px"
  11666. :before-close="handleClose"
  11667. class="dialog_diy dialog_diy3"
  11668. >
  11669. <div>
  11670. <div class="sentenBox">
  11671. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11672. {{ sentenceList1.stuName }}的作业
  11673. </div>
  11674. <div
  11675. v-for="(st, stIndex) in sentenceList1"
  11676. :key="stIndex"
  11677. style="padding-bottom: 20px"
  11678. >
  11679. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11680. 第{{ stIndex + 1 }}题
  11681. </div>
  11682. <div class="isWrong">
  11683. <div class="cardList1" v-if="st.chooseSenList">
  11684. <div class="cardBox">
  11685. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11686. <el-tooltip
  11687. class="item"
  11688. effect="light"
  11689. :content="s"
  11690. placement="top"
  11691. >
  11692. <div class="isCard">
  11693. <div>{{ s }}</div>
  11694. </div>
  11695. </el-tooltip>
  11696. </div>
  11697. </div>
  11698. <div class="cardAnswerBox">
  11699. 组成句子:{{ st.chooseSenList.join(" ") }}
  11700. </div>
  11701. </div>
  11702. <div v-if="tType == 2" class="isTj">
  11703. <div class="isTjImg">
  11704. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11705. </div>
  11706. <div>已提交</div>
  11707. </div>
  11708. <div
  11709. class="answerRight isTj"
  11710. v-if="
  11711. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11712. (tType == 1 || tType == 4)
  11713. "
  11714. >
  11715. <div class="isTjImg">
  11716. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11717. </div>
  11718. <div>回答正确</div>
  11719. </div>
  11720. <div
  11721. class="answerRight isTj"
  11722. v-if="
  11723. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11724. (tType == 1 || tType == 4)
  11725. "
  11726. >
  11727. <div class="isTjImg">
  11728. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  11729. </div>
  11730. <div>回答错误</div>
  11731. </div>
  11732. </div>
  11733. <div
  11734. v-if="
  11735. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11736. (tType == 1 || tType == 4)
  11737. "
  11738. >
  11739. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11740. <div
  11741. class="cardList"
  11742. v-if="st.rightAnswer"
  11743. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11744. >
  11745. <div class="cardBox">
  11746. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11747. <el-tooltip
  11748. class="item"
  11749. effect="light"
  11750. :content="r"
  11751. placement="top"
  11752. >
  11753. <div class="isCard1">
  11754. <div>{{ r }}</div>
  11755. </div>
  11756. </el-tooltip>
  11757. </div>
  11758. </div>
  11759. <div class="cardAnswerBox">
  11760. 组成句子:{{ st.rightAnswer.join(" ") }}
  11761. </div>
  11762. </div>
  11763. </div>
  11764. </div>
  11765. </div>
  11766. </div>
  11767. <span slot="footer" class="dialog-footer">
  11768. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11769. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11770. >确 定</el-button
  11771. >
  11772. </span>
  11773. </el-dialog>
  11774. <el-dialog
  11775. title="教师提交作业"
  11776. :visible.sync="dialogVisibleWorks"
  11777. :append-to-body="true"
  11778. width="500px"
  11779. :before-close="handleClose"
  11780. class="dialog_change"
  11781. >
  11782. <div class="marginT">
  11783. <div class="w_name">
  11784. 学生姓名:<span>{{ sStudent.student }}</span>
  11785. </div>
  11786. <div>上传文件</div>
  11787. <div
  11788. class="chapter_add"
  11789. @click="addImg($event)"
  11790. v-if="studyJuri[0].cover.length == 0"
  11791. >
  11792. <div class="up_photo">
  11793. <img src="../../assets/uploadImg2.png" alt />
  11794. </div>
  11795. <!-- <input
  11796. type="file"
  11797. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11798. style="display: none"
  11799. @change="beforeUpload1($event, 1)"
  11800. /> -->
  11801. <input
  11802. type="file"
  11803. accept="*"
  11804. style="display: none"
  11805. @change="beforeUpload1($event, 1)"
  11806. />
  11807. </div>
  11808. <!-- capture="camera" -->
  11809. <div
  11810. class="chapter_add"
  11811. style="
  11812. display: flex;
  11813. width: 100%;
  11814. flex-direction: row;
  11815. flex-wrap: wrap;
  11816. justify-content: flex-start;
  11817. padding: 15px 0;
  11818. "
  11819. v-if="studyJuri[0].cover.length > 0"
  11820. >
  11821. <div class="upCover">
  11822. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11823. <img :src="word" alt v-else-if="fileType == 1" />
  11824. <img :src="video" alt v-else-if="fileType == 2" />
  11825. <img :src="word2" alt v-else-if="fileType == 3" />
  11826. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11827. <div class="deleteWord" @click="clean(1)">
  11828. <img src="../../assets/icon/deleteWorks.png" alt />
  11829. </div>
  11830. </div>
  11831. </div>
  11832. </div>
  11833. <div
  11834. class="upload_send"
  11835. @click="addCourseWorksTeacher(taskCount)"
  11836. v-if="!proVisible"
  11837. >
  11838. 提交
  11839. </div>
  11840. </el-dialog>
  11841. <ImgDraw
  11842. :drawShow="drawShow"
  11843. @closeDraw="closeDraw"
  11844. @addImgDraw="addImgDraw"
  11845. :bg="bg"
  11846. ></ImgDraw>
  11847. <el-dialog
  11848. title="表格"
  11849. :visible.sync="dialogVisibleTable"
  11850. :append-to-body="true"
  11851. width="95%"
  11852. :before-close="handleClose"
  11853. class="dialog_diy"
  11854. >
  11855. <el-form>
  11856. <div
  11857. style="
  11858. display: flex;
  11859. align-items: center;
  11860. justify-content: space-between;
  11861. "
  11862. >
  11863. <span>表格内容</span>
  11864. <el-button type="primary" size="small" @click="returnTableText"
  11865. >还原模板</el-button
  11866. >
  11867. </div>
  11868. <Table
  11869. v-model="tableJson.text"
  11870. @change="change"
  11871. v-if="dialogVisibleTable"
  11872. ></Table>
  11873. </el-form>
  11874. <span slot="footer" class="dialog-footer">
  11875. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11876. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11877. </span>
  11878. </el-dialog>
  11879. <el-dialog
  11880. title="表格"
  11881. :visible.sync="dialogVisibleTableTeacher"
  11882. :append-to-body="true"
  11883. width="95%"
  11884. :before-close="handleClose"
  11885. class="dialog_diy"
  11886. >
  11887. <el-form>
  11888. <div class="w_name">
  11889. 学生姓名:<span>{{ sStudent.student }}</span>
  11890. </div>
  11891. <div>表格内容</div>
  11892. <Table
  11893. v-model="tableJson.text"
  11894. @change="change"
  11895. v-if="dialogVisibleTableTeacher"
  11896. ></Table>
  11897. </el-form>
  11898. <span slot="footer" class="dialog-footer">
  11899. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11900. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11901. </span>
  11902. </el-dialog>
  11903. <el-dialog
  11904. title="文档"
  11905. :visible.sync="dialogVisibleWord"
  11906. :append-to-body="true"
  11907. width="95%"
  11908. :before-close="handleClose"
  11909. class="dialog_diy"
  11910. >
  11911. <el-form>
  11912. <div
  11913. style="
  11914. display: flex;
  11915. align-items: center;
  11916. justify-content: space-between;
  11917. "
  11918. >
  11919. <span>文档内容</span>
  11920. <el-button type="primary" size="small" @click="returnWordText"
  11921. >还原模板</el-button
  11922. >
  11923. </div>
  11924. <editor-bar
  11925. v-model="wordJson.text"
  11926. v-if="dialogVisibleWord"
  11927. ></editor-bar>
  11928. </el-form>
  11929. <span slot="footer" class="dialog-footer">
  11930. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11931. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11932. </span>
  11933. </el-dialog>
  11934. <el-dialog
  11935. title="文档"
  11936. :visible.sync="dialogVisibleWordTeacher"
  11937. :append-to-body="true"
  11938. width="95%"
  11939. :before-close="handleClose"
  11940. class="dialog_diy"
  11941. >
  11942. <el-form>
  11943. <div class="w_name">
  11944. 学生姓名:<span>{{ sStudent.student }}</span>
  11945. </div>
  11946. <div>文档内容</div>
  11947. <editor-bar
  11948. v-model="wordJson.text"
  11949. v-if="dialogVisibleWordTeacher"
  11950. ></editor-bar>
  11951. </el-form>
  11952. <span slot="footer" class="dialog-footer">
  11953. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11954. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11955. </span>
  11956. </el-dialog>
  11957. <el-dialog
  11958. title="表格"
  11959. :visible.sync="dialogVisibleTable2"
  11960. :append-to-body="true"
  11961. width="95%"
  11962. :before-close="handleClose"
  11963. class="dialog_diy"
  11964. >
  11965. <el-form>
  11966. <div class="cont" v-html="tableJson.text"></div>
  11967. </el-form>
  11968. <span slot="footer" class="dialog-footer">
  11969. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11970. </span>
  11971. </el-dialog>
  11972. <el-dialog
  11973. title="文档"
  11974. :visible.sync="dialogVisibleTable3"
  11975. :append-to-body="true"
  11976. width="95%"
  11977. :before-close="handleClose"
  11978. class="dialog_diy"
  11979. >
  11980. <el-form>
  11981. <div class="cont" v-html="tableJson.text"></div>
  11982. </el-form>
  11983. <span slot="footer" class="dialog-footer">
  11984. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11985. </span>
  11986. </el-dialog>
  11987. <el-dialog
  11988. title="分组设置"
  11989. :visible.sync="dialogVisibleGroup"
  11990. :append-to-body="true"
  11991. width="95%"
  11992. :before-close="handleClose"
  11993. class="dialog_diy"
  11994. >
  11995. <div v-if="dialogVisibleGroup">
  11996. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11997. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11998. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11999. </div>
  12000. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  12001. @click="lockChair">
  12002. 锁定位置
  12003. </div>
  12004. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  12005. 解锁位置
  12006. </div> -->
  12007. <div class="group_switch">
  12008. <span>开放选座</span>
  12009. <el-switch
  12010. v-model="islock"
  12011. active-text=""
  12012. class="switchCss"
  12013. @change="lockChair"
  12014. ></el-switch>
  12015. </div>
  12016. <div
  12017. type="primary"
  12018. @click="updateGroup"
  12019. class="returnBtn"
  12020. style="background-color: #225bc7"
  12021. >
  12022. 分组设置
  12023. </div>
  12024. </div>
  12025. <div>
  12026. <div
  12027. class="g_d_box"
  12028. v-if="groupJson.group && groupStudent[toolindex]"
  12029. >
  12030. <div
  12031. class="g_d_group"
  12032. v-for="(g, gindex) in groupJson.group"
  12033. :key="gindex"
  12034. >
  12035. <div class="g_d_group_chair">
  12036. <div v-if="groupJson.number > 1">
  12037. <span
  12038. :class="{
  12039. isChair:
  12040. groupStudent[toolindex][gindex] &&
  12041. groupStudent[toolindex][gindex][0],
  12042. updateChair:
  12043. courseDetail.userid == userid &&
  12044. groupStudent[toolindex][gindex] &&
  12045. groupStudent[toolindex][gindex][0] &&
  12046. groupJson.islock == 2,
  12047. }"
  12048. ><span
  12049. class="updateChairBtn"
  12050. @click="
  12051. updateGroupChair(
  12052. groupStudent[toolindex][gindex] &&
  12053. groupStudent[toolindex][gindex][0]
  12054. )
  12055. "
  12056. >修改</span
  12057. ></span
  12058. ><span>{{
  12059. groupStudent[toolindex][gindex] &&
  12060. groupStudent[toolindex][gindex][0]
  12061. ? groupStudent[toolindex][gindex] &&
  12062. groupStudent[toolindex][gindex][0].name
  12063. : "空位置"
  12064. }}</span>
  12065. </div>
  12066. <div v-if="groupJson.number > 4">
  12067. <span
  12068. :class="{
  12069. isChair:
  12070. groupStudent[toolindex][gindex] &&
  12071. groupStudent[toolindex][gindex][4],
  12072. updateChair:
  12073. courseDetail.userid == userid &&
  12074. groupStudent[toolindex][gindex] &&
  12075. groupStudent[toolindex][gindex][4] &&
  12076. groupJson.islock == 2,
  12077. }"
  12078. ><span
  12079. class="updateChairBtn"
  12080. @click="
  12081. updateGroupChair(
  12082. groupStudent[toolindex][gindex] &&
  12083. groupStudent[toolindex][gindex][4]
  12084. )
  12085. "
  12086. >修改</span
  12087. ></span
  12088. ><span>{{
  12089. groupStudent[toolindex][gindex] &&
  12090. groupStudent[toolindex][gindex][4]
  12091. ? groupStudent[toolindex][gindex] &&
  12092. groupStudent[toolindex][gindex][4].name
  12093. : "空位置"
  12094. }}</span>
  12095. </div>
  12096. <div v-if="groupJson.number > 8">
  12097. <span
  12098. :class="{
  12099. isChair:
  12100. groupStudent[toolindex][gindex] &&
  12101. groupStudent[toolindex][gindex][8],
  12102. updateChair:
  12103. courseDetail.userid == userid &&
  12104. groupStudent[toolindex][gindex] &&
  12105. groupStudent[toolindex][gindex][8] &&
  12106. groupJson.islock == 2,
  12107. }"
  12108. ><span
  12109. class="updateChairBtn"
  12110. @click="
  12111. updateGroupChair(
  12112. groupStudent[toolindex][gindex] &&
  12113. groupStudent[toolindex][gindex][8]
  12114. )
  12115. "
  12116. >修改</span
  12117. ></span
  12118. ><span>{{
  12119. groupStudent[toolindex][gindex] &&
  12120. groupStudent[toolindex][gindex][8]
  12121. ? groupStudent[toolindex][gindex] &&
  12122. groupStudent[toolindex][gindex][8].name
  12123. : "空位置"
  12124. }}</span>
  12125. </div>
  12126. </div>
  12127. <div class="g_d_group_tableBox">
  12128. <div class="g_d_group_chair2">
  12129. <div v-if="groupJson.number > 2">
  12130. <span
  12131. :class="{
  12132. isChair:
  12133. groupStudent[toolindex][gindex] &&
  12134. groupStudent[toolindex][gindex][2],
  12135. updateChair:
  12136. courseDetail.userid == userid &&
  12137. groupStudent[toolindex][gindex] &&
  12138. groupStudent[toolindex][gindex][2] &&
  12139. groupJson.islock == 2,
  12140. }"
  12141. ><span
  12142. class="updateChairBtn"
  12143. @click="
  12144. updateGroupChair(
  12145. groupStudent[toolindex][gindex] &&
  12146. groupStudent[toolindex][gindex][2]
  12147. )
  12148. "
  12149. >修改</span
  12150. ></span
  12151. ><span>{{
  12152. groupStudent[toolindex][gindex] &&
  12153. groupStudent[toolindex][gindex][2]
  12154. ? groupStudent[toolindex][gindex] &&
  12155. groupStudent[toolindex][gindex][2].name
  12156. : "空位置"
  12157. }}</span>
  12158. </div>
  12159. <div v-if="groupJson.number > 6">
  12160. <span
  12161. :class="{
  12162. isChair:
  12163. groupStudent[toolindex][gindex] &&
  12164. groupStudent[toolindex][gindex][6],
  12165. updateChair:
  12166. courseDetail.userid == userid &&
  12167. groupStudent[toolindex][gindex] &&
  12168. groupStudent[toolindex][gindex][6] &&
  12169. groupJson.islock == 2,
  12170. }"
  12171. ><span
  12172. class="updateChairBtn"
  12173. @click="
  12174. updateGroupChair(
  12175. groupStudent[toolindex][gindex] &&
  12176. groupStudent[toolindex][gindex][6]
  12177. )
  12178. "
  12179. >修改</span
  12180. ></span
  12181. ><span>{{
  12182. groupStudent[toolindex][gindex] &&
  12183. groupStudent[toolindex][gindex][6]
  12184. ? groupStudent[toolindex][gindex] &&
  12185. groupStudent[toolindex][gindex][6].name
  12186. : "空位置"
  12187. }}</span>
  12188. </div>
  12189. </div>
  12190. <div class="g_d_group_table">
  12191. <div>
  12192. {{ g.name }}
  12193. </div>
  12194. <div>
  12195. <div
  12196. v-if="
  12197. courseDetail.userid == userid && groupJson.islock == 2
  12198. "
  12199. @click="deleteGroupChair(gindex)"
  12200. >
  12201. 移除组员
  12202. </div>
  12203. <div
  12204. @click="selectGroup(gindex)"
  12205. v-else-if="
  12206. groupStudentUid[toolindex] &&
  12207. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  12208. "
  12209. >
  12210. 加入分组
  12211. </div>
  12212. <div
  12213. @click="
  12214. exitGroup(
  12215. groupStudent[toolindex][gindex] &&
  12216. groupStudent[toolindex][gindex][
  12217. groupStudentUid[toolindex][gindex].indexOf(userid)
  12218. ].id
  12219. )
  12220. "
  12221. v-else-if="
  12222. groupStudentUid[toolindex] &&
  12223. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  12224. "
  12225. >
  12226. 退出分组
  12227. </div>
  12228. </div>
  12229. </div>
  12230. <div class="g_d_group_chair2">
  12231. <div v-if="groupJson.number > 3">
  12232. <span
  12233. :class="{
  12234. isChair:
  12235. groupStudent[toolindex][gindex] &&
  12236. groupStudent[toolindex][gindex][3],
  12237. updateChair:
  12238. courseDetail.userid == userid &&
  12239. groupStudent[toolindex][gindex] &&
  12240. groupStudent[toolindex][gindex][3] &&
  12241. groupJson.islock == 2,
  12242. }"
  12243. ><span
  12244. class="updateChairBtn"
  12245. @click="
  12246. updateGroupChair(
  12247. groupStudent[toolindex][gindex] &&
  12248. groupStudent[toolindex][gindex][3]
  12249. )
  12250. "
  12251. >修改</span
  12252. ></span
  12253. ><span>{{
  12254. groupStudent[toolindex][gindex] &&
  12255. groupStudent[toolindex][gindex][3]
  12256. ? groupStudent[toolindex][gindex] &&
  12257. groupStudent[toolindex][gindex][3].name
  12258. : "空位置"
  12259. }}</span>
  12260. </div>
  12261. <div v-if="groupJson.number > 7">
  12262. <span
  12263. :class="{
  12264. isChair:
  12265. groupStudent[toolindex][gindex] &&
  12266. groupStudent[toolindex][gindex][7],
  12267. updateChair:
  12268. courseDetail.userid == userid &&
  12269. groupStudent[toolindex][gindex] &&
  12270. groupStudent[toolindex][gindex][7] &&
  12271. groupJson.islock == 2,
  12272. }"
  12273. ><span
  12274. class="updateChairBtn"
  12275. @click="
  12276. updateGroupChair(
  12277. groupStudent[toolindex][gindex] &&
  12278. groupStudent[toolindex][gindex][7]
  12279. )
  12280. "
  12281. >修改</span
  12282. ></span
  12283. ><span>{{
  12284. groupStudent[toolindex][gindex] &&
  12285. groupStudent[toolindex][gindex][7]
  12286. ? groupStudent[toolindex][gindex] &&
  12287. groupStudent[toolindex][gindex][7].name
  12288. : "空位置"
  12289. }}</span>
  12290. </div>
  12291. </div>
  12292. </div>
  12293. <div class="g_d_group_chair">
  12294. <div v-if="groupJson.number > 1">
  12295. <span
  12296. :class="{
  12297. isChair:
  12298. groupStudent[toolindex][gindex] &&
  12299. groupStudent[toolindex][gindex][1],
  12300. updateChair:
  12301. courseDetail.userid == userid &&
  12302. groupStudent[toolindex][gindex] &&
  12303. groupStudent[toolindex][gindex][1] &&
  12304. groupJson.islock == 2,
  12305. }"
  12306. ><span
  12307. class="updateChairBtn"
  12308. @click="
  12309. updateGroupChair(
  12310. groupStudent[toolindex][gindex] &&
  12311. groupStudent[toolindex][gindex][1]
  12312. )
  12313. "
  12314. >修改</span
  12315. ></span
  12316. ><span>{{
  12317. groupStudent[toolindex][gindex] &&
  12318. groupStudent[toolindex][gindex][1]
  12319. ? groupStudent[toolindex][gindex] &&
  12320. groupStudent[toolindex][gindex][1].name
  12321. : "空位置"
  12322. }}</span>
  12323. </div>
  12324. <div v-if="groupJson.number > 5">
  12325. <span
  12326. :class="{
  12327. isChair:
  12328. groupStudent[toolindex][gindex] &&
  12329. groupStudent[toolindex][gindex][5],
  12330. updateChair:
  12331. courseDetail.userid == userid &&
  12332. groupStudent[toolindex][gindex] &&
  12333. groupStudent[toolindex][gindex][5] &&
  12334. groupJson.islock == 2,
  12335. }"
  12336. ><span
  12337. class="updateChairBtn"
  12338. @click="
  12339. updateGroupChair(
  12340. groupStudent[toolindex][gindex] &&
  12341. groupStudent[toolindex][gindex][5]
  12342. )
  12343. "
  12344. >修改</span
  12345. ></span
  12346. ><span>{{
  12347. groupStudent[toolindex][gindex] &&
  12348. groupStudent[toolindex][gindex][5]
  12349. ? groupStudent[toolindex][gindex] &&
  12350. groupStudent[toolindex][gindex][5].name
  12351. : "空位置"
  12352. }}</span>
  12353. </div>
  12354. <div v-if="groupJson.number > 9">
  12355. <span
  12356. :class="{
  12357. isChair:
  12358. groupStudent[toolindex][gindex] &&
  12359. groupStudent[toolindex][gindex][9],
  12360. updateChair:
  12361. courseDetail.userid == userid &&
  12362. groupStudent[toolindex][gindex] &&
  12363. groupStudent[toolindex][gindex][9] &&
  12364. groupJson.islock == 2,
  12365. }"
  12366. ><span
  12367. class="updateChairBtn"
  12368. @click="
  12369. updateGroupChair(
  12370. groupStudent[toolindex][gindex] &&
  12371. groupStudent[toolindex][gindex][9]
  12372. )
  12373. "
  12374. >修改</span
  12375. ></span
  12376. ><span>{{
  12377. groupStudent[toolindex][gindex] &&
  12378. groupStudent[toolindex][gindex][9]
  12379. ? groupStudent[toolindex][gindex] &&
  12380. groupStudent[toolindex][gindex][9].name
  12381. : "空位置"
  12382. }}</span>
  12383. </div>
  12384. </div>
  12385. </div>
  12386. </div>
  12387. </div>
  12388. </div>
  12389. <span slot="footer" class="dialog-footer">
  12390. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  12391. </span>
  12392. </el-dialog>
  12393. <el-dialog
  12394. title="分组设置"
  12395. :visible.sync="dialogVisibleGroup2"
  12396. :append-to-body="true"
  12397. width="650px"
  12398. :before-close="handleClose"
  12399. class="dialog_diy"
  12400. >
  12401. <div class="groupBox">
  12402. <div v-if="groupJson2.group" class="groupContent">
  12403. <div class="groupTitle">请设置小组数量及名称</div>
  12404. <div
  12405. v-for="(item, index) in groupJson2.group"
  12406. :key="index"
  12407. class="groupName"
  12408. >
  12409. <span class="groupn">第{{ index + 1 }}组名称:</span>
  12410. <el-input
  12411. v-model="item.name"
  12412. placeholder="请输入名称..."
  12413. style="width: 250px"
  12414. ></el-input>
  12415. <!-- <div class="groupBtn">
  12416. <el-button type="primary" size="small" @click="addGroup(index)">
  12417. 添加</el-button>
  12418. <el-button type="primary" size="small" @click="deleteGroup(index)"
  12419. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  12420. </div> -->
  12421. </div>
  12422. </div>
  12423. <div class="groupContent">
  12424. <div class="groupTitle">请设置每组人数</div>
  12425. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  12426. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  12427. <el-input
  12428. v-model="groupJson.number"
  12429. style="width: 150px"
  12430. placeholder="请输入2-10的数字"
  12431. @change="numberPan"
  12432. ></el-input>
  12433. </div>
  12434. </div>
  12435. <span slot="footer" class="dialog-footer">
  12436. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  12437. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  12438. </span>
  12439. </el-dialog>
  12440. <el-dialog
  12441. title="作业提交"
  12442. :visible.sync="dialogVisibleGroupWork"
  12443. :append-to-body="true"
  12444. width="500px"
  12445. :before-close="handleClose"
  12446. class="dialog_change"
  12447. >
  12448. <div class="marginT">
  12449. <div>上传文件</div>
  12450. <div
  12451. class="chapter_add"
  12452. @click="addImg($event)"
  12453. v-if="studyJuri[0].cover.length == 0"
  12454. >
  12455. <div class="up_photo">
  12456. <img src="../../assets/icon/uploadImg.png" alt />
  12457. </div>
  12458. <!-- <input
  12459. type="file"
  12460. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12461. style="display: none"
  12462. @change="beforeUpload1($event, 1)"
  12463. /> -->
  12464. <input
  12465. type="file"
  12466. accept="*"
  12467. style="display: none"
  12468. @change="beforeUpload1($event, 1)"
  12469. />
  12470. </div>
  12471. <!-- capture="camera" -->
  12472. <div
  12473. class="chapter_add"
  12474. style="
  12475. display: flex;
  12476. width: 100%;
  12477. flex-direction: row;
  12478. flex-wrap: wrap;
  12479. justify-content: flex-start;
  12480. padding: 15px 0;
  12481. "
  12482. v-if="studyJuri[0].cover.length > 0"
  12483. >
  12484. <div class="upCover">
  12485. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12486. <img :src="word" alt v-else-if="fileType == 1" />
  12487. <img :src="video" alt v-else-if="fileType == 2" />
  12488. <img :src="word2" alt v-else-if="fileType == 3" />
  12489. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12490. <div class="deleteWord" @click="clean(1)">
  12491. <img src="../../assets/icon/deleteWorks.png" alt />
  12492. </div>
  12493. </div>
  12494. </div>
  12495. </div>
  12496. <div
  12497. class="upload_send"
  12498. @click="addCourseWorks2(taskCount)"
  12499. v-if="!proVisible"
  12500. >
  12501. 提交
  12502. </div>
  12503. </el-dialog>
  12504. <el-dialog
  12505. title="修改分组"
  12506. :visible.sync="dialogVisibleUpdateGroup"
  12507. :append-to-body="true"
  12508. width="350px"
  12509. :before-close="handleClose"
  12510. class="dialog_diy"
  12511. >
  12512. <div>
  12513. <h2>
  12514. {{ this.updateGroupUser.name }}
  12515. </h2>
  12516. <div style="color: rgb(171 171 171); margin-top: 10px">
  12517. 请选择要进入的分组
  12518. </div>
  12519. <el-radio-group v-model="checkChair">
  12520. <el-radio
  12521. style="display: block; margin-top: 20px"
  12522. v-for="(item, index) in updateGroupArray"
  12523. :label="item.label"
  12524. :key="index"
  12525. >{{ item.name }}</el-radio
  12526. >
  12527. </el-radio-group>
  12528. </div>
  12529. <span slot="footer" class="dialog-footer">
  12530. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  12531. <el-button type="primary" @click="updateChair">确定</el-button>
  12532. </span>
  12533. </el-dialog>
  12534. <el-dialog
  12535. title="移除组员"
  12536. :visible.sync="dialogVisibleDeleteGroup"
  12537. :append-to-body="true"
  12538. width="350px"
  12539. :before-close="handleClose"
  12540. class="dialog_diy"
  12541. >
  12542. <div>
  12543. <h2>
  12544. {{ this.deleteGroupArray.name }}
  12545. </h2>
  12546. <div style="color: rgb(171 171 171); margin-top: 10px">
  12547. 请选择要删除的组员
  12548. </div>
  12549. <el-checkbox-group v-model="checkDeleteGroup">
  12550. <el-checkbox
  12551. style="display: flex; margin-top: 20px"
  12552. v-for="(item, index) in deleteGroupUser"
  12553. :label="item.userid"
  12554. :key="index"
  12555. >{{ item.name }}</el-checkbox
  12556. >
  12557. </el-checkbox-group>
  12558. </div>
  12559. <span slot="footer" class="dialog-footer">
  12560. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12561. <el-button type="primary" @click="deleteChair">确定</el-button>
  12562. </span>
  12563. </el-dialog>
  12564. <el-dialog
  12565. title="批量上传"
  12566. :visible.sync="dialogVisiblePl"
  12567. :append-to-body="true"
  12568. width="700px"
  12569. :before-close="handleClose"
  12570. class="dialog_change"
  12571. >
  12572. <div class="marginT">
  12573. <div class="plworkBox">
  12574. <div
  12575. class="chapter_add"
  12576. style="
  12577. display: flex;
  12578. width: 150px;
  12579. flex-direction: row;
  12580. flex-wrap: wrap;
  12581. justify-content: flex-start;
  12582. margin: 0 10px 10px 0;
  12583. "
  12584. v-for="(item, index) in plworkFile"
  12585. :key="index"
  12586. >
  12587. <div class="upCover2">
  12588. <img
  12589. :src="item.url"
  12590. alt
  12591. v-if="item.fileType == 1"
  12592. @click="previewImg(item.url)"
  12593. />
  12594. <img :src="word" alt v-else-if="item.fileType == 4" />
  12595. <img :src="video" alt v-else />
  12596. <!-- <span class="picName">{{ item.name }}</span> -->
  12597. <!-- <el-input
  12598. v-model="item.username"
  12599. placeholder="请输入学生名字"
  12600. style="margin-top: 10px"
  12601. ></el-input> -->
  12602. <div
  12603. class="pl_select_box"
  12604. @click="
  12605. getUpdateMore(true, checkUpload(), item.username, index)
  12606. "
  12607. >
  12608. {{ getSName(item.username) }}
  12609. </div>
  12610. <!-- <el-select
  12611. style="margin-top: 10px"
  12612. v-model="item.username"
  12613. filterable
  12614. allow-create
  12615. placeholder="请选择学生"
  12616. >
  12617. <el-option
  12618. v-for="item1 in checkUpload()"
  12619. :key="item1.userid"
  12620. :label="item1.name ? item1.name : item1.username"
  12621. :value="item1.userid"
  12622. >
  12623. </el-option>
  12624. </el-select> -->
  12625. <div class="deleteWord" @click="clean2(index)">
  12626. <img src="../../assets/icon/deleteWorks.png" alt />
  12627. </div>
  12628. </div>
  12629. </div>
  12630. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12631. <div class="up_photo2">
  12632. <img src="../../assets/icon/plwork.png" alt />
  12633. <span>点击上传文件</span>
  12634. </div>
  12635. <input
  12636. type="file"
  12637. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12638. multiple="multiple"
  12639. style="display: none"
  12640. @change="beforeUpload3($event, 6)"
  12641. />
  12642. </div>
  12643. </div>
  12644. </div>
  12645. <!-- capture="camera" -->
  12646. <div
  12647. class="upload_send"
  12648. @click="addCourseWorksPl(taskCount)"
  12649. v-if="!proVisible2"
  12650. >
  12651. 提交
  12652. </div>
  12653. </el-dialog>
  12654. <el-dialog
  12655. title="修改名称"
  12656. :visible.sync="dialogVisibleSname"
  12657. width="500px"
  12658. :before-close="handleClose"
  12659. class="dialog_diy"
  12660. center
  12661. >
  12662. <div
  12663. style="
  12664. text-align: center;
  12665. display: flex;
  12666. align-items: center;
  12667. justify-content: center;
  12668. "
  12669. >
  12670. <span class="tian1">名称</span>
  12671. <div
  12672. class="pl_select_box"
  12673. style="margin-left: 10px; width: 200px"
  12674. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12675. >
  12676. {{ getSName(worksSName) }}
  12677. </div>
  12678. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12679. placeholder="请选择学生">
  12680. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12681. :value="item.userid">
  12682. </el-option>
  12683. </el-select> -->
  12684. <!-- <el-input
  12685. v-model="worksSName"
  12686. style="width: 250px; margin: 15px 0px"
  12687. ></el-input> -->
  12688. </div>
  12689. <span slot="footer" class="dialog-footer">
  12690. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12691. <el-button type="primary" @click="updateName">确 定</el-button>
  12692. </span>
  12693. </el-dialog>
  12694. <el-dialog
  12695. title="英语写作"
  12696. :visible.sync="engDialogVisible"
  12697. :append-to-body="true"
  12698. width="800px"
  12699. :before-close="handleClose"
  12700. class="dialog_diy"
  12701. >
  12702. <onlineWrite
  12703. v-if="engDialogVisible"
  12704. :englishList="englishList"
  12705. :myAnswerList1="myAnswerList1"
  12706. ref="engJson"
  12707. ></onlineWrite>
  12708. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12709. <el-button @click="engDialogVisible = false">取 消</el-button>
  12710. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12711. </span>
  12712. </el-dialog>
  12713. <el-dialog
  12714. title="英语写作"
  12715. :visible.sync="engUpdateDialogVisible"
  12716. :append-to-body="true"
  12717. width="800px"
  12718. :before-close="handleClose"
  12719. class="dialog_diy fullStyle"
  12720. >
  12721. <div class="engUpBox">
  12722. <div class="engUpTop">
  12723. <div class="engTitle">
  12724. <div>作文题目:</div>
  12725. <div>{{ englishList1.engTitle }}</div>
  12726. </div>
  12727. <div class="engText">
  12728. <div>作文内容:</div>
  12729. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12730. </div>
  12731. </div>
  12732. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12733. <div class="oldBox">
  12734. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12735. <div class="oldText">
  12736. <div class="detailBox">
  12737. <div class="oldDetail">
  12738. <div>标题:</div>
  12739. <div>{{ oldEnglishJson.engTitle }} </div>
  12740. </div>
  12741. <div class="oldDetail1">
  12742. <div>正文:</div>
  12743. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12744. </div>
  12745. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12746. <div>图片:</div>
  12747. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12748. </div>
  12749. </div>
  12750. </div>
  12751. </div>
  12752. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12753. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12754. <div class="oldText">
  12755. <div class="detailBox" style="position: relative;">
  12756. <div class="oldDetail">
  12757. <div>标题:</div>
  12758. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12759. <div v-else v-html="newEnglishList.engTitle"></div>
  12760. </div>
  12761. <div class="oldDetail">
  12762. <div>正文:</div>
  12763. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12764. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12765. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div> -->
  12766. </div>
  12767. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12768. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12769. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12770. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12771. </div>
  12772. </div>
  12773. </div>
  12774. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12775. <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">
  12776. <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>
  12777. <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>
  12778. </div>
  12779. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12780. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12781. <div class="detailBox" style="position: relative;">
  12782. <div class="oldDetail">
  12783. <div>标题:</div>
  12784. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12785. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12786. </div>
  12787. <div class="oldDetail">
  12788. <div>正文:</div>
  12789. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12790. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12791. </div>
  12792. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12793. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12794. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12795. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12796. </div>
  12797. </div>
  12798. <div class="oldText" v-else-if="newEngIndex == -1">
  12799. <div class="detailBox" style="position: relative;">
  12800. <div class="oldDetail">
  12801. <div>标题:</div>
  12802. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12803. <div v-else v-html="newEnglishList.engTitle"></div>
  12804. </div>
  12805. <div class="oldDetail">
  12806. <div>正文:</div>
  12807. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12808. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12809. </div>
  12810. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12811. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12812. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12813. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12814. </div>
  12815. </div>
  12816. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  12817. <div class="detailBox" style="position: relative;">
  12818. <div class="oldDetail">
  12819. <div>标题:</div>
  12820. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12821. <div v-else>
  12822. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  12823. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  12824. </div>
  12825. </div>
  12826. <div class="oldDetail">
  12827. <div>正文:</div>
  12828. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12829. <div v-else>
  12830. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  12831. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  12832. </div>
  12833. </div>
  12834. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12835. <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>
  12836. <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>
  12837. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12838. </div>
  12839. </div>
  12840. </div>
  12841. </div>
  12842. </div>
  12843. <span slot="footer" class="dialog-footer">
  12844. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  12845. <el-button type="primary" @click="addCorrect">确 定</el-button>
  12846. </span>
  12847. </el-dialog>
  12848. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  12849. <interVideo
  12850. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12851. :videoJson="videoJson"
  12852. :userid="userid"
  12853. :id="id"
  12854. :courseType="courseType"
  12855. :taskCount="taskCount"
  12856. :toolindex="toolindex"
  12857. :videoType="videoType"
  12858. ></interVideo>
  12859. <UpdateMore
  12860. :dialogVisibleMember.sync="dialogVisibleMember"
  12861. :cList="uploadStudentJuri"
  12862. :userid="userid"
  12863. :searchTN="worksSName2"
  12864. @setPlname="setPlname"
  12865. ></UpdateMore>
  12866. <wordCloud
  12867. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12868. :data="wordCloudData"
  12869. ></wordCloud>
  12870. <el-dialog
  12871. title="挑人"
  12872. :visible.sync="dialogVisiblePickPeople"
  12873. width="650px"
  12874. :before-close="handleClose"
  12875. class="dialog_diy"
  12876. center
  12877. >
  12878. <div class="pick_box">
  12879. <div
  12880. class="noWorksName"
  12881. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12882. v-for="(item, index) in uploadStudentJuri"
  12883. :key="index"
  12884. @click="pickStudent(item)"
  12885. >
  12886. {{ item.name }}
  12887. </div>
  12888. </div>
  12889. </el-dialog>
  12890. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  12891. :englishVoiceJson='englishVoiceJson'
  12892. :userid="userid"
  12893. :id="id"
  12894. :courseType="courseType"
  12895. :taskCount="taskCount"
  12896. :toolindex="toolindex"
  12897. @selectSWorks="selectSWorks"
  12898. @selectStudent="selectStudent"
  12899. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  12900. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  12901. :userid="userid"
  12902. :dialogVisibleENScore.sync='dialogVisibleENScore'
  12903. :commentDetail="commentDetail"
  12904. :courseDetail="courseDetail"
  12905. :wScore="wScore"
  12906. :scoreDetail="scoreDetail"
  12907. @selectSWorks="selectSWorks"
  12908. @selectStudent="selectStudent"></checkEnglishVoice>
  12909. <el-dialog
  12910. title="教师评分"
  12911. :visible.sync="markScoreVisible"
  12912. :append-to-body="true"
  12913. width="1000px"
  12914. :fullscreen="markfullscreen"
  12915. :before-close="markScorehandleClose"
  12916. class="markScore_diy"
  12917. >
  12918. <div slot="title">
  12919. <div class="markScore_diyTit">
  12920. <div>教师评分</div>
  12921. <div @click="markFullScreenBtn" style="cursor: pointer;"><img src="../../assets/icon/newIcons/fullScreen.png" alt=""></div>
  12922. </div>
  12923. </div>
  12924. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  12925. <!-- @updateDocSco="updateDocSco" -->
  12926. <markDialog
  12927. :key="markScoreVisible.toString()"
  12928. :uid="markScoreUid"
  12929. :toolIndex="markScoretoolIndex"
  12930. :stage="courseType"
  12931. :task="taskCount"
  12932. :finalMarkList="finalMarkList"
  12933. :scoTit="markScoreTit"
  12934. :markScoreworksStudent="markScoreworksStudent"
  12935. :markScoreVisible="markScoreVisible"
  12936. ></markDialog>
  12937. </el-dialog>
  12938. </div>
  12939. </template>
  12940. <script>
  12941. import "../../common/aws-sdk-2.235.1.min.js";
  12942. // import pdf from "../components/pdf3";
  12943. import pdf from "../components/vpdf";
  12944. import AskStatic from "../components/askStatic";
  12945. import AskStatic2 from "../components/askStatic2";
  12946. import AnswerData2 from "../components/answerData2";
  12947. import AnswerData from "../components/answerData";
  12948. import EditorBar from "../tools/wangEnduit.vue";
  12949. import Table from "../tools/table.vue";
  12950. import Time from "../tools/time.vue";
  12951. import Mind from "../tools/jsmind.vue";
  12952. import Sunburst from "../tools/sunburst";
  12953. import SeeBoard from "../tools/seeBoard";
  12954. import * as imageConversion from "image-conversion";
  12955. import Audio from "../components/audio.vue";
  12956. import ImgDraw from "../tools/imgDraw/imgDraw";
  12957. import { Empty } from "element-ui";
  12958. import RecordRTC from "recordrtc";
  12959. import interVideo from "../interVideo/index.vue";
  12960. import UpdateMore from "../updateMore/updateMore.vue";
  12961. import wordCloud from "../wordCloud/index.vue";
  12962. import axios from "axios";
  12963. import JSZip from "jszip";
  12964. import FileSaver from "file-saver";
  12965. import onlineWrite from "./commpont/onlineWrite";
  12966. import englishEva from "../components/englishEva";
  12967. import * as Diff from 'diff'
  12968. import EnglishVoice from '../EnglishVoice2/index.vue'
  12969. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  12970. import correctText from '../components/correctText.vue'
  12971. import scoreItem from '../scoreList/scoreItem.vue'
  12972. import scoreZong from '../scoreZong/index.vue'
  12973. import classRoomHelper from '../classRoomHelper/index.vue'
  12974. import markScore from "./commpont/markScore";
  12975. import markDialog from "./commpont/markDialog";
  12976. import { v4 as uuidv4 } from "uuid";
  12977. const getFile = (url) => {
  12978. return new Promise((resolve, reject) => {
  12979. var credentials = {
  12980. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  12981. secretAccessKey: "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",
  12982. }; //秘钥形式的登录上传
  12983. window.AWS.config.update(credentials);
  12984. window.AWS.config.region = "cn-northwest-1"; //设置区域
  12985. let url2 = url;
  12986. let _url2 = "";
  12987. if (
  12988. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  12989. ) {
  12990. _url2 = url2.split(
  12991. "https://view.officeapps.live.com/op/view.aspx?src="
  12992. )[1];
  12993. } else {
  12994. _url2 = url2;
  12995. }
  12996. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  12997. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  12998. var params = {
  12999. Bucket: "ccrb",
  13000. Key: name
  13001. };
  13002. s3.getObject(params, function (err, data) {
  13003. if (err) {
  13004. console.log(err, err.stack)
  13005. resolve({ data: 1 });
  13006. }else {
  13007. resolve({ data: data.Body });
  13008. console.log(data);
  13009. } // sxuccessful response
  13010. });
  13011. // axios({
  13012. // method: "get",
  13013. // url,
  13014. // responseType: "blob",
  13015. // })
  13016. // .then((data) => {
  13017. // resolve({ data: data.data });
  13018. // })
  13019. // .catch((error) => {
  13020. // resolve({ data: 1 });
  13021. // // reject(error.toString());
  13022. // });
  13023. });
  13024. };
  13025. export default {
  13026. components: {
  13027. EditorBar,
  13028. Time,
  13029. pdf,
  13030. AskStatic,
  13031. AskStatic2,
  13032. Mind,
  13033. Sunburst,
  13034. SeeBoard,
  13035. AnswerData2,
  13036. AnswerData,
  13037. Audio,
  13038. ImgDraw,
  13039. Table,
  13040. interVideo,
  13041. UpdateMore,
  13042. wordCloud,
  13043. onlineWrite,
  13044. englishEva,
  13045. EnglishVoice,
  13046. checkEnglishVoice,
  13047. correctText,
  13048. scoreItem,
  13049. classRoomHelper,
  13050. scoreZong,
  13051. markScore,
  13052. markDialog
  13053. },
  13054. data() {
  13055. return {
  13056. bg: null,
  13057. drawShow: false,
  13058. dialogVisible: false,
  13059. dialogVisiblePl: false,
  13060. commentDialogVisible: false,
  13061. dialogVisibleMember: false,
  13062. dialogVisibleWordCloud: false,
  13063. videoVisible: false,
  13064. isStar: false,
  13065. studentEvalDialogVisible: false,
  13066. studentEvalDialogVisibleTeacher: false,
  13067. dialogVisibleSelect: false,
  13068. dialogVisibleSelectTeacher: false,
  13069. dialogVisibleScore: false,
  13070. dialogVisibleENScore: false,
  13071. dialogVisibleSentence: false,
  13072. dialogVisibleSentenceTeacher: false,
  13073. dialogVisibleSentence1: false,
  13074. dialogVisibleWorks: false,
  13075. dialogVisibleTable: false,
  13076. dialogVisibleTableTeacher: false,
  13077. dialogVisibleWord: false,
  13078. dialogVisibleWordTeacher: false,
  13079. dialogVisibleTable2: false,
  13080. dialogVisibleTable3: false,
  13081. dialogVisibleGroupWork: false,
  13082. dialogVisibleUpdateGroup: false,
  13083. dialogVisibleDeleteGroup: false,
  13084. dialogVisibleSname: false,
  13085. dialogVisibleVideo: false,
  13086. dialogVisiblePickPeople: false,
  13087. engDialogVisible: false,
  13088. engUpdateDialogVisible:false,
  13089. engEvaDialogVisible: false,
  13090. evaEngJson: {
  13091. teacherJson: {},
  13092. studentJson: {},
  13093. message: {},
  13094. },
  13095. isNoUserid:false,
  13096. engListLength:0,
  13097. engWid:"",
  13098. newEnglishList:{
  13099. engTitle:"",
  13100. engText:"",
  13101. },
  13102. newEnglishList1:[],
  13103. oldEnglishJson:{},
  13104. oldEnglishJson1:{},
  13105. englishList1:{},
  13106. englishList:{},
  13107. myAnswerList1:{},
  13108. topHeight:0,
  13109. newEngIndex:-1,
  13110. englishToolIndex:0,
  13111. userMes:{},
  13112. englishToolIndex:0,
  13113. worksSName: "",
  13114. classJuri: [],
  13115. uploadStudentJuri: [],
  13116. uploadCid: "",
  13117. snameWid: "",
  13118. sStudent: {},
  13119. sTool: "",
  13120. bzText: "",
  13121. commentDetail: [],
  13122. selectAnswer: [],
  13123. videoDetail: {},
  13124. selectJson: {},
  13125. englishList: {},
  13126. topHeight:0,
  13127. eScore: { eBzText: "", eStar: [] },
  13128. id: this.$route.query.courseId,
  13129. userid: this.$route.query.userid,
  13130. classId: this.$route.query.cid,
  13131. // courseTypeLine: this.$route.query.type,
  13132. oid: this.$route.query.oid,
  13133. org: this.$route.query.org,
  13134. tType: this.$route.query.tType,
  13135. courseType: this.$route.query.type,
  13136. screenType: this.$route.query.screenType,
  13137. tcid2: this.$route.query.tcid,
  13138. tcid: "",
  13139. pptImgUrl: "",
  13140. pptImgUrl1: "",
  13141. commentText: "",
  13142. full: false,
  13143. sIsOpen: false,
  13144. IsLookOpen: false,
  13145. IsFollow: false,
  13146. pzDialog: false,
  13147. contentDialog: false,
  13148. mlDialog: false,
  13149. type: 1,
  13150. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  13151. sentenceList1: [],
  13152. tableJson: [],
  13153. tableJsonO: [],
  13154. wordJson: [],
  13155. wordJsonO: [],
  13156. vedio: [],
  13157. text: [],
  13158. textList: [],
  13159. line: [],
  13160. lineList: [],
  13161. chapTools: [],
  13162. chapToolList: [],
  13163. file: [],
  13164. fileC: [],
  13165. vedioTime: [],
  13166. upToolImg: "",
  13167. preTime: 0,
  13168. rateList: {
  13169. ca: 0,
  13170. },
  13171. rateParams: [],
  13172. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  13173. studyJuri: [
  13174. {
  13175. content: "",
  13176. cover: [],
  13177. upVedio: [],
  13178. upFile: [],
  13179. },
  13180. ],
  13181. isClose: 0,
  13182. plworkFile: [],
  13183. mr: require("../../assets/vedioPic.png"),
  13184. word: require("../../assets/icon/isWord.png"),
  13185. word2: require("../../assets/icon/word2.png"),
  13186. video: require("../../assets/icon/isVideo.png"),
  13187. noLikes: require("../../assets/icon/comment/noLikes.png"),
  13188. likes: require("../../assets/icon/comment/likes.png"),
  13189. scoreImg: require("../../assets/score.png"),
  13190. courseDetail: {},
  13191. reply: "",
  13192. isSelect: false,
  13193. chapInfo: [],
  13194. chapInfoList: [],
  13195. taskCount: 0,
  13196. imgList: [],
  13197. noImgList: [],
  13198. pzList: [],
  13199. timeWorkList: [],
  13200. PlTextList: [
  13201. "Excellent!",
  13202. "nice!",
  13203. "很有创意!",
  13204. "还不错哦~",
  13205. "继续努力哦~",
  13206. ],
  13207. isClickNav: "",
  13208. navId: "",
  13209. playerOptions: {
  13210. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  13211. autoplay: false, //如果true,浏览器准备好时开始回放。
  13212. muted: false, // 默认情况下将会消除任何音频。
  13213. loop: false, // 导致视频一结束就重新开始。
  13214. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  13215. language: "zh-CN",
  13216. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  13217. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  13218. sources: [
  13219. {
  13220. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  13221. src: "", //url地址require("../../../assets/media/aaa.mp4")
  13222. },
  13223. ],
  13224. // poster: require("../../../assets/tu31.png"), //你的封面地址
  13225. // poster: dataRes.imgUrl, //你的封面地址
  13226. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  13227. controlBar: {
  13228. timeDivider: true, //当前时间和持续时间的分隔符
  13229. durationDisplay: true, //显示持续时间
  13230. remainingTimeDisplay: false, //是否显示剩余时间功能
  13231. fullscreenToggle: true, //全屏按钮
  13232. },
  13233. },
  13234. playerOptions1: {
  13235. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  13236. autoplay: false, //如果true,浏览器准备好时开始回放。
  13237. muted: false, // 默认情况下将会消除任何音频。
  13238. loop: false, // 导致视频一结束就重新开始。
  13239. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  13240. language: "zh-CN",
  13241. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  13242. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  13243. sources: [
  13244. {
  13245. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  13246. src: "", //url地址require("../../../assets/media/aaa.mp4")
  13247. },
  13248. ],
  13249. // poster: require("../../../assets/tu31.png"), //你的封面地址
  13250. // poster: dataRes.imgUrl, //你的封面地址
  13251. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  13252. controlBar: {
  13253. timeDivider: true, //当前时间和持续时间的分隔符
  13254. durationDisplay: true, //显示持续时间
  13255. remainingTimeDisplay: false, //是否显示剩余时间功能
  13256. fullscreenToggle: true, //全屏按钮
  13257. },
  13258. },
  13259. playerO: {},
  13260. noneBtnImg: false,
  13261. proVisible: false,
  13262. proVisible2: false,
  13263. progress: 0,
  13264. isFinishSize: 0,
  13265. isAllSize: 0,
  13266. questionAnswer: "",
  13267. answerQ: "", //问答标题
  13268. rateJson: [],
  13269. wbCount: 0,
  13270. wordCount: 0,
  13271. mindCount: 0,
  13272. askCount: 0,
  13273. noteCount: 0,
  13274. mindNetWorkCount: 0,
  13275. libraryCount: 0,
  13276. workCount: 0,
  13277. timeCount: 0,
  13278. answerCount: 0,
  13279. trainCount: 0,
  13280. evalCount: 0,
  13281. dialogImageUrl: "",
  13282. pictureDialog: false,
  13283. toolTypeList: [],
  13284. dialogVisible1: false,
  13285. dialogVisible2: false,
  13286. dialogVisible3: false,
  13287. dialogVisible6: false,
  13288. dialogVisible4: false,
  13289. isNoHomeWork: false,
  13290. dialogVisible5: false,
  13291. dialogVisible5Teacher: false,
  13292. dialogVisibleChoice: false,
  13293. dialogVisibleChoiceTeacher: false,
  13294. answerDialogVisible: false,
  13295. answerDialogVisibleTeacher: false,
  13296. juriVisible: false,
  13297. timeDialogVisible: false,
  13298. replyDialogVisible: false,
  13299. toolDialogVisible: false,
  13300. replyIndex: 0,
  13301. replyPid: "",
  13302. radio: [],
  13303. isAsk: false,
  13304. askJson: {
  13305. askCount: 1,
  13306. askTitle: "",
  13307. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13308. },
  13309. testJson: {},
  13310. videoType:0,
  13311. checkJson: [],
  13312. askList: [],
  13313. answerList: [],
  13314. navList: [],
  13315. addPzDialog: false,
  13316. pzConText: "",
  13317. worksStudent: [],
  13318. isCloseList: [],
  13319. workStudent: [],
  13320. groupStudent: [],
  13321. groupStudentUid: [],
  13322. noWorksS: [],
  13323. isWorksS: [],
  13324. noWorksStudent: [],
  13325. toolindex: 0,
  13326. toolDetailIndex: null,
  13327. groupIndex: 0,
  13328. workTypeB: false,
  13329. workTypeC: false,
  13330. isAnswer: false,
  13331. isHovered: false,
  13332. isHovered1: false,
  13333. isHovered2: false,
  13334. commentTagShow:0,
  13335. timer: null,
  13336. opertimer: null,
  13337. showType: 0,
  13338. fileType: 0,
  13339. showPDF: false,
  13340. noteName: "",
  13341. evaJuri: [],
  13342. evalua: "",
  13343. eTitle: "",
  13344. eName: "",
  13345. eJson: {},
  13346. fid: "", //一级
  13347. sid: "", //二级
  13348. tid: "", //二级
  13349. typeMode: 1,
  13350. eJSONNum: 0,
  13351. Etype: 1,
  13352. data: {
  13353. meta: {
  13354. name: "example",
  13355. author: "dd@163.com",
  13356. version: "0.2",
  13357. },
  13358. format: "node_array",
  13359. data: [{ id: "root", isroot: true, topic: "" }],
  13360. },
  13361. fullDialogVisible: false,
  13362. fulltype: "",
  13363. fullUrl: "",
  13364. commentIndexJson: {},
  13365. Stbodywidth: 0,
  13366. ispzType: 0,
  13367. pzType: 1,
  13368. wScore: 0,
  13369. scoreDetail: "",
  13370. videoStart: false,
  13371. recorder: null,
  13372. groupJson: {},
  13373. islock: false,
  13374. groupJson2: {},
  13375. dialogVisibleGroup: false,
  13376. dialogVisibleGroup2: false,
  13377. updateGroupArray: [],
  13378. updateGroupUser: {},
  13379. deleteGroupUser: [],
  13380. deleteGroupArray: {},
  13381. checkChair: "",
  13382. checkDeleteGroup: [],
  13383. inviteCode: "",
  13384. courseGroupStudent: [],
  13385. courseGroupStudentUid: [],
  13386. courseGroup: {},
  13387. isGroup: false,
  13388. toolIndex: null,
  13389. tool: {},
  13390. isWorkTool: [
  13391. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  13392. ], //, 40
  13393. videoJson: {},
  13394. toolType: 0,
  13395. checktoolArray: [],
  13396. vChapterData: [],
  13397. isUpdateToolDetail: false,
  13398. isUpdateToolDetail1: false,
  13399. updateToolDetailInner: "",
  13400. checkboxList: [],
  13401. plIndex: "",
  13402. worksSName2: "",
  13403. worksSid: "",
  13404. wordCloudData: [],
  13405. isPickStudent: [],
  13406. pzStype: 1,
  13407. downLoading: false,
  13408. greyType: false,
  13409. correctWord: [],
  13410. EnglishVoiceDialog: false,
  13411. englishVoiceJson: {},
  13412. englishVoiceJsonWork:[],
  13413. scoreList:{
  13414. listdata:[],
  13415. isScoreList:[],
  13416. },
  13417. classRoomHelperWidth: '85px',
  13418. orgArray:[],
  13419. oidArray:[],
  13420. refreshKey:0,
  13421. AIloading:[],
  13422. worksStudentCopy:[],
  13423. loopLoading:[],
  13424. markScoreVisible:false,
  13425. markScoretoolIndex:0,
  13426. markScoreUid:'',
  13427. markScoreTit:{},
  13428. markfullscreen:false,
  13429. xianObj: ["DOCX", "MD", "TXT", "PDF"],
  13430. markScoreworksStudent:[],
  13431. finalMarkList : -1,
  13432. isaiNum : 0
  13433. };
  13434. },
  13435. methods: {
  13436. getAIJ(){
  13437. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13438. let oid = res.data[0];
  13439. let org = res.data[1];
  13440. let oidArray = [];
  13441. let orgArray = [];
  13442. oid.forEach(i=>oidArray.push(i.oid))
  13443. org.forEach(i=>orgArray.push(i.oid))
  13444. this.orgArray = orgArray;
  13445. this.oidArray = oidArray;
  13446. })
  13447. },
  13448. markFullScreenBtn(){
  13449. this.markfullscreen = !this.markfullscreen
  13450. },
  13451. insertMemorandum(_html){//保存行为操作
  13452. //variable
  13453. //btn
  13454. let params = [{
  13455. uid:this.userid,
  13456. courseId:this.id+(this.tcid2?this.tcid2:""),
  13457. content:_html
  13458. }]
  13459. console.log(params)
  13460. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13461. if(res.data==1){
  13462. console.log('保存操作成功')
  13463. }else{
  13464. console.log('保存操作失败')
  13465. }
  13466. }).catch(e=>{
  13467. console.log('保存操作失败')
  13468. console.log(e)
  13469. })
  13470. },
  13471. // 获取文档id
  13472. createFileid(url) {
  13473. let _this = this;
  13474. return new Promise((resolve, reject) => {
  13475. try {
  13476. _this.ajax
  13477. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  13478. url: url
  13479. })
  13480. .then(res => {
  13481. let _data = res.data.FunctionResponse;
  13482. if (_data.result && _data.result.id) {
  13483. resolve(_data.result.id);
  13484. } else {
  13485. resolve(1);
  13486. }
  13487. })
  13488. .catch(function(error) {
  13489. resolve(1);
  13490. });
  13491. } catch (e) {
  13492. resolve(1);
  13493. }
  13494. });
  13495. },
  13496. resetLoopEva(con,tit,stage,task,toolIndex,toolDetail,worksStudent){
  13497. let jude = false
  13498. this.AIloading.forEach((e,index)=>{
  13499. if(index == toolIndex){
  13500. e.forEach(k=>{
  13501. if(k.loading == true)
  13502. jude=true
  13503. })
  13504. }
  13505. })
  13506. if(jude) return this.$message.info('正在进行AI评分中,请稍后')
  13507. this.$confirm('确认一键重置?')
  13508. .then(_ => {
  13509. this.allEmptyScoBtn(con,stage,task)
  13510. })
  13511. .catch(_ => {});
  13512. },
  13513. async allEmptyScoBtn(con,stage,task){
  13514. for (let index = 0; index < con.length; index++) {
  13515. await this.allEmptySco(con[index].userid,stage,task)
  13516. }
  13517. this.$message.success('重置完成')
  13518. this.refreshAssembly();
  13519. },
  13520. allEmptySco(uid,stage,task){
  13521. let params = [{
  13522. cid: this.id,
  13523. uid:uid,
  13524. s:stage,
  13525. t:task
  13526. }];
  13527. return new Promise(resolve => { this.ajax
  13528. .post(this.$store.state.api + "allWorkEmptySco", params)
  13529. .then(res => {
  13530. resolve(1);
  13531. })
  13532. .catch(err => {
  13533. console.error(err);
  13534. });
  13535. })
  13536. .catch(error => {
  13537. console.log(error);
  13538. });
  13539. },
  13540. async loopEva(con,tit,stage,task,toolIndex,toolDetail,worksStudent){
  13541. tit.forEach((e,index)=>{
  13542. if(!e.isai){
  13543. e.isai=1
  13544. }
  13545. })
  13546. let jude = false
  13547. this.AIloading.forEach((e,index)=>{
  13548. if(index == toolIndex){
  13549. e.forEach(k=>{
  13550. if(k.loading == true)
  13551. jude=true
  13552. })
  13553. }
  13554. })
  13555. if(jude) return this.$message.info('请勿同时间进行AI评分')
  13556. this.AIloading.forEach((e,index)=>{
  13557. if(index == toolIndex){
  13558. e.forEach(k=>{
  13559. k.loading=true
  13560. })
  13561. }
  13562. })
  13563. this.loopLoading[toolIndex].loading=true
  13564. let laws = ""
  13565. for (let i = 0; i < tit.length; i++) {
  13566. if(tit[i].isai == 1){
  13567. let a = tit[i].detail
  13568. let result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  13569. laws += `评价维度:“${result}”, 评价细则:${tit[i].rule} \n`;
  13570. }
  13571. }
  13572. let forAllList = []
  13573. for (let i = 0; i < con.length; i++) {
  13574. let _fileid = ''
  13575. let wok = con[i].works
  13576. if(con[i].type == 1 || con[i].type == 12){
  13577. let a = wok.slice(wok.lastIndexOf(".") + 1)
  13578. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  13579. _fileid = await this.createFileid(con[i].works);
  13580. }else{
  13581. this.AIloading[toolIndex][i].loading=false;
  13582. continue;
  13583. }
  13584. }
  13585. if(_fileid == 1 || con[i].type == 0 || con[i].type == 3){
  13586. this.AIloading[toolIndex][i].loading=false;
  13587. continue;
  13588. }
  13589. let msg = `NOTICE
  13590. Role: 你是一个专业的项目式学习导师,你要对学生的评价高度负责。你要根据“六级评价细则”给学生作品评分,并生成需要的JSON数据。
  13591. 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.
  13592. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13593. Instruction: Based on the context, follow "Format example", write content.
  13594. #Context
  13595. ##要求
  13596. 根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级,结合“评价细则”和等级写评语。如果作业内容与评价细则无关,则直接评为0星。
  13597. ##评分资料
  13598. 评价细则:${laws}
  13599. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text }
  13600. #输出要求#
  13601. 输出每个维度的“等级”和作业的综合性“评语”
  13602. “评语”控制在150字左右
  13603. 评价维度要按原样输出,只输出 ##评分资料 “评分细则”引号内的
  13604. # Format example
  13605. [{'评价维度':'评价等级0-5(数字)'},{'评价维度':'评价等级0-5(数字)'},{'评价维度':'评价等级0-5(数字)'},{'评价维度':'评价等级0-5(数字)'},{'评语':'评语(150个字左右)'}]
  13606. `
  13607. let mk = `markSco${toolIndex}${i}`
  13608. let mkAwit = this.$refs[mk][0].aiupdetaSco(msg,con[i].userid,stage,task,_fileid)
  13609. forAllList.push(mkAwit)
  13610. // this.$refs[mk][0].getData()
  13611. // this.AIloading[toolIndex][i].loading=false
  13612. }
  13613. Promise.all(forAllList).then(values=>{
  13614. console.log('values',values)
  13615. this.$message({
  13616. message: "评价成功",
  13617. type: "success"
  13618. });
  13619. this.refreshKey++
  13620. this.AIloading[toolIndex].forEach(e=>{
  13621. e.loading =false
  13622. })
  13623. this.loopLoading[toolIndex].loading = false;
  13624. }).catch(reason=>{
  13625. console.error('reasonreasonreasonreasonreason',reason);
  13626. // 输出“失败原因”
  13627. })
  13628. },
  13629. againEva(i,k){
  13630. let msg = `NOTICE
  13631. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  13632. 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.
  13633. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13634. Instruction: Based on the context, follow "Format example", write content.
  13635. #Context
  13636. ##要求
  13637. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  13638. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  13639. ##制定标准资料
  13640. 评价维度:${this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value}
  13641. 维度描述:${this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail}
  13642. # Format example
  13643. ==
  13644. 0 星,作业内容与作业要求无关;
  13645. 1 星,没有识别问题和需求;
  13646. 2 星,问题或需求没有被清晰理解或准确识别;
  13647. 3 星,问题或需求的一部分被识别;
  13648. 4 星,问题或需求的大部分被识别;
  13649. 5 星,问题或需求都被识别。
  13650. ==
  13651. `
  13652. let params = {
  13653. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  13654. message: [{"type":"text", "text":msg.replaceAll('\n', " ").replaceAll('*', "")}],
  13655. session_name: uuidv4(),
  13656. userId: this.userid,
  13657. file_ids: [],
  13658. model:'gpt-4o-2024-08-06'
  13659. };
  13660. // console.log('params',params);
  13661. this.ajax
  13662. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  13663. .then(response => {
  13664. let data = response.data.FunctionResponse;
  13665. // console.log("data", data);
  13666. if (data.message) {
  13667. let content = data.message;
  13668. var regex = new RegExp('==([^=]+)==');
  13669. let match = content.match(regex);
  13670. if (match) {
  13671. content = match[1].trim().replaceAll(' ','');
  13672. // 获取匹配到的内容并去除两端空格
  13673. // console.log('contentInsideDoubleEquals', content);
  13674. if(content.indexOf('0星') == -1 || content.indexOf('2星') == -1 || content.indexOf('3星') == -1 || content.indexOf('4星') == -1 || content.indexOf('5星') == -1){
  13675. console.log("未有星级。");
  13676. this.againEva(i,k)
  13677. return
  13678. }
  13679. // return
  13680. } else {
  13681. console.log("未找到匹配的内容。");
  13682. this.againEva(i,k)
  13683. return
  13684. }
  13685. let elist = JSON.parse(JSON.stringify(this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]))
  13686. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  13687. elist.rule = JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  13688. this.$set(this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,k,elist)
  13689. this.$forceUpdate();
  13690. let params2 = [
  13691. {
  13692. cid: this.id,
  13693. chapters: JSON.stringify(this.chapInfoList),
  13694. uid: this.userid,
  13695. unitIndex: this.courseType,
  13696. },
  13697. ];
  13698. this.ajax
  13699. .post(this.$store.state.api + "updateWorkNew4", params2)
  13700. .then((res) => {
  13701. this.getCourseDetail(2);
  13702. this.$forceUpdate();
  13703. })
  13704. .catch((err) => {
  13705. this.$message.error("网络不佳");
  13706. console.error(err);
  13707. });
  13708. // 进行进一步处理或解析outputContent
  13709. // } else {
  13710. // console.log("No match found for # Output section.");
  13711. // }
  13712. }
  13713. })
  13714. .catch(error => {
  13715. console.log(error);
  13716. });
  13717. },
  13718. markScorehandleClose(done) {
  13719. this.refreshKey++
  13720. done();
  13721. },
  13722. // 组件刷新
  13723. refreshAssembly(val){
  13724. this.refreshKey++
  13725. // console.log(this.refreshKey)
  13726. },
  13727. updateLoading(payload){
  13728. this.AIloading[payload.val][payload.val2].loading=payload.val3
  13729. },
  13730. handleShow(toolIndex,val) {
  13731. let mk = `markSco${toolIndex}${val}`
  13732. // console.log(mk);
  13733. this.$refs[mk][0].getData()
  13734. },
  13735. handleHide(datatoolIndex,val,worksStudent) {
  13736. let mk = `markSco${toolIndex}${val}`
  13737. this.$refs[mk][0].getData()
  13738. },
  13739. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  13740. markScoreDig2(uname,worksStudent,uid,tidx,titlist,val = 0){
  13741. let jude = false
  13742. this.AIloading.forEach((e,index)=>{
  13743. if(index == tidx){
  13744. e.forEach(k=>{
  13745. if(k.loading == true)
  13746. jude=true
  13747. })
  13748. }
  13749. })
  13750. if(jude) return this.$message.info('正在AI评价进程中请稍后')
  13751. if(val) return
  13752. // console.log(uname,worksStudent,uid,tidx,titlist)
  13753. this.markScoreTit=titlist;
  13754. // console.log('val',data)
  13755. this.markScoreUid=uid;
  13756. this.markScoretoolIndex=tidx;
  13757. this.markScoreworksStudent = worksStudent;
  13758. this.markfullscreen = false;
  13759. this.markScoreVisible = true;
  13760. this.insertMemorandum(`查看<span class="variable">${uname}</span>的作业`)
  13761. },
  13762. // 点击markScore显示评分框
  13763. markScoreDig(data){
  13764. // console.log('data',data.uname)
  13765. let jude = false
  13766. this.AIloading.forEach((e,index)=>{
  13767. if(index == data.val2){
  13768. e.forEach(k=>{
  13769. if(k.loading == true)
  13770. jude=true
  13771. })
  13772. }
  13773. })
  13774. if(jude) return this.$message.info('正在AI评价进程中请稍后')
  13775. this.markScoreTit=data.tit
  13776. // console.log('val',data)
  13777. this.markScoreUid=data.val
  13778. this.markScoretoolIndex=data.val2
  13779. this.markfullscreen = false
  13780. this.markScoreVisible = true
  13781. this.insertMemorandum(`查看<span class="variable">${data.uname}</span>的作业`)
  13782. },
  13783. // 刷新其他组件分数
  13784. refreshOther(toolIndex){
  13785. this.worksStudent.forEach((e,index)=>{
  13786. if(toolIndex != index){
  13787. e.forEach((i,inx)=>{
  13788. let mk = `markSco${index}${inx}`
  13789. this.$refs[mk][0].getData()
  13790. })
  13791. }
  13792. })
  13793. },
  13794. updateDocSco(payload){
  13795. // console.log('updateDocSco',this.AIloading[payload.val][payload.val2].sco , payload.val3);
  13796. this.AIloading[payload.val][payload.val2].sco=payload.val3
  13797. },
  13798. gx(){
  13799. this.$forceUpdate();
  13800. },
  13801. isUpdateCorrect(t,p){
  13802. if(this.greyType == false){
  13803. this.isUpdateText = t;
  13804. this.greyType = true;
  13805. }else{
  13806. if(p == 1){
  13807. this.newEnglishList.engText = this.isUpdateText;
  13808. }else if(p == 2){
  13809. this.oldEnglishJson1.engText = this.isUpdateText;
  13810. }else if(p == 3){
  13811. this.newEnglishList.engText = this.isUpdateText;
  13812. }else{
  13813. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  13814. }
  13815. this.greyType = false
  13816. }
  13817. },
  13818. aiCorrect(t,p){
  13819. let aiText = "";
  13820. const loading = this.$loading.service({
  13821. background: "rgba(255, 255, 255)",
  13822. target: document.querySelectorAll(".loadingText")[0],
  13823. });
  13824. let param = {
  13825. model: "gpt-3.5-turbo",
  13826. temperature: 0,
  13827. max_tokens: 2048,
  13828. top_p: 1,
  13829. frequency_penalty: 0,
  13830. presence_penalty: 0,
  13831. messages: [
  13832. {
  13833. role: "user",
  13834. content:
  13835.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13836. },
  13837. ],
  13838. uid: this.userid,
  13839. stream: false,
  13840. };
  13841. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13842. (res) => {
  13843. if (
  13844. res.data.FunctionResponse &&
  13845. res.data.FunctionResponse.result &&
  13846. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13847. ) {
  13848. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13849. return;
  13850. }
  13851. aiText =
  13852. res.data.FunctionResponse.choices[0].message.content;
  13853. aiText = aiText.replace(/%/g,"%25");
  13854. // let w = "";
  13855. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13856. // for(var k = 0;k<a.length;k++){
  13857. // //diffWordsWithSpace
  13858. // if(a.length > 1){
  13859. // if(a[k].added == true){
  13860. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13861. // }else if(a[k].removed == true){
  13862. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13863. // }else{
  13864. // w += '<span>' + a[k].value + '</span>';
  13865. // }
  13866. // }else{
  13867. // if(p == 1){
  13868. // w = this.newEnglishList.engText;
  13869. // }else if(p == 2){
  13870. // w = this.oldEnglishJson1.engText;
  13871. // }else if(p == 3){
  13872. // w = this.newEnglishList.engText;
  13873. // }else{
  13874. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13875. // }
  13876. // }
  13877. // }
  13878. if(p == 1){
  13879. this.newEnglishList.engText = aiText;
  13880. }else if(p == 2){
  13881. this.oldEnglishJson1.engText = aiText;
  13882. }else if(p == 3){
  13883. this.newEnglishList.engText = aiText;
  13884. }else{
  13885. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13886. }
  13887. loading.close();
  13888. },
  13889. (err) => {
  13890. console.log(err);
  13891. loading.close();
  13892. }
  13893. );
  13894. },
  13895. addToolChoose() {
  13896. if (!this.checktoolArray.length) {
  13897. this.$message.error("请选择要添加的任务");
  13898. return;
  13899. }
  13900. if (
  13901. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13902. this.taskCount
  13903. ].toolChoose[0].tool.length
  13904. ) {
  13905. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13906. this.taskCount
  13907. ].toolChoose[0].tool = this.checktoolArray;
  13908. } else {
  13909. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13910. this.taskCount
  13911. ].toolChoose.push({
  13912. tool: this.checktoolArray,
  13913. toolDetail: "",
  13914. toolType: 0,
  13915. askCount: 1,
  13916. askTitle: "",
  13917. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13918. });
  13919. }
  13920. let params = [
  13921. {
  13922. cid: this.id,
  13923. chapters: JSON.stringify(this.chapInfoList),
  13924. uid: this.userid,
  13925. unitIndex: this.courseType,
  13926. },
  13927. ];
  13928. this.ajax
  13929. .post(this.$store.state.api + "updateWorkNew4", params)
  13930. .then((res) => {
  13931. this.$message({
  13932. message: "添加成功",
  13933. type: "success",
  13934. });
  13935. this.checktoolArray = [];
  13936. this.getCourseDetail(2);
  13937. this.checkBz(
  13938. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13939. this.taskCount
  13940. ].toolChoose.length - 1
  13941. );
  13942. this.toolDialogVisible = false;
  13943. this.refreshCourse();
  13944. this.$forceUpdate();
  13945. })
  13946. .catch((err) => {
  13947. console.error(err);
  13948. });
  13949. },
  13950. checkBz(index) {
  13951. this.isUpdateToolDetail = false;
  13952. this.$forceUpdate();
  13953. setTimeout(() => {
  13954. document.scrollingElement.scrollTop =
  13955. document.querySelectorAll(".filebox")[index].offsetTop +
  13956. document.querySelector(".student_body").offsetTop;
  13957. }, 500);
  13958. },
  13959. updateToolDetail(i, type) {
  13960. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  13961. this.toolDetailIndex = i
  13962. this.isUpdateToolDetail1 = true;
  13963. setTimeout(() => {
  13964. this.updateToolDetailInner = JSON.parse(
  13965. JSON.stringify(
  13966. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13967. this.taskCount
  13968. ].toolChoose[i].toolDetail
  13969. )
  13970. );
  13971. document.querySelector(".checkTextArea").focus();
  13972. }, 0);
  13973. } else if((this.isUpdateToolDetail1 && type != 2)){
  13974. // this.toolDetailIndex = i;
  13975. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13976. this.taskCount
  13977. ].toolChoose[i].toolDetail = JSON.parse(
  13978. JSON.stringify(this.updateToolDetailInner)
  13979. );
  13980. let params = [
  13981. {
  13982. cid: this.id,
  13983. chapters: JSON.stringify(this.chapInfoList),
  13984. uid: this.userid,
  13985. unitIndex: this.courseType,
  13986. },
  13987. ];
  13988. this.ajax
  13989. .post(this.$store.state.api + "updateWorkNew4", params)
  13990. .then((res) => {
  13991. this.isUpdateToolDetail1 = false;
  13992. this.$message({
  13993. message: "修改成功",
  13994. type: "success",
  13995. });
  13996. this.toolDetailIndex = null;
  13997. this.updateToolDetailInner = "";
  13998. this.getCourseDetail(2);
  13999. this.$forceUpdate();
  14000. })
  14001. .catch((err) => {
  14002. console.error(err);
  14003. });
  14004. } else if((this.isUpdateToolDetail1 && type == 2)){
  14005. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14006. this.taskCount
  14007. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  14008. JSON.stringify(this.updateToolDetailInner)
  14009. );
  14010. let params = [
  14011. {
  14012. cid: this.id,
  14013. chapters: JSON.stringify(this.chapInfoList),
  14014. uid: this.userid,
  14015. unitIndex: this.courseType,
  14016. },
  14017. ];
  14018. this.ajax
  14019. .post(this.$store.state.api + "updateWorkNew4", params)
  14020. .then((res) => {
  14021. this.$message({
  14022. message: "修改成功",
  14023. type: "success",
  14024. });
  14025. this.toolDetailIndex = i;
  14026. this.isUpdateToolDetail1 = true;
  14027. setTimeout(() => {
  14028. this.updateToolDetailInner = JSON.parse(
  14029. JSON.stringify(
  14030. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14031. this.taskCount
  14032. ].toolChoose[i].toolDetail
  14033. )
  14034. );
  14035. document.querySelector(".checkTextArea").focus();
  14036. }, 0);
  14037. this.getCourseDetail(2);
  14038. this.$forceUpdate();
  14039. })
  14040. .catch((err) => {
  14041. console.error(err);
  14042. });
  14043. }
  14044. },
  14045. jumpGj(i, j, k, l) {
  14046. this.refreshAssembly()
  14047. for (var z = 0; z < this.navList.length; z++) {
  14048. for (var q = 0; q < this.navList[z].task.length; q++) {
  14049. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  14050. this.navList[z].task[q].tool[w].isTool = false;
  14051. }
  14052. }
  14053. }
  14054. this.navList[i].task[j].tool[k].isTool =
  14055. !this.navList[i].task[j].tool[k].isTool;
  14056. var a = document.scrollingElement;
  14057. let target = document.querySelector(`#gj${k}`);
  14058. if (target) {
  14059. target.scrollIntoView(true);
  14060. setTimeout(() => {
  14061. a.scrollTop = a.scrollTop - 150;
  14062. }, 0);
  14063. }
  14064. this.navId = ""
  14065. let flag = this.courseType == i;
  14066. let flag2 = this.taskCount == j
  14067. if (l) {
  14068. this.courseType = i;
  14069. // this.navId = l;
  14070. this.taskCount = j;
  14071. this.selectPz();
  14072. this.getHomeWork();
  14073. this.getCourseDetail(2);
  14074. if(flag){
  14075. if(flag2){
  14076. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  14077. }else{
  14078. this.insertMemorandum(`选择<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  14079. }
  14080. }else{
  14081. this.insertMemorandum(`选择<span class="variable">阶段${i+1}${this.navList[i].dyName?':'+this.navList[i].dyName:''}</span>→<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  14082. }
  14083. }
  14084. // var b = this.$refs["bz" + k][0];
  14085. // a.scrollTop = b.offsetTop;
  14086. },
  14087. addTools2(i) {
  14088. if (i == 4) {
  14089. // this.openTools2(4);
  14090. this.$message.error("暂未开放");
  14091. return;
  14092. }
  14093. if (i == 45) {
  14094. // this.openTools2(45);
  14095. this.$message.error("暂未开放");
  14096. return;
  14097. }
  14098. if (i == 47) {
  14099. // this.openTools2(47);
  14100. this.$message.error("暂未开放");
  14101. return;
  14102. }
  14103. if (i == 49) {
  14104. // this.openTools2(49);
  14105. this.$message.error("暂未开放");
  14106. return;
  14107. }
  14108. if (i == 62) {
  14109. // this.openTools(itemTaskIndex, 62, toolIndex);
  14110. this.$message.error("暂未开放");
  14111. return;
  14112. }
  14113. if (i == 15) {
  14114. // this.openTools(itemTaskIndex, 15, toolIndex);
  14115. this.$message.error("暂未开放");
  14116. return;
  14117. }
  14118. if (i == 40) {
  14119. // this.openTools(itemTaskIndex, 40, toolIndex);
  14120. this.$message.error("暂未开放");
  14121. return;
  14122. }
  14123. if (i == 41) {
  14124. // this.openTools(itemTaskIndex, 41, toolIndex);
  14125. this.$message.error("暂未开放");
  14126. return;
  14127. }
  14128. if (i == 42) {
  14129. // this.openTools(itemTaskIndex, 42, toolIndex);
  14130. this.$message.error("暂未开放");
  14131. return;
  14132. }
  14133. if (this.checktoolArray.length > 0) {
  14134. if (this.checktoolArray.indexOf(i) != -1) {
  14135. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  14136. } else {
  14137. this.checktoolArray = [];
  14138. this.checktoolArray.push(i);
  14139. }
  14140. } else {
  14141. this.checktoolArray.push(i);
  14142. }
  14143. this.$forceUpdate();
  14144. },
  14145. jump() {
  14146. window.parent.postMessage({ tools: "43" }, "*");
  14147. },
  14148. getUpdateMore(f, checkboxList, searchTN, index) {
  14149. this.dialogVisibleMember = f;
  14150. this.checkboxList = checkboxList;
  14151. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  14152. this.plIndex = index;
  14153. },
  14154. setPlname(a) {
  14155. if (this.plworkFile.length) {
  14156. this.plworkFile[this.plIndex].username = a;
  14157. } else {
  14158. this.worksSName = a;
  14159. }
  14160. this.dialogVisibleMember = false;
  14161. },
  14162. previewImg(url,w) {
  14163. this.$hevueImgPreview(url);
  14164. if(w){
  14165. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14166. }
  14167. },
  14168. checkImg(list) {
  14169. if (!list.length) {
  14170. return;
  14171. }
  14172. this.$hevueImgPreview({
  14173. multiple: true, // 开启多图预览模式
  14174. imgList: list, // 需要预览的多图数组
  14175. });
  14176. },
  14177. change(val) {
  14178. console.log(val);
  14179. },
  14180. goTo(path) {
  14181. this.$router.push(path);
  14182. },
  14183. handlePictureCardPreview(url) {
  14184. this.dialogImageUrl = url;
  14185. this.pictureDialog = true;
  14186. },
  14187. clean(type) {
  14188. if (type == 1) {
  14189. this.studyJuri[0].cover.splice(0, 1);
  14190. } else if (type == 2) {
  14191. this.studyJuri[0].upVedio.splice(0, 1);
  14192. } else {
  14193. this.studyJuri[0].upFile.splice(0, 1);
  14194. }
  14195. },
  14196. clean2(index) {
  14197. this.plworkFile.splice(index, 1);
  14198. },
  14199. handleClose(done) {
  14200. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  14201. this.videoDetail.sources[0].src = "";
  14202. }
  14203. this.commentIndexJson = {};
  14204. done();
  14205. },
  14206. fullTools() {
  14207. this.full = !this.full;
  14208. },
  14209. imgChange(file, fileList, type) {
  14210. if (type == 1) {
  14211. var _tmp = this.studyJuri[0].cover;
  14212. } else if (type == 2) {
  14213. var _tmp = this.studyJuri[0].upVedio;
  14214. } else {
  14215. var _tmp = this.studyJuri[0].upFile;
  14216. }
  14217. this.noneBtnImg = _tmp.length >= 1;
  14218. },
  14219. setContent(bool) {
  14220. this.contentDialog = bool;
  14221. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  14222. document.querySelector(".workd_media").style.height = "650px";
  14223. } else if (document.querySelector(".workd_media")) {
  14224. document.querySelector(".workd_media").style.height = "auto";
  14225. }
  14226. },
  14227. setContent2(bool) {
  14228. this.mlDialog = bool;
  14229. if (
  14230. bool &&
  14231. this.contentDialog &&
  14232. document.querySelector(".workd_media")
  14233. ) {
  14234. document.querySelector(".workd_media").style.height = "650px";
  14235. } else if (document.querySelector(".workd_media")) {
  14236. document.querySelector(".workd_media").style.height = "auto";
  14237. }
  14238. },
  14239. openToolAll() {
  14240. this.toolDialogVisible = true;
  14241. },
  14242. addImg(e) {
  14243. var el = e.currentTarget;
  14244. // this.$message.success('触发上传')
  14245. el.getElementsByTagName("input")[0].click();
  14246. e.target.value = "";
  14247. },
  14248. addSelectAnswer() {
  14249. let params = [
  14250. {
  14251. uid: this.userid,
  14252. cid: this.id,
  14253. stage: this.courseType,
  14254. task: this.taskCount,
  14255. tool: this.toolindex,
  14256. content: this.selectAnswer.answer,
  14257. type: 7,
  14258. },
  14259. ];
  14260. this.ajax
  14261. .post(this.$store.state.api + "addCourseWorks", params)
  14262. .then((res) => {
  14263. this.$message({
  14264. message: "提交成功",
  14265. type: "success",
  14266. });
  14267. this.dialogVisibleSelect = false;
  14268. // this.selectAnswer = {};
  14269. this.selectSWorks();
  14270. this.selectStudent();
  14271. })
  14272. .catch((err) => {
  14273. this.$message.error("提交失败");
  14274. console.error(err);
  14275. });
  14276. },
  14277. addSelectAnswerTeacher() {
  14278. let params = [
  14279. {
  14280. uid: this.sStudent.userid,
  14281. cid: this.id,
  14282. stage: this.courseType,
  14283. task: this.taskCount,
  14284. tool: this.toolindex,
  14285. content: this.selectAnswer.answer,
  14286. type: 7,
  14287. },
  14288. ];
  14289. this.ajax
  14290. .post(this.$store.state.api + "addCourseWorks", params)
  14291. .then((res) => {
  14292. this.$message({
  14293. message: "提交成功",
  14294. type: "success",
  14295. });
  14296. this.dialogVisibleSelectTeacher = false;
  14297. // this.selectAnswer = {};
  14298. this.selectSWorks();
  14299. this.selectStudent();
  14300. })
  14301. .catch((err) => {
  14302. this.$message.error("提交失败");
  14303. console.error(err);
  14304. });
  14305. },
  14306. addSenWorks() {
  14307. for (var i = 0; i < this.sentenceList.length; i++) {
  14308. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  14309. if (
  14310. this.sentenceList[i].chooseSenList[j] == undefined ||
  14311. this.sentenceList[i].chooseSenList[j] == ""
  14312. ) {
  14313. this.$message.error("请将答案填写完整!");
  14314. return;
  14315. }
  14316. }
  14317. }
  14318. let params = [
  14319. {
  14320. uid: this.userid,
  14321. cid: this.id,
  14322. stage: this.courseType,
  14323. task: this.taskCount,
  14324. tool: this.toolindex,
  14325. content: JSON.stringify(this.sentenceList),
  14326. type: 9,
  14327. },
  14328. ];
  14329. this.ajax
  14330. .post(this.$store.state.api + "addCourseWorks", params)
  14331. .then((res) => {
  14332. this.$message({
  14333. message: "提交成功",
  14334. type: "success",
  14335. });
  14336. this.dialogVisibleSentence = false;
  14337. // this.selectAnswer = {};
  14338. this.selectSWorks();
  14339. this.selectStudent();
  14340. })
  14341. .catch((err) => {
  14342. this.$message.error("提交失败");
  14343. console.error(err);
  14344. });
  14345. },
  14346. addSenWorksTeacher() {
  14347. for (var i = 0; i < this.sentenceList.length; i++) {
  14348. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  14349. if (
  14350. this.sentenceList[i].chooseSenList[j] == undefined ||
  14351. this.sentenceList[i].chooseSenList[j] == ""
  14352. ) {
  14353. this.$message.error("请将答案填写完整!");
  14354. return;
  14355. }
  14356. }
  14357. }
  14358. let params = [
  14359. {
  14360. uid: this.sStudent.userid,
  14361. cid: this.id,
  14362. stage: this.courseType,
  14363. task: this.taskCount,
  14364. tool: this.toolindex,
  14365. content: JSON.stringify(this.sentenceList),
  14366. type: 9,
  14367. },
  14368. ];
  14369. this.ajax
  14370. .post(this.$store.state.api + "addCourseWorks", params)
  14371. .then((res) => {
  14372. this.$message({
  14373. message: "提交成功",
  14374. type: "success",
  14375. });
  14376. this.dialogVisibleSentenceTeacher = false;
  14377. // this.selectAnswer = {};
  14378. this.selectSWorks();
  14379. this.selectStudent();
  14380. })
  14381. .catch((err) => {
  14382. this.$message.error("提交失败");
  14383. console.error(err);
  14384. });
  14385. },
  14386. returnTableText() {
  14387. this.$confirm("确定还原此模板吗?", "提示", {
  14388. confirmButtonText: "确定",
  14389. cancelButtonText: "取消",
  14390. type: "warning",
  14391. })
  14392. .then(() => {
  14393. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  14394. })
  14395. .catch(() => {});
  14396. },
  14397. addTableWorks() {
  14398. let params = [
  14399. {
  14400. uid: this.userid,
  14401. cid: this.id,
  14402. stage: this.courseType,
  14403. task: this.taskCount,
  14404. tool: this.toolindex,
  14405. content: JSON.stringify(this.tableJson),
  14406. type: 10,
  14407. },
  14408. ];
  14409. this.ajax
  14410. .post(this.$store.state.api + "addCourseWorks", params)
  14411. .then((res) => {
  14412. this.$message({
  14413. message: "提交成功",
  14414. type: "success",
  14415. });
  14416. this.dialogVisibleTable = false;
  14417. // this.selectAnswer = {};
  14418. this.selectSWorks();
  14419. this.selectStudent();
  14420. })
  14421. .catch((err) => {
  14422. this.$message.error("提交失败");
  14423. console.error(err);
  14424. });
  14425. },
  14426. tableRowClassName({ row, rowIndex }) {
  14427. if ((rowIndex + 1) % 2 === 0) {
  14428. return "even_row";
  14429. } else {
  14430. return "";
  14431. }
  14432. },
  14433. addTableWorksTeacher() {
  14434. let params = [
  14435. {
  14436. uid: this.sStudent.userid,
  14437. cid: this.id,
  14438. stage: this.courseType,
  14439. task: this.taskCount,
  14440. tool: this.toolindex,
  14441. content: JSON.stringify(this.tableJson),
  14442. type: 10,
  14443. },
  14444. ];
  14445. this.ajax
  14446. .post(this.$store.state.api + "addCourseWorks", params)
  14447. .then((res) => {
  14448. this.$message({
  14449. message: "提交成功",
  14450. type: "success",
  14451. });
  14452. this.dialogVisibleTableTeacher = false;
  14453. // this.selectAnswer = {};
  14454. this.selectSWorks();
  14455. this.selectStudent();
  14456. })
  14457. .catch((err) => {
  14458. this.$message.error("提交失败");
  14459. console.error(err);
  14460. });
  14461. },
  14462. returnWordText() {
  14463. this.$confirm("确定还原此模板吗?", "提示", {
  14464. confirmButtonText: "确定",
  14465. cancelButtonText: "取消",
  14466. type: "warning",
  14467. })
  14468. .then(() => {
  14469. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  14470. })
  14471. .catch(() => {});
  14472. },
  14473. addWordWorks() {
  14474. let params = [
  14475. {
  14476. uid: this.userid,
  14477. cid: this.id,
  14478. stage: this.courseType,
  14479. task: this.taskCount,
  14480. tool: this.toolindex,
  14481. content: JSON.stringify(this.wordJson),
  14482. type: 13,
  14483. atool: 52,
  14484. },
  14485. ];
  14486. this.ajax
  14487. .post(this.$store.state.api + "addCourseWorks3-2", params)
  14488. .then((res) => {
  14489. this.$message({
  14490. message: "提交成功",
  14491. type: "success",
  14492. });
  14493. this.dialogVisibleWord = false;
  14494. // this.selectAnswer = {};
  14495. this.selectSWorks();
  14496. this.selectStudent();
  14497. })
  14498. .catch((err) => {
  14499. this.$message.error("提交失败");
  14500. console.error(err);
  14501. });
  14502. },
  14503. addWordWorksTeacher() {
  14504. let params = [
  14505. {
  14506. uid: this.sStudent.userid,
  14507. cid: this.id,
  14508. stage: this.courseType,
  14509. task: this.taskCount,
  14510. tool: this.toolindex,
  14511. content: JSON.stringify(this.wordJson),
  14512. type: 13,
  14513. atool: 52,
  14514. },
  14515. ];
  14516. this.ajax
  14517. .post(this.$store.state.api + "addCourseWorks3-2", params)
  14518. .then((res) => {
  14519. this.$message({
  14520. message: "提交成功",
  14521. type: "success",
  14522. });
  14523. this.dialogVisibleWordTeacher = false;
  14524. // this.selectAnswer = {};
  14525. this.selectSWorks();
  14526. this.selectStudent();
  14527. })
  14528. .catch((err) => {
  14529. this.$message.error("提交失败");
  14530. console.error(err);
  14531. });
  14532. },
  14533. addCourseWorks(i) {
  14534. var typesql;
  14535. if (this.fileType === 0) {
  14536. typesql = 1;
  14537. } else if (this.fileType === 1) {
  14538. typesql = 4;
  14539. } else if (this.fileType === 2) {
  14540. typesql = 5;
  14541. } else if (this.fileType === 3) {
  14542. typesql = 12;
  14543. }
  14544. if (!this.studyJuri[0].cover[0].url) {
  14545. this.$message.error("请上传文件");
  14546. return;
  14547. }
  14548. let params = [
  14549. {
  14550. uid: this.userid,
  14551. cid: this.id,
  14552. stage: this.courseType,
  14553. task: i,
  14554. tool: this.toolindex,
  14555. content: this.studyJuri[0].cover[0].url,
  14556. type: typesql,
  14557. },
  14558. ];
  14559. this.ajax
  14560. .post(this.$store.state.api + "addCourseWorksR", params)
  14561. .then((res) => {
  14562. this.$message({
  14563. message: "提交成功",
  14564. type: "success",
  14565. });
  14566. this.studyJuri[0].cover = [];
  14567. this.dialogVisible = false;
  14568. this.getCourseDetail(2);
  14569. })
  14570. .catch((err) => {
  14571. this.$message.error("提交失败");
  14572. console.error(err);
  14573. });
  14574. },
  14575. addCourseWorksPl(i) {
  14576. let _files = this.plworkFile;
  14577. var c = 1;
  14578. for (var k = 0; k < _files.length; k++) {
  14579. if (!_files[k].username) {
  14580. c = 2;
  14581. }
  14582. }
  14583. if (c == 2) {
  14584. this.$message.error("请填写学生姓名");
  14585. return;
  14586. }
  14587. let params = [
  14588. {
  14589. ateacher: this.userid,
  14590. cid: this.id,
  14591. stage: this.courseType,
  14592. task: i,
  14593. tool: this.toolindex,
  14594. content: JSON.stringify(_files),
  14595. },
  14596. ];
  14597. this.ajax
  14598. .post(this.$store.state.api + "addCourseWorksPl", params)
  14599. .then((res) => {
  14600. this.$message({
  14601. message: "提交成功",
  14602. type: "success",
  14603. });
  14604. this.plworkFile = [];
  14605. this.dialogVisiblePl = false;
  14606. this.getCourseDetail(2);
  14607. })
  14608. .catch((err) => {
  14609. this.$message.error("提交失败");
  14610. console.error(err);
  14611. });
  14612. },
  14613. addCourseWorks2(i) {
  14614. var typesql;
  14615. if (this.fileType === 0) {
  14616. typesql = 0;
  14617. } else if (this.fileType === 1) {
  14618. typesql = 1;
  14619. } else if (this.fileType === 2) {
  14620. typesql = 3;
  14621. } else if (this.fileType === 3) {
  14622. typesql = 12;
  14623. }
  14624. if (!this.studyJuri[0].cover[0].url) {
  14625. this.$message.error("请上传文件");
  14626. return;
  14627. }
  14628. let params = [
  14629. {
  14630. uid: this.userid,
  14631. cid: this.id,
  14632. stage: this.courseType,
  14633. task: i,
  14634. tool: this.toolindex,
  14635. content: JSON.stringify({
  14636. type: typesql,
  14637. groupIndex: this.groupIndex,
  14638. url: this.studyJuri[0].cover[0].url,
  14639. }),
  14640. type: 11,
  14641. atool: 49,
  14642. text: "",
  14643. },
  14644. ];
  14645. this.ajax
  14646. .post(this.$store.state.api + "addCourseWorks5", params)
  14647. .then((res) => {
  14648. this.$message({
  14649. message: "提交成功",
  14650. type: "success",
  14651. });
  14652. this.studyJuri[0].cover = [];
  14653. this.dialogVisibleGroupWork = false;
  14654. this.getCourseDetail(2);
  14655. })
  14656. .catch((err) => {
  14657. this.$message.error("提交失败");
  14658. console.error(err);
  14659. });
  14660. },
  14661. addEnglishWork() {
  14662. this.myAnList = this.$refs['engJson'].myAnswerList;
  14663. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  14664. this.$message.error("请输入作文标题和正文!");
  14665. return;
  14666. }
  14667. let params = [
  14668. {
  14669. uid: this.userid,
  14670. cid: this.id,
  14671. stage: this.courseType,
  14672. task: this.taskCount,
  14673. tool: this.englishToolIndex,
  14674. content: JSON.stringify(this.myAnList),
  14675. type: 16,
  14676. atool: 69,
  14677. text: "",
  14678. },
  14679. ];
  14680. this.ajax
  14681. .post(this.$store.state.api + "addCourseWorks5", params)
  14682. .then((res) => {
  14683. this.$message({
  14684. message: "提交成功",
  14685. type: "success",
  14686. });
  14687. this.myAnList = {};
  14688. this.englishList = {};
  14689. this.englishToolIndex = 0;
  14690. this.engDialogVisible = false;
  14691. this.selectSWorks();
  14692. this.selectStudent();
  14693. })
  14694. .catch((err) => {
  14695. this.$message.error("提交失败");
  14696. console.error(err);
  14697. });
  14698. },
  14699. addCourseWorksGong(i, data, tool) {
  14700. let params = [
  14701. {
  14702. uid: this.userid,
  14703. cid: this.id,
  14704. stage: this.courseType,
  14705. task: this.taskCount,
  14706. tool: i,
  14707. content: data,
  14708. type: 12,
  14709. atool: tool,
  14710. text: "",
  14711. },
  14712. ];
  14713. this.ajax
  14714. .post(this.$store.state.api + "addCourseWorks5", params)
  14715. .then((res) => {
  14716. this.$message({
  14717. message: "提交成功",
  14718. type: "success",
  14719. });
  14720. this.studyJuri[0].cover = [];
  14721. this.selectSWorks();
  14722. this.selectStudent();
  14723. })
  14724. .catch((err) => {
  14725. this.$message.error("提交失败");
  14726. console.error(err);
  14727. });
  14728. },
  14729. addCourseWorksGongTeacher(i, data, tool) {
  14730. let params = [
  14731. {
  14732. uid: this.sStudent.userid,
  14733. cid: this.id,
  14734. stage: this.courseType,
  14735. task: this.taskCount,
  14736. tool: i,
  14737. content: data,
  14738. type: 12,
  14739. atool: tool,
  14740. text: "",
  14741. },
  14742. ];
  14743. this.ajax
  14744. .post(this.$store.state.api + "addCourseWorks5", params)
  14745. .then((res) => {
  14746. this.$message({
  14747. message: "提交成功",
  14748. type: "success",
  14749. });
  14750. this.studyJuri[0].cover = [];
  14751. this.dialogVisibleWorks = false;
  14752. this.selectSWorks();
  14753. this.selectStudent();
  14754. })
  14755. .catch((err) => {
  14756. this.$message.error("提交失败");
  14757. console.error(err);
  14758. });
  14759. },
  14760. addCourseWorksGongPl(i, data, tool, type) {
  14761. let params = [
  14762. {
  14763. uid: this.sStudent.userid,
  14764. cid: this.id,
  14765. stage: this.courseType,
  14766. task: this.taskCount,
  14767. tool: i,
  14768. content: data,
  14769. type: type,
  14770. atool: tool,
  14771. text: "",
  14772. },
  14773. ];
  14774. this.ajax
  14775. .post(this.$store.state.api + "addCourseWorks5", params)
  14776. .then((res) => {
  14777. this.$message({
  14778. message: "提交成功",
  14779. type: "success",
  14780. });
  14781. this.studyJuri[0].cover = [];
  14782. this.dialogVisibleWorks = false;
  14783. this.selectSWorks();
  14784. this.selectStudent();
  14785. })
  14786. .catch((err) => {
  14787. this.$message.error("提交失败");
  14788. console.error(err);
  14789. });
  14790. },
  14791. addCourseWorksTeacher(i) {
  14792. var typesql;
  14793. if (this.sTool == 32) {
  14794. this.addCourseWorksGongTeacher(
  14795. this.toolindex,
  14796. this.studyJuri[0].cover[0].url,
  14797. this.sTool
  14798. );
  14799. return;
  14800. }
  14801. if (this.fileType === 0) {
  14802. typesql = 1;
  14803. } else if (this.fileType === 1) {
  14804. typesql = 4;
  14805. } else if (this.fileType === 2) {
  14806. typesql = 5;
  14807. } else if (this.fileType === 3) {
  14808. typesql = 12;
  14809. }
  14810. if (this.sTool == 50) {
  14811. this.addCourseWorksGongPl(
  14812. this.toolindex,
  14813. this.studyJuri[0].cover[0].url,
  14814. this.sTool,
  14815. typesql
  14816. );
  14817. return;
  14818. }
  14819. if (!this.studyJuri[0].cover[0].url) {
  14820. this.$message.error("请上传文件");
  14821. return;
  14822. }
  14823. let params = [
  14824. {
  14825. uid: this.sStudent.userid,
  14826. cid: this.id,
  14827. stage: this.courseType,
  14828. task: i,
  14829. tool: this.toolindex,
  14830. content: this.studyJuri[0].cover[0].url,
  14831. type: typesql,
  14832. ateacher: this.userid,
  14833. },
  14834. ];
  14835. this.ajax
  14836. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14837. .then((res) => {
  14838. this.$message({
  14839. message: "提交成功",
  14840. type: "success",
  14841. });
  14842. this.studyJuri[0].cover = [];
  14843. this.dialogVisibleWorks = false;
  14844. this.getCourseDetail(2);
  14845. })
  14846. .catch((err) => {
  14847. this.$message.error("提交失败");
  14848. console.error(err);
  14849. });
  14850. },
  14851. selectUploadStudent(type) {
  14852. const loading = this.$loading.service({
  14853. background: "rgba(255, 255, 255, 0.7)",
  14854. target: document.body,
  14855. });
  14856. let params = {
  14857. cid: this.uploadCid,
  14858. oid: this.oid,
  14859. cn: "",
  14860. };
  14861. this.ajax
  14862. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14863. .then((res) => {
  14864. loading.close();
  14865. var studentK = [];
  14866. if (this.isWorksS[this.toolindex].length > 0) {
  14867. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14868. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14869. }
  14870. studentK = studentK.join(",");
  14871. }
  14872. this.uploadStudentJuri = res.data[0].filter((el) => {
  14873. return studentK.indexOf(el.userid) == -1;
  14874. });
  14875. if (this.worksSName && this.worksSid) {
  14876. this.uploadStudentJuri.push({
  14877. userid: this.worksSid,
  14878. name: this.worksSName,
  14879. });
  14880. }
  14881. if (type == 1) {
  14882. this.plworkFile = [];
  14883. this.dialogVisibleSname = true;
  14884. } else if (type == 2) {
  14885. this.dialogVisiblePl = true;
  14886. }
  14887. })
  14888. .catch((err) => {
  14889. loading.close();
  14890. console.error(err);
  14891. });
  14892. },
  14893. selectPickStudent() {
  14894. const loading = this.$loading.service({
  14895. background: "rgba(255, 255, 255, 0.7)",
  14896. target: document.body,
  14897. });
  14898. let params = {
  14899. cid: this.uploadCid,
  14900. oid: this.oid,
  14901. cn: "",
  14902. };
  14903. this.ajax
  14904. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14905. .then((res) => {
  14906. loading.close();
  14907. this.uploadStudentJuri = res.data[0];
  14908. this.dialogVisiblePickPeople = true;
  14909. })
  14910. .catch((err) => {
  14911. loading.close();
  14912. console.error(err);
  14913. });
  14914. },
  14915. arrayToArray(arrayo, arrayt) {
  14916. let array1 = arrayo;
  14917. let array2 = arrayt;
  14918. let commonElements = [];
  14919. for (let i = 0; i < array1.length; i++) {
  14920. for (let j = 0; j < array2.length; j++) {
  14921. if (array1[i] === array2[j]) {
  14922. commonElements.push(array1[i]);
  14923. }
  14924. }
  14925. }
  14926. return commonElements;
  14927. },
  14928. selectWorksStudent() {
  14929. let params = {
  14930. oid: this.oid,
  14931. cid: this.courseDetail.juri,
  14932. };
  14933. this.ajax
  14934. .get(this.$store.state.api + "selectWorksStudent", params)
  14935. .then((res) => {
  14936. var a = res.data[0];
  14937. for (var i = 0; i < this.isWorksS.length; i++) {
  14938. this.noWorksS[i] = [];
  14939. var studentK = [];
  14940. if (this.isWorksS[i].length > 0) {
  14941. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14942. studentK.push(this.isWorksS[i][z].uid);
  14943. }
  14944. studentK = studentK.join(",");
  14945. for (var j = 0; j < a.length; j++) {
  14946. if (studentK.indexOf(a[j].userid) == -1) {
  14947. if (this.tcid) {
  14948. // a[j].classid.indexOf(this.tcid) != -1
  14949. if (
  14950. this.arrayToArray(
  14951. a[j].classid.split(","),
  14952. this.tcid.split(",")
  14953. ).length
  14954. ) {
  14955. this.noWorksS[i].push({
  14956. student: a[j].name,
  14957. userid: a[j].userid,
  14958. });
  14959. }
  14960. } else {
  14961. this.noWorksS[i].push({
  14962. student: a[j].name,
  14963. userid: a[j].userid,
  14964. });
  14965. }
  14966. }
  14967. }
  14968. } else {
  14969. for (var k = 0; k < a.length; k++) {
  14970. if (this.tcid) {
  14971. if (
  14972. this.arrayToArray(
  14973. a[k].classid.split(","),
  14974. this.tcid.split(",")
  14975. ).length
  14976. ) {
  14977. this.noWorksS[i].push({
  14978. student: a[k].name,
  14979. userid: a[k].userid,
  14980. });
  14981. }
  14982. } else {
  14983. this.noWorksS[i].push({
  14984. student: a[k].name,
  14985. userid: a[k].userid,
  14986. });
  14987. }
  14988. }
  14989. }
  14990. }
  14991. this.$forceUpdate();
  14992. if (
  14993. Object.keys(this.commentDetail).length &&
  14994. Object.keys(this.commentIndexJson).length &&
  14995. !this.dialogVisibleScore && !this.dialogVisibleENScore
  14996. ) {
  14997. let a = 1;
  14998. let c = this.commentIndexJson;
  14999. if (
  15000. this.commentIndexJson.gindex ||
  15001. this.commentIndexJson.gindex === 0
  15002. ) {
  15003. for (
  15004. var i = 0;
  15005. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  15006. i++
  15007. ) {
  15008. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  15009. groupA: for (var k = 0; k < _el.length; k++) {
  15010. let el = _el[k];
  15011. if (el.wid == this.commentDetail.wid) {
  15012. a = 2;
  15013. this.commentOther(
  15014. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  15015. this.commentIndexJson.toolIndex,
  15016. k,
  15017. this.commentIndexJson.gindex
  15018. );
  15019. break groupA;
  15020. }
  15021. }
  15022. }
  15023. if (a === 1) {
  15024. this.commentDetail = [];
  15025. this.commentIndexJson = {};
  15026. this.commentDialogVisible = false;
  15027. this.$message("此作业已被删除");
  15028. }
  15029. } else {
  15030. if (this.isGroup && this.commentIndexJson.gid) {
  15031. groupA: for (
  15032. var i = 0;
  15033. i < this.courseGroup.group.length;
  15034. i++
  15035. ) {
  15036. let _group = this.courseGroup.group[i];
  15037. if (_group.id == this.commentIndexJson.gid) {
  15038. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  15039. for (var k = 0; k < _el2.length; k++) {
  15040. let el2 = _el2[k];
  15041. if (el2.wid == this.commentDetail.wid) {
  15042. a = 2;
  15043. this.commentOther(
  15044. _el2[k],
  15045. this.commentIndexJson.toolIndex,
  15046. k,
  15047. null,
  15048. this.commentIndexJson.gid
  15049. );
  15050. break groupA;
  15051. }
  15052. }
  15053. }
  15054. }
  15055. }
  15056. if (a == 1) {
  15057. for (
  15058. var i = 0;
  15059. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  15060. i++
  15061. ) {
  15062. let el =
  15063. this.worksStudent[this.commentIndexJson.toolIndex][i];
  15064. if (el.wid == this.commentDetail.wid) {
  15065. a = 2;
  15066. this.commentOther(
  15067. this.worksStudent[this.commentIndexJson.toolIndex][i],
  15068. this.commentIndexJson.toolIndex,
  15069. i
  15070. );
  15071. break;
  15072. }
  15073. }
  15074. }
  15075. if (a === 1) {
  15076. this.commentDetail = [];
  15077. this.commentIndexJson = {};
  15078. this.commentDialogVisible = false;
  15079. this.$message("此作业已被删除");
  15080. }
  15081. }
  15082. }
  15083. })
  15084. .catch((err) => {
  15085. console.error(err);
  15086. });
  15087. },
  15088. selectStudent() {
  15089. //学生查看自己作业
  15090. let params = {
  15091. uid: this.userid,
  15092. cid: this.id,
  15093. s: this.courseType,
  15094. t: this.taskCount,
  15095. };
  15096. this.ajax
  15097. .get(this.$store.state.api + "selectStudentWorks", params)
  15098. .then((res) => {
  15099. var a =
  15100. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15101. this.taskCount
  15102. ].toolChoose;
  15103. var b = res.data[0];
  15104. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15105. var y = [
  15106. "AVI",
  15107. "NAVI",
  15108. "MPEG",
  15109. "ASF",
  15110. "MOV",
  15111. "WMV",
  15112. "3GP",
  15113. "RM",
  15114. "RMVB",
  15115. "FLV",
  15116. "F4V",
  15117. "H.264",
  15118. "H.265",
  15119. "REAL VIDEO",
  15120. "MKV",
  15121. "WebM",
  15122. "HDDVD",
  15123. "MP4",
  15124. "MPG",
  15125. "M4V",
  15126. "MGV",
  15127. "OGV",
  15128. "QTM",
  15129. "STR",
  15130. "AMC",
  15131. "DVX",
  15132. "EVO",
  15133. "DAT",
  15134. "OGG",
  15135. "OGM",
  15136. ];
  15137. for (var i = 0; i < a.length; i++) {
  15138. this.workStudent[i] = [];
  15139. for (var j = 0; j < b.length; j++) {
  15140. if (i == b[j].tool) {
  15141. if (
  15142. (b[j].type == 1 ||
  15143. b[j].type == 4 ||
  15144. b[j].type == 5 ||
  15145. b[j].type == 6 ||
  15146. b[j].type == 12 ||
  15147. b[j].type == 7) &&
  15148. a[i].tool[0] != 15 &&
  15149. a[i].tool[0] != 4 &&
  15150. a[i].tool[0] != 45 &&
  15151. a[i].tool[0] != 50 &&
  15152. a[i].tool[0] != 32 &&
  15153. a[i].tool[0] != 57 &&
  15154. a[i].tool[0] != 52 &&
  15155. a[i].tool[0] != 69
  15156. ) {
  15157. if (
  15158. c.indexOf(
  15159. b[j].content
  15160. .split(".")
  15161. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15162. ) != -1 &&
  15163. a[i].tool[0] == 16 &&
  15164. b[j].atool != 50
  15165. ) {
  15166. this.workStudent[i].push({
  15167. works: b[j].content,
  15168. sName: b[j].name,
  15169. score: b[j].score,
  15170. img: b[j].img,
  15171. type: 1,
  15172. time: b[j].time,
  15173. userid: b[j].userid,
  15174. wid: b[j].id,
  15175. });
  15176. } else if (
  15177. y.indexOf(
  15178. b[j].content
  15179. .split(".")
  15180. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15181. ) != -1 &&
  15182. a[i].tool[0] == 16 &&
  15183. b[j].atool != 50
  15184. ) {
  15185. this.workStudent[i].push({
  15186. userid: b[j].userid,
  15187. wid: b[j].id,
  15188. works: b[j].content,
  15189. sName: b[j].name,
  15190. score: b[j].score,
  15191. img: b[j].img,
  15192. type: 3,
  15193. time: b[j].time,
  15194. });
  15195. } else if (b[j].type == 6 && b[j].atool != 50) {
  15196. this.workStudent[i].push({
  15197. userid: b[j].userid,
  15198. wid: b[j].id,
  15199. works: b[j].content,
  15200. sName: b[j].name,
  15201. score: b[j].score,
  15202. img: b[j].img,
  15203. type: 4,
  15204. time: b[j].time,
  15205. });
  15206. } else if (b[j].type == 7 && b[j].atool != 50) {
  15207. this.workStudent[i].push({
  15208. userid: b[j].userid,
  15209. wid: b[j].id,
  15210. works: b[j].content,
  15211. sName: b[j].name,
  15212. score: b[j].score,
  15213. img: b[j].img,
  15214. type: 5,
  15215. time: b[j].time,
  15216. });
  15217. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15218. this.workStudent[i].push({
  15219. works: b[j].content,
  15220. sName: b[j].name,
  15221. score: b[j].score,
  15222. img: b[j].img,
  15223. type: 12,
  15224. time: b[j].time,
  15225. userid: b[j].userid,
  15226. wid: b[j].id,
  15227. });
  15228. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15229. this.workStudent[i].push({
  15230. works: b[j].content,
  15231. sName: b[j].name,
  15232. score: b[j].score,
  15233. img: b[j].img,
  15234. type: 0,
  15235. time: b[j].time,
  15236. userid: b[j].userid,
  15237. wid: b[j].id,
  15238. });
  15239. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15240. this.workStudent[i].push({
  15241. works: b[j].content,
  15242. sName: b[j].name,
  15243. score: b[j].score,
  15244. img: b[j].img,
  15245. type: 0,
  15246. time: b[j].time,
  15247. userid: b[j].userid,
  15248. wid: b[j].id,
  15249. });
  15250. }
  15251. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15252. this.workStudent[i].push({
  15253. works: b[j].content,
  15254. sName: b[j].name,
  15255. score: b[j].score,
  15256. img: b[j].img,
  15257. type: 2,
  15258. time: b[j].time,
  15259. userid: b[j].userid,
  15260. wid: b[j].id,
  15261. });
  15262. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15263. //问卷
  15264. this.workStudent[i].push({
  15265. works: b[j].content,
  15266. sName: b[j].name,
  15267. score: b[j].score,
  15268. img: b[j].img,
  15269. type: 2,
  15270. time: b[j].time,
  15271. userid: b[j].userid,
  15272. wid: b[j].id,
  15273. });
  15274. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15275. //选择题
  15276. this.workStudent[i].push({
  15277. works: b[j].content,
  15278. sName: b[j].name,
  15279. score: b[j].score,
  15280. img: b[j].img,
  15281. type: 8,
  15282. time: b[j].time,
  15283. userid: b[j].userid,
  15284. wid: b[j].id,
  15285. });
  15286. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15287. //选择题
  15288. this.workStudent[i].push({
  15289. works: b[j].content,
  15290. sName: b[j].name,
  15291. score: b[j].score,
  15292. img: b[j].img,
  15293. type: 9,
  15294. time: b[j].time,
  15295. userid: b[j].userid,
  15296. wid: b[j].id,
  15297. });
  15298. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15299. //选择题
  15300. this.workStudent[i].push({
  15301. works: b[j].content,
  15302. sName: b[j].name,
  15303. score: b[j].score,
  15304. img: b[j].img,
  15305. type: 10,
  15306. time: b[j].time,
  15307. userid: b[j].userid,
  15308. wid: b[j].id,
  15309. });
  15310. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15311. //选择题
  15312. this.workStudent[i].push({
  15313. works: b[j].content,
  15314. sName: b[j].name,
  15315. score: b[j].score,
  15316. img: b[j].img,
  15317. type: 13,
  15318. time: b[j].time,
  15319. userid: b[j].userid,
  15320. wid: b[j].id,
  15321. });
  15322. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  15323. //选择题
  15324. this.workStudent[i].push({
  15325. works: b[j].content,
  15326. sName: b[j].name,
  15327. score: b[j].score,
  15328. img: b[j].img,
  15329. type: 12,
  15330. time: b[j].time,
  15331. userid: b[j].userid,
  15332. wid: b[j].id,
  15333. });
  15334. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  15335. //选择题
  15336. this.workStudent[i].push({
  15337. works: b[j].content,
  15338. sName: b[j].name,
  15339. score: b[j].score,
  15340. img: b[j].img,
  15341. type: 12,
  15342. time: b[j].time,
  15343. userid: b[j].userid,
  15344. wid: b[j].id,
  15345. });
  15346. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  15347. //选择题
  15348. this.workStudent[i].push({
  15349. works: b[j].content,
  15350. sName: b[j].name,
  15351. score: b[j].score,
  15352. img: b[j].img,
  15353. type: 15,
  15354. time: b[j].time,
  15355. userid: b[j].userid,
  15356. wid: b[j].id,
  15357. });
  15358. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15359. //英语写作
  15360. this.workStudent[i].push({
  15361. works: b[j].content,
  15362. sName: b[j].name,
  15363. score: b[j].score,
  15364. img: b[j].img,
  15365. type: 16,
  15366. time: b[j].time,
  15367. userid: b[j].userid,
  15368. wid: b[j].id,
  15369. aiCode: b[j].aiCode,
  15370. teacherCode: b[j].teacherCode
  15371. });
  15372. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15373. //英语写作
  15374. this.workStudent[i].push({
  15375. works: b[j].content,
  15376. sName: b[j].name,
  15377. score: b[j].score,
  15378. img: b[j].img,
  15379. type: 17,
  15380. time: b[j].time,
  15381. userid: b[j].userid,
  15382. wid: b[j].id,
  15383. });
  15384. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15385. //英语口语
  15386. this.workStudent[i].push({
  15387. works: b[j].content,
  15388. sName: b[j].name,
  15389. score: b[j].score,
  15390. img: b[j].img,
  15391. type: 14,
  15392. time: b[j].time,
  15393. userid: b[j].userid,
  15394. wid: b[j].id,
  15395. });
  15396. }
  15397. }
  15398. }
  15399. }
  15400. })
  15401. .catch((err) => {
  15402. console.error(err);
  15403. });
  15404. },
  15405. openVideo(w) {
  15406. this.videoDetail = {};
  15407. this.playerOptions1.sources[0].src = w.works;
  15408. this.videoDetail = this.playerOptions1;
  15409. this.videoVisible = true;
  15410. },
  15411. isLikes(wid, uid, t, c, isLikes,sName) {
  15412. if (isLikes == false) {
  15413. let params = [
  15414. {
  15415. wid: wid,
  15416. lid: uid,
  15417. t: t,
  15418. c: c,
  15419. },
  15420. ];
  15421. this.ajax
  15422. .post(this.$store.state.api + "insertComment", params)
  15423. .then((res) => {
  15424. this.$message({
  15425. message: "点赞成功",
  15426. type: "success",
  15427. });
  15428. this.selectSWorks();
  15429. this.selectStudent();
  15430. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  15431. })
  15432. .catch((err) => {
  15433. this.$message.error("点赞失败");
  15434. console.error(err);
  15435. });
  15436. } else {
  15437. let params = {
  15438. wid: wid,
  15439. lid: uid,
  15440. type: t,
  15441. };
  15442. this.ajax
  15443. .get(this.$store.state.api + "deleteComment", params)
  15444. .then((res) => {
  15445. this.$message({
  15446. message: "取消点赞成功",
  15447. type: "success",
  15448. });
  15449. this.selectSWorks();
  15450. this.selectStudent();
  15451. })
  15452. .catch((err) => {
  15453. console.error(err);
  15454. });
  15455. }
  15456. },
  15457. deleteComment(wid) {
  15458. this.$confirm("确定删除此评论吗?", "提示", {
  15459. confirmButtonText: "确定",
  15460. cancelButtonText: "取消",
  15461. type: "warning",
  15462. })
  15463. .then(() => {
  15464. let params = {
  15465. id: wid,
  15466. };
  15467. this.ajax
  15468. .get(this.$store.state.api + "deleteComment2", params)
  15469. .then((res) => {
  15470. this.$message({
  15471. message: "删除评论成功",
  15472. type: "success",
  15473. });
  15474. this.selectSWorks();
  15475. this.selectStudent();
  15476. })
  15477. .catch((err) => {
  15478. console.error(err);
  15479. });
  15480. })
  15481. .catch(() => {});
  15482. },
  15483. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  15484. this.commentIndexJson = {
  15485. toolIndex: toolIndex,
  15486. wIndex: wIndex,
  15487. gindex: gindex,
  15488. gid: gid,
  15489. };
  15490. this.commentDetail = [];
  15491. this.commentDialogVisible = true;
  15492. this.commentDetail = w;
  15493. if (w.works && w.type == 1) {
  15494. // this.pptImgUrl = "";
  15495. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15496. if (
  15497. a.indexOf(
  15498. w.works
  15499. .split(".")
  15500. [w.works.split(".").length - 1].toLocaleUpperCase()
  15501. ) != -1
  15502. ) {
  15503. let _uuurl = await this.checkLink(w.works);
  15504. this.pptImgUrl =
  15505. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  15506. this.showPDF = false;
  15507. } else if (
  15508. w.works
  15509. .split(".")
  15510. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15511. ) {
  15512. this.pptImgUrl = w.works;
  15513. this.showPDF = true;
  15514. }
  15515. } else if (w.works && w.type == 3) {
  15516. this.videoDetail = {};
  15517. this.playerOptions1.sources[0].src = w.works;
  15518. this.videoDetail = this.playerOptions1;
  15519. // this.videoVisible = true;
  15520. } else if (w.works && w.type == 4) {
  15521. this.eScore = JSON.parse(w.works);
  15522. this.rateJson =
  15523. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15524. this.taskCount
  15525. ].toolChoose[toolIndex].rateJson;
  15526. } else if (w.works && w.type == 10) {
  15527. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  15528. } else if (w.works && w.type == 13) {
  15529. this.wordJson =
  15530. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15531. this.taskCount
  15532. ].toolChoose[toolIndex].wordJson;
  15533. }
  15534. },
  15535. async openScore(w, index) {
  15536. this.wScore = 0;
  15537. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  15538. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  15539. this.commentDetail = [];
  15540. if(w.type == 17){
  15541. this.dialogVisibleENScore = true;
  15542. }else{
  15543. this.dialogVisibleScore = true;
  15544. }
  15545. this.commentDetail = w;
  15546. if (w.works && w.type == 1) {
  15547. this.pptImgUrl = "";
  15548. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15549. if (
  15550. a.indexOf(
  15551. w.works
  15552. .split(".")
  15553. [w.works.split(".").length - 1].toLocaleUpperCase()
  15554. ) != -1
  15555. ) {
  15556. let _uuurl = await this.checkLink(w.works);
  15557. this.pptImgUrl =
  15558. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  15559. this.showPDF = false;
  15560. } else if (
  15561. w.works
  15562. .split(".")
  15563. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15564. ) {
  15565. this.pptImgUrl = w.works;
  15566. this.showPDF = true;
  15567. }
  15568. } else if (w.works && w.type == 3) {
  15569. this.videoDetail = {};
  15570. this.playerOptions1.sources[0].src = w.works;
  15571. this.videoDetail = this.playerOptions1;
  15572. }else if(w.type == 17){
  15573. let englishVoiceJson = {}
  15574. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15575. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  15576. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15577. .toolChoose[index].englishVoiceJson
  15578. : {};
  15579. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  15580. }
  15581. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15582. },
  15583. addComment(wid, uid, t,detail) {
  15584. if (this.commentText == "") {
  15585. this.$message.error("请输入评论");
  15586. return;
  15587. }
  15588. let params2 = [
  15589. {
  15590. wid: wid,
  15591. lid: uid,
  15592. t: t,
  15593. },
  15594. ];
  15595. this.ajax
  15596. .post(this.$store.state.api + "getComment", params2)
  15597. .then((res) => {
  15598. if (res.data[0].length > 0) {
  15599. this.$message.error("一个作业只能评论一条");
  15600. } else {
  15601. let params = [
  15602. {
  15603. wid: wid,
  15604. lid: uid,
  15605. t: t,
  15606. c: this.commentText,
  15607. },
  15608. ];
  15609. this.ajax
  15610. .post(this.$store.state.api + "insertComment", params)
  15611. .then((res) => {
  15612. this.$message({
  15613. message: "评论成功",
  15614. type: "success",
  15615. });
  15616. this.commentText = "";
  15617. this.selectSWorks();
  15618. this.selectStudent();
  15619. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  15620. })
  15621. .catch((err) => {
  15622. this.$message.error("评论失败");
  15623. console.error(err);
  15624. });
  15625. }
  15626. })
  15627. .catch((err) => {
  15628. // this.$message.error("评论失败");
  15629. console.error(err);
  15630. });
  15631. },
  15632. scoreWork(wid,sName) {
  15633. if (this.wScore == 0) {
  15634. this.$message.error("请评分");
  15635. return;
  15636. }
  15637. let params = [
  15638. {
  15639. wid: wid,
  15640. score: JSON.stringify({
  15641. wScore: this.wScore,
  15642. detail: this.scoreDetail,
  15643. }),
  15644. },
  15645. ];
  15646. this.ajax
  15647. .post(this.$store.state.api + "scoreWork", params)
  15648. .then((res) => {
  15649. this.$message({
  15650. message: "评分成功",
  15651. type: "success",
  15652. });
  15653. this.wScore = 0;
  15654. this.scoreDetail = "";
  15655. this.dialogVisibleScore = false;
  15656. this.selectSWorks();
  15657. this.selectStudent();
  15658. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  15659. })
  15660. .catch((err) => {
  15661. this.$message.error("评分失败");
  15662. console.error(err);
  15663. });
  15664. },
  15665. openXz(w, i) {
  15666. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15667. .taskJson[this.taskCount].toolChoose[i].selectJson
  15668. ? JSON.parse(
  15669. JSON.stringify(
  15670. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15671. this.taskCount
  15672. ].toolChoose[i].selectJson
  15673. )
  15674. )
  15675. : { url: "", select: [], answer: [] };
  15676. var a = w.works.split(",");
  15677. for (var k = 0; k < a.length; k++) {
  15678. a[k] = parseInt(a[k]);
  15679. }
  15680. this.selectAnswer = { answer: a, stu: w.sName };
  15681. this.isSelect = true;
  15682. this.dialogVisibleSelect = true;
  15683. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15684. },
  15685. openSen(w, i) {
  15686. this.sentenceList1 = JSON.parse(w.works);
  15687. this.sentenceList1.stuName = w.sName;
  15688. this.dialogVisibleSentence1 = true;
  15689. },
  15690. openPj(w, toolindex) {
  15691. this.isStar = true;
  15692. this.eScore = JSON.parse(w);
  15693. this.rateJson =
  15694. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15695. this.taskCount
  15696. ].toolChoose[toolindex].rateJson;
  15697. this.studentEvalDialogVisible = true;
  15698. },
  15699. openEnglishEva(id,i){
  15700. let params = {
  15701. wid: id
  15702. };
  15703. this.ajax
  15704. .get(this.$store.state.api + "selectEngWork", params)
  15705. .then((res) => {
  15706. this.evaEngJson.message = res.data[0][0];
  15707. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  15708. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15709. .toolChoose[i].englishList;
  15710. this.engEvaDialogVisible = true;
  15711. })
  15712. .catch((err) => {
  15713. console.error(err);
  15714. });
  15715. },
  15716. deleteWorks(id) {
  15717. this.$confirm("确定删除此作业吗?", "提示", {
  15718. confirmButtonText: "确定",
  15719. cancelButtonText: "取消",
  15720. type: "warning",
  15721. })
  15722. .then(() => {
  15723. let params = [
  15724. {
  15725. id: id
  15726. },
  15727. ];
  15728. this.ajax
  15729. .post(this.$store.state.api + "deleteCourseWork", params)
  15730. .then((res) => {
  15731. this.$message({
  15732. message: "删除成功",
  15733. type: "success",
  15734. });
  15735. this.selectStudent();
  15736. this.selectSWorks();
  15737. this.selectSLook();
  15738. })
  15739. .catch((err) => {
  15740. this.$message.error("网络异常");
  15741. console.error(err);
  15742. });
  15743. })
  15744. .catch(() => {});
  15745. },
  15746. deleteWorksTwo(w,stage,task) {
  15747. // let mk = `markSco${toolIndex}${wIndex}`
  15748. // console.log(this.$refs[mk][0].homeworkVal)
  15749. // let wid = this.$refs[mk][0].homeworkVal.id
  15750. // console.log('wid',wid);
  15751. this.$confirm("确定删除此作业吗?", "提示", {
  15752. confirmButtonText: "确定",
  15753. cancelButtonText: "取消",
  15754. type: "warning",
  15755. })
  15756. .then(() => {
  15757. let params = [
  15758. {
  15759. id: w.wid,
  15760. cid: this.id,
  15761. uid:w.userid,
  15762. s:stage,
  15763. t:task
  15764. },
  15765. ];
  15766. // return console.log(params)
  15767. this.ajax
  15768. .post(this.$store.state.api + "deleteCourseWorkTwo2", params)
  15769. .then((res) => {
  15770. this.$message({
  15771. message: "删除成功",
  15772. type: "success",
  15773. });
  15774. this.selectStudent();
  15775. this.selectSWorks();
  15776. this.selectSLook();
  15777. })
  15778. .catch((err) => {
  15779. this.$message.error("网络异常");
  15780. console.error(err);
  15781. });
  15782. })
  15783. .catch(() => {});
  15784. },
  15785. noIsAi(){
  15786. this.$message.info('您的评价维度未设置ai评分')
  15787. },
  15788. selectSWorks(gindex) {
  15789. //教师查看全部作业
  15790. let params = {
  15791. cid: this.id,
  15792. s: this.courseType,
  15793. t: this.taskCount,
  15794. };
  15795. this.ajax
  15796. .get(this.$store.state.api + "selectSWorks", params)
  15797. .then((res) => {
  15798. var a =
  15799. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15800. this.taskCount
  15801. ].toolChoose;
  15802. var b = res.data[0];
  15803. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15804. var y = [
  15805. "AVI",
  15806. "NAVI",
  15807. "MPEG",
  15808. "ASF",
  15809. "MOV",
  15810. "WMV",
  15811. "3GP",
  15812. "RM",
  15813. "RMVB",
  15814. "FLV",
  15815. "F4V",
  15816. "H.264",
  15817. "H.265",
  15818. "REAL VIDEO",
  15819. "MKV",
  15820. "WebM",
  15821. "HDDVD",
  15822. "MP4",
  15823. "MPG",
  15824. "M4V",
  15825. "MGV",
  15826. "OGV",
  15827. "QTM",
  15828. "STR",
  15829. "AMC",
  15830. "DVX",
  15831. "EVO",
  15832. "DAT",
  15833. "OGG",
  15834. "OGM",
  15835. ];
  15836. var d = res.data[1];
  15837. var e = res.data[2];
  15838. var f = res.data[3];
  15839. let _worksStudent = [];
  15840. var _worksStudent2 = [];
  15841. for (var i = 0; i < a.length; i++) {
  15842. _worksStudent[i] = [];
  15843. _worksStudent2[i] = [];
  15844. if (
  15845. !this.isCloseList[i] ||
  15846. this.isCloseList[i].isClose == undefined
  15847. ) {
  15848. this.isCloseList[i] = { isClose: 0 };
  15849. }
  15850. this.groupStudent[i] = [];
  15851. this.groupStudentUid[i] = [];
  15852. if (this.isGroup) {
  15853. for (
  15854. var groupI = 0;
  15855. groupI < this.courseGroup.group.length;
  15856. groupI++
  15857. ) {
  15858. this.courseGroup.group[groupI].works[i] = [];
  15859. }
  15860. }
  15861. this.isWorksS[i] = [];
  15862. this.checkJson[i] = [];
  15863. if (a[i].tool[0] == 49) {
  15864. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15865. this.groupStudent[i][gA] = [];
  15866. this.groupStudentUid[i][gA] = [];
  15867. _worksStudent[i][gA] = [];
  15868. _worksStudent2[i][gA] = [];
  15869. this.isCloseList[i][gA] = [];
  15870. for (var g = 0; g < f.length; g++) {
  15871. if (
  15872. f[g].ttype == 2 &&
  15873. this.tcid &&
  15874. this.arrayToArray(
  15875. (f[g].classid ? f[g].classid.split(",") : []),
  15876. this.tcid.split(",")
  15877. ).length == 0
  15878. ) {
  15879. continue;
  15880. }
  15881. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15882. (f[g].classid ? f[g].classid.split(",") : []),
  15883. this.tcid.split(",")
  15884. ).length !== 0 || this.arrayToArray(
  15885. (f[g].classid ? f[g].classid.split(",") : []),
  15886. this.classId ? this.classId.split(",") : []
  15887. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15888. this.groupStudent[i][gA].push(f[g]);
  15889. this.groupStudentUid[i][gA].push(f[g].userid);
  15890. }
  15891. }
  15892. }
  15893. this.$forceUpdate();
  15894. }
  15895. for (var j = 0; j < b.length; j++) {
  15896. if (
  15897. b[j].ttype == 2 &&
  15898. this.tcid &&
  15899. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15900. .length == 0
  15901. ) {
  15902. continue;
  15903. }
  15904. var likesCount = 0;
  15905. var commentCount = 0;
  15906. var isLikes = false;
  15907. var commentJson = [];
  15908. var likeJson = [];
  15909. var data = b[j];
  15910. if (i == b[j].tool) {
  15911. if (data.type == 2 && a[i].tool[0] == 4) {
  15912. // if(JSON.parse(data.content)[0].anwer){
  15913. var checkL =
  15914. JSON.parse(data.content)[0].anwer instanceof Array
  15915. ? JSON.parse(data.content)[0].anwer
  15916. : JSON.parse(data.content)[0].anwer.split(",");
  15917. for (var z = 0; z < checkL.length; z++) {
  15918. if (!this.checkJson[i][z]) {
  15919. this.checkJson[i].push({
  15920. checkCount: [],
  15921. checkPerson: [],
  15922. rightPerson: [],
  15923. });
  15924. }
  15925. if (!this.checkJson[i][z].checkCount.length) {
  15926. this.checkJson[i][z].checkCount = [];
  15927. let _askItemCount = JSON.parse(data.content)[0].askJson
  15928. .askJson[z].askItem;
  15929. for (var aic = 0; aic < _askItemCount; aic++) {
  15930. this.checkJson[i][z].checkCount.push(0);
  15931. }
  15932. }
  15933. if (checkL[z] instanceof Array) {
  15934. if (
  15935. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15936. checkL[z].sort().join(",")
  15937. ) {
  15938. this.checkJson[i][z].rightPerson.push(data.name);
  15939. }
  15940. for (var q = 0; q < checkL[z].length; q++) {
  15941. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15942. ? this.checkJson[i][z].checkPerson[
  15943. parseInt(checkL[z][q])
  15944. ].push(data.name)
  15945. : (this.checkJson[i][z].checkPerson[
  15946. parseInt(checkL[z][q])
  15947. ] = [data.name]);
  15948. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15949. ? this.checkJson[i][z].checkCount[
  15950. parseInt(checkL[z][q])
  15951. ]++
  15952. : (this.checkJson[i][z].checkCount[
  15953. parseInt(checkL[z][q])
  15954. ] = 1);
  15955. }
  15956. } else {
  15957. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  15958. this.checkJson[i][z].rightPerson.push(data.name);
  15959. }
  15960. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  15961. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  15962. ? this.checkJson[i][z].checkPerson[
  15963. parseInt(checkL[z])
  15964. ].push(data.name)
  15965. : (this.checkJson[i][z].checkPerson[
  15966. parseInt(checkL[z])
  15967. ] = [data.name]);
  15968. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  15969. ? this.checkJson[i][z].checkCount[
  15970. parseInt(checkL[z])
  15971. ]++
  15972. : (this.checkJson[i][z].checkCount[
  15973. parseInt(checkL[z])
  15974. ] = 1);
  15975. }
  15976. }
  15977. }
  15978. } else if (data.type == 8 && a[i].tool[0] == 45) {
  15979. var checkL = JSON.parse(data.content)[0].anwer;
  15980. for (var z = 0; z < checkL.length; z++) {
  15981. if (!this.checkJson[i][z]) {
  15982. this.checkJson[i].push({
  15983. checkCount: [],
  15984. checkPerson: [],
  15985. rightPerson: [],
  15986. });
  15987. }
  15988. if (!this.checkJson[i][z].checkCount.length) {
  15989. this.checkJson[i][z].checkCount = [];
  15990. let _askItemCount = JSON.parse(data.content)[0].testJson
  15991. .testJson[z].testItem;
  15992. for (var aic = 0; aic < _askItemCount; aic++) {
  15993. this.checkJson[i][z].checkCount.push(0);
  15994. }
  15995. }
  15996. if (checkL[z] instanceof Array) {
  15997. if (
  15998. JSON.parse(data.content)[0]
  15999. .testJson.testJson[z].answer.sort()
  16000. .join(",") == checkL[z].sort().join(",")
  16001. ) {
  16002. this.checkJson[i][z].rightPerson.push(data.name);
  16003. }
  16004. for (var q = 0; q < checkL[z].length; q++) {
  16005. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  16006. ? this.checkJson[i][z].checkPerson[
  16007. parseInt(checkL[z][q])
  16008. ].push(data.name)
  16009. : (this.checkJson[i][z].checkPerson[
  16010. parseInt(checkL[z][q])
  16011. ] = [data.name]);
  16012. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  16013. ? this.checkJson[i][z].checkCount[
  16014. parseInt(checkL[z][q])
  16015. ]++
  16016. : (this.checkJson[i][z].checkCount[
  16017. parseInt(checkL[z][q])
  16018. ] = 1);
  16019. }
  16020. } else {
  16021. if (
  16022. JSON.parse(data.content)[0].testJson.testJson[z]
  16023. .answer == checkL[z]
  16024. ) {
  16025. this.checkJson[i][z].rightPerson.push(data.name);
  16026. }
  16027. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  16028. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  16029. ? this.checkJson[i][z].checkPerson[
  16030. parseInt(checkL[z])
  16031. ].push(data.name)
  16032. : (this.checkJson[i][z].checkPerson[
  16033. parseInt(checkL[z])
  16034. ] = [data.name]);
  16035. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  16036. ? this.checkJson[i][z].checkCount[
  16037. parseInt(checkL[z])
  16038. ]++
  16039. : (this.checkJson[i][z].checkCount[
  16040. parseInt(checkL[z])
  16041. ] = 1);
  16042. }
  16043. }
  16044. }
  16045. } else if (data.type == 9 && a[i].tool[0] == 47) {
  16046. var checkL = JSON.parse(data.content);
  16047. for (var z = 0; z < checkL.length; z++) {
  16048. if (!this.checkJson[i][z]) {
  16049. this.checkJson[i].push({
  16050. checkCount: [],
  16051. checkPerson: [],
  16052. rightPerson: [],
  16053. });
  16054. }
  16055. this.checkJson[i][z].checkPerson.push(data.name);
  16056. if (
  16057. checkL[z].chooseSenList.toString() ==
  16058. checkL[z].rightAnswer.toString()
  16059. ) {
  16060. this.checkJson[i][z].rightPerson.push(data.name);
  16061. }
  16062. }
  16063. }
  16064. for (var k = 0; k < d.length; k++) {
  16065. //点赞
  16066. if (d[k].workId == b[j].id) {
  16067. likesCount++;
  16068. likeJson.push(d[k])
  16069. if (d[k].likesId == this.userid) {
  16070. isLikes = true;
  16071. }
  16072. }
  16073. }
  16074. for (var l = 0; l < e.length; l++) {
  16075. //评论
  16076. if (e[l].workId == b[j].id) {
  16077. if (e[l].comment != "") {
  16078. commentCount++;
  16079. commentJson.push({
  16080. commentText: e[l].comment,
  16081. commentTime: e[l].commentTime,
  16082. commentPeople: e[l].commentPeople,
  16083. userid: e[l].userid,
  16084. wid: e[l].id,
  16085. });
  16086. }
  16087. }
  16088. }
  16089. if (
  16090. (b[j].type == 1 ||
  16091. b[j].type == 4 ||
  16092. b[j].type == 5 ||
  16093. b[j].type == 6 ||
  16094. b[j].type == 12 ||
  16095. b[j].type == 7) &&
  16096. a[i].tool[0] != 15 &&
  16097. a[i].tool[0] != 4 &&
  16098. a[i].tool[0] != 45 &&
  16099. a[i].tool[0] != 50 &&
  16100. a[i].tool[0] != 32 &&
  16101. a[i].tool[0] != 57 &&
  16102. a[i].tool[0] != 52
  16103. ) {
  16104. if (
  16105. c.indexOf(
  16106. b[j].content
  16107. .split(".")
  16108. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  16109. ) != -1 &&
  16110. a[i].tool[0] == 16 &&
  16111. b[j].atool != 50
  16112. ) {
  16113. let _works = {
  16114. userid: b[j].userid,
  16115. ateacher: b[j].ateacher,
  16116. wid: b[j].id,
  16117. works: b[j].content,
  16118. sName: b[j].name,
  16119. type: 1,
  16120. ttype:b[j].ttype,
  16121. time: b[j].time,
  16122. score: b[j].score,
  16123. img: b[j].img,
  16124. likesCount: likesCount,
  16125. commentCount: commentCount,
  16126. isLikes: isLikes,
  16127. commentJson: commentJson,
  16128. likeJson:likeJson
  16129. };
  16130. if (this.isGroup) {
  16131. let isGw = 1;
  16132. for (
  16133. var groupI = 0;
  16134. groupI < this.courseGroup.group.length;
  16135. groupI++
  16136. ) {
  16137. let gid = this.courseGroup.group[groupI].id;
  16138. if (
  16139. this.courseGroupStudentUid[gid].indexOf(
  16140. b[j].userid
  16141. ) != -1
  16142. ) {
  16143. isGw = 2;
  16144. this.courseGroup.group[groupI].works[i].push(_works);
  16145. break;
  16146. }
  16147. }
  16148. if (isGw == 1) {
  16149. _worksStudent[i].push(_works);
  16150. }
  16151. } else {
  16152. _worksStudent[i].push(_works);
  16153. }
  16154. _worksStudent2[i].push(_works);
  16155. this.isWorksS[i].push({
  16156. uid: b[j].userid,
  16157. sName: b[j].name,
  16158. });
  16159. } else if (
  16160. y.indexOf(
  16161. b[j].content
  16162. .split(".")
  16163. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  16164. ) != -1 &&
  16165. a[i].tool[0] == 16 &&
  16166. b[j].atool != 50
  16167. ) {
  16168. let _works = {
  16169. userid: b[j].userid,
  16170. ateacher: b[j].ateacher,
  16171. wid: b[j].id,
  16172. works: b[j].content,
  16173. sName: b[j].name,
  16174. type: 3,
  16175. ttype:b[j].ttype,
  16176. time: b[j].time,
  16177. score: b[j].score,
  16178. img: b[j].img,
  16179. likesCount: likesCount,
  16180. commentCount: commentCount,
  16181. isLikes: isLikes,
  16182. commentJson: commentJson,
  16183. likeJson:likeJson
  16184. };
  16185. if (this.isGroup) {
  16186. let isGw = 1;
  16187. for (
  16188. var groupI = 0;
  16189. groupI < this.courseGroup.group.length;
  16190. groupI++
  16191. ) {
  16192. let gid = this.courseGroup.group[groupI].id;
  16193. if (
  16194. this.courseGroupStudentUid[gid].indexOf(
  16195. b[j].userid
  16196. ) != -1
  16197. ) {
  16198. isGw = 2;
  16199. this.courseGroup.group[groupI].works[i].push(_works);
  16200. break;
  16201. }
  16202. }
  16203. if (isGw == 1) {
  16204. _worksStudent[i].push(_works);
  16205. }
  16206. } else {
  16207. _worksStudent[i].push(_works);
  16208. }
  16209. _worksStudent2[i].push(_works);
  16210. this.isWorksS[i].push({
  16211. uid: b[j].userid,
  16212. sName: b[j].name,
  16213. });
  16214. } else if (b[j].type == 6 && b[j].atool != 50) {
  16215. let _works = {
  16216. userid: b[j].userid,
  16217. ateacher: b[j].ateacher,
  16218. wid: b[j].id,
  16219. works: b[j].content,
  16220. sName: b[j].name,
  16221. type: 4,
  16222. ttype:b[j].ttype,
  16223. time: b[j].time,
  16224. score: b[j].score,
  16225. img: b[j].img,
  16226. likesCount: likesCount,
  16227. commentCount: commentCount,
  16228. isLikes: isLikes,
  16229. commentJson: commentJson,
  16230. likeJson:likeJson
  16231. };
  16232. _worksStudent[i].push(_works);
  16233. _worksStudent2[i].push(_works);
  16234. this.isWorksS[i].push({
  16235. uid: b[j].userid,
  16236. sName: b[j].name,
  16237. });
  16238. } else if (b[j].type == 7 && b[j].atool != 50) {
  16239. let _work = {
  16240. userid: b[j].userid,
  16241. ateacher: b[j].ateacher,
  16242. wid: b[j].id,
  16243. works: b[j].content,
  16244. sName: b[j].name,
  16245. type: 5,
  16246. ttype:b[j].ttype,
  16247. time: b[j].time,
  16248. score: b[j].score,
  16249. img: b[j].img,
  16250. likesCount: likesCount,
  16251. commentCount: commentCount,
  16252. isLikes: isLikes,
  16253. commentJson: commentJson,
  16254. likeJson:likeJson
  16255. };
  16256. _worksStudent[i].push(_work);
  16257. _worksStudent2[i].push(_work);
  16258. this.isWorksS[i].push({
  16259. uid: b[j].userid,
  16260. sName: b[j].name,
  16261. });
  16262. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  16263. let _works = {
  16264. userid: b[j].userid,
  16265. ateacher: b[j].ateacher,
  16266. wid: b[j].id,
  16267. works: b[j].content,
  16268. sName: b[j].name,
  16269. type: 12,
  16270. ttype:b[j].ttype,
  16271. time: b[j].time,
  16272. score: b[j].score,
  16273. img: b[j].img,
  16274. likesCount: likesCount,
  16275. commentCount: commentCount,
  16276. isLikes: isLikes,
  16277. commentJson: commentJson,
  16278. likeJson:likeJson
  16279. };
  16280. if (this.isGroup) {
  16281. let isGw = 1;
  16282. for (
  16283. var groupI = 0;
  16284. groupI < this.courseGroup.group.length;
  16285. groupI++
  16286. ) {
  16287. let gid = this.courseGroup.group[groupI].id;
  16288. if (
  16289. this.courseGroupStudentUid[gid].indexOf(
  16290. b[j].userid
  16291. ) != -1
  16292. ) {
  16293. isGw = 2;
  16294. this.courseGroup.group[groupI].works[i].push(_works);
  16295. break;
  16296. }
  16297. }
  16298. if (isGw == 1) {
  16299. _worksStudent[i].push(_works);
  16300. }
  16301. } else {
  16302. _worksStudent[i].push(_works);
  16303. }
  16304. _worksStudent2[i].push(_works);
  16305. this.isWorksS[i].push({
  16306. uid: b[j].userid,
  16307. sName: b[j].name,
  16308. });
  16309. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  16310. let _works = {
  16311. userid: b[j].userid,
  16312. ateacher: b[j].ateacher,
  16313. wid: b[j].id,
  16314. works: b[j].content,
  16315. sName: b[j].name,
  16316. type: 0,
  16317. ttype:b[j].ttype,
  16318. time: b[j].time,
  16319. score: b[j].score,
  16320. img: b[j].img,
  16321. likesCount: likesCount,
  16322. commentCount: commentCount,
  16323. isLikes: isLikes,
  16324. commentJson: commentJson,
  16325. likeJson:likeJson
  16326. };
  16327. if (this.isGroup) {
  16328. let isGw = 1;
  16329. for (
  16330. var groupI = 0;
  16331. groupI < this.courseGroup.group.length;
  16332. groupI++
  16333. ) {
  16334. let gid = this.courseGroup.group[groupI].id;
  16335. if (
  16336. this.courseGroupStudentUid[gid].indexOf(
  16337. b[j].userid
  16338. ) != -1
  16339. ) {
  16340. isGw = 2;
  16341. this.courseGroup.group[groupI].works[i].push(_works);
  16342. break;
  16343. }
  16344. }
  16345. if (isGw == 1) {
  16346. _worksStudent[i].push(_works);
  16347. }
  16348. } else {
  16349. _worksStudent[i].push(_works);
  16350. }
  16351. _worksStudent2[i].push(_works);
  16352. this.isWorksS[i].push({
  16353. uid: b[j].userid,
  16354. sName: b[j].name,
  16355. });
  16356. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  16357. let _works = {
  16358. userid: b[j].userid,
  16359. ateacher: b[j].ateacher,
  16360. wid: b[j].id,
  16361. works: b[j].content,
  16362. sName: b[j].name,
  16363. type: 0,
  16364. ttype:b[j].ttype,
  16365. time: b[j].time,
  16366. score: b[j].score,
  16367. img: b[j].img,
  16368. likesCount: likesCount,
  16369. commentCount: commentCount,
  16370. isLikes: isLikes,
  16371. commentJson: commentJson,
  16372. likeJson:likeJson
  16373. };
  16374. if (this.isGroup) {
  16375. let isGw = 1;
  16376. for (
  16377. var groupI = 0;
  16378. groupI < this.courseGroup.group.length;
  16379. groupI++
  16380. ) {
  16381. let gid = this.courseGroup.group[groupI].id;
  16382. if (
  16383. this.courseGroupStudentUid[gid].indexOf(
  16384. b[j].userid
  16385. ) != -1
  16386. ) {
  16387. isGw = 2;
  16388. this.courseGroup.group[groupI].works[i].push(_works);
  16389. break;
  16390. }
  16391. }
  16392. if (isGw == 1) {
  16393. _worksStudent[i].push(_works);
  16394. }
  16395. } else {
  16396. _worksStudent[i].push(_works);
  16397. }
  16398. _worksStudent2[i].push(_works);
  16399. this.isWorksS[i].push({
  16400. uid: b[j].userid,
  16401. sName: b[j].name,
  16402. });
  16403. }
  16404. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  16405. let _works = {
  16406. userid: b[j].userid,
  16407. ateacher: b[j].ateacher,
  16408. wid: b[j].id,
  16409. works: b[j].content,
  16410. sName: b[j].name,
  16411. type: 2,
  16412. ttype:b[j].ttype,
  16413. time: b[j].time,
  16414. score: b[j].score,
  16415. img: b[j].img,
  16416. likesCount: likesCount,
  16417. commentCount: commentCount,
  16418. isLikes: isLikes,
  16419. commentJson: commentJson,
  16420. likeJson:likeJson
  16421. };
  16422. if (this.isGroup) {
  16423. let isGw = 1;
  16424. for (
  16425. var groupI = 0;
  16426. groupI < this.courseGroup.group.length;
  16427. groupI++
  16428. ) {
  16429. let gid = this.courseGroup.group[groupI].id;
  16430. if (
  16431. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  16432. -1
  16433. ) {
  16434. isGw = 2;
  16435. this.courseGroup.group[groupI].works[i].push(_works);
  16436. break;
  16437. }
  16438. }
  16439. if (isGw == 1) {
  16440. _worksStudent[i].push(_works);
  16441. }
  16442. } else {
  16443. _worksStudent[i].push(_works);
  16444. }
  16445. _worksStudent2[i].push(_works);
  16446. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16447. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  16448. //问卷
  16449. let _work = {
  16450. userid: b[j].userid,
  16451. ateacher: b[j].ateacher,
  16452. wid: b[j].id,
  16453. works: b[j].content,
  16454. sName: b[j].name,
  16455. type: 2,
  16456. ttype:b[j].ttype,
  16457. time: b[j].time,
  16458. score: b[j].score,
  16459. img: b[j].img,
  16460. likesCount: likesCount,
  16461. commentCount: commentCount,
  16462. isLikes: isLikes,
  16463. commentJson: commentJson,
  16464. likeJson:likeJson
  16465. };
  16466. _worksStudent[i].push(_work);
  16467. _worksStudent2[i].push(_work);
  16468. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16469. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  16470. //选择题
  16471. let _work = {
  16472. userid: b[j].userid,
  16473. ateacher: b[j].ateacher,
  16474. wid: b[j].id,
  16475. works: b[j].content,
  16476. sName: b[j].name,
  16477. type: 8,
  16478. ttype:b[j].ttype,
  16479. time: b[j].time,
  16480. score: b[j].score,
  16481. img: b[j].img,
  16482. likesCount: likesCount,
  16483. commentCount: commentCount,
  16484. isLikes: isLikes,
  16485. commentJson: commentJson,
  16486. likeJson:likeJson
  16487. };
  16488. _worksStudent[i].push(_work);
  16489. _worksStudent2[i].push(_work);
  16490. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16491. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  16492. //选择题
  16493. let _work = {
  16494. userid: b[j].userid,
  16495. ateacher: b[j].ateacher,
  16496. wid: b[j].id,
  16497. works: b[j].content,
  16498. sName: b[j].name,
  16499. type: 9,
  16500. ttype:b[j].ttype,
  16501. time: b[j].time,
  16502. score: b[j].score,
  16503. img: b[j].img,
  16504. likesCount: likesCount,
  16505. commentCount: commentCount,
  16506. isLikes: isLikes,
  16507. commentJson: commentJson,
  16508. likeJson:likeJson
  16509. };
  16510. _worksStudent[i].push(_work);
  16511. _worksStudent2[i].push(_work);
  16512. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16513. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  16514. //选择题
  16515. let _work = {
  16516. userid: b[j].userid,
  16517. ateacher: b[j].ateacher,
  16518. wid: b[j].id,
  16519. works: b[j].content,
  16520. sName: b[j].name,
  16521. type: 10,
  16522. ttype:b[j].ttype,
  16523. time: b[j].time,
  16524. score: b[j].score,
  16525. img: b[j].img,
  16526. likesCount: likesCount,
  16527. commentCount: commentCount,
  16528. isLikes: isLikes,
  16529. commentJson: commentJson,
  16530. likeJson:likeJson
  16531. };
  16532. _worksStudent[i].push(_work);
  16533. _worksStudent2[i].push(_work);
  16534. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16535. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  16536. //选择题
  16537. let _work = {
  16538. userid: b[j].userid,
  16539. ateacher: b[j].ateacher,
  16540. wid: b[j].id,
  16541. works: b[j].content,
  16542. sName: b[j].name,
  16543. type: 13,
  16544. ttype:b[j].ttype,
  16545. time: b[j].time,
  16546. score: b[j].score,
  16547. img: b[j].img,
  16548. likesCount: likesCount,
  16549. commentCount: commentCount,
  16550. isLikes: isLikes,
  16551. commentJson: commentJson,
  16552. likeJson:likeJson
  16553. };
  16554. _worksStudent[i].push(_work);
  16555. _worksStudent2[i].push(_work);
  16556. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16557. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  16558. //选择题
  16559. let _work = {
  16560. userid: b[j].userid,
  16561. ateacher: b[j].ateacher,
  16562. wid: b[j].id,
  16563. works: b[j].content,
  16564. sName: b[j].name,
  16565. type: 16,
  16566. ttype:b[j].ttype,
  16567. time: b[j].time,
  16568. score: b[j].score,
  16569. img: b[j].img,
  16570. likesCount: likesCount,
  16571. commentCount: commentCount,
  16572. isLikes: isLikes,
  16573. commentJson: commentJson,
  16574. aiCode: b[j].aiCode,
  16575. teacherCode: b[j].teacherCode,
  16576. likeJson:likeJson
  16577. };
  16578. _worksStudent[i].push(_work);
  16579. _worksStudent2[i].push(_work);
  16580. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16581. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  16582. //选择题
  16583. let _work = {
  16584. userid: b[j].userid,
  16585. ateacher: b[j].ateacher,
  16586. wid: b[j].id,
  16587. works: b[j].content,
  16588. sName: b[j].name,
  16589. type: 17,
  16590. ttype:b[j].ttype,
  16591. time: b[j].time,
  16592. score: b[j].score,
  16593. img: b[j].img,
  16594. likesCount: likesCount,
  16595. commentCount: commentCount,
  16596. isLikes: isLikes,
  16597. commentJson: commentJson,
  16598. likeJson:likeJson
  16599. };
  16600. _worksStudent[i].push(_work);
  16601. _worksStudent2[i].push(_work);
  16602. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16603. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  16604. //交互视频
  16605. let _work = {
  16606. userid: b[j].userid,
  16607. ateacher: b[j].ateacher,
  16608. wid: b[j].id,
  16609. works: b[j].content,
  16610. sName: b[j].name,
  16611. type: 14,
  16612. ttype:b[j].ttype,
  16613. time: b[j].time,
  16614. score: b[j].score,
  16615. img: b[j].img,
  16616. likesCount: likesCount,
  16617. commentCount: commentCount,
  16618. isLikes: isLikes,
  16619. commentJson: commentJson,
  16620. likeJson:likeJson
  16621. };
  16622. _worksStudent[i].push(_work);
  16623. _worksStudent2[i].push(_work);
  16624. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16625. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  16626. let _gindex = JSON.parse(b[j].content);
  16627. if (
  16628. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  16629. b[j].userid
  16630. ) != -1
  16631. ) {
  16632. let _work = {
  16633. userid: b[j].userid,
  16634. ateacher: b[j].ateacher,
  16635. wid: b[j].id,
  16636. works: _gindex.url,
  16637. sName: b[j].name,
  16638. type: _gindex.type,
  16639. ttype:b[j].ttype,
  16640. time: b[j].time,
  16641. score: b[j].score,
  16642. img: b[j].img,
  16643. likesCount: likesCount,
  16644. commentCount: commentCount,
  16645. isLikes: isLikes,
  16646. commentJson: commentJson,
  16647. likeJson:likeJson
  16648. };
  16649. _worksStudent[i][_gindex.groupIndex].push(_work);
  16650. _worksStudent2[i][_gindex.groupIndex].push(_work);
  16651. }
  16652. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16653. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  16654. let _work = {
  16655. userid: b[j].userid,
  16656. ateacher: b[j].ateacher,
  16657. wid: b[j].id,
  16658. works: b[j].content,
  16659. sName: b[j].name ? b[j].name : b[j].userid,
  16660. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  16661. ttype:b[j].ttype,
  16662. time: b[j].time,
  16663. score: b[j].score,
  16664. img: b[j].img,
  16665. likesCount: likesCount,
  16666. commentCount: commentCount,
  16667. isLikes: isLikes,
  16668. commentJson: commentJson,
  16669. likeJson:likeJson
  16670. };
  16671. _worksStudent[i].push(_work);
  16672. _worksStudent2[i].push(_work);
  16673. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16674. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  16675. let _work = {
  16676. userid: b[j].userid,
  16677. ateacher: b[j].ateacher,
  16678. wid: b[j].id,
  16679. works: b[j].content,
  16680. sName: b[j].name ? b[j].name : b[j].userid,
  16681. type: 12,
  16682. ttype:b[j].ttype,
  16683. time: b[j].time,
  16684. score: b[j].score,
  16685. img: b[j].img,
  16686. likesCount: likesCount,
  16687. commentCount: commentCount,
  16688. isLikes: isLikes,
  16689. commentJson: commentJson,
  16690. likeJson:likeJson
  16691. };
  16692. _worksStudent[i].push(_work);
  16693. _worksStudent2[i].push(_work);
  16694. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16695. } else if (
  16696. a[i].tool[0] == 57 &&
  16697. b[j].atool == 57 &&
  16698. b[j].type == 12
  16699. ) {
  16700. let _work = {
  16701. userid: b[j].userid,
  16702. ateacher: b[j].ateacher,
  16703. wid: b[j].id,
  16704. works: b[j].content,
  16705. sName: b[j].name ? b[j].name : b[j].userid,
  16706. type: 12,
  16707. ttype:b[j].ttype,
  16708. time: b[j].time,
  16709. score: b[j].score,
  16710. img: b[j].img,
  16711. likesCount: likesCount,
  16712. commentCount: commentCount,
  16713. isLikes: isLikes,
  16714. commentJson: commentJson,
  16715. likeJson:likeJson
  16716. };
  16717. _worksStudent[i].push(_work);
  16718. _worksStudent2[i].push(_work);
  16719. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16720. } else if (
  16721. a[i].tool[0] == 57 &&
  16722. b[j].atool == 57 &&
  16723. b[j].type == 15
  16724. ) {
  16725. let _work = {
  16726. userid: b[j].userid,
  16727. ateacher: b[j].ateacher,
  16728. wid: b[j].id,
  16729. works: b[j].content,
  16730. sName: b[j].name ? b[j].name : b[j].userid,
  16731. type: 15,
  16732. ttype:b[j].ttype,
  16733. time: b[j].time,
  16734. score: b[j].score,
  16735. img: b[j].img,
  16736. likesCount: likesCount,
  16737. commentCount: commentCount,
  16738. isLikes: isLikes,
  16739. commentJson: commentJson,
  16740. likeJson:likeJson
  16741. };
  16742. _worksStudent[i].push(_work);
  16743. _worksStudent2[i].push(_work);
  16744. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16745. }
  16746. }
  16747. }
  16748. if (_worksStudent[i] && _worksStudent[i].length) {
  16749. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  16750. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16751. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16752. var scoreA = parseFloat(jscoreA);
  16753. var scoreB = parseFloat(jscoreB);
  16754. if (scoreA == scoreB) {
  16755. return b.likesCount - a.likesCount;
  16756. }
  16757. return scoreB - scoreA;
  16758. });
  16759. if (this.isGroup) {
  16760. for (
  16761. var groupI = 0;
  16762. groupI < this.courseGroup.group.length;
  16763. groupI++
  16764. ) {
  16765. this.courseGroup.group[groupI].works[i] =
  16766. this.courseGroup.group[groupI].works[i].sort(function (
  16767. a,
  16768. b
  16769. ) {
  16770. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16771. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16772. var scoreA = parseFloat(jscoreA);
  16773. var scoreB = parseFloat(jscoreB);
  16774. if (scoreA == scoreB) {
  16775. return b.likesCount - a.likesCount;
  16776. }
  16777. return scoreB - scoreA;
  16778. });
  16779. }
  16780. }
  16781. }
  16782. }
  16783. this.timeWorkList = _worksStudent2;
  16784. for (var i = 0; i < a.length; i++) {
  16785. for (var j = 0; j < b.length; j++) {
  16786. var data = b[j];
  16787. if (i == b[j].tool) {
  16788. if (data.type == 2 || data.type == 8) {
  16789. for (var z = 0; z < this.checkJson[i].length; z++) {
  16790. this.checkJson[i][z].checkPerent = [];
  16791. this.checkJson[i][z].right = Math.round(
  16792. (this.checkJson[i][z].rightPerson.length /
  16793. parseInt(_worksStudent[i].length)) *
  16794. 100
  16795. );
  16796. let aaaa = this.checkJson[i][z];
  16797. for (
  16798. var k = 0;
  16799. k < this.checkJson[i][z].checkCount.length;
  16800. k++
  16801. ) {
  16802. this.checkJson[i][z].checkPerent.push(
  16803. Math.round(
  16804. (this.checkJson[i][z].checkCount[k] /
  16805. parseInt(_worksStudent[i].length)) *
  16806. 100
  16807. )
  16808. );
  16809. }
  16810. }
  16811. } else if (data.type == 9) {
  16812. for (var z = 0; z < this.checkJson[i].length; z++) {
  16813. this.checkJson[i][z].checkPerent = [];
  16814. this.checkJson[i][z].right = Math.round(
  16815. (this.checkJson[i][z].rightPerson.length /
  16816. this.checkJson[i][z].checkPerson.length) *
  16817. 100
  16818. );
  16819. }
  16820. }
  16821. }
  16822. }
  16823. }
  16824. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16825. this.joinGroup(gindex);
  16826. }
  16827. this.worksStudent = _worksStudent;
  16828. if( JSON.stringify(this.worksStudentCopy) != JSON.stringify(this.worksStudent)){
  16829. this.worksStudentCopy=this.worksStudent
  16830. this.AIloading=[]
  16831. this.loopLoading=[]
  16832. this.worksStudent.forEach((e,index)=>{
  16833. this.loopLoading.push({loading:false})
  16834. this.AIloading.push([])
  16835. e.forEach(k=>{
  16836. this.AIloading[index].push({loading:false,sco:0})
  16837. })
  16838. })
  16839. this.refreshAssembly()
  16840. }
  16841. this.selectWorksStudent();
  16842. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16843. this.$nextTick(()=>{
  16844. setTimeout(()=>{
  16845. setTimeout(()=>{
  16846. this.panToolHeight('tool-'+ci);
  16847. }, 500)
  16848. }, 0)
  16849. })
  16850. }
  16851. })
  16852. .catch((err) => {
  16853. console.error(err);
  16854. });
  16855. },
  16856. pngToWhiteBg(file) {
  16857. const _file = file;
  16858. let read = new FileReader();
  16859. read.readAsDataURL(file); // 文件转base64
  16860. return new Promise((resolve, reject) => {
  16861. read.onload = (e) => {
  16862. let img = new Image();
  16863. img.src = e.target.result;
  16864. img.onload = async () => {
  16865. // 生成canvas
  16866. let canvas = document.createElement("canvas");
  16867. let context = canvas.getContext("2d");
  16868. // 绘制图片到canvas上
  16869. canvas.width = img.width;
  16870. canvas.height = img.height;
  16871. // 在canvas绘制前填充白色背景
  16872. context.fillStyle = "#fff";
  16873. context.fillRect(0, 0, canvas.width, canvas.height);
  16874. context.drawImage(img, 0, 0);
  16875. let base64 = canvas.toDataURL(file["type"], 1);
  16876. let newFile = this.dataUrlToFile(base64, _file);
  16877. resolve(newFile);
  16878. };
  16879. };
  16880. });
  16881. },
  16882. dataUrlToFile(dataurl, file) {
  16883. let arr = dataurl.split(","),
  16884. mime = arr[0].match(/:(.*?);/)[1],
  16885. bstr = atob(arr[1]),
  16886. n = bstr.length,
  16887. u8arr = new Uint8Array(n);
  16888. while (n--) {
  16889. u8arr[n] = bstr.charCodeAt(n);
  16890. }
  16891. // return new Blob([u8arr], { type: mime });
  16892. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16893. type: mime,
  16894. });
  16895. },
  16896. async beforeUpload1(event, type, i) {
  16897. // this.$message.success('进入上传')
  16898. var file = "";
  16899. if (type == 5) {
  16900. file = event;
  16901. } else {
  16902. file = event.target.files[0];
  16903. }
  16904. var credentials = {
  16905. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16906. secretAccessKey: "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",
  16907. }; //秘钥形式的登录上传
  16908. window.AWS.config.update(credentials);
  16909. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16910. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16911. var _this = this;
  16912. _this.progress = 0;
  16913. _this.proVisible = true;
  16914. _this.isFinishSize = 0;
  16915. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16916. var b = [
  16917. "DOC",
  16918. "DOCX",
  16919. "DOCM",
  16920. "DOTM",
  16921. "DOTX",
  16922. "PPTX",
  16923. "PPSX",
  16924. "PPT",
  16925. "PPS",
  16926. "PPTM",
  16927. "POTM",
  16928. "PPAM",
  16929. "POTX",
  16930. "PPSM",
  16931. ];
  16932. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16933. var photoA = [
  16934. "BMP",
  16935. "GIF",
  16936. "PNG",
  16937. "JPEG",
  16938. "JPEG",
  16939. "JPG",
  16940. "TIF",
  16941. "PCX",
  16942. "TGA",
  16943. "EXIF",
  16944. "FPX",
  16945. "SVG",
  16946. "APNG",
  16947. ];
  16948. // if (
  16949. // b.indexOf(
  16950. // file.name
  16951. // .split(".")
  16952. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16953. // ) != -1
  16954. // ) {
  16955. // if (file.size / 1024 / 1024 > 10) {
  16956. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  16957. // return;
  16958. // }
  16959. // } else if (
  16960. // excelA.indexOf(
  16961. // file.name
  16962. // .split(".")
  16963. // [file.name.split(".").length - 1].toLocaleUpperCase()
  16964. // ) != "-1"
  16965. // ) {
  16966. // if (file.size / 1024 / 1024 > 5) {
  16967. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  16968. // return;
  16969. // }
  16970. // }
  16971. if (
  16972. photoA.indexOf(
  16973. file.name
  16974. .split(".")
  16975. [file.name.split(".").length - 1].toLocaleUpperCase()
  16976. ) != -1 &&
  16977. type != 4
  16978. ) {
  16979. // const blob = await imageConversion.compress(file, 0.8)
  16980. file = await this.pngToWhiteBg(file);
  16981. const blob = await imageConversion.compressAccurately(file, 256);
  16982. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  16983. file = new File([blob], file.name, { type: file.type });
  16984. }
  16985. if (file) {
  16986. var params = {
  16987. Key:
  16988. file.name.split(".")[0] +
  16989. new Date().getTime() +
  16990. "." +
  16991. file.name.split(".")[file.name.split(".").length - 1],
  16992. ContentType: file.type,
  16993. Body: file,
  16994. "Access-Control-Allow-Credentials": "*",
  16995. ACL: "public-read",
  16996. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16997. var options = {
  16998. // partSize: 2048 * 1024 * 1024,
  16999. partSize: 1024 * 1024 * 1024,
  17000. queueSize: 2,
  17001. leavePartsOnError: true,
  17002. };
  17003. bucket
  17004. .upload(params, options)
  17005. .on("httpUploadProgress", function (evt) {
  17006. //这里可以写进度条
  17007. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  17008. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  17009. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  17010. })
  17011. .send(function (err, data) {
  17012. _this.progress = 100;
  17013. _this.isFinishSize = _this.isAllSize;
  17014. setTimeout(() => {
  17015. _this.proVisible = false;
  17016. }, 1000);
  17017. if (err) {
  17018. var a = _this.$refs.upload1.uploadFiles;
  17019. a.splice(a.length - 1, a.length);
  17020. _this.$message.error("上传失败");
  17021. } else {
  17022. // _this.$message.success('上传成功')
  17023. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  17024. var c = [
  17025. "AVI",
  17026. "NAVI",
  17027. "MPEG",
  17028. "ASF",
  17029. "MOV",
  17030. "WMV",
  17031. "3GP",
  17032. "RM",
  17033. "RMVB",
  17034. "FLV",
  17035. "F4V",
  17036. "H.264",
  17037. "H.265",
  17038. "REAL VIDEO",
  17039. "MKV",
  17040. "WebM",
  17041. "HDDVD",
  17042. "MP4",
  17043. "MPG",
  17044. "M4V",
  17045. "MGV",
  17046. "OGV",
  17047. "QTM",
  17048. "STR",
  17049. "AMC",
  17050. "DVX",
  17051. "EVO",
  17052. "DAT",
  17053. "OGG",
  17054. "OGM",
  17055. ];
  17056. if (type == 1) {
  17057. _this.studyJuri[0].cover.push({
  17058. name: file.name,
  17059. url: data.Location,
  17060. uid: file.uid,
  17061. });
  17062. if (
  17063. c.indexOf(
  17064. _this.studyJuri[0].cover[0].url
  17065. .split(".")
  17066. [
  17067. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17068. ].toLocaleUpperCase()
  17069. ) != -1
  17070. ) {
  17071. _this.fileType = 2;
  17072. } else if (
  17073. b.indexOf(
  17074. _this.studyJuri[0].cover[0].url
  17075. .split(".")
  17076. [
  17077. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17078. ].toLocaleUpperCase()
  17079. ) != -1
  17080. ) {
  17081. _this.fileType = 1;
  17082. } else if (
  17083. photoA.indexOf(
  17084. _this.studyJuri[0].cover[0].url
  17085. .split(".")
  17086. [
  17087. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17088. ].toLocaleUpperCase()
  17089. ) != -1
  17090. ) {
  17091. _this.fileType = 0;
  17092. } else {
  17093. _this.fileType = 3;
  17094. }
  17095. _this.imgChange(null, null, type);
  17096. } else if (type == 2) {
  17097. _this.upToolImg = data.Location;
  17098. _this.imgChange(null, null, type);
  17099. _this.addCourseWorks(i);
  17100. } else if (type == 4) {
  17101. _this.addPz("3", data.Location);
  17102. } else if (type == 5) {
  17103. _this.addImgDrawImG(data.Location);
  17104. } else if (type == 6) {
  17105. var _ftype = 1;
  17106. if (
  17107. c.indexOf(
  17108. data.Location.split(".")[
  17109. data.Location.split(".").length - 1
  17110. ].toLocaleUpperCase()
  17111. ) != -1
  17112. ) {
  17113. _ftype = 5;
  17114. } else if (
  17115. b.indexOf(
  17116. data.Location.split(".")[
  17117. data.Location.split(".").length - 1
  17118. ].toLocaleUpperCase()
  17119. ) != -1
  17120. ) {
  17121. _ftype = 4;
  17122. } else {
  17123. _ftype = 1;
  17124. }
  17125. _this.plworkFile.push({
  17126. name: file.name,
  17127. url: data.Location,
  17128. uid: file.uid,
  17129. fileType: _ftype,
  17130. username:
  17131. _this.plworkFile.length > 10
  17132. ? _this.plworkFile.length + 1
  17133. : "0" + (_this.plworkFile.length + 1),
  17134. });
  17135. } else if (type == 7) {
  17136. _this.addCourseWorksGong(i, data.Location, 32);
  17137. } else if (type == 8) {
  17138. _this.addCourseWorksGong(i, data.Location, 57);
  17139. }
  17140. _this.imgChange(null, null, type);
  17141. console.log(data.Location);
  17142. // _this.$message.success('上传成功'+data.Location)
  17143. }
  17144. });
  17145. }
  17146. },
  17147. async beforeUpload3(event, type, i) {
  17148. // this.$message.success('进入上传')
  17149. let file = "";
  17150. let cfindex2 = 0;
  17151. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  17152. file = event.target.files[cfindex];
  17153. var credentials = {
  17154. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  17155. secretAccessKey: "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",
  17156. }; //秘钥形式的登录上传
  17157. window.AWS.config.update(credentials);
  17158. window.AWS.config.region = "cn-northwest-1"; //设置区域
  17159. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  17160. var _this = this;
  17161. // _this.progress = 0;
  17162. _this.proVisible2 = true;
  17163. var b = [
  17164. "DOC",
  17165. "DOCX",
  17166. "DOCM",
  17167. "DOTM",
  17168. "DOTX",
  17169. "PPTX",
  17170. "PPSX",
  17171. "PPT",
  17172. "PPS",
  17173. "PPTM",
  17174. "POTM",
  17175. "PPAM",
  17176. "POTX",
  17177. "PPSM",
  17178. ];
  17179. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  17180. var photoA = [
  17181. "BMP",
  17182. "GIF",
  17183. "PNG",
  17184. "JPEG",
  17185. "JPG",
  17186. "TIF",
  17187. "PCX",
  17188. "TGA",
  17189. "EXIF",
  17190. "FPX",
  17191. "SVG",
  17192. "APNG",
  17193. ];
  17194. if (
  17195. photoA.indexOf(
  17196. file.name
  17197. .split(".")
  17198. [file.name.split(".").length - 1].toLocaleUpperCase()
  17199. ) != -1 &&
  17200. type != 4
  17201. ) {
  17202. // const blob = await imageConversion.compress(file, 0.8)
  17203. file = await this.pngToWhiteBg(file);
  17204. const blob = await imageConversion.compressAccurately(file, 256);
  17205. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  17206. file = new File([blob], file.name, { type: file.type });
  17207. }
  17208. if (file) {
  17209. var params = {
  17210. Key:
  17211. file.name.split(".")[0] +
  17212. new Date().getTime() +
  17213. "." +
  17214. file.name.split(".")[file.name.split(".").length - 1],
  17215. ContentType: file.type,
  17216. Body: file,
  17217. "Access-Control-Allow-Credentials": "*",
  17218. ACL: "public-read",
  17219. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  17220. var options = {
  17221. // partSize: 2048 * 1024 * 1024,
  17222. partSize: 1024 * 1024 * 1024,
  17223. queueSize: 2,
  17224. leavePartsOnError: true,
  17225. };
  17226. bucket
  17227. .upload(params, options)
  17228. .on("httpUploadProgress", function (evt) {
  17229. //这里可以写进度条
  17230. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  17231. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  17232. })
  17233. .send(function (err, data) {
  17234. // _this.progress = 100;
  17235. cfindex2++;
  17236. setTimeout(() => {
  17237. if (
  17238. cfindex2 == event.target.files.length - 1 ||
  17239. cfindex2 > event.target.files.length - 1
  17240. ) {
  17241. _this.proVisible2 = false;
  17242. }
  17243. }, 1000);
  17244. if (err) {
  17245. var a = _this.$refs.upload1.uploadFiles;
  17246. a.splice(a.length - 1, a.length);
  17247. _this.$message.error("上传失败");
  17248. } else {
  17249. // _this.$message.success('上传成功')
  17250. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  17251. var c = [
  17252. "AVI",
  17253. "NAVI",
  17254. "MPEG",
  17255. "ASF",
  17256. "MOV",
  17257. "WMV",
  17258. "3GP",
  17259. "RM",
  17260. "RMVB",
  17261. "FLV",
  17262. "F4V",
  17263. "H.264",
  17264. "H.265",
  17265. "REAL VIDEO",
  17266. "MKV",
  17267. "WebM",
  17268. "HDDVD",
  17269. "MP4",
  17270. "MPG",
  17271. "M4V",
  17272. "MGV",
  17273. "OGV",
  17274. "QTM",
  17275. "STR",
  17276. "AMC",
  17277. "DVX",
  17278. "EVO",
  17279. "DAT",
  17280. "OGG",
  17281. "OGM",
  17282. ];
  17283. if (type == 1) {
  17284. _this.studyJuri[0].cover.push({
  17285. name: file.name,
  17286. url: data.Location,
  17287. uid: file.uid,
  17288. });
  17289. if (
  17290. c.indexOf(
  17291. _this.studyJuri[0].cover[0].url
  17292. .split(".")
  17293. [
  17294. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17295. ].toLocaleUpperCase()
  17296. ) != -1
  17297. ) {
  17298. _this.fileType = 2;
  17299. } else if (
  17300. b.indexOf(
  17301. _this.studyJuri[0].cover[0].url
  17302. .split(".")
  17303. [
  17304. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17305. ].toLocaleUpperCase()
  17306. ) != -1
  17307. ) {
  17308. _this.fileType = 1;
  17309. } else {
  17310. _this.fileType = 0;
  17311. }
  17312. _this.imgChange(null, null, type);
  17313. } else if (type == 2) {
  17314. _this.upToolImg = data.Location;
  17315. _this.imgChange(null, null, type);
  17316. _this.addCourseWorks(i);
  17317. } else if (type == 4) {
  17318. _this.addPz("3", data.Location);
  17319. } else if (type == 5) {
  17320. _this.addImgDrawImG(data.Location);
  17321. } else if (type == 6) {
  17322. var _ftype = 1;
  17323. if (
  17324. c.indexOf(
  17325. data.Location.split(".")[
  17326. data.Location.split(".").length - 1
  17327. ].toLocaleUpperCase()
  17328. ) != -1
  17329. ) {
  17330. _ftype = 5;
  17331. } else if (
  17332. b.indexOf(
  17333. data.Location.split(".")[
  17334. data.Location.split(".").length - 1
  17335. ].toLocaleUpperCase()
  17336. ) != -1
  17337. ) {
  17338. _ftype = 4;
  17339. } else {
  17340. _ftype = 1;
  17341. }
  17342. _this.plworkFile.push({
  17343. name: file.name,
  17344. url: data.Location,
  17345. uid: file.uid,
  17346. fileType: _ftype,
  17347. username:
  17348. _this.plworkFile.length + 1 > 9
  17349. ? _this.plworkFile.length + 1
  17350. : "0" + (_this.plworkFile.length + 1),
  17351. });
  17352. }
  17353. _this.imgChange(null, null, type);
  17354. console.log(data.Location);
  17355. // _this.$message.success('上传成功'+data.Location)
  17356. }
  17357. });
  17358. }
  17359. }
  17360. },
  17361. beforeUpload2(event, type) {
  17362. var file = event.target.files[0];
  17363. var credentials = {
  17364. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  17365. secretAccessKey: "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",
  17366. }; //秘钥形式的登录上传
  17367. window.AWS.config.update(credentials);
  17368. window.AWS.config.region = "cn-northwest-1"; //设置区域
  17369. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  17370. var _this = this;
  17371. _this.progress = 0;
  17372. _this.proVisible = true;
  17373. if (file) {
  17374. var params = {
  17375. Key:
  17376. file.name.split(".")[0] +
  17377. new Date().getTime() +
  17378. "." +
  17379. file.name.split(".")[file.name.split(".").length - 1],
  17380. ContentType: file.type,
  17381. Body: file,
  17382. "Access-Control-Allow-Credentials": "*",
  17383. ACL: "public-read",
  17384. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  17385. var options = {
  17386. partSize: 2048 * 1024 * 1024,
  17387. queueSize: 2,
  17388. leavePartsOnError: true,
  17389. };
  17390. bucket
  17391. .upload(params, options)
  17392. .on("httpUploadProgress", function (evt) {
  17393. //这里可以写进度条
  17394. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  17395. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  17396. })
  17397. .send(function (err, data) {
  17398. _this.progress = 100;
  17399. setTimeout(() => {
  17400. _this.proVisible = false;
  17401. }, 1000);
  17402. if (err) {
  17403. var a = _this.$refs.upload1.uploadFiles;
  17404. a.splice(a.length - 1, a.length);
  17405. _this.$message.error("上传失败");
  17406. } else {
  17407. if (type == 2) {
  17408. _this.studyJuri[0].upVedio.push({
  17409. name: file.name,
  17410. url: data.Location,
  17411. uid: file.uid,
  17412. });
  17413. _this.imgChange(null, null, type);
  17414. } else if (type == 3) {
  17415. _this.studyJuri[0].upFile.push({
  17416. name: file.name,
  17417. url: data.Location,
  17418. uid: file.uid,
  17419. });
  17420. _this.imgChange(null, null, type);
  17421. }
  17422. console.log(data.Location);
  17423. }
  17424. });
  17425. }
  17426. },
  17427. allScrell() {
  17428. window.parent.postMessage({ allScreen: this.screenType }, "*");
  17429. },
  17430. nextOrpreSteps(t) {
  17431. if (this.IsFollow && this.tType == 2) {
  17432. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17433. return;
  17434. }
  17435. var b = this.chapInfoList.length - 1;
  17436. if (t == 0) {
  17437. if (this.courseType == 0) {
  17438. if (this.taskCount == 0) {
  17439. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  17440. if (this.IsLookOpen) {
  17441. if (
  17442. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  17443. ) {
  17444. if (
  17445. this.courseDetail.userid != this.userid &&
  17446. (!this.courseDetail.course_teacher ||
  17447. (this.courseDetail.course_teacher &&
  17448. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  17449. ) {
  17450. this.$message.error("任务未解锁");
  17451. } else {
  17452. this.$message.error("上一任务未解锁");
  17453. }
  17454. return;
  17455. }
  17456. }
  17457. this.navList[this.courseType].isOpen = false;
  17458. this.courseType = b;
  17459. this.taskCount =
  17460. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  17461. .length - 1;
  17462. this.navList[this.courseType].isOpen = true;
  17463. } else {
  17464. this.taskCount--;
  17465. }
  17466. } else {
  17467. if (this.taskCount == 0) {
  17468. this.navList[this.courseType].isOpen = false;
  17469. this.courseType--;
  17470. this.taskCount =
  17471. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  17472. .length - 1;
  17473. this.navList[this.courseType].isOpen = true;
  17474. } else {
  17475. this.taskCount--;
  17476. }
  17477. }
  17478. } else {
  17479. if (this.courseType == b) {
  17480. if (
  17481. this.taskCount ==
  17482. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  17483. 1
  17484. ) {
  17485. this.navList[this.courseType].isOpen = false;
  17486. this.courseType = 0;
  17487. this.taskCount = 0;
  17488. this.navList[this.courseType].isOpen = true;
  17489. } else {
  17490. var bbb = parseInt(this.taskCount) + 1;
  17491. if (
  17492. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  17493. .isLook &&
  17494. this.courseDetail.userid != this.userid &&
  17495. (!this.courseDetail.course_teacher ||
  17496. (this.courseDetail.course_teacher &&
  17497. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17498. this.IsLookOpen
  17499. ) {
  17500. this.$message.error("任务未解锁");
  17501. return;
  17502. }
  17503. this.taskCount++;
  17504. if (this.IsLookOpen) {
  17505. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17506. this.taskCount
  17507. ].isLook = true;
  17508. this.addCourseState(3);
  17509. }
  17510. }
  17511. } else {
  17512. if (
  17513. this.taskCount ==
  17514. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  17515. 1
  17516. ) {
  17517. var bbb = parseInt(this.courseType) + 1;
  17518. if (
  17519. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  17520. this.courseDetail.userid != this.userid &&
  17521. (!this.courseDetail.course_teacher ||
  17522. (this.courseDetail.course_teacher &&
  17523. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17524. this.IsLookOpen
  17525. ) {
  17526. this.$message.error("任务未解锁");
  17527. return;
  17528. }
  17529. this.navList[this.courseType].isOpen = false;
  17530. this.courseType++;
  17531. this.taskCount = 0;
  17532. this.navList[this.courseType].isOpen = true;
  17533. } else {
  17534. var bbb = parseInt(this.taskCount) + 1;
  17535. if (
  17536. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  17537. .isLook &&
  17538. this.courseDetail.userid != this.userid &&
  17539. (!this.courseDetail.course_teacher ||
  17540. (this.courseDetail.course_teacher &&
  17541. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17542. this.IsLookOpen
  17543. ) {
  17544. this.$message.error("任务未解锁");
  17545. return;
  17546. }
  17547. this.taskCount++;
  17548. }
  17549. if (this.IsLookOpen) {
  17550. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17551. this.taskCount
  17552. ].isLook = true;
  17553. this.addCourseState(3);
  17554. }
  17555. }
  17556. // if (
  17557. // this.taskCount ==
  17558. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  17559. // ) {
  17560. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  17561. // } else {
  17562. // this.taskCount++;
  17563. // }
  17564. }
  17565. document.scrollingElement.scrollTop = 0;
  17566. this.showType = 7;
  17567. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17568. // if (this.vedio[this.taskCount].length > 0) {
  17569. // var a =
  17570. // document.getElementsByClassName("box_course")[this.taskCount]
  17571. // .offsetHeight;
  17572. // document.getElementsByClassName("vedioList")[
  17573. // this.taskCount
  17574. // ].style.height = a + "px";
  17575. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  17576. // a - 40 + "px";
  17577. // }
  17578. this.isNoHomeWork = false;
  17579. (this.studyJuri = [
  17580. {
  17581. content: "",
  17582. cover: [],
  17583. upVedio: [],
  17584. upFile: [],
  17585. },
  17586. ]),
  17587. (this.radio = []);
  17588. this.isClickNav = "";
  17589. this.selectPz();
  17590. this.getHomeWork();
  17591. this.getCourseDetail(2);
  17592. this.$forceUpdate();
  17593. },
  17594. openTask(s, n, i) {
  17595. this.refreshAssembly()
  17596. if (this.IsFollow && this.tType == 2) {
  17597. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17598. return;
  17599. }
  17600. if (this.IsLookOpen) {
  17601. if (
  17602. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  17603. this.courseDetail.userid != this.userid &&
  17604. (!this.courseDetail.course_teacher ||
  17605. (this.courseDetail.course_teacher &&
  17606. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  17607. ) {
  17608. this.$message.error("任务未解锁");
  17609. return;
  17610. }
  17611. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  17612. if (
  17613. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  17614. .isLook
  17615. ) {
  17616. this.$message.error("上一任务未解锁");
  17617. return;
  17618. }
  17619. } else if (s > this.courseType) {
  17620. if (n > 0) {
  17621. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  17622. this.$message.error("上一任务未解锁");
  17623. return;
  17624. }
  17625. } else {
  17626. if (
  17627. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  17628. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  17629. ].isLook
  17630. ) {
  17631. this.$message.error("上一任务未解锁");
  17632. return;
  17633. }
  17634. }
  17635. }
  17636. }
  17637. if (this.navList[s].task[n].isOpen == true) {
  17638. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  17639. return;
  17640. }
  17641. let flag = this.courseType==s;
  17642. this.courseType = s;
  17643. this.navId = i;
  17644. this.taskCount = n;
  17645. this.navList[this.courseType].task[this.taskCount].isOpen =
  17646. !this.navList[this.courseType].task[this.taskCount].isOpen;
  17647. if (this.IsLookOpen) {
  17648. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17649. this.taskCount
  17650. ].isLook = true;
  17651. this.addCourseState(3);
  17652. }
  17653. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  17654. this.isCloseList[ci].isClose = 0;
  17655. this.isCloseList[ci].isCloseBoolean = false;
  17656. this.$nextTick(()=>{
  17657. setTimeout(()=>{
  17658. setTimeout(()=>{
  17659. this.panToolHeight('tool-'+ci);
  17660. }, 0)
  17661. }, 0)
  17662. })
  17663. }
  17664. this.showType = 7;
  17665. this.isNoHomeWork = false;
  17666. (this.studyJuri = [
  17667. {
  17668. content: "",
  17669. cover: [],
  17670. upVedio: [],
  17671. upFile: [],
  17672. },
  17673. ]),
  17674. (this.radio = []);
  17675. document.scrollingElement.scrollTop = 0;
  17676. // setTimeout(() => {
  17677. // let a = document.getElementById(i);
  17678. // if (a.offsetTop - 110 == 0) {
  17679. // window.scrollTo(0, 0);
  17680. // } else {
  17681. // window.scrollTo(0, a.offsetTop);
  17682. // }
  17683. // }, 0);
  17684. for (var z = 0; z < this.navList.length; z++) {
  17685. for (var q = 0; q < this.navList[z].task.length; q++) {
  17686. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17687. this.navList[z].task[q].tool[w].isTool = false;
  17688. }
  17689. }
  17690. }
  17691. this.selectPz();
  17692. this.getHomeWork();
  17693. this.getCourseDetail(2);
  17694. if(flag){
  17695. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17696. }else{
  17697. this.insertMemorandum(`进入<span class="variable">阶段${s+1}${this.navList[s].dyName?':'+this.navList[s].dyName:''}</span>→<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17698. }
  17699. },
  17700. get(i) {
  17701. if (this.IsFollow && this.tType == 2) {
  17702. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17703. return;
  17704. }
  17705. // for(var k=0;k<this.navList.length;k++){
  17706. // this.navList[k].isOpen = false;
  17707. // }
  17708. // this.navList[i].isOpen = true;
  17709. this.navList[i].isOpen = !this.navList[i].isOpen;
  17710. if (this.navList[i].isOpen) {
  17711. this.openTask(i, 0, i + "-0");
  17712. }
  17713. },
  17714. addQuestion() {
  17715. this.answerList.push({
  17716. answerTitle: this.answerQ,
  17717. answer: this.questionAnswer,
  17718. });
  17719. let params = [
  17720. {
  17721. uid: this.userid,
  17722. cid: this.id,
  17723. stage: this.courseType,
  17724. task: this.taskCount,
  17725. tool: this.toolindex,
  17726. content: JSON.stringify(this.answerList),
  17727. type: 3,
  17728. },
  17729. ];
  17730. this.ajax
  17731. .post(this.$store.state.api + "addCourseWorks", params)
  17732. .then((res) => {
  17733. this.$message({
  17734. message: "提交成功",
  17735. type: "success",
  17736. });
  17737. this.answerList = [];
  17738. this.answerDialogVisible = false;
  17739. this.selectStudent();
  17740. this.selectSWorks();
  17741. this.selectSLook();
  17742. })
  17743. .catch((err) => {
  17744. this.$message.error("提交失败");
  17745. console.error(err);
  17746. });
  17747. },
  17748. addQuestionTeacher() {
  17749. this.answerList.push({
  17750. answerTitle: this.answerQ,
  17751. answer: this.questionAnswer,
  17752. });
  17753. let params = [
  17754. {
  17755. uid: this.sStudent.userid,
  17756. cid: this.id,
  17757. stage: this.courseType,
  17758. task: this.taskCount,
  17759. tool: this.toolindex,
  17760. content: JSON.stringify(this.answerList),
  17761. type: 3,
  17762. ateacher: this.userid,
  17763. },
  17764. ];
  17765. this.ajax
  17766. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17767. .then((res) => {
  17768. this.$message({
  17769. message: "提交成功",
  17770. type: "success",
  17771. });
  17772. this.answerList = [];
  17773. this.questionAnswer = "";
  17774. this.answerDialogVisibleTeacher = false;
  17775. this.selectStudent();
  17776. this.selectSWorks();
  17777. this.selectSLook();
  17778. })
  17779. .catch((err) => {
  17780. this.$message.error("提交失败");
  17781. console.error(err);
  17782. });
  17783. },
  17784. refreshCourse() {
  17785. // window.location.reload();
  17786. this.navList = [];
  17787. this.getCourseDetail(1);
  17788. },
  17789. getCourseDetail(type, gindex) {
  17790. let loading;
  17791. if (type != 2) {
  17792. loading = this.$loading.service({
  17793. background: "rgba(255, 255, 255, 0.7)",
  17794. target: document.querySelector(".student_table"),
  17795. });
  17796. }
  17797. this.downLoading = false
  17798. // this.navList[0].isOpen = false;
  17799. // this.navList[this.courseType].isOpen = true;
  17800. // this.courseType = this.courseTypeLine;
  17801. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17802. let params = {
  17803. courseId: this.id,
  17804. };
  17805. this.ajax
  17806. .get(this.$store.state.api + "selectCourseDetail3", params)
  17807. .then((res) => {
  17808. if (type != 2) {
  17809. loading.close();
  17810. if (
  17811. this.courseType >
  17812. JSON.parse(res.data[0][0].chapters).length - 1
  17813. ) {
  17814. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17815. }
  17816. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17817. .chapterInfo[0].taskJson;
  17818. var b = [
  17819. "AVI",
  17820. "NAVI",
  17821. "MPEG",
  17822. "ASF",
  17823. "MOV",
  17824. "WMV",
  17825. "3GP",
  17826. "RM",
  17827. "RMVB",
  17828. "FLV",
  17829. "F4V",
  17830. "H.264",
  17831. "H.265",
  17832. "REAL VIDEO",
  17833. "MKV",
  17834. "WebM",
  17835. "HDDVD",
  17836. "MP4",
  17837. "MPG",
  17838. "M4V",
  17839. "MGV",
  17840. "OGV",
  17841. "QTM",
  17842. "STR",
  17843. "AMC",
  17844. "DVX",
  17845. "EVO",
  17846. "DAT",
  17847. "OGG",
  17848. "OGM",
  17849. "MP3",
  17850. ];
  17851. let _chapterData = [];
  17852. for (var i = 0; i < a.length; i++) {
  17853. var c = a[i].chapterData;
  17854. this.vedio[i] = [];
  17855. this.textList[i] = [];
  17856. this.lineList[i] = [];
  17857. this.chapToolList[i] = [];
  17858. this.file[i] = [];
  17859. this.fileC[i] = [];
  17860. _chapterData[i] = c.filter((el) => {
  17861. return el.type != 12;
  17862. });
  17863. this.fileC[i] = c.filter((el) => {
  17864. return el.type == 12;
  17865. });
  17866. // else if (c[j].type == 12) {
  17867. // this.fileC[i].push(c[j]);
  17868. // }
  17869. for (var j = 0; j < c.length; j++) {
  17870. if (c[j].type == 7) {
  17871. this.chapToolList[i].push(c[j]);
  17872. } else if (c[j].type == 8 || c[j].type == 14) {
  17873. this.lineList[i].push(c[j]);
  17874. } else if (c[j].type == 6) {
  17875. this.textList[i].push(c[j]);
  17876. } else {
  17877. if (
  17878. b.indexOf(
  17879. c[j].url
  17880. .split(".")
  17881. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17882. ) != -1
  17883. ) {
  17884. this.vedio[i].push(c[j]);
  17885. } else {
  17886. this.file[i].push(c[j]);
  17887. }
  17888. }
  17889. }
  17890. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17891. d.sources[0].src =
  17892. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17893. this.playerO[i] = d;
  17894. }
  17895. this.courseDetail = res.data[0][0];
  17896. this.tcid = this.arrayToArray(
  17897. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17898. this.tcid2 ? this.tcid2.split(",") : []
  17899. ).join(",");
  17900. this.evalua = res.data[0][0].evaId;
  17901. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17902. this.courseType
  17903. ];
  17904. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17905. if (this.tcid && res.data[1].length) {
  17906. let _inviteA = [];
  17907. for (var ik = 0; ik < res.data[1].length; ik++) {
  17908. _inviteA.push({
  17909. cid: res.data[1][ik].classid,
  17910. ic: res.data[1][ik].code,
  17911. });
  17912. }
  17913. for (var ik = 0; ik < _inviteA.length; ik++) {
  17914. if (
  17915. this.arrayToArray(
  17916. _inviteA[ik].cid.split(","),
  17917. this.tcid.split(",")
  17918. ).length
  17919. ) {
  17920. this.inviteCode = _inviteA[ik].ic;
  17921. break;
  17922. }
  17923. }
  17924. }
  17925. for (var l = 0; l < this.chapInfoList.length; l++) {
  17926. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17927. for (var m = 0; m < w.length; m++) {
  17928. w[m].id = l + "-" + m;
  17929. }
  17930. }
  17931. if (
  17932. _chapterData[this.taskCount].length &&
  17933. _chapterData[this.taskCount][0].type == 2
  17934. ) {
  17935. this.showType = 0;
  17936. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  17937. } else {
  17938. if (_chapterData[this.taskCount].length > 0) {
  17939. let _url = _chapterData[this.taskCount][0].url;
  17940. if (
  17941. _chapterData[this.taskCount][0].type == 8 ||
  17942. _chapterData[this.taskCount][0].type == 14
  17943. ) {
  17944. this.showType = 2;
  17945. if (
  17946. _url.indexOf("https://") == -1 &&
  17947. _url.indexOf("http://") == -1
  17948. ) {
  17949. _url = "https://" + _url;
  17950. }
  17951. this.pptImgUrl1 = _url;
  17952. } else if (_chapterData[this.taskCount][0].type == 3) {
  17953. if (
  17954. _url
  17955. .split(".")
  17956. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17957. ) {
  17958. this.showType = 3;
  17959. this.pptImgUrl1 = _url;
  17960. } else if (
  17961. this.isAssetTypeAnImage(
  17962. _url
  17963. .split(".")
  17964. [_url.split(".").length - 1].toLocaleLowerCase()
  17965. )
  17966. ) {
  17967. this.showType = 4;
  17968. this.pptImgUrl1 = _url;
  17969. } else {
  17970. this.showType = 2;
  17971. this.pptImgUrl1 =
  17972. "https://view.officeapps.live.com/op/view.aspx?src=" +
  17973. encodeURIComponent(_url);
  17974. }
  17975. } else if (_chapterData[this.taskCount][0].type == 13) {
  17976. this.showType = 4;
  17977. this.pptImgUrl1 = _url;
  17978. } else if (_chapterData[this.taskCount][0].type == 6) {
  17979. this.showType = 1;
  17980. this.text = this.textList[this.taskCount][0];
  17981. }
  17982. }
  17983. }
  17984. this.isClickNav = 0;
  17985. if (
  17986. !_chapterData[this.taskCount].length ||
  17987. _chapterData[this.taskCount][0].type == 12
  17988. ) {
  17989. this.isClickNav = "";
  17990. this.showType = "";
  17991. }
  17992. this.vChapterData = _chapterData;
  17993. } else {
  17994. this.showType = 0;
  17995. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17996. .chapterInfo[0].taskJson;
  17997. var b = [
  17998. "AVI",
  17999. "NAVI",
  18000. "MPEG",
  18001. "ASF",
  18002. "MOV",
  18003. "WMV",
  18004. "3GP",
  18005. "RM",
  18006. "RMVB",
  18007. "FLV",
  18008. "F4V",
  18009. "H.264",
  18010. "H.265",
  18011. "REAL VIDEO",
  18012. "MKV",
  18013. "WebM",
  18014. "HDDVD",
  18015. "MP4",
  18016. "MPG",
  18017. "M4V",
  18018. "MGV",
  18019. "OGV",
  18020. "QTM",
  18021. "STR",
  18022. "AMC",
  18023. "DVX",
  18024. "EVO",
  18025. "DAT",
  18026. "OGG",
  18027. "OGM",
  18028. "MP3",
  18029. ];
  18030. let _chapterData = [];
  18031. for (var i = 0; i < a.length; i++) {
  18032. var c = a[i].chapterData;
  18033. this.vedio[i] = [];
  18034. this.textList[i] = [];
  18035. this.lineList[i] = [];
  18036. this.chapToolList[i] = [];
  18037. this.file[i] = [];
  18038. this.fileC[i] = [];
  18039. _chapterData[i] = c.filter((el) => {
  18040. return el.type != 12;
  18041. });
  18042. this.fileC[i] = c.filter((el) => {
  18043. return el.type == 12;
  18044. });
  18045. for (var j = 0; j < c.length; j++) {
  18046. if (c[j].type == 7) {
  18047. this.chapToolList[i].push(c[j]);
  18048. } else if (c[j].type == 8 || c[j].type == 14) {
  18049. this.lineList[i].push(c[j]);
  18050. } else if (c[j].type == 6) {
  18051. this.textList[i].push(c[j]);
  18052. } else {
  18053. if (
  18054. b.indexOf(
  18055. c[j].url
  18056. .split(".")
  18057. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  18058. ) != -1
  18059. ) {
  18060. this.vedio[i].push(c[j]);
  18061. } else {
  18062. this.file[i].push(c[j]);
  18063. }
  18064. }
  18065. }
  18066. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18067. d.sources[0].src =
  18068. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  18069. this.playerO[i] = d;
  18070. }
  18071. if (
  18072. _chapterData[this.taskCount].length &&
  18073. _chapterData[this.taskCount][0].type == 2
  18074. ) {
  18075. this.showType = 0;
  18076. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  18077. } else {
  18078. if (_chapterData[this.taskCount].length > 0) {
  18079. let _url = _chapterData[this.taskCount][0].url;
  18080. if (
  18081. _chapterData[this.taskCount][0].type == 8 ||
  18082. _chapterData[this.taskCount][0].type == 14
  18083. ) {
  18084. this.showType = 2;
  18085. if (
  18086. _url.indexOf("https://") == -1 &&
  18087. _url.indexOf("http://") == -1
  18088. ) {
  18089. _url = "https://" + _url;
  18090. }
  18091. this.pptImgUrl1 = _url;
  18092. } else if (_chapterData[this.taskCount][0].type == 3) {
  18093. if (
  18094. _url
  18095. .split(".")
  18096. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18097. ) {
  18098. this.showType = 3;
  18099. this.pptImgUrl1 = _url;
  18100. } else if (
  18101. this.isAssetTypeAnImage(
  18102. _url
  18103. .split(".")
  18104. [_url.split(".").length - 1].toLocaleLowerCase()
  18105. )
  18106. ) {
  18107. this.showType = 4;
  18108. this.pptImgUrl1 = _url;
  18109. } else {
  18110. this.showType = 2;
  18111. this.pptImgUrl1 =
  18112. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18113. encodeURIComponent(_url);
  18114. }
  18115. } else if (_chapterData[this.taskCount][0].type == 13) {
  18116. this.showType = 4;
  18117. this.pptImgUrl1 = _url;
  18118. } else if (_chapterData[this.taskCount][0].type == 6) {
  18119. this.showType = 1;
  18120. this.text = this.textList[this.taskCount][0];
  18121. }
  18122. }
  18123. }
  18124. this.isClickNav = 0;
  18125. if (
  18126. !_chapterData[this.taskCount].length ||
  18127. _chapterData[this.taskCount][0].type == 12
  18128. ) {
  18129. this.isClickNav = "";
  18130. this.showType = "";
  18131. }
  18132. this.vChapterData = _chapterData;
  18133. this.$forceUpdate();
  18134. }
  18135. // console.log('this.chapInfoList22222',JS);
  18136. // finalMarkList用来判断哪个工具为评分工具
  18137. if(this.courseDetail.state == 5){
  18138. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  18139. let chap = chapInfoListCopy[this.taskCount].toolChoose
  18140. let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  18141. // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  18142. // 没有的话在选其他工具为评分工具
  18143. if(adc.length > 0){
  18144. for (let k = chap.length - 1; k >= 0; k--) {
  18145. if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  18146. this.finalMarkList = k;
  18147. break;
  18148. }
  18149. }
  18150. }else{
  18151. for (let k = chap.length - 1; k >= 0; k--) {
  18152. if (chap[k].tool[0] == 7 || chap[k].tool[0] == 50 || chap[k].tool[0] == 1 || chap[k].tool[0] == 3 || chap[k].tool[0] == 48 || chap[k].tool[0] == 15 || chap[k] == 57) {
  18153. this.finalMarkList = k;
  18154. break;
  18155. }
  18156. }
  18157. }
  18158. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  18159. // 不然会无限循环报错,会很难受
  18160. let aiSNum = 0
  18161. chapInfoListCopy[this.taskCount].eList.forEach(e=>{
  18162. if (e.isai == 2) {
  18163. aiSNum++
  18164. }
  18165. })
  18166. if(aiSNum == chapInfoListCopy[this.taskCount].eList.length){
  18167. this.isaiNum = aiSNum
  18168. }else{
  18169. this.isaiNum = 0
  18170. }
  18171. // console.log('finalMarkList',this.finalMarkList)
  18172. for (let k = 0; k < chapInfoListCopy[this.taskCount].eList.length; k++) {
  18173. if(!chapInfoListCopy[this.taskCount].eList[k].rule){
  18174. this.againEva(this.taskCount,k)
  18175. }
  18176. }
  18177. }
  18178. // else {
  18179. // this.courseDetail = res.data[0][0];
  18180. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  18181. // }
  18182. let _this = this;
  18183. if (_this.timer) {
  18184. clearInterval(_this.timer);
  18185. _this.timer = null;
  18186. }
  18187. if (_this.tcid) {
  18188. _this.getCourseGroup(gindex);
  18189. } else {
  18190. _this.selectSWorks(gindex);
  18191. }
  18192. _this.selectStudent();
  18193. _this.selectSLook();
  18194. _this.getPick();
  18195. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  18196. _this.setCTask();
  18197. }
  18198. if (_this.dialogVisibleGroup) {
  18199. _this.groupJson =
  18200. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  18201. _this.taskCount
  18202. ].toolChoose[_this.toolindex].groupJson;
  18203. }
  18204. _this.$nextTick(() => {
  18205. setTimeout(() => {
  18206. _this.checkEva();
  18207. }, 1000);
  18208. });
  18209. _this.timer = setInterval(function () {
  18210. // _this.getCourseDetail(2);
  18211. if (_this.tcid) {
  18212. _this.getCourseGroup(gindex);
  18213. } else {
  18214. _this.selectSWorks(gindex);
  18215. }
  18216. _this.selectStudent();
  18217. _this.selectSLook();
  18218. _this.getPick();
  18219. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  18220. _this.setCTask();
  18221. }
  18222. if (_this.dialogVisibleGroup) {
  18223. _this.groupJson =
  18224. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  18225. _this.taskCount
  18226. ].toolChoose[_this.toolindex].groupJson;
  18227. }
  18228. if (_this.tType == 4 || _this.ispzType == 4) {
  18229. _this.selectPz();
  18230. }
  18231. }, 5000);
  18232. _this.$nextTick(function () {
  18233. setTimeout(() => {
  18234. // var a =
  18235. // document.getElementsByClassName("box_course")[0].offsetHeight;
  18236. // document.getElementsByClassName("vedioList")[0].style.height =
  18237. // a + "px";
  18238. // document.getElementsByClassName("navBox")[0].style.height =
  18239. // a - 40 + "px";
  18240. // if (_this.vedio[_this.taskCount].length > 0) {
  18241. // _this.vedioTime = [];
  18242. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18243. // _this.vedioTime[i] = document.getElementsByClassName(
  18244. // "vjs-duration-display"
  18245. // )[i].textContent;
  18246. // }
  18247. // }
  18248. }, 1000);
  18249. });
  18250. })
  18251. .catch((err) => {
  18252. loading.close();
  18253. console.error(err);
  18254. });
  18255. },
  18256. getCourseGroup(gindex) {
  18257. let params = {
  18258. cid: this.id,
  18259. classid: this.tcid ? this.tcid : "1",
  18260. };
  18261. this.ajax
  18262. .get(this.$store.state.api + "getCourseGroup", params)
  18263. .then((res) => {
  18264. if (res.data && res.data[0].length) {
  18265. if (!this.isGroup) {
  18266. let courseGroup = JSON.parse(res.data[0][0].group);
  18267. courseGroup.group = courseGroup.group.filter((el) => {
  18268. el.works = [];
  18269. return el;
  18270. });
  18271. if (courseGroup.isopen == 2) {
  18272. this.isGroup = false;
  18273. this.selectSWorks(gindex);
  18274. return;
  18275. }
  18276. this.courseGroup = courseGroup;
  18277. let groupPerson = res.data[1];
  18278. let group = JSON.parse(res.data[0][0].group).group;
  18279. let courseGroupStudent = {};
  18280. let courseGroupStudentUid = {};
  18281. for (var i = 0; i < group.length; i++) {
  18282. courseGroupStudent[group[i].id] = [];
  18283. courseGroupStudentUid[group[i].id] = [];
  18284. for (var j = 0; j < groupPerson.length; j++) {
  18285. if (groupPerson[j].groupCid == group[i].id) {
  18286. courseGroupStudent[group[i].id].push(groupPerson[j]);
  18287. courseGroupStudentUid[group[i].id].push(
  18288. groupPerson[j].userid
  18289. );
  18290. }
  18291. }
  18292. }
  18293. this.courseGroupStudent = courseGroupStudent;
  18294. this.courseGroupStudentUid = courseGroupStudentUid;
  18295. }
  18296. if (this.courseGroup.isopen == 2) {
  18297. this.isGroup = false;
  18298. } else {
  18299. this.isGroup = true;
  18300. }
  18301. this.selectSWorks(gindex);
  18302. } else {
  18303. this.selectSWorks(gindex);
  18304. this.isGroup = false;
  18305. }
  18306. })
  18307. .catch((err) => {
  18308. // this.$message.error("网络不佳");
  18309. console.error(err);
  18310. });
  18311. },
  18312. setOperationTime() {
  18313. let _this = this;
  18314. if (_this.opertimer) {
  18315. clearInterval(_this.opertimer);
  18316. _this.opertimer = null;
  18317. }
  18318. _this.opertimer = setInterval(() => {
  18319. _this.setoTime("600");
  18320. }, 600000);
  18321. },
  18322. setoTime(time) {
  18323. let params = [
  18324. {
  18325. uid: this.userid,
  18326. cid: this.id,
  18327. type: "2",
  18328. time: time,
  18329. },
  18330. ];
  18331. this.ajax
  18332. .post(this.$store.state.api + "addOperationTimeT2", params)
  18333. .then((res) => {})
  18334. .catch((err) => {
  18335. console.error(err);
  18336. });
  18337. },
  18338. addPz(type, content) {
  18339. if (type == "1" && this.pzConText == "") {
  18340. this.$message.error("评论不能为空!");
  18341. return;
  18342. }
  18343. let params = [
  18344. {
  18345. cid: this.id,
  18346. uid: this.userid,
  18347. s: this.courseType,
  18348. t: this.taskCount,
  18349. c: type == "1" ? this.pzConText : content,
  18350. type: type,
  18351. },
  18352. ];
  18353. this.ajax
  18354. .post(this.$store.state.api + "addPz2", params)
  18355. .then((res) => {
  18356. this.$message({
  18357. message: "添加成功",
  18358. type: "success",
  18359. });
  18360. this.pzConText = "";
  18361. this.addPzDialog = false;
  18362. this.selectPz();
  18363. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  18364. })
  18365. .catch((err) => {
  18366. this.$message.error("添加失败");
  18367. console.error(err);
  18368. });
  18369. },
  18370. setReplyIndex(id, i) {
  18371. this.replyIndex = i;
  18372. this.replyPid = id;
  18373. this.replyDialogVisible = true;
  18374. },
  18375. addHf() {
  18376. if (this.reply == "") {
  18377. this.$message.error("回复不能为空!");
  18378. return;
  18379. }
  18380. let params = [
  18381. {
  18382. cid: this.id,
  18383. uid: this.userid,
  18384. s: this.courseType,
  18385. t: this.taskCount,
  18386. type: "1",
  18387. ct: 2,
  18388. pid: this.replyPid,
  18389. c: this.reply,
  18390. },
  18391. ];
  18392. this.ajax
  18393. .post(this.$store.state.api + "addHf", params)
  18394. .then((res) => {
  18395. this.reply = "";
  18396. this.$message({
  18397. message: "回复成功",
  18398. type: "success",
  18399. });
  18400. this.replyDialogVisible = false;
  18401. this.selectPz();
  18402. })
  18403. .catch((err) => {
  18404. this.$message.error("回复失败");
  18405. console.error(err);
  18406. });
  18407. },
  18408. deletePz(id) {
  18409. this.$confirm("确定删除此评论吗?", "提示", {
  18410. confirmButtonText: "确定",
  18411. cancelButtonText: "取消",
  18412. type: "warning",
  18413. })
  18414. .then(() => {
  18415. let params = [
  18416. {
  18417. id: id,
  18418. },
  18419. ];
  18420. this.ajax
  18421. .post(this.$store.state.api + "deletePz", params)
  18422. .then((res) => {
  18423. this.$message({
  18424. message: "删除成功",
  18425. type: "success",
  18426. });
  18427. this.selectPz();
  18428. })
  18429. .catch((err) => {
  18430. this.$message.error("网络异常");
  18431. console.error(err);
  18432. });
  18433. })
  18434. .catch(() => {});
  18435. },
  18436. deleteReply(id) {
  18437. this.$confirm("确定删除此回复吗?", "提示", {
  18438. confirmButtonText: "确定",
  18439. cancelButtonText: "取消",
  18440. type: "warning",
  18441. })
  18442. .then(() => {
  18443. let params = [
  18444. {
  18445. id: id,
  18446. },
  18447. ];
  18448. this.ajax
  18449. .post(this.$store.state.api + "deleteReply", params)
  18450. .then((res) => {
  18451. this.$message({
  18452. message: "删除成功",
  18453. type: "success",
  18454. });
  18455. this.selectPz();
  18456. })
  18457. .catch((err) => {
  18458. this.$message.error("网络异常");
  18459. console.error(err);
  18460. });
  18461. })
  18462. .catch(() => {});
  18463. },
  18464. setPz() {
  18465. if (this.ispzType == 4) {
  18466. this.ispzType = 0;
  18467. this.pzDialog = false;
  18468. return;
  18469. }
  18470. this.ispzType = 4;
  18471. this.pzDialog = true;
  18472. this.selectPz();
  18473. },
  18474. selectPz() {
  18475. let params = {
  18476. cid: this.id,
  18477. s: this.courseType,
  18478. t: this.taskCount,
  18479. type: this.pzStype,
  18480. uid: this.userid,
  18481. };
  18482. this.ajax
  18483. .get(this.$store.state.api + "selectPzListType", params)
  18484. .then((res) => {
  18485. this.pzList = res.data[0];
  18486. var a = res.data[1];
  18487. for (var i = 0; i < a.length; i++) {
  18488. for (var j = 0; j < this.pzList.length; j++) {
  18489. if (!this.pzList[j].hfList) {
  18490. this.pzList[j].hfList = [];
  18491. }
  18492. if (a[i].pid == this.pzList[j].id) {
  18493. this.pzList[j].hfList.push(a[i]);
  18494. }
  18495. }
  18496. }
  18497. })
  18498. .catch((err) => {
  18499. console.error(err);
  18500. });
  18501. },
  18502. // selectHf() {
  18503. // let params = {
  18504. // cid: this.id,
  18505. // s: this.courseType,
  18506. // t: this.taskCount,
  18507. // };
  18508. // this.ajax
  18509. // .get(this.$store.state.api + "selectHfList", params)
  18510. // .then((res) => {
  18511. // var a = res.data[0];
  18512. // for (var i = 0; i < a.length; i++) {
  18513. // for (var j = 0; j < this.pzList.length; j++) {
  18514. // if (!this.pzList[i].hfList) {
  18515. // this.pzList[i].hfList = [];
  18516. // }
  18517. // if (a[i].pid == this.pzList[j].id) {
  18518. // this.pzList[i].hfList.push(a[i]);
  18519. // }
  18520. // }
  18521. // }
  18522. // })
  18523. // .catch((err) => {
  18524. // console.error(err);
  18525. // });
  18526. // },
  18527. updateSLook() {
  18528. let params = {
  18529. sopen: this.sIsOpen == false ? 1 : 2,
  18530. cid: this.id,
  18531. };
  18532. this.ajax
  18533. .get(this.$store.state.api + "updateCourseSLook", params)
  18534. .then((res) => {
  18535. if (this.sIsOpen == true) {
  18536. this.$message({
  18537. message: "权限设置成功",
  18538. type: "success",
  18539. });
  18540. } else {
  18541. this.$message({
  18542. message: "权限关闭成功",
  18543. type: "success",
  18544. });
  18545. }
  18546. })
  18547. .catch((err) => {
  18548. console.error(err);
  18549. });
  18550. },
  18551. updateFollow() {
  18552. let params = [
  18553. {
  18554. sopen: this.IsFollow == false ? 1 : 2,
  18555. cid: this.id,
  18556. },
  18557. ];
  18558. this.ajax
  18559. .post(this.$store.state.api + "updateCourseFollow", params)
  18560. .then((res) => {
  18561. if (this.IsFollow == true) {
  18562. this.$message({
  18563. message: "开启成功",
  18564. type: "success",
  18565. });
  18566. } else {
  18567. this.$message({
  18568. message: "关闭成功",
  18569. type: "success",
  18570. });
  18571. }
  18572. this.setCTask();
  18573. })
  18574. .catch((err) => {
  18575. console.error(err);
  18576. });
  18577. },
  18578. setCTask() {
  18579. let params = [
  18580. {
  18581. sopen: this.courseType + "-" + this.taskCount,
  18582. cid: this.id,
  18583. },
  18584. ];
  18585. this.ajax
  18586. .post(this.$store.state.api + "updateCourseFollowC", params)
  18587. .then((res) => {})
  18588. .catch((err) => {
  18589. console.error(err);
  18590. });
  18591. },
  18592. updateLookOpen() {
  18593. let params = [
  18594. {
  18595. sopen: this.IsLookOpen == false ? 1 : 2,
  18596. cid: this.id,
  18597. },
  18598. ];
  18599. this.ajax
  18600. .post(this.$store.state.api + "updateCourseLookOpen", params)
  18601. .then((res) => {
  18602. if (this.IsLookOpen == true) {
  18603. // if (this.courseType != 0 && this.taskCount != 0) {
  18604. // this.openTask(0, 0, "0-0");
  18605. // }
  18606. this.$message({
  18607. message: "权限设置成功",
  18608. type: "success",
  18609. });
  18610. } else {
  18611. this.$message({
  18612. message: "权限关闭成功",
  18613. type: "success",
  18614. });
  18615. }
  18616. this.getCourseState(2);
  18617. })
  18618. .catch((err) => {
  18619. console.error(err);
  18620. });
  18621. },
  18622. selectSLook() {
  18623. let params = {
  18624. cid: this.id,
  18625. };
  18626. this.ajax
  18627. .get(this.$store.state.api + "selectCourseSLook", params)
  18628. .then((res) => {
  18629. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  18630. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  18631. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  18632. if (!this.IsLookOpen) {
  18633. this.setNavList();
  18634. } else {
  18635. this.getCourseState(1);
  18636. }
  18637. if (this.IsFollow && this.tType == 2) {
  18638. this.setContent2(false);
  18639. let _followC = res.data[0][0].followC.split("-");
  18640. if (
  18641. this.courseType != _followC[0] ||
  18642. this.taskCount != _followC[1]
  18643. ) {
  18644. this.navList[this.courseType].isOpen = false;
  18645. this.courseType = _followC[0];
  18646. this.navList[this.courseType].isOpen = true;
  18647. this.taskCount = parseInt(_followC[1]);
  18648. this.navId = res.data[0][0].followC;
  18649. document.scrollingElement.scrollTop = 0;
  18650. this.getCourseDetail(2);
  18651. }
  18652. }
  18653. })
  18654. .catch((err) => {
  18655. console.error(err);
  18656. });
  18657. },
  18658. setNavList() {
  18659. if (this.navList.length == 0) {
  18660. this.navList = [];
  18661. var copyList = [];
  18662. for (var l = 0; l < this.chapInfoList.length; l++) {
  18663. var q = this.chapInfoList[l].dyName;
  18664. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18665. var e;
  18666. copyList.push({
  18667. dyName: q,
  18668. isOpen: l === 0 ? true : false,
  18669. task: [],
  18670. });
  18671. for (var r = 0; r < w.length; r++) {
  18672. e = w[r].task;
  18673. if (this.chapInfoList[l].easy == 1) {
  18674. copyList[l].task.push({
  18675. taskName: q,
  18676. id: l + "-" + r,
  18677. isLook: w[r].isLook,
  18678. isOpen: r === 0 ? true : false,
  18679. tool: [],
  18680. });
  18681. } else {
  18682. copyList[l].task.push({
  18683. taskName: e,
  18684. id: l + "-" + r,
  18685. isLook: w[r].isLook,
  18686. isOpen: r === 0 ? true : false,
  18687. tool: [],
  18688. });
  18689. }
  18690. var t = w[r].toolChoose;
  18691. for (var k = 0; k < t.length; k++) {
  18692. var tool = t[k].tool[0];
  18693. copyList[l].task[r].tool.push({
  18694. tool: tool,
  18695. isTool: false,
  18696. });
  18697. }
  18698. // this.navId = this.navId ? this.navId : l + "-" + r;
  18699. // this.navId = l + "-" + r;
  18700. }
  18701. }
  18702. this.navList = copyList;
  18703. this.navList[0].isOpen = false;
  18704. this.navList[this.courseType].isOpen = true;
  18705. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18706. } else {
  18707. this.setNavList2();
  18708. }
  18709. },
  18710. setNavList2() {
  18711. for (var l = 0; l < this.chapInfoList.length; l++) {
  18712. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18713. for (var r = 0; r < w.length; r++) {
  18714. this.navList[l].task[r].isLook = w[r].isLook;
  18715. }
  18716. }
  18717. if (
  18718. this.IsLookOpen &&
  18719. !this.navList[this.courseType].task[this.taskCount].isLook
  18720. ) {
  18721. this.openTask(0, 0, "0-0");
  18722. }
  18723. this.$forceUpdate();
  18724. },
  18725. getCourseState(type) {
  18726. let params = {
  18727. cid: this.id,
  18728. };
  18729. this.ajax
  18730. .get(this.$store.state.api + "getCourseState", params)
  18731. .then((res) => {
  18732. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  18733. this.chapInfoList = JSON.parse(res.data[0][0].state);
  18734. console.log('this.chapInfoList',this.chapInfoList);
  18735. this.setNavList();
  18736. this.$forceUpdate();
  18737. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  18738. this.addCourseState(2);
  18739. } else {
  18740. this.addCourseState(1);
  18741. }
  18742. })
  18743. .catch((err) => {
  18744. console.error(err);
  18745. });
  18746. },
  18747. addCourseState(type) {
  18748. let _state = this.chapInfoList;
  18749. // this.courseType this.taskCount
  18750. if (type == 1 || type == 2) {
  18751. for (var i = 0; i < _state.length; i++) {
  18752. let el = _state[i].chapterInfo[0].taskJson;
  18753. for (var j = 0; j < el.length; j++) {
  18754. // if (i == 0 && j == 0) {
  18755. // el[j].isLook = true;
  18756. // } else {
  18757. // el[j].isLook = false;
  18758. // }
  18759. if (
  18760. this.courseType > i ||
  18761. (this.courseType == i && this.taskCount + 1 > j)
  18762. ) {
  18763. el[j].isLook = true;
  18764. } else {
  18765. el[j].isLook = false;
  18766. }
  18767. }
  18768. }
  18769. }
  18770. let params = [
  18771. {
  18772. cid: this.id,
  18773. state: JSON.stringify(_state),
  18774. },
  18775. ];
  18776. this.ajax
  18777. .post(
  18778. this.$store.state.api +
  18779. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18780. params
  18781. )
  18782. .then((res) => {
  18783. if (this.IsLookOpen) {
  18784. this.setNavList();
  18785. }
  18786. if (type == 3 && type == 2) {
  18787. this.getCourseState(1);
  18788. }
  18789. })
  18790. .catch((err) => {
  18791. console.error(err);
  18792. });
  18793. },
  18794. getHomeWork() {
  18795. let params = {
  18796. cid: this.id,
  18797. stage: this.courseType,
  18798. task: this.taskCount,
  18799. uid: this.userid,
  18800. };
  18801. this.ajax
  18802. .get(this.$store.state.api + "selectWork", params)
  18803. .then((res) => {
  18804. if (res.data[0].length > 0) {
  18805. this.studyJuri = JSON.parse(res.data[0][0].content);
  18806. this.isNoHomeWork = true;
  18807. }
  18808. })
  18809. .catch((err) => {
  18810. console.error(err);
  18811. });
  18812. },
  18813. isAssetTypeAnImage(ext) {
  18814. return (
  18815. [
  18816. "png",
  18817. "jpg",
  18818. "jpeg",
  18819. "bmp",
  18820. "gif",
  18821. "webp",
  18822. "psd",
  18823. "svg",
  18824. "tiff",
  18825. ].indexOf(ext) !== -1
  18826. );
  18827. },
  18828. switchVideo(media) {
  18829. this.playerO = {};
  18830. this.playerOptions.poster = "";
  18831. this.playerOptions.sources[0].src = media;
  18832. this.playerO = this.playerOptions;
  18833. },
  18834. onPlayerPlay() {},
  18835. onPlayerTimeupdate(player) {
  18836. let gklog = player.cache_.currentTime; //当前播放的秒数
  18837. let a = player.cache_.duration; //视频的总时长
  18838. let gklog2 = parseInt(gklog);
  18839. // if(gklog2 == '3'){
  18840. // player.pause()
  18841. // setTimeout(()=>{
  18842. // player.currentTime(gklog2+1)
  18843. // player.play()
  18844. // },1000)
  18845. // }
  18846. console.log(" onPlayerTimeupdate!", gklog);
  18847. console.log(" onPlayerTimeupdate!", gklog2);
  18848. },
  18849. lookVedio(u, i) {
  18850. this.isClickNav = "";
  18851. // this.playerOptions.sources[0].src = u;
  18852. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18853. d.sources[0].src = u;
  18854. this.playerO[this.taskCount] = d;
  18855. this.showType = 0;
  18856. // this.isClickNav = "video" + i;
  18857. this.isClickNav = i;
  18858. this.$forceUpdate();
  18859. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18860. },
  18861. lookText(i, t) {
  18862. this.isClickNav = "";
  18863. // this.text = this.textList[i][t];
  18864. this.text = this.vChapterData[i][t];
  18865. // this.dialogVisible1 = true;
  18866. this.showType = 1;
  18867. // this.isClickNav = "text" + t;
  18868. this.isClickNav = t;
  18869. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18870. },
  18871. lookTools(i, t) {
  18872. this.chapTools = this.chapToolList[i][t];
  18873. this.dialogVisible2 = true;
  18874. },
  18875. async openFile(f) {
  18876. this.pptImgUrl = "";
  18877. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18878. if (
  18879. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18880. -1
  18881. ) {
  18882. let _uuurl = await this.checkLink(f);
  18883. this.pptImgUrl =
  18884. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18885. this.showPDF = false;
  18886. this.dialogVisible3 = true;
  18887. } else if (
  18888. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18889. ) {
  18890. this.pptImgUrl = f;
  18891. this.showPDF = true;
  18892. this.dialogVisible3 = true;
  18893. }
  18894. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18895. },
  18896. openTable(f) {
  18897. this.tableJson = JSON.parse(f.works);
  18898. this.dialogVisibleTable2 = true;
  18899. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18900. },
  18901. openWord(f) {
  18902. this.tableJson = JSON.parse(f.works);
  18903. this.dialogVisibleTable3 = true;
  18904. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18905. },
  18906. doUrl(url, i) {
  18907. this.isClickNav = "";
  18908. this.pptImgUrl1 = "";
  18909. this.showType = 2;
  18910. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18911. url = "https://" + url;
  18912. }
  18913. this.pptImgUrl1 = "";
  18914. setTimeout(() => {
  18915. this.pptImgUrl1 = url;
  18916. }, 500);
  18917. // this.isClickNav = "line" + i;
  18918. this.isClickNav = i;
  18919. this.$forceUpdate();
  18920. },
  18921. checkPhoto(f, i) {
  18922. this.showType = 4;
  18923. this.pptImgUrl1 = f.url;
  18924. this.isClickNav = i;
  18925. this.$forceUpdate();
  18926. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18927. },
  18928. async downFile(f, i) {
  18929. this.isClickNav = "";
  18930. this.pptImgUrl1 = "";
  18931. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18932. if (
  18933. a.indexOf(
  18934. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18935. ) != -1
  18936. ) {
  18937. let _uuurl = await this.checkLink(f.url);
  18938. this.pptImgUrl1 =
  18939. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18940. // this.dialogVisible3 = true;
  18941. this.showType = 2;
  18942. } else if (
  18943. this.isAssetTypeAnImage(
  18944. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18945. )
  18946. ) {
  18947. this.showType = 4;
  18948. this.pptImgUrl1 = f.url;
  18949. } else if (
  18950. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18951. "PDF"
  18952. ) {
  18953. this.pptImgUrl1 = f.url;
  18954. // this.dialogVisible3 = true;
  18955. this.showType = 3;
  18956. } else {
  18957. window.open(this.file[i].url);
  18958. }
  18959. // this.isClickNav = "word" + i;
  18960. this.isClickNav = i;
  18961. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18962. },
  18963. downFileList(i) {
  18964. window.open(this.noImgList[i].url);
  18965. },
  18966. openAddWork() {
  18967. this.dialogVisible = true;
  18968. },
  18969. addBzWorks() {
  18970. let params = [
  18971. {
  18972. uid: this.userid,
  18973. cid: this.id,
  18974. stage: this.courseType,
  18975. task: this.taskCount,
  18976. tool: this.toolindex,
  18977. content: JSON.stringify(this.eScore),
  18978. type: 6,
  18979. },
  18980. ];
  18981. this.ajax
  18982. .post(this.$store.state.api + "addCourseWorks", params)
  18983. .then((res) => {
  18984. this.$message({
  18985. message: "提交成功",
  18986. type: "success",
  18987. });
  18988. this.eScore = { eBzText: "", eStar: [] };
  18989. this.studentEvalDialogVisible = false;
  18990. this.selectSWorks();
  18991. })
  18992. .catch((err) => {
  18993. this.$message.error("提交失败");
  18994. console.error(err);
  18995. });
  18996. },
  18997. addBzWorksTeacher() {
  18998. let params = [
  18999. {
  19000. uid: this.sStudent.userid,
  19001. cid: this.id,
  19002. stage: this.courseType,
  19003. task: this.taskCount,
  19004. tool: this.toolindex,
  19005. content: JSON.stringify(this.eScore),
  19006. type: 6,
  19007. },
  19008. ];
  19009. this.ajax
  19010. .post(this.$store.state.api + "addCourseWorks", params)
  19011. .then((res) => {
  19012. this.$message({
  19013. message: "提交成功",
  19014. type: "success",
  19015. });
  19016. this.eScore = { eBzText: "", eStar: [] };
  19017. this.studentEvalDialogVisibleTeacher = false;
  19018. this.selectSWorks();
  19019. })
  19020. .catch((err) => {
  19021. this.$message.error("提交失败");
  19022. console.error(err);
  19023. });
  19024. },
  19025. addStudentAsk() {
  19026. if (!this.radio.length) {
  19027. this.$message.error("请选择选项");
  19028. return;
  19029. }
  19030. for (var i = 0; i < this.askJson.askCount; i++) {
  19031. if (
  19032. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  19033. (this.radio[i] !== 0 && !this.radio[i])
  19034. ) {
  19035. this.$message.error("请选择选项");
  19036. return;
  19037. }
  19038. }
  19039. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  19040. let params = [
  19041. {
  19042. uid: this.userid,
  19043. cid: this.id,
  19044. stage: this.courseType,
  19045. task: this.taskCount,
  19046. tool: this.toolindex,
  19047. content: JSON.stringify(this.askList),
  19048. type: 2,
  19049. },
  19050. ];
  19051. this.ajax
  19052. .post(this.$store.state.api + "addCourseWorks", params)
  19053. .then((res) => {
  19054. this.$message({
  19055. message: "提交成功",
  19056. type: "success",
  19057. });
  19058. this.askList = [];
  19059. this.dialogVisible5 = false;
  19060. this.selectStudent();
  19061. this.selectSWorks();
  19062. this.selectSLook();
  19063. })
  19064. .catch((err) => {
  19065. this.$message.error("提交失败");
  19066. console.error(err);
  19067. });
  19068. },
  19069. addStudentAskTeacher() {
  19070. if (!this.radio.length) {
  19071. this.$message.error("请选择选项");
  19072. return;
  19073. }
  19074. for (var i = 0; i < this.askJson.askCount; i++) {
  19075. if (
  19076. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  19077. (this.radio[i] !== 0 && !this.radio[i])
  19078. ) {
  19079. this.$message.error("请选择选项");
  19080. return;
  19081. }
  19082. }
  19083. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  19084. let params = [
  19085. {
  19086. uid: this.sStudent.userid,
  19087. cid: this.id,
  19088. stage: this.courseType,
  19089. task: this.taskCount,
  19090. tool: this.toolindex,
  19091. content: JSON.stringify(this.askList),
  19092. type: 2,
  19093. },
  19094. ];
  19095. this.ajax
  19096. .post(this.$store.state.api + "addCourseWorks", params)
  19097. .then((res) => {
  19098. this.$message({
  19099. message: "提交成功",
  19100. type: "success",
  19101. });
  19102. this.askList = [];
  19103. this.dialogVisible5Teacher = false;
  19104. this.selectStudent();
  19105. this.selectSWorks();
  19106. this.selectSLook();
  19107. })
  19108. .catch((err) => {
  19109. this.$message.error("提交失败");
  19110. console.error(err);
  19111. });
  19112. },
  19113. addStudentTest() {
  19114. if (!this.radio.length) {
  19115. this.$message.error("请选择选项");
  19116. return;
  19117. }
  19118. for (var i = 0; i < this.testJson.testCount; i++) {
  19119. if (
  19120. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  19121. (this.radio[i] !== 0 && !this.radio[i])
  19122. ) {
  19123. this.$message.error("请选择选项");
  19124. return;
  19125. }
  19126. }
  19127. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  19128. let params = [
  19129. {
  19130. uid: this.userid,
  19131. cid: this.id,
  19132. stage: this.courseType,
  19133. task: this.taskCount,
  19134. tool: this.toolindex,
  19135. content: JSON.stringify(this.askList),
  19136. type: 8,
  19137. },
  19138. ];
  19139. this.ajax
  19140. .post(this.$store.state.api + "addCourseWorks", params)
  19141. .then((res) => {
  19142. this.$message({
  19143. message: "提交成功",
  19144. type: "success",
  19145. });
  19146. this.askList = [];
  19147. this.dialogVisibleChoice = false;
  19148. this.selectStudent();
  19149. this.selectSWorks();
  19150. this.selectSLook();
  19151. })
  19152. .catch((err) => {
  19153. this.$message.error("提交失败");
  19154. console.error(err);
  19155. });
  19156. },
  19157. addStudentTestTeacher() {
  19158. if (!this.radio.length) {
  19159. this.$message.error("请选择选项");
  19160. return;
  19161. }
  19162. for (var i = 0; i < this.testJson.testCount; i++) {
  19163. if (
  19164. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  19165. (this.radio[i] !== 0 && !this.radio[i])
  19166. ) {
  19167. this.$message.error("请选择选项");
  19168. return;
  19169. }
  19170. }
  19171. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  19172. let params = [
  19173. {
  19174. uid: this.sStudent.userid,
  19175. cid: this.id,
  19176. stage: this.courseType,
  19177. task: this.taskCount,
  19178. tool: this.toolindex,
  19179. content: JSON.stringify(this.askList),
  19180. type: 8,
  19181. },
  19182. ];
  19183. this.ajax
  19184. .post(this.$store.state.api + "addCourseWorks", params)
  19185. .then((res) => {
  19186. this.$message({
  19187. message: "提交成功",
  19188. type: "success",
  19189. });
  19190. this.askList = [];
  19191. this.dialogVisibleChoiceTeacher = false;
  19192. this.selectStudent();
  19193. this.selectSWorks();
  19194. this.selectSLook();
  19195. })
  19196. .catch((err) => {
  19197. this.$message.error("提交失败");
  19198. console.error(err);
  19199. });
  19200. },
  19201. addWork() {
  19202. if (this.studyJuri[0].content == "") {
  19203. this.$message.error("请将信息填写完整");
  19204. return;
  19205. } else if (this.studyJuri[0].cover.length == 0) {
  19206. this.$message.error("请将信息填写完整");
  19207. return;
  19208. } else if (this.studyJuri[0].upVedio.length == 0) {
  19209. this.$message.error("请将信息填写完整");
  19210. return;
  19211. }
  19212. if (this.isNoHomeWork) {
  19213. this.$confirm(
  19214. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  19215. "提示",
  19216. {
  19217. confirmButtonText: "确定",
  19218. cancelButtonText: "取消",
  19219. type: "warning",
  19220. }
  19221. )
  19222. .then(() => {
  19223. let params = [
  19224. {
  19225. uid: this.userid,
  19226. cid: this.id,
  19227. stage: this.courseType,
  19228. task: this.taskCount,
  19229. content: JSON.stringify(this.studyJuri),
  19230. },
  19231. ];
  19232. this.ajax
  19233. .post(this.$store.state.api + "addWorks", params)
  19234. .then((res) => {
  19235. this.$message({
  19236. message: "提交成功",
  19237. type: "success",
  19238. });
  19239. this.isNoHomeWork = true;
  19240. this.dialogVisible = false;
  19241. })
  19242. .catch((err) => {
  19243. this.$message.error("提交失败");
  19244. console.error(err);
  19245. });
  19246. })
  19247. .catch(() => {});
  19248. } else {
  19249. let params = [
  19250. {
  19251. uid: this.userid,
  19252. cid: this.id,
  19253. stage: this.courseType,
  19254. task: this.taskCount,
  19255. content: JSON.stringify(this.studyJuri),
  19256. },
  19257. ];
  19258. this.ajax
  19259. .post(this.$store.state.api + "addWorks", params)
  19260. .then((res) => {
  19261. this.$message({
  19262. message: "提交成功",
  19263. type: "success",
  19264. });
  19265. this.isNoHomeWork = true;
  19266. this.dialogVisible = false;
  19267. })
  19268. .catch((err) => {
  19269. this.$message.error("提交失败");
  19270. console.error(err);
  19271. });
  19272. }
  19273. },
  19274. selectCount() {
  19275. let params = {
  19276. cid: this.id,
  19277. chid: this.courseType,
  19278. uid: this.userid,
  19279. };
  19280. this.ajax
  19281. .get(this.$store.state.api + "selectToolsCount", params)
  19282. .then((res) => {
  19283. for (var i = 0; i < res.data[0].length; i++) {
  19284. if (res.data[0][i].tools == 1) {
  19285. this.wbCount = res.data[0][i].count;
  19286. } else if (res.data[0][i].tools == 2) {
  19287. this.wordCount = res.data[0][i].count;
  19288. } else if (res.data[0][i].tools == 3) {
  19289. this.mindCount = res.data[0][i].count;
  19290. } else if (res.data[0][i].tools == 4) {
  19291. this.askCount = res.data[0][i].count;
  19292. } else if (res.data[0][i].tools == 6) {
  19293. this.noteCount = res.data[0][i].count;
  19294. } else if (res.data[0][i].tools == 7) {
  19295. this.mindNetWorkCount = res.data[0][i].count;
  19296. } else if (res.data[0][i].tools == 8) {
  19297. this.libraryCount = res.data[0][i].count;
  19298. } else if (res.data[0][i].tools == 16) {
  19299. this.workCount = res.data[0][i].count;
  19300. } else if (res.data[0][i].tools == 10) {
  19301. this.timeCount = res.data[0][i].count;
  19302. } else if (res.data[0][i].tools == 15) {
  19303. this.answerCount = res.data[0][i].count;
  19304. } else if (res.data[0][i].tools == 18) {
  19305. this.trainCount = res.data[0][i].count;
  19306. }
  19307. }
  19308. })
  19309. .catch((err) => {
  19310. console.error(err);
  19311. });
  19312. },
  19313. openTools(t, i, index, c, sName,id) {
  19314. var z = JSON.parse(c);
  19315. this.noteName = sName;
  19316. if (t == 4) {
  19317. this.radio = [];
  19318. this.isAnswer = false;
  19319. let b = z[0].anwer;
  19320. this.radio = b;
  19321. this.askJson = z[0].askJson;
  19322. this.isAnswer = true;
  19323. this.dialogVisible5 = true;
  19324. } else if (t == 45) {
  19325. this.radio = [];
  19326. this.isAnswer = false;
  19327. let b = z[0].anwer;
  19328. this.radio = b;
  19329. this.testJson = z[0].testJson;
  19330. this.isAnswer = true;
  19331. this.dialogVisibleChoice = true;
  19332. }else if(t == 69){
  19333. this.oldEnglishJson1 = {}
  19334. this.oldEnglishJson = {}
  19335. this.englishList1 = {}
  19336. this.newEngIndex = -1;
  19337. this.isNoUserid = false;
  19338. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19339. .toolChoose[i].englishList;
  19340. this.oldEnglishJson = z;
  19341. this.engWid = id;
  19342. this.newEnglishList = { engTitle:"",engText:"" }
  19343. this.newEnglishList1 = []
  19344. this.selectEngC(id,z);
  19345. }else if(t == 62){
  19346. this.videoType = 1;
  19347. this.videoJson = {};
  19348. this.videoJson = JSON.parse(c);
  19349. // this.videoJson =
  19350. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19351. // index
  19352. // ].toolChoose[i].videoJson;
  19353. this.dialogVisibleVideo = true;
  19354. }
  19355. // else if (t == 15) {
  19356. // this.answerQ = "";
  19357. // this.questionAnswer = "";
  19358. // this.answerQ = z[0].answerTitle;
  19359. // this.questionAnswer = z[0].answer;
  19360. // this.answerDialogVisible = true;
  19361. // }
  19362. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  19363. },
  19364. fastText(p, t) {
  19365. if (t == 1) {
  19366. this.commentText += p;
  19367. } else {
  19368. this.eScore.eBzText += p;
  19369. }
  19370. },
  19371. addTools(t, i, index) {
  19372. var a = 0;
  19373. // this.taskCount = index;
  19374. this.toolindex = i;
  19375. if (t == 1) {
  19376. if (this.wbCount > 0) {
  19377. this.updateCount(this.wbCount, t);
  19378. } else {
  19379. this.wbCount++;
  19380. a = this.wbCount;
  19381. this.toolsCount(a, t);
  19382. }
  19383. window.parent.postMessage(
  19384. {
  19385. tools: "1",
  19386. cid: this.id,
  19387. stage: this.courseType,
  19388. task: this.taskCount,
  19389. tool: i,
  19390. },
  19391. "*"
  19392. );
  19393. } else if (t == 2) {
  19394. if (this.wordCount > 0) {
  19395. this.updateCount(this.wordCount, t);
  19396. } else {
  19397. this.wordCount++;
  19398. a = this.wordCount;
  19399. this.toolsCount(a, t);
  19400. }
  19401. window.parent.postMessage({ tools: "2" }, "*");
  19402. } else if (t == 3) {
  19403. if (this.mindCount > 0) {
  19404. this.updateCount(this.mindCount, t);
  19405. } else {
  19406. this.mindCount++;
  19407. a = this.mindCount;
  19408. this.toolsCount(a, t);
  19409. }
  19410. window.parent.postMessage(
  19411. {
  19412. tools: "3",
  19413. cid: this.id,
  19414. stage: this.courseType,
  19415. task: this.taskCount,
  19416. tool: i,
  19417. },
  19418. "*"
  19419. );
  19420. } else if (t == 4) {
  19421. this.radio = [];
  19422. this.noteName = "";
  19423. this.isAnswer = false;
  19424. if (this.askCount > 0) {
  19425. this.updateCount(this.askCount, t);
  19426. } else {
  19427. this.askCount++;
  19428. a = this.askCount;
  19429. this.toolsCount(a, t);
  19430. }
  19431. if (!this.dialogVisible2) {
  19432. this.askJson.askJson =
  19433. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19434. index
  19435. ].toolChoose[i].askJson;
  19436. this.askJson.askTitle =
  19437. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19438. index
  19439. ].toolChoose[i].askTitle;
  19440. this.askJson.askCount =
  19441. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19442. index
  19443. ].toolChoose[i].askCount;
  19444. } else {
  19445. this.askJson.askJson = this.chapTools.askJson.askJson;
  19446. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19447. this.askJson.askCount = this.chapTools.askJson.askCount;
  19448. }
  19449. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19450. if (this.askJson.askJson[k].type == "2") {
  19451. this.radio.push([]);
  19452. } else {
  19453. this.radio.push("");
  19454. }
  19455. }
  19456. this.dialogVisible5 = true;
  19457. // window.parent.postMessage({ tools: "4" }, "*");
  19458. } else if (t == 45) {
  19459. this.noteName = "";
  19460. this.radio = [];
  19461. this.isAnswer = false;
  19462. if (this.askCount > 0) {
  19463. this.updateCount(this.askCount, t);
  19464. } else {
  19465. this.askCount++;
  19466. a = this.askCount;
  19467. this.toolsCount(a, t);
  19468. }
  19469. this.testJson =
  19470. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19471. index
  19472. ].toolChoose[i].testJson;
  19473. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19474. if (this.testJson.testJson[k].type == "2") {
  19475. this.radio.push([]);
  19476. } else {
  19477. this.radio.push("");
  19478. }
  19479. }
  19480. this.dialogVisibleChoice = true;
  19481. // window.parent.postMessage({ tools: "4" }, "*");
  19482. } else if (t == 5) {
  19483. if (this.scoreCount > 0) {
  19484. this.updateCount(this.scoreCount, t);
  19485. } else {
  19486. this.scoreCount++;
  19487. a = this.scoreCount;
  19488. this.toolsCount(a, t);
  19489. }
  19490. this.dialogVisible4 = true;
  19491. // window.parent.postMessage({ tools: "5" }, "*");
  19492. } else if (t == 6) {
  19493. if (this.noteCount > 0) {
  19494. this.updateCount(this.noteCount, t);
  19495. } else {
  19496. this.noteCount++;
  19497. a = this.noteCount;
  19498. this.toolsCount(a, t);
  19499. }
  19500. window.parent.postMessage(
  19501. {
  19502. tools: "6",
  19503. cid: this.id,
  19504. stage: this.courseType,
  19505. task: this.taskCount,
  19506. tool: i,
  19507. },
  19508. "*"
  19509. );
  19510. } else if (t == 7) {
  19511. if (this.mindNetWorkCount > 0) {
  19512. this.updateCount(this.mindNetWorkCount, t);
  19513. } else {
  19514. this.mindNetWorkCount++;
  19515. a = this.mindNetWorkCount;
  19516. this.toolsCount(a, t);
  19517. }
  19518. window.parent.postMessage(
  19519. {
  19520. tools: "7",
  19521. cid: this.id,
  19522. stage: this.courseType,
  19523. task: this.taskCount,
  19524. tool: i,
  19525. },
  19526. "*"
  19527. );
  19528. } else if (t == 16) {
  19529. if (this.workCount > 0) {
  19530. this.updateCount(this.workCount, t);
  19531. } else {
  19532. this.workCount++;
  19533. a = this.workCount;
  19534. this.toolsCount(a, t);
  19535. }
  19536. this.dialogVisible = true;
  19537. } else if (t == 50) {
  19538. if (this.tType == 2) {
  19539. this.$message.error("不支持学生使用");
  19540. return;
  19541. }
  19542. this.plworkFile = [];
  19543. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19544. if (!this.uploadCid) {
  19545. this.$message.error(
  19546. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19547. );
  19548. return;
  19549. }
  19550. // this.uploadCid =
  19551. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19552. // index
  19553. // ].toolChoose[i].uploadJson[0];
  19554. this.selectUploadStudent(2);
  19555. } else if (t == 8) {
  19556. if (this.libraryCount > 0) {
  19557. this.updateCount(this.libraryCount, t);
  19558. } else {
  19559. this.libraryCount++;
  19560. a = this.libraryCount;
  19561. this.toolsCount(a, t);
  19562. }
  19563. window.parent.postMessage({ tools: "8" }, "*");
  19564. } else if (t == 17) {
  19565. if (this.libraryCount > 0) {
  19566. this.updateCount(this.libraryCount, t);
  19567. } else {
  19568. this.libraryCount++;
  19569. a = this.libraryCount;
  19570. this.toolsCount(a, t);
  19571. }
  19572. window.parent.postMessage({ tools: "17" }, "*");
  19573. } else if (t == 18) {
  19574. if (this.trainCount > 0) {
  19575. this.updateCount(this.trainCount, t);
  19576. } else {
  19577. this.trainCount++;
  19578. a = this.trainCount;
  19579. this.toolsCount(a, t);
  19580. }
  19581. window.parent.postMessage({ tools: "18" }, "*");
  19582. } else if (t == 10) {
  19583. if (this.timeCount > 0) {
  19584. this.updateCount(this.timeCount, t);
  19585. } else {
  19586. this.timeCount++;
  19587. a = this.timeCount;
  19588. this.toolsCount(a, t);
  19589. }
  19590. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19591. .taskJson[index].toolChoose[i].preTime
  19592. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19593. .toolChoose[i].preTime
  19594. : "";
  19595. this.timeDialogVisible = true;
  19596. } else if (t == 15) {
  19597. this.answerQ = "";
  19598. this.questionAnswer = "";
  19599. if (this.answerCount > 0) {
  19600. this.updateCount(this.answerCount, t);
  19601. } else {
  19602. this.answerCount++;
  19603. a = this.answerCount;
  19604. this.toolsCount(a, t);
  19605. }
  19606. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19607. .taskJson[index].toolChoose[i].answerQ
  19608. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19609. .toolChoose[i].answerQ
  19610. : "";
  19611. this.answerDialogVisible = true;
  19612. } else if (t == 21) {
  19613. window.parent.postMessage({ tools: "21" }, "*");
  19614. } else if (t == 22) {
  19615. window.parent.postMessage({ tools: "22" }, "*");
  19616. } else if (t == 23) {
  19617. window.parent.postMessage({ tools: "23" }, "*");
  19618. } else if (t == 24) {
  19619. window.parent.postMessage({ tools: "24" }, "*");
  19620. } else if (t == 25) {
  19621. window.parent.postMessage({ tools: "25" }, "*");
  19622. } else if (t == 31) {
  19623. window.parent.postMessage({ tools: "31" }, "*");
  19624. } else if (t == 28) {
  19625. window.parent.postMessage({ tools: "28" }, "*");
  19626. } else if (t == 37) {
  19627. window.parent.postMessage({ tools: "37" }, "*");
  19628. } else if (t == 38) {
  19629. window.parent.postMessage({ tools: "38" }, "*");
  19630. } else if (t == 39) {
  19631. window.parent.postMessage({ tools: "39" }, "*");
  19632. } else if (t == 32) {
  19633. window.parent.postMessage({ tools: "32" }, "*");
  19634. } else if (t == 66) {
  19635. window.parent.postMessage({ tools: "66" }, "*");
  19636. } else if (t == 67) {
  19637. window.parent.postMessage({ tools: "67" }, "*");
  19638. } else if (t == 68) {
  19639. window.parent.postMessage({ tools: "68" }, "*");
  19640. } else if (t == 57) {
  19641. // window.parent.postMessage({ tools: "57" }, "*");
  19642. window.parent.postMessage(
  19643. {
  19644. tools: "57u",
  19645. cid: this.id,
  19646. stage: this.courseType,
  19647. task: this.taskCount,
  19648. tool: i,
  19649. },
  19650. "*"
  19651. );
  19652. } else if (t == 58) {
  19653. window.parent.postMessage({ tools: "58" }, "*");
  19654. } else if (t == 59) {
  19655. window.parent.postMessage({ tools: "59" }, "*");
  19656. } else if (t == 60) {
  19657. window.parent.postMessage({ tools: "60" }, "*");
  19658. } else if (t == 61) {
  19659. window.parent.postMessage({ tools: "61" }, "*");
  19660. } else if (t == 63) {
  19661. window.parent.postMessage({ tools: "63" }, "*");
  19662. } else if (t == 71) {
  19663. window.parent.postMessage({ tools: "71" }, "*");
  19664. } else if (t == 69) {
  19665. if (this.worksStudent[i].length) {
  19666. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19667. if (this.userid == this.worksStudent[i][k].userid) {
  19668. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  19669. break;
  19670. } else {
  19671. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19672. }
  19673. }
  19674. } else {
  19675. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19676. }
  19677. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  19678. .taskJson[index].toolChoose[i].englishList
  19679. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19680. .toolChoose[i].englishList
  19681. : {};
  19682. this.englishToolIndex = i;
  19683. this.myAnList = this.myAnswerList1;
  19684. this.engDialogVisible = true;
  19685. } else if (t == 70) {
  19686. if (this.worksStudent[i].length) {
  19687. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19688. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  19689. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  19690. break;
  19691. } else {
  19692. this.englishVoiceJsonWork = [];
  19693. }
  19694. }
  19695. } else {
  19696. this.englishVoiceJsonWork = [];
  19697. }
  19698. let englishVoiceJson = {}
  19699. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19700. .taskJson[index].toolChoose[i].englishVoiceJson
  19701. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19702. .toolChoose[i].englishVoiceJson
  19703. : {};
  19704. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19705. this.EnglishVoiceDialog = true;
  19706. } else if (t == 65) {
  19707. if (this.tType == 2) {
  19708. this.$message.error("不支持学生使用");
  19709. return;
  19710. }
  19711. this.uploadCid = this.tcid;
  19712. if (!this.uploadCid) {
  19713. this.$message.error(
  19714. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19715. );
  19716. return;
  19717. }
  19718. this.selectPickStudent();
  19719. } else if (t == 26) {
  19720. window.parent.postMessage(
  19721. {
  19722. tools: "26",
  19723. cid: this.id,
  19724. stage: this.courseType,
  19725. task: this.taskCount,
  19726. tool: i,
  19727. },
  19728. "*"
  19729. );
  19730. } else if (t == 40) {
  19731. if (this.evalCount > 0) {
  19732. this.updateCount(this.evalCount, t);
  19733. } else {
  19734. this.evalCount++;
  19735. a = this.evalCount;
  19736. this.toolsCount(a, t);
  19737. }
  19738. this.eScore = { eBzText: "", eStar: [] };
  19739. if (this.worksStudent[i].length) {
  19740. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19741. if (this.userid == this.worksStudent[i][k].userid) {
  19742. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19743. this.rateJson =
  19744. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19745. index
  19746. ].toolChoose[i].rateJson;
  19747. break;
  19748. } else {
  19749. this.rateJson =
  19750. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19751. index
  19752. ].toolChoose[i].rateJson;
  19753. }
  19754. }
  19755. } else {
  19756. this.rateJson =
  19757. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19758. index
  19759. ].toolChoose[i].rateJson;
  19760. }
  19761. this.isStar = false;
  19762. this.studentEvalDialogVisible = true;
  19763. } else if (t == 41) {
  19764. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19765. .taskJson[index].toolChoose[i].selectJson
  19766. ? JSON.parse(
  19767. JSON.stringify(
  19768. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19769. index
  19770. ].toolChoose[i].selectJson
  19771. )
  19772. )
  19773. : { url: "", select: [], answer: [] };
  19774. if (this.worksStudent[i].length) {
  19775. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19776. if (this.userid == this.worksStudent[i][k].userid) {
  19777. var a = this.worksStudent[i][k].works.split(",");
  19778. for (var ki = 0; ki < a.length; ki++) {
  19779. a[ki] = parseInt(a[ki]);
  19780. }
  19781. this.selectAnswer = {
  19782. answer: a,
  19783. stu: this.worksStudent[i][k].sName,
  19784. };
  19785. break;
  19786. } else {
  19787. this.selectAnswer = { answer: [], stu: "" };
  19788. }
  19789. }
  19790. } else {
  19791. this.selectAnswer = { answer: [], stu: "" };
  19792. }
  19793. this.isSelect = false;
  19794. this.dialogVisibleSelect = true;
  19795. } else if (t == 44) {
  19796. window.parent.postMessage({ tools: "44" }, "*");
  19797. } else if (t == 47) {
  19798. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19799. .taskJson[index].toolChoose[i].sentenceList
  19800. ? JSON.parse(
  19801. JSON.stringify(
  19802. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19803. index
  19804. ].toolChoose[i].sentenceList
  19805. )
  19806. )
  19807. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19808. for (var q = 0; q < this.sentenceList.length; q++) {
  19809. this.sentenceList[q].chooseSenList = [];
  19810. this.sentenceList[q].addChangeSen = [];
  19811. this.sentenceList[q].addChangeSen = JSON.parse(
  19812. JSON.stringify(this.sentenceList[q].addSentence)
  19813. );
  19814. this.sentenceList[q].chooseSenList.length =
  19815. this.sentenceList[q].rightAnswer.length;
  19816. }
  19817. this.dialogVisibleSentence = true;
  19818. } else if (t == 48) {
  19819. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19820. .taskJson[index].toolChoose[i].tableJson
  19821. ? JSON.parse(
  19822. JSON.stringify(
  19823. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19824. index
  19825. ].toolChoose[i].tableJson
  19826. )
  19827. )
  19828. : { text: "" };
  19829. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19830. if (this.worksStudent[i].length) {
  19831. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19832. if (this.userid == this.worksStudent[i][k].userid) {
  19833. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19834. break;
  19835. }
  19836. }
  19837. }
  19838. this.dialogVisibleTable = true;
  19839. } else if (t == 52) {
  19840. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19841. .taskJson[index].toolChoose[i].wordJson
  19842. ? JSON.parse(
  19843. JSON.stringify(
  19844. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19845. index
  19846. ].toolChoose[i].wordJson
  19847. )
  19848. )
  19849. : { text: "" };
  19850. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19851. if (this.worksStudent[i].length) {
  19852. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19853. if (this.userid == this.worksStudent[i][k].userid) {
  19854. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19855. break;
  19856. }
  19857. }
  19858. }
  19859. this.dialogVisibleWord = true;
  19860. } else if (t == 49) {
  19861. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19862. return
  19863. }
  19864. this.groupJson =
  19865. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19866. index
  19867. ].toolChoose[i].groupJson;
  19868. this.islock = this.groupJson.islock == 1 ? true : false;
  19869. this.dialogVisibleGroup = true;
  19870. } else if (t == 62) {
  19871. this.videoType = 0;
  19872. this.videoJson = {};
  19873. this.videoJson =
  19874. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19875. index
  19876. ].toolChoose[i].videoJson;
  19877. this.dialogVisibleVideo = true;
  19878. }
  19879. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19880. },
  19881. teacherWorkSubmit(t, i, index, s) {
  19882. this.sStudent = s;
  19883. this.toolindex = i;
  19884. this.sTool = t;
  19885. if (this.tType !== "1" && this.tType !== "4") {
  19886. return;
  19887. }
  19888. if (t == 16 || t == 32 || t == 50) {
  19889. this.dialogVisibleWorks = true;
  19890. } else if (t == 15) {
  19891. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19892. .taskJson[index].toolChoose[i].answerQ
  19893. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19894. .toolChoose[i].answerQ
  19895. : "";
  19896. this.questionAnswer = "";
  19897. this.answerDialogVisibleTeacher = true; //问答
  19898. } else if (t == 52) {
  19899. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19900. .taskJson[index].toolChoose[i].wordJson
  19901. ? JSON.parse(
  19902. JSON.stringify(
  19903. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19904. index
  19905. ].toolChoose[i].wordJson
  19906. )
  19907. )
  19908. : { text: "" };
  19909. if (this.worksStudent[i].length) {
  19910. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19911. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19912. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19913. break;
  19914. }
  19915. }
  19916. }
  19917. this.dialogVisibleWordTeacher = true; //文档
  19918. } else if (t == 4) {
  19919. this.radio = [];
  19920. this.noteName = "";
  19921. this.isAnswer = false;
  19922. if (this.askCount > 0) {
  19923. this.updateCount(this.askCount, t);
  19924. } else {
  19925. this.askCount++;
  19926. a = this.askCount;
  19927. this.toolsCount(a, t);
  19928. }
  19929. if (!this.dialogVisible2) {
  19930. this.askJson.askJson =
  19931. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19932. index
  19933. ].toolChoose[i].askJson;
  19934. this.askJson.askTitle =
  19935. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19936. index
  19937. ].toolChoose[i].askTitle;
  19938. this.askJson.askCount =
  19939. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19940. index
  19941. ].toolChoose[i].askCount;
  19942. } else {
  19943. this.askJson.askJson = this.chapTools.askJson.askJson;
  19944. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19945. this.askJson.askCount = this.chapTools.askJson.askCount;
  19946. }
  19947. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19948. if (this.askJson.askJson[k].type == "2") {
  19949. this.radio.push([]);
  19950. } else {
  19951. this.radio.push("");
  19952. }
  19953. }
  19954. this.dialogVisible5Teacher = true;
  19955. } else if (t == 45) {
  19956. this.noteName = "";
  19957. this.radio = [];
  19958. this.isAnswer = false;
  19959. if (this.askCount > 0) {
  19960. this.updateCount(this.askCount, t);
  19961. } else {
  19962. this.askCount++;
  19963. a = this.askCount;
  19964. this.toolsCount(a, t);
  19965. }
  19966. this.testJson =
  19967. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19968. index
  19969. ].toolChoose[i].testJson;
  19970. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19971. if (this.testJson.testJson[k].type == "2") {
  19972. this.radio.push([]);
  19973. } else {
  19974. this.radio.push("");
  19975. }
  19976. }
  19977. this.dialogVisibleChoiceTeacher = true;
  19978. } else if (t == 41) {
  19979. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19980. .taskJson[index].toolChoose[i].selectJson
  19981. ? JSON.parse(
  19982. JSON.stringify(
  19983. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19984. index
  19985. ].toolChoose[i].selectJson
  19986. )
  19987. )
  19988. : { url: "", select: [], answer: [] };
  19989. if (this.worksStudent[i].length) {
  19990. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19991. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19992. var a = this.worksStudent[i][k].works.split(",");
  19993. for (var ki = 0; ki < a.length; ki++) {
  19994. a[ki] = parseInt(a[ki]);
  19995. }
  19996. this.selectAnswer = {
  19997. answer: a,
  19998. stu: this.worksStudent[i][k].sName,
  19999. };
  20000. break;
  20001. } else {
  20002. this.selectAnswer = { answer: [], stu: "" };
  20003. }
  20004. }
  20005. } else {
  20006. this.selectAnswer = { answer: [], stu: "" };
  20007. }
  20008. this.isSelect = false;
  20009. this.dialogVisibleSelectTeacher = true;
  20010. } else if (t == 47) {
  20011. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  20012. .taskJson[index].toolChoose[i].sentenceList
  20013. ? JSON.parse(
  20014. JSON.stringify(
  20015. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20016. index
  20017. ].toolChoose[i].sentenceList
  20018. )
  20019. )
  20020. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  20021. for (var q = 0; q < this.sentenceList.length; q++) {
  20022. this.sentenceList[q].chooseSenList = [];
  20023. this.sentenceList[q].addChangeSen = [];
  20024. this.sentenceList[q].addChangeSen = JSON.parse(
  20025. JSON.stringify(this.sentenceList[q].addSentence)
  20026. );
  20027. this.sentenceList[q].chooseSenList.length =
  20028. this.sentenceList[q].rightAnswer.length;
  20029. }
  20030. this.dialogVisibleSentenceTeacher = true;
  20031. } else if (t == 48) {
  20032. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  20033. .taskJson[index].toolChoose[i].tableJson
  20034. ? JSON.parse(
  20035. JSON.stringify(
  20036. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20037. index
  20038. ].toolChoose[i].tableJson
  20039. )
  20040. )
  20041. : { text: "" };
  20042. if (this.worksStudent[i].length) {
  20043. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20044. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  20045. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  20046. break;
  20047. }
  20048. }
  20049. }
  20050. this.dialogVisibleTableTeacher = true;
  20051. } else if (t == 40) {
  20052. if (this.evalCount > 0) {
  20053. this.updateCount(this.evalCount, t);
  20054. } else {
  20055. this.evalCount++;
  20056. a = this.evalCount;
  20057. this.toolsCount(a, t);
  20058. }
  20059. this.eScore = { eBzText: "", eStar: [] };
  20060. if (this.worksStudent[i].length) {
  20061. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20062. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  20063. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  20064. this.rateJson =
  20065. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20066. index
  20067. ].toolChoose[i].rateJson;
  20068. break;
  20069. } else {
  20070. this.rateJson =
  20071. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20072. index
  20073. ].toolChoose[i].rateJson;
  20074. }
  20075. }
  20076. } else {
  20077. this.rateJson =
  20078. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20079. index
  20080. ].toolChoose[i].rateJson;
  20081. }
  20082. this.isStar = false;
  20083. this.studentEvalDialogVisibleTeacher = true;
  20084. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  20085. window.parent.postMessage(
  20086. {
  20087. tools: t + "teacher",
  20088. cid: this.id,
  20089. stage: this.courseType,
  20090. task: this.taskCount,
  20091. tool: i,
  20092. student: this.sStudent,
  20093. },
  20094. "*"
  20095. );
  20096. }
  20097. },
  20098. openCocoPi(tool, i, uid, uname) {
  20099. let student = {
  20100. userid: uid,
  20101. student: uname,
  20102. };
  20103. if (tool == 57) {
  20104. window.parent.postMessage(
  20105. {
  20106. tools: tool + "teacher",
  20107. cid: this.id,
  20108. stage: this.courseType,
  20109. task: this.taskCount,
  20110. tool: i,
  20111. student: student,
  20112. },
  20113. "*"
  20114. );
  20115. }
  20116. },
  20117. setRightAnswer(s, i, j) {
  20118. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  20119. if (
  20120. this.sentenceList[i].chooseSenList[q] == undefined ||
  20121. this.sentenceList[i].chooseSenList[q] == ""
  20122. ) {
  20123. this.sentenceList[i].chooseSenList[q] = s;
  20124. this.sentenceList[i].addChangeSen[j] = "";
  20125. break;
  20126. }
  20127. }
  20128. this.$forceUpdate();
  20129. },
  20130. returnCard(r, i, j) {
  20131. var a = this.sentenceList[i].addSentence.indexOf(r);
  20132. this.sentenceList[i].chooseSenList[j] = "";
  20133. this.sentenceList[i].addChangeSen[a] = r;
  20134. this.$forceUpdate();
  20135. },
  20136. // addSentenceTool() {
  20137. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20138. // this.taskCount
  20139. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  20140. // this.sentenceList = [
  20141. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  20142. // ];
  20143. // this.dialogVisibleSentence = false;
  20144. // },
  20145. toolsCount(a, t) {
  20146. let params = {
  20147. cid: this.id,
  20148. chid: this.courseType,
  20149. uid: this.userid,
  20150. tid: t,
  20151. count: a,
  20152. };
  20153. this.ajax
  20154. .get(this.$store.state.api + "insertToolsCount", params)
  20155. .then((res) => {
  20156. this.selectCount();
  20157. })
  20158. .catch((err) => {
  20159. console.error(err);
  20160. });
  20161. },
  20162. updateCount(c, t) {
  20163. c++;
  20164. let params = {
  20165. cid: this.id,
  20166. chid: this.courseType,
  20167. uid: this.userid,
  20168. tid: t,
  20169. count: c,
  20170. };
  20171. this.ajax
  20172. .get(this.$store.state.api + "updateToolsCount", params)
  20173. .then((res) => {
  20174. this.selectCount();
  20175. })
  20176. .catch((err) => {
  20177. console.error(err);
  20178. });
  20179. },
  20180. checkEva() {
  20181. if (this.evalua != "") {
  20182. for (var i = 0; i < this.evaJuri.length; i++) {
  20183. if (this.evalua == this.evaJuri[i].id) {
  20184. this.eTitle = this.evaJuri[i].title;
  20185. this.eJson = JSON.parse(this.evaJuri[i].content);
  20186. }
  20187. }
  20188. this.$forceUpdate();
  20189. setTimeout(() => {
  20190. this.setMindData();
  20191. }, 0);
  20192. }
  20193. },
  20194. selectEva() {
  20195. let params = {
  20196. oid: this.oid,
  20197. };
  20198. this.ajax
  20199. .get(this.$store.state.api + "selectAllEvaluation", params)
  20200. .then((res) => {
  20201. this.evaJuri = res.data[0];
  20202. })
  20203. .catch((err) => {
  20204. console.error(err);
  20205. });
  20206. },
  20207. setMindData() {
  20208. this.data.data = [];
  20209. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  20210. let _eJson = Object.keys(this.eJson);
  20211. let _e = this.eJson;
  20212. for (let i = 0; i < _eJson.length; i++) {
  20213. let element = _e[_eJson[i]];
  20214. this.data.data.push({
  20215. id: element.id,
  20216. parentid: "root",
  20217. topic: element.name,
  20218. });
  20219. let _eJsonc = Object.keys(element.child);
  20220. let _e2 = element.child;
  20221. for (let j = 0; j < _eJsonc.length; j++) {
  20222. let _ec = _e2[_eJsonc[j]];
  20223. this.data.data.push({
  20224. id: _ec.id,
  20225. parentid: element.id,
  20226. topic: _ec.name,
  20227. });
  20228. let _eJsonz = Object.keys(_ec.child);
  20229. let _e3 = _ec.child;
  20230. for (let z = 0; z < _eJsonz.length; z++) {
  20231. let _ez = _e3[_eJsonz[z]];
  20232. this.data.data.push({
  20233. id: _ez.id,
  20234. parentid: _ec.id,
  20235. topic: _ez.name,
  20236. });
  20237. }
  20238. }
  20239. }
  20240. this.$forceUpdate();
  20241. },
  20242. checkFileFull(type, url) {
  20243. this.fullDialogVisible = true;
  20244. this.fulltype = type;
  20245. this.fullUrl = url;
  20246. },
  20247. async checkFileFull1(t, f) {
  20248. this.fullDialogVisible = true;
  20249. if (t == 6) {
  20250. this.fulltype = 1;
  20251. this.fullUrl = JSON.parse(JSON.stringify(f));
  20252. } else if (t == 8) {
  20253. this.fulltype = 2;
  20254. this.fullUrl = f.url;
  20255. } else if (
  20256. t == 3 &&
  20257. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  20258. "PDF"
  20259. ) {
  20260. this.fulltype = 3;
  20261. this.fullUrl = f.url;
  20262. } else if (t == 3) {
  20263. this.fulltype = 2;
  20264. let _uuurl = await this.checkLink(f.url);
  20265. this.fullUrl =
  20266. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  20267. }
  20268. },
  20269. openSname(n, id, i, uid) {
  20270. this.snameWid = id;
  20271. this.worksSName = n;
  20272. this.worksSid = uid == n ? "" : uid;
  20273. this.toolindex = i;
  20274. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  20275. if (!this.uploadCid) {
  20276. this.$message.error(
  20277. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  20278. );
  20279. return;
  20280. }
  20281. this.selectUploadStudent(1);
  20282. },
  20283. updateName() {
  20284. let params = {
  20285. n: this.worksSName,
  20286. cid: this.snameWid,
  20287. };
  20288. this.ajax
  20289. .get(this.$store.state.api + "updateCourseWorksName", params)
  20290. .then((res) => {
  20291. this.$message({
  20292. message: "修改成功",
  20293. type: "success",
  20294. });
  20295. this.dialogVisibleSname = false;
  20296. this.getCourseDetail(2);
  20297. this.snameWid = "";
  20298. this.worksSName = "";
  20299. })
  20300. .catch((err) => {
  20301. console.error(err);
  20302. });
  20303. },
  20304. downloadFile2(f) {
  20305. // const loading = this.$loading.service({
  20306. // background: "rgba(255, 255, 255, 0.7)",
  20307. // target: document.body,
  20308. // text: "文件加载中...",
  20309. // });
  20310. // let url2 = f.url;
  20311. // let _url2 = "";
  20312. // if (
  20313. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20314. // ) {
  20315. // _url2 = url2.split(
  20316. // "https://view.officeapps.live.com/op/view.aspx?src="
  20317. // )[1];
  20318. // } else {
  20319. // _url2 = url2;
  20320. // }
  20321. // let params = {
  20322. // url: _url2,
  20323. // name: f.name,
  20324. // };
  20325. // this.ajax
  20326. // .get(this.$store.state.api + "download", params)
  20327. // .then((res) => {
  20328. // loading.close();
  20329. // let content = res.data.data.data;
  20330. // let ab = new ArrayBuffer(content.length);
  20331. // let view = new Uint8Array(ab);
  20332. // for (var i = 0; i < content.length; ++i) {
  20333. // view[i] = content[i];
  20334. // }
  20335. // let elink = document.createElement("a");
  20336. // elink.download = f.name;
  20337. // elink.style.display = "none";
  20338. // let blob = new Blob([ab], {
  20339. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  20340. // });
  20341. // elink.href = URL.createObjectURL(blob);
  20342. // document.body.appendChild(elink);
  20343. // elink.click();
  20344. // document.body.removeChild(elink);
  20345. // })
  20346. // .catch((err) => {
  20347. // loading.close();
  20348. // console.error(err);
  20349. // });
  20350. var credentials = {
  20351. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20352. secretAccessKey: "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",
  20353. }; //秘钥形式的登录上传
  20354. window.AWS.config.update(credentials);
  20355. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20356. let url2 = f.url;
  20357. let _url2 = "";
  20358. if (
  20359. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20360. ) {
  20361. _url2 = url2.split(
  20362. "https://view.officeapps.live.com/op/view.aspx?src="
  20363. )[1];
  20364. } else {
  20365. _url2 = url2;
  20366. }
  20367. let _this = this;
  20368. _this.downLoading = true
  20369. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20370. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20371. var params = {
  20372. Bucket: "ccrb",
  20373. Key: name
  20374. };
  20375. s3.getObject(params, function (err, data) {
  20376. _this.downLoading = false
  20377. if (err) console.log(err, err.stack); // an error occurred
  20378. else {
  20379. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20380. let a = document.createElement("a");
  20381. a.name = f.name;
  20382. a.href = url;
  20383. a.download = f.name;
  20384. a.click();
  20385. console.log(data);
  20386. } // sxuccessful response
  20387. });
  20388. return;
  20389. let url = f.url;
  20390. let _url = "";
  20391. if (
  20392. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20393. ) {
  20394. _url = url.split(
  20395. "https://view.officeapps.live.com/op/view.aspx?src="
  20396. )[1];
  20397. } else {
  20398. _url = url;
  20399. }
  20400. _this.downLoading = true
  20401. // const loading = _this.$loading.service({
  20402. // background: "rgba(255, 255, 255, 0.7)",
  20403. // target: document.body,
  20404. // text: "文件加载中...",
  20405. // });
  20406. let x = new XMLHttpRequest();
  20407. x.open("GET", _url, true);
  20408. x.responseType = "blob";
  20409. x.onload = function () {
  20410. _this.downLoading = false
  20411. // loading.close();
  20412. let url = window.URL.createObjectURL(new Blob([x.response]));
  20413. let a = document.createElement("a");
  20414. a.name = f.name;
  20415. a.href = url;
  20416. a.download = f.name;
  20417. a.click();
  20418. };
  20419. x.send();
  20420. },
  20421. downloadFile(url) {
  20422. var credentials = {
  20423. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20424. secretAccessKey: "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",
  20425. }; //秘钥形式的登录上传
  20426. window.AWS.config.update(credentials);
  20427. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20428. let url2 = url;
  20429. let _url2 = "";
  20430. if (
  20431. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20432. ) {
  20433. _url2 = url2.split(
  20434. "https://view.officeapps.live.com/op/view.aspx?src="
  20435. )[1];
  20436. } else {
  20437. _url2 = url2;
  20438. }
  20439. const loading2 = this.$loading.service({
  20440. background: "rgba(255, 255, 255, 0.7)",
  20441. target: document.body,
  20442. text: "文件加载中...",
  20443. });
  20444. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20445. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20446. var params = {
  20447. Bucket: "ccrb",
  20448. Key: name
  20449. };
  20450. s3.getObject(params, function (err, data) {
  20451. loading2.close();
  20452. if (err) console.log(err, err.stack); // an error occurred
  20453. else {
  20454. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20455. let a = document.createElement("a");
  20456. a.name = name;
  20457. a.href = url;
  20458. a.download = name;
  20459. a.click();
  20460. console.log(data);
  20461. } // sxuccessful response
  20462. });
  20463. return;
  20464. let _this = this;
  20465. let _url = "";
  20466. if (
  20467. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20468. ) {
  20469. _url = url.split(
  20470. "https://view.officeapps.live.com/op/view.aspx?src="
  20471. )[1];
  20472. } else {
  20473. _url = url;
  20474. }
  20475. const x = new XMLHttpRequest();
  20476. x.open("GET", _url, true);
  20477. x.responseType = "blob";
  20478. const loading = _this.$loading.service({
  20479. background: "rgba(255, 255, 255, 0.7)",
  20480. target: document.body,
  20481. text: "文件加载中...",
  20482. });
  20483. // _this.$message.success("文件下载中...");
  20484. x.onload = function (e) {
  20485. loading.close();
  20486. let content = x.response;
  20487. let elink = document.createElement("a");
  20488. elink.download = decodeURI(
  20489. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  20490. );
  20491. elink.style.display = "none";
  20492. let blob = new Blob([content]);
  20493. elink.href = URL.createObjectURL(blob);
  20494. document.body.appendChild(elink);
  20495. elink.click();
  20496. document.body.removeChild(elink);
  20497. };
  20498. x.send();
  20499. },
  20500. openLine(url) {
  20501. window.open(url);
  20502. },
  20503. resize() {
  20504. if (document.getElementsByClassName("box_course").length) {
  20505. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20506. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20507. if (this.showType == 2 || this.showType == 3) {
  20508. document.getElementsByClassName("navBox")[0].style.height =
  20509. a - 40 + 0+ "px";
  20510. } else {
  20511. document.getElementsByClassName("navBox")[0].style.height =
  20512. a - 40 + "px";
  20513. }
  20514. }
  20515. this.Stbodywidth =
  20516. document.getElementsByClassName("student_body").length &&
  20517. document.getElementsByClassName("student_body")[0].offsetWidth;
  20518. },
  20519. closeDraw() {
  20520. this.bg = null;
  20521. this.drawShow = false;
  20522. },
  20523. showPicturePaint(url) {
  20524. let params = {
  20525. img: url,
  20526. };
  20527. this.ajax
  20528. .get(this.$store.state.api + "imgToBase64", params)
  20529. .then((res) => {
  20530. this.drawShow = true;
  20531. this.bg = res.data[0].img;
  20532. })
  20533. .catch((err) => {
  20534. console.error(err);
  20535. });
  20536. },
  20537. addImgDraw(base64) {
  20538. let file = { name: "批注图.png" };
  20539. let img = this.dataUrlToFile(base64, file);
  20540. this.beforeUpload1(img, 5);
  20541. },
  20542. addImgDrawImG(url) {
  20543. // console.log(url);
  20544. let params = [
  20545. {
  20546. wid: this.commentDetail.wid,
  20547. img: url,
  20548. },
  20549. ];
  20550. this.ajax
  20551. .post(this.$store.state.api + "updateCourseWorks", params)
  20552. .then((res) => {
  20553. this.$message({
  20554. message: "提交成功",
  20555. type: "success",
  20556. });
  20557. this.drawShow = false;
  20558. this.bg = "";
  20559. this.selectSWorks();
  20560. this.selectStudent();
  20561. })
  20562. .catch((err) => {
  20563. this.$message.error("提交失败");
  20564. console.error(err);
  20565. });
  20566. },
  20567. deletePicturePaint() {
  20568. this.$confirm("确定删除此批注吗?", "提示", {
  20569. confirmButtonText: "确定",
  20570. cancelButtonText: "取消",
  20571. type: "warning",
  20572. })
  20573. .then(() => {
  20574. let params = [
  20575. {
  20576. wid: this.commentDetail.wid,
  20577. img: "",
  20578. },
  20579. ];
  20580. this.ajax
  20581. .post(this.$store.state.api + "updateCourseWorks", params)
  20582. .then((res) => {
  20583. this.$message({
  20584. message: "删除成功",
  20585. type: "success",
  20586. });
  20587. this.selectSWorks();
  20588. this.selectStudent();
  20589. })
  20590. .catch((err) => {
  20591. this.$message.error("删除失败");
  20592. console.error(err);
  20593. });
  20594. })
  20595. .catch(() => {});
  20596. },
  20597. getAudioVideo(constraintsData) {
  20598. if (navigator.mediaDevices === undefined) {
  20599. navigator.mediaDevices = {};
  20600. }
  20601. if (navigator.mediaDevices.getUserMedia === undefined) {
  20602. navigator.mediaDevices.getUserMedia = function (constraints) {
  20603. // 首先,如果有getUserMedia的话,就获得它
  20604. var getUserMedia =
  20605. navigator.getUserMedia ||
  20606. navigator.webkitGetUserMedia ||
  20607. navigator.mozGetUserMedia ||
  20608. navigator.msGetUserMedia;
  20609. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  20610. if (!getUserMedia) {
  20611. return Promise.reject({ code: 404 });
  20612. }
  20613. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  20614. return new Promise(function (resolve, reject) {
  20615. getUserMedia.call(navigator, constraints, resolve, reject);
  20616. });
  20617. };
  20618. }
  20619. return navigator.mediaDevices.getUserMedia(constraintsData);
  20620. },
  20621. /**
  20622. * 开始录制
  20623. */
  20624. startRecording(callback) {
  20625. let _function = (screenStream) => {
  20626. this.addStreamStopListener(screenStream, () => {
  20627. console.log("流停止监听");
  20628. this.stopRecording();
  20629. this.$emit("streamStop", {});
  20630. // this.stopRecording();
  20631. });
  20632. var options = {
  20633. type: "video",
  20634. mimeType: "video/webm",
  20635. disableLogs: false,
  20636. getNativeBlob: false, // enable it for longer recordings
  20637. ignoreMutedMedia: false,
  20638. };
  20639. // this.video.srcObject = screenStream;
  20640. this.recorder = RecordRTC(screenStream, options);
  20641. this.recorder.startRecording();
  20642. this.recorder.screen = screenStream;
  20643. this.videoStart = true;
  20644. // callback(true);
  20645. };
  20646. this.getAudioVideo({ audio: true })
  20647. .then((res) => {
  20648. this.captureScreen(_function, true);
  20649. console.log("已点击允许,开启成功");
  20650. })
  20651. .catch((err) => {
  20652. // console.log('浏览器不支持,请更换浏览器')
  20653. // } else {
  20654. this.captureScreen(_function, false);
  20655. console.log("请检查是否存在麦克风");
  20656. });
  20657. },
  20658. /**
  20659. * 停止录制
  20660. */
  20661. stopRecording(callback) {
  20662. this.recorder.stopRecording(() => {
  20663. // this.video.src = this.video.srcObject = null;
  20664. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  20665. const url = URL.createObjectURL(this.recorder.getBlob());
  20666. const a = document.createElement("a"); //this.fileName+
  20667. let videoFile = new File(
  20668. [this.recorder.getBlob()],
  20669. this.courseDetail.title + "录屏.mp4",
  20670. {
  20671. type: "video/mp4",
  20672. }
  20673. );
  20674. let downloadUrl = URL.createObjectURL(videoFile);
  20675. document.body.appendChild(a);
  20676. a.style.display = "none";
  20677. a.href = url;
  20678. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  20679. a.click();
  20680. this.recorder.screen.stop();
  20681. this.recorder.destroy();
  20682. this.recorder = null;
  20683. this.videoStart = false;
  20684. // callback(false);
  20685. });
  20686. },
  20687. //初始化
  20688. captureScreen(callback, type) {
  20689. if (navigator.getDisplayMedia) {
  20690. //录制结束,文件下载
  20691. navigator
  20692. .getDisplayMedia({
  20693. video: true,
  20694. })
  20695. .then((screenStream) => {
  20696. if (type) {
  20697. navigator.mediaDevices
  20698. .getUserMedia({ audio: true })
  20699. .then((mic) => {
  20700. screenStream.addTrack(mic.getTracks()[0]);
  20701. callback(screenStream);
  20702. });
  20703. } else {
  20704. callback(screenStream);
  20705. }
  20706. })
  20707. .catch(function (error) {
  20708. console.log("error", error);
  20709. });
  20710. } else if (navigator.mediaDevices.getDisplayMedia) {
  20711. navigator.mediaDevices
  20712. .getDisplayMedia({
  20713. video: true,
  20714. })
  20715. .then((screenStream) => {
  20716. if (type) {
  20717. navigator.mediaDevices
  20718. .getUserMedia({ audio: true })
  20719. .then((mic) => {
  20720. screenStream.addTrack(mic.getTracks()[0]);
  20721. callback(screenStream);
  20722. });
  20723. } else {
  20724. callback(screenStream);
  20725. }
  20726. })
  20727. .catch(function (error) {
  20728. console.log("error", error);
  20729. });
  20730. } else {
  20731. var error = "getDisplayMedia API are not supported in this browser.";
  20732. console.log("error", error);
  20733. alert(error);
  20734. }
  20735. },
  20736. //流监听
  20737. addStreamStopListener(stream, callback) {
  20738. stream.addEventListener(
  20739. "ended",
  20740. function () {
  20741. callback();
  20742. callback = function () {};
  20743. },
  20744. false
  20745. );
  20746. stream.addEventListener(
  20747. "inactive",
  20748. function () {
  20749. callback();
  20750. callback = function () {};
  20751. },
  20752. false
  20753. );
  20754. stream.getTracks().forEach(function (track) {
  20755. track.addEventListener(
  20756. "ended",
  20757. function () {
  20758. callback();
  20759. callback = function () {};
  20760. },
  20761. false
  20762. );
  20763. track.addEventListener(
  20764. "inactive",
  20765. function () {
  20766. callback();
  20767. callback = function () {};
  20768. },
  20769. false
  20770. );
  20771. });
  20772. },
  20773. updateGroup() {
  20774. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20775. this.dialogVisibleGroup2 = true;
  20776. },
  20777. numberPan() {
  20778. if (
  20779. /[^\d]/.test(this.groupJson.number) ||
  20780. this.groupJson.number < 2 ||
  20781. this.groupJson.number > 10
  20782. ) {
  20783. this.$message.error("请输入2-10的数字");
  20784. this.groupJson.number = "";
  20785. }
  20786. },
  20787. updateGroupJson() {
  20788. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20789. if (
  20790. this.groupStudentUid[this.toolindex][i].length >
  20791. this.groupJson2.number
  20792. ) {
  20793. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20794. return;
  20795. }
  20796. }
  20797. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20798. this.islock = this.groupJson.islock == 1 ? true : false;
  20799. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20800. this.taskCount
  20801. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20802. let params = [
  20803. {
  20804. cid: this.id,
  20805. chapters: JSON.stringify(this.chapInfoList),
  20806. uid: this.userid,
  20807. unitIndex: this.courseType,
  20808. },
  20809. ];
  20810. this.ajax
  20811. .post(this.$store.state.api + "updateWorkNew4", params)
  20812. .then((res) => {
  20813. this.$message.success("设置成功");
  20814. this.getCourseDetail(2);
  20815. this.dialogVisibleGroup2 = false;
  20816. this.groupJson2 = {};
  20817. this.$forceUpdate();
  20818. })
  20819. .catch((err) => {
  20820. this.$message.error("网络不佳");
  20821. console.error(err);
  20822. });
  20823. },
  20824. lockChair() {
  20825. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20826. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20827. this.updateGroupJson();
  20828. },
  20829. selectGroup(index) {
  20830. this.getCourseDetail(2, index);
  20831. },
  20832. joinGroup(index) {
  20833. if (this.groupJson.islock == 2) {
  20834. this.$message.error("位置已被锁定,无法加入");
  20835. return;
  20836. }
  20837. if (
  20838. this.groupStudent[this.toolindex][index].length >
  20839. this.groupJson.number ||
  20840. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20841. ) {
  20842. this.$message.error("位置已满,无法加入");
  20843. return;
  20844. }
  20845. let params = [
  20846. {
  20847. cid: this.id,
  20848. stage: this.courseType,
  20849. task: this.taskCount,
  20850. tool: this.toolindex,
  20851. g: index,
  20852. uid: this.userid,
  20853. },
  20854. ];
  20855. this.ajax
  20856. .post(this.$store.state.api + "joinGroup", params)
  20857. .then((res) => {
  20858. this.$message.success("加入成功");
  20859. this.getCourseDetail(2);
  20860. })
  20861. .catch((err) => {
  20862. this.$message.error("网络不佳");
  20863. console.error(err);
  20864. });
  20865. },
  20866. exitGroup(id) {
  20867. if (this.groupJson.islock == 2) {
  20868. this.$message.error("位置已被锁定,无法退出");
  20869. return;
  20870. }
  20871. let params = [
  20872. {
  20873. gid: id,
  20874. },
  20875. ];
  20876. this.ajax
  20877. .post(this.$store.state.api + "exitGroup", params)
  20878. .then((res) => {
  20879. this.$message.success("退出成功");
  20880. this.getCourseDetail(2);
  20881. })
  20882. .catch((err) => {
  20883. this.$message.error("网络不佳");
  20884. console.error(err);
  20885. });
  20886. },
  20887. groupUpload(index, task, gindex) {
  20888. this.taskCount = task;
  20889. this.toolindex = index;
  20890. this.groupIndex = gindex;
  20891. this.dialogVisibleGroupWork = true;
  20892. },
  20893. updateGroupChair(user) {
  20894. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20895. el.label = index;
  20896. return index != user.group;
  20897. });
  20898. this.updateGroupUser = user;
  20899. this.dialogVisibleUpdateGroup = true;
  20900. },
  20901. updateChair() {
  20902. if (
  20903. this.groupStudent[this.toolindex][this.checkChair].length >
  20904. this.groupJson.number ||
  20905. this.groupStudent[this.toolindex][this.checkChair].length ==
  20906. this.groupJson.number
  20907. ) {
  20908. this.$message.error("位置已满,无法加入");
  20909. return;
  20910. }
  20911. let params = [
  20912. {
  20913. cid: this.id,
  20914. stage: this.courseType,
  20915. task: this.taskCount,
  20916. tool: this.toolindex,
  20917. g: this.checkChair,
  20918. uid: this.updateGroupUser.userid,
  20919. },
  20920. ];
  20921. this.ajax
  20922. .post(this.$store.state.api + "joinGroup", params)
  20923. .then((res) => {
  20924. this.$message.success("修改成功");
  20925. this.updateGroupUser = {};
  20926. this.checkChair = "";
  20927. this.updateGroupArray = {};
  20928. this.dialogVisibleUpdateGroup = false;
  20929. this.getCourseDetail(2);
  20930. })
  20931. .catch((err) => {
  20932. this.$message.error("网络不佳");
  20933. console.error(err);
  20934. });
  20935. },
  20936. deleteGroupChair(gindex) {
  20937. this.checkDeleteGroup = [];
  20938. this.deleteGroupUser = JSON.parse(
  20939. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20940. );
  20941. this.deleteGroupArray = this.groupJson.group[gindex];
  20942. this.groupIndex = gindex;
  20943. this.dialogVisibleDeleteGroup = true;
  20944. },
  20945. async deleteChair() {
  20946. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  20947. const gid =
  20948. this.groupStudent[this.toolindex][this.groupIndex][
  20949. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  20950. this.checkDeleteGroup[i]
  20951. )
  20952. ];
  20953. let params = [
  20954. {
  20955. gid: gid.id,
  20956. },
  20957. ];
  20958. var a = await this.deleteChairA(params);
  20959. if (i == this.checkDeleteGroup.length - 1) {
  20960. this.$message.success("退出成功");
  20961. this.dialogVisibleDeleteGroup = false;
  20962. this.deleteGroupUser = [];
  20963. this.deleteGroupArray = {};
  20964. this.groupIndex = "";
  20965. this.checkDeleteGroup = [];
  20966. this.getCourseDetail(2);
  20967. }
  20968. }
  20969. },
  20970. deleteChairA(params) {
  20971. return new Promise((resolve, reject) => {
  20972. this.ajax
  20973. .post(this.$store.state.api + "exitGroup", params)
  20974. .then((res) => {
  20975. resolve(1);
  20976. })
  20977. .catch((err) => {
  20978. this.$message.error("网络不佳");
  20979. console.error(err);
  20980. });
  20981. });
  20982. },
  20983. contract(i) {
  20984. if (this.isCloseList[i].isClose == 0) {
  20985. this.isCloseList[i].isClose = 1;
  20986. } else {
  20987. this.isCloseList[i].isClose = 0;
  20988. }
  20989. this.$forceUpdate();
  20990. },
  20991. openWordCloud(toolindex) {
  20992. let array = [];
  20993. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  20994. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  20995. array.push({ name: works });
  20996. }
  20997. if (this.isGroup) {
  20998. for (var i = 0; i < this.courseGroup.group.length; i++) {
  20999. let works = this.courseGroup.group[i].works[toolindex];
  21000. for (var j = 0; j < works.length; j++) {
  21001. let answer = JSON.parse(works[j].works)[0].answer;
  21002. array.push({ name: answer });
  21003. }
  21004. }
  21005. }
  21006. this.wordCloudData = array;
  21007. this.dialogVisibleWordCloud = true;
  21008. },
  21009. openTips(i) {
  21010. this.tipsIndex = i;
  21011. this.downDialogVisible = true;
  21012. },
  21013. uploadWorks() {
  21014. this.$confirm("确定导出作业吗?", "提示", {
  21015. confirmButtonText: "确定",
  21016. cancelButtonText: "取消",
  21017. type: "warning",
  21018. })
  21019. .then(() => {
  21020. const loading = this.$loading.service({
  21021. background: "rgba(255, 255, 255, 0.7)",
  21022. target: document.body,
  21023. text: "文件加载中...",
  21024. });
  21025. const _worksStudent = this.worksStudent;
  21026. let url = [];
  21027. var counts = {};
  21028. for (var l = 0; l < _worksStudent[i].length; l++) {
  21029. var item = _worksStudent[i][l];
  21030. var name = item.sName;
  21031. if (!counts.hasOwnProperty(name)) {
  21032. counts[name] = 0;
  21033. } else {
  21034. counts[name]++;
  21035. }
  21036. if (counts[name] > 0) {
  21037. item.sName += " (" + counts[name] + ")";
  21038. }
  21039. }
  21040. for (var l = 0; l < _worksStudent[i].length; l++) {
  21041. var item = _worksStudent[i][l];
  21042. if (
  21043. item.works.indexOf(
  21044. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  21045. ) !== -1 &&
  21046. item.works.indexOf("img") === -1
  21047. ) {
  21048. url.push({ name: item.sName, url: item.works });
  21049. }
  21050. }
  21051. // var toolList = [
  21052. // { name: "电子白板", tool: 1 },
  21053. // { name: "思维导图", tool: 3 },
  21054. // { name: "协同文档", tool: 6 },
  21055. // { name: "思维网格", tool: 7 },
  21056. // { name: "素材库", tool: 8 },
  21057. // { name: "学习资料", tool: 17 },
  21058. // { name: "便签", tool: 2 },
  21059. // { name: "问卷调查", tool: 4 },
  21060. // { name: "选择题", tool: 45 },
  21061. // { name: "倒计时", tool: 10 },
  21062. // { name: "问答", tool: 15 },
  21063. // { name: "课程设计", tool: 26 },
  21064. // { name: "训练服务器", tool: 18 },
  21065. // { name: "作业提交", tool: 16 },
  21066. // { name: "批量上传", tool: 50 },
  21067. // { name: "AIoT Blockly", tool: 21 },
  21068. // { name: "AI Python", tool: 23 },
  21069. // { name: "AI Blockly", tool: 24 },
  21070. // { name: "目标管理", tool: 25 },
  21071. // { name: "数学画板", tool: 31 },
  21072. // { name: "翻译", tool: 28 },
  21073. // { name: "魔盒识字", tool: 37 },
  21074. // { name: "数学画板", tool: 31 },
  21075. // { name: "24点", tool: 38 },
  21076. // { name: "GeoGebra", tool: 39 },
  21077. // { name: "源码编辑", tool: 32 },
  21078. // { name: "个人评价", tool: 40 },
  21079. // { name: "选择匹配", tool: 41 },
  21080. // { name: "汉字宫", tool: 44 },
  21081. // { name: "排序", tool: 47 },
  21082. // { name: "表格", tool: 48 },
  21083. // { name: "文档", tool: 52 },
  21084. // { name: "学生分组", tool: 49 },
  21085. // { name: "CocoPi", tool: 57 },
  21086. // { name: "模拟驾驶", tool: 58 },
  21087. // { name: "路径搜索", tool: 59 },
  21088. // { name: "深度学习", tool: 60 },
  21089. // { name: "全历史", tool: 61 },
  21090. // { name: "交互视频", tool: 62 },
  21091. // { name: "海龟编程", tool: 63 },
  21092. // { name: "挑人", tool: 65 },
  21093. // { name: "公式编辑", tool: 66 },
  21094. // { name: "分子结构", tool: 67 },
  21095. // { name: "时间轴", tool: 68 },
  21096. // ];
  21097. // var toolName = "";
  21098. // for(var w = 0;w<toolList.length;w++){
  21099. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  21100. // toolName = toolList[w].name;
  21101. // }
  21102. // }
  21103. console.log(url);
  21104. this.downLoadAll(url, loading);
  21105. })
  21106. .catch(() => {});
  21107. },
  21108. downLoadAll(url, loading) {
  21109. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  21110. const zip = new JSZip();
  21111. const cache = {};
  21112. const promises = [];
  21113. data.forEach((item) => {
  21114. const promise = getFile(item.url).then((data) => {
  21115. if (data.data != 1) {
  21116. // 下载文件, 并存成ArrayBuffer对象
  21117. const file_name =
  21118. item.name +
  21119. "." +
  21120. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  21121. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  21122. cache[file_name] = data.data;
  21123. }
  21124. });
  21125. promises.push(promise);
  21126. });
  21127. Promise.all(promises).then(() => {
  21128. zip.generateAsync({ type: "blob" }).then((content) => {
  21129. // 生成二进制流
  21130. FileSaver.saveAs(
  21131. content,
  21132. this.courseDetail.title + "-" + "作业提交工具.zip"
  21133. ); // 利用file-saver保存文件 自定义文件名
  21134. setTimeout(() => {
  21135. loading.close();
  21136. }, 2000);
  21137. });
  21138. });
  21139. },
  21140. pickStudent(stu) {
  21141. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  21142. return;
  21143. }
  21144. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  21145. confirmButtonText: "确定",
  21146. cancelButtonText: "取消",
  21147. type: "warning",
  21148. })
  21149. .then(() => {
  21150. let params = [
  21151. {
  21152. uid: stu.userid,
  21153. cid: this.id,
  21154. stage: this.courseType,
  21155. task: this.taskCount,
  21156. tool: this.toolindex,
  21157. },
  21158. ];
  21159. this.ajax
  21160. .post(this.$store.state.api + "updateCoursePick", params)
  21161. .then((res) => {
  21162. this.$message.success("操作成功");
  21163. this.getPick();
  21164. })
  21165. .catch((err) => {
  21166. this.$message.error("网络不佳");
  21167. console.error(err);
  21168. });
  21169. })
  21170. .catch(() => {});
  21171. },
  21172. selectUser(){
  21173. let params = {
  21174. userid: this.userid,
  21175. };
  21176. this.ajax
  21177. .get(this.$store.state.api + "selectUser", params)
  21178. .then((res) => {
  21179. this.userMes = res.data[0];
  21180. })
  21181. .catch((err) => {
  21182. console.error(err);
  21183. });
  21184. },
  21185. setEngText(i){
  21186. this.newEngIndex = i;
  21187. this.$forceUpdate();
  21188. },
  21189. addCorrect(){
  21190. this.$confirm("你确定提交批改嘛?", "提示", {
  21191. confirmButtonText: "确定",
  21192. showCancelButton: false,
  21193. closeOnClickModal: false,
  21194. type: "warning",
  21195. })
  21196. .then(() => {
  21197. let params = {
  21198. cid: this.id,
  21199. s: parseInt(this.courseType),
  21200. t: this.taskCount,
  21201. tool: this.toolindex,
  21202. wid: this.engWid,
  21203. c: this.userid,
  21204. 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) : "",
  21205. };
  21206. this.ajax
  21207. .get(this.$store.state.api + "addEngC", params)
  21208. .then((res) => {
  21209. this.$message.success("提交成功");
  21210. this.engUpdateDialogVisible = false;
  21211. })
  21212. .catch((err) => {
  21213. console.error(err);
  21214. });
  21215. })
  21216. .catch(() => {});
  21217. },
  21218. selectEngC(id,z){
  21219. let params = {
  21220. workid: id,
  21221. };
  21222. this.ajax
  21223. .get(this.$store.state.api + "selectEngC", params)
  21224. .then((res) => {
  21225. if(res.data[0].length == 0){
  21226. this.newEnglishList.engTitle = z.engTitle;
  21227. this.newEnglishList.engText = z.engText;
  21228. }else{
  21229. var a = res.data[0];
  21230. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  21231. if(this.userMes[0].type == 2){
  21232. var snum = 0;
  21233. for(var i = 0;i<a.length;i++){
  21234. if(this.userMes[0].userid == a[i].correct){
  21235. this.newEnglishList = JSON.parse(a[i].cWork);
  21236. snum = 1;
  21237. }
  21238. }
  21239. if(snum == 0){
  21240. this.newEnglishList = { engTitle:"",engText:"" };
  21241. this.newEnglishList.engTitle = z.engTitle;
  21242. this.newEnglishList.engText = z.engText;
  21243. }
  21244. }else if(this.userMes[0].type == 1){
  21245. var num = 0;
  21246. for(var w= 0;w<a.length;w++){
  21247. if(this.userMes[0].userid == a[w].correct){
  21248. num = 1;
  21249. }
  21250. }
  21251. if(num == 0){
  21252. this.isNoUserid = true;
  21253. var c = JSON.parse(JSON.stringify(z));
  21254. this.oldEnglishJson1 = c;
  21255. }else{
  21256. this.isNoUserid = false;
  21257. }
  21258. var b = a.sort((item, index) => {
  21259. console.log(item)
  21260. if (item.correct === this.userMes[0].userid) {
  21261. return -1; // 将a移到前面
  21262. } else if (index.correct === this.userMes[0].userid) {
  21263. return 1; // 将b移到前面
  21264. } else {
  21265. return 0; // 保持默认顺序
  21266. }
  21267. });
  21268. for(var p = 0;p<b.length;p++){
  21269. for(var y = 0;y<ppp.length;y++){
  21270. if(b[p].id == ppp[y].id){
  21271. b[p].cWork = JSON.parse(ppp[y].cWork);
  21272. break
  21273. }
  21274. }
  21275. }
  21276. this.newEnglishList1 = b;
  21277. }
  21278. }
  21279. this.greyType = false;
  21280. setTimeout(() => {
  21281. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21282. if(this.newEnglishList1.length > 0){
  21283. if(this.isNoUserid == true){
  21284. this.engListLength = this.newEnglishList1.length + 1;
  21285. this.newEngIndex = -1;
  21286. }else{
  21287. this.engListLength = this.newEnglishList1.length;
  21288. this.newEngIndex = 0;
  21289. }
  21290. }
  21291. if(this.userMes[0].type == 2){
  21292. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  21293. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  21294. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  21295. }else if(this.newEngIndex == -1){
  21296. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  21297. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  21298. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  21299. }
  21300. }, 500);
  21301. this.engUpdateDialogVisible = true;
  21302. this.$forceUpdate();
  21303. })
  21304. .catch((err) => {
  21305. console.error(err);
  21306. });
  21307. },
  21308. getPick() {
  21309. let params = {
  21310. cid: this.id,
  21311. };
  21312. this.ajax
  21313. .get(this.$store.state.api + "getPick", params)
  21314. .then((res) => {
  21315. let array = [];
  21316. for (var i = 0; i < res.data[0].length; i++) {
  21317. array.push(res.data[0][i].userid);
  21318. }
  21319. this.isPickStudent = array;
  21320. if (array.indexOf(this.userid) !== -1) {
  21321. this.$confirm("你被老师选到啦!", "提示", {
  21322. confirmButtonText: "确定",
  21323. showCancelButton: false,
  21324. closeOnClickModal: false,
  21325. type: "warning",
  21326. })
  21327. .then(() => {
  21328. let pa = [
  21329. {
  21330. uid: this.userid,
  21331. cid: this.id,
  21332. },
  21333. ];
  21334. this.ajax
  21335. .post(this.$store.state.api + "deletePick", pa)
  21336. .then((res) => {
  21337. this.getPick();
  21338. })
  21339. .catch((err) => {
  21340. this.$message.error("网络不佳");
  21341. console.error(err);
  21342. });
  21343. })
  21344. .catch(() => {});
  21345. }
  21346. })
  21347. .catch((err) => {
  21348. this.$message.error("网络不佳");
  21349. console.error(err);
  21350. });
  21351. },
  21352. foldEva() {
  21353. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  21354. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  21355. } else {
  21356. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  21357. setTimeout(() => {
  21358. this.checkEva();
  21359. setTimeout(() => {
  21360. this.checkEva();
  21361. }, 500);
  21362. }, 0);
  21363. }
  21364. this.$forceUpdate();
  21365. },
  21366. panToolHeight(tool) {
  21367. var _tool = document.querySelectorAll('#'+tool)[0]
  21368. var _toolA = _tool ? _tool.offsetHeight : 0
  21369. var _toolC = 0
  21370. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  21371. let boolean2 = (_toolA > _toolC) ? true : false
  21372. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  21373. this.$forceUpdate();
  21374. },
  21375. async checkLink(url) {
  21376. // console.log(url)
  21377. let _url = url
  21378. try {
  21379. const response = await fetch(url);
  21380. if(!response.ok){
  21381. _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]))
  21382. }
  21383. // console.log(response.ok)
  21384. } catch (error) {
  21385. console.error('Error checking link:', error);
  21386. // console.log(false)
  21387. _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]))
  21388. }
  21389. // console.log(_url)
  21390. return _url
  21391. },
  21392. setClassRoomHelperWidth(width){
  21393. this.classRoomHelperWidth = width
  21394. }
  21395. },
  21396. directives: {
  21397. // 使用局部注册指令的方式
  21398. resize: {
  21399. // 指令的名称
  21400. bind(el, binding) {
  21401. // el为绑定的元素,binding为绑定给指令的对象
  21402. let width = "",
  21403. height = "";
  21404. function isReize() {
  21405. const style = document.defaultView.getComputedStyle(el);
  21406. if (width !== style.width || height !== style.height) {
  21407. binding.value(); // 关键
  21408. }
  21409. width = style.width;
  21410. height = style.height;
  21411. }
  21412. el.__vueSetInterval__ = setInterval(isReize, 300);
  21413. },
  21414. unbind(el) {
  21415. clearInterval(el.__vueSetInterval__);
  21416. },
  21417. },
  21418. autoHeight: {
  21419. update(el, binding) {
  21420. const { value } = binding
  21421. if (value && typeof value === 'number') {
  21422. el.style.height = `${value}px`
  21423. } else {
  21424. el.style.height = 'auto'
  21425. }
  21426. },
  21427. componentUpdated(el) {
  21428. el.style.height = `${el.scrollHeight + 5}px`
  21429. },
  21430. }
  21431. },
  21432. beforeDestroy() {
  21433. window.onresize = null;
  21434. clearInterval(this.timer);
  21435. this.timer = null;
  21436. clearInterval(this.opertimer);
  21437. this.opertimer = null;
  21438. },
  21439. computed: {
  21440. // getdocumentSco(){
  21441. // return function (w,task,tooindex) {
  21442. // console.log(w);
  21443. // return task;
  21444. // };
  21445. // },
  21446. getHeight(){
  21447. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21448. },
  21449. contentConvent() {
  21450. return function (c) {
  21451. return c
  21452. ? c
  21453. .replaceAll(/\r\n/g, "<br/>")
  21454. .replaceAll(/\n/g, "<br/>")
  21455. .replaceAll(/\s/g, " &nbsp")
  21456. : "";
  21457. };
  21458. },
  21459. commentRight(){
  21460. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21461. return "35px";
  21462. }
  21463. return `calc(${this.classRoomHelperWidth} + 5px)`
  21464. // if(this.$refs["classRoomHelperRef"].type==0){
  21465. // return "100px";
  21466. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21467. // return "502px"
  21468. // }else{
  21469. // return "0px"
  21470. // }
  21471. },
  21472. checkUpload() {
  21473. return function () {
  21474. var studentK = [];
  21475. if (this.plworkFile.length > 0) {
  21476. for (var z = 0; z < this.plworkFile.length; z++) {
  21477. studentK.push(this.plworkFile[z].username);
  21478. }
  21479. studentK = studentK.join(",");
  21480. }
  21481. var a = this.uploadStudentJuri.filter((el) => {
  21482. return studentK.indexOf(el.userid) == -1;
  21483. });
  21484. return a;
  21485. };
  21486. },
  21487. getSName() {
  21488. return function (name) {
  21489. var check = name;
  21490. this.uploadStudentJuri.forEach((el) => {
  21491. if (el.userid == check) {
  21492. check = el.name ? el.name : el.username;
  21493. }
  21494. });
  21495. return check;
  21496. };
  21497. },
  21498. getImgList() {
  21499. return function (val) {
  21500. let srcList = []; // 定义一个数组用来接收后面的img地址
  21501. val.replace(
  21502. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21503. function (match, capture) {
  21504. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21505. srcList.push(capture);
  21506. }
  21507. );
  21508. return srcList;
  21509. };
  21510. },
  21511. retrnToolHeight(){
  21512. return function (tool) {
  21513. var _tool = document.querySelectorAll('#'+tool)[0]
  21514. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21515. };
  21516. },
  21517. Correct() {
  21518. return function (c) {
  21519. let w = "";
  21520. let a = this.correctWord;
  21521. for(var k = 0;k<a.length;k++){
  21522. //diffWordsWithSpace
  21523. if(a.length > 1){
  21524. if(a[k].added == true){
  21525. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21526. }else if(a[k].removed == true){
  21527. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21528. }else{
  21529. w += '<span>' + a[k].value + '</span>';
  21530. }
  21531. }else{
  21532. w = c
  21533. }
  21534. //diffChars方法
  21535. // if(w == ""){
  21536. // if(a.length > 1){
  21537. // if(a[k].added == true){
  21538. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21539. // }else if(a[k].removed == true){
  21540. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21541. // }
  21542. // }else{
  21543. // w = c
  21544. // }
  21545. // }else{
  21546. // if(k == a.length - 1){
  21547. // if(a[k].added == true){
  21548. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21549. // }else if(a[k].removed == true){
  21550. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21551. // }
  21552. // }else{
  21553. // if(a[k].added == true){
  21554. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21555. // }else if(a[k].removed == true){
  21556. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21557. // }
  21558. // }
  21559. // }
  21560. }
  21561. c = w;
  21562. return c;
  21563. };
  21564. },
  21565. getScoreList(){
  21566. let params = {
  21567. cid: this.id,
  21568. };
  21569. this.ajax
  21570. .get(this.$store.state.api + "selectTestCourseByCid", params)
  21571. .then((res) => {
  21572. let result = res.data;
  21573. this.scoreList.datalist = result[0];
  21574. this.scoreList.isScoreList = result[1];
  21575. })
  21576. .catch((err) => {
  21577. console.error(err);
  21578. });
  21579. },
  21580. },
  21581. mounted() {
  21582. document.body.addEventListener("click", (e) => {
  21583. if (this.isUpdateToolDetail1) {
  21584. this.updateToolDetail(this.toolDetailIndex);
  21585. }
  21586. });
  21587. if (this.screenType == 2) {
  21588. window.parent.postMessage({ allScreen: 4 }, "*");
  21589. } else if (this.screenType == 3) {
  21590. window.parent.postMessage({ allScreen: 5 }, "*");
  21591. } else if (this.screenType == 1) {
  21592. window.parent.postMessage({ allScreen: 6 }, "*");
  21593. }
  21594. this.setOperationTime();
  21595. this.selectEva();
  21596. this.getCourseDetail();
  21597. this.selectCount();
  21598. this.getHomeWork();
  21599. this.selectUser();
  21600. this.getAIJ()
  21601. this.contentDialog = true;
  21602. this.setContent2(true);
  21603. if (this.tType == 4) {
  21604. this.pzDialog = true;
  21605. this.selectPz();
  21606. }
  21607. // 获取评分列表
  21608. this.getScoreList()
  21609. document.scrollingElement.scrollTop = 0;
  21610. window.addEventListener("resize", () => {
  21611. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21612. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21613. if (this.showType == 2 || this.showType == 3) {
  21614. document.getElementsByClassName("navBox")[0].style.height =
  21615. a - 40 + 0+ "px";
  21616. } else {
  21617. document.getElementsByClassName("navBox")[0].style.height =
  21618. a - 40 + "px";
  21619. }
  21620. });
  21621. let _this = this;
  21622. setTimeout(() => {
  21623. // _this.vedioTime = [];
  21624. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21625. // _this.vedioTime[i] = document.getElementsByClassName(
  21626. // "vjs-duration-display"
  21627. // )[i].textContent;
  21628. // }
  21629. }, 1000);
  21630. },
  21631. };
  21632. </script>
  21633. <style scoped>
  21634. @media screen and (max-width: 1280px) {
  21635. /* .courseIndex > div:first-child(2) {
  21636. width: 15% !important;
  21637. } */
  21638. /* .navText {
  21639. width: 120px !important;
  21640. } */
  21641. .evaCss {
  21642. flex-direction: column !important;
  21643. align-items: center !important;
  21644. }
  21645. .elist_input {
  21646. width: 90% !important;
  21647. }
  21648. .dialog_diy1 >>> .el-dialog {
  21649. width: 100% !important;
  21650. }
  21651. .rightWidthCss {
  21652. width: 100% !important;
  21653. }
  21654. .dialog_diy3 >>> .el-dialog {
  21655. width: 100% !important;
  21656. }
  21657. .addToolCss {
  21658. right: 0 !important;
  21659. width: 100% !important;
  21660. min-width: unset !important;
  21661. }
  21662. }
  21663. .evaCssMax {
  21664. flex-direction: column !important;
  21665. align-items: center !important;
  21666. }
  21667. .dialog_diy >>> .el-dialog {
  21668. margin-top: 10vh !important;
  21669. }
  21670. .body_student {
  21671. width: 77%;
  21672. height: 100%;
  21673. position: absolute;
  21674. left: 22%;
  21675. top: 0;
  21676. }
  21677. .student_head {
  21678. width: 100%;
  21679. margin: 20px auto 0;
  21680. padding-bottom: 20px;
  21681. display: flex;
  21682. flex-direction: column;
  21683. flex-wrap: nowrap;
  21684. align-items: flex-start;
  21685. justify-content: flex-start;
  21686. }
  21687. .pb_left {
  21688. width: 20%;
  21689. margin-right: 10px;
  21690. background: rgb(255, 255, 255);
  21691. position: fixed;
  21692. height: calc(100% - 40px);
  21693. border-radius: 20px;
  21694. padding-bottom: 15px;
  21695. box-sizing: border-box;
  21696. }
  21697. .wheel > img,
  21698. .project > img,
  21699. .star > img,
  21700. .evaluate > img,
  21701. .up_photo > img,
  21702. .chapter_add > img,
  21703. .deleteWord > img,
  21704. .question > img,
  21705. .homework > img {
  21706. width: 100%;
  21707. height: 100%;
  21708. }
  21709. .upCover > img {
  21710. width: 131px;
  21711. height: 69px;
  21712. object-fit: cover;
  21713. }
  21714. .upCover {
  21715. width: calc(100% / 3.5);
  21716. position: relative;
  21717. margin: 0 15px 10px 0;
  21718. display: flex;
  21719. flex-direction: column;
  21720. flex-wrap: nowrap;
  21721. justify-content: center;
  21722. align-content: center;
  21723. align-items: center;
  21724. height: fit-content;
  21725. }
  21726. .upCover2 {
  21727. width: 100%;
  21728. position: relative;
  21729. margin: 0 15px 10px 0;
  21730. display: flex;
  21731. flex-direction: column;
  21732. flex-wrap: nowrap;
  21733. justify-content: center;
  21734. align-content: center;
  21735. align-items: center;
  21736. }
  21737. .upCover2 > img {
  21738. width: 100%;
  21739. height: 90px;
  21740. object-fit: contain;
  21741. }
  21742. .chapter_add {
  21743. width: 120px;
  21744. position: relative;
  21745. text-align: center;
  21746. }
  21747. .isAddThings {
  21748. margin-top: 20px;
  21749. position: relative;
  21750. text-align: center;
  21751. background: #f7f8fa;
  21752. height: 90px;
  21753. width: 90px;
  21754. display: flex;
  21755. flex-direction: column;
  21756. justify-content: center;
  21757. }
  21758. .deleteWord {
  21759. width: 22px;
  21760. height: 22px;
  21761. position: absolute;
  21762. right: -5px;
  21763. top: -5px;
  21764. cursor: pointer;
  21765. }
  21766. .box_course {
  21767. /* width: 60%; */
  21768. width: calc(100% - 300px);
  21769. }
  21770. .wheel {
  21771. width: 100%;
  21772. /* height: 100%; */
  21773. height: 650px;
  21774. }
  21775. .right_box {
  21776. display: flex;
  21777. flex-direction: column;
  21778. margin-left: 30px;
  21779. justify-content: space-around;
  21780. }
  21781. .right_box_title {
  21782. font-size: 23px;
  21783. }
  21784. .people {
  21785. display: flex;
  21786. }
  21787. .student_body {
  21788. width: 100%;
  21789. margin: 0 auto;
  21790. margin-top: 10px;
  21791. padding: 0 0 20px;
  21792. }
  21793. .study_top {
  21794. margin-top: 100px;
  21795. width: 100%;
  21796. height: auto;
  21797. padding-bottom: 20px;
  21798. }
  21799. .study_top .checkbox {
  21800. display: flex;
  21801. align-items: center;
  21802. padding: 15px 0 15px 30px;
  21803. flex: 0 0 auto;
  21804. font-weight: bold;
  21805. border-bottom: 1px solid #eee;
  21806. }
  21807. .study_top .check {
  21808. padding-bottom: 5px;
  21809. text-align: center;
  21810. cursor: pointer;
  21811. height: 30px;
  21812. box-sizing: border-box;
  21813. display: flex;
  21814. }
  21815. .study_top .checked {
  21816. border-bottom: 4px solid #3fc6a0;
  21817. padding-bottom: 5px;
  21818. color: #3fc6a0;
  21819. display: flex;
  21820. height: 35px;
  21821. }
  21822. .study_top .checked > div,
  21823. .study_top .check > div {
  21824. margin-right: 5px;
  21825. }
  21826. .videoTop {
  21827. display: flex;
  21828. flex-direction: row;
  21829. justify-content: space-between;
  21830. background: #fff;
  21831. align-items: center;
  21832. width: 95%;
  21833. padding: 20px;
  21834. }
  21835. .filebox {
  21836. display: flex;
  21837. flex-wrap: wrap;
  21838. flex-direction: column;
  21839. padding: 0 0 5px;
  21840. position: relative;
  21841. }
  21842. .filebox:before {
  21843. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21844. position: absolute;
  21845. top: 20px;
  21846. left: 13px;
  21847. border-left: 2px dotted #cad1dc;
  21848. height: calc(100% - 15px);
  21849. }
  21850. .toolHeng2 > div:last-child::before {
  21851. height: calc(100% - 43px);
  21852. }
  21853. .filebox .tooldetail {
  21854. width: calc(100%);
  21855. margin: 0px 12px;
  21856. padding: 12px;
  21857. line-height: 30px;
  21858. word-break: break-word;
  21859. background: #ffffff;
  21860. border-radius: 8px 8px 8px 8px;
  21861. opacity: 1;
  21862. border: 1px solid #cad1dc;
  21863. overflow:hidden;
  21864. box-sizing:border-box;
  21865. }
  21866. .file {
  21867. display: flex;
  21868. flex-direction: column;
  21869. align-items: center;
  21870. justify-content: center;
  21871. cursor: pointer;
  21872. width: 200px;
  21873. }
  21874. .file div {
  21875. margin-top: 10px;
  21876. width: 150px;
  21877. text-align: center;
  21878. overflow: hidden;
  21879. white-space: nowrap;
  21880. text-overflow: ellipsis;
  21881. }
  21882. .media {
  21883. display: flex;
  21884. flex-direction: column;
  21885. align-items: center;
  21886. justify-content: center;
  21887. margin: 0 20px 20px 0;
  21888. cursor: pointer;
  21889. margin: 12px 0 5px 15px;
  21890. overflow: hidden;
  21891. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21892. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21893. box-sizing: border-box;
  21894. }
  21895. .media img {
  21896. height: 90px;
  21897. width: 160px;
  21898. object-fit: cover;
  21899. }
  21900. .media .title {
  21901. padding: 5px;
  21902. text-align: left;
  21903. width: 100%;
  21904. box-sizing: border-box;
  21905. }
  21906. .media .btn {
  21907. width: 100%;
  21908. height: 35px;
  21909. line-height: 35px;
  21910. color: #fff;
  21911. background: #606060;
  21912. text-align: center;
  21913. overflow: hidden;
  21914. white-space: nowrap;
  21915. text-overflow: ellipsis;
  21916. }
  21917. .detail_content_top {
  21918. width: 100%;
  21919. padding: 25px 0 25px 0;
  21920. }
  21921. .detail_title {
  21922. text-align: center;
  21923. font-size: 24px;
  21924. }
  21925. .detail_time {
  21926. font-size: 13px;
  21927. padding: 15px 0 0 40px;
  21928. }
  21929. .detail_content {
  21930. line-height: 2pc;
  21931. width: 90%;
  21932. margin: 0 auto;
  21933. padding-top: 30px;
  21934. text-indent: 30px;
  21935. overflow: auto;
  21936. height: 200px;
  21937. }
  21938. .score_box >>> .el-rate {
  21939. margin-left: 10px;
  21940. }
  21941. .dialog_change >>> .el-dialog {
  21942. border-radius: 5px;
  21943. }
  21944. .dialog_change >>> .el-dialog__header {
  21945. background: #f2f2f2;
  21946. text-align: center;
  21947. }
  21948. .dialog_change >>> .el-dialog__title {
  21949. line-height: 5px;
  21950. }
  21951. .dialog_change >>> .el-dialog__body {
  21952. background: #fff;
  21953. padding: 10px 20px;
  21954. }
  21955. .score_box {
  21956. display: flex;
  21957. align-items: center;
  21958. margin-bottom: 18px;
  21959. margin-top: 20px;
  21960. }
  21961. .up_photo {
  21962. width: 120px;
  21963. cursor: pointer;
  21964. margin-top: 10px;
  21965. }
  21966. .up_photo2 {
  21967. width: 180px;
  21968. box-sizing: border-box;
  21969. min-width: 180px;
  21970. height: 180px;
  21971. max-height: 180px;
  21972. min-height: 180px;
  21973. cursor: pointer;
  21974. display: flex;
  21975. flex-direction: column;
  21976. align-items: center;
  21977. justify-content: center;
  21978. background: rgb(242, 246, 255);
  21979. /* padding: 25px; */
  21980. margin-bottom: 10px;
  21981. }
  21982. .up_photo2 img {
  21983. width: 50%;
  21984. height: auto;
  21985. }
  21986. .up_photo2 span {
  21987. color: #898989;
  21988. }
  21989. .plworkBox {
  21990. display: flex;
  21991. align-items: center;
  21992. margin-top: 10px;
  21993. flex-wrap: wrap;
  21994. }
  21995. .upload_send {
  21996. margin: 30px auto 30px;
  21997. width: 60%;
  21998. background: #3681fc;
  21999. text-align: center;
  22000. height: 35px;
  22001. line-height: 35px;
  22002. color: #fff;
  22003. border-radius: 5px;
  22004. cursor: pointer;
  22005. }
  22006. .marginT {
  22007. margin-top: 20px;
  22008. }
  22009. .cd_content_steps {
  22010. display: flex;
  22011. width: 90%;
  22012. justify-content: space-around;
  22013. border-top: 1px solid #eeeeee;
  22014. }
  22015. .cd_steps_box {
  22016. display: flex;
  22017. justify-content: center;
  22018. align-items: center;
  22019. flex-direction: column;
  22020. cursor: pointer;
  22021. }
  22022. .first {
  22023. display: flex;
  22024. align-items: center;
  22025. margin: 15px 0 20px 0;
  22026. font-size: 20px;
  22027. }
  22028. .first > div:nth-child(2) {
  22029. font-size: 16px !important;
  22030. padding-left: 10px;
  22031. line-height: 26px;
  22032. box-sizing: border-box;
  22033. }
  22034. .blue_box_one {
  22035. text-align: center;
  22036. color: #fff;
  22037. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  22038. border-radius: 7px;
  22039. margin: 10px;
  22040. cursor: pointer;
  22041. width: 95%;
  22042. height: 45px;
  22043. display: flex;
  22044. flex-direction: row;
  22045. justify-content: flex-start;
  22046. align-items: center;
  22047. }
  22048. .blue_box_one > div:nth-child(1) {
  22049. line-height: 30px;
  22050. margin: 0 5px 0 10px;
  22051. width: 30%;
  22052. min-width: 70px;
  22053. border-radius: 4px;
  22054. }
  22055. .blue_box_one > div:nth-child(2) {
  22056. white-space: nowrap;
  22057. text-overflow: ellipsis;
  22058. overflow: hidden;
  22059. word-break: break-all;
  22060. width: 70%;
  22061. text-align: left;
  22062. margin-right: 10px;
  22063. max-width: calc(100% - 85px);
  22064. }
  22065. .blue_box_one > div:nth-child(2):hover {
  22066. overflow: hidden;
  22067. text-overflow: ellipsis;
  22068. white-space: nowrap;
  22069. cursor: pointer;
  22070. }
  22071. .upFile {
  22072. margin: 0 auto;
  22073. width: 120px;
  22074. background: #3681fc;
  22075. color: #fff;
  22076. height: 30px;
  22077. text-align: center;
  22078. line-height: 30px;
  22079. border-radius: 5px;
  22080. font-size: 14px;
  22081. cursor: pointer;
  22082. }
  22083. .courseTitle {
  22084. width: 85%;
  22085. margin: 10px auto 26px auto;
  22086. display: flex;
  22087. flex-direction: row;
  22088. align-items: center;
  22089. justify-content: space-between;
  22090. text-align: center;
  22091. }
  22092. .courseTitle .ctitle {
  22093. font-size: 20px;
  22094. font-weight: bold;
  22095. color: #0e1e33;
  22096. white-space: nowrap;
  22097. overflow: hidden;
  22098. text-overflow: ellipsis;
  22099. }
  22100. .inviteBox {
  22101. font-size: 14px;
  22102. /* margin-top: 5px; */
  22103. color: #00000099;
  22104. text-align: center;
  22105. }
  22106. .courseTitle >>> .el-tooltip {
  22107. width: 100%;
  22108. white-space: nowrap;
  22109. overflow: hidden;
  22110. text-overflow: ellipsis;
  22111. word-break: break-word;
  22112. }
  22113. .ml {
  22114. margin-left: 20px;
  22115. color: #5b7dba;
  22116. border-left: 3px solid #5b7dba;
  22117. padding-left: 5px;
  22118. font-weight: bold;
  22119. }
  22120. .return {
  22121. width: 2rem;
  22122. height: 2rem;
  22123. cursor: pointer;
  22124. }
  22125. .return > img {
  22126. width: 100%;
  22127. height: 100%;
  22128. }
  22129. .returnBtn {
  22130. width: 86px;
  22131. height: 36px;
  22132. background: #3681fc;
  22133. border-radius: 4px;
  22134. color: #fff;
  22135. text-align: center;
  22136. line-height: 36px;
  22137. margin-right: 20px;
  22138. cursor: pointer;
  22139. font-size: 14px;
  22140. font-weight: 400;
  22141. display: flex;
  22142. flex-direction: row;
  22143. flex-wrap: nowrap;
  22144. align-items: center;
  22145. justify-content: center;
  22146. }
  22147. .reBtnIcon,
  22148. .commentIcon,
  22149. .vedioIcon,
  22150. .vedioIcon1 {
  22151. /* width: 36px; */
  22152. height: 36px;
  22153. border-radius: 4px;
  22154. position: relative;
  22155. /* background: #e0eafb; */
  22156. background: #0061ff;
  22157. cursor: pointer;
  22158. margin-right: 12px;
  22159. display: flex;
  22160. align-items: center;
  22161. padding: 0 10px;
  22162. box-sizing: border-box;
  22163. font-size: 14px;
  22164. color: #fff;
  22165. }
  22166. .reBtnIcon::before,
  22167. .commentIcon::before,
  22168. .vedioIcon::before,
  22169. .vedioIcon1::before {
  22170. content: "";
  22171. display: block;
  22172. background-size: 100% 100%;
  22173. background-repeat: no-repeat;
  22174. width: 20px;
  22175. height: 20px;
  22176. margin-right: 5px;
  22177. /* position: absolute; */
  22178. /* top: 8px;
  22179. left: 8px; */
  22180. }
  22181. .vedioIcon1 {
  22182. background: #f63564;
  22183. }
  22184. .reBtnIcon::before {
  22185. background-image: url("../../assets/icon/newIcons/refresh.png");
  22186. }
  22187. .commentIcon::before {
  22188. background-image: url("../../assets/icon/newIcons/comment.png");
  22189. }
  22190. .vedioIcon::before {
  22191. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22192. }
  22193. .vedioIcon1::before {
  22194. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  22195. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22196. }
  22197. .tool {
  22198. display: flex;
  22199. flex-direction: column;
  22200. flex-wrap: nowrap;
  22201. width: 13%;
  22202. margin: 0 30px;
  22203. align-items: center;
  22204. position: relative;
  22205. padding: 10px 25px;
  22206. cursor: pointer;
  22207. }
  22208. .whiteBIcon {
  22209. width: 150px;
  22210. }
  22211. .whiteBIcon > img {
  22212. width: 100%;
  22213. height: 100%;
  22214. }
  22215. .mask {
  22216. background-color: rgba(0, 0, 0, 0);
  22217. position: fixed;
  22218. top: 0;
  22219. left: 0;
  22220. width: 100%;
  22221. height: 100%;
  22222. z-index: 20000;
  22223. display: flex;
  22224. align-items: center;
  22225. justify-content: center;
  22226. }
  22227. .progressBox {
  22228. width: 500px;
  22229. height: 180px;
  22230. background: #fff;
  22231. border-radius: 10px;
  22232. box-shadow: 0 0 6px 1px #bfbfbf;
  22233. display: flex;
  22234. align-items: center;
  22235. justify-content: center;
  22236. flex-direction: column;
  22237. position: relative;
  22238. color: #6c6c6c;
  22239. }
  22240. .progressBox >>> .el-progress-bar__outer {
  22241. background-color: #d1dfff !important;
  22242. }
  22243. .progressBox .lbox {
  22244. height: 50px;
  22245. font-size: 19px;
  22246. display: flex;
  22247. align-items: center;
  22248. color: #747474;
  22249. }
  22250. .progressBox .lbox img {
  22251. width: 40px;
  22252. margin-right: 20px;
  22253. }
  22254. .closeCss {
  22255. position: absolute;
  22256. top: 8px;
  22257. right: 8px;
  22258. cursor: pointer;
  22259. width: 20px;
  22260. height: 20px;
  22261. }
  22262. .closeCss > img {
  22263. width: 100%;
  22264. height: 100%;
  22265. }
  22266. .uploadVedio {
  22267. display: flex;
  22268. flex-direction: column;
  22269. flex-wrap: nowrap;
  22270. justify-content: center;
  22271. align-items: center;
  22272. margin: 0 15px 10px 0;
  22273. }
  22274. .uploadVedio > img {
  22275. width: 30px;
  22276. height: 30px;
  22277. }
  22278. .uploadVedio > span {
  22279. white-space: nowrap;
  22280. overflow: hidden;
  22281. text-overflow: ellipsis;
  22282. width: 75px;
  22283. margin-top: 7px;
  22284. }
  22285. .picName {
  22286. white-space: nowrap;
  22287. overflow: hidden;
  22288. text-overflow: ellipsis;
  22289. width: 75px;
  22290. margin-top: 7px;
  22291. }
  22292. .new_top {
  22293. display: flex;
  22294. background: #fff;
  22295. flex-direction: row;
  22296. justify-content: flex-start;
  22297. align-items: center;
  22298. height: 60px;
  22299. position: fixed;
  22300. top: 20px;
  22301. left: 22%;
  22302. width: 77%;
  22303. z-index: 999;
  22304. border-radius: 12px 12px 0 0;
  22305. border-bottom: 1px solid #cad1dc;
  22306. padding: 10px 0;
  22307. }
  22308. .new_topFixed {
  22309. width: 100%;
  22310. height: 40px;
  22311. position: fixed;
  22312. top: 0px;
  22313. display: block;
  22314. background: #f2f2f2;
  22315. z-index: 998;
  22316. }
  22317. .before {
  22318. position: absolute;
  22319. background: #c3dad4;
  22320. width: 6px;
  22321. height: 100%;
  22322. }
  22323. .courseIndex {
  22324. display: flex;
  22325. flex-direction: row;
  22326. align-items: center;
  22327. width: calc(100% - 745px);
  22328. }
  22329. .courseIndex > div:nth-child(1) {
  22330. margin: 0 0 0 10px;
  22331. font-size: 20px;
  22332. min-width: 100px;
  22333. font-weight: bold;
  22334. border-left: 4px solid #3363b9;
  22335. height: 32px;
  22336. text-align: center;
  22337. line-height: 35px;
  22338. }
  22339. .courseIndex > div:nth-child(2) {
  22340. font-size: 20px;
  22341. /* width: 300px; */
  22342. max-width: calc(100% - 105px);
  22343. white-space: nowrap;
  22344. overflow: hidden;
  22345. text-overflow: ellipsis;
  22346. }
  22347. .courseIndex > div:nth-child(3) {
  22348. border-bottom: 1px solid #d7d7d7;
  22349. padding-bottom: 5px;
  22350. background: #3681fc;
  22351. width: 55px;
  22352. min-width: 55px;
  22353. border-radius: 5px;
  22354. color: #fff;
  22355. text-align: center;
  22356. height: 20px;
  22357. line-height: 26px;
  22358. font-size: 14px;
  22359. margin: 0 0 0 10px;
  22360. }
  22361. .course_text {
  22362. padding: 20px 0 0 15px;
  22363. text-indent: 30px;
  22364. width: 80%;
  22365. min-height: 20px;
  22366. }
  22367. .vedioList {
  22368. background: #f2f2f2;
  22369. border: 1px solid #ececec;
  22370. /* width: 38.8%; */
  22371. /* width: 300px; */
  22372. width: 100%;
  22373. height: 445px;
  22374. border-radius: 10px;
  22375. overflow: hidden;
  22376. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22377. }
  22378. .vedioNav {
  22379. margin: 10px 0 0 15px;
  22380. border-bottom: 1px solid #d7d7d7;
  22381. padding-bottom: 5px;
  22382. background: #3681fc;
  22383. width: 55px;
  22384. min-width: 55px;
  22385. border-radius: 5px;
  22386. color: #fff;
  22387. text-align: center;
  22388. height: 20px;
  22389. line-height: 26px;
  22390. font-size: 14px;
  22391. }
  22392. .queTop {
  22393. display: flex;
  22394. padding: 20px 0 20px 30px;
  22395. width: 100%;
  22396. flex-direction: row;
  22397. justify-content: flex-start;
  22398. align-items: center;
  22399. box-sizing: border-box;
  22400. }
  22401. .queTopTitle {
  22402. display: flex;
  22403. flex-direction: row;
  22404. flex-wrap: nowrap;
  22405. align-items: center;
  22406. font-weight: bold;
  22407. font-size: 20px;
  22408. color: rgb(14, 30, 51);
  22409. }
  22410. .queTopTitle::before {
  22411. content: "";
  22412. width: 2px;
  22413. height: 22px;
  22414. background: #3681fc;
  22415. border-radius: 3px;
  22416. display: block;
  22417. margin: 2px 6px 0 0;
  22418. }
  22419. .queTopRight {
  22420. display: flex;
  22421. flex-direction: row;
  22422. flex-wrap: nowrap;
  22423. align-items: center;
  22424. }
  22425. .queTopClose {
  22426. margin-right: 20px;
  22427. cursor: pointer;
  22428. position: relative;
  22429. display: flex;
  22430. }
  22431. .closeImg,
  22432. .openImg {
  22433. width: 25px;
  22434. height: 25px;
  22435. position: absolute;
  22436. left: -20px;
  22437. top: -1px;
  22438. }
  22439. .closeImg > img,
  22440. .openImg > img {
  22441. width: 100%;
  22442. height: 100%;
  22443. }
  22444. .question {
  22445. width: 40px;
  22446. margin-right: 10px;
  22447. margin-top: 7px;
  22448. }
  22449. .queTitle {
  22450. margin-left: 5px;
  22451. font-size: 25px;
  22452. display: flex;
  22453. align-items: center;
  22454. }
  22455. .addEditor {
  22456. width: 100px;
  22457. height: 30px;
  22458. background: #42cda6;
  22459. color: #fff;
  22460. border-radius: 5px;
  22461. text-align: center;
  22462. line-height: 30px;
  22463. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22464. cursor: pointer;
  22465. }
  22466. /* .vedioName {
  22467. cursor: pointer;
  22468. margin: 0px 0px 10px 5px;
  22469. white-space: nowrap;
  22470. overflow: hidden;
  22471. text-overflow: ellipsis;
  22472. width: 100%;
  22473. } */
  22474. .vedioTime {
  22475. width: 35px;
  22476. position: absolute;
  22477. color: #fff;
  22478. bottom: 0px;
  22479. right: 0px;
  22480. text-align: center;
  22481. background: #46411f;
  22482. height: 20px;
  22483. font-size: 14px;
  22484. line-height: 20px;
  22485. }
  22486. .homework {
  22487. width: 200px;
  22488. display: flex;
  22489. flex-direction: column;
  22490. flex-wrap: nowrap;
  22491. align-items: center;
  22492. cursor: pointer;
  22493. }
  22494. .homebox {
  22495. display: flex;
  22496. flex-wrap: wrap;
  22497. flex-direction: row;
  22498. justify-content: flex-start;
  22499. align-items: center;
  22500. padding: 15px 0;
  22501. }
  22502. .isChooseActive {
  22503. color: #3681fc !important;
  22504. font-weight: bold !important;
  22505. }
  22506. .chooseWho {
  22507. display: flex;
  22508. width: 100%;
  22509. flex-direction: row;
  22510. flex-wrap: nowrap;
  22511. justify-content: flex-start;
  22512. padding-bottom: 10px;
  22513. }
  22514. .chooseWho > div {
  22515. cursor: pointer;
  22516. padding-bottom: 10px;
  22517. margin: 0 30px 0 0;
  22518. font-weight: 400;
  22519. color: #0e1e33;
  22520. }
  22521. .addPoint > div > img {
  22522. cursor: pointer;
  22523. width: 85px;
  22524. border-radius: 15px;
  22525. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22526. }
  22527. .addPoint > div {
  22528. display: flex;
  22529. flex-direction: column;
  22530. flex-wrap: nowrap;
  22531. align-items: center;
  22532. }
  22533. .isBorder > div {
  22534. margin: 0 0 10px 0;
  22535. align-items: flex-start !important;
  22536. }
  22537. .noiframeBox {
  22538. display: flex;
  22539. flex-wrap: wrap;
  22540. }
  22541. .iframeBox iframe {
  22542. width: 100%;
  22543. height: 800px;
  22544. border: none;
  22545. margin-bottom: 20px;
  22546. border: 1px solid #ccc;
  22547. }
  22548. .upload_toolBtn {
  22549. background: #3681fc;
  22550. color: #fff;
  22551. width: 110px;
  22552. text-align: center;
  22553. height: 35px;
  22554. line-height: 35px;
  22555. font-size: 14px;
  22556. border-radius: 5px;
  22557. cursor: pointer;
  22558. position: absolute;
  22559. right: 10px;
  22560. bottom: 0;
  22561. }
  22562. .binfo_input,
  22563. .pj {
  22564. font: inherit;
  22565. color: currentColor;
  22566. width: 100%;
  22567. margin: 0;
  22568. padding: 15px 14px;
  22569. display: block;
  22570. min-width: 0;
  22571. outline: none;
  22572. box-sizing: content-box;
  22573. background: none;
  22574. -webkit-tap-highlight-color: transparent;
  22575. border: 1px solid rgba(0, 0, 0, 0.23);
  22576. border-radius: 4px;
  22577. box-sizing: border-box;
  22578. resize: none;
  22579. }
  22580. .binfo_input:focus-visible {
  22581. border: 1px solid rgba(61, 103, 188);
  22582. }
  22583. .dialog_diy >>> .el-dialog__header,
  22584. .dialog_diy1 >>> .el-dialog__header {
  22585. background: #454545 !important;
  22586. padding: 15px 20px;
  22587. }
  22588. .dialog_diy >>> .el-dialog__title,
  22589. .dialog_diy1 >>> .el-dialog__title {
  22590. color: #fff;
  22591. }
  22592. .dialog_diy >>> .el-dialog__headerbtn,
  22593. .dialog_diy1 >>> .el-dialog__headerbtn {
  22594. top: 19px;
  22595. }
  22596. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22597. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22598. color: #fff;
  22599. }
  22600. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22601. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22602. color: #fff;
  22603. }
  22604. .dialog_diy1 >>> .el-dialog__body {
  22605. padding: 0;
  22606. }
  22607. .dialog_diy >>> .el-dialog__body,
  22608. .dialog_diy >>> .el-dialog__footer,
  22609. .dialog_diy1 >>> .el-dialog__footer {
  22610. background: #fafafa;
  22611. }
  22612. .markScore_diy >>> .el-dialog {
  22613. border-radius:10px;
  22614. }
  22615. .markScore_diy >>> .el-dialog__body{
  22616. padding: 0;
  22617. height: 621px;
  22618. min-height: calc(100% - 60px);
  22619. }
  22620. .markScore_diy >>> .el-dialog__header{
  22621. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  22622. }
  22623. .markScore_diy >>> .markScore_diyTit{
  22624. width: calc(100% - 60px);
  22625. display: flex;
  22626. justify-content: space-between;
  22627. align-items: center;
  22628. }
  22629. .a_addBox {
  22630. padding: 0 0 0 15px;
  22631. }
  22632. .a_add_box {
  22633. padding: 10px;
  22634. background: #fff;
  22635. margin-bottom: 10px;
  22636. border-radius: 5px;
  22637. box-shadow: 0 0 5px 0 #d5d5d5;
  22638. }
  22639. .a_add_head {
  22640. display: flex;
  22641. align-items: flex-start;
  22642. /* justify-content: space-between; */
  22643. flex-direction: column;
  22644. /* flex-direction: row; */
  22645. margin: 10px 0 20px 0;
  22646. font-size: 18px;
  22647. width: 100%;
  22648. }
  22649. .askIndex {
  22650. background: #3681fc;
  22651. border-radius: 50%;
  22652. color: #fff;
  22653. width: 25px;
  22654. height: 25px;
  22655. min-width: 25px;
  22656. min-height: 25px;
  22657. text-align: center;
  22658. line-height: 25px;
  22659. margin-right: 5px;
  22660. }
  22661. .a_add_head .a_add_head_input {
  22662. width: 300px;
  22663. }
  22664. .a_add_head .a_add_head_div {
  22665. display: flex;
  22666. align-items: center;
  22667. justify-content: space-between;
  22668. }
  22669. .a_add_body {
  22670. display: flex;
  22671. align-items: center;
  22672. }
  22673. .a_add_input {
  22674. display: flex;
  22675. align-items: center;
  22676. flex-wrap: wrap;
  22677. width: 100%;
  22678. }
  22679. .a_add_input >>> .el-radio-group,
  22680. .a_add_input >>> .el-checkbox-group {
  22681. width: 100%;
  22682. }
  22683. .a_add_input >>> .el-radio,
  22684. .a_add_input >>> .el-checkbox {
  22685. display: flex;
  22686. flex-direction: row;
  22687. flex-wrap: nowrap;
  22688. align-items: center;
  22689. padding: 15px 0;
  22690. }
  22691. .a_add_input >>> .el-radio:not(:last-child),
  22692. .a_add_input >>> .el-checkbox:not(:last-child) {
  22693. width: 100%;
  22694. border-bottom: 1px solid #efefef;
  22695. }
  22696. .redioStyle >>> .el-radio__label {
  22697. font-size: 18px;
  22698. }
  22699. .redioStyle >>> .el-radio__label > span,
  22700. .redioStyle >>> .el-checkbox__label > span {
  22701. word-break: break-all;
  22702. white-space: normal;
  22703. }
  22704. .redioStyle >>> .el-checkbox__label {
  22705. font-size: 18px;
  22706. }
  22707. .toolHeng2 {
  22708. width: 100%;
  22709. padding-left: 15px;
  22710. box-sizing: border-box;
  22711. }
  22712. .workNav {
  22713. font-size: 20px;
  22714. font-weight: bold;
  22715. color: #0e1e33;
  22716. display: flex;
  22717. flex-direction: row;
  22718. flex-wrap: nowrap;
  22719. align-items: center;
  22720. padding: 15px 0 15px 0;
  22721. }
  22722. .workNav::before {
  22723. content: "";
  22724. width: 2px;
  22725. height: 22px;
  22726. background: #3681fc;
  22727. border-radius: 3px;
  22728. display: block;
  22729. margin: 2px 6px 0 0;
  22730. }
  22731. .toolHeng {
  22732. display: flex;
  22733. flex-direction: row;
  22734. flex-wrap: wrap;
  22735. justify-content: flex-start;
  22736. align-items: center;
  22737. width: 100%;
  22738. }
  22739. .toolHeng > div {
  22740. padding-left: 20px;
  22741. }
  22742. .isWidth {
  22743. width: 20%;
  22744. }
  22745. .textTitle {
  22746. display: flex;
  22747. flex-direction: row;
  22748. flex-wrap: nowrap;
  22749. align-items: center;
  22750. width: 95%;
  22751. }
  22752. .textTitle >>> .el-form-item__label {
  22753. font-size: 22px;
  22754. color: #918f8f;
  22755. width: 100px;
  22756. }
  22757. .textTitle >>> .el-form-item__content {
  22758. width: calc(100% - 100px);
  22759. }
  22760. .textCss >>> .el-dialog {
  22761. width: 800px !important;
  22762. height: 400px;
  22763. background: #fafafa;
  22764. }
  22765. .textCss >>> .el-dialog__body {
  22766. margin: 55px 8% 0 8%;
  22767. padding: 0 !important;
  22768. }
  22769. .textCss >>> .el-dialog__footer {
  22770. padding-top: 38px;
  22771. }
  22772. .toolsCss >>> .el-dialog__body {
  22773. padding: 20px;
  22774. }
  22775. .lineCss >>> .el-dialog__body {
  22776. display: flex;
  22777. flex-direction: row;
  22778. align-items: center;
  22779. justify-content: center;
  22780. }
  22781. .newNav {
  22782. display: flex;
  22783. flex-direction: row;
  22784. align-items: baseline;
  22785. justify-content: flex-start;
  22786. }
  22787. .navListItem {
  22788. width: calc(100% - 20px);
  22789. height: 50px;
  22790. margin: 0px auto 10px;
  22791. display: flex;
  22792. flex-direction: row;
  22793. flex-wrap: nowrap;
  22794. align-items: center;
  22795. justify-content: space-between;
  22796. background: #f0f4fa;
  22797. border-radius: 6px 6px 6px 6px;
  22798. }
  22799. .navText {
  22800. cursor: pointer;
  22801. white-space: nowrap;
  22802. overflow: hidden;
  22803. text-overflow: ellipsis;
  22804. width: 220px;
  22805. padding: 0 10px;
  22806. font-weight: 400;
  22807. color: #0e1e33;
  22808. }
  22809. .downIcon {
  22810. width: 20px;
  22811. min-width: 20px;
  22812. height: 20px;
  22813. margin-right: 15px;
  22814. cursor: pointer;
  22815. }
  22816. .downIcon > img {
  22817. width: 100%;
  22818. height: 100%;
  22819. }
  22820. .noVedio {
  22821. display: flex;
  22822. flex-direction: row;
  22823. justify-content: center;
  22824. align-content: center;
  22825. }
  22826. .noNavText {
  22827. cursor: pointer;
  22828. margin: 0px 0px 10px 5px;
  22829. width: 112px;
  22830. }
  22831. .listNoVedio {
  22832. margin: 0 0 0 30px;
  22833. width: 97%;
  22834. }
  22835. .video-player >>> .video-js {
  22836. height: 100%;
  22837. }
  22838. .hangVedioList {
  22839. width: 90% !important;
  22840. height: 150px !important;
  22841. margin: 20px 0 0 30px;
  22842. }
  22843. .hangVedio {
  22844. width: 100%;
  22845. height: 170px !important;
  22846. align-items: flex-start !important;
  22847. }
  22848. .hangHand {
  22849. height: 150px !important;
  22850. }
  22851. .twoChild {
  22852. width: 95%;
  22853. margin: 10px;
  22854. border-radius: 5px;
  22855. background: #f2f2f2;
  22856. display: flex;
  22857. flex-direction: column;
  22858. flex-wrap: nowrap;
  22859. justify-content: flex-start;
  22860. align-items: flex-start;
  22861. transition: all 0.5s;
  22862. overflow: hidden;
  22863. height: 0;
  22864. background: #e7f3ff;
  22865. }
  22866. .twoChild > div:nth-child(1) {
  22867. margin-top: 5px;
  22868. }
  22869. .navChild {
  22870. width: 100%;
  22871. cursor: pointer;
  22872. margin-bottom: 10px;
  22873. position: relative;
  22874. }
  22875. .navChild img {
  22876. position: absolute;
  22877. right: 11px;
  22878. width: 15px;
  22879. top: 50%;
  22880. transform: translateY(-50%);
  22881. }
  22882. .navActive,
  22883. .toolActive {
  22884. height: auto !important;
  22885. overflow: auto !important;
  22886. /* // padding-bottom: 16px; */
  22887. }
  22888. .toolActive {
  22889. padding: 0;
  22890. }
  22891. .navTask {
  22892. display: flex;
  22893. flex-direction: row;
  22894. flex-wrap: nowrap;
  22895. align-items: center;
  22896. align-content: flex-start;
  22897. height: 40px;
  22898. justify-content: flex-start;
  22899. padding: 0 10px;
  22900. width: 100%;
  22901. box-sizing: border-box;
  22902. }
  22903. .navTaskname {
  22904. white-space: nowrap;
  22905. text-overflow: ellipsis;
  22906. overflow: hidden;
  22907. word-break: break-all;
  22908. padding-left: 5px;
  22909. }
  22910. .openTaskActive {
  22911. /* background-color: #e0eafb !important;
  22912. color: #0061ff; */
  22913. color:#fff;
  22914. background: rgb(55, 129, 252) !important;
  22915. }
  22916. .iframeName {
  22917. margin: 5px 0;
  22918. border-left: 4px solid #41c4a4;
  22919. padding-left: 4px;
  22920. }
  22921. .toolTitle {
  22922. margin: 0px 0px 20px;
  22923. font-size: 20px;
  22924. font-weight: 500;
  22925. border-left: 4px solid #41c4a4;
  22926. padding-left: 4px;
  22927. }
  22928. .cru_selectBox {
  22929. overflow: auto;
  22930. width: 95%;
  22931. margin: 17px auto 0;
  22932. height: calc(100% - 40px - 21px - 20px - 17px);
  22933. background: #fff;
  22934. border-radius: 8px;
  22935. }
  22936. .cru_selectBox::-webkit-scrollbar,
  22937. .study_top::-webkit-scrollbar,
  22938. .textContent::-webkit-scrollbar {
  22939. /*滚动条整体样式*/
  22940. width: 6px;
  22941. /*高宽分别对应横竖滚动条的尺寸*/
  22942. height: 6px;
  22943. }
  22944. /*定义滚动条轨道 内阴影+圆角*/
  22945. .cru_selectBox::-webkit-scrollbar-track,
  22946. .study_top::-webkit-scrollbar-track,
  22947. .textContent::-webkit-scrollbar {
  22948. border-radius: 10px;
  22949. background-color: #b8bdc9;
  22950. }
  22951. /*定义滑块 内阴影+圆角*/
  22952. .cru_selectBox::-webkit-scrollbar-thumb,
  22953. .study_top::-webkit-scrollbar-thumb,
  22954. .textContent::-webkit-scrollbar-thumb {
  22955. border-radius: 10px;
  22956. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  22957. background-color: #2c5ab3;
  22958. }
  22959. .vedioBox {
  22960. border-radius: 0 0 20px 20px;
  22961. background: #fff;
  22962. overflow: auto;
  22963. }
  22964. .taskBox {
  22965. width: 98%;
  22966. background: #f0f4fa;
  22967. margin: 10px auto;
  22968. padding: 0 10px;
  22969. border-radius: 4px;
  22970. box-sizing: border-box;
  22971. }
  22972. .vedioTaskBox {
  22973. width: 100%;
  22974. display: flex;
  22975. flex-direction: row;
  22976. flex-wrap: nowrap;
  22977. align-items: flex-start;
  22978. position: relative;
  22979. }
  22980. .toolBox {
  22981. margin: 15px 0 0 25px;
  22982. display: flex;
  22983. position: relative;
  22984. padding: 18px 20px;
  22985. border-top-left-radius: 5px;
  22986. border-top-right-radius: 5px;
  22987. width: 90%;
  22988. }
  22989. .btnAll {
  22990. position: absolute;
  22991. right: 0;
  22992. display: flex;
  22993. flex-direction: row;
  22994. flex-wrap: nowrap;
  22995. align-items: center;
  22996. }
  22997. .btnLeft,
  22998. .btnRight {
  22999. display: flex;
  23000. flex-direction: row;
  23001. flex-wrap: nowrap;
  23002. align-items: center;
  23003. padding: 5px 0;
  23004. }
  23005. .btnLeft {
  23006. border-right: 1px solid #cad1dc;
  23007. }
  23008. .btnLeft > .custom-tooltip {
  23009. background: #3681fc;
  23010. color: #fff;
  23011. }
  23012. .last:hover {
  23013. background: #3383fa !important;
  23014. color: #fff;
  23015. border: 1px solid #3383fa !important;
  23016. }
  23017. .last,
  23018. .returnBtn1 {
  23019. width: 90px;
  23020. height: 36px;
  23021. background: #ffffff;
  23022. border-radius: 4px;
  23023. border: 1px solid #0061ff;
  23024. color: #0061ff;
  23025. cursor: pointer;
  23026. display: flex;
  23027. flex-direction: row;
  23028. flex-wrap: nowrap;
  23029. align-items: center;
  23030. justify-content: center;
  23031. margin-left: 12px;
  23032. }
  23033. .returnBtn1 {
  23034. background: #f0f4fa;
  23035. border-radius: 4px;
  23036. border: 1px solid #cad1dc;
  23037. margin: 0 12px;
  23038. }
  23039. .lastImg {
  23040. min-width: 15px;
  23041. width: 15px;
  23042. height: 15px;
  23043. display: flex;
  23044. }
  23045. .lastText {
  23046. padding: 0 5px 0 5px;
  23047. box-sizing: border-box;
  23048. font-size: 14px;
  23049. }
  23050. .lastImg > img {
  23051. width: 100%;
  23052. height: 100%;
  23053. }
  23054. /* .vedioTimeBox {
  23055. display: flex;
  23056. flex-direction: row;
  23057. align-items: center;
  23058. flex-wrap: nowrap;
  23059. position: relative;
  23060. } */
  23061. .navBox {
  23062. background: #fff;
  23063. height: calc(100% - 40px);
  23064. overflow-y: auto;
  23065. overflow-x: hidden;
  23066. }
  23067. .worksBox {
  23068. margin: 0 0 10px 25px;
  23069. border-bottom: 1px solid #eeeeee;
  23070. padding: 18px 20px;
  23071. border-radius: 4px;
  23072. width: 90%;
  23073. }
  23074. .worksBTitle {
  23075. font-size: 20px;
  23076. padding-bottom: 15px;
  23077. border-bottom: 1px solid #eeeeee;
  23078. display: flex;
  23079. align-items: center;
  23080. }
  23081. .greenBox {
  23082. width: 5px;
  23083. height: 30px;
  23084. background: #63b6fa;
  23085. margin-right: 5px;
  23086. }
  23087. .worksDetailBox {
  23088. display: flex;
  23089. width: 100%;
  23090. flex-direction: row;
  23091. flex-wrap: wrap;
  23092. align-items: flex-end;
  23093. justify-content: flex-start;
  23094. padding: 15px 5px;
  23095. box-sizing: border-box;
  23096. }
  23097. .works {
  23098. display: flex;
  23099. flex-direction: column;
  23100. flex-wrap: nowrap;
  23101. align-items: flex-start;
  23102. justify-content: flex-start;
  23103. align-content: center;
  23104. max-width: 240px;
  23105. width: calc(100% / 3 - 10px);
  23106. height: auto;
  23107. margin-right: 10px;
  23108. margin-bottom: 10px;
  23109. overflow: hidden;
  23110. height: 140px;
  23111. box-shadow: 0 0 6px 1px #dfdada;
  23112. border-radius: 15px;
  23113. }
  23114. .workImg {
  23115. width: 100%;
  23116. /* height: calc(100% - 40px); */
  23117. height: 105px;
  23118. position: relative;
  23119. }
  23120. .workImg > img {
  23121. width: 100%;
  23122. height: 100%;
  23123. object-fit: contain;
  23124. cursor: pointer;
  23125. }
  23126. .worksName {
  23127. height: 40px;
  23128. line-height: 40px;
  23129. display: flex;
  23130. width: 100%;
  23131. flex-direction: row;
  23132. flex-wrap: nowrap;
  23133. justify-content: space-between;
  23134. align-items: center;
  23135. margin: 0 0 0 10px;
  23136. }
  23137. .worksName > div:nth-child(1) {
  23138. width: 110px;
  23139. white-space: nowrap;
  23140. overflow: hidden;
  23141. text-overflow: ellipsis;
  23142. }
  23143. .worksName > div:nth-child(2) {
  23144. color: #b7b4b5;
  23145. }
  23146. .noWorksS {
  23147. padding: 15px 0;
  23148. display: flex;
  23149. flex-direction: row;
  23150. flex-wrap: wrap;
  23151. align-items: center;
  23152. justify-content: flex-start;
  23153. }
  23154. .noWorksName,
  23155. .isWorksName,
  23156. .isWorksName2 {
  23157. background: #ddebf8;
  23158. color: #000;
  23159. width: 90px;
  23160. height: 25px;
  23161. text-align: center;
  23162. line-height: 25px;
  23163. border-radius: 4px;
  23164. margin: 10px 15px 10px 0;
  23165. white-space: nowrap;
  23166. overflow: hidden;
  23167. padding: 5px;
  23168. text-overflow: ellipsis;
  23169. cursor: pointer;
  23170. border: 1px solid #ddebf8;
  23171. }
  23172. .noWorksName {
  23173. background: #fff;
  23174. color: #0061ff;
  23175. border: 1px solid #0061ff;
  23176. }
  23177. .noWorksName > span{
  23178. max-width: 100%;
  23179. display: block;
  23180. overflow: hidden;
  23181. text-overflow: ellipsis;
  23182. white-space: nowrap;
  23183. }
  23184. .isWorksName2 {
  23185. width: 100px;
  23186. height: 40px;
  23187. line-height: 40px;
  23188. position: relative;
  23189. background: #dae6f9;
  23190. }
  23191. .isWorksName {
  23192. background: #e7ebf1 !important;
  23193. width: 100px;
  23194. height: 40px;
  23195. line-height: 40px;
  23196. position: relative;
  23197. color: #acb4bf;
  23198. border: 1px solid #cad1dc !important;
  23199. }
  23200. .isSelectName,
  23201. .noWorksName:hover {
  23202. background: #3383fa !important;
  23203. color: #fff !important;
  23204. border: 1px solid #3383fa !important;
  23205. }
  23206. .title {
  23207. background: #1e5cc9;
  23208. /* width: 98%; */
  23209. height: 45px;
  23210. color: #fff;
  23211. line-height: 45px;
  23212. padding-left: 20px;
  23213. box-sizing: border-box;
  23214. }
  23215. .textBox {
  23216. font-size: 20px;
  23217. width: 90%;
  23218. display: flex;
  23219. flex-direction: column;
  23220. align-items: center;
  23221. margin: 20px auto 0;
  23222. max-height: calc(100% - 75px);
  23223. overflow: auto;
  23224. }
  23225. .textContent {
  23226. font-size: 18px;
  23227. width: 95%;
  23228. max-width: 95%;
  23229. }
  23230. .answerBg {
  23231. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  23232. background-size: 100% 100%;
  23233. width: 100%;
  23234. height: 100%;
  23235. color: #fff;
  23236. text-align: center;
  23237. display: flex;
  23238. flex-direction: column;
  23239. flex-wrap: nowrap;
  23240. align-items: center;
  23241. position: relative;
  23242. justify-content: center;
  23243. }
  23244. .answerBg > div:nth-child(1) {
  23245. /* font-size: 22px;
  23246. padding: 25px 0 10px; */
  23247. }
  23248. .answerContent {
  23249. width: 215px;
  23250. max-height: 60px;
  23251. word-break: break-all;
  23252. text-align: center;
  23253. /* white-space: nowrap; */
  23254. overflow: hidden;
  23255. text-overflow: ellipsis;
  23256. /* padding: 23px 0 0; */
  23257. -webkit-line-clamp: 3;
  23258. -webkit-box-orient: vertical;
  23259. display: -webkit-box;
  23260. font-size: 15px;
  23261. cursor: pointer;
  23262. }
  23263. .elist_input_box {
  23264. display: flex;
  23265. align-items: flex-start;
  23266. flex-wrap: nowrap;
  23267. padding: 10px 0 15px 30px;
  23268. flex-direction: column;
  23269. }
  23270. .elist_input {
  23271. /* width: 40%; */
  23272. width: 45%;
  23273. padding: 20px;
  23274. /* margin: 20px; */
  23275. box-sizing: border-box;
  23276. }
  23277. .elist_input .elist_input_box input {
  23278. font: inherit;
  23279. color: currentColor;
  23280. width: 200px;
  23281. padding: 8px 14px;
  23282. display: block;
  23283. min-width: 0;
  23284. outline: none;
  23285. border: 1px solid rgba(0, 0, 0, 0.23);
  23286. border-radius: 4px;
  23287. box-sizing: border-box;
  23288. background: #fff;
  23289. margin: 0 20px 0 0;
  23290. }
  23291. .elist_input .elist_input_box span {
  23292. height: 36px;
  23293. line-height: 36px;
  23294. color: rgb(82, 82, 82);
  23295. }
  23296. .elist_input .elist_input_box .remove {
  23297. height: 20px;
  23298. width: 20px;
  23299. background-size: 100% 100%;
  23300. background-position: unset;
  23301. margin-left: 5px;
  23302. }
  23303. .elist_input_box >>> .el-rate {
  23304. display: flex;
  23305. height: 36px;
  23306. align-items: center;
  23307. }
  23308. .elist_input_box .elist_inptu_text {
  23309. min-height: 50px;
  23310. /* width: 500px;
  23311. max-height: 150px; */
  23312. width: 100%;
  23313. line-height: 50px;
  23314. color: rgb(82, 82, 82);
  23315. overflow: auto;
  23316. text-indent: 5px;
  23317. background: #f7f6f9;
  23318. border-radius: 10px;
  23319. }
  23320. .elist_input_box .elist_inptu_text input {
  23321. width: 500px;
  23322. }
  23323. .elist_input_box >>> .el-rate__icon {
  23324. font-size: 24px;
  23325. }
  23326. .isClick {
  23327. background: #4d9def;
  23328. }
  23329. .bzBox {
  23330. display: flex;
  23331. flex-direction: row;
  23332. align-items: center;
  23333. }
  23334. .bzBox .yCss {
  23335. width: 7px;
  23336. height: 7px;
  23337. background: #fff;
  23338. margin: 0 16px 0 6px;
  23339. border-radius: 50%;
  23340. border: 5px solid #3681fc;
  23341. z-index: 99;
  23342. }
  23343. .bzBox > div:nth-child(2) {
  23344. font-size: 18px;
  23345. font-weight: bold;
  23346. color: #0e1e33;
  23347. }
  23348. .navTitile {
  23349. padding: 0 0px 0 15px;
  23350. font-size: 16px;
  23351. font-weight: bold;
  23352. color: #0e1e33;
  23353. height: 40px;
  23354. line-height: 40px;
  23355. }
  23356. .isTypeOne {
  23357. width: 240px;
  23358. height: 170px;
  23359. /* border: 1px solid #f8f8f8; */
  23360. border-radius: 10px;
  23361. box-shadow: 0 0 6px 1px #dfdada;
  23362. }
  23363. .e_add_top {
  23364. display: flex;
  23365. justify-content: space-between;
  23366. padding: 10px 20px;
  23367. border-radius: 3px;
  23368. background: #fff;
  23369. }
  23370. .e_add_title2 {
  23371. display: flex;
  23372. align-items: center;
  23373. }
  23374. .e_add_title2 span {
  23375. width: 40px;
  23376. }
  23377. .e_add_title {
  23378. display: flex;
  23379. align-items: center;
  23380. color: #b8b8b8;
  23381. font-size: 18px;
  23382. position: relative;
  23383. height: 40px;
  23384. }
  23385. .e_add_title span {
  23386. margin-right: 10px;
  23387. }
  23388. .e_add_title .el_input {
  23389. width: 300px;
  23390. }
  23391. .e_add_title >>> .el-input__inner {
  23392. width: 400px;
  23393. }
  23394. .e_add_btn {
  23395. }
  23396. .e_add_content {
  23397. display: flex;
  23398. width: 100%;
  23399. max-width: 650px;
  23400. height: 550px;
  23401. }
  23402. .e_add_list {
  23403. background: #fff;
  23404. height: 500px;
  23405. width: 210px;
  23406. position: relative;
  23407. margin: 15px 5px 0 0;
  23408. flex-shrink: 0;
  23409. display: flex;
  23410. flex-direction: column;
  23411. }
  23412. .e_add_list_title {
  23413. font-size: 20px;
  23414. width: 100%;
  23415. box-sizing: border-box;
  23416. padding: 15px 40px;
  23417. text-align: center;
  23418. border-bottom: 1px solid #eaeaea;
  23419. position: relative;
  23420. display: flex;
  23421. align-items: center;
  23422. justify-content: center;
  23423. height: 57px;
  23424. background: #f6f6f6;
  23425. }
  23426. .e_add_list_title span {
  23427. overflow: hidden;
  23428. white-space: nowrap;
  23429. text-overflow: ellipsis;
  23430. }
  23431. .e_add_list_title img {
  23432. position: absolute;
  23433. right: 15px;
  23434. width: 25px;
  23435. cursor: pointer;
  23436. top: 50%;
  23437. transform: translateY(-50%);
  23438. }
  23439. .e_add_list_body {
  23440. height: calc(100% - 187px);
  23441. overflow: auto;
  23442. }
  23443. .e_add_list_child {
  23444. width: 100%;
  23445. display: flex;
  23446. align-items: center;
  23447. justify-content: center;
  23448. position: relative;
  23449. box-sizing: border-box;
  23450. padding: 15px 40px;
  23451. text-align: center;
  23452. }
  23453. .e_add_list_child span {
  23454. overflow: hidden;
  23455. white-space: nowrap;
  23456. text-overflow: ellipsis;
  23457. cursor: pointer;
  23458. }
  23459. .e_add_list_child img {
  23460. position: absolute;
  23461. right: 10px;
  23462. width: 21px;
  23463. cursor: pointer;
  23464. top: 50%;
  23465. transform: translateY(-50%);
  23466. }
  23467. .e_add_list_child + .e_add_list_child {
  23468. border-top: 1px solid #eaeaea;
  23469. }
  23470. .e_add_list_child .active {
  23471. color: #409eff;
  23472. }
  23473. .e_add_list_btn {
  23474. position: absolute;
  23475. bottom: 0;
  23476. height: 50px;
  23477. background: rgb(120, 120, 254);
  23478. width: 100%;
  23479. color: #fff;
  23480. font-size: 16px;
  23481. text-align: center;
  23482. line-height: 50px;
  23483. cursor: pointer;
  23484. }
  23485. .e_add_list_detail {
  23486. position: absolute;
  23487. bottom: 0;
  23488. height: 130px;
  23489. background: rgb(120, 120, 254);
  23490. width: 100%;
  23491. color: #fff;
  23492. font-size: 16px;
  23493. display: flex;
  23494. align-items: center;
  23495. justify-content: center;
  23496. }
  23497. .e_add_list_detail textarea {
  23498. height: 90%;
  23499. width: 95%;
  23500. border: none;
  23501. resize: none;
  23502. outline: none;
  23503. padding: 5px;
  23504. box-sizing: border-box;
  23505. }
  23506. .e_add_list_pbox {
  23507. width: 100%;
  23508. max-width: 650px;
  23509. /* height: 600px; */
  23510. }
  23511. .e_add_list_pbox_title {
  23512. height: 50px;
  23513. background: #fff;
  23514. display: flex;
  23515. align-items: center;
  23516. width: 100%;
  23517. box-sizing: border-box;
  23518. padding: 0 20px;
  23519. }
  23520. .type_title {
  23521. font-size: 18px;
  23522. font-weight: 700;
  23523. }
  23524. .type_content {
  23525. font-size: 16px;
  23526. /* margin-left: 30px; */
  23527. }
  23528. .type_content span + span {
  23529. margin-left: 20px;
  23530. }
  23531. .type_content span {
  23532. cursor: pointer;
  23533. padding-bottom: 5px;
  23534. box-sizing: border-box;
  23535. }
  23536. .type_content .active {
  23537. color: #409eff;
  23538. border-bottom: 2px solid #409eff;
  23539. }
  23540. .e_add_list_pbox_content {
  23541. height: calc(100% - 50px);
  23542. display: flex;
  23543. align-items: center;
  23544. width: 100%;
  23545. background: #fff;
  23546. }
  23547. .evaCss {
  23548. display: flex;
  23549. flex-direction: row;
  23550. flex-wrap: nowrap;
  23551. align-items: flex-start;
  23552. padding: 0 0 20px;
  23553. }
  23554. .evaCss >>> .cell {
  23555. position: relative;
  23556. overflow: visible;
  23557. }
  23558. .evaCss >>>.el-table__body-wrapper{
  23559. overflow: visible;
  23560. }
  23561. .evaCss >>> .el-table{
  23562. overflow: visible;
  23563. }
  23564. .blueRootCss{
  23565. position: absolute;
  23566. top:50%;
  23567. left: 0;
  23568. transform: translate(-20px,-50%);
  23569. }
  23570. .cru_line {
  23571. position: absolute;
  23572. bottom: 0px;
  23573. transition: all 0.5s;
  23574. left: 0px;
  23575. width: 125px;
  23576. margin-left: -25px;
  23577. }
  23578. .isNoMessage {
  23579. width: 20%;
  23580. margin: 25% auto 0;
  23581. }
  23582. .isNoMessage > img {
  23583. width: 100%;
  23584. height: 100%;
  23585. }
  23586. .fullStyle >>> .el-dialog__body {
  23587. height: 100% !important;
  23588. }
  23589. .fullStyle >>> .el-dialog,
  23590. .fullStyle {
  23591. width: 100% !important;
  23592. max-width: 100% !important;
  23593. height: 100% !important;
  23594. margin: 0 !important;
  23595. }
  23596. .full_diy >>> .el-dialog {
  23597. margin: 0 !important;
  23598. height: 100%;
  23599. padding: 4px;
  23600. }
  23601. .full_diy >>> .el-dialog__body {
  23602. height: calc(100% - 100px);
  23603. }
  23604. .full_diy2 >>> .el-dialog__body {
  23605. height: calc(100% - 50px);
  23606. padding: 0;
  23607. }
  23608. .switchCss {
  23609. /* width: 100%; */
  23610. display: flex;
  23611. flex-direction: row;
  23612. flex-wrap: nowrap;
  23613. align-items: center;
  23614. /* justify-content: center; */
  23615. }
  23616. .isClickNav {
  23617. /* color: #499eef; */
  23618. color: #000;
  23619. }
  23620. .commentImg {
  23621. width: 25px;
  23622. height: 25px;
  23623. cursor: pointer;
  23624. }
  23625. .commentImg > img {
  23626. width: 100%;
  23627. height: 100%;
  23628. }
  23629. .comment {
  23630. background: #f9f9f9;
  23631. border-radius: 0 0 4px 4px;
  23632. display: flex;
  23633. flex-direction: row;
  23634. flex-wrap: nowrap;
  23635. align-items: center;
  23636. justify-content: flex-end;
  23637. height: 35px;
  23638. }
  23639. .commentList {
  23640. display: flex;
  23641. flex-direction: row;
  23642. flex-wrap: nowrap;
  23643. align-items: center;
  23644. justify-content: center;
  23645. align-content: center;
  23646. /* margin-left: 15px; */
  23647. /* margin-left: 8px; */
  23648. }
  23649. .scoreImg {
  23650. width: 17px;
  23651. height: 17px;
  23652. }
  23653. .studentDetail {
  23654. display: flex;
  23655. flex-direction: row;
  23656. flex-wrap: nowrap;
  23657. /* align-items: center; */
  23658. align-items: flex-start;
  23659. }
  23660. .tx {
  23661. width: 50px;
  23662. }
  23663. .tx > img {
  23664. width: 100%;
  23665. height: 100%;
  23666. }
  23667. .nameAndTime {
  23668. display: flex;
  23669. flex-direction: column;
  23670. flex-wrap: nowrap;
  23671. align-items: flex-start;
  23672. margin-left: 10px;
  23673. }
  23674. .worksAnswer {
  23675. color: #4078dd;
  23676. margin: 10px 0;
  23677. font-size: 16px;
  23678. position: relative;
  23679. }
  23680. .worksAnswer > img {
  23681. width: 500px;
  23682. height: 300px;
  23683. object-fit: contain;
  23684. margin: 0 auto;
  23685. display: block;
  23686. }
  23687. .commentTop {
  23688. border-bottom: 1px solid #eaeaea;
  23689. padding-bottom: 10px;
  23690. }
  23691. .commentBox {
  23692. padding-top: 15px;
  23693. }
  23694. .pl {
  23695. font-size: 18px;
  23696. }
  23697. .plPerson {
  23698. width: 100%;
  23699. }
  23700. .plName {
  23701. display: flex;
  23702. flex-direction: row;
  23703. flex-wrap: nowrap;
  23704. align-items: baseline;
  23705. color: #78787a;
  23706. width: 100%;
  23707. }
  23708. .deleteComment {
  23709. cursor: pointer;
  23710. margin-left: auto;
  23711. color: #237ade;
  23712. }
  23713. .plContent {
  23714. margin-top: 5px;
  23715. }
  23716. .evalCss {
  23717. background: #fff;
  23718. font-size: 18px;
  23719. }
  23720. .nav {
  23721. color: #9d9d9d;
  23722. padding: 5px 0 15px 20px;
  23723. }
  23724. .middleBox {
  23725. padding: 5px 0 15px 20px;
  23726. }
  23727. .pfBox {
  23728. padding-bottom: 30px;
  23729. }
  23730. .nameAndrate {
  23731. display: flex;
  23732. flex-direction: row;
  23733. flex-wrap: nowrap;
  23734. align-items: center;
  23735. padding-bottom: 10px;
  23736. height: 30px;
  23737. line-height: 30px;
  23738. }
  23739. .nameAndrate > div {
  23740. margin-left: 10px;
  23741. color: #000;
  23742. height: 30px;
  23743. }
  23744. .nameAndrate >>> .el-rate__icon {
  23745. font-size: 28px !important;
  23746. }
  23747. .pfBox > div:nth-child(2) {
  23748. background: #f7f6f9;
  23749. width: 400px;
  23750. min-height: 45px;
  23751. border-radius: 10px;
  23752. font-size: 16px;
  23753. display: flex;
  23754. flex-wrap: wrap;
  23755. align-items: center;
  23756. padding: 10px 20px;
  23757. box-sizing: border-box;
  23758. color: #000;
  23759. }
  23760. .bz {
  23761. display: flex;
  23762. flex-direction: row;
  23763. flex-wrap: nowrap;
  23764. align-items: flex-start;
  23765. }
  23766. .bz > div {
  23767. padding: 0 10px;
  23768. }
  23769. .select_box2_title {
  23770. background: #fff;
  23771. border-radius: 5px;
  23772. padding: 15px 10px;
  23773. box-sizing: border-box;
  23774. margin-bottom: 10px;
  23775. display: flex;
  23776. flex-direction: row;
  23777. flex-wrap: nowrap;
  23778. align-items: center;
  23779. }
  23780. .select_box2_title > div:nth-child(2) {
  23781. margin-left: 10px;
  23782. color: #c4c4c4;
  23783. }
  23784. .select_box2_box {
  23785. display: flex;
  23786. height: 500px;
  23787. }
  23788. .select_box2_img {
  23789. width: calc(100% - 310px);
  23790. height: 100%;
  23791. overflow: auto;
  23792. background: #fff;
  23793. border-radius: 5px;
  23794. }
  23795. .select_box2_img img {
  23796. width: 100%;
  23797. }
  23798. .select_box2_answer {
  23799. background: #fff;
  23800. margin-left: 10px;
  23801. border-radius: 5px;
  23802. width: 300px;
  23803. overflow: auto;
  23804. height: 90%;
  23805. display: flex;
  23806. flex-direction: column;
  23807. align-items: flex-start;
  23808. padding-top: 10px;
  23809. box-sizing: border-box;
  23810. position: relative;
  23811. }
  23812. .select_answer_title {
  23813. padding: 0 0 15px 20px;
  23814. color: #c4c4c4;
  23815. }
  23816. .select_box2_answer_box {
  23817. margin: 0 0 10px 20px;
  23818. width: 85%;
  23819. display: flex;
  23820. flex-direction: row;
  23821. flex-wrap: nowrap;
  23822. align-items: center;
  23823. }
  23824. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23825. color: #000;
  23826. }
  23827. .upAnswerCss {
  23828. position: absolute;
  23829. bottom: 15px;
  23830. right: 15px;
  23831. }
  23832. .upAnswerCss >>> .el-button {
  23833. width: 95px;
  23834. height: 35px;
  23835. line-height: 35px;
  23836. padding: 0;
  23837. }
  23838. .rightWidthCss {
  23839. width: 60%;
  23840. display: flex;
  23841. flex-direction: row;
  23842. align-items: flex-start;
  23843. }
  23844. .rightAnswer {
  23845. display: flex;
  23846. flex-direction: row;
  23847. flex-wrap: nowrap;
  23848. align-items: center;
  23849. color: red;
  23850. margin-bottom: 31px;
  23851. }
  23852. .rightAnswerCss {
  23853. display: flex;
  23854. flex-direction: column;
  23855. flex-wrap: nowrap;
  23856. padding-top: 60px;
  23857. }
  23858. .blueCss {
  23859. color: #767de1;
  23860. margin-left: 10px;
  23861. }
  23862. .redCss {
  23863. color: red;
  23864. }
  23865. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23866. color: rgb(0 123 255) !important;
  23867. }
  23868. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23869. color: rgb(0 123 255) !important;
  23870. }
  23871. .zuoyeYulan {
  23872. padding-top: 0;
  23873. font-size: 18px;
  23874. display: flex;
  23875. align-items: flex-end;
  23876. }
  23877. .buttonA {
  23878. margin-left: 10px;
  23879. padding: 0;
  23880. }
  23881. .displayBox {
  23882. margin-bottom: 10px;
  23883. display: block;
  23884. border-bottom: 3px solid #eee;
  23885. display: flex;
  23886. align-items: center;
  23887. }
  23888. .easy_comment {
  23889. width: calc(100% - 90px);
  23890. margin-left: 10px;
  23891. display: flex;
  23892. flex-wrap: wrap;
  23893. }
  23894. .easy_comment > div {
  23895. border: 1px solid #4a4a4a;
  23896. color: #666;
  23897. border-radius: 15px;
  23898. padding: 5px 10px;
  23899. font-size: 16px;
  23900. margin-bottom: 10px;
  23901. margin-right: 5px;
  23902. cursor: pointer;
  23903. }
  23904. .easy_comment div:hover {
  23905. border: 1px solid #f7ba2a;
  23906. color: #c69217;
  23907. }
  23908. .xuan_right_box {
  23909. padding: 10px 0;
  23910. background: #f0f4fa;
  23911. margin: 0 15px 0 25px;
  23912. border-bottom-left-radius: 5px;
  23913. border-bottom-right-radius: 5px;
  23914. width: 91.5%;
  23915. }
  23916. .tool_right_box {
  23917. display: flex;
  23918. align-items: center;
  23919. }
  23920. .tool_right_box + .tool_right_box {
  23921. margin-top: 10px;
  23922. }
  23923. .right_box_xuan {
  23924. border-radius: 5px;
  23925. padding: 5px;
  23926. margin-left: 10px;
  23927. min-width: 85px;
  23928. background: #fff;
  23929. color: #0061ff;
  23930. border: 1px solid #0061ff;
  23931. font-size: 14px;
  23932. }
  23933. .pButton:hover {
  23934. opacity: 1 !important;
  23935. }
  23936. .pButton {
  23937. position: fixed;
  23938. text-align: center;
  23939. cursor: pointer;
  23940. z-index: 999;
  23941. right: 20px;
  23942. top: 110px;
  23943. width: 50px;
  23944. height: 50px;
  23945. display: flex;
  23946. align-items: center;
  23947. justify-content: center;
  23948. border-radius: 5px;
  23949. }
  23950. .pzClass {
  23951. width: calc(100% - 340px);
  23952. }
  23953. .newDialogCss {
  23954. /* position: fixed;
  23955. right: 5%;
  23956. top: 50%;
  23957. width: 340px;
  23958. transform: translateY(-50%);
  23959. height: 60%;
  23960. box-shadow: 0px 0 8px 0px #555555;
  23961. border-radius: 15px;
  23962. z-index: 999; */
  23963. position: fixed;
  23964. right: 20px;
  23965. top: 101px;
  23966. width: 330px;
  23967. height: calc(100% - 80px);
  23968. z-index: 999;
  23969. background: #fff;
  23970. border-top-right-radius: 0px;
  23971. border-bottom-right-radius: 0px;
  23972. overflow: hidden;
  23973. }
  23974. .newDialogCss>.scoreList{
  23975. width:100%;
  23976. height:100%;
  23977. box-sizing:border-box;
  23978. padding:10px 15px;
  23979. overflow:auto;
  23980. padding-bottom:80px;
  23981. }
  23982. .pzTop {
  23983. color: #fff;
  23984. background: #000;
  23985. display: flex;
  23986. flex-direction: row;
  23987. flex-wrap: nowrap;
  23988. align-items: center;
  23989. justify-content: space-between;
  23990. height: 40px;
  23991. border-radius: 15px 15px 0 0;
  23992. user-select: none;
  23993. }
  23994. .pzTop2 .checkbox {
  23995. display: flex;
  23996. align-items: center;
  23997. padding: 5px 10px;
  23998. flex: 0 0 auto;
  23999. font-weight: bold;
  24000. border-bottom: 1px solid #eee;
  24001. justify-content: space-between;
  24002. }
  24003. .checkbox>.cb-tabList{
  24004. display:flex;
  24005. align-items:center;
  24006. }
  24007. .cb-tabList>div{
  24008. margin-right:20px;
  24009. font-weight:400;
  24010. cursor:pointer;
  24011. }
  24012. .cb-tabList>.cb-tabItem{
  24013. color:#1684FC;
  24014. position:relative;
  24015. }
  24016. .cb-tabItem::after{
  24017. content:"";
  24018. width:100%;
  24019. height:2px;
  24020. background:#1684FC;
  24021. position:absolute;
  24022. bottom:-5px;
  24023. left:0
  24024. }
  24025. .pzTop2 .check {
  24026. text-align: center;
  24027. cursor: pointer;
  24028. box-sizing: border-box;
  24029. display: flex;
  24030. }
  24031. .pzTop2 img {
  24032. width: 25px;
  24033. cursor: pointer;
  24034. }
  24035. .pzTop > div:nth-child(1) {
  24036. padding-left: 10px;
  24037. }
  24038. .pzTop > div:nth-child(2) {
  24039. width: 15px;
  24040. height: 15px;
  24041. padding-right: 10px;
  24042. cursor: pointer;
  24043. }
  24044. .pzTop > div:nth-child(2) > img {
  24045. width: 100%;
  24046. height: 100%;
  24047. }
  24048. .pzBox,
  24049. .noPzBox {
  24050. height: calc(100% - 60px);
  24051. /* background: #ededed; */
  24052. background: #fff;
  24053. /* border-radius: 0 0 15px 15px; */
  24054. }
  24055. .noPzBox {
  24056. display: flex;
  24057. flex-direction: column;
  24058. flex-wrap: nowrap;
  24059. justify-content: center;
  24060. align-items: center;
  24061. }
  24062. .pzList {
  24063. background: #f7f7f7;
  24064. width: 90%;
  24065. margin: 0 auto 15px;
  24066. border-radius: 5px;
  24067. }
  24068. .pzNavTop {
  24069. display: flex;
  24070. flex-direction: row;
  24071. flex-wrap: nowrap;
  24072. padding: 10px 10px 0 10px;
  24073. align-items: center;
  24074. }
  24075. .pzDelete {
  24076. cursor: pointer;
  24077. margin-left: auto;
  24078. font-size: 14px;
  24079. color: #afafaf;
  24080. }
  24081. .pzNavTop > div:nth-child(1) {
  24082. background: #3760af;
  24083. width: 35px;
  24084. height: 35px;
  24085. color: #fff;
  24086. text-align: center;
  24087. line-height: 35px;
  24088. border-radius: 50%;
  24089. font-size: 14px;
  24090. }
  24091. .pzNavTop > div:nth-child(2) {
  24092. font-size: 18px;
  24093. color: #959595;
  24094. margin-left: 5px;
  24095. }
  24096. .pzContent {
  24097. padding: 10px;
  24098. word-break: break-word;
  24099. }
  24100. .pzContent audio {
  24101. width: 100%;
  24102. }
  24103. .pzContent audio::-webkit-media-controls-panel {
  24104. background: #fff;
  24105. }
  24106. .pzContent >>> img {
  24107. max-width: 100%;
  24108. }
  24109. .pzListBox {
  24110. padding-top: 15px;
  24111. height: calc(100% - 110px);
  24112. overflow: auto;
  24113. }
  24114. .addPzButton {
  24115. position: relative;
  24116. margin-top: 3px;
  24117. width: 100%;
  24118. }
  24119. .addPzButton .img1 {
  24120. position: absolute;
  24121. top: 50%;
  24122. right: 25px;
  24123. transform: translateY(-50%);
  24124. height: 100%;
  24125. display: flex;
  24126. align-items: center;
  24127. }
  24128. .addPzButton .img1 div {
  24129. display: flex;
  24130. }
  24131. .addPzButton .img1 div img {
  24132. width: 28px;
  24133. margin-left: 10px;
  24134. cursor: pointer;
  24135. }
  24136. .addPzButton .img1 div span {
  24137. font-size: 14px;
  24138. margin: 4px 0 0 3px;
  24139. color: #afafaf;
  24140. }
  24141. .addPz {
  24142. background: #4b79ce;
  24143. width: 100px;
  24144. color: #fff;
  24145. font-size: 12px;
  24146. height: 30px;
  24147. margin: 0 auto;
  24148. text-align: center;
  24149. line-height: 30px;
  24150. border-radius: 10px;
  24151. cursor: pointer;
  24152. }
  24153. .addDialogCss {
  24154. position: fixed;
  24155. width: 600px;
  24156. height: 70%;
  24157. min-height: 450px;
  24158. box-shadow: 0px 0 8px 0px #555555;
  24159. border-radius: 15px;
  24160. z-index: 999;
  24161. left: 50%;
  24162. top: 50%;
  24163. margin: -18% 0 0 -300px;
  24164. }
  24165. .teacherPz {
  24166. display: flex;
  24167. flex-direction: row;
  24168. align-items: center;
  24169. flex-wrap: nowrap;
  24170. }
  24171. .teacherPzImg {
  24172. width: 30px;
  24173. height: 30px;
  24174. }
  24175. .teacherPzImg > img {
  24176. width: 100%;
  24177. height: 100%;
  24178. }
  24179. .addPzBox {
  24180. height: calc(100% - 40px);
  24181. background: #ededed;
  24182. border-bottom-left-radius: 15px;
  24183. border-bottom-right-radius: 15px;
  24184. }
  24185. .pzAudioClass {
  24186. margin: 15px 14px;
  24187. background: #fff;
  24188. height: 100%;
  24189. display: flex;
  24190. justify-content: center;
  24191. align-items: center;
  24192. }
  24193. .pzConText {
  24194. width: 95%;
  24195. height: 100%;
  24196. margin: 10px auto 0;
  24197. border: none;
  24198. background: #fff;
  24199. border-radius: 0px;
  24200. }
  24201. .pzConText >>> .text {
  24202. height: calc(100% - 82px);
  24203. }
  24204. .addTextCss {
  24205. background: #4b79ce;
  24206. width: 80px;
  24207. height: 30px;
  24208. text-align: center;
  24209. color: #fff;
  24210. line-height: 30px;
  24211. border-radius: 10px;
  24212. margin: 10px auto 0;
  24213. cursor: pointer;
  24214. }
  24215. .pzConText:focus-visible {
  24216. border: none !important;
  24217. }
  24218. .maxWidth {
  24219. width: 1000px;
  24220. }
  24221. .noPz {
  24222. width: 150px;
  24223. margin: 0 auto 20%;
  24224. }
  24225. .noPz > img {
  24226. width: 100%;
  24227. height: 100%;
  24228. }
  24229. .timeAndReply {
  24230. display: flex;
  24231. flex-direction: row;
  24232. flex-wrap: nowrap;
  24233. justify-content: space-between;
  24234. align-items: center;
  24235. font-size: 14px;
  24236. box-sizing: border-box;
  24237. padding: 0 10px 10px 0px;
  24238. }
  24239. .timeAndReply .time {
  24240. color: #bfbfbf;
  24241. padding: 0 0 0 10px;
  24242. box-sizing: border-box;
  24243. }
  24244. .timeAndReply > div:last-child {
  24245. cursor: pointer;
  24246. color: #777;
  24247. }
  24248. /* table 样式 */
  24249. .cont >>> table {
  24250. border-top: 1px solid #ccc;
  24251. border-left: 1px solid #ccc;
  24252. }
  24253. .cont >>> table td,
  24254. .cont >>> table th {
  24255. border-bottom: 1px solid #ccc;
  24256. border-right: 1px solid #ccc;
  24257. /* padding: 20px 5px; */
  24258. padding: 5px 10px;
  24259. max-width: 0px;
  24260. height: 30px;
  24261. vertical-align: baseline;
  24262. box-sizing: border-box;
  24263. }
  24264. .cont >>> table th {
  24265. border-bottom: 2px solid #ccc;
  24266. text-align: center;
  24267. }
  24268. /* blockquote 样式 */
  24269. .cont >>> blockquote {
  24270. display: block;
  24271. border-left: 8px solid #d0e5f2;
  24272. padding: 5px 10px;
  24273. margin: 10px 0;
  24274. line-height: 1.4;
  24275. font-size: 100%;
  24276. background-color: #f1f1f1;
  24277. }
  24278. /* code 样式 */
  24279. .cont >>> code {
  24280. display: inline-block;
  24281. /* *display: inline; */
  24282. zoom: 1;
  24283. background-color: #f1f1f1;
  24284. border-radius: 3px;
  24285. padding: 3px 5px;
  24286. margin: 0 3px;
  24287. }
  24288. .cont >>> pre code {
  24289. display: block;
  24290. }
  24291. /* ul ol 样式 */
  24292. .cont >>> ul,
  24293. ol {
  24294. margin: 10px 0 10px 20px;
  24295. }
  24296. .addPzCheck {
  24297. display: flex;
  24298. flex-direction: row;
  24299. flex-wrap: nowrap;
  24300. padding: 10px 15px 0;
  24301. }
  24302. .addPzCheck span {
  24303. cursor: pointer;
  24304. padding-bottom: 5px;
  24305. font-weight: bold;
  24306. }
  24307. .addPzCheck span + span {
  24308. margin-left: 10px;
  24309. }
  24310. .addPzCheck .isChooseActive {
  24311. color: #3e88f4;
  24312. border-bottom: 2px solid #2f80f3;
  24313. }
  24314. /* code 样式 */
  24315. .cont {
  24316. /* -webkit-user-modify: read-write; */
  24317. overflow-wrap: break-word;
  24318. -webkit-line-break: after-white-space;
  24319. word-break: break-word;
  24320. white-space: pre-line;
  24321. }
  24322. .scoreBox,
  24323. .scoreDetailBox {
  24324. display: flex;
  24325. align-items: center;
  24326. justify-content: flex-start;
  24327. margin-top: 20px;
  24328. font-size: 18px;
  24329. width: 100%;
  24330. }
  24331. .scoreBox .t,
  24332. .scoreDetailBox .t {
  24333. margin-right: 10px;
  24334. width: 100px;
  24335. text-align: right;
  24336. }
  24337. .scoreDetailBox {
  24338. align-items: flex-start;
  24339. }
  24340. .scoreDetailBox >>> .el-textarea {
  24341. width: calc(100% - 200px);
  24342. }
  24343. .scoreBox >>> .el-input {
  24344. width: 130px;
  24345. font-size: 38px;
  24346. }
  24347. .scoreBox >>> .el-input__inner {
  24348. height: 60px;
  24349. }
  24350. .answerScore {
  24351. position: absolute;
  24352. top: 10px;
  24353. right: 10px;
  24354. background: #0000008f;
  24355. border-radius: 5px;
  24356. padding: 3px 5px;
  24357. font-size: 14px;
  24358. color: #fff;
  24359. cursor: pointer;
  24360. }
  24361. .open_box .switch_box {
  24362. width: 100%;
  24363. margin: 0 auto;
  24364. display: flex;
  24365. justify-content: space-between;
  24366. }
  24367. .open_box .switch_box + .switch_box {
  24368. margin-top: 10px;
  24369. }
  24370. .deleteImg,.deleteImg1 {
  24371. width: 25px !important;
  24372. height: 25px !important;
  24373. cursor: pointer;
  24374. position: absolute;
  24375. top: 10px;
  24376. right: 10px;
  24377. }
  24378. .deleteImg2 {
  24379. width: 23px !important;
  24380. height: 23px !important;
  24381. top: 5px;
  24382. right: 5px;
  24383. }
  24384. .deleteImg1{
  24385. width: 23px !important;
  24386. height: 23px !important;
  24387. top: 5px !important;
  24388. right: 30px !important;
  24389. }
  24390. .rightW {
  24391. right: 40px;
  24392. }
  24393. .drawPBox {
  24394. display: flex;
  24395. flex-direction: column;
  24396. position: relative;
  24397. }
  24398. .drawPBox span {
  24399. font-size: 18px;
  24400. color: #606266;
  24401. padding-bottom: 10px;
  24402. margin: 10px 0;
  24403. border-bottom: 1px solid #eaeaea;
  24404. }
  24405. .drawPBox img {
  24406. width: 500px;
  24407. height: 300px;
  24408. object-fit: contain;
  24409. cursor: pointer;
  24410. margin: 0 auto;
  24411. }
  24412. .sentenBox {
  24413. background: #fff;
  24414. height: 450px;
  24415. overflow: auto;
  24416. background-image: url("../../assets/icon/conSentences/stuBg.png");
  24417. background-position: 102%;
  24418. background-repeat: no-repeat;
  24419. background-size: 60%;
  24420. }
  24421. .addSen {
  24422. background: #409efe;
  24423. width: 90px;
  24424. color: #fff;
  24425. height: 35px;
  24426. text-align: center;
  24427. line-height: 35px;
  24428. border-radius: 5px;
  24429. float: right;
  24430. margin: 10px 20px 0 0;
  24431. cursor: pointer;
  24432. }
  24433. .sentenTop {
  24434. display: flex;
  24435. flex-direction: row;
  24436. flex-wrap: nowrap;
  24437. align-items: center;
  24438. padding: 55px 0 0 20px;
  24439. box-sizing: border-box;
  24440. }
  24441. .sentenTop > div:nth-child(2) {
  24442. width: 300px;
  24443. margin: 0 15px;
  24444. }
  24445. .sentenTop > div:nth-child(3) {
  24446. background: #409efe;
  24447. color: #fff;
  24448. width: 65px;
  24449. height: 35px;
  24450. text-align: center;
  24451. line-height: 35px;
  24452. border-radius: 5px;
  24453. cursor: pointer;
  24454. }
  24455. .cardList,
  24456. .cardList1 {
  24457. padding: 10px 0 10px 0;
  24458. display: flex;
  24459. flex-direction: row;
  24460. flex-wrap: wrap;
  24461. align-items: center;
  24462. box-sizing: border-box;
  24463. border-bottom: 1px solid #f4f4f4;
  24464. width: 98%;
  24465. margin: 0 auto;
  24466. min-width: 60%;
  24467. max-width: 85%;
  24468. }
  24469. .cardList1 {
  24470. padding: 10px 0 10px 10px !important;
  24471. margin: 0 !important;
  24472. }
  24473. .cardBox {
  24474. display: flex;
  24475. flex-direction: row;
  24476. flex-wrap: wrap;
  24477. align-items: center;
  24478. align-content: center;
  24479. }
  24480. .cardBox > div {
  24481. margin-bottom: 10px;
  24482. }
  24483. .isCard,
  24484. .isChooseCard,
  24485. .noCard,
  24486. .isCard1 {
  24487. min-width: 130px;
  24488. width: auto;
  24489. height: 60px;
  24490. text-align: center;
  24491. line-height: 60px;
  24492. font-size: 20px;
  24493. cursor: pointer;
  24494. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  24495. background-size: cover;
  24496. transition: all 2s;
  24497. margin-right: 20px;
  24498. background-size: 100% 100%;
  24499. padding: 0 20px;
  24500. box-sizing: border-box;
  24501. }
  24502. .isCard > div,
  24503. .noCard > div,
  24504. .isCard1 > div {
  24505. white-space: nowrap;
  24506. overflow: hidden;
  24507. text-overflow: ellipsis;
  24508. width: 100%;
  24509. margin: 0 auto;
  24510. }
  24511. .noCard {
  24512. background-image: none;
  24513. }
  24514. .isCard1 {
  24515. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  24516. }
  24517. .isChooseCard {
  24518. background-image: none;
  24519. border: 1px dashed #b9b9b9;
  24520. border-radius: 10px;
  24521. }
  24522. .card {
  24523. width: 130px;
  24524. height: 60px;
  24525. }
  24526. .card > img {
  24527. width: 100%;
  24528. height: 100%;
  24529. }
  24530. .rightCardBox {
  24531. margin: 10px 0 0 10px;
  24532. }
  24533. .rightCardBox > div:nth-child(1) {
  24534. margin-bottom: 10px;
  24535. }
  24536. .cardCss {
  24537. display: flex;
  24538. flex-direction: column;
  24539. flex-wrap: nowrap;
  24540. align-items: center;
  24541. border-bottom: 3px solid #b4c3d3;
  24542. padding: 0 0 5px 0;
  24543. margin-right: 10px;
  24544. }
  24545. .cardCss > div:nth-child(2) {
  24546. background: #5b7b9d;
  24547. color: #fff;
  24548. width: 20px;
  24549. height: 20px;
  24550. border-radius: 50%;
  24551. text-align: center;
  24552. line-height: 20px;
  24553. }
  24554. .isWrong {
  24555. display: flex;
  24556. flex-direction: row;
  24557. flex-wrap: nowrap;
  24558. align-content: center;
  24559. align-items: center;
  24560. }
  24561. .answerRight {
  24562. width: 25%;
  24563. }
  24564. .isTj {
  24565. display: flex;
  24566. flex-direction: row;
  24567. flex-wrap: nowrap;
  24568. align-items: center;
  24569. }
  24570. .isTj > div:nth-child(2) {
  24571. color: #727070;
  24572. margin-left: 10px;
  24573. }
  24574. .isTjImg {
  24575. width: 30px;
  24576. height: 30px;
  24577. }
  24578. .isTjImg > img {
  24579. width: 100%;
  24580. height: 100%;
  24581. }
  24582. .cardAnswerBox {
  24583. font-size: 18px;
  24584. width: 97%;
  24585. border: 5px;
  24586. padding: 0;
  24587. border-radius: 5px;
  24588. margin: 10px auto;
  24589. word-break: break-word;
  24590. }
  24591. .w_name {
  24592. margin-bottom: 10px;
  24593. }
  24594. .w_name span {
  24595. font-size: 16px;
  24596. }
  24597. .w_teachert {
  24598. width: 50px !important;
  24599. position: absolute;
  24600. height: auto !important;
  24601. z-index: 10;
  24602. right: 25px;
  24603. top: -25px;
  24604. }
  24605. .group_workBox {
  24606. }
  24607. .group_workBox + .group_workBox {
  24608. margin-top: 20px;
  24609. }
  24610. .group_box {
  24611. padding-bottom: 20px;
  24612. border-bottom: 2px solid #f0f0f0;
  24613. margin-top: 10px;
  24614. }
  24615. .group_title {
  24616. display: flex;
  24617. align-items: center;
  24618. justify-content: space-between;
  24619. width: 95%;
  24620. }
  24621. .group_name {
  24622. background-image: url(../../assets/icon/groupN.png);
  24623. width: 220px;
  24624. background-size: 100% 100%;
  24625. height: 67px;
  24626. padding: 0 20px 0 43px;
  24627. box-sizing: border-box;
  24628. line-height: 63px;
  24629. color: #fff;
  24630. overflow: hidden;
  24631. white-space: nowrap;
  24632. text-overflow: ellipsis;
  24633. }
  24634. .group_work {
  24635. width: 100%;
  24636. padding: 0 10px;
  24637. box-sizing: border-box;
  24638. display: flex;
  24639. flex-wrap: wrap;
  24640. }
  24641. .g_d_box {
  24642. display: flex;
  24643. flex-flow: wrap;
  24644. justify-content: space-around;
  24645. }
  24646. .g_d_box .isChair {
  24647. background-image: url(../../assets/avatar.png) !important;
  24648. }
  24649. .g_d_group {
  24650. width: 500px;
  24651. margin-bottom: 80px;
  24652. }
  24653. .g_d_group_chair {
  24654. display: flex;
  24655. align-items: center;
  24656. justify-content: center;
  24657. }
  24658. .g_d_group_chair > div + div {
  24659. margin-left: 30px;
  24660. }
  24661. .g_d_group_chair > div,
  24662. .g_d_group_chair2 > div {
  24663. display: flex;
  24664. flex-direction: column;
  24665. align-items: center;
  24666. }
  24667. .g_d_group_chair > div > span:nth-child(1),
  24668. .g_d_group_chair2 > div > span:nth-child(1) {
  24669. background-image: url(../../assets/icon/chair.png);
  24670. width: 50px;
  24671. height: 50px;
  24672. display: block;
  24673. background-size: 100% 100%;
  24674. }
  24675. .g_d_group_tableBox {
  24676. display: flex;
  24677. align-items: center;
  24678. justify-content: center;
  24679. }
  24680. .g_d_group_chair2 {
  24681. display: flex;
  24682. flex-direction: column;
  24683. align-items: center;
  24684. justify-content: center;
  24685. }
  24686. .g_d_group_chair2 > div + div {
  24687. margin-top: 10px;
  24688. }
  24689. .g_d_group_table {
  24690. background-image: url(../../assets/icon/groupBg.png);
  24691. width: 354px;
  24692. height: 196px;
  24693. background-size: 100% 100%;
  24694. display: flex;
  24695. align-items: center;
  24696. justify-content: center;
  24697. flex-direction: column;
  24698. color: #fff;
  24699. }
  24700. .g_d_group_table > div:nth-child(1) {
  24701. font-size: 24px;
  24702. margin-bottom: 5px;
  24703. }
  24704. .g_d_group_table > div:nth-child(2) div {
  24705. cursor: pointer;
  24706. background: #2e77bf;
  24707. padding: 4px 10px;
  24708. border-radius: 5px;
  24709. }
  24710. .groupBox {
  24711. }
  24712. .groupContent + .groupContent {
  24713. margin-top: 30px;
  24714. }
  24715. .groupTitle {
  24716. font-size: 24px;
  24717. color: rgb(80, 80, 80);
  24718. margin-bottom: 20px;
  24719. }
  24720. .groupName {
  24721. display: flex;
  24722. align-items: center;
  24723. }
  24724. .groupn {
  24725. font-size: 15px;
  24726. margin-right: 10px;
  24727. }
  24728. .groupName + .groupName {
  24729. margin-top: 15px;
  24730. }
  24731. .groupBtn {
  24732. margin-left: 10px;
  24733. }
  24734. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24735. text-align: left;
  24736. }
  24737. .g_d_btnBox {
  24738. display: flex;
  24739. justify-content: flex-end;
  24740. align-items: center;
  24741. margin-bottom: 20px;
  24742. }
  24743. .updateChair {
  24744. position: relative;
  24745. }
  24746. .updateChairBtn {
  24747. position: absolute;
  24748. width: 50px;
  24749. height: 50px;
  24750. overflow: hidden;
  24751. /* display: flex; */
  24752. align-items: center;
  24753. justify-content: center;
  24754. background: #00000087;
  24755. color: #fff;
  24756. border-radius: 50px;
  24757. display: none;
  24758. cursor: pointer;
  24759. }
  24760. .updateChair:hover .updateChairBtn {
  24761. display: flex;
  24762. }
  24763. .group_staic_box {
  24764. display: flex;
  24765. padding: 30px 40px 10px;
  24766. flex-wrap: wrap;
  24767. }
  24768. .group_staic {
  24769. /* width: 50%; */
  24770. margin-bottom: 20px;
  24771. display: flex;
  24772. align-items: center;
  24773. }
  24774. .group_staic span:nth-child(1) {
  24775. width: 150px;
  24776. text-align: right;
  24777. margin-right: 15px;
  24778. }
  24779. .group_staic span:nth-child(2) {
  24780. background: rgb(0 123 255);
  24781. color: #fff;
  24782. border-radius: 5px;
  24783. padding: 5px;
  24784. }
  24785. .codeFileBox {
  24786. height: 300px;
  24787. background: #fff;
  24788. display: flex;
  24789. align-items: center;
  24790. justify-content: center;
  24791. }
  24792. .codeFileBox img {
  24793. width: 200px;
  24794. margin: 0;
  24795. height: auto;
  24796. }
  24797. .codeFileBox div {
  24798. background: rgb(80, 142, 226);
  24799. color: #fff;
  24800. padding: 10px 20px;
  24801. border-radius: 25px;
  24802. cursor: pointer;
  24803. margin-left: 15px;
  24804. }
  24805. .radioBox {
  24806. display: flex;
  24807. flex-direction: column;
  24808. flex-wrap: nowrap;
  24809. align-items: flex-start;
  24810. }
  24811. .radioBox > div {
  24812. margin: 10px 0 0 10px;
  24813. }
  24814. /* .radioBox >>> .el-radio__input,
  24815. .radioBox >>> .el-checkbox__inner {
  24816. margin-left: 10px;
  24817. } */
  24818. .radioBox >>> .el-radio__label,
  24819. .radioBox >>> .el-checkbox__label {
  24820. display: flex;
  24821. align-items: center;
  24822. width: 100%;
  24823. }
  24824. .radioBox >>> .el-radio__label > span {
  24825. width: 100%;
  24826. display: -webkit-box;
  24827. overflow: hidden;
  24828. white-space: normal !important;
  24829. text-overflow: ellipsis;
  24830. word-wrap: break-word;
  24831. }
  24832. .inImg {
  24833. width: 100px;
  24834. cursor: pointer;
  24835. }
  24836. .inImg > img {
  24837. width: 100%;
  24838. height: 100%;
  24839. object-fit: cover;
  24840. }
  24841. .timuImgBox {
  24842. margin: 10px 0;
  24843. display: flex;
  24844. flex-direction: column;
  24845. flex-wrap: wrap;
  24846. align-items: flex-start;
  24847. }
  24848. .timuImg {
  24849. width: 150px;
  24850. margin: 5px 0;
  24851. cursor: pointer;
  24852. }
  24853. .timuImg > img {
  24854. width: 100%;
  24855. height: 100%;
  24856. object-fit: cover;
  24857. }
  24858. .worksTop {
  24859. display: flex;
  24860. flex-direction: row;
  24861. align-items: flex-end;
  24862. }
  24863. .worksTitle{
  24864. display: flex;
  24865. flex-direction: row;
  24866. flex-wrap: nowrap;
  24867. align-items: center;
  24868. }
  24869. .worksTitle::before,.worksTop::before{
  24870. content: '';
  24871. display: block;
  24872. width: 3px;
  24873. height: 20px;
  24874. background: #0061FF;
  24875. border-radius: 3px;
  24876. margin: 0 5px 0 0;
  24877. }
  24878. .corOpen {
  24879. margin: 0 0 0 10px;
  24880. font-size: 14px;
  24881. cursor: pointer;
  24882. color: #505050;
  24883. }
  24884. .corOpen:hover {
  24885. color: #499eef;
  24886. }
  24887. .navCorOpenBox {
  24888. display: flex;
  24889. flex-direction: row;
  24890. align-items: center;
  24891. justify-content: space-between;
  24892. height: 55px;
  24893. background: #ffffff;
  24894. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24895. border-radius: 8px 8px 0px 0px;
  24896. z-index: 9;
  24897. position: relative;
  24898. }
  24899. .navCorOpen {
  24900. padding-right: 15px;
  24901. cursor: pointer;
  24902. width: 45px;
  24903. display: flex;
  24904. }
  24905. .navCorOpen > img {
  24906. width: 100%;
  24907. height: 100%;
  24908. }
  24909. .mlImg {
  24910. width: 40px !important;
  24911. min-width: 40px;
  24912. cursor: pointer;
  24913. transform: rotate(180deg);
  24914. }
  24915. .mlImg > img {
  24916. width: 100%;
  24917. height: 100%;
  24918. }
  24919. .navLeftCss {
  24920. width: 100% !important;
  24921. left: 0 !important;
  24922. }
  24923. .isContentCss {
  24924. width: 100% !important;
  24925. }
  24926. .isAllWidth {
  24927. width: 100% !important;
  24928. }
  24929. .group_switch {
  24930. margin-right: 10px;
  24931. height: 30px;
  24932. display: flex;
  24933. align-items: center;
  24934. }
  24935. .group_switch > span {
  24936. margin-right: 5px;
  24937. }
  24938. .fileC_box {
  24939. padding-top: 15px;
  24940. }
  24941. .fileC_box > .fileC_title {
  24942. padding: 10px 5px 14px 10px;
  24943. border-top: 1px solid #cad1dc;
  24944. font-size: 14px;
  24945. font-weight: 400;
  24946. color: #cad1dc;
  24947. width: calc(100% - 20px);
  24948. margin: 0 auto;
  24949. box-sizing: border-box;
  24950. }
  24951. .pl_select_box {
  24952. height: 40px;
  24953. line-height: 40px;
  24954. width: 100%;
  24955. cursor: pointer;
  24956. padding: 0 20px;
  24957. box-sizing: border-box;
  24958. border-radius: 5px;
  24959. border: 1px solid #d6d6d6;
  24960. white-space: nowrap;
  24961. overflow: hidden;
  24962. text-overflow: ellipsis;
  24963. background: #fff;
  24964. text-align: left;
  24965. }
  24966. .newButton {
  24967. width: 102px;
  24968. height: 36px;
  24969. background: #e7ebf1;
  24970. border-radius: 4px;
  24971. color: #0e1e33;
  24972. font-weight: 400;
  24973. font-size: 14px;
  24974. border: none;
  24975. float: right;
  24976. margin-left: 10px;
  24977. }
  24978. .el-table >>> .even_row {
  24979. background-color: #f0f4fa;
  24980. }
  24981. .stageBoxCss,
  24982. .stageBoxIsCss {
  24983. display: flex;
  24984. flex-direction: row;
  24985. flex-wrap: nowrap;
  24986. align-items: center;
  24987. height: 50px;
  24988. border-bottom: 1px solid #e2f5fc;
  24989. cursor: pointer;
  24990. width: 100%;
  24991. }
  24992. .stageBoxIsCss {
  24993. background: #0061ff;
  24994. color: #fff;
  24995. border-radius: 8px;
  24996. }
  24997. .closeTri,
  24998. .closeTri1 {
  24999. min-width: 15px;
  25000. width: 15px;
  25001. height: 15px;
  25002. }
  25003. .closeTri1 {
  25004. padding-left: 10px;
  25005. cursor: pointer;
  25006. }
  25007. .closeTri > img,
  25008. .closeTri1 > img {
  25009. width: 100%;
  25010. height: 100%;
  25011. /* transition: all .5s; */
  25012. }
  25013. .noToolBlue {
  25014. min-width: 10px;
  25015. width: 10px;
  25016. height: 10px;
  25017. background: #0061ff;
  25018. border-radius: 50%;
  25019. margin-left: 13px;
  25020. }
  25021. .stageChild,
  25022. .toolChild {
  25023. height: 0;
  25024. overflow: hidden;
  25025. transition: all 0.5s;
  25026. }
  25027. .toolChild {
  25028. /* margin: 0 0 0 17px;
  25029. padding: 0 0 0 20px;
  25030. border-left: 1px solid #d7d7d7; */
  25031. }
  25032. .toolChild > div + div{
  25033. margin-top:5px;
  25034. }
  25035. .gjCss {
  25036. display: flex;
  25037. flex-direction: row;
  25038. flex-wrap: nowrap;
  25039. align-items: center;
  25040. padding: 10px 0 10px 40px;
  25041. box-sizing: border-box;
  25042. font-size: 14px;
  25043. cursor: pointer;
  25044. border-radius:5px;
  25045. }
  25046. .toolChild > div {
  25047. position: relative;
  25048. width: 100%;
  25049. }
  25050. .toolChild > div::before {
  25051. /* content: "";
  25052. width: 15px;
  25053. height: 1px;
  25054. background: #cad1dc;
  25055. position: absolute;
  25056. top: 24px;
  25057. left: -20px;
  25058. display: block; */
  25059. }
  25060. .isGjCss {
  25061. /* color: #0061ff; */
  25062. color:#fff;
  25063. background: rgb(55, 129, 252);
  25064. /* background-color: #e0eafb !important;
  25065. color: #0061ff !important; */
  25066. }
  25067. .navItem {
  25068. background: #ffffff;
  25069. border-radius: 4px;
  25070. width: 100%;
  25071. margin: 10px auto;
  25072. position: relative;
  25073. height: 40px;
  25074. display: flex;
  25075. flex-direction: row;
  25076. flex-wrap: nowrap;
  25077. align-items: center;
  25078. }
  25079. .navItemList {
  25080. display: flex;
  25081. flex-direction: row;
  25082. flex-wrap: nowrap;
  25083. align-items: center;
  25084. padding: 0 13px;
  25085. cursor: pointer;
  25086. width: calc(100% - 60px);
  25087. height: 100%;
  25088. }
  25089. .navItemList > div:first-child {
  25090. min-width: 60px;
  25091. }
  25092. .navItemList > div:last-child {
  25093. width: calc(100% - 80px);
  25094. white-space: nowrap;
  25095. overflow: hidden;
  25096. text-overflow: ellipsis;
  25097. word-break: break-word;
  25098. }
  25099. /* .isItemList > div {
  25100. color: #fff !important;
  25101. } */
  25102. .tool_work_box {
  25103. width: 100%;
  25104. padding: 0 37px 0;
  25105. box-sizing: border-box;
  25106. }
  25107. .tool_box {
  25108. width: 100%;
  25109. padding: 0 0 0 20px;
  25110. }
  25111. .tool_type_box {
  25112. display: flex;
  25113. flex-direction: row;
  25114. align-items: baseline;
  25115. flex-wrap: nowrap;
  25116. justify-content: flex-start;
  25117. position: relative;
  25118. }
  25119. .toolSort {
  25120. display: flex;
  25121. flex-direction: row;
  25122. flex-wrap: wrap;
  25123. justify-content: flex-start;
  25124. align-items: flex-start;
  25125. padding: 0 0 15px 0;
  25126. }
  25127. .toolSort > div {
  25128. margin: 0 10px 0 0;
  25129. width: 135px;
  25130. box-sizing: border-box;
  25131. border: 2px solid transparent;
  25132. }
  25133. .tools {
  25134. width: 100%;
  25135. display: flex;
  25136. flex-direction: column;
  25137. flex-wrap: nowrap;
  25138. align-items: flex-start;
  25139. }
  25140. .whiteBIcon {
  25141. width: fit-content;
  25142. cursor: pointer;
  25143. display: flex;
  25144. flex-direction: column;
  25145. flex-wrap: nowrap;
  25146. align-items: center;
  25147. font-size: 14px;
  25148. }
  25149. .tool:hover {
  25150. border: 2px solid #a5c7ff;
  25151. border-radius: 5px;
  25152. }
  25153. .whiteBIcon > img {
  25154. width: 65px;
  25155. height: 100%;
  25156. }
  25157. .whiteBIcon > img {
  25158. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25159. border-radius: 15px;
  25160. }
  25161. .check {
  25162. /* width: 20px;
  25163. height: 20px; */
  25164. cursor: pointer;
  25165. margin: 10px 0;
  25166. position: absolute;
  25167. right: 2px;
  25168. top: -5px;
  25169. }
  25170. .noChoose,
  25171. .isChoose {
  25172. width: 15px;
  25173. height: 15px;
  25174. border-radius: 50%;
  25175. border: 1px solid #adadad;
  25176. }
  25177. .isChoose {
  25178. border: 4px solid #0363ff !important;
  25179. width: 10px;
  25180. height: 10px;
  25181. }
  25182. .isToolChoose {
  25183. border: 2px solid #5394ff !important;
  25184. border-radius: 5px;
  25185. box-shadow: 0 0 6px 0px #5394ff;
  25186. }
  25187. .checkDiv {
  25188. display: flex;
  25189. align-items: center;
  25190. }
  25191. .checkDiv span {
  25192. margin-left: 5px;
  25193. color: #858585;
  25194. }
  25195. .check img {
  25196. width: 20px;
  25197. height: 20px;
  25198. }
  25199. .lockTaskIcon {
  25200. width: 20px;
  25201. height: 20px;
  25202. position: absolute;
  25203. right: 10px;
  25204. top: 10px;
  25205. }
  25206. .lockTaskIcon > img {
  25207. width: 100%;
  25208. height: 100%;
  25209. }
  25210. .pick_box {
  25211. display: flex;
  25212. align-items: flex-start;
  25213. flex-wrap: wrap;
  25214. }
  25215. .selectBox {
  25216. width: 110px;
  25217. margin-left: 10px;
  25218. margin: 0 10px 0 auto;
  25219. }
  25220. .selectBox >>> .el-input__inner {
  25221. height: 30px;
  25222. line-height: 30px;
  25223. }
  25224. .selectBox >>> .el-input__icon {
  25225. line-height: 30px;
  25226. }
  25227. .sentenceTitle {
  25228. display: flex;
  25229. flex-direction: row;
  25230. flex-wrap: nowrap;
  25231. align-items: center;
  25232. }
  25233. .sentenceTitle::before {
  25234. content: attr(index);
  25235. background: #3681fc;
  25236. border-radius: 50%;
  25237. color: #fff;
  25238. width: 25px;
  25239. height: 25px;
  25240. min-width: 25px;
  25241. min-height: 25px;
  25242. text-align: center;
  25243. line-height: 25px;
  25244. margin-right: 5px;
  25245. }
  25246. .hfBox {
  25247. padding: 10px;
  25248. box-sizing: border-box;
  25249. }
  25250. .whoReplyWho {
  25251. display: flex;
  25252. flex-direction: row;
  25253. flex-wrap: nowrap;
  25254. align-items: baseline;
  25255. justify-content: flex-start;
  25256. }
  25257. .hfBottom {
  25258. display: flex;
  25259. flex-direction: row;
  25260. flex-wrap: nowrap;
  25261. align-items: center;
  25262. justify-content: space-between;
  25263. font-size: 14px;
  25264. }
  25265. .deleteHfItem {
  25266. cursor: pointer;
  25267. width: 20px;
  25268. height: 20px;
  25269. }
  25270. .deleteHfItem > img {
  25271. width: 100%;
  25272. height: 100%;
  25273. }
  25274. .whoReplyWho > .hfImg {
  25275. width: 12px;
  25276. height: 12px;
  25277. margin: 0 5px;
  25278. }
  25279. .whoReplyWho > .hfImg > img {
  25280. width: 100%;
  25281. height: 100%;
  25282. }
  25283. .hfContent {
  25284. padding-top: 10px;
  25285. box-sizing: border-box;
  25286. display: -webkit-box;
  25287. overflow: hidden;
  25288. white-space: normal !important;
  25289. text-overflow: ellipsis;
  25290. word-wrap: break-word;
  25291. -webkit-box-orient: vertical;
  25292. }
  25293. .hfTime {
  25294. text-align: left;
  25295. box-sizing: border-box;
  25296. padding: 10px 0 10px 0px;
  25297. color: #bfbfbf;
  25298. font-size: 14px;
  25299. }
  25300. .btnAllNT {
  25301. position: fixed;
  25302. bottom: 100px;
  25303. right: 40px;
  25304. z-index: 999;
  25305. display: flex;
  25306. flex-direction: row;
  25307. }
  25308. .btnAllNT > img {
  25309. cursor: pointer;
  25310. width: 80px;
  25311. }
  25312. .toolMask {
  25313. position: fixed;
  25314. width: 100%;
  25315. height: 100%;
  25316. background: #3f3c3c;
  25317. opacity: 0.5;
  25318. top: 0;
  25319. left: 0;
  25320. z-index: 999;
  25321. }
  25322. .addToolCss {
  25323. position: fixed;
  25324. z-index: 999;
  25325. background: #fff;
  25326. right: 5%;
  25327. bottom: 18%;
  25328. min-width: 1035px;
  25329. min-height: 300px;
  25330. border-radius: 10px;
  25331. box-shadow: 0 0 8px 1px #b2b2b2;
  25332. }
  25333. .toolTop {
  25334. display: flex;
  25335. flex-direction: row;
  25336. flex-wrap: nowrap;
  25337. justify-content: space-between;
  25338. align-items: center;
  25339. padding: 20px;
  25340. }
  25341. .toolTop > div:nth-child(2) {
  25342. width: 15px;
  25343. height: 15px;
  25344. padding-right: 10px;
  25345. cursor: pointer;
  25346. }
  25347. .toolTop > div:nth-child(2) > img {
  25348. width: 100%;
  25349. height: 100%;
  25350. }
  25351. .fullStyle>>>.el-dialog__body {
  25352. height: calc(100% - 125px) !important;
  25353. box-sizing: border-box;
  25354. padding: 30px 0 !important;
  25355. background: #fff !important;
  25356. }
  25357. .fullStyle>>>.el-dialog {
  25358. width: 100% !important;
  25359. max-width: 100% !important;
  25360. height: 100% !important;
  25361. margin: 0 !important;
  25362. }
  25363. .fullStyle {
  25364. width: 100% !important;
  25365. max-width: 100% !important;
  25366. height: 100% !important;
  25367. margin: 0 auto !important;
  25368. }
  25369. .fullStyle>>>.el-dialog__footer{
  25370. background: #fff !important;
  25371. }
  25372. .engUpBox {
  25373. width: 100%;
  25374. height: 100%;
  25375. }
  25376. .engTitle,
  25377. .engText {
  25378. display: flex;
  25379. flex-direction: row;
  25380. flex-wrap: nowrap;
  25381. align-items: flex-start;
  25382. padding: 0 20px 20px 20px;
  25383. box-sizing: border-box;
  25384. }
  25385. .engTitle > .div:first-child,
  25386. .engText > div:first-child {
  25387. min-width: 75px;
  25388. }
  25389. .correctBox{
  25390. width: 100%;
  25391. display: flex;
  25392. flex-direction: row;
  25393. flex-wrap: nowrap;
  25394. align-items: flex-start;
  25395. }
  25396. .oldBox{
  25397. width: 50%;
  25398. height: 100%;
  25399. display: flex;
  25400. flex-direction: column;
  25401. flex-wrap: nowrap;
  25402. align-items: center;
  25403. border-top: 1px solid #d9d9d9;
  25404. border-left: 1px solid #d9d9d9;
  25405. border-right: 1px solid #d9d9d9;
  25406. }
  25407. .oldBox>div:first-child{
  25408. width: 100%;
  25409. text-align: center;
  25410. background: #d9d9d9;
  25411. height: 35px;
  25412. line-height: 35px;
  25413. font-weight: bold;
  25414. }
  25415. .oldText{
  25416. width: 100%;
  25417. height: calc(100% - 35px);
  25418. overflow: auto;
  25419. margin: 10px 0;
  25420. display: flex;
  25421. flex-direction: column;
  25422. flex-wrap: nowrap;
  25423. align-content: center;
  25424. align-items: center;
  25425. }
  25426. .detailBox{
  25427. width: 50%;
  25428. padding: 10px;
  25429. background: #f6f6f6;
  25430. border-radius: 5px;
  25431. }
  25432. .oldDetail,.oldDetail1{
  25433. padding-bottom: 30px;
  25434. }
  25435. .oldImg{
  25436. width:30px;
  25437. height: 30px;
  25438. }
  25439. .oldImg>img{
  25440. width: 100%;
  25441. height: 100%;
  25442. }
  25443. .allName{
  25444. min-width: 200px;
  25445. white-space: nowrap;
  25446. overflow: hidden;
  25447. text-overflow: ellipsis;
  25448. word-break: break-word;
  25449. cursor: pointer;
  25450. text-align: center;
  25451. border: 1px solid #bcc2cc;
  25452. box-sizing: border-box;
  25453. }
  25454. .engUpTop{
  25455. max-height: 300px;
  25456. overflow: auto;
  25457. }
  25458. .isUpdateToolDetailClass{
  25459. padding: 0 !important;
  25460. }
  25461. .isUpdateToolDetailClass textarea{
  25462. padding:12px;
  25463. font-size: 16px;
  25464. min-height:100%;
  25465. width: 100%;
  25466. box-sizing:border-box;
  25467. outline: none;
  25468. border:none;
  25469. line-height: 30px;
  25470. resize: none;
  25471. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25472. color: #838383;
  25473. }
  25474. .show_taskD {
  25475. min-width: fit-content;
  25476. margin-left: 10px;
  25477. display: flex;
  25478. align-items: center;
  25479. font-size: 14px;
  25480. cursor: pointer;
  25481. color: #717c8d;
  25482. }
  25483. .show_taskD > img {
  25484. width: 15px;
  25485. margin-right: 5px;
  25486. transition: 0.2s all;
  25487. transform: rotate(-90deg);
  25488. }
  25489. .show_taskD.show > img {
  25490. transform: rotate(0deg);
  25491. }
  25492. .correctCss{
  25493. position: absolute;
  25494. bottom: -70px;
  25495. background: #409eff;
  25496. color: #fff;
  25497. }
  25498. .ScoreBtn{
  25499. background: rgba(87, 159, 248, 1);
  25500. display: flex;
  25501. justify-content: center;
  25502. align-items: center;
  25503. color: #fff;
  25504. font-size: 14px;
  25505. padding:8px 12px;
  25506. border-radius: 5px;
  25507. cursor: pointer;
  25508. }
  25509. .max-height-popover .el-popover {
  25510. min-height: 200px;
  25511. max-height: 400px; /* 设置最大高度 */
  25512. overflow: auto; /* 超出部分显示滚动条 */
  25513. }
  25514. .blueRootCss{
  25515. display: block;
  25516. margin-right: 5px;
  25517. }
  25518. </style>