studyStudent.vue 904 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390
  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. <!-- 查看Txt,md等文件 -->
  12939. <el-dialog
  12940. title="文件预览"
  12941. :visible.sync="dialogVisibleTxt"
  12942. width="50%"
  12943. :before-close="handleCloseTxt"
  12944. class="dialog_diy"
  12945. :class="{ fullStyle: full }"
  12946. >
  12947. <div slot="title" class="header-title">
  12948. <div style="color: #fff">文件预览</div>
  12949. <div style="position: absolute; top: 19px; right: 50px">
  12950. <img
  12951. src="../../assets/full.png"
  12952. style="height: 16px; cursor: pointer"
  12953. alt=""
  12954. @click="fullTools"
  12955. />
  12956. </div>
  12957. </div>
  12958. <div>{{TxtMd}}</div>
  12959. </el-dialog>
  12960. </div>
  12961. </template>
  12962. <script>
  12963. import "../../common/aws-sdk-2.235.1.min.js";
  12964. // import pdf from "../components/pdf3";
  12965. import pdf from "../components/vpdf";
  12966. import AskStatic from "../components/askStatic";
  12967. import AskStatic2 from "../components/askStatic2";
  12968. import AnswerData2 from "../components/answerData2";
  12969. import AnswerData from "../components/answerData";
  12970. import EditorBar from "../tools/wangEnduit.vue";
  12971. import Table from "../tools/table.vue";
  12972. import Time from "../tools/time.vue";
  12973. import Mind from "../tools/jsmind.vue";
  12974. import Sunburst from "../tools/sunburst";
  12975. import SeeBoard from "../tools/seeBoard";
  12976. import * as imageConversion from "image-conversion";
  12977. import Audio from "../components/audio.vue";
  12978. import ImgDraw from "../tools/imgDraw/imgDraw";
  12979. import { Empty } from "element-ui";
  12980. import RecordRTC from "recordrtc";
  12981. import interVideo from "../interVideo/index.vue";
  12982. import UpdateMore from "../updateMore/updateMore.vue";
  12983. import wordCloud from "../wordCloud/index.vue";
  12984. import axios from "axios";
  12985. import JSZip from "jszip";
  12986. import FileSaver from "file-saver";
  12987. import onlineWrite from "./commpont/onlineWrite";
  12988. import englishEva from "../components/englishEva";
  12989. import * as Diff from 'diff'
  12990. import EnglishVoice from '../EnglishVoice2/index.vue'
  12991. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  12992. import correctText from '../components/correctText.vue'
  12993. import scoreItem from '../scoreList/scoreItem.vue'
  12994. import scoreZong from '../scoreZong/index.vue'
  12995. import classRoomHelper from '../classRoomHelper/index.vue'
  12996. import markScore from "./commpont/markScore";
  12997. import markDialog from "./commpont/markDialog";
  12998. import { v4 as uuidv4 } from "uuid";
  12999. const getFile = (url) => {
  13000. return new Promise((resolve, reject) => {
  13001. var credentials = {
  13002. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13003. secretAccessKey: "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",
  13004. }; //秘钥形式的登录上传
  13005. window.AWS.config.update(credentials);
  13006. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13007. let url2 = url;
  13008. let _url2 = "";
  13009. if (
  13010. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  13011. ) {
  13012. _url2 = url2.split(
  13013. "https://view.officeapps.live.com/op/view.aspx?src="
  13014. )[1];
  13015. } else {
  13016. _url2 = url2;
  13017. }
  13018. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  13019. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  13020. var params = {
  13021. Bucket: "ccrb",
  13022. Key: name
  13023. };
  13024. s3.getObject(params, function (err, data) {
  13025. if (err) {
  13026. console.log(err, err.stack)
  13027. resolve({ data: 1 });
  13028. }else {
  13029. resolve({ data: data.Body });
  13030. console.log(data);
  13031. } // sxuccessful response
  13032. });
  13033. // axios({
  13034. // method: "get",
  13035. // url,
  13036. // responseType: "blob",
  13037. // })
  13038. // .then((data) => {
  13039. // resolve({ data: data.data });
  13040. // })
  13041. // .catch((error) => {
  13042. // resolve({ data: 1 });
  13043. // // reject(error.toString());
  13044. // });
  13045. });
  13046. };
  13047. export default {
  13048. components: {
  13049. EditorBar,
  13050. Time,
  13051. pdf,
  13052. AskStatic,
  13053. AskStatic2,
  13054. Mind,
  13055. Sunburst,
  13056. SeeBoard,
  13057. AnswerData2,
  13058. AnswerData,
  13059. Audio,
  13060. ImgDraw,
  13061. Table,
  13062. interVideo,
  13063. UpdateMore,
  13064. wordCloud,
  13065. onlineWrite,
  13066. englishEva,
  13067. EnglishVoice,
  13068. checkEnglishVoice,
  13069. correctText,
  13070. scoreItem,
  13071. classRoomHelper,
  13072. scoreZong,
  13073. markScore,
  13074. markDialog
  13075. },
  13076. data() {
  13077. return {
  13078. bg: null,
  13079. drawShow: false,
  13080. dialogVisible: false,
  13081. dialogVisiblePl: false,
  13082. commentDialogVisible: false,
  13083. dialogVisibleMember: false,
  13084. dialogVisibleWordCloud: false,
  13085. videoVisible: false,
  13086. isStar: false,
  13087. studentEvalDialogVisible: false,
  13088. studentEvalDialogVisibleTeacher: false,
  13089. dialogVisibleSelect: false,
  13090. dialogVisibleSelectTeacher: false,
  13091. dialogVisibleScore: false,
  13092. dialogVisibleENScore: false,
  13093. dialogVisibleSentence: false,
  13094. dialogVisibleSentenceTeacher: false,
  13095. dialogVisibleSentence1: false,
  13096. dialogVisibleWorks: false,
  13097. dialogVisibleTable: false,
  13098. dialogVisibleTableTeacher: false,
  13099. dialogVisibleWord: false,
  13100. dialogVisibleWordTeacher: false,
  13101. dialogVisibleTable2: false,
  13102. dialogVisibleTable3: false,
  13103. dialogVisibleGroupWork: false,
  13104. dialogVisibleUpdateGroup: false,
  13105. dialogVisibleDeleteGroup: false,
  13106. dialogVisibleSname: false,
  13107. dialogVisibleVideo: false,
  13108. dialogVisiblePickPeople: false,
  13109. engDialogVisible: false,
  13110. engUpdateDialogVisible:false,
  13111. engEvaDialogVisible: false,
  13112. evaEngJson: {
  13113. teacherJson: {},
  13114. studentJson: {},
  13115. message: {},
  13116. },
  13117. isNoUserid:false,
  13118. engListLength:0,
  13119. engWid:"",
  13120. newEnglishList:{
  13121. engTitle:"",
  13122. engText:"",
  13123. },
  13124. newEnglishList1:[],
  13125. oldEnglishJson:{},
  13126. oldEnglishJson1:{},
  13127. englishList1:{},
  13128. englishList:{},
  13129. myAnswerList1:{},
  13130. topHeight:0,
  13131. newEngIndex:-1,
  13132. englishToolIndex:0,
  13133. userMes:{},
  13134. englishToolIndex:0,
  13135. worksSName: "",
  13136. classJuri: [],
  13137. uploadStudentJuri: [],
  13138. uploadCid: "",
  13139. snameWid: "",
  13140. sStudent: {},
  13141. sTool: "",
  13142. bzText: "",
  13143. commentDetail: [],
  13144. selectAnswer: [],
  13145. videoDetail: {},
  13146. selectJson: {},
  13147. englishList: {},
  13148. topHeight:0,
  13149. eScore: { eBzText: "", eStar: [] },
  13150. id: this.$route.query.courseId,
  13151. userid: this.$route.query.userid,
  13152. classId: this.$route.query.cid,
  13153. // courseTypeLine: this.$route.query.type,
  13154. oid: this.$route.query.oid,
  13155. org: this.$route.query.org,
  13156. tType: this.$route.query.tType,
  13157. courseType: this.$route.query.type,
  13158. screenType: this.$route.query.screenType,
  13159. tcid2: this.$route.query.tcid,
  13160. tcid: "",
  13161. pptImgUrl: "",
  13162. pptImgUrl1: "",
  13163. commentText: "",
  13164. full: false,
  13165. sIsOpen: false,
  13166. IsLookOpen: false,
  13167. IsFollow: false,
  13168. pzDialog: false,
  13169. contentDialog: false,
  13170. mlDialog: false,
  13171. type: 1,
  13172. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  13173. sentenceList1: [],
  13174. tableJson: [],
  13175. tableJsonO: [],
  13176. wordJson: [],
  13177. wordJsonO: [],
  13178. vedio: [],
  13179. text: [],
  13180. textList: [],
  13181. line: [],
  13182. lineList: [],
  13183. chapTools: [],
  13184. chapToolList: [],
  13185. file: [],
  13186. fileC: [],
  13187. vedioTime: [],
  13188. upToolImg: "",
  13189. preTime: 0,
  13190. rateList: {
  13191. ca: 0,
  13192. },
  13193. rateParams: [],
  13194. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  13195. studyJuri: [
  13196. {
  13197. content: "",
  13198. cover: [],
  13199. upVedio: [],
  13200. upFile: [],
  13201. },
  13202. ],
  13203. isClose: 0,
  13204. plworkFile: [],
  13205. mr: require("../../assets/vedioPic.png"),
  13206. word: require("../../assets/icon/isWord.png"),
  13207. word2: require("../../assets/icon/word2.png"),
  13208. video: require("../../assets/icon/isVideo.png"),
  13209. noLikes: require("../../assets/icon/comment/noLikes.png"),
  13210. likes: require("../../assets/icon/comment/likes.png"),
  13211. scoreImg: require("../../assets/score.png"),
  13212. courseDetail: {},
  13213. reply: "",
  13214. isSelect: false,
  13215. chapInfo: [],
  13216. chapInfoList: [],
  13217. taskCount: 0,
  13218. imgList: [],
  13219. noImgList: [],
  13220. pzList: [],
  13221. timeWorkList: [],
  13222. PlTextList: [
  13223. "Excellent!",
  13224. "nice!",
  13225. "很有创意!",
  13226. "还不错哦~",
  13227. "继续努力哦~",
  13228. ],
  13229. isClickNav: "",
  13230. navId: "",
  13231. playerOptions: {
  13232. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  13233. autoplay: false, //如果true,浏览器准备好时开始回放。
  13234. muted: false, // 默认情况下将会消除任何音频。
  13235. loop: false, // 导致视频一结束就重新开始。
  13236. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  13237. language: "zh-CN",
  13238. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  13239. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  13240. sources: [
  13241. {
  13242. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  13243. src: "", //url地址require("../../../assets/media/aaa.mp4")
  13244. },
  13245. ],
  13246. // poster: require("../../../assets/tu31.png"), //你的封面地址
  13247. // poster: dataRes.imgUrl, //你的封面地址
  13248. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  13249. controlBar: {
  13250. timeDivider: true, //当前时间和持续时间的分隔符
  13251. durationDisplay: true, //显示持续时间
  13252. remainingTimeDisplay: false, //是否显示剩余时间功能
  13253. fullscreenToggle: true, //全屏按钮
  13254. },
  13255. },
  13256. playerOptions1: {
  13257. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  13258. autoplay: false, //如果true,浏览器准备好时开始回放。
  13259. muted: false, // 默认情况下将会消除任何音频。
  13260. loop: false, // 导致视频一结束就重新开始。
  13261. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  13262. language: "zh-CN",
  13263. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  13264. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  13265. sources: [
  13266. {
  13267. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  13268. src: "", //url地址require("../../../assets/media/aaa.mp4")
  13269. },
  13270. ],
  13271. // poster: require("../../../assets/tu31.png"), //你的封面地址
  13272. // poster: dataRes.imgUrl, //你的封面地址
  13273. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  13274. controlBar: {
  13275. timeDivider: true, //当前时间和持续时间的分隔符
  13276. durationDisplay: true, //显示持续时间
  13277. remainingTimeDisplay: false, //是否显示剩余时间功能
  13278. fullscreenToggle: true, //全屏按钮
  13279. },
  13280. },
  13281. playerO: {},
  13282. noneBtnImg: false,
  13283. proVisible: false,
  13284. proVisible2: false,
  13285. progress: 0,
  13286. isFinishSize: 0,
  13287. isAllSize: 0,
  13288. questionAnswer: "",
  13289. answerQ: "", //问答标题
  13290. rateJson: [],
  13291. wbCount: 0,
  13292. wordCount: 0,
  13293. mindCount: 0,
  13294. askCount: 0,
  13295. noteCount: 0,
  13296. mindNetWorkCount: 0,
  13297. libraryCount: 0,
  13298. workCount: 0,
  13299. timeCount: 0,
  13300. answerCount: 0,
  13301. trainCount: 0,
  13302. evalCount: 0,
  13303. dialogImageUrl: "",
  13304. pictureDialog: false,
  13305. toolTypeList: [],
  13306. dialogVisible1: false,
  13307. dialogVisible2: false,
  13308. dialogVisible3: false,
  13309. dialogVisible6: false,
  13310. dialogVisible4: false,
  13311. isNoHomeWork: false,
  13312. dialogVisible5: false,
  13313. dialogVisible5Teacher: false,
  13314. dialogVisibleChoice: false,
  13315. dialogVisibleChoiceTeacher: false,
  13316. answerDialogVisible: false,
  13317. answerDialogVisibleTeacher: false,
  13318. juriVisible: false,
  13319. timeDialogVisible: false,
  13320. replyDialogVisible: false,
  13321. toolDialogVisible: false,
  13322. replyIndex: 0,
  13323. replyPid: "",
  13324. radio: [],
  13325. isAsk: false,
  13326. askJson: {
  13327. askCount: 1,
  13328. askTitle: "",
  13329. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13330. },
  13331. testJson: {},
  13332. videoType:0,
  13333. checkJson: [],
  13334. askList: [],
  13335. answerList: [],
  13336. navList: [],
  13337. addPzDialog: false,
  13338. pzConText: "",
  13339. worksStudent: [],
  13340. isCloseList: [],
  13341. workStudent: [],
  13342. groupStudent: [],
  13343. groupStudentUid: [],
  13344. noWorksS: [],
  13345. isWorksS: [],
  13346. noWorksStudent: [],
  13347. toolindex: 0,
  13348. toolDetailIndex: null,
  13349. groupIndex: 0,
  13350. workTypeB: false,
  13351. workTypeC: false,
  13352. isAnswer: false,
  13353. isHovered: false,
  13354. isHovered1: false,
  13355. isHovered2: false,
  13356. commentTagShow:0,
  13357. timer: null,
  13358. opertimer: null,
  13359. showType: 0,
  13360. fileType: 0,
  13361. showPDF: false,
  13362. noteName: "",
  13363. evaJuri: [],
  13364. evalua: "",
  13365. eTitle: "",
  13366. eName: "",
  13367. eJson: {},
  13368. fid: "", //一级
  13369. sid: "", //二级
  13370. tid: "", //二级
  13371. typeMode: 1,
  13372. eJSONNum: 0,
  13373. Etype: 1,
  13374. data: {
  13375. meta: {
  13376. name: "example",
  13377. author: "dd@163.com",
  13378. version: "0.2",
  13379. },
  13380. format: "node_array",
  13381. data: [{ id: "root", isroot: true, topic: "" }],
  13382. },
  13383. fullDialogVisible: false,
  13384. fulltype: "",
  13385. fullUrl: "",
  13386. commentIndexJson: {},
  13387. Stbodywidth: 0,
  13388. ispzType: 0,
  13389. pzType: 1,
  13390. wScore: 0,
  13391. scoreDetail: "",
  13392. videoStart: false,
  13393. recorder: null,
  13394. groupJson: {},
  13395. islock: false,
  13396. groupJson2: {},
  13397. dialogVisibleGroup: false,
  13398. dialogVisibleGroup2: false,
  13399. updateGroupArray: [],
  13400. updateGroupUser: {},
  13401. deleteGroupUser: [],
  13402. deleteGroupArray: {},
  13403. checkChair: "",
  13404. checkDeleteGroup: [],
  13405. inviteCode: "",
  13406. courseGroupStudent: [],
  13407. courseGroupStudentUid: [],
  13408. courseGroup: {},
  13409. isGroup: false,
  13410. toolIndex: null,
  13411. tool: {},
  13412. isWorkTool: [
  13413. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  13414. ], //, 40
  13415. videoJson: {},
  13416. toolType: 0,
  13417. checktoolArray: [],
  13418. vChapterData: [],
  13419. isUpdateToolDetail: false,
  13420. isUpdateToolDetail1: false,
  13421. updateToolDetailInner: "",
  13422. checkboxList: [],
  13423. plIndex: "",
  13424. worksSName2: "",
  13425. worksSid: "",
  13426. wordCloudData: [],
  13427. isPickStudent: [],
  13428. pzStype: 1,
  13429. downLoading: false,
  13430. greyType: false,
  13431. correctWord: [],
  13432. EnglishVoiceDialog: false,
  13433. englishVoiceJson: {},
  13434. englishVoiceJsonWork:[],
  13435. scoreList:{
  13436. listdata:[],
  13437. isScoreList:[],
  13438. },
  13439. classRoomHelperWidth: '85px',
  13440. orgArray:[],
  13441. oidArray:[],
  13442. refreshKey:0,
  13443. AIloading:[],
  13444. worksStudentCopy:[],
  13445. loopLoading:[],
  13446. markScoreVisible:false,
  13447. markScoretoolIndex:0,
  13448. markScoreUid:'',
  13449. markScoreTit:{},
  13450. markfullscreen:false,
  13451. xianObj: ["DOCX", "MD", "TXT", "PDF"],
  13452. markScoreworksStudent:[],
  13453. finalMarkList : -1,
  13454. isaiNum : 0,
  13455. dialogVisibleTxt:false,
  13456. TxtMd :''
  13457. };
  13458. },
  13459. methods: {
  13460. getAIJ(){
  13461. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13462. let oid = res.data[0];
  13463. let org = res.data[1];
  13464. let oidArray = [];
  13465. let orgArray = [];
  13466. oid.forEach(i=>oidArray.push(i.oid))
  13467. org.forEach(i=>orgArray.push(i.oid))
  13468. this.orgArray = orgArray;
  13469. this.oidArray = oidArray;
  13470. })
  13471. },
  13472. // 评分弹框全屏
  13473. markFullScreenBtn(){
  13474. this.markfullscreen = !this.markfullscreen
  13475. },
  13476. insertMemorandum(_html){//保存行为操作
  13477. //variable
  13478. //btn
  13479. let params = [{
  13480. uid:this.userid,
  13481. courseId:this.id+(this.tcid2?this.tcid2:""),
  13482. content:_html
  13483. }]
  13484. console.log(params)
  13485. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13486. if(res.data==1){
  13487. console.log('保存操作成功')
  13488. }else{
  13489. console.log('保存操作失败')
  13490. }
  13491. }).catch(e=>{
  13492. console.log('保存操作失败')
  13493. console.log(e)
  13494. })
  13495. },
  13496. // 获取文档id
  13497. createFileid(url) {
  13498. let _this = this;
  13499. return new Promise((resolve, reject) => {
  13500. try {
  13501. _this.ajax
  13502. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  13503. url: url
  13504. })
  13505. .then(res => {
  13506. let _data = res.data.FunctionResponse;
  13507. if (_data.result && _data.result.id) {
  13508. resolve(_data.result.id);
  13509. } else {
  13510. resolve(1);
  13511. }
  13512. })
  13513. .catch(function(error) {
  13514. resolve(1);
  13515. });
  13516. } catch (e) {
  13517. resolve(1);
  13518. }
  13519. });
  13520. },
  13521. // 一键重置
  13522. resetLoopEva(con,tit,stage,task,toolIndex,toolDetail,worksStudent){
  13523. let jude = false
  13524. this.AIloading.forEach((e,index)=>{
  13525. if(index == toolIndex){
  13526. e.forEach(k=>{
  13527. if(k.loading == true)
  13528. jude=true
  13529. })
  13530. }
  13531. })
  13532. if(jude) return this.$message.info('正在进行AI评分中,请稍后')
  13533. this.$confirm('确认一键重置?')
  13534. .then(_ => {
  13535. this.allEmptyScoBtn(con,stage,task)
  13536. })
  13537. .catch(_ => {});
  13538. },
  13539. // 一键重置
  13540. async allEmptyScoBtn(con,stage,task){
  13541. for (let index = 0; index < con.length; index++) {
  13542. await this.allEmptySco(con[index].userid,stage,task)
  13543. }
  13544. this.$message.success('重置完成')
  13545. this.refreshAssembly();
  13546. },
  13547. // 一键重置
  13548. allEmptySco(uid,stage,task){
  13549. let params = [{
  13550. cid: this.id,
  13551. uid:uid,
  13552. s:stage,
  13553. t:task
  13554. }];
  13555. return new Promise(resolve => { this.ajax
  13556. .post(this.$store.state.api + "allWorkEmptySco", params)
  13557. .then(res => {
  13558. resolve(1);
  13559. })
  13560. .catch(err => {
  13561. console.error(err);
  13562. });
  13563. })
  13564. .catch(error => {
  13565. console.log(error);
  13566. });
  13567. },
  13568. // AI评分循环打分
  13569. async loopEva(con,tit,stage,task,toolIndex,toolDetail,worksStudent){
  13570. tit.forEach((e,index)=>{
  13571. if(!e.isai){
  13572. e.isai=1
  13573. }
  13574. })
  13575. let jude = false
  13576. this.AIloading.forEach((e,index)=>{
  13577. if(index == toolIndex){
  13578. e.forEach(k=>{
  13579. if(k.loading == true)
  13580. jude=true
  13581. })
  13582. }
  13583. })
  13584. if(jude) return this.$message.info('请勿同时间进行AI评分')
  13585. this.AIloading.forEach((e,index)=>{
  13586. if(index == toolIndex){
  13587. e.forEach(k=>{
  13588. k.loading=true
  13589. })
  13590. }
  13591. })
  13592. this.loopLoading[toolIndex].loading=true
  13593. let laws = ""
  13594. for (let i = 0; i < tit.length; i++) {
  13595. if(tit[i].isai == 1){
  13596. let a = tit[i].detail
  13597. if (isNaN(parseFloat(a)) && a) {
  13598. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  13599. }else{
  13600. var result = a
  13601. }
  13602. // let result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  13603. laws += `评价维度:“${result}”, 评价细则:${tit[i].rule} \n`;
  13604. }
  13605. }
  13606. let forAllList = []
  13607. for (let i = 0; i < con.length; i++) {
  13608. let _fileid = ''
  13609. let wok = con[i].works
  13610. if(con[i].type == 1 || con[i].type == 12){
  13611. let a = wok.slice(wok.lastIndexOf(".") + 1)
  13612. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  13613. _fileid = await this.createFileid(con[i].works);
  13614. }else{
  13615. this.AIloading[toolIndex][i].loading=false;
  13616. continue;
  13617. }
  13618. }
  13619. if(_fileid == 1 || con[i].type == 0 || con[i].type == 3){
  13620. this.AIloading[toolIndex][i].loading=false;
  13621. continue;
  13622. }
  13623. let msg = `NOTICE
  13624. Role: 你是一个专业的项目式学习导师,你要对学生的评价高度负责。你要根据“六级评价细则”给学生作品评分,并生成需要的JSON数据。
  13625. 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.
  13626. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13627. Instruction: Based on the context, follow "Format example", write content.
  13628. #Context
  13629. ##要求
  13630. 根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级,结合“评价细则”和等级写评语。如果作业内容与评价细则无关,则直接评为0星。
  13631. ##评分资料
  13632. 评价细则:${laws}
  13633. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text }
  13634. #输出要求#
  13635. 输出每个维度的“等级”和作业的综合性“评语”
  13636. “评语”控制在150字左右
  13637. 评价维度要按原样输出,只输出 ##评分资料 “评分细则”引号内的
  13638. # Format example
  13639. [{'评价维度':'评价等级0-5(数字)'},{'评价维度':'评价等级0-5(数字)'},{'评价维度':'评价等级0-5(数字)'},{'评价维度':'评价等级0-5(数字)'},{'评语':'评语(150个字左右)'}]
  13640. `
  13641. let mk = `markSco${toolIndex}${i}`
  13642. let mkAwit = this.$refs[mk][0].aiupdetaSco(msg,con[i].userid,stage,task,_fileid)
  13643. forAllList.push(mkAwit)
  13644. // this.$refs[mk][0].getData()
  13645. // this.AIloading[toolIndex][i].loading=false
  13646. }
  13647. Promise.all(forAllList).then(values=>{
  13648. console.log('values',values)
  13649. this.$message({
  13650. message: "评价成功",
  13651. type: "success"
  13652. });
  13653. this.refreshKey++
  13654. this.AIloading[toolIndex].forEach(e=>{
  13655. e.loading =false
  13656. })
  13657. this.loopLoading[toolIndex].loading = false;
  13658. }).catch(reason=>{
  13659. console.error('reasonreasonreasonreasonreason',reason);
  13660. // 输出“失败原因”
  13661. })
  13662. },
  13663. // 获取评价细则
  13664. againEva(i,k){
  13665. let msg = `NOTICE
  13666. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  13667. 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.
  13668. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13669. Instruction: Based on the context, follow "Format example", write content.
  13670. #Context
  13671. ##要求
  13672. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  13673. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  13674. ##制定标准资料
  13675. 评价维度:${this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value}
  13676. 维度描述:${this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail}
  13677. # Format example
  13678. ==
  13679. 0 星,作业内容与作业要求无关;
  13680. 1 星,没有识别问题和需求;
  13681. 2 星,问题或需求没有被清晰理解或准确识别;
  13682. 3 星,问题或需求的一部分被识别;
  13683. 4 星,问题或需求的大部分被识别;
  13684. 5 星,问题或需求都被识别。
  13685. ==
  13686. `
  13687. let params = {
  13688. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  13689. message: [{"type":"text", "text":msg.replaceAll('\n', " ").replaceAll('*', "")}],
  13690. session_name: uuidv4(),
  13691. userId: this.userid,
  13692. file_ids: [],
  13693. model:'gpt-4o-2024-08-06'
  13694. };
  13695. // console.log('params',params);
  13696. this.ajax
  13697. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  13698. .then(response => {
  13699. let data = response.data.FunctionResponse;
  13700. // console.log("data", data);
  13701. if (data.message) {
  13702. let content = data.message;
  13703. var regex = new RegExp('==([^=]+)==');
  13704. let match = content.match(regex);
  13705. if (match) {
  13706. content = match[1].trim().replaceAll(' ','');
  13707. // 获取匹配到的内容并去除两端空格
  13708. // console.log('contentInsideDoubleEquals', content);
  13709. if(content.indexOf('0星') == -1 || content.indexOf('2星') == -1 || content.indexOf('3星') == -1 || content.indexOf('4星') == -1 || content.indexOf('5星') == -1){
  13710. console.log("未有星级。");
  13711. this.againEva(i,k)
  13712. return
  13713. }
  13714. // return
  13715. } else {
  13716. console.log("未找到匹配的内容。");
  13717. this.againEva(i,k)
  13718. return
  13719. }
  13720. let elist = JSON.parse(JSON.stringify(this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]))
  13721. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  13722. elist.rule = JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  13723. this.$set(this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,k,elist)
  13724. this.$forceUpdate();
  13725. let params2 = [
  13726. {
  13727. cid: this.id,
  13728. chapters: JSON.stringify(this.chapInfoList),
  13729. uid: this.userid,
  13730. unitIndex: this.courseType,
  13731. },
  13732. ];
  13733. this.ajax
  13734. .post(this.$store.state.api + "updateWorkNew4", params2)
  13735. .then((res) => {
  13736. this.getCourseDetail(2);
  13737. this.$forceUpdate();
  13738. })
  13739. .catch((err) => {
  13740. this.$message.error("网络不佳");
  13741. console.error(err);
  13742. });
  13743. // 进行进一步处理或解析outputContent
  13744. // } else {
  13745. // console.log("No match found for # Output section.");
  13746. // }
  13747. }
  13748. })
  13749. .catch(error => {
  13750. console.log(error);
  13751. });
  13752. },
  13753. // 关闭评分弹框
  13754. markScorehandleClose(done) {
  13755. this.refreshKey++
  13756. done();
  13757. },
  13758. // 关闭txtMd预览弹框
  13759. handleCloseTxt(done){
  13760. this.TxtMd = ''
  13761. done();
  13762. },
  13763. // Txt,Md作业查看
  13764. lookTxt(val){
  13765. console.log(val);
  13766. this.dialogVisibleTxt =true
  13767. this.TxtMd = ''
  13768. getFile(val).then(res=>{
  13769. this.TxtMd = res.data;
  13770. })
  13771. },
  13772. // 组件刷新
  13773. refreshAssembly(val){
  13774. this.refreshKey++
  13775. // console.log(this.refreshKey)
  13776. },
  13777. updateLoading(payload){
  13778. this.AIloading[payload.val][payload.val2].loading=payload.val3
  13779. },
  13780. handleShow(toolIndex,val) {
  13781. let mk = `markSco${toolIndex}${val}`
  13782. // console.log(mk);
  13783. this.$refs[mk][0].getData()
  13784. },
  13785. handleHide(datatoolIndex,val,worksStudent) {
  13786. let mk = `markSco${toolIndex}${val}`
  13787. this.$refs[mk][0].getData()
  13788. },
  13789. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  13790. markScoreDig2(uname,worksStudent,uid,tidx,titlist,val = 0){
  13791. let jude = false
  13792. this.AIloading.forEach((e,index)=>{
  13793. if(index == tidx){
  13794. e.forEach(k=>{
  13795. if(k.loading == true)
  13796. jude=true
  13797. })
  13798. }
  13799. })
  13800. if(jude) return this.$message.info('正在AI评价进程中请稍后')
  13801. if(val) return
  13802. // console.log(uname,worksStudent,uid,tidx,titlist)
  13803. this.markScoreTit=titlist;
  13804. // console.log('val',data)
  13805. this.markScoreUid=uid;
  13806. this.markScoretoolIndex=tidx;
  13807. this.markScoreworksStudent = worksStudent;
  13808. this.markfullscreen = false;
  13809. this.markScoreVisible = true;
  13810. this.insertMemorandum(`查看<span class="variable">${uname}</span>的作业`)
  13811. },
  13812. // 点击markScore显示评分框
  13813. markScoreDig(data){
  13814. // console.log('data',data.uname)
  13815. let jude = false
  13816. this.AIloading.forEach((e,index)=>{
  13817. if(index == data.val2){
  13818. e.forEach(k=>{
  13819. if(k.loading == true)
  13820. jude=true
  13821. })
  13822. }
  13823. })
  13824. if(jude) return this.$message.info('正在AI评价进程中请稍后')
  13825. this.markScoreTit=data.tit
  13826. // console.log('val',data)
  13827. this.markScoreUid=data.val
  13828. this.markScoretoolIndex=data.val2
  13829. this.markfullscreen = false
  13830. this.markScoreVisible = true
  13831. this.insertMemorandum(`查看<span class="variable">${data.uname}</span>的作业`)
  13832. },
  13833. // 刷新其他组件分数
  13834. refreshOther(toolIndex){
  13835. this.worksStudent.forEach((e,index)=>{
  13836. if(toolIndex != index){
  13837. e.forEach((i,inx)=>{
  13838. let mk = `markSco${index}${inx}`
  13839. this.$refs[mk][0].getData()
  13840. })
  13841. }
  13842. })
  13843. },
  13844. updateDocSco(payload){
  13845. // console.log('updateDocSco',this.AIloading[payload.val][payload.val2].sco , payload.val3);
  13846. this.AIloading[payload.val][payload.val2].sco=payload.val3
  13847. },
  13848. gx(){
  13849. this.$forceUpdate();
  13850. },
  13851. isUpdateCorrect(t,p){
  13852. if(this.greyType == false){
  13853. this.isUpdateText = t;
  13854. this.greyType = true;
  13855. }else{
  13856. if(p == 1){
  13857. this.newEnglishList.engText = this.isUpdateText;
  13858. }else if(p == 2){
  13859. this.oldEnglishJson1.engText = this.isUpdateText;
  13860. }else if(p == 3){
  13861. this.newEnglishList.engText = this.isUpdateText;
  13862. }else{
  13863. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  13864. }
  13865. this.greyType = false
  13866. }
  13867. },
  13868. aiCorrect(t,p){
  13869. let aiText = "";
  13870. const loading = this.$loading.service({
  13871. background: "rgba(255, 255, 255)",
  13872. target: document.querySelectorAll(".loadingText")[0],
  13873. });
  13874. let param = {
  13875. model: "gpt-3.5-turbo",
  13876. temperature: 0,
  13877. max_tokens: 2048,
  13878. top_p: 1,
  13879. frequency_penalty: 0,
  13880. presence_penalty: 0,
  13881. messages: [
  13882. {
  13883. role: "user",
  13884. content:
  13885.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  13886. },
  13887. ],
  13888. uid: this.userid,
  13889. stream: false,
  13890. };
  13891. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  13892. (res) => {
  13893. if (
  13894. res.data.FunctionResponse &&
  13895. res.data.FunctionResponse.result &&
  13896. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  13897. ) {
  13898. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  13899. return;
  13900. }
  13901. aiText =
  13902. res.data.FunctionResponse.choices[0].message.content;
  13903. aiText = aiText.replace(/%/g,"%25");
  13904. // let w = "";
  13905. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  13906. // for(var k = 0;k<a.length;k++){
  13907. // //diffWordsWithSpace
  13908. // if(a.length > 1){
  13909. // if(a[k].added == true){
  13910. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  13911. // }else if(a[k].removed == true){
  13912. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  13913. // }else{
  13914. // w += '<span>' + a[k].value + '</span>';
  13915. // }
  13916. // }else{
  13917. // if(p == 1){
  13918. // w = this.newEnglishList.engText;
  13919. // }else if(p == 2){
  13920. // w = this.oldEnglishJson1.engText;
  13921. // }else if(p == 3){
  13922. // w = this.newEnglishList.engText;
  13923. // }else{
  13924. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  13925. // }
  13926. // }
  13927. // }
  13928. if(p == 1){
  13929. this.newEnglishList.engText = aiText;
  13930. }else if(p == 2){
  13931. this.oldEnglishJson1.engText = aiText;
  13932. }else if(p == 3){
  13933. this.newEnglishList.engText = aiText;
  13934. }else{
  13935. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  13936. }
  13937. loading.close();
  13938. },
  13939. (err) => {
  13940. console.log(err);
  13941. loading.close();
  13942. }
  13943. );
  13944. },
  13945. addToolChoose() {
  13946. if (!this.checktoolArray.length) {
  13947. this.$message.error("请选择要添加的任务");
  13948. return;
  13949. }
  13950. if (
  13951. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13952. this.taskCount
  13953. ].toolChoose[0].tool.length
  13954. ) {
  13955. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13956. this.taskCount
  13957. ].toolChoose[0].tool = this.checktoolArray;
  13958. } else {
  13959. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13960. this.taskCount
  13961. ].toolChoose.push({
  13962. tool: this.checktoolArray,
  13963. toolDetail: "",
  13964. toolType: 0,
  13965. askCount: 1,
  13966. askTitle: "",
  13967. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13968. });
  13969. }
  13970. let params = [
  13971. {
  13972. cid: this.id,
  13973. chapters: JSON.stringify(this.chapInfoList),
  13974. uid: this.userid,
  13975. unitIndex: this.courseType,
  13976. },
  13977. ];
  13978. this.ajax
  13979. .post(this.$store.state.api + "updateWorkNew4", params)
  13980. .then((res) => {
  13981. this.$message({
  13982. message: "添加成功",
  13983. type: "success",
  13984. });
  13985. this.checktoolArray = [];
  13986. this.getCourseDetail(2);
  13987. this.checkBz(
  13988. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13989. this.taskCount
  13990. ].toolChoose.length - 1
  13991. );
  13992. this.toolDialogVisible = false;
  13993. this.refreshCourse();
  13994. this.$forceUpdate();
  13995. })
  13996. .catch((err) => {
  13997. console.error(err);
  13998. });
  13999. },
  14000. checkBz(index) {
  14001. this.isUpdateToolDetail = false;
  14002. this.$forceUpdate();
  14003. setTimeout(() => {
  14004. document.scrollingElement.scrollTop =
  14005. document.querySelectorAll(".filebox")[index].offsetTop +
  14006. document.querySelector(".student_body").offsetTop;
  14007. }, 500);
  14008. },
  14009. updateToolDetail(i, type) {
  14010. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  14011. this.toolDetailIndex = i
  14012. this.isUpdateToolDetail1 = true;
  14013. setTimeout(() => {
  14014. this.updateToolDetailInner = JSON.parse(
  14015. JSON.stringify(
  14016. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14017. this.taskCount
  14018. ].toolChoose[i].toolDetail
  14019. )
  14020. );
  14021. document.querySelector(".checkTextArea").focus();
  14022. }, 0);
  14023. } else if((this.isUpdateToolDetail1 && type != 2)){
  14024. // this.toolDetailIndex = i;
  14025. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14026. this.taskCount
  14027. ].toolChoose[i].toolDetail = JSON.parse(
  14028. JSON.stringify(this.updateToolDetailInner)
  14029. );
  14030. let params = [
  14031. {
  14032. cid: this.id,
  14033. chapters: JSON.stringify(this.chapInfoList),
  14034. uid: this.userid,
  14035. unitIndex: this.courseType,
  14036. },
  14037. ];
  14038. this.ajax
  14039. .post(this.$store.state.api + "updateWorkNew4", params)
  14040. .then((res) => {
  14041. this.isUpdateToolDetail1 = false;
  14042. this.$message({
  14043. message: "修改成功",
  14044. type: "success",
  14045. });
  14046. this.toolDetailIndex = null;
  14047. this.updateToolDetailInner = "";
  14048. this.getCourseDetail(2);
  14049. this.$forceUpdate();
  14050. })
  14051. .catch((err) => {
  14052. console.error(err);
  14053. });
  14054. } else if((this.isUpdateToolDetail1 && type == 2)){
  14055. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14056. this.taskCount
  14057. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  14058. JSON.stringify(this.updateToolDetailInner)
  14059. );
  14060. let params = [
  14061. {
  14062. cid: this.id,
  14063. chapters: JSON.stringify(this.chapInfoList),
  14064. uid: this.userid,
  14065. unitIndex: this.courseType,
  14066. },
  14067. ];
  14068. this.ajax
  14069. .post(this.$store.state.api + "updateWorkNew4", params)
  14070. .then((res) => {
  14071. this.$message({
  14072. message: "修改成功",
  14073. type: "success",
  14074. });
  14075. this.toolDetailIndex = i;
  14076. this.isUpdateToolDetail1 = true;
  14077. setTimeout(() => {
  14078. this.updateToolDetailInner = JSON.parse(
  14079. JSON.stringify(
  14080. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14081. this.taskCount
  14082. ].toolChoose[i].toolDetail
  14083. )
  14084. );
  14085. document.querySelector(".checkTextArea").focus();
  14086. }, 0);
  14087. this.getCourseDetail(2);
  14088. this.$forceUpdate();
  14089. })
  14090. .catch((err) => {
  14091. console.error(err);
  14092. });
  14093. }
  14094. },
  14095. jumpGj(i, j, k, l) {
  14096. this.refreshAssembly()
  14097. for (var z = 0; z < this.navList.length; z++) {
  14098. for (var q = 0; q < this.navList[z].task.length; q++) {
  14099. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  14100. this.navList[z].task[q].tool[w].isTool = false;
  14101. }
  14102. }
  14103. }
  14104. this.navList[i].task[j].tool[k].isTool =
  14105. !this.navList[i].task[j].tool[k].isTool;
  14106. var a = document.scrollingElement;
  14107. let target = document.querySelector(`#gj${k}`);
  14108. if (target) {
  14109. target.scrollIntoView(true);
  14110. setTimeout(() => {
  14111. a.scrollTop = a.scrollTop - 150;
  14112. }, 0);
  14113. }
  14114. this.navId = ""
  14115. let flag = this.courseType == i;
  14116. let flag2 = this.taskCount == j
  14117. if (l) {
  14118. this.courseType = i;
  14119. // this.navId = l;
  14120. this.taskCount = j;
  14121. this.selectPz();
  14122. this.getHomeWork();
  14123. this.getCourseDetail(2);
  14124. if(flag){
  14125. if(flag2){
  14126. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  14127. }else{
  14128. 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>`)
  14129. }
  14130. }else{
  14131. 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>`)
  14132. }
  14133. }
  14134. // var b = this.$refs["bz" + k][0];
  14135. // a.scrollTop = b.offsetTop;
  14136. },
  14137. addTools2(i) {
  14138. if (i == 4) {
  14139. // this.openTools2(4);
  14140. this.$message.error("暂未开放");
  14141. return;
  14142. }
  14143. if (i == 45) {
  14144. // this.openTools2(45);
  14145. this.$message.error("暂未开放");
  14146. return;
  14147. }
  14148. if (i == 47) {
  14149. // this.openTools2(47);
  14150. this.$message.error("暂未开放");
  14151. return;
  14152. }
  14153. if (i == 49) {
  14154. // this.openTools2(49);
  14155. this.$message.error("暂未开放");
  14156. return;
  14157. }
  14158. if (i == 62) {
  14159. // this.openTools(itemTaskIndex, 62, toolIndex);
  14160. this.$message.error("暂未开放");
  14161. return;
  14162. }
  14163. if (i == 15) {
  14164. // this.openTools(itemTaskIndex, 15, toolIndex);
  14165. this.$message.error("暂未开放");
  14166. return;
  14167. }
  14168. if (i == 40) {
  14169. // this.openTools(itemTaskIndex, 40, toolIndex);
  14170. this.$message.error("暂未开放");
  14171. return;
  14172. }
  14173. if (i == 41) {
  14174. // this.openTools(itemTaskIndex, 41, toolIndex);
  14175. this.$message.error("暂未开放");
  14176. return;
  14177. }
  14178. if (i == 42) {
  14179. // this.openTools(itemTaskIndex, 42, toolIndex);
  14180. this.$message.error("暂未开放");
  14181. return;
  14182. }
  14183. if (this.checktoolArray.length > 0) {
  14184. if (this.checktoolArray.indexOf(i) != -1) {
  14185. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  14186. } else {
  14187. this.checktoolArray = [];
  14188. this.checktoolArray.push(i);
  14189. }
  14190. } else {
  14191. this.checktoolArray.push(i);
  14192. }
  14193. this.$forceUpdate();
  14194. },
  14195. jump() {
  14196. window.parent.postMessage({ tools: "43" }, "*");
  14197. },
  14198. getUpdateMore(f, checkboxList, searchTN, index) {
  14199. this.dialogVisibleMember = f;
  14200. this.checkboxList = checkboxList;
  14201. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  14202. this.plIndex = index;
  14203. },
  14204. setPlname(a) {
  14205. if (this.plworkFile.length) {
  14206. this.plworkFile[this.plIndex].username = a;
  14207. } else {
  14208. this.worksSName = a;
  14209. }
  14210. this.dialogVisibleMember = false;
  14211. },
  14212. previewImg(url,w) {
  14213. this.$hevueImgPreview(url);
  14214. if(w){
  14215. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14216. }
  14217. },
  14218. checkImg(list) {
  14219. if (!list.length) {
  14220. return;
  14221. }
  14222. this.$hevueImgPreview({
  14223. multiple: true, // 开启多图预览模式
  14224. imgList: list, // 需要预览的多图数组
  14225. });
  14226. },
  14227. change(val) {
  14228. console.log(val);
  14229. },
  14230. goTo(path) {
  14231. this.$router.push(path);
  14232. },
  14233. handlePictureCardPreview(url) {
  14234. this.dialogImageUrl = url;
  14235. this.pictureDialog = true;
  14236. },
  14237. clean(type) {
  14238. if (type == 1) {
  14239. this.studyJuri[0].cover.splice(0, 1);
  14240. } else if (type == 2) {
  14241. this.studyJuri[0].upVedio.splice(0, 1);
  14242. } else {
  14243. this.studyJuri[0].upFile.splice(0, 1);
  14244. }
  14245. },
  14246. clean2(index) {
  14247. this.plworkFile.splice(index, 1);
  14248. },
  14249. handleClose(done) {
  14250. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  14251. this.videoDetail.sources[0].src = "";
  14252. }
  14253. this.commentIndexJson = {};
  14254. done();
  14255. },
  14256. fullTools() {
  14257. this.full = !this.full;
  14258. },
  14259. imgChange(file, fileList, type) {
  14260. if (type == 1) {
  14261. var _tmp = this.studyJuri[0].cover;
  14262. } else if (type == 2) {
  14263. var _tmp = this.studyJuri[0].upVedio;
  14264. } else {
  14265. var _tmp = this.studyJuri[0].upFile;
  14266. }
  14267. this.noneBtnImg = _tmp.length >= 1;
  14268. },
  14269. setContent(bool) {
  14270. this.contentDialog = bool;
  14271. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  14272. document.querySelector(".workd_media").style.height = "650px";
  14273. } else if (document.querySelector(".workd_media")) {
  14274. document.querySelector(".workd_media").style.height = "auto";
  14275. }
  14276. },
  14277. setContent2(bool) {
  14278. this.mlDialog = bool;
  14279. if (
  14280. bool &&
  14281. this.contentDialog &&
  14282. document.querySelector(".workd_media")
  14283. ) {
  14284. document.querySelector(".workd_media").style.height = "650px";
  14285. } else if (document.querySelector(".workd_media")) {
  14286. document.querySelector(".workd_media").style.height = "auto";
  14287. }
  14288. },
  14289. openToolAll() {
  14290. this.toolDialogVisible = true;
  14291. },
  14292. addImg(e) {
  14293. var el = e.currentTarget;
  14294. // this.$message.success('触发上传')
  14295. el.getElementsByTagName("input")[0].click();
  14296. e.target.value = "";
  14297. },
  14298. addSelectAnswer() {
  14299. let params = [
  14300. {
  14301. uid: this.userid,
  14302. cid: this.id,
  14303. stage: this.courseType,
  14304. task: this.taskCount,
  14305. tool: this.toolindex,
  14306. content: this.selectAnswer.answer,
  14307. type: 7,
  14308. },
  14309. ];
  14310. this.ajax
  14311. .post(this.$store.state.api + "addCourseWorks", params)
  14312. .then((res) => {
  14313. this.$message({
  14314. message: "提交成功",
  14315. type: "success",
  14316. });
  14317. this.dialogVisibleSelect = false;
  14318. // this.selectAnswer = {};
  14319. this.selectSWorks();
  14320. this.selectStudent();
  14321. })
  14322. .catch((err) => {
  14323. this.$message.error("提交失败");
  14324. console.error(err);
  14325. });
  14326. },
  14327. addSelectAnswerTeacher() {
  14328. let params = [
  14329. {
  14330. uid: this.sStudent.userid,
  14331. cid: this.id,
  14332. stage: this.courseType,
  14333. task: this.taskCount,
  14334. tool: this.toolindex,
  14335. content: this.selectAnswer.answer,
  14336. type: 7,
  14337. },
  14338. ];
  14339. this.ajax
  14340. .post(this.$store.state.api + "addCourseWorks", params)
  14341. .then((res) => {
  14342. this.$message({
  14343. message: "提交成功",
  14344. type: "success",
  14345. });
  14346. this.dialogVisibleSelectTeacher = false;
  14347. // this.selectAnswer = {};
  14348. this.selectSWorks();
  14349. this.selectStudent();
  14350. })
  14351. .catch((err) => {
  14352. this.$message.error("提交失败");
  14353. console.error(err);
  14354. });
  14355. },
  14356. addSenWorks() {
  14357. for (var i = 0; i < this.sentenceList.length; i++) {
  14358. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  14359. if (
  14360. this.sentenceList[i].chooseSenList[j] == undefined ||
  14361. this.sentenceList[i].chooseSenList[j] == ""
  14362. ) {
  14363. this.$message.error("请将答案填写完整!");
  14364. return;
  14365. }
  14366. }
  14367. }
  14368. let params = [
  14369. {
  14370. uid: this.userid,
  14371. cid: this.id,
  14372. stage: this.courseType,
  14373. task: this.taskCount,
  14374. tool: this.toolindex,
  14375. content: JSON.stringify(this.sentenceList),
  14376. type: 9,
  14377. },
  14378. ];
  14379. this.ajax
  14380. .post(this.$store.state.api + "addCourseWorks", params)
  14381. .then((res) => {
  14382. this.$message({
  14383. message: "提交成功",
  14384. type: "success",
  14385. });
  14386. this.dialogVisibleSentence = false;
  14387. // this.selectAnswer = {};
  14388. this.selectSWorks();
  14389. this.selectStudent();
  14390. })
  14391. .catch((err) => {
  14392. this.$message.error("提交失败");
  14393. console.error(err);
  14394. });
  14395. },
  14396. addSenWorksTeacher() {
  14397. for (var i = 0; i < this.sentenceList.length; i++) {
  14398. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  14399. if (
  14400. this.sentenceList[i].chooseSenList[j] == undefined ||
  14401. this.sentenceList[i].chooseSenList[j] == ""
  14402. ) {
  14403. this.$message.error("请将答案填写完整!");
  14404. return;
  14405. }
  14406. }
  14407. }
  14408. let params = [
  14409. {
  14410. uid: this.sStudent.userid,
  14411. cid: this.id,
  14412. stage: this.courseType,
  14413. task: this.taskCount,
  14414. tool: this.toolindex,
  14415. content: JSON.stringify(this.sentenceList),
  14416. type: 9,
  14417. },
  14418. ];
  14419. this.ajax
  14420. .post(this.$store.state.api + "addCourseWorks", params)
  14421. .then((res) => {
  14422. this.$message({
  14423. message: "提交成功",
  14424. type: "success",
  14425. });
  14426. this.dialogVisibleSentenceTeacher = false;
  14427. // this.selectAnswer = {};
  14428. this.selectSWorks();
  14429. this.selectStudent();
  14430. })
  14431. .catch((err) => {
  14432. this.$message.error("提交失败");
  14433. console.error(err);
  14434. });
  14435. },
  14436. returnTableText() {
  14437. this.$confirm("确定还原此模板吗?", "提示", {
  14438. confirmButtonText: "确定",
  14439. cancelButtonText: "取消",
  14440. type: "warning",
  14441. })
  14442. .then(() => {
  14443. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  14444. })
  14445. .catch(() => {});
  14446. },
  14447. addTableWorks() {
  14448. let params = [
  14449. {
  14450. uid: this.userid,
  14451. cid: this.id,
  14452. stage: this.courseType,
  14453. task: this.taskCount,
  14454. tool: this.toolindex,
  14455. content: JSON.stringify(this.tableJson),
  14456. type: 10,
  14457. },
  14458. ];
  14459. this.ajax
  14460. .post(this.$store.state.api + "addCourseWorks", params)
  14461. .then((res) => {
  14462. this.$message({
  14463. message: "提交成功",
  14464. type: "success",
  14465. });
  14466. this.dialogVisibleTable = false;
  14467. // this.selectAnswer = {};
  14468. this.selectSWorks();
  14469. this.selectStudent();
  14470. })
  14471. .catch((err) => {
  14472. this.$message.error("提交失败");
  14473. console.error(err);
  14474. });
  14475. },
  14476. tableRowClassName({ row, rowIndex }) {
  14477. if ((rowIndex + 1) % 2 === 0) {
  14478. return "even_row";
  14479. } else {
  14480. return "";
  14481. }
  14482. },
  14483. addTableWorksTeacher() {
  14484. let params = [
  14485. {
  14486. uid: this.sStudent.userid,
  14487. cid: this.id,
  14488. stage: this.courseType,
  14489. task: this.taskCount,
  14490. tool: this.toolindex,
  14491. content: JSON.stringify(this.tableJson),
  14492. type: 10,
  14493. },
  14494. ];
  14495. this.ajax
  14496. .post(this.$store.state.api + "addCourseWorks", params)
  14497. .then((res) => {
  14498. this.$message({
  14499. message: "提交成功",
  14500. type: "success",
  14501. });
  14502. this.dialogVisibleTableTeacher = false;
  14503. // this.selectAnswer = {};
  14504. this.selectSWorks();
  14505. this.selectStudent();
  14506. })
  14507. .catch((err) => {
  14508. this.$message.error("提交失败");
  14509. console.error(err);
  14510. });
  14511. },
  14512. returnWordText() {
  14513. this.$confirm("确定还原此模板吗?", "提示", {
  14514. confirmButtonText: "确定",
  14515. cancelButtonText: "取消",
  14516. type: "warning",
  14517. })
  14518. .then(() => {
  14519. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  14520. })
  14521. .catch(() => {});
  14522. },
  14523. addWordWorks() {
  14524. let params = [
  14525. {
  14526. uid: this.userid,
  14527. cid: this.id,
  14528. stage: this.courseType,
  14529. task: this.taskCount,
  14530. tool: this.toolindex,
  14531. content: JSON.stringify(this.wordJson),
  14532. type: 13,
  14533. atool: 52,
  14534. },
  14535. ];
  14536. this.ajax
  14537. .post(this.$store.state.api + "addCourseWorks3-2", params)
  14538. .then((res) => {
  14539. this.$message({
  14540. message: "提交成功",
  14541. type: "success",
  14542. });
  14543. this.dialogVisibleWord = false;
  14544. // this.selectAnswer = {};
  14545. this.selectSWorks();
  14546. this.selectStudent();
  14547. })
  14548. .catch((err) => {
  14549. this.$message.error("提交失败");
  14550. console.error(err);
  14551. });
  14552. },
  14553. addWordWorksTeacher() {
  14554. let params = [
  14555. {
  14556. uid: this.sStudent.userid,
  14557. cid: this.id,
  14558. stage: this.courseType,
  14559. task: this.taskCount,
  14560. tool: this.toolindex,
  14561. content: JSON.stringify(this.wordJson),
  14562. type: 13,
  14563. atool: 52,
  14564. },
  14565. ];
  14566. this.ajax
  14567. .post(this.$store.state.api + "addCourseWorks3-2", params)
  14568. .then((res) => {
  14569. this.$message({
  14570. message: "提交成功",
  14571. type: "success",
  14572. });
  14573. this.dialogVisibleWordTeacher = false;
  14574. // this.selectAnswer = {};
  14575. this.selectSWorks();
  14576. this.selectStudent();
  14577. })
  14578. .catch((err) => {
  14579. this.$message.error("提交失败");
  14580. console.error(err);
  14581. });
  14582. },
  14583. addCourseWorks(i) {
  14584. var typesql;
  14585. if (this.fileType === 0) {
  14586. typesql = 1;
  14587. } else if (this.fileType === 1) {
  14588. typesql = 4;
  14589. } else if (this.fileType === 2) {
  14590. typesql = 5;
  14591. } else if (this.fileType === 3) {
  14592. typesql = 12;
  14593. }
  14594. if (!this.studyJuri[0].cover[0].url) {
  14595. this.$message.error("请上传文件");
  14596. return;
  14597. }
  14598. let params = [
  14599. {
  14600. uid: this.userid,
  14601. cid: this.id,
  14602. stage: this.courseType,
  14603. task: i,
  14604. tool: this.toolindex,
  14605. content: this.studyJuri[0].cover[0].url,
  14606. type: typesql,
  14607. },
  14608. ];
  14609. this.ajax
  14610. .post(this.$store.state.api + "addCourseWorksR", params)
  14611. .then((res) => {
  14612. this.$message({
  14613. message: "提交成功",
  14614. type: "success",
  14615. });
  14616. this.studyJuri[0].cover = [];
  14617. this.dialogVisible = false;
  14618. this.getCourseDetail(2);
  14619. })
  14620. .catch((err) => {
  14621. this.$message.error("提交失败");
  14622. console.error(err);
  14623. });
  14624. },
  14625. addCourseWorksPl(i) {
  14626. let _files = this.plworkFile;
  14627. var c = 1;
  14628. for (var k = 0; k < _files.length; k++) {
  14629. if (!_files[k].username) {
  14630. c = 2;
  14631. }
  14632. }
  14633. if (c == 2) {
  14634. this.$message.error("请填写学生姓名");
  14635. return;
  14636. }
  14637. let params = [
  14638. {
  14639. ateacher: this.userid,
  14640. cid: this.id,
  14641. stage: this.courseType,
  14642. task: i,
  14643. tool: this.toolindex,
  14644. content: JSON.stringify(_files),
  14645. },
  14646. ];
  14647. this.ajax
  14648. .post(this.$store.state.api + "addCourseWorksPl", params)
  14649. .then((res) => {
  14650. this.$message({
  14651. message: "提交成功",
  14652. type: "success",
  14653. });
  14654. this.plworkFile = [];
  14655. this.dialogVisiblePl = false;
  14656. this.getCourseDetail(2);
  14657. })
  14658. .catch((err) => {
  14659. this.$message.error("提交失败");
  14660. console.error(err);
  14661. });
  14662. },
  14663. addCourseWorks2(i) {
  14664. var typesql;
  14665. if (this.fileType === 0) {
  14666. typesql = 0;
  14667. } else if (this.fileType === 1) {
  14668. typesql = 1;
  14669. } else if (this.fileType === 2) {
  14670. typesql = 3;
  14671. } else if (this.fileType === 3) {
  14672. typesql = 12;
  14673. }
  14674. if (!this.studyJuri[0].cover[0].url) {
  14675. this.$message.error("请上传文件");
  14676. return;
  14677. }
  14678. let params = [
  14679. {
  14680. uid: this.userid,
  14681. cid: this.id,
  14682. stage: this.courseType,
  14683. task: i,
  14684. tool: this.toolindex,
  14685. content: JSON.stringify({
  14686. type: typesql,
  14687. groupIndex: this.groupIndex,
  14688. url: this.studyJuri[0].cover[0].url,
  14689. }),
  14690. type: 11,
  14691. atool: 49,
  14692. text: "",
  14693. },
  14694. ];
  14695. this.ajax
  14696. .post(this.$store.state.api + "addCourseWorks5", params)
  14697. .then((res) => {
  14698. this.$message({
  14699. message: "提交成功",
  14700. type: "success",
  14701. });
  14702. this.studyJuri[0].cover = [];
  14703. this.dialogVisibleGroupWork = false;
  14704. this.getCourseDetail(2);
  14705. })
  14706. .catch((err) => {
  14707. this.$message.error("提交失败");
  14708. console.error(err);
  14709. });
  14710. },
  14711. addEnglishWork() {
  14712. this.myAnList = this.$refs['engJson'].myAnswerList;
  14713. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  14714. this.$message.error("请输入作文标题和正文!");
  14715. return;
  14716. }
  14717. let params = [
  14718. {
  14719. uid: this.userid,
  14720. cid: this.id,
  14721. stage: this.courseType,
  14722. task: this.taskCount,
  14723. tool: this.englishToolIndex,
  14724. content: JSON.stringify(this.myAnList),
  14725. type: 16,
  14726. atool: 69,
  14727. text: "",
  14728. },
  14729. ];
  14730. this.ajax
  14731. .post(this.$store.state.api + "addCourseWorks5", params)
  14732. .then((res) => {
  14733. this.$message({
  14734. message: "提交成功",
  14735. type: "success",
  14736. });
  14737. this.myAnList = {};
  14738. this.englishList = {};
  14739. this.englishToolIndex = 0;
  14740. this.engDialogVisible = false;
  14741. this.selectSWorks();
  14742. this.selectStudent();
  14743. })
  14744. .catch((err) => {
  14745. this.$message.error("提交失败");
  14746. console.error(err);
  14747. });
  14748. },
  14749. addCourseWorksGong(i, data, tool) {
  14750. let params = [
  14751. {
  14752. uid: this.userid,
  14753. cid: this.id,
  14754. stage: this.courseType,
  14755. task: this.taskCount,
  14756. tool: i,
  14757. content: data,
  14758. type: 12,
  14759. atool: tool,
  14760. text: "",
  14761. },
  14762. ];
  14763. this.ajax
  14764. .post(this.$store.state.api + "addCourseWorks5", params)
  14765. .then((res) => {
  14766. this.$message({
  14767. message: "提交成功",
  14768. type: "success",
  14769. });
  14770. this.studyJuri[0].cover = [];
  14771. this.selectSWorks();
  14772. this.selectStudent();
  14773. })
  14774. .catch((err) => {
  14775. this.$message.error("提交失败");
  14776. console.error(err);
  14777. });
  14778. },
  14779. addCourseWorksGongTeacher(i, data, tool) {
  14780. let params = [
  14781. {
  14782. uid: this.sStudent.userid,
  14783. cid: this.id,
  14784. stage: this.courseType,
  14785. task: this.taskCount,
  14786. tool: i,
  14787. content: data,
  14788. type: 12,
  14789. atool: tool,
  14790. text: "",
  14791. },
  14792. ];
  14793. this.ajax
  14794. .post(this.$store.state.api + "addCourseWorks5", params)
  14795. .then((res) => {
  14796. this.$message({
  14797. message: "提交成功",
  14798. type: "success",
  14799. });
  14800. this.studyJuri[0].cover = [];
  14801. this.dialogVisibleWorks = false;
  14802. this.selectSWorks();
  14803. this.selectStudent();
  14804. })
  14805. .catch((err) => {
  14806. this.$message.error("提交失败");
  14807. console.error(err);
  14808. });
  14809. },
  14810. addCourseWorksGongPl(i, data, tool, type) {
  14811. let params = [
  14812. {
  14813. uid: this.sStudent.userid,
  14814. cid: this.id,
  14815. stage: this.courseType,
  14816. task: this.taskCount,
  14817. tool: i,
  14818. content: data,
  14819. type: type,
  14820. atool: tool,
  14821. text: "",
  14822. },
  14823. ];
  14824. this.ajax
  14825. .post(this.$store.state.api + "addCourseWorks5", params)
  14826. .then((res) => {
  14827. this.$message({
  14828. message: "提交成功",
  14829. type: "success",
  14830. });
  14831. this.studyJuri[0].cover = [];
  14832. this.dialogVisibleWorks = false;
  14833. this.selectSWorks();
  14834. this.selectStudent();
  14835. })
  14836. .catch((err) => {
  14837. this.$message.error("提交失败");
  14838. console.error(err);
  14839. });
  14840. },
  14841. addCourseWorksTeacher(i) {
  14842. var typesql;
  14843. if (this.sTool == 32) {
  14844. this.addCourseWorksGongTeacher(
  14845. this.toolindex,
  14846. this.studyJuri[0].cover[0].url,
  14847. this.sTool
  14848. );
  14849. return;
  14850. }
  14851. if (this.fileType === 0) {
  14852. typesql = 1;
  14853. } else if (this.fileType === 1) {
  14854. typesql = 4;
  14855. } else if (this.fileType === 2) {
  14856. typesql = 5;
  14857. } else if (this.fileType === 3) {
  14858. typesql = 12;
  14859. }
  14860. if (this.sTool == 50) {
  14861. this.addCourseWorksGongPl(
  14862. this.toolindex,
  14863. this.studyJuri[0].cover[0].url,
  14864. this.sTool,
  14865. typesql
  14866. );
  14867. return;
  14868. }
  14869. if (!this.studyJuri[0].cover[0].url) {
  14870. this.$message.error("请上传文件");
  14871. return;
  14872. }
  14873. let params = [
  14874. {
  14875. uid: this.sStudent.userid,
  14876. cid: this.id,
  14877. stage: this.courseType,
  14878. task: i,
  14879. tool: this.toolindex,
  14880. content: this.studyJuri[0].cover[0].url,
  14881. type: typesql,
  14882. ateacher: this.userid,
  14883. },
  14884. ];
  14885. this.ajax
  14886. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14887. .then((res) => {
  14888. this.$message({
  14889. message: "提交成功",
  14890. type: "success",
  14891. });
  14892. this.studyJuri[0].cover = [];
  14893. this.dialogVisibleWorks = false;
  14894. this.getCourseDetail(2);
  14895. })
  14896. .catch((err) => {
  14897. this.$message.error("提交失败");
  14898. console.error(err);
  14899. });
  14900. },
  14901. selectUploadStudent(type) {
  14902. const loading = this.$loading.service({
  14903. background: "rgba(255, 255, 255, 0.7)",
  14904. target: document.body,
  14905. });
  14906. let params = {
  14907. cid: this.uploadCid,
  14908. oid: this.oid,
  14909. cn: "",
  14910. };
  14911. this.ajax
  14912. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14913. .then((res) => {
  14914. loading.close();
  14915. var studentK = [];
  14916. if (this.isWorksS[this.toolindex].length > 0) {
  14917. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  14918. studentK.push(this.isWorksS[this.toolindex][z].uid);
  14919. }
  14920. studentK = studentK.join(",");
  14921. }
  14922. this.uploadStudentJuri = res.data[0].filter((el) => {
  14923. return studentK.indexOf(el.userid) == -1;
  14924. });
  14925. if (this.worksSName && this.worksSid) {
  14926. this.uploadStudentJuri.push({
  14927. userid: this.worksSid,
  14928. name: this.worksSName,
  14929. });
  14930. }
  14931. if (type == 1) {
  14932. this.plworkFile = [];
  14933. this.dialogVisibleSname = true;
  14934. } else if (type == 2) {
  14935. this.dialogVisiblePl = true;
  14936. }
  14937. })
  14938. .catch((err) => {
  14939. loading.close();
  14940. console.error(err);
  14941. });
  14942. },
  14943. selectPickStudent() {
  14944. const loading = this.$loading.service({
  14945. background: "rgba(255, 255, 255, 0.7)",
  14946. target: document.body,
  14947. });
  14948. let params = {
  14949. cid: this.uploadCid,
  14950. oid: this.oid,
  14951. cn: "",
  14952. };
  14953. this.ajax
  14954. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  14955. .then((res) => {
  14956. loading.close();
  14957. this.uploadStudentJuri = res.data[0];
  14958. this.dialogVisiblePickPeople = true;
  14959. })
  14960. .catch((err) => {
  14961. loading.close();
  14962. console.error(err);
  14963. });
  14964. },
  14965. arrayToArray(arrayo, arrayt) {
  14966. let array1 = arrayo;
  14967. let array2 = arrayt;
  14968. let commonElements = [];
  14969. for (let i = 0; i < array1.length; i++) {
  14970. for (let j = 0; j < array2.length; j++) {
  14971. if (array1[i] === array2[j]) {
  14972. commonElements.push(array1[i]);
  14973. }
  14974. }
  14975. }
  14976. return commonElements;
  14977. },
  14978. selectWorksStudent() {
  14979. let params = {
  14980. oid: this.oid,
  14981. cid: this.courseDetail.juri,
  14982. };
  14983. this.ajax
  14984. .get(this.$store.state.api + "selectWorksStudent", params)
  14985. .then((res) => {
  14986. var a = res.data[0];
  14987. for (var i = 0; i < this.isWorksS.length; i++) {
  14988. this.noWorksS[i] = [];
  14989. var studentK = [];
  14990. if (this.isWorksS[i].length > 0) {
  14991. for (var z = 0; z < this.isWorksS[i].length; z++) {
  14992. studentK.push(this.isWorksS[i][z].uid);
  14993. }
  14994. studentK = studentK.join(",");
  14995. for (var j = 0; j < a.length; j++) {
  14996. if (studentK.indexOf(a[j].userid) == -1) {
  14997. if (this.tcid) {
  14998. // a[j].classid.indexOf(this.tcid) != -1
  14999. if (
  15000. this.arrayToArray(
  15001. a[j].classid.split(","),
  15002. this.tcid.split(",")
  15003. ).length
  15004. ) {
  15005. this.noWorksS[i].push({
  15006. student: a[j].name,
  15007. userid: a[j].userid,
  15008. });
  15009. }
  15010. } else {
  15011. this.noWorksS[i].push({
  15012. student: a[j].name,
  15013. userid: a[j].userid,
  15014. });
  15015. }
  15016. }
  15017. }
  15018. } else {
  15019. for (var k = 0; k < a.length; k++) {
  15020. if (this.tcid) {
  15021. if (
  15022. this.arrayToArray(
  15023. a[k].classid.split(","),
  15024. this.tcid.split(",")
  15025. ).length
  15026. ) {
  15027. this.noWorksS[i].push({
  15028. student: a[k].name,
  15029. userid: a[k].userid,
  15030. });
  15031. }
  15032. } else {
  15033. this.noWorksS[i].push({
  15034. student: a[k].name,
  15035. userid: a[k].userid,
  15036. });
  15037. }
  15038. }
  15039. }
  15040. }
  15041. this.$forceUpdate();
  15042. if (
  15043. Object.keys(this.commentDetail).length &&
  15044. Object.keys(this.commentIndexJson).length &&
  15045. !this.dialogVisibleScore && !this.dialogVisibleENScore
  15046. ) {
  15047. let a = 1;
  15048. let c = this.commentIndexJson;
  15049. if (
  15050. this.commentIndexJson.gindex ||
  15051. this.commentIndexJson.gindex === 0
  15052. ) {
  15053. for (
  15054. var i = 0;
  15055. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  15056. i++
  15057. ) {
  15058. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  15059. groupA: for (var k = 0; k < _el.length; k++) {
  15060. let el = _el[k];
  15061. if (el.wid == this.commentDetail.wid) {
  15062. a = 2;
  15063. this.commentOther(
  15064. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  15065. this.commentIndexJson.toolIndex,
  15066. k,
  15067. this.commentIndexJson.gindex
  15068. );
  15069. break groupA;
  15070. }
  15071. }
  15072. }
  15073. if (a === 1) {
  15074. this.commentDetail = [];
  15075. this.commentIndexJson = {};
  15076. this.commentDialogVisible = false;
  15077. this.$message("此作业已被删除");
  15078. }
  15079. } else {
  15080. if (this.isGroup && this.commentIndexJson.gid) {
  15081. groupA: for (
  15082. var i = 0;
  15083. i < this.courseGroup.group.length;
  15084. i++
  15085. ) {
  15086. let _group = this.courseGroup.group[i];
  15087. if (_group.id == this.commentIndexJson.gid) {
  15088. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  15089. for (var k = 0; k < _el2.length; k++) {
  15090. let el2 = _el2[k];
  15091. if (el2.wid == this.commentDetail.wid) {
  15092. a = 2;
  15093. this.commentOther(
  15094. _el2[k],
  15095. this.commentIndexJson.toolIndex,
  15096. k,
  15097. null,
  15098. this.commentIndexJson.gid
  15099. );
  15100. break groupA;
  15101. }
  15102. }
  15103. }
  15104. }
  15105. }
  15106. if (a == 1) {
  15107. for (
  15108. var i = 0;
  15109. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  15110. i++
  15111. ) {
  15112. let el =
  15113. this.worksStudent[this.commentIndexJson.toolIndex][i];
  15114. if (el.wid == this.commentDetail.wid) {
  15115. a = 2;
  15116. this.commentOther(
  15117. this.worksStudent[this.commentIndexJson.toolIndex][i],
  15118. this.commentIndexJson.toolIndex,
  15119. i
  15120. );
  15121. break;
  15122. }
  15123. }
  15124. }
  15125. if (a === 1) {
  15126. this.commentDetail = [];
  15127. this.commentIndexJson = {};
  15128. this.commentDialogVisible = false;
  15129. this.$message("此作业已被删除");
  15130. }
  15131. }
  15132. }
  15133. })
  15134. .catch((err) => {
  15135. console.error(err);
  15136. });
  15137. },
  15138. selectStudent() {
  15139. //学生查看自己作业
  15140. let params = {
  15141. uid: this.userid,
  15142. cid: this.id,
  15143. s: this.courseType,
  15144. t: this.taskCount,
  15145. };
  15146. this.ajax
  15147. .get(this.$store.state.api + "selectStudentWorks", params)
  15148. .then((res) => {
  15149. var a =
  15150. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15151. this.taskCount
  15152. ].toolChoose;
  15153. var b = res.data[0];
  15154. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15155. var y = [
  15156. "AVI",
  15157. "NAVI",
  15158. "MPEG",
  15159. "ASF",
  15160. "MOV",
  15161. "WMV",
  15162. "3GP",
  15163. "RM",
  15164. "RMVB",
  15165. "FLV",
  15166. "F4V",
  15167. "H.264",
  15168. "H.265",
  15169. "REAL VIDEO",
  15170. "MKV",
  15171. "WebM",
  15172. "HDDVD",
  15173. "MP4",
  15174. "MPG",
  15175. "M4V",
  15176. "MGV",
  15177. "OGV",
  15178. "QTM",
  15179. "STR",
  15180. "AMC",
  15181. "DVX",
  15182. "EVO",
  15183. "DAT",
  15184. "OGG",
  15185. "OGM",
  15186. ];
  15187. for (var i = 0; i < a.length; i++) {
  15188. this.workStudent[i] = [];
  15189. for (var j = 0; j < b.length; j++) {
  15190. if (i == b[j].tool) {
  15191. if (
  15192. (b[j].type == 1 ||
  15193. b[j].type == 4 ||
  15194. b[j].type == 5 ||
  15195. b[j].type == 6 ||
  15196. b[j].type == 12 ||
  15197. b[j].type == 7) &&
  15198. a[i].tool[0] != 15 &&
  15199. a[i].tool[0] != 4 &&
  15200. a[i].tool[0] != 45 &&
  15201. a[i].tool[0] != 50 &&
  15202. a[i].tool[0] != 32 &&
  15203. a[i].tool[0] != 57 &&
  15204. a[i].tool[0] != 52 &&
  15205. a[i].tool[0] != 69
  15206. ) {
  15207. if (
  15208. c.indexOf(
  15209. b[j].content
  15210. .split(".")
  15211. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15212. ) != -1 &&
  15213. a[i].tool[0] == 16 &&
  15214. b[j].atool != 50
  15215. ) {
  15216. this.workStudent[i].push({
  15217. works: b[j].content,
  15218. sName: b[j].name,
  15219. score: b[j].score,
  15220. img: b[j].img,
  15221. type: 1,
  15222. time: b[j].time,
  15223. userid: b[j].userid,
  15224. wid: b[j].id,
  15225. });
  15226. } else if (
  15227. y.indexOf(
  15228. b[j].content
  15229. .split(".")
  15230. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15231. ) != -1 &&
  15232. a[i].tool[0] == 16 &&
  15233. b[j].atool != 50
  15234. ) {
  15235. this.workStudent[i].push({
  15236. userid: b[j].userid,
  15237. wid: b[j].id,
  15238. works: b[j].content,
  15239. sName: b[j].name,
  15240. score: b[j].score,
  15241. img: b[j].img,
  15242. type: 3,
  15243. time: b[j].time,
  15244. });
  15245. } else if (b[j].type == 6 && b[j].atool != 50) {
  15246. this.workStudent[i].push({
  15247. userid: b[j].userid,
  15248. wid: b[j].id,
  15249. works: b[j].content,
  15250. sName: b[j].name,
  15251. score: b[j].score,
  15252. img: b[j].img,
  15253. type: 4,
  15254. time: b[j].time,
  15255. });
  15256. } else if (b[j].type == 7 && b[j].atool != 50) {
  15257. this.workStudent[i].push({
  15258. userid: b[j].userid,
  15259. wid: b[j].id,
  15260. works: b[j].content,
  15261. sName: b[j].name,
  15262. score: b[j].score,
  15263. img: b[j].img,
  15264. type: 5,
  15265. time: b[j].time,
  15266. });
  15267. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15268. this.workStudent[i].push({
  15269. works: b[j].content,
  15270. sName: b[j].name,
  15271. score: b[j].score,
  15272. img: b[j].img,
  15273. type: 12,
  15274. time: b[j].time,
  15275. userid: b[j].userid,
  15276. wid: b[j].id,
  15277. });
  15278. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15279. this.workStudent[i].push({
  15280. works: b[j].content,
  15281. sName: b[j].name,
  15282. score: b[j].score,
  15283. img: b[j].img,
  15284. type: 0,
  15285. time: b[j].time,
  15286. userid: b[j].userid,
  15287. wid: b[j].id,
  15288. });
  15289. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15290. this.workStudent[i].push({
  15291. works: b[j].content,
  15292. sName: b[j].name,
  15293. score: b[j].score,
  15294. img: b[j].img,
  15295. type: 0,
  15296. time: b[j].time,
  15297. userid: b[j].userid,
  15298. wid: b[j].id,
  15299. });
  15300. }
  15301. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15302. this.workStudent[i].push({
  15303. works: b[j].content,
  15304. sName: b[j].name,
  15305. score: b[j].score,
  15306. img: b[j].img,
  15307. type: 2,
  15308. time: b[j].time,
  15309. userid: b[j].userid,
  15310. wid: b[j].id,
  15311. });
  15312. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15313. //问卷
  15314. this.workStudent[i].push({
  15315. works: b[j].content,
  15316. sName: b[j].name,
  15317. score: b[j].score,
  15318. img: b[j].img,
  15319. type: 2,
  15320. time: b[j].time,
  15321. userid: b[j].userid,
  15322. wid: b[j].id,
  15323. });
  15324. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15325. //选择题
  15326. this.workStudent[i].push({
  15327. works: b[j].content,
  15328. sName: b[j].name,
  15329. score: b[j].score,
  15330. img: b[j].img,
  15331. type: 8,
  15332. time: b[j].time,
  15333. userid: b[j].userid,
  15334. wid: b[j].id,
  15335. });
  15336. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15337. //选择题
  15338. this.workStudent[i].push({
  15339. works: b[j].content,
  15340. sName: b[j].name,
  15341. score: b[j].score,
  15342. img: b[j].img,
  15343. type: 9,
  15344. time: b[j].time,
  15345. userid: b[j].userid,
  15346. wid: b[j].id,
  15347. });
  15348. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15349. //选择题
  15350. this.workStudent[i].push({
  15351. works: b[j].content,
  15352. sName: b[j].name,
  15353. score: b[j].score,
  15354. img: b[j].img,
  15355. type: 10,
  15356. time: b[j].time,
  15357. userid: b[j].userid,
  15358. wid: b[j].id,
  15359. });
  15360. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15361. //选择题
  15362. this.workStudent[i].push({
  15363. works: b[j].content,
  15364. sName: b[j].name,
  15365. score: b[j].score,
  15366. img: b[j].img,
  15367. type: 13,
  15368. time: b[j].time,
  15369. userid: b[j].userid,
  15370. wid: b[j].id,
  15371. });
  15372. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  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: 12,
  15380. time: b[j].time,
  15381. userid: b[j].userid,
  15382. wid: b[j].id,
  15383. });
  15384. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  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: 12,
  15392. time: b[j].time,
  15393. userid: b[j].userid,
  15394. wid: b[j].id,
  15395. });
  15396. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  15397. //选择题
  15398. this.workStudent[i].push({
  15399. works: b[j].content,
  15400. sName: b[j].name,
  15401. score: b[j].score,
  15402. img: b[j].img,
  15403. type: 15,
  15404. time: b[j].time,
  15405. userid: b[j].userid,
  15406. wid: b[j].id,
  15407. });
  15408. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15409. //英语写作
  15410. this.workStudent[i].push({
  15411. works: b[j].content,
  15412. sName: b[j].name,
  15413. score: b[j].score,
  15414. img: b[j].img,
  15415. type: 16,
  15416. time: b[j].time,
  15417. userid: b[j].userid,
  15418. wid: b[j].id,
  15419. aiCode: b[j].aiCode,
  15420. teacherCode: b[j].teacherCode
  15421. });
  15422. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15423. //英语写作
  15424. this.workStudent[i].push({
  15425. works: b[j].content,
  15426. sName: b[j].name,
  15427. score: b[j].score,
  15428. img: b[j].img,
  15429. type: 17,
  15430. time: b[j].time,
  15431. userid: b[j].userid,
  15432. wid: b[j].id,
  15433. });
  15434. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15435. //英语口语
  15436. this.workStudent[i].push({
  15437. works: b[j].content,
  15438. sName: b[j].name,
  15439. score: b[j].score,
  15440. img: b[j].img,
  15441. type: 14,
  15442. time: b[j].time,
  15443. userid: b[j].userid,
  15444. wid: b[j].id,
  15445. });
  15446. }
  15447. }
  15448. }
  15449. }
  15450. })
  15451. .catch((err) => {
  15452. console.error(err);
  15453. });
  15454. },
  15455. openVideo(w) {
  15456. this.videoDetail = {};
  15457. this.playerOptions1.sources[0].src = w.works;
  15458. this.videoDetail = this.playerOptions1;
  15459. this.videoVisible = true;
  15460. },
  15461. isLikes(wid, uid, t, c, isLikes,sName) {
  15462. if (isLikes == false) {
  15463. let params = [
  15464. {
  15465. wid: wid,
  15466. lid: uid,
  15467. t: t,
  15468. c: c,
  15469. },
  15470. ];
  15471. this.ajax
  15472. .post(this.$store.state.api + "insertComment", params)
  15473. .then((res) => {
  15474. this.$message({
  15475. message: "点赞成功",
  15476. type: "success",
  15477. });
  15478. this.selectSWorks();
  15479. this.selectStudent();
  15480. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  15481. })
  15482. .catch((err) => {
  15483. this.$message.error("点赞失败");
  15484. console.error(err);
  15485. });
  15486. } else {
  15487. let params = {
  15488. wid: wid,
  15489. lid: uid,
  15490. type: t,
  15491. };
  15492. this.ajax
  15493. .get(this.$store.state.api + "deleteComment", params)
  15494. .then((res) => {
  15495. this.$message({
  15496. message: "取消点赞成功",
  15497. type: "success",
  15498. });
  15499. this.selectSWorks();
  15500. this.selectStudent();
  15501. })
  15502. .catch((err) => {
  15503. console.error(err);
  15504. });
  15505. }
  15506. },
  15507. deleteComment(wid) {
  15508. this.$confirm("确定删除此评论吗?", "提示", {
  15509. confirmButtonText: "确定",
  15510. cancelButtonText: "取消",
  15511. type: "warning",
  15512. })
  15513. .then(() => {
  15514. let params = {
  15515. id: wid,
  15516. };
  15517. this.ajax
  15518. .get(this.$store.state.api + "deleteComment2", params)
  15519. .then((res) => {
  15520. this.$message({
  15521. message: "删除评论成功",
  15522. type: "success",
  15523. });
  15524. this.selectSWorks();
  15525. this.selectStudent();
  15526. })
  15527. .catch((err) => {
  15528. console.error(err);
  15529. });
  15530. })
  15531. .catch(() => {});
  15532. },
  15533. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  15534. this.commentIndexJson = {
  15535. toolIndex: toolIndex,
  15536. wIndex: wIndex,
  15537. gindex: gindex,
  15538. gid: gid,
  15539. };
  15540. this.commentDetail = [];
  15541. this.commentDialogVisible = true;
  15542. this.commentDetail = w;
  15543. if (w.works && w.type == 1) {
  15544. // this.pptImgUrl = "";
  15545. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15546. if (
  15547. a.indexOf(
  15548. w.works
  15549. .split(".")
  15550. [w.works.split(".").length - 1].toLocaleUpperCase()
  15551. ) != -1
  15552. ) {
  15553. let _uuurl = await this.checkLink(w.works);
  15554. this.pptImgUrl =
  15555. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  15556. this.showPDF = false;
  15557. } else if (
  15558. w.works
  15559. .split(".")
  15560. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15561. ) {
  15562. this.pptImgUrl = w.works;
  15563. this.showPDF = true;
  15564. }
  15565. } else if (w.works && w.type == 3) {
  15566. this.videoDetail = {};
  15567. this.playerOptions1.sources[0].src = w.works;
  15568. this.videoDetail = this.playerOptions1;
  15569. // this.videoVisible = true;
  15570. } else if (w.works && w.type == 4) {
  15571. this.eScore = JSON.parse(w.works);
  15572. this.rateJson =
  15573. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15574. this.taskCount
  15575. ].toolChoose[toolIndex].rateJson;
  15576. } else if (w.works && w.type == 10) {
  15577. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  15578. } else if (w.works && w.type == 13) {
  15579. this.wordJson =
  15580. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15581. this.taskCount
  15582. ].toolChoose[toolIndex].wordJson;
  15583. }
  15584. },
  15585. async openScore(w, index) {
  15586. this.wScore = 0;
  15587. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  15588. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  15589. this.commentDetail = [];
  15590. if(w.type == 17){
  15591. this.dialogVisibleENScore = true;
  15592. }else{
  15593. this.dialogVisibleScore = true;
  15594. }
  15595. this.commentDetail = w;
  15596. if (w.works && w.type == 1) {
  15597. this.pptImgUrl = "";
  15598. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15599. if (
  15600. a.indexOf(
  15601. w.works
  15602. .split(".")
  15603. [w.works.split(".").length - 1].toLocaleUpperCase()
  15604. ) != -1
  15605. ) {
  15606. let _uuurl = await this.checkLink(w.works);
  15607. this.pptImgUrl =
  15608. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  15609. this.showPDF = false;
  15610. } else if (
  15611. w.works
  15612. .split(".")
  15613. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15614. ) {
  15615. this.pptImgUrl = w.works;
  15616. this.showPDF = true;
  15617. }
  15618. } else if (w.works && w.type == 3) {
  15619. this.videoDetail = {};
  15620. this.playerOptions1.sources[0].src = w.works;
  15621. this.videoDetail = this.playerOptions1;
  15622. }else if(w.type == 17){
  15623. let englishVoiceJson = {}
  15624. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15625. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  15626. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15627. .toolChoose[index].englishVoiceJson
  15628. : {};
  15629. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  15630. }
  15631. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15632. },
  15633. addComment(wid, uid, t,detail) {
  15634. if (this.commentText == "") {
  15635. this.$message.error("请输入评论");
  15636. return;
  15637. }
  15638. let params2 = [
  15639. {
  15640. wid: wid,
  15641. lid: uid,
  15642. t: t,
  15643. },
  15644. ];
  15645. this.ajax
  15646. .post(this.$store.state.api + "getComment", params2)
  15647. .then((res) => {
  15648. if (res.data[0].length > 0) {
  15649. this.$message.error("一个作业只能评论一条");
  15650. } else {
  15651. let params = [
  15652. {
  15653. wid: wid,
  15654. lid: uid,
  15655. t: t,
  15656. c: this.commentText,
  15657. },
  15658. ];
  15659. this.ajax
  15660. .post(this.$store.state.api + "insertComment", params)
  15661. .then((res) => {
  15662. this.$message({
  15663. message: "评论成功",
  15664. type: "success",
  15665. });
  15666. this.commentText = "";
  15667. this.selectSWorks();
  15668. this.selectStudent();
  15669. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  15670. })
  15671. .catch((err) => {
  15672. this.$message.error("评论失败");
  15673. console.error(err);
  15674. });
  15675. }
  15676. })
  15677. .catch((err) => {
  15678. // this.$message.error("评论失败");
  15679. console.error(err);
  15680. });
  15681. },
  15682. scoreWork(wid,sName) {
  15683. if (this.wScore == 0) {
  15684. this.$message.error("请评分");
  15685. return;
  15686. }
  15687. let params = [
  15688. {
  15689. wid: wid,
  15690. score: JSON.stringify({
  15691. wScore: this.wScore,
  15692. detail: this.scoreDetail,
  15693. }),
  15694. },
  15695. ];
  15696. this.ajax
  15697. .post(this.$store.state.api + "scoreWork", params)
  15698. .then((res) => {
  15699. this.$message({
  15700. message: "评分成功",
  15701. type: "success",
  15702. });
  15703. this.wScore = 0;
  15704. this.scoreDetail = "";
  15705. this.dialogVisibleScore = false;
  15706. this.selectSWorks();
  15707. this.selectStudent();
  15708. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  15709. })
  15710. .catch((err) => {
  15711. this.$message.error("评分失败");
  15712. console.error(err);
  15713. });
  15714. },
  15715. openXz(w, i) {
  15716. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15717. .taskJson[this.taskCount].toolChoose[i].selectJson
  15718. ? JSON.parse(
  15719. JSON.stringify(
  15720. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15721. this.taskCount
  15722. ].toolChoose[i].selectJson
  15723. )
  15724. )
  15725. : { url: "", select: [], answer: [] };
  15726. var a = w.works.split(",");
  15727. for (var k = 0; k < a.length; k++) {
  15728. a[k] = parseInt(a[k]);
  15729. }
  15730. this.selectAnswer = { answer: a, stu: w.sName };
  15731. this.isSelect = true;
  15732. this.dialogVisibleSelect = true;
  15733. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15734. },
  15735. openSen(w, i) {
  15736. this.sentenceList1 = JSON.parse(w.works);
  15737. this.sentenceList1.stuName = w.sName;
  15738. this.dialogVisibleSentence1 = true;
  15739. },
  15740. openPj(w, toolindex) {
  15741. this.isStar = true;
  15742. this.eScore = JSON.parse(w);
  15743. this.rateJson =
  15744. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15745. this.taskCount
  15746. ].toolChoose[toolindex].rateJson;
  15747. this.studentEvalDialogVisible = true;
  15748. },
  15749. openEnglishEva(id,i){
  15750. let params = {
  15751. wid: id
  15752. };
  15753. this.ajax
  15754. .get(this.$store.state.api + "selectEngWork", params)
  15755. .then((res) => {
  15756. this.evaEngJson.message = res.data[0][0];
  15757. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  15758. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15759. .toolChoose[i].englishList;
  15760. this.engEvaDialogVisible = true;
  15761. })
  15762. .catch((err) => {
  15763. console.error(err);
  15764. });
  15765. },
  15766. deleteWorks(id) {
  15767. this.$confirm("确定删除此作业吗?", "提示", {
  15768. confirmButtonText: "确定",
  15769. cancelButtonText: "取消",
  15770. type: "warning",
  15771. })
  15772. .then(() => {
  15773. let params = [
  15774. {
  15775. id: id
  15776. },
  15777. ];
  15778. this.ajax
  15779. .post(this.$store.state.api + "deleteCourseWork", params)
  15780. .then((res) => {
  15781. this.$message({
  15782. message: "删除成功",
  15783. type: "success",
  15784. });
  15785. this.selectStudent();
  15786. this.selectSWorks();
  15787. this.selectSLook();
  15788. })
  15789. .catch((err) => {
  15790. this.$message.error("网络异常");
  15791. console.error(err);
  15792. });
  15793. })
  15794. .catch(() => {});
  15795. },
  15796. // deleteWorksTwo(w,stage,task) {
  15797. // // let mk = `markSco${toolIndex}${wIndex}`
  15798. // // console.log(this.$refs[mk][0].homeworkVal)
  15799. // // let wid = this.$refs[mk][0].homeworkVal.id
  15800. // // console.log('wid',wid);
  15801. // this.$confirm("确定删除此作业吗?", "提示", {
  15802. // confirmButtonText: "确定",
  15803. // cancelButtonText: "取消",
  15804. // type: "warning",
  15805. // })
  15806. // .then(() => {
  15807. // let params = [
  15808. // {
  15809. // id: w.wid,
  15810. // cid: this.id,
  15811. // uid:w.userid,
  15812. // s:stage,
  15813. // t:task
  15814. // },
  15815. // ];
  15816. // // return console.log(params)
  15817. // this.ajax
  15818. // .post(this.$store.state.api + "deleteCourseWorkTwo2", params)
  15819. // .then((res) => {
  15820. // this.$message({
  15821. // message: "删除成功",
  15822. // type: "success",
  15823. // });
  15824. // this.selectStudent();
  15825. // this.selectSWorks();
  15826. // this.selectSLook();
  15827. // })
  15828. // .catch((err) => {
  15829. // this.$message.error("网络异常");
  15830. // console.error(err);
  15831. // });
  15832. // })
  15833. // .catch(() => {});
  15834. // },
  15835. noIsAi(){
  15836. this.$message.info('您暂未设置AI评分,请修改该工具的评价设置后使用。')
  15837. },
  15838. selectSWorks(gindex) {
  15839. //教师查看全部作业
  15840. let params = {
  15841. cid: this.id,
  15842. s: this.courseType,
  15843. t: this.taskCount,
  15844. };
  15845. this.ajax
  15846. .get(this.$store.state.api + "selectSWorks", params)
  15847. .then((res) => {
  15848. var a =
  15849. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15850. this.taskCount
  15851. ].toolChoose;
  15852. var b = res.data[0];
  15853. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15854. var y = [
  15855. "AVI",
  15856. "NAVI",
  15857. "MPEG",
  15858. "ASF",
  15859. "MOV",
  15860. "WMV",
  15861. "3GP",
  15862. "RM",
  15863. "RMVB",
  15864. "FLV",
  15865. "F4V",
  15866. "H.264",
  15867. "H.265",
  15868. "REAL VIDEO",
  15869. "MKV",
  15870. "WebM",
  15871. "HDDVD",
  15872. "MP4",
  15873. "MPG",
  15874. "M4V",
  15875. "MGV",
  15876. "OGV",
  15877. "QTM",
  15878. "STR",
  15879. "AMC",
  15880. "DVX",
  15881. "EVO",
  15882. "DAT",
  15883. "OGG",
  15884. "OGM",
  15885. ];
  15886. var d = res.data[1];
  15887. var e = res.data[2];
  15888. var f = res.data[3];
  15889. let _worksStudent = [];
  15890. var _worksStudent2 = [];
  15891. for (var i = 0; i < a.length; i++) {
  15892. _worksStudent[i] = [];
  15893. _worksStudent2[i] = [];
  15894. if (
  15895. !this.isCloseList[i] ||
  15896. this.isCloseList[i].isClose == undefined
  15897. ) {
  15898. this.isCloseList[i] = { isClose: 0 };
  15899. }
  15900. this.groupStudent[i] = [];
  15901. this.groupStudentUid[i] = [];
  15902. if (this.isGroup) {
  15903. for (
  15904. var groupI = 0;
  15905. groupI < this.courseGroup.group.length;
  15906. groupI++
  15907. ) {
  15908. this.courseGroup.group[groupI].works[i] = [];
  15909. }
  15910. }
  15911. this.isWorksS[i] = [];
  15912. this.checkJson[i] = [];
  15913. if (a[i].tool[0] == 49) {
  15914. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  15915. this.groupStudent[i][gA] = [];
  15916. this.groupStudentUid[i][gA] = [];
  15917. _worksStudent[i][gA] = [];
  15918. _worksStudent2[i][gA] = [];
  15919. this.isCloseList[i][gA] = [];
  15920. for (var g = 0; g < f.length; g++) {
  15921. if (
  15922. f[g].ttype == 2 &&
  15923. this.tcid &&
  15924. this.arrayToArray(
  15925. (f[g].classid ? f[g].classid.split(",") : []),
  15926. this.tcid.split(",")
  15927. ).length == 0
  15928. ) {
  15929. continue;
  15930. }
  15931. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  15932. (f[g].classid ? f[g].classid.split(",") : []),
  15933. this.tcid.split(",")
  15934. ).length !== 0 || this.arrayToArray(
  15935. (f[g].classid ? f[g].classid.split(",") : []),
  15936. this.classId ? this.classId.split(",") : []
  15937. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  15938. this.groupStudent[i][gA].push(f[g]);
  15939. this.groupStudentUid[i][gA].push(f[g].userid);
  15940. }
  15941. }
  15942. }
  15943. this.$forceUpdate();
  15944. }
  15945. for (var j = 0; j < b.length; j++) {
  15946. if (
  15947. b[j].ttype == 2 &&
  15948. this.tcid &&
  15949. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  15950. .length == 0
  15951. ) {
  15952. continue;
  15953. }
  15954. var likesCount = 0;
  15955. var commentCount = 0;
  15956. var isLikes = false;
  15957. var commentJson = [];
  15958. var likeJson = [];
  15959. var data = b[j];
  15960. if (i == b[j].tool) {
  15961. if (data.type == 2 && a[i].tool[0] == 4) {
  15962. // if(JSON.parse(data.content)[0].anwer){
  15963. var checkL =
  15964. JSON.parse(data.content)[0].anwer instanceof Array
  15965. ? JSON.parse(data.content)[0].anwer
  15966. : JSON.parse(data.content)[0].anwer.split(",");
  15967. for (var z = 0; z < checkL.length; z++) {
  15968. if (!this.checkJson[i][z]) {
  15969. this.checkJson[i].push({
  15970. checkCount: [],
  15971. checkPerson: [],
  15972. rightPerson: [],
  15973. });
  15974. }
  15975. if (!this.checkJson[i][z].checkCount.length) {
  15976. this.checkJson[i][z].checkCount = [];
  15977. let _askItemCount = JSON.parse(data.content)[0].askJson
  15978. .askJson[z].askItem;
  15979. for (var aic = 0; aic < _askItemCount; aic++) {
  15980. this.checkJson[i][z].checkCount.push(0);
  15981. }
  15982. }
  15983. if (checkL[z] instanceof Array) {
  15984. if (
  15985. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  15986. checkL[z].sort().join(",")
  15987. ) {
  15988. this.checkJson[i][z].rightPerson.push(data.name);
  15989. }
  15990. for (var q = 0; q < checkL[z].length; q++) {
  15991. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  15992. ? this.checkJson[i][z].checkPerson[
  15993. parseInt(checkL[z][q])
  15994. ].push(data.name)
  15995. : (this.checkJson[i][z].checkPerson[
  15996. parseInt(checkL[z][q])
  15997. ] = [data.name]);
  15998. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  15999. ? this.checkJson[i][z].checkCount[
  16000. parseInt(checkL[z][q])
  16001. ]++
  16002. : (this.checkJson[i][z].checkCount[
  16003. parseInt(checkL[z][q])
  16004. ] = 1);
  16005. }
  16006. } else {
  16007. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  16008. this.checkJson[i][z].rightPerson.push(data.name);
  16009. }
  16010. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  16011. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  16012. ? this.checkJson[i][z].checkPerson[
  16013. parseInt(checkL[z])
  16014. ].push(data.name)
  16015. : (this.checkJson[i][z].checkPerson[
  16016. parseInt(checkL[z])
  16017. ] = [data.name]);
  16018. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  16019. ? this.checkJson[i][z].checkCount[
  16020. parseInt(checkL[z])
  16021. ]++
  16022. : (this.checkJson[i][z].checkCount[
  16023. parseInt(checkL[z])
  16024. ] = 1);
  16025. }
  16026. }
  16027. }
  16028. } else if (data.type == 8 && a[i].tool[0] == 45) {
  16029. var checkL = JSON.parse(data.content)[0].anwer;
  16030. for (var z = 0; z < checkL.length; z++) {
  16031. if (!this.checkJson[i][z]) {
  16032. this.checkJson[i].push({
  16033. checkCount: [],
  16034. checkPerson: [],
  16035. rightPerson: [],
  16036. });
  16037. }
  16038. if (!this.checkJson[i][z].checkCount.length) {
  16039. this.checkJson[i][z].checkCount = [];
  16040. let _askItemCount = JSON.parse(data.content)[0].testJson
  16041. .testJson[z].testItem;
  16042. for (var aic = 0; aic < _askItemCount; aic++) {
  16043. this.checkJson[i][z].checkCount.push(0);
  16044. }
  16045. }
  16046. if (checkL[z] instanceof Array) {
  16047. if (
  16048. JSON.parse(data.content)[0]
  16049. .testJson.testJson[z].answer.sort()
  16050. .join(",") == checkL[z].sort().join(",")
  16051. ) {
  16052. this.checkJson[i][z].rightPerson.push(data.name);
  16053. }
  16054. for (var q = 0; q < checkL[z].length; q++) {
  16055. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  16056. ? this.checkJson[i][z].checkPerson[
  16057. parseInt(checkL[z][q])
  16058. ].push(data.name)
  16059. : (this.checkJson[i][z].checkPerson[
  16060. parseInt(checkL[z][q])
  16061. ] = [data.name]);
  16062. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  16063. ? this.checkJson[i][z].checkCount[
  16064. parseInt(checkL[z][q])
  16065. ]++
  16066. : (this.checkJson[i][z].checkCount[
  16067. parseInt(checkL[z][q])
  16068. ] = 1);
  16069. }
  16070. } else {
  16071. if (
  16072. JSON.parse(data.content)[0].testJson.testJson[z]
  16073. .answer == checkL[z]
  16074. ) {
  16075. this.checkJson[i][z].rightPerson.push(data.name);
  16076. }
  16077. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  16078. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  16079. ? this.checkJson[i][z].checkPerson[
  16080. parseInt(checkL[z])
  16081. ].push(data.name)
  16082. : (this.checkJson[i][z].checkPerson[
  16083. parseInt(checkL[z])
  16084. ] = [data.name]);
  16085. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  16086. ? this.checkJson[i][z].checkCount[
  16087. parseInt(checkL[z])
  16088. ]++
  16089. : (this.checkJson[i][z].checkCount[
  16090. parseInt(checkL[z])
  16091. ] = 1);
  16092. }
  16093. }
  16094. }
  16095. } else if (data.type == 9 && a[i].tool[0] == 47) {
  16096. var checkL = JSON.parse(data.content);
  16097. for (var z = 0; z < checkL.length; z++) {
  16098. if (!this.checkJson[i][z]) {
  16099. this.checkJson[i].push({
  16100. checkCount: [],
  16101. checkPerson: [],
  16102. rightPerson: [],
  16103. });
  16104. }
  16105. this.checkJson[i][z].checkPerson.push(data.name);
  16106. if (
  16107. checkL[z].chooseSenList.toString() ==
  16108. checkL[z].rightAnswer.toString()
  16109. ) {
  16110. this.checkJson[i][z].rightPerson.push(data.name);
  16111. }
  16112. }
  16113. }
  16114. for (var k = 0; k < d.length; k++) {
  16115. //点赞
  16116. if (d[k].workId == b[j].id) {
  16117. likesCount++;
  16118. likeJson.push(d[k])
  16119. if (d[k].likesId == this.userid) {
  16120. isLikes = true;
  16121. }
  16122. }
  16123. }
  16124. for (var l = 0; l < e.length; l++) {
  16125. //评论
  16126. if (e[l].workId == b[j].id) {
  16127. if (e[l].comment != "") {
  16128. commentCount++;
  16129. commentJson.push({
  16130. commentText: e[l].comment,
  16131. commentTime: e[l].commentTime,
  16132. commentPeople: e[l].commentPeople,
  16133. userid: e[l].userid,
  16134. wid: e[l].id,
  16135. });
  16136. }
  16137. }
  16138. }
  16139. if (
  16140. (b[j].type == 1 ||
  16141. b[j].type == 4 ||
  16142. b[j].type == 5 ||
  16143. b[j].type == 6 ||
  16144. b[j].type == 12 ||
  16145. b[j].type == 7) &&
  16146. a[i].tool[0] != 15 &&
  16147. a[i].tool[0] != 4 &&
  16148. a[i].tool[0] != 45 &&
  16149. a[i].tool[0] != 50 &&
  16150. a[i].tool[0] != 32 &&
  16151. a[i].tool[0] != 57 &&
  16152. a[i].tool[0] != 52
  16153. ) {
  16154. if (
  16155. c.indexOf(
  16156. b[j].content
  16157. .split(".")
  16158. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  16159. ) != -1 &&
  16160. a[i].tool[0] == 16 &&
  16161. b[j].atool != 50
  16162. ) {
  16163. let _works = {
  16164. userid: b[j].userid,
  16165. ateacher: b[j].ateacher,
  16166. wid: b[j].id,
  16167. works: b[j].content,
  16168. sName: b[j].name,
  16169. type: 1,
  16170. ttype:b[j].ttype,
  16171. time: b[j].time,
  16172. score: b[j].score,
  16173. img: b[j].img,
  16174. likesCount: likesCount,
  16175. commentCount: commentCount,
  16176. isLikes: isLikes,
  16177. commentJson: commentJson,
  16178. likeJson:likeJson
  16179. };
  16180. if (this.isGroup) {
  16181. let isGw = 1;
  16182. for (
  16183. var groupI = 0;
  16184. groupI < this.courseGroup.group.length;
  16185. groupI++
  16186. ) {
  16187. let gid = this.courseGroup.group[groupI].id;
  16188. if (
  16189. this.courseGroupStudentUid[gid].indexOf(
  16190. b[j].userid
  16191. ) != -1
  16192. ) {
  16193. isGw = 2;
  16194. this.courseGroup.group[groupI].works[i].push(_works);
  16195. break;
  16196. }
  16197. }
  16198. if (isGw == 1) {
  16199. _worksStudent[i].push(_works);
  16200. }
  16201. } else {
  16202. _worksStudent[i].push(_works);
  16203. }
  16204. _worksStudent2[i].push(_works);
  16205. this.isWorksS[i].push({
  16206. uid: b[j].userid,
  16207. sName: b[j].name,
  16208. });
  16209. } else if (
  16210. y.indexOf(
  16211. b[j].content
  16212. .split(".")
  16213. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  16214. ) != -1 &&
  16215. a[i].tool[0] == 16 &&
  16216. b[j].atool != 50
  16217. ) {
  16218. let _works = {
  16219. userid: b[j].userid,
  16220. ateacher: b[j].ateacher,
  16221. wid: b[j].id,
  16222. works: b[j].content,
  16223. sName: b[j].name,
  16224. type: 3,
  16225. ttype:b[j].ttype,
  16226. time: b[j].time,
  16227. score: b[j].score,
  16228. img: b[j].img,
  16229. likesCount: likesCount,
  16230. commentCount: commentCount,
  16231. isLikes: isLikes,
  16232. commentJson: commentJson,
  16233. likeJson:likeJson
  16234. };
  16235. if (this.isGroup) {
  16236. let isGw = 1;
  16237. for (
  16238. var groupI = 0;
  16239. groupI < this.courseGroup.group.length;
  16240. groupI++
  16241. ) {
  16242. let gid = this.courseGroup.group[groupI].id;
  16243. if (
  16244. this.courseGroupStudentUid[gid].indexOf(
  16245. b[j].userid
  16246. ) != -1
  16247. ) {
  16248. isGw = 2;
  16249. this.courseGroup.group[groupI].works[i].push(_works);
  16250. break;
  16251. }
  16252. }
  16253. if (isGw == 1) {
  16254. _worksStudent[i].push(_works);
  16255. }
  16256. } else {
  16257. _worksStudent[i].push(_works);
  16258. }
  16259. _worksStudent2[i].push(_works);
  16260. this.isWorksS[i].push({
  16261. uid: b[j].userid,
  16262. sName: b[j].name,
  16263. });
  16264. } else if (b[j].type == 6 && b[j].atool != 50) {
  16265. let _works = {
  16266. userid: b[j].userid,
  16267. ateacher: b[j].ateacher,
  16268. wid: b[j].id,
  16269. works: b[j].content,
  16270. sName: b[j].name,
  16271. type: 4,
  16272. ttype:b[j].ttype,
  16273. time: b[j].time,
  16274. score: b[j].score,
  16275. img: b[j].img,
  16276. likesCount: likesCount,
  16277. commentCount: commentCount,
  16278. isLikes: isLikes,
  16279. commentJson: commentJson,
  16280. likeJson:likeJson
  16281. };
  16282. _worksStudent[i].push(_works);
  16283. _worksStudent2[i].push(_works);
  16284. this.isWorksS[i].push({
  16285. uid: b[j].userid,
  16286. sName: b[j].name,
  16287. });
  16288. } else if (b[j].type == 7 && b[j].atool != 50) {
  16289. let _work = {
  16290. userid: b[j].userid,
  16291. ateacher: b[j].ateacher,
  16292. wid: b[j].id,
  16293. works: b[j].content,
  16294. sName: b[j].name,
  16295. type: 5,
  16296. ttype:b[j].ttype,
  16297. time: b[j].time,
  16298. score: b[j].score,
  16299. img: b[j].img,
  16300. likesCount: likesCount,
  16301. commentCount: commentCount,
  16302. isLikes: isLikes,
  16303. commentJson: commentJson,
  16304. likeJson:likeJson
  16305. };
  16306. _worksStudent[i].push(_work);
  16307. _worksStudent2[i].push(_work);
  16308. this.isWorksS[i].push({
  16309. uid: b[j].userid,
  16310. sName: b[j].name,
  16311. });
  16312. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  16313. let _works = {
  16314. userid: b[j].userid,
  16315. ateacher: b[j].ateacher,
  16316. wid: b[j].id,
  16317. works: b[j].content,
  16318. sName: b[j].name,
  16319. type: 12,
  16320. ttype:b[j].ttype,
  16321. time: b[j].time,
  16322. score: b[j].score,
  16323. img: b[j].img,
  16324. likesCount: likesCount,
  16325. commentCount: commentCount,
  16326. isLikes: isLikes,
  16327. commentJson: commentJson,
  16328. likeJson:likeJson
  16329. };
  16330. if (this.isGroup) {
  16331. let isGw = 1;
  16332. for (
  16333. var groupI = 0;
  16334. groupI < this.courseGroup.group.length;
  16335. groupI++
  16336. ) {
  16337. let gid = this.courseGroup.group[groupI].id;
  16338. if (
  16339. this.courseGroupStudentUid[gid].indexOf(
  16340. b[j].userid
  16341. ) != -1
  16342. ) {
  16343. isGw = 2;
  16344. this.courseGroup.group[groupI].works[i].push(_works);
  16345. break;
  16346. }
  16347. }
  16348. if (isGw == 1) {
  16349. _worksStudent[i].push(_works);
  16350. }
  16351. } else {
  16352. _worksStudent[i].push(_works);
  16353. }
  16354. _worksStudent2[i].push(_works);
  16355. this.isWorksS[i].push({
  16356. uid: b[j].userid,
  16357. sName: b[j].name,
  16358. });
  16359. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  16360. let _works = {
  16361. userid: b[j].userid,
  16362. ateacher: b[j].ateacher,
  16363. wid: b[j].id,
  16364. works: b[j].content,
  16365. sName: b[j].name,
  16366. type: 0,
  16367. ttype:b[j].ttype,
  16368. time: b[j].time,
  16369. score: b[j].score,
  16370. img: b[j].img,
  16371. likesCount: likesCount,
  16372. commentCount: commentCount,
  16373. isLikes: isLikes,
  16374. commentJson: commentJson,
  16375. likeJson:likeJson
  16376. };
  16377. if (this.isGroup) {
  16378. let isGw = 1;
  16379. for (
  16380. var groupI = 0;
  16381. groupI < this.courseGroup.group.length;
  16382. groupI++
  16383. ) {
  16384. let gid = this.courseGroup.group[groupI].id;
  16385. if (
  16386. this.courseGroupStudentUid[gid].indexOf(
  16387. b[j].userid
  16388. ) != -1
  16389. ) {
  16390. isGw = 2;
  16391. this.courseGroup.group[groupI].works[i].push(_works);
  16392. break;
  16393. }
  16394. }
  16395. if (isGw == 1) {
  16396. _worksStudent[i].push(_works);
  16397. }
  16398. } else {
  16399. _worksStudent[i].push(_works);
  16400. }
  16401. _worksStudent2[i].push(_works);
  16402. this.isWorksS[i].push({
  16403. uid: b[j].userid,
  16404. sName: b[j].name,
  16405. });
  16406. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  16407. let _works = {
  16408. userid: b[j].userid,
  16409. ateacher: b[j].ateacher,
  16410. wid: b[j].id,
  16411. works: b[j].content,
  16412. sName: b[j].name,
  16413. type: 0,
  16414. ttype:b[j].ttype,
  16415. time: b[j].time,
  16416. score: b[j].score,
  16417. img: b[j].img,
  16418. likesCount: likesCount,
  16419. commentCount: commentCount,
  16420. isLikes: isLikes,
  16421. commentJson: commentJson,
  16422. likeJson:likeJson
  16423. };
  16424. if (this.isGroup) {
  16425. let isGw = 1;
  16426. for (
  16427. var groupI = 0;
  16428. groupI < this.courseGroup.group.length;
  16429. groupI++
  16430. ) {
  16431. let gid = this.courseGroup.group[groupI].id;
  16432. if (
  16433. this.courseGroupStudentUid[gid].indexOf(
  16434. b[j].userid
  16435. ) != -1
  16436. ) {
  16437. isGw = 2;
  16438. this.courseGroup.group[groupI].works[i].push(_works);
  16439. break;
  16440. }
  16441. }
  16442. if (isGw == 1) {
  16443. _worksStudent[i].push(_works);
  16444. }
  16445. } else {
  16446. _worksStudent[i].push(_works);
  16447. }
  16448. _worksStudent2[i].push(_works);
  16449. this.isWorksS[i].push({
  16450. uid: b[j].userid,
  16451. sName: b[j].name,
  16452. });
  16453. }
  16454. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  16455. let _works = {
  16456. userid: b[j].userid,
  16457. ateacher: b[j].ateacher,
  16458. wid: b[j].id,
  16459. works: b[j].content,
  16460. sName: b[j].name,
  16461. type: 2,
  16462. ttype:b[j].ttype,
  16463. time: b[j].time,
  16464. score: b[j].score,
  16465. img: b[j].img,
  16466. likesCount: likesCount,
  16467. commentCount: commentCount,
  16468. isLikes: isLikes,
  16469. commentJson: commentJson,
  16470. likeJson:likeJson
  16471. };
  16472. if (this.isGroup) {
  16473. let isGw = 1;
  16474. for (
  16475. var groupI = 0;
  16476. groupI < this.courseGroup.group.length;
  16477. groupI++
  16478. ) {
  16479. let gid = this.courseGroup.group[groupI].id;
  16480. if (
  16481. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  16482. -1
  16483. ) {
  16484. isGw = 2;
  16485. this.courseGroup.group[groupI].works[i].push(_works);
  16486. break;
  16487. }
  16488. }
  16489. if (isGw == 1) {
  16490. _worksStudent[i].push(_works);
  16491. }
  16492. } else {
  16493. _worksStudent[i].push(_works);
  16494. }
  16495. _worksStudent2[i].push(_works);
  16496. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16497. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  16498. //问卷
  16499. let _work = {
  16500. userid: b[j].userid,
  16501. ateacher: b[j].ateacher,
  16502. wid: b[j].id,
  16503. works: b[j].content,
  16504. sName: b[j].name,
  16505. type: 2,
  16506. ttype:b[j].ttype,
  16507. time: b[j].time,
  16508. score: b[j].score,
  16509. img: b[j].img,
  16510. likesCount: likesCount,
  16511. commentCount: commentCount,
  16512. isLikes: isLikes,
  16513. commentJson: commentJson,
  16514. likeJson:likeJson
  16515. };
  16516. _worksStudent[i].push(_work);
  16517. _worksStudent2[i].push(_work);
  16518. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16519. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  16520. //选择题
  16521. let _work = {
  16522. userid: b[j].userid,
  16523. ateacher: b[j].ateacher,
  16524. wid: b[j].id,
  16525. works: b[j].content,
  16526. sName: b[j].name,
  16527. type: 8,
  16528. ttype:b[j].ttype,
  16529. time: b[j].time,
  16530. score: b[j].score,
  16531. img: b[j].img,
  16532. likesCount: likesCount,
  16533. commentCount: commentCount,
  16534. isLikes: isLikes,
  16535. commentJson: commentJson,
  16536. likeJson:likeJson
  16537. };
  16538. _worksStudent[i].push(_work);
  16539. _worksStudent2[i].push(_work);
  16540. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16541. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  16542. //选择题
  16543. let _work = {
  16544. userid: b[j].userid,
  16545. ateacher: b[j].ateacher,
  16546. wid: b[j].id,
  16547. works: b[j].content,
  16548. sName: b[j].name,
  16549. type: 9,
  16550. ttype:b[j].ttype,
  16551. time: b[j].time,
  16552. score: b[j].score,
  16553. img: b[j].img,
  16554. likesCount: likesCount,
  16555. commentCount: commentCount,
  16556. isLikes: isLikes,
  16557. commentJson: commentJson,
  16558. likeJson:likeJson
  16559. };
  16560. _worksStudent[i].push(_work);
  16561. _worksStudent2[i].push(_work);
  16562. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16563. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  16564. //选择题
  16565. let _work = {
  16566. userid: b[j].userid,
  16567. ateacher: b[j].ateacher,
  16568. wid: b[j].id,
  16569. works: b[j].content,
  16570. sName: b[j].name,
  16571. type: 10,
  16572. ttype:b[j].ttype,
  16573. time: b[j].time,
  16574. score: b[j].score,
  16575. img: b[j].img,
  16576. likesCount: likesCount,
  16577. commentCount: commentCount,
  16578. isLikes: isLikes,
  16579. commentJson: commentJson,
  16580. likeJson:likeJson
  16581. };
  16582. _worksStudent[i].push(_work);
  16583. _worksStudent2[i].push(_work);
  16584. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16585. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  16586. //选择题
  16587. let _work = {
  16588. userid: b[j].userid,
  16589. ateacher: b[j].ateacher,
  16590. wid: b[j].id,
  16591. works: b[j].content,
  16592. sName: b[j].name,
  16593. type: 13,
  16594. ttype:b[j].ttype,
  16595. time: b[j].time,
  16596. score: b[j].score,
  16597. img: b[j].img,
  16598. likesCount: likesCount,
  16599. commentCount: commentCount,
  16600. isLikes: isLikes,
  16601. commentJson: commentJson,
  16602. likeJson:likeJson
  16603. };
  16604. _worksStudent[i].push(_work);
  16605. _worksStudent2[i].push(_work);
  16606. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16607. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  16608. //选择题
  16609. let _work = {
  16610. userid: b[j].userid,
  16611. ateacher: b[j].ateacher,
  16612. wid: b[j].id,
  16613. works: b[j].content,
  16614. sName: b[j].name,
  16615. type: 16,
  16616. ttype:b[j].ttype,
  16617. time: b[j].time,
  16618. score: b[j].score,
  16619. img: b[j].img,
  16620. likesCount: likesCount,
  16621. commentCount: commentCount,
  16622. isLikes: isLikes,
  16623. commentJson: commentJson,
  16624. aiCode: b[j].aiCode,
  16625. teacherCode: b[j].teacherCode,
  16626. likeJson:likeJson
  16627. };
  16628. _worksStudent[i].push(_work);
  16629. _worksStudent2[i].push(_work);
  16630. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16631. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  16632. //选择题
  16633. let _work = {
  16634. userid: b[j].userid,
  16635. ateacher: b[j].ateacher,
  16636. wid: b[j].id,
  16637. works: b[j].content,
  16638. sName: b[j].name,
  16639. type: 17,
  16640. ttype:b[j].ttype,
  16641. time: b[j].time,
  16642. score: b[j].score,
  16643. img: b[j].img,
  16644. likesCount: likesCount,
  16645. commentCount: commentCount,
  16646. isLikes: isLikes,
  16647. commentJson: commentJson,
  16648. likeJson:likeJson
  16649. };
  16650. _worksStudent[i].push(_work);
  16651. _worksStudent2[i].push(_work);
  16652. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16653. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  16654. //交互视频
  16655. let _work = {
  16656. userid: b[j].userid,
  16657. ateacher: b[j].ateacher,
  16658. wid: b[j].id,
  16659. works: b[j].content,
  16660. sName: b[j].name,
  16661. type: 14,
  16662. ttype:b[j].ttype,
  16663. time: b[j].time,
  16664. score: b[j].score,
  16665. img: b[j].img,
  16666. likesCount: likesCount,
  16667. commentCount: commentCount,
  16668. isLikes: isLikes,
  16669. commentJson: commentJson,
  16670. likeJson:likeJson
  16671. };
  16672. _worksStudent[i].push(_work);
  16673. _worksStudent2[i].push(_work);
  16674. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16675. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  16676. let _gindex = JSON.parse(b[j].content);
  16677. if (
  16678. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  16679. b[j].userid
  16680. ) != -1
  16681. ) {
  16682. let _work = {
  16683. userid: b[j].userid,
  16684. ateacher: b[j].ateacher,
  16685. wid: b[j].id,
  16686. works: _gindex.url,
  16687. sName: b[j].name,
  16688. type: _gindex.type,
  16689. ttype:b[j].ttype,
  16690. time: b[j].time,
  16691. score: b[j].score,
  16692. img: b[j].img,
  16693. likesCount: likesCount,
  16694. commentCount: commentCount,
  16695. isLikes: isLikes,
  16696. commentJson: commentJson,
  16697. likeJson:likeJson
  16698. };
  16699. _worksStudent[i][_gindex.groupIndex].push(_work);
  16700. _worksStudent2[i][_gindex.groupIndex].push(_work);
  16701. }
  16702. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16703. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  16704. let _work = {
  16705. userid: b[j].userid,
  16706. ateacher: b[j].ateacher,
  16707. wid: b[j].id,
  16708. works: b[j].content,
  16709. sName: b[j].name ? b[j].name : b[j].userid,
  16710. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  16711. ttype:b[j].ttype,
  16712. time: b[j].time,
  16713. score: b[j].score,
  16714. img: b[j].img,
  16715. likesCount: likesCount,
  16716. commentCount: commentCount,
  16717. isLikes: isLikes,
  16718. commentJson: commentJson,
  16719. likeJson:likeJson
  16720. };
  16721. _worksStudent[i].push(_work);
  16722. _worksStudent2[i].push(_work);
  16723. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16724. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  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: 12,
  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. } else if (
  16746. a[i].tool[0] == 57 &&
  16747. b[j].atool == 57 &&
  16748. b[j].type == 12
  16749. ) {
  16750. let _work = {
  16751. userid: b[j].userid,
  16752. ateacher: b[j].ateacher,
  16753. wid: b[j].id,
  16754. works: b[j].content,
  16755. sName: b[j].name ? b[j].name : b[j].userid,
  16756. type: 12,
  16757. ttype:b[j].ttype,
  16758. time: b[j].time,
  16759. score: b[j].score,
  16760. img: b[j].img,
  16761. likesCount: likesCount,
  16762. commentCount: commentCount,
  16763. isLikes: isLikes,
  16764. commentJson: commentJson,
  16765. likeJson:likeJson
  16766. };
  16767. _worksStudent[i].push(_work);
  16768. _worksStudent2[i].push(_work);
  16769. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16770. } else if (
  16771. a[i].tool[0] == 57 &&
  16772. b[j].atool == 57 &&
  16773. b[j].type == 15
  16774. ) {
  16775. let _work = {
  16776. userid: b[j].userid,
  16777. ateacher: b[j].ateacher,
  16778. wid: b[j].id,
  16779. works: b[j].content,
  16780. sName: b[j].name ? b[j].name : b[j].userid,
  16781. type: 15,
  16782. ttype:b[j].ttype,
  16783. time: b[j].time,
  16784. score: b[j].score,
  16785. img: b[j].img,
  16786. likesCount: likesCount,
  16787. commentCount: commentCount,
  16788. isLikes: isLikes,
  16789. commentJson: commentJson,
  16790. likeJson:likeJson
  16791. };
  16792. _worksStudent[i].push(_work);
  16793. _worksStudent2[i].push(_work);
  16794. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16795. }
  16796. }
  16797. }
  16798. if (_worksStudent[i] && _worksStudent[i].length) {
  16799. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  16800. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16801. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16802. var scoreA = parseFloat(jscoreA);
  16803. var scoreB = parseFloat(jscoreB);
  16804. if (scoreA == scoreB) {
  16805. return b.likesCount - a.likesCount;
  16806. }
  16807. return scoreB - scoreA;
  16808. });
  16809. if (this.isGroup) {
  16810. for (
  16811. var groupI = 0;
  16812. groupI < this.courseGroup.group.length;
  16813. groupI++
  16814. ) {
  16815. this.courseGroup.group[groupI].works[i] =
  16816. this.courseGroup.group[groupI].works[i].sort(function (
  16817. a,
  16818. b
  16819. ) {
  16820. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  16821. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  16822. var scoreA = parseFloat(jscoreA);
  16823. var scoreB = parseFloat(jscoreB);
  16824. if (scoreA == scoreB) {
  16825. return b.likesCount - a.likesCount;
  16826. }
  16827. return scoreB - scoreA;
  16828. });
  16829. }
  16830. }
  16831. }
  16832. }
  16833. this.timeWorkList = _worksStudent2;
  16834. for (var i = 0; i < a.length; i++) {
  16835. for (var j = 0; j < b.length; j++) {
  16836. var data = b[j];
  16837. if (i == b[j].tool) {
  16838. if (data.type == 2 || data.type == 8) {
  16839. for (var z = 0; z < this.checkJson[i].length; z++) {
  16840. this.checkJson[i][z].checkPerent = [];
  16841. this.checkJson[i][z].right = Math.round(
  16842. (this.checkJson[i][z].rightPerson.length /
  16843. parseInt(_worksStudent[i].length)) *
  16844. 100
  16845. );
  16846. let aaaa = this.checkJson[i][z];
  16847. for (
  16848. var k = 0;
  16849. k < this.checkJson[i][z].checkCount.length;
  16850. k++
  16851. ) {
  16852. this.checkJson[i][z].checkPerent.push(
  16853. Math.round(
  16854. (this.checkJson[i][z].checkCount[k] /
  16855. parseInt(_worksStudent[i].length)) *
  16856. 100
  16857. )
  16858. );
  16859. }
  16860. }
  16861. } else if (data.type == 9) {
  16862. for (var z = 0; z < this.checkJson[i].length; z++) {
  16863. this.checkJson[i][z].checkPerent = [];
  16864. this.checkJson[i][z].right = Math.round(
  16865. (this.checkJson[i][z].rightPerson.length /
  16866. this.checkJson[i][z].checkPerson.length) *
  16867. 100
  16868. );
  16869. }
  16870. }
  16871. }
  16872. }
  16873. }
  16874. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  16875. this.joinGroup(gindex);
  16876. }
  16877. this.worksStudent = _worksStudent;
  16878. if( JSON.stringify(this.worksStudentCopy) != JSON.stringify(this.worksStudent)){
  16879. this.worksStudentCopy=this.worksStudent
  16880. this.AIloading=[]
  16881. this.loopLoading=[]
  16882. this.worksStudent.forEach((e,index)=>{
  16883. this.loopLoading.push({loading:false})
  16884. this.AIloading.push([])
  16885. e.forEach(k=>{
  16886. this.AIloading[index].push({loading:false,sco:0})
  16887. })
  16888. })
  16889. this.refreshAssembly()
  16890. }
  16891. this.selectWorksStudent();
  16892. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  16893. this.$nextTick(()=>{
  16894. setTimeout(()=>{
  16895. setTimeout(()=>{
  16896. this.panToolHeight('tool-'+ci);
  16897. }, 500)
  16898. }, 0)
  16899. })
  16900. }
  16901. })
  16902. .catch((err) => {
  16903. console.error(err);
  16904. });
  16905. },
  16906. pngToWhiteBg(file) {
  16907. const _file = file;
  16908. let read = new FileReader();
  16909. read.readAsDataURL(file); // 文件转base64
  16910. return new Promise((resolve, reject) => {
  16911. read.onload = (e) => {
  16912. let img = new Image();
  16913. img.src = e.target.result;
  16914. img.onload = async () => {
  16915. // 生成canvas
  16916. let canvas = document.createElement("canvas");
  16917. let context = canvas.getContext("2d");
  16918. // 绘制图片到canvas上
  16919. canvas.width = img.width;
  16920. canvas.height = img.height;
  16921. // 在canvas绘制前填充白色背景
  16922. context.fillStyle = "#fff";
  16923. context.fillRect(0, 0, canvas.width, canvas.height);
  16924. context.drawImage(img, 0, 0);
  16925. let base64 = canvas.toDataURL(file["type"], 1);
  16926. let newFile = this.dataUrlToFile(base64, _file);
  16927. resolve(newFile);
  16928. };
  16929. };
  16930. });
  16931. },
  16932. dataUrlToFile(dataurl, file) {
  16933. let arr = dataurl.split(","),
  16934. mime = arr[0].match(/:(.*?);/)[1],
  16935. bstr = atob(arr[1]),
  16936. n = bstr.length,
  16937. u8arr = new Uint8Array(n);
  16938. while (n--) {
  16939. u8arr[n] = bstr.charCodeAt(n);
  16940. }
  16941. // return new Blob([u8arr], { type: mime });
  16942. return new File([new Blob([u8arr], { type: mime })], file.name, {
  16943. type: mime,
  16944. });
  16945. },
  16946. async beforeUpload1(event, type, i) {
  16947. // this.$message.success('进入上传')
  16948. var file = "";
  16949. if (type == 5) {
  16950. file = event;
  16951. } else {
  16952. file = event.target.files[0];
  16953. }
  16954. var credentials = {
  16955. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  16956. secretAccessKey: "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",
  16957. }; //秘钥形式的登录上传
  16958. window.AWS.config.update(credentials);
  16959. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16960. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16961. var _this = this;
  16962. _this.progress = 0;
  16963. _this.proVisible = true;
  16964. _this.isFinishSize = 0;
  16965. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  16966. var b = [
  16967. "DOC",
  16968. "DOCX",
  16969. "DOCM",
  16970. "DOTM",
  16971. "DOTX",
  16972. "PPTX",
  16973. "PPSX",
  16974. "PPT",
  16975. "PPS",
  16976. "PPTM",
  16977. "POTM",
  16978. "PPAM",
  16979. "POTX",
  16980. "PPSM",
  16981. ];
  16982. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  16983. var photoA = [
  16984. "BMP",
  16985. "GIF",
  16986. "PNG",
  16987. "JPEG",
  16988. "JPEG",
  16989. "JPG",
  16990. "TIF",
  16991. "PCX",
  16992. "TGA",
  16993. "EXIF",
  16994. "FPX",
  16995. "SVG",
  16996. "APNG",
  16997. ];
  16998. // if (
  16999. // b.indexOf(
  17000. // file.name
  17001. // .split(".")
  17002. // [file.name.split(".").length - 1].toLocaleUpperCase()
  17003. // ) != -1
  17004. // ) {
  17005. // if (file.size / 1024 / 1024 > 10) {
  17006. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  17007. // return;
  17008. // }
  17009. // } else if (
  17010. // excelA.indexOf(
  17011. // file.name
  17012. // .split(".")
  17013. // [file.name.split(".").length - 1].toLocaleUpperCase()
  17014. // ) != "-1"
  17015. // ) {
  17016. // if (file.size / 1024 / 1024 > 5) {
  17017. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  17018. // return;
  17019. // }
  17020. // }
  17021. if (
  17022. photoA.indexOf(
  17023. file.name
  17024. .split(".")
  17025. [file.name.split(".").length - 1].toLocaleUpperCase()
  17026. ) != -1 &&
  17027. type != 4
  17028. ) {
  17029. // const blob = await imageConversion.compress(file, 0.8)
  17030. file = await this.pngToWhiteBg(file);
  17031. const blob = await imageConversion.compressAccurately(file, 256);
  17032. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  17033. file = new File([blob], file.name, { type: file.type });
  17034. }
  17035. if (file) {
  17036. var params = {
  17037. Key:
  17038. file.name.split(".")[0] +
  17039. new Date().getTime() +
  17040. "." +
  17041. file.name.split(".")[file.name.split(".").length - 1],
  17042. ContentType: file.type,
  17043. Body: file,
  17044. "Access-Control-Allow-Credentials": "*",
  17045. ACL: "public-read",
  17046. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  17047. var options = {
  17048. // partSize: 2048 * 1024 * 1024,
  17049. partSize: 1024 * 1024 * 1024,
  17050. queueSize: 2,
  17051. leavePartsOnError: true,
  17052. };
  17053. bucket
  17054. .upload(params, options)
  17055. .on("httpUploadProgress", function (evt) {
  17056. //这里可以写进度条
  17057. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  17058. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  17059. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  17060. })
  17061. .send(function (err, data) {
  17062. _this.progress = 100;
  17063. _this.isFinishSize = _this.isAllSize;
  17064. setTimeout(() => {
  17065. _this.proVisible = false;
  17066. }, 1000);
  17067. if (err) {
  17068. var a = _this.$refs.upload1.uploadFiles;
  17069. a.splice(a.length - 1, a.length);
  17070. _this.$message.error("上传失败");
  17071. } else {
  17072. // _this.$message.success('上传成功')
  17073. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  17074. var c = [
  17075. "AVI",
  17076. "NAVI",
  17077. "MPEG",
  17078. "ASF",
  17079. "MOV",
  17080. "WMV",
  17081. "3GP",
  17082. "RM",
  17083. "RMVB",
  17084. "FLV",
  17085. "F4V",
  17086. "H.264",
  17087. "H.265",
  17088. "REAL VIDEO",
  17089. "MKV",
  17090. "WebM",
  17091. "HDDVD",
  17092. "MP4",
  17093. "MPG",
  17094. "M4V",
  17095. "MGV",
  17096. "OGV",
  17097. "QTM",
  17098. "STR",
  17099. "AMC",
  17100. "DVX",
  17101. "EVO",
  17102. "DAT",
  17103. "OGG",
  17104. "OGM",
  17105. ];
  17106. if (type == 1) {
  17107. _this.studyJuri[0].cover.push({
  17108. name: file.name,
  17109. url: data.Location,
  17110. uid: file.uid,
  17111. });
  17112. if (
  17113. c.indexOf(
  17114. _this.studyJuri[0].cover[0].url
  17115. .split(".")
  17116. [
  17117. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17118. ].toLocaleUpperCase()
  17119. ) != -1
  17120. ) {
  17121. _this.fileType = 2;
  17122. } else if (
  17123. b.indexOf(
  17124. _this.studyJuri[0].cover[0].url
  17125. .split(".")
  17126. [
  17127. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17128. ].toLocaleUpperCase()
  17129. ) != -1
  17130. ) {
  17131. _this.fileType = 1;
  17132. } else if (
  17133. photoA.indexOf(
  17134. _this.studyJuri[0].cover[0].url
  17135. .split(".")
  17136. [
  17137. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17138. ].toLocaleUpperCase()
  17139. ) != -1
  17140. ) {
  17141. _this.fileType = 0;
  17142. } else {
  17143. _this.fileType = 3;
  17144. }
  17145. _this.imgChange(null, null, type);
  17146. } else if (type == 2) {
  17147. _this.upToolImg = data.Location;
  17148. _this.imgChange(null, null, type);
  17149. _this.addCourseWorks(i);
  17150. } else if (type == 4) {
  17151. _this.addPz("3", data.Location);
  17152. } else if (type == 5) {
  17153. _this.addImgDrawImG(data.Location);
  17154. } else if (type == 6) {
  17155. var _ftype = 1;
  17156. if (
  17157. c.indexOf(
  17158. data.Location.split(".")[
  17159. data.Location.split(".").length - 1
  17160. ].toLocaleUpperCase()
  17161. ) != -1
  17162. ) {
  17163. _ftype = 5;
  17164. } else if (
  17165. b.indexOf(
  17166. data.Location.split(".")[
  17167. data.Location.split(".").length - 1
  17168. ].toLocaleUpperCase()
  17169. ) != -1
  17170. ) {
  17171. _ftype = 4;
  17172. } else {
  17173. _ftype = 1;
  17174. }
  17175. _this.plworkFile.push({
  17176. name: file.name,
  17177. url: data.Location,
  17178. uid: file.uid,
  17179. fileType: _ftype,
  17180. username:
  17181. _this.plworkFile.length > 10
  17182. ? _this.plworkFile.length + 1
  17183. : "0" + (_this.plworkFile.length + 1),
  17184. });
  17185. } else if (type == 7) {
  17186. _this.addCourseWorksGong(i, data.Location, 32);
  17187. } else if (type == 8) {
  17188. _this.addCourseWorksGong(i, data.Location, 57);
  17189. }
  17190. _this.imgChange(null, null, type);
  17191. console.log(data.Location);
  17192. // _this.$message.success('上传成功'+data.Location)
  17193. }
  17194. });
  17195. }
  17196. },
  17197. async beforeUpload3(event, type, i) {
  17198. // this.$message.success('进入上传')
  17199. let file = "";
  17200. let cfindex2 = 0;
  17201. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  17202. file = event.target.files[cfindex];
  17203. var credentials = {
  17204. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  17205. secretAccessKey: "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",
  17206. }; //秘钥形式的登录上传
  17207. window.AWS.config.update(credentials);
  17208. window.AWS.config.region = "cn-northwest-1"; //设置区域
  17209. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  17210. var _this = this;
  17211. // _this.progress = 0;
  17212. _this.proVisible2 = true;
  17213. var b = [
  17214. "DOC",
  17215. "DOCX",
  17216. "DOCM",
  17217. "DOTM",
  17218. "DOTX",
  17219. "PPTX",
  17220. "PPSX",
  17221. "PPT",
  17222. "PPS",
  17223. "PPTM",
  17224. "POTM",
  17225. "PPAM",
  17226. "POTX",
  17227. "PPSM",
  17228. ];
  17229. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  17230. var photoA = [
  17231. "BMP",
  17232. "GIF",
  17233. "PNG",
  17234. "JPEG",
  17235. "JPG",
  17236. "TIF",
  17237. "PCX",
  17238. "TGA",
  17239. "EXIF",
  17240. "FPX",
  17241. "SVG",
  17242. "APNG",
  17243. ];
  17244. if (
  17245. photoA.indexOf(
  17246. file.name
  17247. .split(".")
  17248. [file.name.split(".").length - 1].toLocaleUpperCase()
  17249. ) != -1 &&
  17250. type != 4
  17251. ) {
  17252. // const blob = await imageConversion.compress(file, 0.8)
  17253. file = await this.pngToWhiteBg(file);
  17254. const blob = await imageConversion.compressAccurately(file, 256);
  17255. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  17256. file = new File([blob], file.name, { type: file.type });
  17257. }
  17258. if (file) {
  17259. var params = {
  17260. Key:
  17261. file.name.split(".")[0] +
  17262. new Date().getTime() +
  17263. "." +
  17264. file.name.split(".")[file.name.split(".").length - 1],
  17265. ContentType: file.type,
  17266. Body: file,
  17267. "Access-Control-Allow-Credentials": "*",
  17268. ACL: "public-read",
  17269. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  17270. var options = {
  17271. // partSize: 2048 * 1024 * 1024,
  17272. partSize: 1024 * 1024 * 1024,
  17273. queueSize: 2,
  17274. leavePartsOnError: true,
  17275. };
  17276. bucket
  17277. .upload(params, options)
  17278. .on("httpUploadProgress", function (evt) {
  17279. //这里可以写进度条
  17280. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  17281. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  17282. })
  17283. .send(function (err, data) {
  17284. // _this.progress = 100;
  17285. cfindex2++;
  17286. setTimeout(() => {
  17287. if (
  17288. cfindex2 == event.target.files.length - 1 ||
  17289. cfindex2 > event.target.files.length - 1
  17290. ) {
  17291. _this.proVisible2 = false;
  17292. }
  17293. }, 1000);
  17294. if (err) {
  17295. var a = _this.$refs.upload1.uploadFiles;
  17296. a.splice(a.length - 1, a.length);
  17297. _this.$message.error("上传失败");
  17298. } else {
  17299. // _this.$message.success('上传成功')
  17300. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  17301. var c = [
  17302. "AVI",
  17303. "NAVI",
  17304. "MPEG",
  17305. "ASF",
  17306. "MOV",
  17307. "WMV",
  17308. "3GP",
  17309. "RM",
  17310. "RMVB",
  17311. "FLV",
  17312. "F4V",
  17313. "H.264",
  17314. "H.265",
  17315. "REAL VIDEO",
  17316. "MKV",
  17317. "WebM",
  17318. "HDDVD",
  17319. "MP4",
  17320. "MPG",
  17321. "M4V",
  17322. "MGV",
  17323. "OGV",
  17324. "QTM",
  17325. "STR",
  17326. "AMC",
  17327. "DVX",
  17328. "EVO",
  17329. "DAT",
  17330. "OGG",
  17331. "OGM",
  17332. ];
  17333. if (type == 1) {
  17334. _this.studyJuri[0].cover.push({
  17335. name: file.name,
  17336. url: data.Location,
  17337. uid: file.uid,
  17338. });
  17339. if (
  17340. c.indexOf(
  17341. _this.studyJuri[0].cover[0].url
  17342. .split(".")
  17343. [
  17344. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17345. ].toLocaleUpperCase()
  17346. ) != -1
  17347. ) {
  17348. _this.fileType = 2;
  17349. } else if (
  17350. b.indexOf(
  17351. _this.studyJuri[0].cover[0].url
  17352. .split(".")
  17353. [
  17354. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17355. ].toLocaleUpperCase()
  17356. ) != -1
  17357. ) {
  17358. _this.fileType = 1;
  17359. } else {
  17360. _this.fileType = 0;
  17361. }
  17362. _this.imgChange(null, null, type);
  17363. } else if (type == 2) {
  17364. _this.upToolImg = data.Location;
  17365. _this.imgChange(null, null, type);
  17366. _this.addCourseWorks(i);
  17367. } else if (type == 4) {
  17368. _this.addPz("3", data.Location);
  17369. } else if (type == 5) {
  17370. _this.addImgDrawImG(data.Location);
  17371. } else if (type == 6) {
  17372. var _ftype = 1;
  17373. if (
  17374. c.indexOf(
  17375. data.Location.split(".")[
  17376. data.Location.split(".").length - 1
  17377. ].toLocaleUpperCase()
  17378. ) != -1
  17379. ) {
  17380. _ftype = 5;
  17381. } else if (
  17382. b.indexOf(
  17383. data.Location.split(".")[
  17384. data.Location.split(".").length - 1
  17385. ].toLocaleUpperCase()
  17386. ) != -1
  17387. ) {
  17388. _ftype = 4;
  17389. } else {
  17390. _ftype = 1;
  17391. }
  17392. _this.plworkFile.push({
  17393. name: file.name,
  17394. url: data.Location,
  17395. uid: file.uid,
  17396. fileType: _ftype,
  17397. username:
  17398. _this.plworkFile.length + 1 > 9
  17399. ? _this.plworkFile.length + 1
  17400. : "0" + (_this.plworkFile.length + 1),
  17401. });
  17402. }
  17403. _this.imgChange(null, null, type);
  17404. console.log(data.Location);
  17405. // _this.$message.success('上传成功'+data.Location)
  17406. }
  17407. });
  17408. }
  17409. }
  17410. },
  17411. beforeUpload2(event, type) {
  17412. var file = event.target.files[0];
  17413. var credentials = {
  17414. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  17415. secretAccessKey: "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",
  17416. }; //秘钥形式的登录上传
  17417. window.AWS.config.update(credentials);
  17418. window.AWS.config.region = "cn-northwest-1"; //设置区域
  17419. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  17420. var _this = this;
  17421. _this.progress = 0;
  17422. _this.proVisible = true;
  17423. if (file) {
  17424. var params = {
  17425. Key:
  17426. file.name.split(".")[0] +
  17427. new Date().getTime() +
  17428. "." +
  17429. file.name.split(".")[file.name.split(".").length - 1],
  17430. ContentType: file.type,
  17431. Body: file,
  17432. "Access-Control-Allow-Credentials": "*",
  17433. ACL: "public-read",
  17434. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  17435. var options = {
  17436. partSize: 2048 * 1024 * 1024,
  17437. queueSize: 2,
  17438. leavePartsOnError: true,
  17439. };
  17440. bucket
  17441. .upload(params, options)
  17442. .on("httpUploadProgress", function (evt) {
  17443. //这里可以写进度条
  17444. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  17445. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  17446. })
  17447. .send(function (err, data) {
  17448. _this.progress = 100;
  17449. setTimeout(() => {
  17450. _this.proVisible = false;
  17451. }, 1000);
  17452. if (err) {
  17453. var a = _this.$refs.upload1.uploadFiles;
  17454. a.splice(a.length - 1, a.length);
  17455. _this.$message.error("上传失败");
  17456. } else {
  17457. if (type == 2) {
  17458. _this.studyJuri[0].upVedio.push({
  17459. name: file.name,
  17460. url: data.Location,
  17461. uid: file.uid,
  17462. });
  17463. _this.imgChange(null, null, type);
  17464. } else if (type == 3) {
  17465. _this.studyJuri[0].upFile.push({
  17466. name: file.name,
  17467. url: data.Location,
  17468. uid: file.uid,
  17469. });
  17470. _this.imgChange(null, null, type);
  17471. }
  17472. console.log(data.Location);
  17473. }
  17474. });
  17475. }
  17476. },
  17477. allScrell() {
  17478. window.parent.postMessage({ allScreen: this.screenType }, "*");
  17479. },
  17480. nextOrpreSteps(t) {
  17481. if (this.IsFollow && this.tType == 2) {
  17482. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17483. return;
  17484. }
  17485. var b = this.chapInfoList.length - 1;
  17486. if (t == 0) {
  17487. if (this.courseType == 0) {
  17488. if (this.taskCount == 0) {
  17489. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  17490. if (this.IsLookOpen) {
  17491. if (
  17492. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  17493. ) {
  17494. if (
  17495. this.courseDetail.userid != this.userid &&
  17496. (!this.courseDetail.course_teacher ||
  17497. (this.courseDetail.course_teacher &&
  17498. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  17499. ) {
  17500. this.$message.error("任务未解锁");
  17501. } else {
  17502. this.$message.error("上一任务未解锁");
  17503. }
  17504. return;
  17505. }
  17506. }
  17507. this.navList[this.courseType].isOpen = false;
  17508. this.courseType = b;
  17509. this.taskCount =
  17510. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  17511. .length - 1;
  17512. this.navList[this.courseType].isOpen = true;
  17513. } else {
  17514. this.taskCount--;
  17515. }
  17516. } else {
  17517. if (this.taskCount == 0) {
  17518. this.navList[this.courseType].isOpen = false;
  17519. this.courseType--;
  17520. this.taskCount =
  17521. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  17522. .length - 1;
  17523. this.navList[this.courseType].isOpen = true;
  17524. } else {
  17525. this.taskCount--;
  17526. }
  17527. }
  17528. } else {
  17529. if (this.courseType == b) {
  17530. if (
  17531. this.taskCount ==
  17532. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  17533. 1
  17534. ) {
  17535. this.navList[this.courseType].isOpen = false;
  17536. this.courseType = 0;
  17537. this.taskCount = 0;
  17538. this.navList[this.courseType].isOpen = true;
  17539. } else {
  17540. var bbb = parseInt(this.taskCount) + 1;
  17541. if (
  17542. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  17543. .isLook &&
  17544. this.courseDetail.userid != this.userid &&
  17545. (!this.courseDetail.course_teacher ||
  17546. (this.courseDetail.course_teacher &&
  17547. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17548. this.IsLookOpen
  17549. ) {
  17550. this.$message.error("任务未解锁");
  17551. return;
  17552. }
  17553. this.taskCount++;
  17554. if (this.IsLookOpen) {
  17555. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17556. this.taskCount
  17557. ].isLook = true;
  17558. this.addCourseState(3);
  17559. }
  17560. }
  17561. } else {
  17562. if (
  17563. this.taskCount ==
  17564. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  17565. 1
  17566. ) {
  17567. var bbb = parseInt(this.courseType) + 1;
  17568. if (
  17569. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  17570. this.courseDetail.userid != this.userid &&
  17571. (!this.courseDetail.course_teacher ||
  17572. (this.courseDetail.course_teacher &&
  17573. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17574. this.IsLookOpen
  17575. ) {
  17576. this.$message.error("任务未解锁");
  17577. return;
  17578. }
  17579. this.navList[this.courseType].isOpen = false;
  17580. this.courseType++;
  17581. this.taskCount = 0;
  17582. this.navList[this.courseType].isOpen = true;
  17583. } else {
  17584. var bbb = parseInt(this.taskCount) + 1;
  17585. if (
  17586. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  17587. .isLook &&
  17588. this.courseDetail.userid != this.userid &&
  17589. (!this.courseDetail.course_teacher ||
  17590. (this.courseDetail.course_teacher &&
  17591. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17592. this.IsLookOpen
  17593. ) {
  17594. this.$message.error("任务未解锁");
  17595. return;
  17596. }
  17597. this.taskCount++;
  17598. }
  17599. if (this.IsLookOpen) {
  17600. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17601. this.taskCount
  17602. ].isLook = true;
  17603. this.addCourseState(3);
  17604. }
  17605. }
  17606. // if (
  17607. // this.taskCount ==
  17608. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  17609. // ) {
  17610. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  17611. // } else {
  17612. // this.taskCount++;
  17613. // }
  17614. }
  17615. document.scrollingElement.scrollTop = 0;
  17616. this.showType = 7;
  17617. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17618. // if (this.vedio[this.taskCount].length > 0) {
  17619. // var a =
  17620. // document.getElementsByClassName("box_course")[this.taskCount]
  17621. // .offsetHeight;
  17622. // document.getElementsByClassName("vedioList")[
  17623. // this.taskCount
  17624. // ].style.height = a + "px";
  17625. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  17626. // a - 40 + "px";
  17627. // }
  17628. this.isNoHomeWork = false;
  17629. (this.studyJuri = [
  17630. {
  17631. content: "",
  17632. cover: [],
  17633. upVedio: [],
  17634. upFile: [],
  17635. },
  17636. ]),
  17637. (this.radio = []);
  17638. this.isClickNav = "";
  17639. this.selectPz();
  17640. this.getHomeWork();
  17641. this.getCourseDetail(2);
  17642. this.$forceUpdate();
  17643. },
  17644. openTask(s, n, i) {
  17645. this.refreshAssembly()
  17646. if (this.IsFollow && this.tType == 2) {
  17647. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17648. return;
  17649. }
  17650. if (this.IsLookOpen) {
  17651. if (
  17652. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  17653. this.courseDetail.userid != this.userid &&
  17654. (!this.courseDetail.course_teacher ||
  17655. (this.courseDetail.course_teacher &&
  17656. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  17657. ) {
  17658. this.$message.error("任务未解锁");
  17659. return;
  17660. }
  17661. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  17662. if (
  17663. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  17664. .isLook
  17665. ) {
  17666. this.$message.error("上一任务未解锁");
  17667. return;
  17668. }
  17669. } else if (s > this.courseType) {
  17670. if (n > 0) {
  17671. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  17672. this.$message.error("上一任务未解锁");
  17673. return;
  17674. }
  17675. } else {
  17676. if (
  17677. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  17678. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  17679. ].isLook
  17680. ) {
  17681. this.$message.error("上一任务未解锁");
  17682. return;
  17683. }
  17684. }
  17685. }
  17686. }
  17687. if (this.navList[s].task[n].isOpen == true) {
  17688. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  17689. return;
  17690. }
  17691. let flag = this.courseType==s;
  17692. this.courseType = s;
  17693. this.navId = i;
  17694. this.taskCount = n;
  17695. this.navList[this.courseType].task[this.taskCount].isOpen =
  17696. !this.navList[this.courseType].task[this.taskCount].isOpen;
  17697. if (this.IsLookOpen) {
  17698. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17699. this.taskCount
  17700. ].isLook = true;
  17701. this.addCourseState(3);
  17702. }
  17703. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  17704. this.isCloseList[ci].isClose = 0;
  17705. this.isCloseList[ci].isCloseBoolean = false;
  17706. this.$nextTick(()=>{
  17707. setTimeout(()=>{
  17708. setTimeout(()=>{
  17709. this.panToolHeight('tool-'+ci);
  17710. }, 0)
  17711. }, 0)
  17712. })
  17713. }
  17714. this.showType = 7;
  17715. this.isNoHomeWork = false;
  17716. (this.studyJuri = [
  17717. {
  17718. content: "",
  17719. cover: [],
  17720. upVedio: [],
  17721. upFile: [],
  17722. },
  17723. ]),
  17724. (this.radio = []);
  17725. document.scrollingElement.scrollTop = 0;
  17726. // setTimeout(() => {
  17727. // let a = document.getElementById(i);
  17728. // if (a.offsetTop - 110 == 0) {
  17729. // window.scrollTo(0, 0);
  17730. // } else {
  17731. // window.scrollTo(0, a.offsetTop);
  17732. // }
  17733. // }, 0);
  17734. for (var z = 0; z < this.navList.length; z++) {
  17735. for (var q = 0; q < this.navList[z].task.length; q++) {
  17736. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17737. this.navList[z].task[q].tool[w].isTool = false;
  17738. }
  17739. }
  17740. }
  17741. this.selectPz();
  17742. this.getHomeWork();
  17743. this.getCourseDetail(2);
  17744. if(flag){
  17745. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  17746. }else{
  17747. 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>`)
  17748. }
  17749. },
  17750. get(i) {
  17751. if (this.IsFollow && this.tType == 2) {
  17752. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17753. return;
  17754. }
  17755. // for(var k=0;k<this.navList.length;k++){
  17756. // this.navList[k].isOpen = false;
  17757. // }
  17758. // this.navList[i].isOpen = true;
  17759. this.navList[i].isOpen = !this.navList[i].isOpen;
  17760. if (this.navList[i].isOpen) {
  17761. this.openTask(i, 0, i + "-0");
  17762. }
  17763. },
  17764. addQuestion() {
  17765. this.answerList.push({
  17766. answerTitle: this.answerQ,
  17767. answer: this.questionAnswer,
  17768. });
  17769. let params = [
  17770. {
  17771. uid: this.userid,
  17772. cid: this.id,
  17773. stage: this.courseType,
  17774. task: this.taskCount,
  17775. tool: this.toolindex,
  17776. content: JSON.stringify(this.answerList),
  17777. type: 3,
  17778. },
  17779. ];
  17780. this.ajax
  17781. .post(this.$store.state.api + "addCourseWorks", params)
  17782. .then((res) => {
  17783. this.$message({
  17784. message: "提交成功",
  17785. type: "success",
  17786. });
  17787. this.answerList = [];
  17788. this.answerDialogVisible = false;
  17789. this.selectStudent();
  17790. this.selectSWorks();
  17791. this.selectSLook();
  17792. })
  17793. .catch((err) => {
  17794. this.$message.error("提交失败");
  17795. console.error(err);
  17796. });
  17797. },
  17798. addQuestionTeacher() {
  17799. this.answerList.push({
  17800. answerTitle: this.answerQ,
  17801. answer: this.questionAnswer,
  17802. });
  17803. let params = [
  17804. {
  17805. uid: this.sStudent.userid,
  17806. cid: this.id,
  17807. stage: this.courseType,
  17808. task: this.taskCount,
  17809. tool: this.toolindex,
  17810. content: JSON.stringify(this.answerList),
  17811. type: 3,
  17812. ateacher: this.userid,
  17813. },
  17814. ];
  17815. this.ajax
  17816. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17817. .then((res) => {
  17818. this.$message({
  17819. message: "提交成功",
  17820. type: "success",
  17821. });
  17822. this.answerList = [];
  17823. this.questionAnswer = "";
  17824. this.answerDialogVisibleTeacher = false;
  17825. this.selectStudent();
  17826. this.selectSWorks();
  17827. this.selectSLook();
  17828. })
  17829. .catch((err) => {
  17830. this.$message.error("提交失败");
  17831. console.error(err);
  17832. });
  17833. },
  17834. refreshCourse() {
  17835. // window.location.reload();
  17836. this.navList = [];
  17837. this.getCourseDetail(1);
  17838. },
  17839. getCourseDetail(type, gindex) {
  17840. let loading;
  17841. if (type != 2) {
  17842. loading = this.$loading.service({
  17843. background: "rgba(255, 255, 255, 0.7)",
  17844. target: document.querySelector(".student_table"),
  17845. });
  17846. }
  17847. this.downLoading = false
  17848. // this.navList[0].isOpen = false;
  17849. // this.navList[this.courseType].isOpen = true;
  17850. // this.courseType = this.courseTypeLine;
  17851. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17852. let params = {
  17853. courseId: this.id,
  17854. };
  17855. this.ajax
  17856. .get(this.$store.state.api + "selectCourseDetail3", params)
  17857. .then((res) => {
  17858. if (type != 2) {
  17859. loading.close();
  17860. if (
  17861. this.courseType >
  17862. JSON.parse(res.data[0][0].chapters).length - 1
  17863. ) {
  17864. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  17865. }
  17866. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  17867. .chapterInfo[0].taskJson;
  17868. var b = [
  17869. "AVI",
  17870. "NAVI",
  17871. "MPEG",
  17872. "ASF",
  17873. "MOV",
  17874. "WMV",
  17875. "3GP",
  17876. "RM",
  17877. "RMVB",
  17878. "FLV",
  17879. "F4V",
  17880. "H.264",
  17881. "H.265",
  17882. "REAL VIDEO",
  17883. "MKV",
  17884. "WebM",
  17885. "HDDVD",
  17886. "MP4",
  17887. "MPG",
  17888. "M4V",
  17889. "MGV",
  17890. "OGV",
  17891. "QTM",
  17892. "STR",
  17893. "AMC",
  17894. "DVX",
  17895. "EVO",
  17896. "DAT",
  17897. "OGG",
  17898. "OGM",
  17899. "MP3",
  17900. ];
  17901. let _chapterData = [];
  17902. for (var i = 0; i < a.length; i++) {
  17903. var c = a[i].chapterData;
  17904. this.vedio[i] = [];
  17905. this.textList[i] = [];
  17906. this.lineList[i] = [];
  17907. this.chapToolList[i] = [];
  17908. this.file[i] = [];
  17909. this.fileC[i] = [];
  17910. _chapterData[i] = c.filter((el) => {
  17911. return el.type != 12;
  17912. });
  17913. this.fileC[i] = c.filter((el) => {
  17914. return el.type == 12;
  17915. });
  17916. // else if (c[j].type == 12) {
  17917. // this.fileC[i].push(c[j]);
  17918. // }
  17919. for (var j = 0; j < c.length; j++) {
  17920. if (c[j].type == 7) {
  17921. this.chapToolList[i].push(c[j]);
  17922. } else if (c[j].type == 8 || c[j].type == 14) {
  17923. this.lineList[i].push(c[j]);
  17924. } else if (c[j].type == 6) {
  17925. this.textList[i].push(c[j]);
  17926. } else {
  17927. if (
  17928. b.indexOf(
  17929. c[j].url
  17930. .split(".")
  17931. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  17932. ) != -1
  17933. ) {
  17934. this.vedio[i].push(c[j]);
  17935. } else {
  17936. this.file[i].push(c[j]);
  17937. }
  17938. }
  17939. }
  17940. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17941. d.sources[0].src =
  17942. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  17943. this.playerO[i] = d;
  17944. }
  17945. this.courseDetail = res.data[0][0];
  17946. this.tcid = this.arrayToArray(
  17947. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  17948. this.tcid2 ? this.tcid2.split(",") : []
  17949. ).join(",");
  17950. this.evalua = res.data[0][0].evaId;
  17951. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  17952. this.courseType
  17953. ];
  17954. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  17955. if (this.tcid && res.data[1].length) {
  17956. let _inviteA = [];
  17957. for (var ik = 0; ik < res.data[1].length; ik++) {
  17958. _inviteA.push({
  17959. cid: res.data[1][ik].classid,
  17960. ic: res.data[1][ik].code,
  17961. });
  17962. }
  17963. for (var ik = 0; ik < _inviteA.length; ik++) {
  17964. if (
  17965. this.arrayToArray(
  17966. _inviteA[ik].cid.split(","),
  17967. this.tcid.split(",")
  17968. ).length
  17969. ) {
  17970. this.inviteCode = _inviteA[ik].ic;
  17971. break;
  17972. }
  17973. }
  17974. }
  17975. for (var l = 0; l < this.chapInfoList.length; l++) {
  17976. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17977. for (var m = 0; m < w.length; m++) {
  17978. w[m].id = l + "-" + m;
  17979. }
  17980. }
  17981. if (
  17982. _chapterData[this.taskCount].length &&
  17983. _chapterData[this.taskCount][0].type == 2
  17984. ) {
  17985. this.showType = 0;
  17986. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  17987. } else {
  17988. if (_chapterData[this.taskCount].length > 0) {
  17989. let _url = _chapterData[this.taskCount][0].url;
  17990. if (
  17991. _chapterData[this.taskCount][0].type == 8 ||
  17992. _chapterData[this.taskCount][0].type == 14
  17993. ) {
  17994. this.showType = 2;
  17995. if (
  17996. _url.indexOf("https://") == -1 &&
  17997. _url.indexOf("http://") == -1
  17998. ) {
  17999. _url = "https://" + _url;
  18000. }
  18001. this.pptImgUrl1 = _url;
  18002. } else if (_chapterData[this.taskCount][0].type == 3) {
  18003. if (
  18004. _url
  18005. .split(".")
  18006. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18007. ) {
  18008. this.showType = 3;
  18009. this.pptImgUrl1 = _url;
  18010. } else if (
  18011. this.isAssetTypeAnImage(
  18012. _url
  18013. .split(".")
  18014. [_url.split(".").length - 1].toLocaleLowerCase()
  18015. )
  18016. ) {
  18017. this.showType = 4;
  18018. this.pptImgUrl1 = _url;
  18019. } else {
  18020. this.showType = 2;
  18021. this.pptImgUrl1 =
  18022. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18023. encodeURIComponent(_url);
  18024. }
  18025. } else if (_chapterData[this.taskCount][0].type == 13) {
  18026. this.showType = 4;
  18027. this.pptImgUrl1 = _url;
  18028. } else if (_chapterData[this.taskCount][0].type == 6) {
  18029. this.showType = 1;
  18030. this.text = this.textList[this.taskCount][0];
  18031. }
  18032. }
  18033. }
  18034. this.isClickNav = 0;
  18035. if (
  18036. !_chapterData[this.taskCount].length ||
  18037. _chapterData[this.taskCount][0].type == 12
  18038. ) {
  18039. this.isClickNav = "";
  18040. this.showType = "";
  18041. }
  18042. this.vChapterData = _chapterData;
  18043. } else {
  18044. this.showType = 0;
  18045. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  18046. .chapterInfo[0].taskJson;
  18047. var b = [
  18048. "AVI",
  18049. "NAVI",
  18050. "MPEG",
  18051. "ASF",
  18052. "MOV",
  18053. "WMV",
  18054. "3GP",
  18055. "RM",
  18056. "RMVB",
  18057. "FLV",
  18058. "F4V",
  18059. "H.264",
  18060. "H.265",
  18061. "REAL VIDEO",
  18062. "MKV",
  18063. "WebM",
  18064. "HDDVD",
  18065. "MP4",
  18066. "MPG",
  18067. "M4V",
  18068. "MGV",
  18069. "OGV",
  18070. "QTM",
  18071. "STR",
  18072. "AMC",
  18073. "DVX",
  18074. "EVO",
  18075. "DAT",
  18076. "OGG",
  18077. "OGM",
  18078. "MP3",
  18079. ];
  18080. let _chapterData = [];
  18081. for (var i = 0; i < a.length; i++) {
  18082. var c = a[i].chapterData;
  18083. this.vedio[i] = [];
  18084. this.textList[i] = [];
  18085. this.lineList[i] = [];
  18086. this.chapToolList[i] = [];
  18087. this.file[i] = [];
  18088. this.fileC[i] = [];
  18089. _chapterData[i] = c.filter((el) => {
  18090. return el.type != 12;
  18091. });
  18092. this.fileC[i] = c.filter((el) => {
  18093. return el.type == 12;
  18094. });
  18095. for (var j = 0; j < c.length; j++) {
  18096. if (c[j].type == 7) {
  18097. this.chapToolList[i].push(c[j]);
  18098. } else if (c[j].type == 8 || c[j].type == 14) {
  18099. this.lineList[i].push(c[j]);
  18100. } else if (c[j].type == 6) {
  18101. this.textList[i].push(c[j]);
  18102. } else {
  18103. if (
  18104. b.indexOf(
  18105. c[j].url
  18106. .split(".")
  18107. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  18108. ) != -1
  18109. ) {
  18110. this.vedio[i].push(c[j]);
  18111. } else {
  18112. this.file[i].push(c[j]);
  18113. }
  18114. }
  18115. }
  18116. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18117. d.sources[0].src =
  18118. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  18119. this.playerO[i] = d;
  18120. }
  18121. if (
  18122. _chapterData[this.taskCount].length &&
  18123. _chapterData[this.taskCount][0].type == 2
  18124. ) {
  18125. this.showType = 0;
  18126. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  18127. } else {
  18128. if (_chapterData[this.taskCount].length > 0) {
  18129. let _url = _chapterData[this.taskCount][0].url;
  18130. if (
  18131. _chapterData[this.taskCount][0].type == 8 ||
  18132. _chapterData[this.taskCount][0].type == 14
  18133. ) {
  18134. this.showType = 2;
  18135. if (
  18136. _url.indexOf("https://") == -1 &&
  18137. _url.indexOf("http://") == -1
  18138. ) {
  18139. _url = "https://" + _url;
  18140. }
  18141. this.pptImgUrl1 = _url;
  18142. } else if (_chapterData[this.taskCount][0].type == 3) {
  18143. if (
  18144. _url
  18145. .split(".")
  18146. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18147. ) {
  18148. this.showType = 3;
  18149. this.pptImgUrl1 = _url;
  18150. } else if (
  18151. this.isAssetTypeAnImage(
  18152. _url
  18153. .split(".")
  18154. [_url.split(".").length - 1].toLocaleLowerCase()
  18155. )
  18156. ) {
  18157. this.showType = 4;
  18158. this.pptImgUrl1 = _url;
  18159. } else {
  18160. this.showType = 2;
  18161. this.pptImgUrl1 =
  18162. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18163. encodeURIComponent(_url);
  18164. }
  18165. } else if (_chapterData[this.taskCount][0].type == 13) {
  18166. this.showType = 4;
  18167. this.pptImgUrl1 = _url;
  18168. } else if (_chapterData[this.taskCount][0].type == 6) {
  18169. this.showType = 1;
  18170. this.text = this.textList[this.taskCount][0];
  18171. }
  18172. }
  18173. }
  18174. this.isClickNav = 0;
  18175. if (
  18176. !_chapterData[this.taskCount].length ||
  18177. _chapterData[this.taskCount][0].type == 12
  18178. ) {
  18179. this.isClickNav = "";
  18180. this.showType = "";
  18181. }
  18182. this.vChapterData = _chapterData;
  18183. this.$forceUpdate();
  18184. }
  18185. // console.log('this.chapInfoList22222',JS);
  18186. // finalMarkList用来判断哪个工具为评分工具
  18187. if(this.courseDetail.state == 5){
  18188. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  18189. let chap = chapInfoListCopy[this.taskCount].toolChoose
  18190. let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  18191. // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  18192. // 没有的话在选其他工具为评分工具
  18193. if(adc.length > 0){
  18194. for (let k = chap.length - 1; k >= 0; k--) {
  18195. if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  18196. this.finalMarkList = k;
  18197. break;
  18198. }
  18199. }
  18200. }else{
  18201. for (let k = chap.length - 1; k >= 0; k--) {
  18202. 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) {
  18203. this.finalMarkList = k;
  18204. break;
  18205. }
  18206. }
  18207. }
  18208. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  18209. // 不然会无限循环报错,会很难受
  18210. let aiSNum = 0
  18211. chapInfoListCopy[this.taskCount].eList.forEach(e=>{
  18212. if (e.isai == 2) {
  18213. aiSNum++
  18214. }
  18215. })
  18216. if(aiSNum == chapInfoListCopy[this.taskCount].eList.length){
  18217. this.isaiNum = aiSNum
  18218. }else{
  18219. this.isaiNum = 0
  18220. }
  18221. // console.log('finalMarkList',this.finalMarkList)
  18222. for (let k = 0; k < chapInfoListCopy[this.taskCount].eList.length; k++) {
  18223. if(!chapInfoListCopy[this.taskCount].eList[k].rule){
  18224. this.againEva(this.taskCount,k)
  18225. }
  18226. }
  18227. }
  18228. // else {
  18229. // this.courseDetail = res.data[0][0];
  18230. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  18231. // }
  18232. let _this = this;
  18233. if (_this.timer) {
  18234. clearInterval(_this.timer);
  18235. _this.timer = null;
  18236. }
  18237. if (_this.tcid) {
  18238. _this.getCourseGroup(gindex);
  18239. } else {
  18240. _this.selectSWorks(gindex);
  18241. }
  18242. _this.selectStudent();
  18243. _this.selectSLook();
  18244. _this.getPick();
  18245. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  18246. _this.setCTask();
  18247. }
  18248. if (_this.dialogVisibleGroup) {
  18249. _this.groupJson =
  18250. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  18251. _this.taskCount
  18252. ].toolChoose[_this.toolindex].groupJson;
  18253. }
  18254. _this.$nextTick(() => {
  18255. setTimeout(() => {
  18256. _this.checkEva();
  18257. }, 1000);
  18258. });
  18259. _this.timer = setInterval(function () {
  18260. // _this.getCourseDetail(2);
  18261. if (_this.tcid) {
  18262. _this.getCourseGroup(gindex);
  18263. } else {
  18264. _this.selectSWorks(gindex);
  18265. }
  18266. _this.selectStudent();
  18267. _this.selectSLook();
  18268. _this.getPick();
  18269. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  18270. _this.setCTask();
  18271. }
  18272. if (_this.dialogVisibleGroup) {
  18273. _this.groupJson =
  18274. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  18275. _this.taskCount
  18276. ].toolChoose[_this.toolindex].groupJson;
  18277. }
  18278. if (_this.tType == 4 || _this.ispzType == 4) {
  18279. _this.selectPz();
  18280. }
  18281. }, 5000);
  18282. _this.$nextTick(function () {
  18283. setTimeout(() => {
  18284. // var a =
  18285. // document.getElementsByClassName("box_course")[0].offsetHeight;
  18286. // document.getElementsByClassName("vedioList")[0].style.height =
  18287. // a + "px";
  18288. // document.getElementsByClassName("navBox")[0].style.height =
  18289. // a - 40 + "px";
  18290. // if (_this.vedio[_this.taskCount].length > 0) {
  18291. // _this.vedioTime = [];
  18292. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18293. // _this.vedioTime[i] = document.getElementsByClassName(
  18294. // "vjs-duration-display"
  18295. // )[i].textContent;
  18296. // }
  18297. // }
  18298. }, 1000);
  18299. });
  18300. })
  18301. .catch((err) => {
  18302. loading.close();
  18303. console.error(err);
  18304. });
  18305. },
  18306. getCourseGroup(gindex) {
  18307. let params = {
  18308. cid: this.id,
  18309. classid: this.tcid ? this.tcid : "1",
  18310. };
  18311. this.ajax
  18312. .get(this.$store.state.api + "getCourseGroup", params)
  18313. .then((res) => {
  18314. if (res.data && res.data[0].length) {
  18315. if (!this.isGroup) {
  18316. let courseGroup = JSON.parse(res.data[0][0].group);
  18317. courseGroup.group = courseGroup.group.filter((el) => {
  18318. el.works = [];
  18319. return el;
  18320. });
  18321. if (courseGroup.isopen == 2) {
  18322. this.isGroup = false;
  18323. this.selectSWorks(gindex);
  18324. return;
  18325. }
  18326. this.courseGroup = courseGroup;
  18327. let groupPerson = res.data[1];
  18328. let group = JSON.parse(res.data[0][0].group).group;
  18329. let courseGroupStudent = {};
  18330. let courseGroupStudentUid = {};
  18331. for (var i = 0; i < group.length; i++) {
  18332. courseGroupStudent[group[i].id] = [];
  18333. courseGroupStudentUid[group[i].id] = [];
  18334. for (var j = 0; j < groupPerson.length; j++) {
  18335. if (groupPerson[j].groupCid == group[i].id) {
  18336. courseGroupStudent[group[i].id].push(groupPerson[j]);
  18337. courseGroupStudentUid[group[i].id].push(
  18338. groupPerson[j].userid
  18339. );
  18340. }
  18341. }
  18342. }
  18343. this.courseGroupStudent = courseGroupStudent;
  18344. this.courseGroupStudentUid = courseGroupStudentUid;
  18345. }
  18346. if (this.courseGroup.isopen == 2) {
  18347. this.isGroup = false;
  18348. } else {
  18349. this.isGroup = true;
  18350. }
  18351. this.selectSWorks(gindex);
  18352. } else {
  18353. this.selectSWorks(gindex);
  18354. this.isGroup = false;
  18355. }
  18356. })
  18357. .catch((err) => {
  18358. // this.$message.error("网络不佳");
  18359. console.error(err);
  18360. });
  18361. },
  18362. setOperationTime() {
  18363. let _this = this;
  18364. if (_this.opertimer) {
  18365. clearInterval(_this.opertimer);
  18366. _this.opertimer = null;
  18367. }
  18368. _this.opertimer = setInterval(() => {
  18369. _this.setoTime("600");
  18370. }, 600000);
  18371. },
  18372. setoTime(time) {
  18373. let params = [
  18374. {
  18375. uid: this.userid,
  18376. cid: this.id,
  18377. type: "2",
  18378. time: time,
  18379. },
  18380. ];
  18381. this.ajax
  18382. .post(this.$store.state.api + "addOperationTimeT2", params)
  18383. .then((res) => {})
  18384. .catch((err) => {
  18385. console.error(err);
  18386. });
  18387. },
  18388. addPz(type, content) {
  18389. if (type == "1" && this.pzConText == "") {
  18390. this.$message.error("评论不能为空!");
  18391. return;
  18392. }
  18393. let params = [
  18394. {
  18395. cid: this.id,
  18396. uid: this.userid,
  18397. s: this.courseType,
  18398. t: this.taskCount,
  18399. c: type == "1" ? this.pzConText : content,
  18400. type: type,
  18401. },
  18402. ];
  18403. this.ajax
  18404. .post(this.$store.state.api + "addPz2", params)
  18405. .then((res) => {
  18406. this.$message({
  18407. message: "添加成功",
  18408. type: "success",
  18409. });
  18410. this.pzConText = "";
  18411. this.addPzDialog = false;
  18412. this.selectPz();
  18413. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  18414. })
  18415. .catch((err) => {
  18416. this.$message.error("添加失败");
  18417. console.error(err);
  18418. });
  18419. },
  18420. setReplyIndex(id, i) {
  18421. this.replyIndex = i;
  18422. this.replyPid = id;
  18423. this.replyDialogVisible = true;
  18424. },
  18425. addHf() {
  18426. if (this.reply == "") {
  18427. this.$message.error("回复不能为空!");
  18428. return;
  18429. }
  18430. let params = [
  18431. {
  18432. cid: this.id,
  18433. uid: this.userid,
  18434. s: this.courseType,
  18435. t: this.taskCount,
  18436. type: "1",
  18437. ct: 2,
  18438. pid: this.replyPid,
  18439. c: this.reply,
  18440. },
  18441. ];
  18442. this.ajax
  18443. .post(this.$store.state.api + "addHf", params)
  18444. .then((res) => {
  18445. this.reply = "";
  18446. this.$message({
  18447. message: "回复成功",
  18448. type: "success",
  18449. });
  18450. this.replyDialogVisible = false;
  18451. this.selectPz();
  18452. })
  18453. .catch((err) => {
  18454. this.$message.error("回复失败");
  18455. console.error(err);
  18456. });
  18457. },
  18458. deletePz(id) {
  18459. this.$confirm("确定删除此评论吗?", "提示", {
  18460. confirmButtonText: "确定",
  18461. cancelButtonText: "取消",
  18462. type: "warning",
  18463. })
  18464. .then(() => {
  18465. let params = [
  18466. {
  18467. id: id,
  18468. },
  18469. ];
  18470. this.ajax
  18471. .post(this.$store.state.api + "deletePz", params)
  18472. .then((res) => {
  18473. this.$message({
  18474. message: "删除成功",
  18475. type: "success",
  18476. });
  18477. this.selectPz();
  18478. })
  18479. .catch((err) => {
  18480. this.$message.error("网络异常");
  18481. console.error(err);
  18482. });
  18483. })
  18484. .catch(() => {});
  18485. },
  18486. deleteReply(id) {
  18487. this.$confirm("确定删除此回复吗?", "提示", {
  18488. confirmButtonText: "确定",
  18489. cancelButtonText: "取消",
  18490. type: "warning",
  18491. })
  18492. .then(() => {
  18493. let params = [
  18494. {
  18495. id: id,
  18496. },
  18497. ];
  18498. this.ajax
  18499. .post(this.$store.state.api + "deleteReply", params)
  18500. .then((res) => {
  18501. this.$message({
  18502. message: "删除成功",
  18503. type: "success",
  18504. });
  18505. this.selectPz();
  18506. })
  18507. .catch((err) => {
  18508. this.$message.error("网络异常");
  18509. console.error(err);
  18510. });
  18511. })
  18512. .catch(() => {});
  18513. },
  18514. setPz() {
  18515. if (this.ispzType == 4) {
  18516. this.ispzType = 0;
  18517. this.pzDialog = false;
  18518. return;
  18519. }
  18520. this.ispzType = 4;
  18521. this.pzDialog = true;
  18522. this.selectPz();
  18523. },
  18524. selectPz() {
  18525. let params = {
  18526. cid: this.id,
  18527. s: this.courseType,
  18528. t: this.taskCount,
  18529. type: this.pzStype,
  18530. uid: this.userid,
  18531. };
  18532. this.ajax
  18533. .get(this.$store.state.api + "selectPzListType", params)
  18534. .then((res) => {
  18535. this.pzList = res.data[0];
  18536. var a = res.data[1];
  18537. for (var i = 0; i < a.length; i++) {
  18538. for (var j = 0; j < this.pzList.length; j++) {
  18539. if (!this.pzList[j].hfList) {
  18540. this.pzList[j].hfList = [];
  18541. }
  18542. if (a[i].pid == this.pzList[j].id) {
  18543. this.pzList[j].hfList.push(a[i]);
  18544. }
  18545. }
  18546. }
  18547. })
  18548. .catch((err) => {
  18549. console.error(err);
  18550. });
  18551. },
  18552. // selectHf() {
  18553. // let params = {
  18554. // cid: this.id,
  18555. // s: this.courseType,
  18556. // t: this.taskCount,
  18557. // };
  18558. // this.ajax
  18559. // .get(this.$store.state.api + "selectHfList", params)
  18560. // .then((res) => {
  18561. // var a = res.data[0];
  18562. // for (var i = 0; i < a.length; i++) {
  18563. // for (var j = 0; j < this.pzList.length; j++) {
  18564. // if (!this.pzList[i].hfList) {
  18565. // this.pzList[i].hfList = [];
  18566. // }
  18567. // if (a[i].pid == this.pzList[j].id) {
  18568. // this.pzList[i].hfList.push(a[i]);
  18569. // }
  18570. // }
  18571. // }
  18572. // })
  18573. // .catch((err) => {
  18574. // console.error(err);
  18575. // });
  18576. // },
  18577. updateSLook() {
  18578. let params = {
  18579. sopen: this.sIsOpen == false ? 1 : 2,
  18580. cid: this.id,
  18581. };
  18582. this.ajax
  18583. .get(this.$store.state.api + "updateCourseSLook", params)
  18584. .then((res) => {
  18585. if (this.sIsOpen == true) {
  18586. this.$message({
  18587. message: "权限设置成功",
  18588. type: "success",
  18589. });
  18590. } else {
  18591. this.$message({
  18592. message: "权限关闭成功",
  18593. type: "success",
  18594. });
  18595. }
  18596. })
  18597. .catch((err) => {
  18598. console.error(err);
  18599. });
  18600. },
  18601. updateFollow() {
  18602. let params = [
  18603. {
  18604. sopen: this.IsFollow == false ? 1 : 2,
  18605. cid: this.id,
  18606. },
  18607. ];
  18608. this.ajax
  18609. .post(this.$store.state.api + "updateCourseFollow", params)
  18610. .then((res) => {
  18611. if (this.IsFollow == true) {
  18612. this.$message({
  18613. message: "开启成功",
  18614. type: "success",
  18615. });
  18616. } else {
  18617. this.$message({
  18618. message: "关闭成功",
  18619. type: "success",
  18620. });
  18621. }
  18622. this.setCTask();
  18623. })
  18624. .catch((err) => {
  18625. console.error(err);
  18626. });
  18627. },
  18628. setCTask() {
  18629. let params = [
  18630. {
  18631. sopen: this.courseType + "-" + this.taskCount,
  18632. cid: this.id,
  18633. },
  18634. ];
  18635. this.ajax
  18636. .post(this.$store.state.api + "updateCourseFollowC", params)
  18637. .then((res) => {})
  18638. .catch((err) => {
  18639. console.error(err);
  18640. });
  18641. },
  18642. updateLookOpen() {
  18643. let params = [
  18644. {
  18645. sopen: this.IsLookOpen == false ? 1 : 2,
  18646. cid: this.id,
  18647. },
  18648. ];
  18649. this.ajax
  18650. .post(this.$store.state.api + "updateCourseLookOpen", params)
  18651. .then((res) => {
  18652. if (this.IsLookOpen == true) {
  18653. // if (this.courseType != 0 && this.taskCount != 0) {
  18654. // this.openTask(0, 0, "0-0");
  18655. // }
  18656. this.$message({
  18657. message: "权限设置成功",
  18658. type: "success",
  18659. });
  18660. } else {
  18661. this.$message({
  18662. message: "权限关闭成功",
  18663. type: "success",
  18664. });
  18665. }
  18666. this.getCourseState(2);
  18667. })
  18668. .catch((err) => {
  18669. console.error(err);
  18670. });
  18671. },
  18672. selectSLook() {
  18673. let params = {
  18674. cid: this.id,
  18675. };
  18676. this.ajax
  18677. .get(this.$store.state.api + "selectCourseSLook", params)
  18678. .then((res) => {
  18679. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  18680. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  18681. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  18682. if (!this.IsLookOpen) {
  18683. this.setNavList();
  18684. } else {
  18685. this.getCourseState(1);
  18686. }
  18687. if (this.IsFollow && this.tType == 2) {
  18688. this.setContent2(false);
  18689. let _followC = res.data[0][0].followC.split("-");
  18690. if (
  18691. this.courseType != _followC[0] ||
  18692. this.taskCount != _followC[1]
  18693. ) {
  18694. this.navList[this.courseType].isOpen = false;
  18695. this.courseType = _followC[0];
  18696. this.navList[this.courseType].isOpen = true;
  18697. this.taskCount = parseInt(_followC[1]);
  18698. this.navId = res.data[0][0].followC;
  18699. document.scrollingElement.scrollTop = 0;
  18700. this.getCourseDetail(2);
  18701. }
  18702. }
  18703. })
  18704. .catch((err) => {
  18705. console.error(err);
  18706. });
  18707. },
  18708. setNavList() {
  18709. if (this.navList.length == 0) {
  18710. this.navList = [];
  18711. var copyList = [];
  18712. for (var l = 0; l < this.chapInfoList.length; l++) {
  18713. var q = this.chapInfoList[l].dyName;
  18714. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18715. var e;
  18716. copyList.push({
  18717. dyName: q,
  18718. isOpen: l === 0 ? true : false,
  18719. task: [],
  18720. });
  18721. for (var r = 0; r < w.length; r++) {
  18722. e = w[r].task;
  18723. if (this.chapInfoList[l].easy == 1) {
  18724. copyList[l].task.push({
  18725. taskName: q,
  18726. id: l + "-" + r,
  18727. isLook: w[r].isLook,
  18728. isOpen: r === 0 ? true : false,
  18729. tool: [],
  18730. });
  18731. } else {
  18732. copyList[l].task.push({
  18733. taskName: e,
  18734. id: l + "-" + r,
  18735. isLook: w[r].isLook,
  18736. isOpen: r === 0 ? true : false,
  18737. tool: [],
  18738. });
  18739. }
  18740. var t = w[r].toolChoose;
  18741. for (var k = 0; k < t.length; k++) {
  18742. var tool = t[k].tool[0];
  18743. copyList[l].task[r].tool.push({
  18744. tool: tool,
  18745. isTool: false,
  18746. });
  18747. }
  18748. // this.navId = this.navId ? this.navId : l + "-" + r;
  18749. // this.navId = l + "-" + r;
  18750. }
  18751. }
  18752. this.navList = copyList;
  18753. this.navList[0].isOpen = false;
  18754. this.navList[this.courseType].isOpen = true;
  18755. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18756. } else {
  18757. this.setNavList2();
  18758. }
  18759. },
  18760. setNavList2() {
  18761. for (var l = 0; l < this.chapInfoList.length; l++) {
  18762. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18763. for (var r = 0; r < w.length; r++) {
  18764. this.navList[l].task[r].isLook = w[r].isLook;
  18765. }
  18766. }
  18767. if (
  18768. this.IsLookOpen &&
  18769. !this.navList[this.courseType].task[this.taskCount].isLook
  18770. ) {
  18771. this.openTask(0, 0, "0-0");
  18772. }
  18773. this.$forceUpdate();
  18774. },
  18775. getCourseState(type) {
  18776. let params = {
  18777. cid: this.id,
  18778. };
  18779. this.ajax
  18780. .get(this.$store.state.api + "getCourseState", params)
  18781. .then((res) => {
  18782. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  18783. this.chapInfoList = JSON.parse(res.data[0][0].state);
  18784. console.log('this.chapInfoList',this.chapInfoList);
  18785. this.setNavList();
  18786. this.$forceUpdate();
  18787. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  18788. this.addCourseState(2);
  18789. } else {
  18790. this.addCourseState(1);
  18791. }
  18792. })
  18793. .catch((err) => {
  18794. console.error(err);
  18795. });
  18796. },
  18797. addCourseState(type) {
  18798. let _state = this.chapInfoList;
  18799. // this.courseType this.taskCount
  18800. if (type == 1 || type == 2) {
  18801. for (var i = 0; i < _state.length; i++) {
  18802. let el = _state[i].chapterInfo[0].taskJson;
  18803. for (var j = 0; j < el.length; j++) {
  18804. // if (i == 0 && j == 0) {
  18805. // el[j].isLook = true;
  18806. // } else {
  18807. // el[j].isLook = false;
  18808. // }
  18809. if (
  18810. this.courseType > i ||
  18811. (this.courseType == i && this.taskCount + 1 > j)
  18812. ) {
  18813. el[j].isLook = true;
  18814. } else {
  18815. el[j].isLook = false;
  18816. }
  18817. }
  18818. }
  18819. }
  18820. let params = [
  18821. {
  18822. cid: this.id,
  18823. state: JSON.stringify(_state),
  18824. },
  18825. ];
  18826. this.ajax
  18827. .post(
  18828. this.$store.state.api +
  18829. (type == 1 ? "addCourseState" : "updateCourseSate"),
  18830. params
  18831. )
  18832. .then((res) => {
  18833. if (this.IsLookOpen) {
  18834. this.setNavList();
  18835. }
  18836. if (type == 3 && type == 2) {
  18837. this.getCourseState(1);
  18838. }
  18839. })
  18840. .catch((err) => {
  18841. console.error(err);
  18842. });
  18843. },
  18844. getHomeWork() {
  18845. let params = {
  18846. cid: this.id,
  18847. stage: this.courseType,
  18848. task: this.taskCount,
  18849. uid: this.userid,
  18850. };
  18851. this.ajax
  18852. .get(this.$store.state.api + "selectWork", params)
  18853. .then((res) => {
  18854. if (res.data[0].length > 0) {
  18855. this.studyJuri = JSON.parse(res.data[0][0].content);
  18856. this.isNoHomeWork = true;
  18857. }
  18858. })
  18859. .catch((err) => {
  18860. console.error(err);
  18861. });
  18862. },
  18863. isAssetTypeAnImage(ext) {
  18864. return (
  18865. [
  18866. "png",
  18867. "jpg",
  18868. "jpeg",
  18869. "bmp",
  18870. "gif",
  18871. "webp",
  18872. "psd",
  18873. "svg",
  18874. "tiff",
  18875. ].indexOf(ext) !== -1
  18876. );
  18877. },
  18878. switchVideo(media) {
  18879. this.playerO = {};
  18880. this.playerOptions.poster = "";
  18881. this.playerOptions.sources[0].src = media;
  18882. this.playerO = this.playerOptions;
  18883. },
  18884. onPlayerPlay() {},
  18885. onPlayerTimeupdate(player) {
  18886. let gklog = player.cache_.currentTime; //当前播放的秒数
  18887. let a = player.cache_.duration; //视频的总时长
  18888. let gklog2 = parseInt(gklog);
  18889. // if(gklog2 == '3'){
  18890. // player.pause()
  18891. // setTimeout(()=>{
  18892. // player.currentTime(gklog2+1)
  18893. // player.play()
  18894. // },1000)
  18895. // }
  18896. console.log(" onPlayerTimeupdate!", gklog);
  18897. console.log(" onPlayerTimeupdate!", gklog2);
  18898. },
  18899. lookVedio(u, i) {
  18900. this.isClickNav = "";
  18901. // this.playerOptions.sources[0].src = u;
  18902. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18903. d.sources[0].src = u;
  18904. this.playerO[this.taskCount] = d;
  18905. this.showType = 0;
  18906. // this.isClickNav = "video" + i;
  18907. this.isClickNav = i;
  18908. this.$forceUpdate();
  18909. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  18910. },
  18911. lookText(i, t) {
  18912. this.isClickNav = "";
  18913. // this.text = this.textList[i][t];
  18914. this.text = this.vChapterData[i][t];
  18915. // this.dialogVisible1 = true;
  18916. this.showType = 1;
  18917. // this.isClickNav = "text" + t;
  18918. this.isClickNav = t;
  18919. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  18920. },
  18921. lookTools(i, t) {
  18922. this.chapTools = this.chapToolList[i][t];
  18923. this.dialogVisible2 = true;
  18924. },
  18925. async openFile(f) {
  18926. this.pptImgUrl = "";
  18927. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18928. if (
  18929. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  18930. -1
  18931. ) {
  18932. let _uuurl = await this.checkLink(f);
  18933. this.pptImgUrl =
  18934. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18935. this.showPDF = false;
  18936. this.dialogVisible3 = true;
  18937. } else if (
  18938. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18939. ) {
  18940. this.pptImgUrl = f;
  18941. this.showPDF = true;
  18942. this.dialogVisible3 = true;
  18943. }
  18944. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18945. },
  18946. openTable(f) {
  18947. this.tableJson = JSON.parse(f.works);
  18948. this.dialogVisibleTable2 = true;
  18949. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18950. },
  18951. openWord(f) {
  18952. this.tableJson = JSON.parse(f.works);
  18953. this.dialogVisibleTable3 = true;
  18954. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  18955. },
  18956. doUrl(url, i) {
  18957. this.isClickNav = "";
  18958. this.pptImgUrl1 = "";
  18959. this.showType = 2;
  18960. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  18961. url = "https://" + url;
  18962. }
  18963. this.pptImgUrl1 = "";
  18964. setTimeout(() => {
  18965. this.pptImgUrl1 = url;
  18966. }, 500);
  18967. // this.isClickNav = "line" + i;
  18968. this.isClickNav = i;
  18969. this.$forceUpdate();
  18970. },
  18971. checkPhoto(f, i) {
  18972. this.showType = 4;
  18973. this.pptImgUrl1 = f.url;
  18974. this.isClickNav = i;
  18975. this.$forceUpdate();
  18976. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  18977. },
  18978. async downFile(f, i) {
  18979. this.isClickNav = "";
  18980. this.pptImgUrl1 = "";
  18981. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  18982. if (
  18983. a.indexOf(
  18984. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  18985. ) != -1
  18986. ) {
  18987. let _uuurl = await this.checkLink(f.url);
  18988. this.pptImgUrl1 =
  18989. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18990. // this.dialogVisible3 = true;
  18991. this.showType = 2;
  18992. } else if (
  18993. this.isAssetTypeAnImage(
  18994. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  18995. )
  18996. ) {
  18997. this.showType = 4;
  18998. this.pptImgUrl1 = f.url;
  18999. } else if (
  19000. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19001. "PDF"
  19002. ) {
  19003. this.pptImgUrl1 = f.url;
  19004. // this.dialogVisible3 = true;
  19005. this.showType = 3;
  19006. } else {
  19007. window.open(this.file[i].url);
  19008. }
  19009. // this.isClickNav = "word" + i;
  19010. this.isClickNav = i;
  19011. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  19012. },
  19013. downFileList(i) {
  19014. window.open(this.noImgList[i].url);
  19015. },
  19016. openAddWork() {
  19017. this.dialogVisible = true;
  19018. },
  19019. addBzWorks() {
  19020. let params = [
  19021. {
  19022. uid: this.userid,
  19023. cid: this.id,
  19024. stage: this.courseType,
  19025. task: this.taskCount,
  19026. tool: this.toolindex,
  19027. content: JSON.stringify(this.eScore),
  19028. type: 6,
  19029. },
  19030. ];
  19031. this.ajax
  19032. .post(this.$store.state.api + "addCourseWorks", params)
  19033. .then((res) => {
  19034. this.$message({
  19035. message: "提交成功",
  19036. type: "success",
  19037. });
  19038. this.eScore = { eBzText: "", eStar: [] };
  19039. this.studentEvalDialogVisible = false;
  19040. this.selectSWorks();
  19041. })
  19042. .catch((err) => {
  19043. this.$message.error("提交失败");
  19044. console.error(err);
  19045. });
  19046. },
  19047. addBzWorksTeacher() {
  19048. let params = [
  19049. {
  19050. uid: this.sStudent.userid,
  19051. cid: this.id,
  19052. stage: this.courseType,
  19053. task: this.taskCount,
  19054. tool: this.toolindex,
  19055. content: JSON.stringify(this.eScore),
  19056. type: 6,
  19057. },
  19058. ];
  19059. this.ajax
  19060. .post(this.$store.state.api + "addCourseWorks", params)
  19061. .then((res) => {
  19062. this.$message({
  19063. message: "提交成功",
  19064. type: "success",
  19065. });
  19066. this.eScore = { eBzText: "", eStar: [] };
  19067. this.studentEvalDialogVisibleTeacher = false;
  19068. this.selectSWorks();
  19069. })
  19070. .catch((err) => {
  19071. this.$message.error("提交失败");
  19072. console.error(err);
  19073. });
  19074. },
  19075. addStudentAsk() {
  19076. if (!this.radio.length) {
  19077. this.$message.error("请选择选项");
  19078. return;
  19079. }
  19080. for (var i = 0; i < this.askJson.askCount; i++) {
  19081. if (
  19082. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  19083. (this.radio[i] !== 0 && !this.radio[i])
  19084. ) {
  19085. this.$message.error("请选择选项");
  19086. return;
  19087. }
  19088. }
  19089. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  19090. let params = [
  19091. {
  19092. uid: this.userid,
  19093. cid: this.id,
  19094. stage: this.courseType,
  19095. task: this.taskCount,
  19096. tool: this.toolindex,
  19097. content: JSON.stringify(this.askList),
  19098. type: 2,
  19099. },
  19100. ];
  19101. this.ajax
  19102. .post(this.$store.state.api + "addCourseWorks", params)
  19103. .then((res) => {
  19104. this.$message({
  19105. message: "提交成功",
  19106. type: "success",
  19107. });
  19108. this.askList = [];
  19109. this.dialogVisible5 = false;
  19110. this.selectStudent();
  19111. this.selectSWorks();
  19112. this.selectSLook();
  19113. })
  19114. .catch((err) => {
  19115. this.$message.error("提交失败");
  19116. console.error(err);
  19117. });
  19118. },
  19119. addStudentAskTeacher() {
  19120. if (!this.radio.length) {
  19121. this.$message.error("请选择选项");
  19122. return;
  19123. }
  19124. for (var i = 0; i < this.askJson.askCount; i++) {
  19125. if (
  19126. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  19127. (this.radio[i] !== 0 && !this.radio[i])
  19128. ) {
  19129. this.$message.error("请选择选项");
  19130. return;
  19131. }
  19132. }
  19133. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  19134. let params = [
  19135. {
  19136. uid: this.sStudent.userid,
  19137. cid: this.id,
  19138. stage: this.courseType,
  19139. task: this.taskCount,
  19140. tool: this.toolindex,
  19141. content: JSON.stringify(this.askList),
  19142. type: 2,
  19143. },
  19144. ];
  19145. this.ajax
  19146. .post(this.$store.state.api + "addCourseWorks", params)
  19147. .then((res) => {
  19148. this.$message({
  19149. message: "提交成功",
  19150. type: "success",
  19151. });
  19152. this.askList = [];
  19153. this.dialogVisible5Teacher = false;
  19154. this.selectStudent();
  19155. this.selectSWorks();
  19156. this.selectSLook();
  19157. })
  19158. .catch((err) => {
  19159. this.$message.error("提交失败");
  19160. console.error(err);
  19161. });
  19162. },
  19163. addStudentTest() {
  19164. if (!this.radio.length) {
  19165. this.$message.error("请选择选项");
  19166. return;
  19167. }
  19168. for (var i = 0; i < this.testJson.testCount; i++) {
  19169. if (
  19170. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  19171. (this.radio[i] !== 0 && !this.radio[i])
  19172. ) {
  19173. this.$message.error("请选择选项");
  19174. return;
  19175. }
  19176. }
  19177. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  19178. let params = [
  19179. {
  19180. uid: this.userid,
  19181. cid: this.id,
  19182. stage: this.courseType,
  19183. task: this.taskCount,
  19184. tool: this.toolindex,
  19185. content: JSON.stringify(this.askList),
  19186. type: 8,
  19187. },
  19188. ];
  19189. this.ajax
  19190. .post(this.$store.state.api + "addCourseWorks", params)
  19191. .then((res) => {
  19192. this.$message({
  19193. message: "提交成功",
  19194. type: "success",
  19195. });
  19196. this.askList = [];
  19197. this.dialogVisibleChoice = false;
  19198. this.selectStudent();
  19199. this.selectSWorks();
  19200. this.selectSLook();
  19201. })
  19202. .catch((err) => {
  19203. this.$message.error("提交失败");
  19204. console.error(err);
  19205. });
  19206. },
  19207. addStudentTestTeacher() {
  19208. if (!this.radio.length) {
  19209. this.$message.error("请选择选项");
  19210. return;
  19211. }
  19212. for (var i = 0; i < this.testJson.testCount; i++) {
  19213. if (
  19214. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  19215. (this.radio[i] !== 0 && !this.radio[i])
  19216. ) {
  19217. this.$message.error("请选择选项");
  19218. return;
  19219. }
  19220. }
  19221. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  19222. let params = [
  19223. {
  19224. uid: this.sStudent.userid,
  19225. cid: this.id,
  19226. stage: this.courseType,
  19227. task: this.taskCount,
  19228. tool: this.toolindex,
  19229. content: JSON.stringify(this.askList),
  19230. type: 8,
  19231. },
  19232. ];
  19233. this.ajax
  19234. .post(this.$store.state.api + "addCourseWorks", params)
  19235. .then((res) => {
  19236. this.$message({
  19237. message: "提交成功",
  19238. type: "success",
  19239. });
  19240. this.askList = [];
  19241. this.dialogVisibleChoiceTeacher = false;
  19242. this.selectStudent();
  19243. this.selectSWorks();
  19244. this.selectSLook();
  19245. })
  19246. .catch((err) => {
  19247. this.$message.error("提交失败");
  19248. console.error(err);
  19249. });
  19250. },
  19251. addWork() {
  19252. if (this.studyJuri[0].content == "") {
  19253. this.$message.error("请将信息填写完整");
  19254. return;
  19255. } else if (this.studyJuri[0].cover.length == 0) {
  19256. this.$message.error("请将信息填写完整");
  19257. return;
  19258. } else if (this.studyJuri[0].upVedio.length == 0) {
  19259. this.$message.error("请将信息填写完整");
  19260. return;
  19261. }
  19262. if (this.isNoHomeWork) {
  19263. this.$confirm(
  19264. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  19265. "提示",
  19266. {
  19267. confirmButtonText: "确定",
  19268. cancelButtonText: "取消",
  19269. type: "warning",
  19270. }
  19271. )
  19272. .then(() => {
  19273. let params = [
  19274. {
  19275. uid: this.userid,
  19276. cid: this.id,
  19277. stage: this.courseType,
  19278. task: this.taskCount,
  19279. content: JSON.stringify(this.studyJuri),
  19280. },
  19281. ];
  19282. this.ajax
  19283. .post(this.$store.state.api + "addWorks", params)
  19284. .then((res) => {
  19285. this.$message({
  19286. message: "提交成功",
  19287. type: "success",
  19288. });
  19289. this.isNoHomeWork = true;
  19290. this.dialogVisible = false;
  19291. })
  19292. .catch((err) => {
  19293. this.$message.error("提交失败");
  19294. console.error(err);
  19295. });
  19296. })
  19297. .catch(() => {});
  19298. } else {
  19299. let params = [
  19300. {
  19301. uid: this.userid,
  19302. cid: this.id,
  19303. stage: this.courseType,
  19304. task: this.taskCount,
  19305. content: JSON.stringify(this.studyJuri),
  19306. },
  19307. ];
  19308. this.ajax
  19309. .post(this.$store.state.api + "addWorks", params)
  19310. .then((res) => {
  19311. this.$message({
  19312. message: "提交成功",
  19313. type: "success",
  19314. });
  19315. this.isNoHomeWork = true;
  19316. this.dialogVisible = false;
  19317. })
  19318. .catch((err) => {
  19319. this.$message.error("提交失败");
  19320. console.error(err);
  19321. });
  19322. }
  19323. },
  19324. selectCount() {
  19325. let params = {
  19326. cid: this.id,
  19327. chid: this.courseType,
  19328. uid: this.userid,
  19329. };
  19330. this.ajax
  19331. .get(this.$store.state.api + "selectToolsCount", params)
  19332. .then((res) => {
  19333. for (var i = 0; i < res.data[0].length; i++) {
  19334. if (res.data[0][i].tools == 1) {
  19335. this.wbCount = res.data[0][i].count;
  19336. } else if (res.data[0][i].tools == 2) {
  19337. this.wordCount = res.data[0][i].count;
  19338. } else if (res.data[0][i].tools == 3) {
  19339. this.mindCount = res.data[0][i].count;
  19340. } else if (res.data[0][i].tools == 4) {
  19341. this.askCount = res.data[0][i].count;
  19342. } else if (res.data[0][i].tools == 6) {
  19343. this.noteCount = res.data[0][i].count;
  19344. } else if (res.data[0][i].tools == 7) {
  19345. this.mindNetWorkCount = res.data[0][i].count;
  19346. } else if (res.data[0][i].tools == 8) {
  19347. this.libraryCount = res.data[0][i].count;
  19348. } else if (res.data[0][i].tools == 16) {
  19349. this.workCount = res.data[0][i].count;
  19350. } else if (res.data[0][i].tools == 10) {
  19351. this.timeCount = res.data[0][i].count;
  19352. } else if (res.data[0][i].tools == 15) {
  19353. this.answerCount = res.data[0][i].count;
  19354. } else if (res.data[0][i].tools == 18) {
  19355. this.trainCount = res.data[0][i].count;
  19356. }
  19357. }
  19358. })
  19359. .catch((err) => {
  19360. console.error(err);
  19361. });
  19362. },
  19363. openTools(t, i, index, c, sName,id) {
  19364. var z = JSON.parse(c);
  19365. this.noteName = sName;
  19366. if (t == 4) {
  19367. this.radio = [];
  19368. this.isAnswer = false;
  19369. let b = z[0].anwer;
  19370. this.radio = b;
  19371. this.askJson = z[0].askJson;
  19372. this.isAnswer = true;
  19373. this.dialogVisible5 = true;
  19374. } else if (t == 45) {
  19375. this.radio = [];
  19376. this.isAnswer = false;
  19377. let b = z[0].anwer;
  19378. this.radio = b;
  19379. this.testJson = z[0].testJson;
  19380. this.isAnswer = true;
  19381. this.dialogVisibleChoice = true;
  19382. }else if(t == 69){
  19383. this.oldEnglishJson1 = {}
  19384. this.oldEnglishJson = {}
  19385. this.englishList1 = {}
  19386. this.newEngIndex = -1;
  19387. this.isNoUserid = false;
  19388. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19389. .toolChoose[i].englishList;
  19390. this.oldEnglishJson = z;
  19391. this.engWid = id;
  19392. this.newEnglishList = { engTitle:"",engText:"" }
  19393. this.newEnglishList1 = []
  19394. this.selectEngC(id,z);
  19395. }else if(t == 62){
  19396. this.videoType = 1;
  19397. this.videoJson = {};
  19398. this.videoJson = JSON.parse(c);
  19399. // this.videoJson =
  19400. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19401. // index
  19402. // ].toolChoose[i].videoJson;
  19403. this.dialogVisibleVideo = true;
  19404. }
  19405. // else if (t == 15) {
  19406. // this.answerQ = "";
  19407. // this.questionAnswer = "";
  19408. // this.answerQ = z[0].answerTitle;
  19409. // this.questionAnswer = z[0].answer;
  19410. // this.answerDialogVisible = true;
  19411. // }
  19412. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  19413. },
  19414. fastText(p, t) {
  19415. if (t == 1) {
  19416. this.commentText += p;
  19417. } else {
  19418. this.eScore.eBzText += p;
  19419. }
  19420. },
  19421. addTools(t, i, index) {
  19422. var a = 0;
  19423. // this.taskCount = index;
  19424. this.toolindex = i;
  19425. if (t == 1) {
  19426. if (this.wbCount > 0) {
  19427. this.updateCount(this.wbCount, t);
  19428. } else {
  19429. this.wbCount++;
  19430. a = this.wbCount;
  19431. this.toolsCount(a, t);
  19432. }
  19433. window.parent.postMessage(
  19434. {
  19435. tools: "1",
  19436. cid: this.id,
  19437. stage: this.courseType,
  19438. task: this.taskCount,
  19439. tool: i,
  19440. },
  19441. "*"
  19442. );
  19443. } else if (t == 2) {
  19444. if (this.wordCount > 0) {
  19445. this.updateCount(this.wordCount, t);
  19446. } else {
  19447. this.wordCount++;
  19448. a = this.wordCount;
  19449. this.toolsCount(a, t);
  19450. }
  19451. window.parent.postMessage({ tools: "2" }, "*");
  19452. } else if (t == 3) {
  19453. if (this.mindCount > 0) {
  19454. this.updateCount(this.mindCount, t);
  19455. } else {
  19456. this.mindCount++;
  19457. a = this.mindCount;
  19458. this.toolsCount(a, t);
  19459. }
  19460. window.parent.postMessage(
  19461. {
  19462. tools: "3",
  19463. cid: this.id,
  19464. stage: this.courseType,
  19465. task: this.taskCount,
  19466. tool: i,
  19467. },
  19468. "*"
  19469. );
  19470. } else if (t == 4) {
  19471. this.radio = [];
  19472. this.noteName = "";
  19473. this.isAnswer = false;
  19474. if (this.askCount > 0) {
  19475. this.updateCount(this.askCount, t);
  19476. } else {
  19477. this.askCount++;
  19478. a = this.askCount;
  19479. this.toolsCount(a, t);
  19480. }
  19481. if (!this.dialogVisible2) {
  19482. this.askJson.askJson =
  19483. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19484. index
  19485. ].toolChoose[i].askJson;
  19486. this.askJson.askTitle =
  19487. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19488. index
  19489. ].toolChoose[i].askTitle;
  19490. this.askJson.askCount =
  19491. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19492. index
  19493. ].toolChoose[i].askCount;
  19494. } else {
  19495. this.askJson.askJson = this.chapTools.askJson.askJson;
  19496. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19497. this.askJson.askCount = this.chapTools.askJson.askCount;
  19498. }
  19499. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19500. if (this.askJson.askJson[k].type == "2") {
  19501. this.radio.push([]);
  19502. } else {
  19503. this.radio.push("");
  19504. }
  19505. }
  19506. this.dialogVisible5 = true;
  19507. // window.parent.postMessage({ tools: "4" }, "*");
  19508. } else if (t == 45) {
  19509. this.noteName = "";
  19510. this.radio = [];
  19511. this.isAnswer = false;
  19512. if (this.askCount > 0) {
  19513. this.updateCount(this.askCount, t);
  19514. } else {
  19515. this.askCount++;
  19516. a = this.askCount;
  19517. this.toolsCount(a, t);
  19518. }
  19519. this.testJson =
  19520. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19521. index
  19522. ].toolChoose[i].testJson;
  19523. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19524. if (this.testJson.testJson[k].type == "2") {
  19525. this.radio.push([]);
  19526. } else {
  19527. this.radio.push("");
  19528. }
  19529. }
  19530. this.dialogVisibleChoice = true;
  19531. // window.parent.postMessage({ tools: "4" }, "*");
  19532. } else if (t == 5) {
  19533. if (this.scoreCount > 0) {
  19534. this.updateCount(this.scoreCount, t);
  19535. } else {
  19536. this.scoreCount++;
  19537. a = this.scoreCount;
  19538. this.toolsCount(a, t);
  19539. }
  19540. this.dialogVisible4 = true;
  19541. // window.parent.postMessage({ tools: "5" }, "*");
  19542. } else if (t == 6) {
  19543. if (this.noteCount > 0) {
  19544. this.updateCount(this.noteCount, t);
  19545. } else {
  19546. this.noteCount++;
  19547. a = this.noteCount;
  19548. this.toolsCount(a, t);
  19549. }
  19550. window.parent.postMessage(
  19551. {
  19552. tools: "6",
  19553. cid: this.id,
  19554. stage: this.courseType,
  19555. task: this.taskCount,
  19556. tool: i,
  19557. },
  19558. "*"
  19559. );
  19560. } else if (t == 7) {
  19561. if (this.mindNetWorkCount > 0) {
  19562. this.updateCount(this.mindNetWorkCount, t);
  19563. } else {
  19564. this.mindNetWorkCount++;
  19565. a = this.mindNetWorkCount;
  19566. this.toolsCount(a, t);
  19567. }
  19568. window.parent.postMessage(
  19569. {
  19570. tools: "7",
  19571. cid: this.id,
  19572. stage: this.courseType,
  19573. task: this.taskCount,
  19574. tool: i,
  19575. },
  19576. "*"
  19577. );
  19578. } else if (t == 16) {
  19579. if (this.workCount > 0) {
  19580. this.updateCount(this.workCount, t);
  19581. } else {
  19582. this.workCount++;
  19583. a = this.workCount;
  19584. this.toolsCount(a, t);
  19585. }
  19586. this.dialogVisible = true;
  19587. } else if (t == 50) {
  19588. if (this.tType == 2) {
  19589. this.$message.error("不支持学生使用");
  19590. return;
  19591. }
  19592. this.plworkFile = [];
  19593. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19594. if (!this.uploadCid) {
  19595. this.$message.error(
  19596. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19597. );
  19598. return;
  19599. }
  19600. // this.uploadCid =
  19601. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19602. // index
  19603. // ].toolChoose[i].uploadJson[0];
  19604. this.selectUploadStudent(2);
  19605. } else if (t == 8) {
  19606. if (this.libraryCount > 0) {
  19607. this.updateCount(this.libraryCount, t);
  19608. } else {
  19609. this.libraryCount++;
  19610. a = this.libraryCount;
  19611. this.toolsCount(a, t);
  19612. }
  19613. window.parent.postMessage({ tools: "8" }, "*");
  19614. } else if (t == 17) {
  19615. if (this.libraryCount > 0) {
  19616. this.updateCount(this.libraryCount, t);
  19617. } else {
  19618. this.libraryCount++;
  19619. a = this.libraryCount;
  19620. this.toolsCount(a, t);
  19621. }
  19622. window.parent.postMessage({ tools: "17" }, "*");
  19623. } else if (t == 18) {
  19624. if (this.trainCount > 0) {
  19625. this.updateCount(this.trainCount, t);
  19626. } else {
  19627. this.trainCount++;
  19628. a = this.trainCount;
  19629. this.toolsCount(a, t);
  19630. }
  19631. window.parent.postMessage({ tools: "18" }, "*");
  19632. } else if (t == 10) {
  19633. if (this.timeCount > 0) {
  19634. this.updateCount(this.timeCount, t);
  19635. } else {
  19636. this.timeCount++;
  19637. a = this.timeCount;
  19638. this.toolsCount(a, t);
  19639. }
  19640. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19641. .taskJson[index].toolChoose[i].preTime
  19642. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19643. .toolChoose[i].preTime
  19644. : "";
  19645. this.timeDialogVisible = true;
  19646. } else if (t == 15) {
  19647. this.answerQ = "";
  19648. this.questionAnswer = "";
  19649. if (this.answerCount > 0) {
  19650. this.updateCount(this.answerCount, t);
  19651. } else {
  19652. this.answerCount++;
  19653. a = this.answerCount;
  19654. this.toolsCount(a, t);
  19655. }
  19656. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19657. .taskJson[index].toolChoose[i].answerQ
  19658. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19659. .toolChoose[i].answerQ
  19660. : "";
  19661. this.answerDialogVisible = true;
  19662. } else if (t == 21) {
  19663. window.parent.postMessage({ tools: "21" }, "*");
  19664. } else if (t == 22) {
  19665. window.parent.postMessage({ tools: "22" }, "*");
  19666. } else if (t == 23) {
  19667. window.parent.postMessage({ tools: "23" }, "*");
  19668. } else if (t == 24) {
  19669. window.parent.postMessage({ tools: "24" }, "*");
  19670. } else if (t == 25) {
  19671. window.parent.postMessage({ tools: "25" }, "*");
  19672. } else if (t == 31) {
  19673. window.parent.postMessage({ tools: "31" }, "*");
  19674. } else if (t == 28) {
  19675. window.parent.postMessage({ tools: "28" }, "*");
  19676. } else if (t == 37) {
  19677. window.parent.postMessage({ tools: "37" }, "*");
  19678. } else if (t == 38) {
  19679. window.parent.postMessage({ tools: "38" }, "*");
  19680. } else if (t == 39) {
  19681. window.parent.postMessage({ tools: "39" }, "*");
  19682. } else if (t == 32) {
  19683. window.parent.postMessage({ tools: "32" }, "*");
  19684. } else if (t == 66) {
  19685. window.parent.postMessage({ tools: "66" }, "*");
  19686. } else if (t == 67) {
  19687. window.parent.postMessage({ tools: "67" }, "*");
  19688. } else if (t == 68) {
  19689. window.parent.postMessage({ tools: "68" }, "*");
  19690. } else if (t == 57) {
  19691. // window.parent.postMessage({ tools: "57" }, "*");
  19692. window.parent.postMessage(
  19693. {
  19694. tools: "57u",
  19695. cid: this.id,
  19696. stage: this.courseType,
  19697. task: this.taskCount,
  19698. tool: i,
  19699. },
  19700. "*"
  19701. );
  19702. } else if (t == 58) {
  19703. window.parent.postMessage({ tools: "58" }, "*");
  19704. } else if (t == 59) {
  19705. window.parent.postMessage({ tools: "59" }, "*");
  19706. } else if (t == 60) {
  19707. window.parent.postMessage({ tools: "60" }, "*");
  19708. } else if (t == 61) {
  19709. window.parent.postMessage({ tools: "61" }, "*");
  19710. } else if (t == 63) {
  19711. window.parent.postMessage({ tools: "63" }, "*");
  19712. } else if (t == 71) {
  19713. window.parent.postMessage({ tools: "71" }, "*");
  19714. } else if (t == 69) {
  19715. if (this.worksStudent[i].length) {
  19716. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19717. if (this.userid == this.worksStudent[i][k].userid) {
  19718. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  19719. break;
  19720. } else {
  19721. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19722. }
  19723. }
  19724. } else {
  19725. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  19726. }
  19727. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  19728. .taskJson[index].toolChoose[i].englishList
  19729. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19730. .toolChoose[i].englishList
  19731. : {};
  19732. this.englishToolIndex = i;
  19733. this.myAnList = this.myAnswerList1;
  19734. this.engDialogVisible = true;
  19735. } else if (t == 70) {
  19736. if (this.worksStudent[i].length) {
  19737. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19738. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  19739. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  19740. break;
  19741. } else {
  19742. this.englishVoiceJsonWork = [];
  19743. }
  19744. }
  19745. } else {
  19746. this.englishVoiceJsonWork = [];
  19747. }
  19748. let englishVoiceJson = {}
  19749. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19750. .taskJson[index].toolChoose[i].englishVoiceJson
  19751. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19752. .toolChoose[i].englishVoiceJson
  19753. : {};
  19754. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  19755. this.EnglishVoiceDialog = true;
  19756. } else if (t == 65) {
  19757. if (this.tType == 2) {
  19758. this.$message.error("不支持学生使用");
  19759. return;
  19760. }
  19761. this.uploadCid = this.tcid;
  19762. if (!this.uploadCid) {
  19763. this.$message.error(
  19764. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  19765. );
  19766. return;
  19767. }
  19768. this.selectPickStudent();
  19769. } else if (t == 26) {
  19770. window.parent.postMessage(
  19771. {
  19772. tools: "26",
  19773. cid: this.id,
  19774. stage: this.courseType,
  19775. task: this.taskCount,
  19776. tool: i,
  19777. },
  19778. "*"
  19779. );
  19780. } else if (t == 40) {
  19781. if (this.evalCount > 0) {
  19782. this.updateCount(this.evalCount, t);
  19783. } else {
  19784. this.evalCount++;
  19785. a = this.evalCount;
  19786. this.toolsCount(a, t);
  19787. }
  19788. this.eScore = { eBzText: "", eStar: [] };
  19789. if (this.worksStudent[i].length) {
  19790. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19791. if (this.userid == this.worksStudent[i][k].userid) {
  19792. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  19793. this.rateJson =
  19794. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19795. index
  19796. ].toolChoose[i].rateJson;
  19797. break;
  19798. } else {
  19799. this.rateJson =
  19800. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19801. index
  19802. ].toolChoose[i].rateJson;
  19803. }
  19804. }
  19805. } else {
  19806. this.rateJson =
  19807. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19808. index
  19809. ].toolChoose[i].rateJson;
  19810. }
  19811. this.isStar = false;
  19812. this.studentEvalDialogVisible = true;
  19813. } else if (t == 41) {
  19814. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19815. .taskJson[index].toolChoose[i].selectJson
  19816. ? JSON.parse(
  19817. JSON.stringify(
  19818. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19819. index
  19820. ].toolChoose[i].selectJson
  19821. )
  19822. )
  19823. : { url: "", select: [], answer: [] };
  19824. if (this.worksStudent[i].length) {
  19825. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19826. if (this.userid == this.worksStudent[i][k].userid) {
  19827. var a = this.worksStudent[i][k].works.split(",");
  19828. for (var ki = 0; ki < a.length; ki++) {
  19829. a[ki] = parseInt(a[ki]);
  19830. }
  19831. this.selectAnswer = {
  19832. answer: a,
  19833. stu: this.worksStudent[i][k].sName,
  19834. };
  19835. break;
  19836. } else {
  19837. this.selectAnswer = { answer: [], stu: "" };
  19838. }
  19839. }
  19840. } else {
  19841. this.selectAnswer = { answer: [], stu: "" };
  19842. }
  19843. this.isSelect = false;
  19844. this.dialogVisibleSelect = true;
  19845. } else if (t == 44) {
  19846. window.parent.postMessage({ tools: "44" }, "*");
  19847. } else if (t == 47) {
  19848. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  19849. .taskJson[index].toolChoose[i].sentenceList
  19850. ? JSON.parse(
  19851. JSON.stringify(
  19852. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19853. index
  19854. ].toolChoose[i].sentenceList
  19855. )
  19856. )
  19857. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  19858. for (var q = 0; q < this.sentenceList.length; q++) {
  19859. this.sentenceList[q].chooseSenList = [];
  19860. this.sentenceList[q].addChangeSen = [];
  19861. this.sentenceList[q].addChangeSen = JSON.parse(
  19862. JSON.stringify(this.sentenceList[q].addSentence)
  19863. );
  19864. this.sentenceList[q].chooseSenList.length =
  19865. this.sentenceList[q].rightAnswer.length;
  19866. }
  19867. this.dialogVisibleSentence = true;
  19868. } else if (t == 48) {
  19869. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19870. .taskJson[index].toolChoose[i].tableJson
  19871. ? JSON.parse(
  19872. JSON.stringify(
  19873. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19874. index
  19875. ].toolChoose[i].tableJson
  19876. )
  19877. )
  19878. : { text: "" };
  19879. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  19880. if (this.worksStudent[i].length) {
  19881. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19882. if (this.userid == this.worksStudent[i][k].userid) {
  19883. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  19884. break;
  19885. }
  19886. }
  19887. }
  19888. this.dialogVisibleTable = true;
  19889. } else if (t == 52) {
  19890. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19891. .taskJson[index].toolChoose[i].wordJson
  19892. ? JSON.parse(
  19893. JSON.stringify(
  19894. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19895. index
  19896. ].toolChoose[i].wordJson
  19897. )
  19898. )
  19899. : { text: "" };
  19900. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  19901. if (this.worksStudent[i].length) {
  19902. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19903. if (this.userid == this.worksStudent[i][k].userid) {
  19904. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19905. break;
  19906. }
  19907. }
  19908. }
  19909. this.dialogVisibleWord = true;
  19910. } else if (t == 49) {
  19911. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  19912. return
  19913. }
  19914. this.groupJson =
  19915. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19916. index
  19917. ].toolChoose[i].groupJson;
  19918. this.islock = this.groupJson.islock == 1 ? true : false;
  19919. this.dialogVisibleGroup = true;
  19920. } else if (t == 62) {
  19921. this.videoType = 0;
  19922. this.videoJson = {};
  19923. this.videoJson =
  19924. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19925. index
  19926. ].toolChoose[i].videoJson;
  19927. this.dialogVisibleVideo = true;
  19928. }
  19929. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  19930. },
  19931. teacherWorkSubmit(t, i, index, s) {
  19932. this.sStudent = s;
  19933. this.toolindex = i;
  19934. this.sTool = t;
  19935. if (this.tType !== "1" && this.tType !== "4") {
  19936. return;
  19937. }
  19938. if (t == 16 || t == 32 || t == 50) {
  19939. this.dialogVisibleWorks = true;
  19940. } else if (t == 15) {
  19941. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  19942. .taskJson[index].toolChoose[i].answerQ
  19943. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19944. .toolChoose[i].answerQ
  19945. : "";
  19946. this.questionAnswer = "";
  19947. this.answerDialogVisibleTeacher = true; //问答
  19948. } else if (t == 52) {
  19949. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  19950. .taskJson[index].toolChoose[i].wordJson
  19951. ? JSON.parse(
  19952. JSON.stringify(
  19953. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19954. index
  19955. ].toolChoose[i].wordJson
  19956. )
  19957. )
  19958. : { text: "" };
  19959. if (this.worksStudent[i].length) {
  19960. for (var k = 0; k < this.worksStudent[i].length; k++) {
  19961. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  19962. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  19963. break;
  19964. }
  19965. }
  19966. }
  19967. this.dialogVisibleWordTeacher = true; //文档
  19968. } else if (t == 4) {
  19969. this.radio = [];
  19970. this.noteName = "";
  19971. this.isAnswer = false;
  19972. if (this.askCount > 0) {
  19973. this.updateCount(this.askCount, t);
  19974. } else {
  19975. this.askCount++;
  19976. a = this.askCount;
  19977. this.toolsCount(a, t);
  19978. }
  19979. if (!this.dialogVisible2) {
  19980. this.askJson.askJson =
  19981. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19982. index
  19983. ].toolChoose[i].askJson;
  19984. this.askJson.askTitle =
  19985. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19986. index
  19987. ].toolChoose[i].askTitle;
  19988. this.askJson.askCount =
  19989. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19990. index
  19991. ].toolChoose[i].askCount;
  19992. } else {
  19993. this.askJson.askJson = this.chapTools.askJson.askJson;
  19994. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19995. this.askJson.askCount = this.chapTools.askJson.askCount;
  19996. }
  19997. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19998. if (this.askJson.askJson[k].type == "2") {
  19999. this.radio.push([]);
  20000. } else {
  20001. this.radio.push("");
  20002. }
  20003. }
  20004. this.dialogVisible5Teacher = true;
  20005. } else if (t == 45) {
  20006. this.noteName = "";
  20007. this.radio = [];
  20008. this.isAnswer = false;
  20009. if (this.askCount > 0) {
  20010. this.updateCount(this.askCount, t);
  20011. } else {
  20012. this.askCount++;
  20013. a = this.askCount;
  20014. this.toolsCount(a, t);
  20015. }
  20016. this.testJson =
  20017. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20018. index
  20019. ].toolChoose[i].testJson;
  20020. for (var k = 0; k < this.testJson.testJson.length; k++) {
  20021. if (this.testJson.testJson[k].type == "2") {
  20022. this.radio.push([]);
  20023. } else {
  20024. this.radio.push("");
  20025. }
  20026. }
  20027. this.dialogVisibleChoiceTeacher = true;
  20028. } else if (t == 41) {
  20029. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  20030. .taskJson[index].toolChoose[i].selectJson
  20031. ? JSON.parse(
  20032. JSON.stringify(
  20033. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20034. index
  20035. ].toolChoose[i].selectJson
  20036. )
  20037. )
  20038. : { url: "", select: [], answer: [] };
  20039. if (this.worksStudent[i].length) {
  20040. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20041. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  20042. var a = this.worksStudent[i][k].works.split(",");
  20043. for (var ki = 0; ki < a.length; ki++) {
  20044. a[ki] = parseInt(a[ki]);
  20045. }
  20046. this.selectAnswer = {
  20047. answer: a,
  20048. stu: this.worksStudent[i][k].sName,
  20049. };
  20050. break;
  20051. } else {
  20052. this.selectAnswer = { answer: [], stu: "" };
  20053. }
  20054. }
  20055. } else {
  20056. this.selectAnswer = { answer: [], stu: "" };
  20057. }
  20058. this.isSelect = false;
  20059. this.dialogVisibleSelectTeacher = true;
  20060. } else if (t == 47) {
  20061. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  20062. .taskJson[index].toolChoose[i].sentenceList
  20063. ? JSON.parse(
  20064. JSON.stringify(
  20065. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20066. index
  20067. ].toolChoose[i].sentenceList
  20068. )
  20069. )
  20070. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  20071. for (var q = 0; q < this.sentenceList.length; q++) {
  20072. this.sentenceList[q].chooseSenList = [];
  20073. this.sentenceList[q].addChangeSen = [];
  20074. this.sentenceList[q].addChangeSen = JSON.parse(
  20075. JSON.stringify(this.sentenceList[q].addSentence)
  20076. );
  20077. this.sentenceList[q].chooseSenList.length =
  20078. this.sentenceList[q].rightAnswer.length;
  20079. }
  20080. this.dialogVisibleSentenceTeacher = true;
  20081. } else if (t == 48) {
  20082. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  20083. .taskJson[index].toolChoose[i].tableJson
  20084. ? JSON.parse(
  20085. JSON.stringify(
  20086. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20087. index
  20088. ].toolChoose[i].tableJson
  20089. )
  20090. )
  20091. : { text: "" };
  20092. if (this.worksStudent[i].length) {
  20093. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20094. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  20095. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  20096. break;
  20097. }
  20098. }
  20099. }
  20100. this.dialogVisibleTableTeacher = true;
  20101. } else if (t == 40) {
  20102. if (this.evalCount > 0) {
  20103. this.updateCount(this.evalCount, t);
  20104. } else {
  20105. this.evalCount++;
  20106. a = this.evalCount;
  20107. this.toolsCount(a, t);
  20108. }
  20109. this.eScore = { eBzText: "", eStar: [] };
  20110. if (this.worksStudent[i].length) {
  20111. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20112. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  20113. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  20114. this.rateJson =
  20115. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20116. index
  20117. ].toolChoose[i].rateJson;
  20118. break;
  20119. } else {
  20120. this.rateJson =
  20121. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20122. index
  20123. ].toolChoose[i].rateJson;
  20124. }
  20125. }
  20126. } else {
  20127. this.rateJson =
  20128. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20129. index
  20130. ].toolChoose[i].rateJson;
  20131. }
  20132. this.isStar = false;
  20133. this.studentEvalDialogVisibleTeacher = true;
  20134. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  20135. window.parent.postMessage(
  20136. {
  20137. tools: t + "teacher",
  20138. cid: this.id,
  20139. stage: this.courseType,
  20140. task: this.taskCount,
  20141. tool: i,
  20142. student: this.sStudent,
  20143. },
  20144. "*"
  20145. );
  20146. }
  20147. },
  20148. openCocoPi(tool, i, uid, uname) {
  20149. let student = {
  20150. userid: uid,
  20151. student: uname,
  20152. };
  20153. if (tool == 57) {
  20154. window.parent.postMessage(
  20155. {
  20156. tools: tool + "teacher",
  20157. cid: this.id,
  20158. stage: this.courseType,
  20159. task: this.taskCount,
  20160. tool: i,
  20161. student: student,
  20162. },
  20163. "*"
  20164. );
  20165. }
  20166. },
  20167. setRightAnswer(s, i, j) {
  20168. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  20169. if (
  20170. this.sentenceList[i].chooseSenList[q] == undefined ||
  20171. this.sentenceList[i].chooseSenList[q] == ""
  20172. ) {
  20173. this.sentenceList[i].chooseSenList[q] = s;
  20174. this.sentenceList[i].addChangeSen[j] = "";
  20175. break;
  20176. }
  20177. }
  20178. this.$forceUpdate();
  20179. },
  20180. returnCard(r, i, j) {
  20181. var a = this.sentenceList[i].addSentence.indexOf(r);
  20182. this.sentenceList[i].chooseSenList[j] = "";
  20183. this.sentenceList[i].addChangeSen[a] = r;
  20184. this.$forceUpdate();
  20185. },
  20186. // addSentenceTool() {
  20187. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20188. // this.taskCount
  20189. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  20190. // this.sentenceList = [
  20191. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  20192. // ];
  20193. // this.dialogVisibleSentence = false;
  20194. // },
  20195. toolsCount(a, t) {
  20196. let params = {
  20197. cid: this.id,
  20198. chid: this.courseType,
  20199. uid: this.userid,
  20200. tid: t,
  20201. count: a,
  20202. };
  20203. this.ajax
  20204. .get(this.$store.state.api + "insertToolsCount", params)
  20205. .then((res) => {
  20206. this.selectCount();
  20207. })
  20208. .catch((err) => {
  20209. console.error(err);
  20210. });
  20211. },
  20212. updateCount(c, t) {
  20213. c++;
  20214. let params = {
  20215. cid: this.id,
  20216. chid: this.courseType,
  20217. uid: this.userid,
  20218. tid: t,
  20219. count: c,
  20220. };
  20221. this.ajax
  20222. .get(this.$store.state.api + "updateToolsCount", params)
  20223. .then((res) => {
  20224. this.selectCount();
  20225. })
  20226. .catch((err) => {
  20227. console.error(err);
  20228. });
  20229. },
  20230. checkEva() {
  20231. if (this.evalua != "") {
  20232. for (var i = 0; i < this.evaJuri.length; i++) {
  20233. if (this.evalua == this.evaJuri[i].id) {
  20234. this.eTitle = this.evaJuri[i].title;
  20235. this.eJson = JSON.parse(this.evaJuri[i].content);
  20236. }
  20237. }
  20238. this.$forceUpdate();
  20239. setTimeout(() => {
  20240. this.setMindData();
  20241. }, 0);
  20242. }
  20243. },
  20244. selectEva() {
  20245. let params = {
  20246. oid: this.oid,
  20247. };
  20248. this.ajax
  20249. .get(this.$store.state.api + "selectAllEvaluation", params)
  20250. .then((res) => {
  20251. this.evaJuri = res.data[0];
  20252. })
  20253. .catch((err) => {
  20254. console.error(err);
  20255. });
  20256. },
  20257. setMindData() {
  20258. this.data.data = [];
  20259. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  20260. let _eJson = Object.keys(this.eJson);
  20261. let _e = this.eJson;
  20262. for (let i = 0; i < _eJson.length; i++) {
  20263. let element = _e[_eJson[i]];
  20264. this.data.data.push({
  20265. id: element.id,
  20266. parentid: "root",
  20267. topic: element.name,
  20268. });
  20269. let _eJsonc = Object.keys(element.child);
  20270. let _e2 = element.child;
  20271. for (let j = 0; j < _eJsonc.length; j++) {
  20272. let _ec = _e2[_eJsonc[j]];
  20273. this.data.data.push({
  20274. id: _ec.id,
  20275. parentid: element.id,
  20276. topic: _ec.name,
  20277. });
  20278. let _eJsonz = Object.keys(_ec.child);
  20279. let _e3 = _ec.child;
  20280. for (let z = 0; z < _eJsonz.length; z++) {
  20281. let _ez = _e3[_eJsonz[z]];
  20282. this.data.data.push({
  20283. id: _ez.id,
  20284. parentid: _ec.id,
  20285. topic: _ez.name,
  20286. });
  20287. }
  20288. }
  20289. }
  20290. this.$forceUpdate();
  20291. },
  20292. checkFileFull(type, url) {
  20293. this.fullDialogVisible = true;
  20294. this.fulltype = type;
  20295. this.fullUrl = url;
  20296. },
  20297. async checkFileFull1(t, f) {
  20298. this.fullDialogVisible = true;
  20299. if (t == 6) {
  20300. this.fulltype = 1;
  20301. this.fullUrl = JSON.parse(JSON.stringify(f));
  20302. } else if (t == 8) {
  20303. this.fulltype = 2;
  20304. this.fullUrl = f.url;
  20305. } else if (
  20306. t == 3 &&
  20307. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  20308. "PDF"
  20309. ) {
  20310. this.fulltype = 3;
  20311. this.fullUrl = f.url;
  20312. } else if (t == 3) {
  20313. this.fulltype = 2;
  20314. let _uuurl = await this.checkLink(f.url);
  20315. this.fullUrl =
  20316. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  20317. }
  20318. },
  20319. openSname(n, id, i, uid) {
  20320. this.snameWid = id;
  20321. this.worksSName = n;
  20322. this.worksSid = uid == n ? "" : uid;
  20323. this.toolindex = i;
  20324. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  20325. if (!this.uploadCid) {
  20326. this.$message.error(
  20327. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  20328. );
  20329. return;
  20330. }
  20331. this.selectUploadStudent(1);
  20332. },
  20333. updateName() {
  20334. let params = {
  20335. n: this.worksSName,
  20336. cid: this.snameWid,
  20337. };
  20338. this.ajax
  20339. .get(this.$store.state.api + "updateCourseWorksName", params)
  20340. .then((res) => {
  20341. this.$message({
  20342. message: "修改成功",
  20343. type: "success",
  20344. });
  20345. this.dialogVisibleSname = false;
  20346. this.getCourseDetail(2);
  20347. this.snameWid = "";
  20348. this.worksSName = "";
  20349. })
  20350. .catch((err) => {
  20351. console.error(err);
  20352. });
  20353. },
  20354. downloadFile2(f) {
  20355. // const loading = this.$loading.service({
  20356. // background: "rgba(255, 255, 255, 0.7)",
  20357. // target: document.body,
  20358. // text: "文件加载中...",
  20359. // });
  20360. // let url2 = f.url;
  20361. // let _url2 = "";
  20362. // if (
  20363. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20364. // ) {
  20365. // _url2 = url2.split(
  20366. // "https://view.officeapps.live.com/op/view.aspx?src="
  20367. // )[1];
  20368. // } else {
  20369. // _url2 = url2;
  20370. // }
  20371. // let params = {
  20372. // url: _url2,
  20373. // name: f.name,
  20374. // };
  20375. // this.ajax
  20376. // .get(this.$store.state.api + "download", params)
  20377. // .then((res) => {
  20378. // loading.close();
  20379. // let content = res.data.data.data;
  20380. // let ab = new ArrayBuffer(content.length);
  20381. // let view = new Uint8Array(ab);
  20382. // for (var i = 0; i < content.length; ++i) {
  20383. // view[i] = content[i];
  20384. // }
  20385. // let elink = document.createElement("a");
  20386. // elink.download = f.name;
  20387. // elink.style.display = "none";
  20388. // let blob = new Blob([ab], {
  20389. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  20390. // });
  20391. // elink.href = URL.createObjectURL(blob);
  20392. // document.body.appendChild(elink);
  20393. // elink.click();
  20394. // document.body.removeChild(elink);
  20395. // })
  20396. // .catch((err) => {
  20397. // loading.close();
  20398. // console.error(err);
  20399. // });
  20400. var credentials = {
  20401. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20402. secretAccessKey: "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",
  20403. }; //秘钥形式的登录上传
  20404. window.AWS.config.update(credentials);
  20405. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20406. let url2 = f.url;
  20407. let _url2 = "";
  20408. if (
  20409. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20410. ) {
  20411. _url2 = url2.split(
  20412. "https://view.officeapps.live.com/op/view.aspx?src="
  20413. )[1];
  20414. } else {
  20415. _url2 = url2;
  20416. }
  20417. let _this = this;
  20418. _this.downLoading = true
  20419. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20420. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20421. var params = {
  20422. Bucket: "ccrb",
  20423. Key: name
  20424. };
  20425. s3.getObject(params, function (err, data) {
  20426. _this.downLoading = false
  20427. if (err) console.log(err, err.stack); // an error occurred
  20428. else {
  20429. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20430. let a = document.createElement("a");
  20431. a.name = f.name;
  20432. a.href = url;
  20433. a.download = f.name;
  20434. a.click();
  20435. console.log(data);
  20436. } // sxuccessful response
  20437. });
  20438. return;
  20439. let url = f.url;
  20440. let _url = "";
  20441. if (
  20442. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20443. ) {
  20444. _url = url.split(
  20445. "https://view.officeapps.live.com/op/view.aspx?src="
  20446. )[1];
  20447. } else {
  20448. _url = url;
  20449. }
  20450. _this.downLoading = true
  20451. // const loading = _this.$loading.service({
  20452. // background: "rgba(255, 255, 255, 0.7)",
  20453. // target: document.body,
  20454. // text: "文件加载中...",
  20455. // });
  20456. let x = new XMLHttpRequest();
  20457. x.open("GET", _url, true);
  20458. x.responseType = "blob";
  20459. x.onload = function () {
  20460. _this.downLoading = false
  20461. // loading.close();
  20462. let url = window.URL.createObjectURL(new Blob([x.response]));
  20463. let a = document.createElement("a");
  20464. a.name = f.name;
  20465. a.href = url;
  20466. a.download = f.name;
  20467. a.click();
  20468. };
  20469. x.send();
  20470. },
  20471. downloadFile(url) {
  20472. let hz = url.substring(url.lastIndexOf(".") + 1);
  20473. if(hz == "txt" || hz == "md"){
  20474. this.lookTxt(url)
  20475. return
  20476. }
  20477. var credentials = {
  20478. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20479. secretAccessKey: "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",
  20480. }; //秘钥形式的登录上传
  20481. window.AWS.config.update(credentials);
  20482. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20483. let url2 = url;
  20484. let _url2 = "";
  20485. if (
  20486. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20487. ) {
  20488. _url2 = url2.split(
  20489. "https://view.officeapps.live.com/op/view.aspx?src="
  20490. )[1];
  20491. } else {
  20492. _url2 = url2;
  20493. }
  20494. const loading2 = this.$loading.service({
  20495. background: "rgba(255, 255, 255, 0.7)",
  20496. target: document.body,
  20497. text: "文件加载中...",
  20498. });
  20499. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20500. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20501. var params = {
  20502. Bucket: "ccrb",
  20503. Key: name
  20504. };
  20505. s3.getObject(params, function (err, data) {
  20506. loading2.close();
  20507. if (err) console.log(err, err.stack); // an error occurred
  20508. else {
  20509. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20510. let a = document.createElement("a");
  20511. a.name = name;
  20512. a.href = url;
  20513. a.download = name;
  20514. a.click();
  20515. console.log(data);
  20516. } // sxuccessful response
  20517. });
  20518. return;
  20519. let _this = this;
  20520. let _url = "";
  20521. if (
  20522. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20523. ) {
  20524. _url = url.split(
  20525. "https://view.officeapps.live.com/op/view.aspx?src="
  20526. )[1];
  20527. } else {
  20528. _url = url;
  20529. }
  20530. const x = new XMLHttpRequest();
  20531. x.open("GET", _url, true);
  20532. x.responseType = "blob";
  20533. const loading = _this.$loading.service({
  20534. background: "rgba(255, 255, 255, 0.7)",
  20535. target: document.body,
  20536. text: "文件加载中...",
  20537. });
  20538. // _this.$message.success("文件下载中...");
  20539. x.onload = function (e) {
  20540. loading.close();
  20541. let content = x.response;
  20542. let elink = document.createElement("a");
  20543. elink.download = decodeURI(
  20544. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  20545. );
  20546. elink.style.display = "none";
  20547. let blob = new Blob([content]);
  20548. elink.href = URL.createObjectURL(blob);
  20549. document.body.appendChild(elink);
  20550. elink.click();
  20551. document.body.removeChild(elink);
  20552. };
  20553. x.send();
  20554. },
  20555. openLine(url) {
  20556. window.open(url);
  20557. },
  20558. resize() {
  20559. if (document.getElementsByClassName("box_course").length) {
  20560. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20561. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20562. if (this.showType == 2 || this.showType == 3) {
  20563. document.getElementsByClassName("navBox")[0].style.height =
  20564. a - 40 + 0+ "px";
  20565. } else {
  20566. document.getElementsByClassName("navBox")[0].style.height =
  20567. a - 40 + "px";
  20568. }
  20569. }
  20570. this.Stbodywidth =
  20571. document.getElementsByClassName("student_body").length &&
  20572. document.getElementsByClassName("student_body")[0].offsetWidth;
  20573. },
  20574. closeDraw() {
  20575. this.bg = null;
  20576. this.drawShow = false;
  20577. },
  20578. showPicturePaint(url) {
  20579. let params = {
  20580. img: url,
  20581. };
  20582. this.ajax
  20583. .get(this.$store.state.api + "imgToBase64", params)
  20584. .then((res) => {
  20585. this.drawShow = true;
  20586. this.bg = res.data[0].img;
  20587. })
  20588. .catch((err) => {
  20589. console.error(err);
  20590. });
  20591. },
  20592. addImgDraw(base64) {
  20593. let file = { name: "批注图.png" };
  20594. let img = this.dataUrlToFile(base64, file);
  20595. this.beforeUpload1(img, 5);
  20596. },
  20597. addImgDrawImG(url) {
  20598. // console.log(url);
  20599. let params = [
  20600. {
  20601. wid: this.commentDetail.wid,
  20602. img: url,
  20603. },
  20604. ];
  20605. this.ajax
  20606. .post(this.$store.state.api + "updateCourseWorks", params)
  20607. .then((res) => {
  20608. this.$message({
  20609. message: "提交成功",
  20610. type: "success",
  20611. });
  20612. this.drawShow = false;
  20613. this.bg = "";
  20614. this.selectSWorks();
  20615. this.selectStudent();
  20616. })
  20617. .catch((err) => {
  20618. this.$message.error("提交失败");
  20619. console.error(err);
  20620. });
  20621. },
  20622. deletePicturePaint() {
  20623. this.$confirm("确定删除此批注吗?", "提示", {
  20624. confirmButtonText: "确定",
  20625. cancelButtonText: "取消",
  20626. type: "warning",
  20627. })
  20628. .then(() => {
  20629. let params = [
  20630. {
  20631. wid: this.commentDetail.wid,
  20632. img: "",
  20633. },
  20634. ];
  20635. this.ajax
  20636. .post(this.$store.state.api + "updateCourseWorks", params)
  20637. .then((res) => {
  20638. this.$message({
  20639. message: "删除成功",
  20640. type: "success",
  20641. });
  20642. this.selectSWorks();
  20643. this.selectStudent();
  20644. })
  20645. .catch((err) => {
  20646. this.$message.error("删除失败");
  20647. console.error(err);
  20648. });
  20649. })
  20650. .catch(() => {});
  20651. },
  20652. getAudioVideo(constraintsData) {
  20653. if (navigator.mediaDevices === undefined) {
  20654. navigator.mediaDevices = {};
  20655. }
  20656. if (navigator.mediaDevices.getUserMedia === undefined) {
  20657. navigator.mediaDevices.getUserMedia = function (constraints) {
  20658. // 首先,如果有getUserMedia的话,就获得它
  20659. var getUserMedia =
  20660. navigator.getUserMedia ||
  20661. navigator.webkitGetUserMedia ||
  20662. navigator.mozGetUserMedia ||
  20663. navigator.msGetUserMedia;
  20664. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  20665. if (!getUserMedia) {
  20666. return Promise.reject({ code: 404 });
  20667. }
  20668. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  20669. return new Promise(function (resolve, reject) {
  20670. getUserMedia.call(navigator, constraints, resolve, reject);
  20671. });
  20672. };
  20673. }
  20674. return navigator.mediaDevices.getUserMedia(constraintsData);
  20675. },
  20676. /**
  20677. * 开始录制
  20678. */
  20679. startRecording(callback) {
  20680. let _function = (screenStream) => {
  20681. this.addStreamStopListener(screenStream, () => {
  20682. console.log("流停止监听");
  20683. this.stopRecording();
  20684. this.$emit("streamStop", {});
  20685. // this.stopRecording();
  20686. });
  20687. var options = {
  20688. type: "video",
  20689. mimeType: "video/webm",
  20690. disableLogs: false,
  20691. getNativeBlob: false, // enable it for longer recordings
  20692. ignoreMutedMedia: false,
  20693. };
  20694. // this.video.srcObject = screenStream;
  20695. this.recorder = RecordRTC(screenStream, options);
  20696. this.recorder.startRecording();
  20697. this.recorder.screen = screenStream;
  20698. this.videoStart = true;
  20699. // callback(true);
  20700. };
  20701. this.getAudioVideo({ audio: true })
  20702. .then((res) => {
  20703. this.captureScreen(_function, true);
  20704. console.log("已点击允许,开启成功");
  20705. })
  20706. .catch((err) => {
  20707. // console.log('浏览器不支持,请更换浏览器')
  20708. // } else {
  20709. this.captureScreen(_function, false);
  20710. console.log("请检查是否存在麦克风");
  20711. });
  20712. },
  20713. /**
  20714. * 停止录制
  20715. */
  20716. stopRecording(callback) {
  20717. this.recorder.stopRecording(() => {
  20718. // this.video.src = this.video.srcObject = null;
  20719. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  20720. const url = URL.createObjectURL(this.recorder.getBlob());
  20721. const a = document.createElement("a"); //this.fileName+
  20722. let videoFile = new File(
  20723. [this.recorder.getBlob()],
  20724. this.courseDetail.title + "录屏.mp4",
  20725. {
  20726. type: "video/mp4",
  20727. }
  20728. );
  20729. let downloadUrl = URL.createObjectURL(videoFile);
  20730. document.body.appendChild(a);
  20731. a.style.display = "none";
  20732. a.href = url;
  20733. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  20734. a.click();
  20735. this.recorder.screen.stop();
  20736. this.recorder.destroy();
  20737. this.recorder = null;
  20738. this.videoStart = false;
  20739. // callback(false);
  20740. });
  20741. },
  20742. //初始化
  20743. captureScreen(callback, type) {
  20744. if (navigator.getDisplayMedia) {
  20745. //录制结束,文件下载
  20746. navigator
  20747. .getDisplayMedia({
  20748. video: true,
  20749. })
  20750. .then((screenStream) => {
  20751. if (type) {
  20752. navigator.mediaDevices
  20753. .getUserMedia({ audio: true })
  20754. .then((mic) => {
  20755. screenStream.addTrack(mic.getTracks()[0]);
  20756. callback(screenStream);
  20757. });
  20758. } else {
  20759. callback(screenStream);
  20760. }
  20761. })
  20762. .catch(function (error) {
  20763. console.log("error", error);
  20764. });
  20765. } else if (navigator.mediaDevices.getDisplayMedia) {
  20766. navigator.mediaDevices
  20767. .getDisplayMedia({
  20768. video: true,
  20769. })
  20770. .then((screenStream) => {
  20771. if (type) {
  20772. navigator.mediaDevices
  20773. .getUserMedia({ audio: true })
  20774. .then((mic) => {
  20775. screenStream.addTrack(mic.getTracks()[0]);
  20776. callback(screenStream);
  20777. });
  20778. } else {
  20779. callback(screenStream);
  20780. }
  20781. })
  20782. .catch(function (error) {
  20783. console.log("error", error);
  20784. });
  20785. } else {
  20786. var error = "getDisplayMedia API are not supported in this browser.";
  20787. console.log("error", error);
  20788. alert(error);
  20789. }
  20790. },
  20791. //流监听
  20792. addStreamStopListener(stream, callback) {
  20793. stream.addEventListener(
  20794. "ended",
  20795. function () {
  20796. callback();
  20797. callback = function () {};
  20798. },
  20799. false
  20800. );
  20801. stream.addEventListener(
  20802. "inactive",
  20803. function () {
  20804. callback();
  20805. callback = function () {};
  20806. },
  20807. false
  20808. );
  20809. stream.getTracks().forEach(function (track) {
  20810. track.addEventListener(
  20811. "ended",
  20812. function () {
  20813. callback();
  20814. callback = function () {};
  20815. },
  20816. false
  20817. );
  20818. track.addEventListener(
  20819. "inactive",
  20820. function () {
  20821. callback();
  20822. callback = function () {};
  20823. },
  20824. false
  20825. );
  20826. });
  20827. },
  20828. updateGroup() {
  20829. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20830. this.dialogVisibleGroup2 = true;
  20831. },
  20832. numberPan() {
  20833. if (
  20834. /[^\d]/.test(this.groupJson.number) ||
  20835. this.groupJson.number < 2 ||
  20836. this.groupJson.number > 10
  20837. ) {
  20838. this.$message.error("请输入2-10的数字");
  20839. this.groupJson.number = "";
  20840. }
  20841. },
  20842. updateGroupJson() {
  20843. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  20844. if (
  20845. this.groupStudentUid[this.toolindex][i].length >
  20846. this.groupJson2.number
  20847. ) {
  20848. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  20849. return;
  20850. }
  20851. }
  20852. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  20853. this.islock = this.groupJson.islock == 1 ? true : false;
  20854. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20855. this.taskCount
  20856. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  20857. let params = [
  20858. {
  20859. cid: this.id,
  20860. chapters: JSON.stringify(this.chapInfoList),
  20861. uid: this.userid,
  20862. unitIndex: this.courseType,
  20863. },
  20864. ];
  20865. this.ajax
  20866. .post(this.$store.state.api + "updateWorkNew4", params)
  20867. .then((res) => {
  20868. this.$message.success("设置成功");
  20869. this.getCourseDetail(2);
  20870. this.dialogVisibleGroup2 = false;
  20871. this.groupJson2 = {};
  20872. this.$forceUpdate();
  20873. })
  20874. .catch((err) => {
  20875. this.$message.error("网络不佳");
  20876. console.error(err);
  20877. });
  20878. },
  20879. lockChair() {
  20880. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  20881. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  20882. this.updateGroupJson();
  20883. },
  20884. selectGroup(index) {
  20885. this.getCourseDetail(2, index);
  20886. },
  20887. joinGroup(index) {
  20888. if (this.groupJson.islock == 2) {
  20889. this.$message.error("位置已被锁定,无法加入");
  20890. return;
  20891. }
  20892. if (
  20893. this.groupStudent[this.toolindex][index].length >
  20894. this.groupJson.number ||
  20895. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  20896. ) {
  20897. this.$message.error("位置已满,无法加入");
  20898. return;
  20899. }
  20900. let params = [
  20901. {
  20902. cid: this.id,
  20903. stage: this.courseType,
  20904. task: this.taskCount,
  20905. tool: this.toolindex,
  20906. g: index,
  20907. uid: this.userid,
  20908. },
  20909. ];
  20910. this.ajax
  20911. .post(this.$store.state.api + "joinGroup", params)
  20912. .then((res) => {
  20913. this.$message.success("加入成功");
  20914. this.getCourseDetail(2);
  20915. })
  20916. .catch((err) => {
  20917. this.$message.error("网络不佳");
  20918. console.error(err);
  20919. });
  20920. },
  20921. exitGroup(id) {
  20922. if (this.groupJson.islock == 2) {
  20923. this.$message.error("位置已被锁定,无法退出");
  20924. return;
  20925. }
  20926. let params = [
  20927. {
  20928. gid: id,
  20929. },
  20930. ];
  20931. this.ajax
  20932. .post(this.$store.state.api + "exitGroup", params)
  20933. .then((res) => {
  20934. this.$message.success("退出成功");
  20935. this.getCourseDetail(2);
  20936. })
  20937. .catch((err) => {
  20938. this.$message.error("网络不佳");
  20939. console.error(err);
  20940. });
  20941. },
  20942. groupUpload(index, task, gindex) {
  20943. this.taskCount = task;
  20944. this.toolindex = index;
  20945. this.groupIndex = gindex;
  20946. this.dialogVisibleGroupWork = true;
  20947. },
  20948. updateGroupChair(user) {
  20949. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  20950. el.label = index;
  20951. return index != user.group;
  20952. });
  20953. this.updateGroupUser = user;
  20954. this.dialogVisibleUpdateGroup = true;
  20955. },
  20956. updateChair() {
  20957. if (
  20958. this.groupStudent[this.toolindex][this.checkChair].length >
  20959. this.groupJson.number ||
  20960. this.groupStudent[this.toolindex][this.checkChair].length ==
  20961. this.groupJson.number
  20962. ) {
  20963. this.$message.error("位置已满,无法加入");
  20964. return;
  20965. }
  20966. let params = [
  20967. {
  20968. cid: this.id,
  20969. stage: this.courseType,
  20970. task: this.taskCount,
  20971. tool: this.toolindex,
  20972. g: this.checkChair,
  20973. uid: this.updateGroupUser.userid,
  20974. },
  20975. ];
  20976. this.ajax
  20977. .post(this.$store.state.api + "joinGroup", params)
  20978. .then((res) => {
  20979. this.$message.success("修改成功");
  20980. this.updateGroupUser = {};
  20981. this.checkChair = "";
  20982. this.updateGroupArray = {};
  20983. this.dialogVisibleUpdateGroup = false;
  20984. this.getCourseDetail(2);
  20985. })
  20986. .catch((err) => {
  20987. this.$message.error("网络不佳");
  20988. console.error(err);
  20989. });
  20990. },
  20991. deleteGroupChair(gindex) {
  20992. this.checkDeleteGroup = [];
  20993. this.deleteGroupUser = JSON.parse(
  20994. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  20995. );
  20996. this.deleteGroupArray = this.groupJson.group[gindex];
  20997. this.groupIndex = gindex;
  20998. this.dialogVisibleDeleteGroup = true;
  20999. },
  21000. async deleteChair() {
  21001. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  21002. const gid =
  21003. this.groupStudent[this.toolindex][this.groupIndex][
  21004. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  21005. this.checkDeleteGroup[i]
  21006. )
  21007. ];
  21008. let params = [
  21009. {
  21010. gid: gid.id,
  21011. },
  21012. ];
  21013. var a = await this.deleteChairA(params);
  21014. if (i == this.checkDeleteGroup.length - 1) {
  21015. this.$message.success("退出成功");
  21016. this.dialogVisibleDeleteGroup = false;
  21017. this.deleteGroupUser = [];
  21018. this.deleteGroupArray = {};
  21019. this.groupIndex = "";
  21020. this.checkDeleteGroup = [];
  21021. this.getCourseDetail(2);
  21022. }
  21023. }
  21024. },
  21025. deleteChairA(params) {
  21026. return new Promise((resolve, reject) => {
  21027. this.ajax
  21028. .post(this.$store.state.api + "exitGroup", params)
  21029. .then((res) => {
  21030. resolve(1);
  21031. })
  21032. .catch((err) => {
  21033. this.$message.error("网络不佳");
  21034. console.error(err);
  21035. });
  21036. });
  21037. },
  21038. contract(i) {
  21039. if (this.isCloseList[i].isClose == 0) {
  21040. this.isCloseList[i].isClose = 1;
  21041. } else {
  21042. this.isCloseList[i].isClose = 0;
  21043. }
  21044. this.$forceUpdate();
  21045. },
  21046. openWordCloud(toolindex) {
  21047. let array = [];
  21048. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  21049. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  21050. array.push({ name: works });
  21051. }
  21052. if (this.isGroup) {
  21053. for (var i = 0; i < this.courseGroup.group.length; i++) {
  21054. let works = this.courseGroup.group[i].works[toolindex];
  21055. for (var j = 0; j < works.length; j++) {
  21056. let answer = JSON.parse(works[j].works)[0].answer;
  21057. array.push({ name: answer });
  21058. }
  21059. }
  21060. }
  21061. this.wordCloudData = array;
  21062. this.dialogVisibleWordCloud = true;
  21063. },
  21064. openTips(i) {
  21065. this.tipsIndex = i;
  21066. this.downDialogVisible = true;
  21067. },
  21068. uploadWorks() {
  21069. this.$confirm("确定导出作业吗?", "提示", {
  21070. confirmButtonText: "确定",
  21071. cancelButtonText: "取消",
  21072. type: "warning",
  21073. })
  21074. .then(() => {
  21075. const loading = this.$loading.service({
  21076. background: "rgba(255, 255, 255, 0.7)",
  21077. target: document.body,
  21078. text: "文件加载中...",
  21079. });
  21080. const _worksStudent = this.worksStudent;
  21081. let url = [];
  21082. var counts = {};
  21083. for (var l = 0; l < _worksStudent[i].length; l++) {
  21084. var item = _worksStudent[i][l];
  21085. var name = item.sName;
  21086. if (!counts.hasOwnProperty(name)) {
  21087. counts[name] = 0;
  21088. } else {
  21089. counts[name]++;
  21090. }
  21091. if (counts[name] > 0) {
  21092. item.sName += " (" + counts[name] + ")";
  21093. }
  21094. }
  21095. for (var l = 0; l < _worksStudent[i].length; l++) {
  21096. var item = _worksStudent[i][l];
  21097. if (
  21098. item.works.indexOf(
  21099. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  21100. ) !== -1 &&
  21101. item.works.indexOf("img") === -1
  21102. ) {
  21103. url.push({ name: item.sName, url: item.works });
  21104. }
  21105. }
  21106. // var toolList = [
  21107. // { name: "电子白板", tool: 1 },
  21108. // { name: "思维导图", tool: 3 },
  21109. // { name: "协同文档", tool: 6 },
  21110. // { name: "思维网格", tool: 7 },
  21111. // { name: "素材库", tool: 8 },
  21112. // { name: "学习资料", tool: 17 },
  21113. // { name: "便签", tool: 2 },
  21114. // { name: "问卷调查", tool: 4 },
  21115. // { name: "选择题", tool: 45 },
  21116. // { name: "倒计时", tool: 10 },
  21117. // { name: "问答", tool: 15 },
  21118. // { name: "课程设计", tool: 26 },
  21119. // { name: "训练服务器", tool: 18 },
  21120. // { name: "作业提交", tool: 16 },
  21121. // { name: "批量上传", tool: 50 },
  21122. // { name: "AIoT Blockly", tool: 21 },
  21123. // { name: "AI Python", tool: 23 },
  21124. // { name: "AI Blockly", tool: 24 },
  21125. // { name: "目标管理", tool: 25 },
  21126. // { name: "数学画板", tool: 31 },
  21127. // { name: "翻译", tool: 28 },
  21128. // { name: "魔盒识字", tool: 37 },
  21129. // { name: "数学画板", tool: 31 },
  21130. // { name: "24点", tool: 38 },
  21131. // { name: "GeoGebra", tool: 39 },
  21132. // { name: "源码编辑", tool: 32 },
  21133. // { name: "个人评价", tool: 40 },
  21134. // { name: "选择匹配", tool: 41 },
  21135. // { name: "汉字宫", tool: 44 },
  21136. // { name: "排序", tool: 47 },
  21137. // { name: "表格", tool: 48 },
  21138. // { name: "文档", tool: 52 },
  21139. // { name: "学生分组", tool: 49 },
  21140. // { name: "CocoPi", tool: 57 },
  21141. // { name: "模拟驾驶", tool: 58 },
  21142. // { name: "路径搜索", tool: 59 },
  21143. // { name: "深度学习", tool: 60 },
  21144. // { name: "全历史", tool: 61 },
  21145. // { name: "交互视频", tool: 62 },
  21146. // { name: "海龟编程", tool: 63 },
  21147. // { name: "挑人", tool: 65 },
  21148. // { name: "公式编辑", tool: 66 },
  21149. // { name: "分子结构", tool: 67 },
  21150. // { name: "时间轴", tool: 68 },
  21151. // ];
  21152. // var toolName = "";
  21153. // for(var w = 0;w<toolList.length;w++){
  21154. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  21155. // toolName = toolList[w].name;
  21156. // }
  21157. // }
  21158. console.log(url);
  21159. this.downLoadAll(url, loading);
  21160. })
  21161. .catch(() => {});
  21162. },
  21163. downLoadAll(url, loading) {
  21164. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  21165. const zip = new JSZip();
  21166. const cache = {};
  21167. const promises = [];
  21168. data.forEach((item) => {
  21169. const promise = getFile(item.url).then((data) => {
  21170. if (data.data != 1) {
  21171. // 下载文件, 并存成ArrayBuffer对象
  21172. const file_name =
  21173. item.name +
  21174. "." +
  21175. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  21176. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  21177. cache[file_name] = data.data;
  21178. }
  21179. });
  21180. promises.push(promise);
  21181. });
  21182. Promise.all(promises).then(() => {
  21183. zip.generateAsync({ type: "blob" }).then((content) => {
  21184. // 生成二进制流
  21185. FileSaver.saveAs(
  21186. content,
  21187. this.courseDetail.title + "-" + "作业提交工具.zip"
  21188. ); // 利用file-saver保存文件 自定义文件名
  21189. setTimeout(() => {
  21190. loading.close();
  21191. }, 2000);
  21192. });
  21193. });
  21194. },
  21195. pickStudent(stu) {
  21196. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  21197. return;
  21198. }
  21199. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  21200. confirmButtonText: "确定",
  21201. cancelButtonText: "取消",
  21202. type: "warning",
  21203. })
  21204. .then(() => {
  21205. let params = [
  21206. {
  21207. uid: stu.userid,
  21208. cid: this.id,
  21209. stage: this.courseType,
  21210. task: this.taskCount,
  21211. tool: this.toolindex,
  21212. },
  21213. ];
  21214. this.ajax
  21215. .post(this.$store.state.api + "updateCoursePick", params)
  21216. .then((res) => {
  21217. this.$message.success("操作成功");
  21218. this.getPick();
  21219. })
  21220. .catch((err) => {
  21221. this.$message.error("网络不佳");
  21222. console.error(err);
  21223. });
  21224. })
  21225. .catch(() => {});
  21226. },
  21227. selectUser(){
  21228. let params = {
  21229. userid: this.userid,
  21230. };
  21231. this.ajax
  21232. .get(this.$store.state.api + "selectUser", params)
  21233. .then((res) => {
  21234. this.userMes = res.data[0];
  21235. })
  21236. .catch((err) => {
  21237. console.error(err);
  21238. });
  21239. },
  21240. setEngText(i){
  21241. this.newEngIndex = i;
  21242. this.$forceUpdate();
  21243. },
  21244. addCorrect(){
  21245. this.$confirm("你确定提交批改嘛?", "提示", {
  21246. confirmButtonText: "确定",
  21247. showCancelButton: false,
  21248. closeOnClickModal: false,
  21249. type: "warning",
  21250. })
  21251. .then(() => {
  21252. let params = {
  21253. cid: this.id,
  21254. s: parseInt(this.courseType),
  21255. t: this.taskCount,
  21256. tool: this.toolindex,
  21257. wid: this.engWid,
  21258. c: this.userid,
  21259. 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) : "",
  21260. };
  21261. this.ajax
  21262. .get(this.$store.state.api + "addEngC", params)
  21263. .then((res) => {
  21264. this.$message.success("提交成功");
  21265. this.engUpdateDialogVisible = false;
  21266. })
  21267. .catch((err) => {
  21268. console.error(err);
  21269. });
  21270. })
  21271. .catch(() => {});
  21272. },
  21273. selectEngC(id,z){
  21274. let params = {
  21275. workid: id,
  21276. };
  21277. this.ajax
  21278. .get(this.$store.state.api + "selectEngC", params)
  21279. .then((res) => {
  21280. if(res.data[0].length == 0){
  21281. this.newEnglishList.engTitle = z.engTitle;
  21282. this.newEnglishList.engText = z.engText;
  21283. }else{
  21284. var a = res.data[0];
  21285. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  21286. if(this.userMes[0].type == 2){
  21287. var snum = 0;
  21288. for(var i = 0;i<a.length;i++){
  21289. if(this.userMes[0].userid == a[i].correct){
  21290. this.newEnglishList = JSON.parse(a[i].cWork);
  21291. snum = 1;
  21292. }
  21293. }
  21294. if(snum == 0){
  21295. this.newEnglishList = { engTitle:"",engText:"" };
  21296. this.newEnglishList.engTitle = z.engTitle;
  21297. this.newEnglishList.engText = z.engText;
  21298. }
  21299. }else if(this.userMes[0].type == 1){
  21300. var num = 0;
  21301. for(var w= 0;w<a.length;w++){
  21302. if(this.userMes[0].userid == a[w].correct){
  21303. num = 1;
  21304. }
  21305. }
  21306. if(num == 0){
  21307. this.isNoUserid = true;
  21308. var c = JSON.parse(JSON.stringify(z));
  21309. this.oldEnglishJson1 = c;
  21310. }else{
  21311. this.isNoUserid = false;
  21312. }
  21313. var b = a.sort((item, index) => {
  21314. console.log(item)
  21315. if (item.correct === this.userMes[0].userid) {
  21316. return -1; // 将a移到前面
  21317. } else if (index.correct === this.userMes[0].userid) {
  21318. return 1; // 将b移到前面
  21319. } else {
  21320. return 0; // 保持默认顺序
  21321. }
  21322. });
  21323. for(var p = 0;p<b.length;p++){
  21324. for(var y = 0;y<ppp.length;y++){
  21325. if(b[p].id == ppp[y].id){
  21326. b[p].cWork = JSON.parse(ppp[y].cWork);
  21327. break
  21328. }
  21329. }
  21330. }
  21331. this.newEnglishList1 = b;
  21332. }
  21333. }
  21334. this.greyType = false;
  21335. setTimeout(() => {
  21336. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21337. if(this.newEnglishList1.length > 0){
  21338. if(this.isNoUserid == true){
  21339. this.engListLength = this.newEnglishList1.length + 1;
  21340. this.newEngIndex = -1;
  21341. }else{
  21342. this.engListLength = this.newEnglishList1.length;
  21343. this.newEngIndex = 0;
  21344. }
  21345. }
  21346. if(this.userMes[0].type == 2){
  21347. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  21348. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  21349. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  21350. }else if(this.newEngIndex == -1){
  21351. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  21352. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  21353. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  21354. }
  21355. }, 500);
  21356. this.engUpdateDialogVisible = true;
  21357. this.$forceUpdate();
  21358. })
  21359. .catch((err) => {
  21360. console.error(err);
  21361. });
  21362. },
  21363. getPick() {
  21364. let params = {
  21365. cid: this.id,
  21366. };
  21367. this.ajax
  21368. .get(this.$store.state.api + "getPick", params)
  21369. .then((res) => {
  21370. let array = [];
  21371. for (var i = 0; i < res.data[0].length; i++) {
  21372. array.push(res.data[0][i].userid);
  21373. }
  21374. this.isPickStudent = array;
  21375. if (array.indexOf(this.userid) !== -1) {
  21376. this.$confirm("你被老师选到啦!", "提示", {
  21377. confirmButtonText: "确定",
  21378. showCancelButton: false,
  21379. closeOnClickModal: false,
  21380. type: "warning",
  21381. })
  21382. .then(() => {
  21383. let pa = [
  21384. {
  21385. uid: this.userid,
  21386. cid: this.id,
  21387. },
  21388. ];
  21389. this.ajax
  21390. .post(this.$store.state.api + "deletePick", pa)
  21391. .then((res) => {
  21392. this.getPick();
  21393. })
  21394. .catch((err) => {
  21395. this.$message.error("网络不佳");
  21396. console.error(err);
  21397. });
  21398. })
  21399. .catch(() => {});
  21400. }
  21401. })
  21402. .catch((err) => {
  21403. this.$message.error("网络不佳");
  21404. console.error(err);
  21405. });
  21406. },
  21407. foldEva() {
  21408. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  21409. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  21410. } else {
  21411. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  21412. setTimeout(() => {
  21413. this.checkEva();
  21414. setTimeout(() => {
  21415. this.checkEva();
  21416. }, 500);
  21417. }, 0);
  21418. }
  21419. this.$forceUpdate();
  21420. },
  21421. panToolHeight(tool) {
  21422. var _tool = document.querySelectorAll('#'+tool)[0]
  21423. var _toolA = _tool ? _tool.offsetHeight : 0
  21424. var _toolC = 0
  21425. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  21426. let boolean2 = (_toolA > _toolC) ? true : false
  21427. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  21428. this.$forceUpdate();
  21429. },
  21430. async checkLink(url) {
  21431. // console.log(url)
  21432. let _url = url
  21433. try {
  21434. const response = await fetch(url);
  21435. if(!response.ok){
  21436. _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]))
  21437. }
  21438. // console.log(response.ok)
  21439. } catch (error) {
  21440. console.error('Error checking link:', error);
  21441. // console.log(false)
  21442. _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]))
  21443. }
  21444. // console.log(_url)
  21445. return _url
  21446. },
  21447. setClassRoomHelperWidth(width){
  21448. this.classRoomHelperWidth = width
  21449. }
  21450. },
  21451. directives: {
  21452. // 使用局部注册指令的方式
  21453. resize: {
  21454. // 指令的名称
  21455. bind(el, binding) {
  21456. // el为绑定的元素,binding为绑定给指令的对象
  21457. let width = "",
  21458. height = "";
  21459. function isReize() {
  21460. const style = document.defaultView.getComputedStyle(el);
  21461. if (width !== style.width || height !== style.height) {
  21462. binding.value(); // 关键
  21463. }
  21464. width = style.width;
  21465. height = style.height;
  21466. }
  21467. el.__vueSetInterval__ = setInterval(isReize, 300);
  21468. },
  21469. unbind(el) {
  21470. clearInterval(el.__vueSetInterval__);
  21471. },
  21472. },
  21473. autoHeight: {
  21474. update(el, binding) {
  21475. const { value } = binding
  21476. if (value && typeof value === 'number') {
  21477. el.style.height = `${value}px`
  21478. } else {
  21479. el.style.height = 'auto'
  21480. }
  21481. },
  21482. componentUpdated(el) {
  21483. el.style.height = `${el.scrollHeight + 5}px`
  21484. },
  21485. }
  21486. },
  21487. beforeDestroy() {
  21488. window.onresize = null;
  21489. clearInterval(this.timer);
  21490. this.timer = null;
  21491. clearInterval(this.opertimer);
  21492. this.opertimer = null;
  21493. },
  21494. computed: {
  21495. // getdocumentSco(){
  21496. // return function (w,task,tooindex) {
  21497. // console.log(w);
  21498. // return task;
  21499. // };
  21500. // },
  21501. getHeight(){
  21502. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21503. },
  21504. contentConvent() {
  21505. return function (c) {
  21506. return c
  21507. ? c
  21508. .replaceAll(/\r\n/g, "<br/>")
  21509. .replaceAll(/\n/g, "<br/>")
  21510. .replaceAll(/\s/g, " &nbsp")
  21511. : "";
  21512. };
  21513. },
  21514. commentRight(){
  21515. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21516. return "35px";
  21517. }
  21518. return `calc(${this.classRoomHelperWidth} + 5px)`
  21519. // if(this.$refs["classRoomHelperRef"].type==0){
  21520. // return "100px";
  21521. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21522. // return "502px"
  21523. // }else{
  21524. // return "0px"
  21525. // }
  21526. },
  21527. checkUpload() {
  21528. return function () {
  21529. var studentK = [];
  21530. if (this.plworkFile.length > 0) {
  21531. for (var z = 0; z < this.plworkFile.length; z++) {
  21532. studentK.push(this.plworkFile[z].username);
  21533. }
  21534. studentK = studentK.join(",");
  21535. }
  21536. var a = this.uploadStudentJuri.filter((el) => {
  21537. return studentK.indexOf(el.userid) == -1;
  21538. });
  21539. return a;
  21540. };
  21541. },
  21542. getSName() {
  21543. return function (name) {
  21544. var check = name;
  21545. this.uploadStudentJuri.forEach((el) => {
  21546. if (el.userid == check) {
  21547. check = el.name ? el.name : el.username;
  21548. }
  21549. });
  21550. return check;
  21551. };
  21552. },
  21553. getImgList() {
  21554. return function (val) {
  21555. let srcList = []; // 定义一个数组用来接收后面的img地址
  21556. val.replace(
  21557. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21558. function (match, capture) {
  21559. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21560. srcList.push(capture);
  21561. }
  21562. );
  21563. return srcList;
  21564. };
  21565. },
  21566. retrnToolHeight(){
  21567. return function (tool) {
  21568. var _tool = document.querySelectorAll('#'+tool)[0]
  21569. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21570. };
  21571. },
  21572. Correct() {
  21573. return function (c) {
  21574. let w = "";
  21575. let a = this.correctWord;
  21576. for(var k = 0;k<a.length;k++){
  21577. //diffWordsWithSpace
  21578. if(a.length > 1){
  21579. if(a[k].added == true){
  21580. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21581. }else if(a[k].removed == true){
  21582. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21583. }else{
  21584. w += '<span>' + a[k].value + '</span>';
  21585. }
  21586. }else{
  21587. w = c
  21588. }
  21589. //diffChars方法
  21590. // if(w == ""){
  21591. // if(a.length > 1){
  21592. // if(a[k].added == true){
  21593. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21594. // }else if(a[k].removed == true){
  21595. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21596. // }
  21597. // }else{
  21598. // w = c
  21599. // }
  21600. // }else{
  21601. // if(k == a.length - 1){
  21602. // if(a[k].added == true){
  21603. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21604. // }else if(a[k].removed == true){
  21605. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21606. // }
  21607. // }else{
  21608. // if(a[k].added == true){
  21609. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21610. // }else if(a[k].removed == true){
  21611. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21612. // }
  21613. // }
  21614. // }
  21615. }
  21616. c = w;
  21617. return c;
  21618. };
  21619. },
  21620. getScoreList(){
  21621. let params = {
  21622. cid: this.id,
  21623. };
  21624. this.ajax
  21625. .get(this.$store.state.api + "selectTestCourseByCid", params)
  21626. .then((res) => {
  21627. let result = res.data;
  21628. this.scoreList.datalist = result[0];
  21629. this.scoreList.isScoreList = result[1];
  21630. })
  21631. .catch((err) => {
  21632. console.error(err);
  21633. });
  21634. },
  21635. },
  21636. mounted() {
  21637. document.body.addEventListener("click", (e) => {
  21638. if (this.isUpdateToolDetail1) {
  21639. this.updateToolDetail(this.toolDetailIndex);
  21640. }
  21641. });
  21642. if (this.screenType == 2) {
  21643. window.parent.postMessage({ allScreen: 4 }, "*");
  21644. } else if (this.screenType == 3) {
  21645. window.parent.postMessage({ allScreen: 5 }, "*");
  21646. } else if (this.screenType == 1) {
  21647. window.parent.postMessage({ allScreen: 6 }, "*");
  21648. }
  21649. this.setOperationTime();
  21650. this.selectEva();
  21651. this.getCourseDetail();
  21652. this.selectCount();
  21653. this.getHomeWork();
  21654. this.selectUser();
  21655. this.getAIJ()
  21656. this.contentDialog = true;
  21657. this.setContent2(true);
  21658. if (this.tType == 4) {
  21659. this.pzDialog = true;
  21660. this.selectPz();
  21661. }
  21662. // 获取评分列表
  21663. this.getScoreList()
  21664. document.scrollingElement.scrollTop = 0;
  21665. window.addEventListener("resize", () => {
  21666. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  21667. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  21668. if (this.showType == 2 || this.showType == 3) {
  21669. document.getElementsByClassName("navBox")[0].style.height =
  21670. a - 40 + 0+ "px";
  21671. } else {
  21672. document.getElementsByClassName("navBox")[0].style.height =
  21673. a - 40 + "px";
  21674. }
  21675. });
  21676. let _this = this;
  21677. setTimeout(() => {
  21678. // _this.vedioTime = [];
  21679. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21680. // _this.vedioTime[i] = document.getElementsByClassName(
  21681. // "vjs-duration-display"
  21682. // )[i].textContent;
  21683. // }
  21684. }, 1000);
  21685. },
  21686. };
  21687. </script>
  21688. <style scoped>
  21689. @media screen and (max-width: 1280px) {
  21690. /* .courseIndex > div:first-child(2) {
  21691. width: 15% !important;
  21692. } */
  21693. /* .navText {
  21694. width: 120px !important;
  21695. } */
  21696. .evaCss {
  21697. flex-direction: column !important;
  21698. align-items: center !important;
  21699. }
  21700. .elist_input {
  21701. width: 90% !important;
  21702. }
  21703. .dialog_diy1 >>> .el-dialog {
  21704. width: 100% !important;
  21705. }
  21706. .rightWidthCss {
  21707. width: 100% !important;
  21708. }
  21709. .dialog_diy3 >>> .el-dialog {
  21710. width: 100% !important;
  21711. }
  21712. .addToolCss {
  21713. right: 0 !important;
  21714. width: 100% !important;
  21715. min-width: unset !important;
  21716. }
  21717. }
  21718. .evaCssMax {
  21719. flex-direction: column !important;
  21720. align-items: center !important;
  21721. }
  21722. .dialog_diy >>> .el-dialog {
  21723. margin-top: 10vh !important;
  21724. }
  21725. .body_student {
  21726. width: 77%;
  21727. height: 100%;
  21728. position: absolute;
  21729. left: 22%;
  21730. top: 0;
  21731. }
  21732. .student_head {
  21733. width: 100%;
  21734. margin: 20px auto 0;
  21735. padding-bottom: 20px;
  21736. display: flex;
  21737. flex-direction: column;
  21738. flex-wrap: nowrap;
  21739. align-items: flex-start;
  21740. justify-content: flex-start;
  21741. }
  21742. .pb_left {
  21743. width: 20%;
  21744. margin-right: 10px;
  21745. background: rgb(255, 255, 255);
  21746. position: fixed;
  21747. height: calc(100% - 40px);
  21748. border-radius: 20px;
  21749. padding-bottom: 15px;
  21750. box-sizing: border-box;
  21751. }
  21752. .wheel > img,
  21753. .project > img,
  21754. .star > img,
  21755. .evaluate > img,
  21756. .up_photo > img,
  21757. .chapter_add > img,
  21758. .deleteWord > img,
  21759. .question > img,
  21760. .homework > img {
  21761. width: 100%;
  21762. height: 100%;
  21763. }
  21764. .upCover > img {
  21765. width: 131px;
  21766. height: 69px;
  21767. object-fit: cover;
  21768. }
  21769. .upCover {
  21770. width: calc(100% / 3.5);
  21771. position: relative;
  21772. margin: 0 15px 10px 0;
  21773. display: flex;
  21774. flex-direction: column;
  21775. flex-wrap: nowrap;
  21776. justify-content: center;
  21777. align-content: center;
  21778. align-items: center;
  21779. height: fit-content;
  21780. }
  21781. .upCover2 {
  21782. width: 100%;
  21783. position: relative;
  21784. margin: 0 15px 10px 0;
  21785. display: flex;
  21786. flex-direction: column;
  21787. flex-wrap: nowrap;
  21788. justify-content: center;
  21789. align-content: center;
  21790. align-items: center;
  21791. }
  21792. .upCover2 > img {
  21793. width: 100%;
  21794. height: 90px;
  21795. object-fit: contain;
  21796. }
  21797. .chapter_add {
  21798. width: 120px;
  21799. position: relative;
  21800. text-align: center;
  21801. }
  21802. .isAddThings {
  21803. margin-top: 20px;
  21804. position: relative;
  21805. text-align: center;
  21806. background: #f7f8fa;
  21807. height: 90px;
  21808. width: 90px;
  21809. display: flex;
  21810. flex-direction: column;
  21811. justify-content: center;
  21812. }
  21813. .deleteWord {
  21814. width: 22px;
  21815. height: 22px;
  21816. position: absolute;
  21817. right: -5px;
  21818. top: -5px;
  21819. cursor: pointer;
  21820. }
  21821. .box_course {
  21822. /* width: 60%; */
  21823. width: calc(100% - 300px);
  21824. }
  21825. .wheel {
  21826. width: 100%;
  21827. /* height: 100%; */
  21828. height: 650px;
  21829. }
  21830. .right_box {
  21831. display: flex;
  21832. flex-direction: column;
  21833. margin-left: 30px;
  21834. justify-content: space-around;
  21835. }
  21836. .right_box_title {
  21837. font-size: 23px;
  21838. }
  21839. .people {
  21840. display: flex;
  21841. }
  21842. .student_body {
  21843. width: 100%;
  21844. margin: 0 auto;
  21845. margin-top: 10px;
  21846. padding: 0 0 20px;
  21847. }
  21848. .study_top {
  21849. margin-top: 100px;
  21850. width: 100%;
  21851. height: auto;
  21852. padding-bottom: 20px;
  21853. }
  21854. .study_top .checkbox {
  21855. display: flex;
  21856. align-items: center;
  21857. padding: 15px 0 15px 30px;
  21858. flex: 0 0 auto;
  21859. font-weight: bold;
  21860. border-bottom: 1px solid #eee;
  21861. }
  21862. .study_top .check {
  21863. padding-bottom: 5px;
  21864. text-align: center;
  21865. cursor: pointer;
  21866. height: 30px;
  21867. box-sizing: border-box;
  21868. display: flex;
  21869. }
  21870. .study_top .checked {
  21871. border-bottom: 4px solid #3fc6a0;
  21872. padding-bottom: 5px;
  21873. color: #3fc6a0;
  21874. display: flex;
  21875. height: 35px;
  21876. }
  21877. .study_top .checked > div,
  21878. .study_top .check > div {
  21879. margin-right: 5px;
  21880. }
  21881. .videoTop {
  21882. display: flex;
  21883. flex-direction: row;
  21884. justify-content: space-between;
  21885. background: #fff;
  21886. align-items: center;
  21887. width: 95%;
  21888. padding: 20px;
  21889. }
  21890. .filebox {
  21891. display: flex;
  21892. flex-wrap: wrap;
  21893. flex-direction: column;
  21894. padding: 0 0 5px;
  21895. position: relative;
  21896. }
  21897. .filebox:before {
  21898. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  21899. position: absolute;
  21900. top: 20px;
  21901. left: 13px;
  21902. border-left: 2px dotted #cad1dc;
  21903. height: calc(100% - 15px);
  21904. }
  21905. .toolHeng2 > div:last-child::before {
  21906. height: calc(100% - 43px);
  21907. }
  21908. .filebox .tooldetail {
  21909. width: calc(100%);
  21910. margin: 0px 12px;
  21911. padding: 12px;
  21912. line-height: 30px;
  21913. word-break: break-word;
  21914. background: #ffffff;
  21915. border-radius: 8px 8px 8px 8px;
  21916. opacity: 1;
  21917. border: 1px solid #cad1dc;
  21918. overflow:hidden;
  21919. box-sizing:border-box;
  21920. }
  21921. .file {
  21922. display: flex;
  21923. flex-direction: column;
  21924. align-items: center;
  21925. justify-content: center;
  21926. cursor: pointer;
  21927. width: 200px;
  21928. }
  21929. .file div {
  21930. margin-top: 10px;
  21931. width: 150px;
  21932. text-align: center;
  21933. overflow: hidden;
  21934. white-space: nowrap;
  21935. text-overflow: ellipsis;
  21936. }
  21937. .media {
  21938. display: flex;
  21939. flex-direction: column;
  21940. align-items: center;
  21941. justify-content: center;
  21942. margin: 0 20px 20px 0;
  21943. cursor: pointer;
  21944. margin: 12px 0 5px 15px;
  21945. overflow: hidden;
  21946. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  21947. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  21948. box-sizing: border-box;
  21949. }
  21950. .media img {
  21951. height: 90px;
  21952. width: 160px;
  21953. object-fit: cover;
  21954. }
  21955. .media .title {
  21956. padding: 5px;
  21957. text-align: left;
  21958. width: 100%;
  21959. box-sizing: border-box;
  21960. }
  21961. .media .btn {
  21962. width: 100%;
  21963. height: 35px;
  21964. line-height: 35px;
  21965. color: #fff;
  21966. background: #606060;
  21967. text-align: center;
  21968. overflow: hidden;
  21969. white-space: nowrap;
  21970. text-overflow: ellipsis;
  21971. }
  21972. .detail_content_top {
  21973. width: 100%;
  21974. padding: 25px 0 25px 0;
  21975. }
  21976. .detail_title {
  21977. text-align: center;
  21978. font-size: 24px;
  21979. }
  21980. .detail_time {
  21981. font-size: 13px;
  21982. padding: 15px 0 0 40px;
  21983. }
  21984. .detail_content {
  21985. line-height: 2pc;
  21986. width: 90%;
  21987. margin: 0 auto;
  21988. padding-top: 30px;
  21989. text-indent: 30px;
  21990. overflow: auto;
  21991. height: 200px;
  21992. }
  21993. .score_box >>> .el-rate {
  21994. margin-left: 10px;
  21995. }
  21996. .dialog_change >>> .el-dialog {
  21997. border-radius: 5px;
  21998. }
  21999. .dialog_change >>> .el-dialog__header {
  22000. background: #f2f2f2;
  22001. text-align: center;
  22002. }
  22003. .dialog_change >>> .el-dialog__title {
  22004. line-height: 5px;
  22005. }
  22006. .dialog_change >>> .el-dialog__body {
  22007. background: #fff;
  22008. padding: 10px 20px;
  22009. }
  22010. .score_box {
  22011. display: flex;
  22012. align-items: center;
  22013. margin-bottom: 18px;
  22014. margin-top: 20px;
  22015. }
  22016. .up_photo {
  22017. width: 120px;
  22018. cursor: pointer;
  22019. margin-top: 10px;
  22020. }
  22021. .up_photo2 {
  22022. width: 180px;
  22023. box-sizing: border-box;
  22024. min-width: 180px;
  22025. height: 180px;
  22026. max-height: 180px;
  22027. min-height: 180px;
  22028. cursor: pointer;
  22029. display: flex;
  22030. flex-direction: column;
  22031. align-items: center;
  22032. justify-content: center;
  22033. background: rgb(242, 246, 255);
  22034. /* padding: 25px; */
  22035. margin-bottom: 10px;
  22036. }
  22037. .up_photo2 img {
  22038. width: 50%;
  22039. height: auto;
  22040. }
  22041. .up_photo2 span {
  22042. color: #898989;
  22043. }
  22044. .plworkBox {
  22045. display: flex;
  22046. align-items: center;
  22047. margin-top: 10px;
  22048. flex-wrap: wrap;
  22049. }
  22050. .upload_send {
  22051. margin: 30px auto 30px;
  22052. width: 60%;
  22053. background: #3681fc;
  22054. text-align: center;
  22055. height: 35px;
  22056. line-height: 35px;
  22057. color: #fff;
  22058. border-radius: 5px;
  22059. cursor: pointer;
  22060. }
  22061. .marginT {
  22062. margin-top: 20px;
  22063. }
  22064. .cd_content_steps {
  22065. display: flex;
  22066. width: 90%;
  22067. justify-content: space-around;
  22068. border-top: 1px solid #eeeeee;
  22069. }
  22070. .cd_steps_box {
  22071. display: flex;
  22072. justify-content: center;
  22073. align-items: center;
  22074. flex-direction: column;
  22075. cursor: pointer;
  22076. }
  22077. .first {
  22078. display: flex;
  22079. align-items: center;
  22080. margin: 15px 0 20px 0;
  22081. font-size: 20px;
  22082. }
  22083. .first > div:nth-child(2) {
  22084. font-size: 16px !important;
  22085. padding-left: 10px;
  22086. line-height: 26px;
  22087. box-sizing: border-box;
  22088. }
  22089. .blue_box_one {
  22090. text-align: center;
  22091. color: #fff;
  22092. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  22093. border-radius: 7px;
  22094. margin: 10px;
  22095. cursor: pointer;
  22096. width: 95%;
  22097. height: 45px;
  22098. display: flex;
  22099. flex-direction: row;
  22100. justify-content: flex-start;
  22101. align-items: center;
  22102. }
  22103. .blue_box_one > div:nth-child(1) {
  22104. line-height: 30px;
  22105. margin: 0 5px 0 10px;
  22106. width: 30%;
  22107. min-width: 70px;
  22108. border-radius: 4px;
  22109. }
  22110. .blue_box_one > div:nth-child(2) {
  22111. white-space: nowrap;
  22112. text-overflow: ellipsis;
  22113. overflow: hidden;
  22114. word-break: break-all;
  22115. width: 70%;
  22116. text-align: left;
  22117. margin-right: 10px;
  22118. max-width: calc(100% - 85px);
  22119. }
  22120. .blue_box_one > div:nth-child(2):hover {
  22121. overflow: hidden;
  22122. text-overflow: ellipsis;
  22123. white-space: nowrap;
  22124. cursor: pointer;
  22125. }
  22126. .upFile {
  22127. margin: 0 auto;
  22128. width: 120px;
  22129. background: #3681fc;
  22130. color: #fff;
  22131. height: 30px;
  22132. text-align: center;
  22133. line-height: 30px;
  22134. border-radius: 5px;
  22135. font-size: 14px;
  22136. cursor: pointer;
  22137. }
  22138. .courseTitle {
  22139. width: 85%;
  22140. margin: 10px auto 26px auto;
  22141. display: flex;
  22142. flex-direction: row;
  22143. align-items: center;
  22144. justify-content: space-between;
  22145. text-align: center;
  22146. }
  22147. .courseTitle .ctitle {
  22148. font-size: 20px;
  22149. font-weight: bold;
  22150. color: #0e1e33;
  22151. white-space: nowrap;
  22152. overflow: hidden;
  22153. text-overflow: ellipsis;
  22154. }
  22155. .inviteBox {
  22156. font-size: 14px;
  22157. /* margin-top: 5px; */
  22158. color: #00000099;
  22159. text-align: center;
  22160. }
  22161. .courseTitle >>> .el-tooltip {
  22162. width: 100%;
  22163. white-space: nowrap;
  22164. overflow: hidden;
  22165. text-overflow: ellipsis;
  22166. word-break: break-word;
  22167. }
  22168. .ml {
  22169. margin-left: 20px;
  22170. color: #5b7dba;
  22171. border-left: 3px solid #5b7dba;
  22172. padding-left: 5px;
  22173. font-weight: bold;
  22174. }
  22175. .return {
  22176. width: 2rem;
  22177. height: 2rem;
  22178. cursor: pointer;
  22179. }
  22180. .return > img {
  22181. width: 100%;
  22182. height: 100%;
  22183. }
  22184. .returnBtn {
  22185. width: 86px;
  22186. height: 36px;
  22187. background: #3681fc;
  22188. border-radius: 4px;
  22189. color: #fff;
  22190. text-align: center;
  22191. line-height: 36px;
  22192. margin-right: 20px;
  22193. cursor: pointer;
  22194. font-size: 14px;
  22195. font-weight: 400;
  22196. display: flex;
  22197. flex-direction: row;
  22198. flex-wrap: nowrap;
  22199. align-items: center;
  22200. justify-content: center;
  22201. }
  22202. .reBtnIcon,
  22203. .commentIcon,
  22204. .vedioIcon,
  22205. .vedioIcon1 {
  22206. /* width: 36px; */
  22207. height: 36px;
  22208. border-radius: 4px;
  22209. position: relative;
  22210. /* background: #e0eafb; */
  22211. background: #0061ff;
  22212. cursor: pointer;
  22213. margin-right: 12px;
  22214. display: flex;
  22215. align-items: center;
  22216. padding: 0 10px;
  22217. box-sizing: border-box;
  22218. font-size: 14px;
  22219. color: #fff;
  22220. }
  22221. .reBtnIcon::before,
  22222. .commentIcon::before,
  22223. .vedioIcon::before,
  22224. .vedioIcon1::before {
  22225. content: "";
  22226. display: block;
  22227. background-size: 100% 100%;
  22228. background-repeat: no-repeat;
  22229. width: 20px;
  22230. height: 20px;
  22231. margin-right: 5px;
  22232. /* position: absolute; */
  22233. /* top: 8px;
  22234. left: 8px; */
  22235. }
  22236. .vedioIcon1 {
  22237. background: #f63564;
  22238. }
  22239. .reBtnIcon::before {
  22240. background-image: url("../../assets/icon/newIcons/refresh.png");
  22241. }
  22242. .commentIcon::before {
  22243. background-image: url("../../assets/icon/newIcons/comment.png");
  22244. }
  22245. .vedioIcon::before {
  22246. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22247. }
  22248. .vedioIcon1::before {
  22249. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  22250. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22251. }
  22252. .tool {
  22253. display: flex;
  22254. flex-direction: column;
  22255. flex-wrap: nowrap;
  22256. width: 13%;
  22257. margin: 0 30px;
  22258. align-items: center;
  22259. position: relative;
  22260. padding: 10px 25px;
  22261. cursor: pointer;
  22262. }
  22263. .whiteBIcon {
  22264. width: 150px;
  22265. }
  22266. .whiteBIcon > img {
  22267. width: 100%;
  22268. height: 100%;
  22269. }
  22270. .mask {
  22271. background-color: rgba(0, 0, 0, 0);
  22272. position: fixed;
  22273. top: 0;
  22274. left: 0;
  22275. width: 100%;
  22276. height: 100%;
  22277. z-index: 20000;
  22278. display: flex;
  22279. align-items: center;
  22280. justify-content: center;
  22281. }
  22282. .progressBox {
  22283. width: 500px;
  22284. height: 180px;
  22285. background: #fff;
  22286. border-radius: 10px;
  22287. box-shadow: 0 0 6px 1px #bfbfbf;
  22288. display: flex;
  22289. align-items: center;
  22290. justify-content: center;
  22291. flex-direction: column;
  22292. position: relative;
  22293. color: #6c6c6c;
  22294. }
  22295. .progressBox >>> .el-progress-bar__outer {
  22296. background-color: #d1dfff !important;
  22297. }
  22298. .progressBox .lbox {
  22299. height: 50px;
  22300. font-size: 19px;
  22301. display: flex;
  22302. align-items: center;
  22303. color: #747474;
  22304. }
  22305. .progressBox .lbox img {
  22306. width: 40px;
  22307. margin-right: 20px;
  22308. }
  22309. .closeCss {
  22310. position: absolute;
  22311. top: 8px;
  22312. right: 8px;
  22313. cursor: pointer;
  22314. width: 20px;
  22315. height: 20px;
  22316. }
  22317. .closeCss > img {
  22318. width: 100%;
  22319. height: 100%;
  22320. }
  22321. .uploadVedio {
  22322. display: flex;
  22323. flex-direction: column;
  22324. flex-wrap: nowrap;
  22325. justify-content: center;
  22326. align-items: center;
  22327. margin: 0 15px 10px 0;
  22328. }
  22329. .uploadVedio > img {
  22330. width: 30px;
  22331. height: 30px;
  22332. }
  22333. .uploadVedio > span {
  22334. white-space: nowrap;
  22335. overflow: hidden;
  22336. text-overflow: ellipsis;
  22337. width: 75px;
  22338. margin-top: 7px;
  22339. }
  22340. .picName {
  22341. white-space: nowrap;
  22342. overflow: hidden;
  22343. text-overflow: ellipsis;
  22344. width: 75px;
  22345. margin-top: 7px;
  22346. }
  22347. .new_top {
  22348. display: flex;
  22349. background: #fff;
  22350. flex-direction: row;
  22351. justify-content: flex-start;
  22352. align-items: center;
  22353. height: 60px;
  22354. position: fixed;
  22355. top: 20px;
  22356. left: 22%;
  22357. width: 77%;
  22358. z-index: 999;
  22359. border-radius: 12px 12px 0 0;
  22360. border-bottom: 1px solid #cad1dc;
  22361. padding: 10px 0;
  22362. }
  22363. .new_topFixed {
  22364. width: 100%;
  22365. height: 40px;
  22366. position: fixed;
  22367. top: 0px;
  22368. display: block;
  22369. background: #f2f2f2;
  22370. z-index: 998;
  22371. }
  22372. .before {
  22373. position: absolute;
  22374. background: #c3dad4;
  22375. width: 6px;
  22376. height: 100%;
  22377. }
  22378. .courseIndex {
  22379. display: flex;
  22380. flex-direction: row;
  22381. align-items: center;
  22382. width: calc(100% - 745px);
  22383. }
  22384. .courseIndex > div:nth-child(1) {
  22385. margin: 0 0 0 10px;
  22386. font-size: 20px;
  22387. min-width: 100px;
  22388. font-weight: bold;
  22389. border-left: 4px solid #3363b9;
  22390. height: 32px;
  22391. text-align: center;
  22392. line-height: 35px;
  22393. }
  22394. .courseIndex > div:nth-child(2) {
  22395. font-size: 20px;
  22396. /* width: 300px; */
  22397. max-width: calc(100% - 105px);
  22398. white-space: nowrap;
  22399. overflow: hidden;
  22400. text-overflow: ellipsis;
  22401. }
  22402. .courseIndex > div:nth-child(3) {
  22403. border-bottom: 1px solid #d7d7d7;
  22404. padding-bottom: 5px;
  22405. background: #3681fc;
  22406. width: 55px;
  22407. min-width: 55px;
  22408. border-radius: 5px;
  22409. color: #fff;
  22410. text-align: center;
  22411. height: 20px;
  22412. line-height: 26px;
  22413. font-size: 14px;
  22414. margin: 0 0 0 10px;
  22415. }
  22416. .course_text {
  22417. padding: 20px 0 0 15px;
  22418. text-indent: 30px;
  22419. width: 80%;
  22420. min-height: 20px;
  22421. }
  22422. .vedioList {
  22423. background: #f2f2f2;
  22424. border: 1px solid #ececec;
  22425. /* width: 38.8%; */
  22426. /* width: 300px; */
  22427. width: 100%;
  22428. height: 445px;
  22429. border-radius: 10px;
  22430. overflow: hidden;
  22431. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22432. }
  22433. .vedioNav {
  22434. margin: 10px 0 0 15px;
  22435. border-bottom: 1px solid #d7d7d7;
  22436. padding-bottom: 5px;
  22437. background: #3681fc;
  22438. width: 55px;
  22439. min-width: 55px;
  22440. border-radius: 5px;
  22441. color: #fff;
  22442. text-align: center;
  22443. height: 20px;
  22444. line-height: 26px;
  22445. font-size: 14px;
  22446. }
  22447. .queTop {
  22448. display: flex;
  22449. padding: 20px 0 20px 30px;
  22450. width: 100%;
  22451. flex-direction: row;
  22452. justify-content: flex-start;
  22453. align-items: center;
  22454. box-sizing: border-box;
  22455. }
  22456. .queTopTitle {
  22457. display: flex;
  22458. flex-direction: row;
  22459. flex-wrap: nowrap;
  22460. align-items: center;
  22461. font-weight: bold;
  22462. font-size: 20px;
  22463. color: rgb(14, 30, 51);
  22464. }
  22465. .queTopTitle::before {
  22466. content: "";
  22467. width: 2px;
  22468. height: 22px;
  22469. background: #3681fc;
  22470. border-radius: 3px;
  22471. display: block;
  22472. margin: 2px 6px 0 0;
  22473. }
  22474. .queTopRight {
  22475. display: flex;
  22476. flex-direction: row;
  22477. flex-wrap: nowrap;
  22478. align-items: center;
  22479. }
  22480. .queTopClose {
  22481. margin-right: 20px;
  22482. cursor: pointer;
  22483. position: relative;
  22484. display: flex;
  22485. }
  22486. .closeImg,
  22487. .openImg {
  22488. width: 25px;
  22489. height: 25px;
  22490. position: absolute;
  22491. left: -20px;
  22492. top: -1px;
  22493. }
  22494. .closeImg > img,
  22495. .openImg > img {
  22496. width: 100%;
  22497. height: 100%;
  22498. }
  22499. .question {
  22500. width: 40px;
  22501. margin-right: 10px;
  22502. margin-top: 7px;
  22503. }
  22504. .queTitle {
  22505. margin-left: 5px;
  22506. font-size: 25px;
  22507. display: flex;
  22508. align-items: center;
  22509. }
  22510. .addEditor {
  22511. width: 100px;
  22512. height: 30px;
  22513. background: #42cda6;
  22514. color: #fff;
  22515. border-radius: 5px;
  22516. text-align: center;
  22517. line-height: 30px;
  22518. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22519. cursor: pointer;
  22520. }
  22521. /* .vedioName {
  22522. cursor: pointer;
  22523. margin: 0px 0px 10px 5px;
  22524. white-space: nowrap;
  22525. overflow: hidden;
  22526. text-overflow: ellipsis;
  22527. width: 100%;
  22528. } */
  22529. .vedioTime {
  22530. width: 35px;
  22531. position: absolute;
  22532. color: #fff;
  22533. bottom: 0px;
  22534. right: 0px;
  22535. text-align: center;
  22536. background: #46411f;
  22537. height: 20px;
  22538. font-size: 14px;
  22539. line-height: 20px;
  22540. }
  22541. .homework {
  22542. width: 200px;
  22543. display: flex;
  22544. flex-direction: column;
  22545. flex-wrap: nowrap;
  22546. align-items: center;
  22547. cursor: pointer;
  22548. }
  22549. .homebox {
  22550. display: flex;
  22551. flex-wrap: wrap;
  22552. flex-direction: row;
  22553. justify-content: flex-start;
  22554. align-items: center;
  22555. padding: 15px 0;
  22556. }
  22557. .isChooseActive {
  22558. color: #3681fc !important;
  22559. font-weight: bold !important;
  22560. }
  22561. .chooseWho {
  22562. display: flex;
  22563. width: 100%;
  22564. flex-direction: row;
  22565. flex-wrap: nowrap;
  22566. justify-content: flex-start;
  22567. padding-bottom: 10px;
  22568. }
  22569. .chooseWho > div {
  22570. cursor: pointer;
  22571. padding-bottom: 10px;
  22572. margin: 0 30px 0 0;
  22573. font-weight: 400;
  22574. color: #0e1e33;
  22575. }
  22576. .addPoint > div > img {
  22577. cursor: pointer;
  22578. width: 85px;
  22579. border-radius: 15px;
  22580. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22581. }
  22582. .addPoint > div {
  22583. display: flex;
  22584. flex-direction: column;
  22585. flex-wrap: nowrap;
  22586. align-items: center;
  22587. }
  22588. .isBorder > div {
  22589. margin: 0 0 10px 0;
  22590. align-items: flex-start !important;
  22591. }
  22592. .noiframeBox {
  22593. display: flex;
  22594. flex-wrap: wrap;
  22595. }
  22596. .iframeBox iframe {
  22597. width: 100%;
  22598. height: 800px;
  22599. border: none;
  22600. margin-bottom: 20px;
  22601. border: 1px solid #ccc;
  22602. }
  22603. .upload_toolBtn {
  22604. background: #3681fc;
  22605. color: #fff;
  22606. width: 110px;
  22607. text-align: center;
  22608. height: 35px;
  22609. line-height: 35px;
  22610. font-size: 14px;
  22611. border-radius: 5px;
  22612. cursor: pointer;
  22613. position: absolute;
  22614. right: 10px;
  22615. bottom: 0;
  22616. }
  22617. .binfo_input,
  22618. .pj {
  22619. font: inherit;
  22620. color: currentColor;
  22621. width: 100%;
  22622. margin: 0;
  22623. padding: 15px 14px;
  22624. display: block;
  22625. min-width: 0;
  22626. outline: none;
  22627. box-sizing: content-box;
  22628. background: none;
  22629. -webkit-tap-highlight-color: transparent;
  22630. border: 1px solid rgba(0, 0, 0, 0.23);
  22631. border-radius: 4px;
  22632. box-sizing: border-box;
  22633. resize: none;
  22634. }
  22635. .binfo_input:focus-visible {
  22636. border: 1px solid rgba(61, 103, 188);
  22637. }
  22638. .dialog_diy >>> .el-dialog__header,
  22639. .dialog_diy1 >>> .el-dialog__header {
  22640. background: #454545 !important;
  22641. padding: 15px 20px;
  22642. }
  22643. .dialog_diy >>> .el-dialog__title,
  22644. .dialog_diy1 >>> .el-dialog__title {
  22645. color: #fff;
  22646. }
  22647. .dialog_diy >>> .el-dialog__headerbtn,
  22648. .dialog_diy1 >>> .el-dialog__headerbtn {
  22649. top: 19px;
  22650. }
  22651. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  22652. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  22653. color: #fff;
  22654. }
  22655. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  22656. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  22657. color: #fff;
  22658. }
  22659. .dialog_diy1 >>> .el-dialog__body {
  22660. padding: 0;
  22661. }
  22662. .dialog_diy >>> .el-dialog__body,
  22663. .dialog_diy >>> .el-dialog__footer,
  22664. .dialog_diy1 >>> .el-dialog__footer {
  22665. background: #fafafa;
  22666. }
  22667. .markScore_diy >>> .el-dialog {
  22668. border-radius:10px;
  22669. }
  22670. .markScore_diy >>> .el-dialog__body{
  22671. padding: 0;
  22672. height: 621px;
  22673. min-height: calc(100% - 60px);
  22674. }
  22675. .markScore_diy >>> .el-dialog__header{
  22676. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  22677. }
  22678. .markScore_diy >>> .markScore_diyTit{
  22679. width: calc(100% - 60px);
  22680. display: flex;
  22681. justify-content: space-between;
  22682. align-items: center;
  22683. }
  22684. .a_addBox {
  22685. padding: 0 0 0 15px;
  22686. }
  22687. .a_add_box {
  22688. padding: 10px;
  22689. background: #fff;
  22690. margin-bottom: 10px;
  22691. border-radius: 5px;
  22692. box-shadow: 0 0 5px 0 #d5d5d5;
  22693. }
  22694. .a_add_head {
  22695. display: flex;
  22696. align-items: flex-start;
  22697. /* justify-content: space-between; */
  22698. flex-direction: column;
  22699. /* flex-direction: row; */
  22700. margin: 10px 0 20px 0;
  22701. font-size: 18px;
  22702. width: 100%;
  22703. }
  22704. .askIndex {
  22705. background: #3681fc;
  22706. border-radius: 50%;
  22707. color: #fff;
  22708. width: 25px;
  22709. height: 25px;
  22710. min-width: 25px;
  22711. min-height: 25px;
  22712. text-align: center;
  22713. line-height: 25px;
  22714. margin-right: 5px;
  22715. }
  22716. .a_add_head .a_add_head_input {
  22717. width: 300px;
  22718. }
  22719. .a_add_head .a_add_head_div {
  22720. display: flex;
  22721. align-items: center;
  22722. justify-content: space-between;
  22723. }
  22724. .a_add_body {
  22725. display: flex;
  22726. align-items: center;
  22727. }
  22728. .a_add_input {
  22729. display: flex;
  22730. align-items: center;
  22731. flex-wrap: wrap;
  22732. width: 100%;
  22733. }
  22734. .a_add_input >>> .el-radio-group,
  22735. .a_add_input >>> .el-checkbox-group {
  22736. width: 100%;
  22737. }
  22738. .a_add_input >>> .el-radio,
  22739. .a_add_input >>> .el-checkbox {
  22740. display: flex;
  22741. flex-direction: row;
  22742. flex-wrap: nowrap;
  22743. align-items: center;
  22744. padding: 15px 0;
  22745. }
  22746. .a_add_input >>> .el-radio:not(:last-child),
  22747. .a_add_input >>> .el-checkbox:not(:last-child) {
  22748. width: 100%;
  22749. border-bottom: 1px solid #efefef;
  22750. }
  22751. .redioStyle >>> .el-radio__label {
  22752. font-size: 18px;
  22753. }
  22754. .redioStyle >>> .el-radio__label > span,
  22755. .redioStyle >>> .el-checkbox__label > span {
  22756. word-break: break-all;
  22757. white-space: normal;
  22758. }
  22759. .redioStyle >>> .el-checkbox__label {
  22760. font-size: 18px;
  22761. }
  22762. .toolHeng2 {
  22763. width: 100%;
  22764. padding-left: 15px;
  22765. box-sizing: border-box;
  22766. }
  22767. .workNav {
  22768. font-size: 20px;
  22769. font-weight: bold;
  22770. color: #0e1e33;
  22771. display: flex;
  22772. flex-direction: row;
  22773. flex-wrap: nowrap;
  22774. align-items: center;
  22775. padding: 15px 0 15px 0;
  22776. }
  22777. .workNav::before {
  22778. content: "";
  22779. width: 2px;
  22780. height: 22px;
  22781. background: #3681fc;
  22782. border-radius: 3px;
  22783. display: block;
  22784. margin: 2px 6px 0 0;
  22785. }
  22786. .toolHeng {
  22787. display: flex;
  22788. flex-direction: row;
  22789. flex-wrap: wrap;
  22790. justify-content: flex-start;
  22791. align-items: center;
  22792. width: 100%;
  22793. }
  22794. .toolHeng > div {
  22795. padding-left: 20px;
  22796. }
  22797. .isWidth {
  22798. width: 20%;
  22799. }
  22800. .textTitle {
  22801. display: flex;
  22802. flex-direction: row;
  22803. flex-wrap: nowrap;
  22804. align-items: center;
  22805. width: 95%;
  22806. }
  22807. .textTitle >>> .el-form-item__label {
  22808. font-size: 22px;
  22809. color: #918f8f;
  22810. width: 100px;
  22811. }
  22812. .textTitle >>> .el-form-item__content {
  22813. width: calc(100% - 100px);
  22814. }
  22815. .textCss >>> .el-dialog {
  22816. width: 800px !important;
  22817. height: 400px;
  22818. background: #fafafa;
  22819. }
  22820. .textCss >>> .el-dialog__body {
  22821. margin: 55px 8% 0 8%;
  22822. padding: 0 !important;
  22823. }
  22824. .textCss >>> .el-dialog__footer {
  22825. padding-top: 38px;
  22826. }
  22827. .toolsCss >>> .el-dialog__body {
  22828. padding: 20px;
  22829. }
  22830. .lineCss >>> .el-dialog__body {
  22831. display: flex;
  22832. flex-direction: row;
  22833. align-items: center;
  22834. justify-content: center;
  22835. }
  22836. .newNav {
  22837. display: flex;
  22838. flex-direction: row;
  22839. align-items: baseline;
  22840. justify-content: flex-start;
  22841. }
  22842. .navListItem {
  22843. width: calc(100% - 20px);
  22844. height: 50px;
  22845. margin: 0px auto 10px;
  22846. display: flex;
  22847. flex-direction: row;
  22848. flex-wrap: nowrap;
  22849. align-items: center;
  22850. justify-content: space-between;
  22851. background: #f0f4fa;
  22852. border-radius: 6px 6px 6px 6px;
  22853. }
  22854. .navText {
  22855. cursor: pointer;
  22856. white-space: nowrap;
  22857. overflow: hidden;
  22858. text-overflow: ellipsis;
  22859. width: 220px;
  22860. padding: 0 10px;
  22861. font-weight: 400;
  22862. color: #0e1e33;
  22863. }
  22864. .downIcon {
  22865. width: 20px;
  22866. min-width: 20px;
  22867. height: 20px;
  22868. margin-right: 15px;
  22869. cursor: pointer;
  22870. }
  22871. .downIcon > img {
  22872. width: 100%;
  22873. height: 100%;
  22874. }
  22875. .noVedio {
  22876. display: flex;
  22877. flex-direction: row;
  22878. justify-content: center;
  22879. align-content: center;
  22880. }
  22881. .noNavText {
  22882. cursor: pointer;
  22883. margin: 0px 0px 10px 5px;
  22884. width: 112px;
  22885. }
  22886. .listNoVedio {
  22887. margin: 0 0 0 30px;
  22888. width: 97%;
  22889. }
  22890. .video-player >>> .video-js {
  22891. height: 100%;
  22892. }
  22893. .hangVedioList {
  22894. width: 90% !important;
  22895. height: 150px !important;
  22896. margin: 20px 0 0 30px;
  22897. }
  22898. .hangVedio {
  22899. width: 100%;
  22900. height: 170px !important;
  22901. align-items: flex-start !important;
  22902. }
  22903. .hangHand {
  22904. height: 150px !important;
  22905. }
  22906. .twoChild {
  22907. width: 95%;
  22908. margin: 10px;
  22909. border-radius: 5px;
  22910. background: #f2f2f2;
  22911. display: flex;
  22912. flex-direction: column;
  22913. flex-wrap: nowrap;
  22914. justify-content: flex-start;
  22915. align-items: flex-start;
  22916. transition: all 0.5s;
  22917. overflow: hidden;
  22918. height: 0;
  22919. background: #e7f3ff;
  22920. }
  22921. .twoChild > div:nth-child(1) {
  22922. margin-top: 5px;
  22923. }
  22924. .navChild {
  22925. width: 100%;
  22926. cursor: pointer;
  22927. margin-bottom: 10px;
  22928. position: relative;
  22929. }
  22930. .navChild img {
  22931. position: absolute;
  22932. right: 11px;
  22933. width: 15px;
  22934. top: 50%;
  22935. transform: translateY(-50%);
  22936. }
  22937. .navActive,
  22938. .toolActive {
  22939. height: auto !important;
  22940. overflow: auto !important;
  22941. /* // padding-bottom: 16px; */
  22942. }
  22943. .toolActive {
  22944. padding: 0;
  22945. }
  22946. .navTask {
  22947. display: flex;
  22948. flex-direction: row;
  22949. flex-wrap: nowrap;
  22950. align-items: center;
  22951. align-content: flex-start;
  22952. height: 40px;
  22953. justify-content: flex-start;
  22954. padding: 0 10px;
  22955. width: 100%;
  22956. box-sizing: border-box;
  22957. }
  22958. .navTaskname {
  22959. white-space: nowrap;
  22960. text-overflow: ellipsis;
  22961. overflow: hidden;
  22962. word-break: break-all;
  22963. padding-left: 5px;
  22964. }
  22965. .openTaskActive {
  22966. /* background-color: #e0eafb !important;
  22967. color: #0061ff; */
  22968. color:#fff;
  22969. background: rgb(55, 129, 252) !important;
  22970. }
  22971. .iframeName {
  22972. margin: 5px 0;
  22973. border-left: 4px solid #41c4a4;
  22974. padding-left: 4px;
  22975. }
  22976. .toolTitle {
  22977. margin: 0px 0px 20px;
  22978. font-size: 20px;
  22979. font-weight: 500;
  22980. border-left: 4px solid #41c4a4;
  22981. padding-left: 4px;
  22982. }
  22983. .cru_selectBox {
  22984. overflow: auto;
  22985. width: 95%;
  22986. margin: 17px auto 0;
  22987. height: calc(100% - 40px - 21px - 20px - 17px);
  22988. background: #fff;
  22989. border-radius: 8px;
  22990. }
  22991. .cru_selectBox::-webkit-scrollbar,
  22992. .study_top::-webkit-scrollbar,
  22993. .textContent::-webkit-scrollbar {
  22994. /*滚动条整体样式*/
  22995. width: 6px;
  22996. /*高宽分别对应横竖滚动条的尺寸*/
  22997. height: 6px;
  22998. }
  22999. /*定义滚动条轨道 内阴影+圆角*/
  23000. .cru_selectBox::-webkit-scrollbar-track,
  23001. .study_top::-webkit-scrollbar-track,
  23002. .textContent::-webkit-scrollbar {
  23003. border-radius: 10px;
  23004. background-color: #b8bdc9;
  23005. }
  23006. /*定义滑块 内阴影+圆角*/
  23007. .cru_selectBox::-webkit-scrollbar-thumb,
  23008. .study_top::-webkit-scrollbar-thumb,
  23009. .textContent::-webkit-scrollbar-thumb {
  23010. border-radius: 10px;
  23011. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  23012. background-color: #2c5ab3;
  23013. }
  23014. .vedioBox {
  23015. border-radius: 0 0 20px 20px;
  23016. background: #fff;
  23017. overflow: auto;
  23018. }
  23019. .taskBox {
  23020. width: 98%;
  23021. background: #f0f4fa;
  23022. margin: 10px auto;
  23023. padding: 0 10px;
  23024. border-radius: 4px;
  23025. box-sizing: border-box;
  23026. }
  23027. .vedioTaskBox {
  23028. width: 100%;
  23029. display: flex;
  23030. flex-direction: row;
  23031. flex-wrap: nowrap;
  23032. align-items: flex-start;
  23033. position: relative;
  23034. }
  23035. .toolBox {
  23036. margin: 15px 0 0 25px;
  23037. display: flex;
  23038. position: relative;
  23039. padding: 18px 20px;
  23040. border-top-left-radius: 5px;
  23041. border-top-right-radius: 5px;
  23042. width: 90%;
  23043. }
  23044. .btnAll {
  23045. position: absolute;
  23046. right: 0;
  23047. display: flex;
  23048. flex-direction: row;
  23049. flex-wrap: nowrap;
  23050. align-items: center;
  23051. }
  23052. .btnLeft,
  23053. .btnRight {
  23054. display: flex;
  23055. flex-direction: row;
  23056. flex-wrap: nowrap;
  23057. align-items: center;
  23058. padding: 5px 0;
  23059. }
  23060. .btnLeft {
  23061. border-right: 1px solid #cad1dc;
  23062. }
  23063. .btnLeft > .custom-tooltip {
  23064. background: #3681fc;
  23065. color: #fff;
  23066. }
  23067. .last:hover {
  23068. background: #3383fa !important;
  23069. color: #fff;
  23070. border: 1px solid #3383fa !important;
  23071. }
  23072. .last,
  23073. .returnBtn1 {
  23074. width: 90px;
  23075. height: 36px;
  23076. background: #ffffff;
  23077. border-radius: 4px;
  23078. border: 1px solid #0061ff;
  23079. color: #0061ff;
  23080. cursor: pointer;
  23081. display: flex;
  23082. flex-direction: row;
  23083. flex-wrap: nowrap;
  23084. align-items: center;
  23085. justify-content: center;
  23086. margin-left: 12px;
  23087. }
  23088. .returnBtn1 {
  23089. background: #f0f4fa;
  23090. border-radius: 4px;
  23091. border: 1px solid #cad1dc;
  23092. margin: 0 12px;
  23093. }
  23094. .lastImg {
  23095. min-width: 15px;
  23096. width: 15px;
  23097. height: 15px;
  23098. display: flex;
  23099. }
  23100. .lastText {
  23101. padding: 0 5px 0 5px;
  23102. box-sizing: border-box;
  23103. font-size: 14px;
  23104. }
  23105. .lastImg > img {
  23106. width: 100%;
  23107. height: 100%;
  23108. }
  23109. /* .vedioTimeBox {
  23110. display: flex;
  23111. flex-direction: row;
  23112. align-items: center;
  23113. flex-wrap: nowrap;
  23114. position: relative;
  23115. } */
  23116. .navBox {
  23117. background: #fff;
  23118. height: calc(100% - 40px);
  23119. overflow-y: auto;
  23120. overflow-x: hidden;
  23121. }
  23122. .worksBox {
  23123. margin: 0 0 10px 25px;
  23124. border-bottom: 1px solid #eeeeee;
  23125. padding: 18px 20px;
  23126. border-radius: 4px;
  23127. width: 90%;
  23128. }
  23129. .worksBTitle {
  23130. font-size: 20px;
  23131. padding-bottom: 15px;
  23132. border-bottom: 1px solid #eeeeee;
  23133. display: flex;
  23134. align-items: center;
  23135. }
  23136. .greenBox {
  23137. width: 5px;
  23138. height: 30px;
  23139. background: #63b6fa;
  23140. margin-right: 5px;
  23141. }
  23142. .worksDetailBox {
  23143. display: flex;
  23144. width: 100%;
  23145. flex-direction: row;
  23146. flex-wrap: wrap;
  23147. align-items: flex-end;
  23148. justify-content: flex-start;
  23149. padding: 15px 5px;
  23150. box-sizing: border-box;
  23151. }
  23152. .works {
  23153. display: flex;
  23154. flex-direction: column;
  23155. flex-wrap: nowrap;
  23156. align-items: flex-start;
  23157. justify-content: flex-start;
  23158. align-content: center;
  23159. max-width: 240px;
  23160. width: calc(100% / 3 - 10px);
  23161. height: auto;
  23162. margin-right: 10px;
  23163. margin-bottom: 10px;
  23164. overflow: hidden;
  23165. height: 140px;
  23166. box-shadow: 0 0 6px 1px #dfdada;
  23167. border-radius: 15px;
  23168. }
  23169. .workImg {
  23170. width: 100%;
  23171. /* height: calc(100% - 40px); */
  23172. height: 105px;
  23173. position: relative;
  23174. }
  23175. .workImg > img {
  23176. width: 100%;
  23177. height: 100%;
  23178. object-fit: contain;
  23179. cursor: pointer;
  23180. }
  23181. .worksName {
  23182. height: 40px;
  23183. line-height: 40px;
  23184. display: flex;
  23185. width: 100%;
  23186. flex-direction: row;
  23187. flex-wrap: nowrap;
  23188. justify-content: space-between;
  23189. align-items: center;
  23190. margin: 0 0 0 10px;
  23191. }
  23192. .worksName > div:nth-child(1) {
  23193. width: 110px;
  23194. white-space: nowrap;
  23195. overflow: hidden;
  23196. text-overflow: ellipsis;
  23197. }
  23198. .worksName > div:nth-child(2) {
  23199. color: #b7b4b5;
  23200. }
  23201. .noWorksS {
  23202. padding: 15px 0;
  23203. display: flex;
  23204. flex-direction: row;
  23205. flex-wrap: wrap;
  23206. align-items: center;
  23207. justify-content: flex-start;
  23208. }
  23209. .noWorksName,
  23210. .isWorksName,
  23211. .isWorksName2 {
  23212. background: #ddebf8;
  23213. color: #000;
  23214. width: 90px;
  23215. height: 25px;
  23216. text-align: center;
  23217. line-height: 25px;
  23218. border-radius: 4px;
  23219. margin: 10px 15px 10px 0;
  23220. white-space: nowrap;
  23221. overflow: hidden;
  23222. padding: 5px;
  23223. text-overflow: ellipsis;
  23224. cursor: pointer;
  23225. border: 1px solid #ddebf8;
  23226. }
  23227. .noWorksName {
  23228. background: #fff;
  23229. color: #0061ff;
  23230. border: 1px solid #0061ff;
  23231. }
  23232. .noWorksName > span{
  23233. max-width: 100%;
  23234. display: block;
  23235. overflow: hidden;
  23236. text-overflow: ellipsis;
  23237. white-space: nowrap;
  23238. }
  23239. .isWorksName2 {
  23240. width: 100px;
  23241. height: 40px;
  23242. line-height: 40px;
  23243. position: relative;
  23244. background: #dae6f9;
  23245. }
  23246. .isWorksName {
  23247. background: #e7ebf1 !important;
  23248. width: 100px;
  23249. height: 40px;
  23250. line-height: 40px;
  23251. position: relative;
  23252. color: #acb4bf;
  23253. border: 1px solid #cad1dc !important;
  23254. }
  23255. .isSelectName,
  23256. .noWorksName:hover {
  23257. background: #3383fa !important;
  23258. color: #fff !important;
  23259. border: 1px solid #3383fa !important;
  23260. }
  23261. .title {
  23262. background: #1e5cc9;
  23263. /* width: 98%; */
  23264. height: 45px;
  23265. color: #fff;
  23266. line-height: 45px;
  23267. padding-left: 20px;
  23268. box-sizing: border-box;
  23269. }
  23270. .textBox {
  23271. font-size: 20px;
  23272. width: 90%;
  23273. display: flex;
  23274. flex-direction: column;
  23275. align-items: center;
  23276. margin: 20px auto 0;
  23277. max-height: calc(100% - 75px);
  23278. overflow: auto;
  23279. }
  23280. .textContent {
  23281. font-size: 18px;
  23282. width: 95%;
  23283. max-width: 95%;
  23284. }
  23285. .answerBg {
  23286. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  23287. background-size: 100% 100%;
  23288. width: 100%;
  23289. height: 100%;
  23290. color: #fff;
  23291. text-align: center;
  23292. display: flex;
  23293. flex-direction: column;
  23294. flex-wrap: nowrap;
  23295. align-items: center;
  23296. position: relative;
  23297. justify-content: center;
  23298. }
  23299. .answerBg > div:nth-child(1) {
  23300. /* font-size: 22px;
  23301. padding: 25px 0 10px; */
  23302. }
  23303. .answerContent {
  23304. width: 215px;
  23305. max-height: 60px;
  23306. word-break: break-all;
  23307. text-align: center;
  23308. /* white-space: nowrap; */
  23309. overflow: hidden;
  23310. text-overflow: ellipsis;
  23311. /* padding: 23px 0 0; */
  23312. -webkit-line-clamp: 3;
  23313. -webkit-box-orient: vertical;
  23314. display: -webkit-box;
  23315. font-size: 15px;
  23316. cursor: pointer;
  23317. }
  23318. .elist_input_box {
  23319. display: flex;
  23320. align-items: flex-start;
  23321. flex-wrap: nowrap;
  23322. padding: 10px 0 15px 30px;
  23323. flex-direction: column;
  23324. }
  23325. .elist_input {
  23326. /* width: 40%; */
  23327. width: 45%;
  23328. padding: 20px;
  23329. /* margin: 20px; */
  23330. box-sizing: border-box;
  23331. }
  23332. .elist_input .elist_input_box input {
  23333. font: inherit;
  23334. color: currentColor;
  23335. width: 200px;
  23336. padding: 8px 14px;
  23337. display: block;
  23338. min-width: 0;
  23339. outline: none;
  23340. border: 1px solid rgba(0, 0, 0, 0.23);
  23341. border-radius: 4px;
  23342. box-sizing: border-box;
  23343. background: #fff;
  23344. margin: 0 20px 0 0;
  23345. }
  23346. .elist_input .elist_input_box span {
  23347. height: 36px;
  23348. line-height: 36px;
  23349. color: rgb(82, 82, 82);
  23350. }
  23351. .elist_input .elist_input_box .remove {
  23352. height: 20px;
  23353. width: 20px;
  23354. background-size: 100% 100%;
  23355. background-position: unset;
  23356. margin-left: 5px;
  23357. }
  23358. .elist_input_box >>> .el-rate {
  23359. display: flex;
  23360. height: 36px;
  23361. align-items: center;
  23362. }
  23363. .elist_input_box .elist_inptu_text {
  23364. min-height: 50px;
  23365. /* width: 500px;
  23366. max-height: 150px; */
  23367. width: 100%;
  23368. line-height: 50px;
  23369. color: rgb(82, 82, 82);
  23370. overflow: auto;
  23371. text-indent: 5px;
  23372. background: #f7f6f9;
  23373. border-radius: 10px;
  23374. }
  23375. .elist_input_box .elist_inptu_text input {
  23376. width: 500px;
  23377. }
  23378. .elist_input_box >>> .el-rate__icon {
  23379. font-size: 24px;
  23380. }
  23381. .isClick {
  23382. background: #4d9def;
  23383. }
  23384. .bzBox {
  23385. display: flex;
  23386. flex-direction: row;
  23387. align-items: center;
  23388. }
  23389. .bzBox .yCss {
  23390. width: 7px;
  23391. height: 7px;
  23392. background: #fff;
  23393. margin: 0 16px 0 6px;
  23394. border-radius: 50%;
  23395. border: 5px solid #3681fc;
  23396. z-index: 99;
  23397. }
  23398. .bzBox > div:nth-child(2) {
  23399. font-size: 18px;
  23400. font-weight: bold;
  23401. color: #0e1e33;
  23402. }
  23403. .navTitile {
  23404. padding: 0 0px 0 15px;
  23405. font-size: 16px;
  23406. font-weight: bold;
  23407. color: #0e1e33;
  23408. height: 40px;
  23409. line-height: 40px;
  23410. }
  23411. .isTypeOne {
  23412. width: 240px;
  23413. height: 170px;
  23414. /* border: 1px solid #f8f8f8; */
  23415. border-radius: 10px;
  23416. box-shadow: 0 0 6px 1px #dfdada;
  23417. }
  23418. .e_add_top {
  23419. display: flex;
  23420. justify-content: space-between;
  23421. padding: 10px 20px;
  23422. border-radius: 3px;
  23423. background: #fff;
  23424. }
  23425. .e_add_title2 {
  23426. display: flex;
  23427. align-items: center;
  23428. }
  23429. .e_add_title2 span {
  23430. width: 40px;
  23431. }
  23432. .e_add_title {
  23433. display: flex;
  23434. align-items: center;
  23435. color: #b8b8b8;
  23436. font-size: 18px;
  23437. position: relative;
  23438. height: 40px;
  23439. }
  23440. .e_add_title span {
  23441. margin-right: 10px;
  23442. }
  23443. .e_add_title .el_input {
  23444. width: 300px;
  23445. }
  23446. .e_add_title >>> .el-input__inner {
  23447. width: 400px;
  23448. }
  23449. .e_add_btn {
  23450. }
  23451. .e_add_content {
  23452. display: flex;
  23453. width: 100%;
  23454. max-width: 650px;
  23455. height: 550px;
  23456. }
  23457. .e_add_list {
  23458. background: #fff;
  23459. height: 500px;
  23460. width: 210px;
  23461. position: relative;
  23462. margin: 15px 5px 0 0;
  23463. flex-shrink: 0;
  23464. display: flex;
  23465. flex-direction: column;
  23466. }
  23467. .e_add_list_title {
  23468. font-size: 20px;
  23469. width: 100%;
  23470. box-sizing: border-box;
  23471. padding: 15px 40px;
  23472. text-align: center;
  23473. border-bottom: 1px solid #eaeaea;
  23474. position: relative;
  23475. display: flex;
  23476. align-items: center;
  23477. justify-content: center;
  23478. height: 57px;
  23479. background: #f6f6f6;
  23480. }
  23481. .e_add_list_title span {
  23482. overflow: hidden;
  23483. white-space: nowrap;
  23484. text-overflow: ellipsis;
  23485. }
  23486. .e_add_list_title img {
  23487. position: absolute;
  23488. right: 15px;
  23489. width: 25px;
  23490. cursor: pointer;
  23491. top: 50%;
  23492. transform: translateY(-50%);
  23493. }
  23494. .e_add_list_body {
  23495. height: calc(100% - 187px);
  23496. overflow: auto;
  23497. }
  23498. .e_add_list_child {
  23499. width: 100%;
  23500. display: flex;
  23501. align-items: center;
  23502. justify-content: center;
  23503. position: relative;
  23504. box-sizing: border-box;
  23505. padding: 15px 40px;
  23506. text-align: center;
  23507. }
  23508. .e_add_list_child span {
  23509. overflow: hidden;
  23510. white-space: nowrap;
  23511. text-overflow: ellipsis;
  23512. cursor: pointer;
  23513. }
  23514. .e_add_list_child img {
  23515. position: absolute;
  23516. right: 10px;
  23517. width: 21px;
  23518. cursor: pointer;
  23519. top: 50%;
  23520. transform: translateY(-50%);
  23521. }
  23522. .e_add_list_child + .e_add_list_child {
  23523. border-top: 1px solid #eaeaea;
  23524. }
  23525. .e_add_list_child .active {
  23526. color: #409eff;
  23527. }
  23528. .e_add_list_btn {
  23529. position: absolute;
  23530. bottom: 0;
  23531. height: 50px;
  23532. background: rgb(120, 120, 254);
  23533. width: 100%;
  23534. color: #fff;
  23535. font-size: 16px;
  23536. text-align: center;
  23537. line-height: 50px;
  23538. cursor: pointer;
  23539. }
  23540. .e_add_list_detail {
  23541. position: absolute;
  23542. bottom: 0;
  23543. height: 130px;
  23544. background: rgb(120, 120, 254);
  23545. width: 100%;
  23546. color: #fff;
  23547. font-size: 16px;
  23548. display: flex;
  23549. align-items: center;
  23550. justify-content: center;
  23551. }
  23552. .e_add_list_detail textarea {
  23553. height: 90%;
  23554. width: 95%;
  23555. border: none;
  23556. resize: none;
  23557. outline: none;
  23558. padding: 5px;
  23559. box-sizing: border-box;
  23560. }
  23561. .e_add_list_pbox {
  23562. width: 100%;
  23563. max-width: 650px;
  23564. /* height: 600px; */
  23565. }
  23566. .e_add_list_pbox_title {
  23567. height: 50px;
  23568. background: #fff;
  23569. display: flex;
  23570. align-items: center;
  23571. width: 100%;
  23572. box-sizing: border-box;
  23573. padding: 0 20px;
  23574. }
  23575. .type_title {
  23576. font-size: 18px;
  23577. font-weight: 700;
  23578. }
  23579. .type_content {
  23580. font-size: 16px;
  23581. /* margin-left: 30px; */
  23582. }
  23583. .type_content span + span {
  23584. margin-left: 20px;
  23585. }
  23586. .type_content span {
  23587. cursor: pointer;
  23588. padding-bottom: 5px;
  23589. box-sizing: border-box;
  23590. }
  23591. .type_content .active {
  23592. color: #409eff;
  23593. border-bottom: 2px solid #409eff;
  23594. }
  23595. .e_add_list_pbox_content {
  23596. height: calc(100% - 50px);
  23597. display: flex;
  23598. align-items: center;
  23599. width: 100%;
  23600. background: #fff;
  23601. }
  23602. .evaCss {
  23603. display: flex;
  23604. flex-direction: row;
  23605. flex-wrap: nowrap;
  23606. align-items: flex-start;
  23607. padding: 0 0 20px;
  23608. }
  23609. .evaCss >>> .cell {
  23610. position: relative;
  23611. overflow: visible;
  23612. }
  23613. .evaCss >>>.el-table__body-wrapper{
  23614. overflow: visible;
  23615. }
  23616. .evaCss >>> .el-table{
  23617. overflow: visible;
  23618. }
  23619. .blueRootCss{
  23620. position: absolute;
  23621. top:50%;
  23622. left: 0;
  23623. transform: translate(-20px,-50%);
  23624. }
  23625. .cru_line {
  23626. position: absolute;
  23627. bottom: 0px;
  23628. transition: all 0.5s;
  23629. left: 0px;
  23630. width: 125px;
  23631. margin-left: -25px;
  23632. }
  23633. .isNoMessage {
  23634. width: 20%;
  23635. margin: 25% auto 0;
  23636. }
  23637. .isNoMessage > img {
  23638. width: 100%;
  23639. height: 100%;
  23640. }
  23641. .fullStyle >>> .el-dialog__body {
  23642. height: 100% !important;
  23643. }
  23644. .fullStyle >>> .el-dialog,
  23645. .fullStyle {
  23646. width: 100% !important;
  23647. max-width: 100% !important;
  23648. height: 100% !important;
  23649. margin: 0 !important;
  23650. }
  23651. .full_diy >>> .el-dialog {
  23652. margin: 0 !important;
  23653. height: 100%;
  23654. padding: 4px;
  23655. }
  23656. .full_diy >>> .el-dialog__body {
  23657. height: calc(100% - 100px);
  23658. }
  23659. .full_diy2 >>> .el-dialog__body {
  23660. height: calc(100% - 50px);
  23661. padding: 0;
  23662. }
  23663. .switchCss {
  23664. /* width: 100%; */
  23665. display: flex;
  23666. flex-direction: row;
  23667. flex-wrap: nowrap;
  23668. align-items: center;
  23669. /* justify-content: center; */
  23670. }
  23671. .isClickNav {
  23672. /* color: #499eef; */
  23673. color: #000;
  23674. }
  23675. .commentImg {
  23676. width: 25px;
  23677. height: 25px;
  23678. cursor: pointer;
  23679. }
  23680. .commentImg > img {
  23681. width: 100%;
  23682. height: 100%;
  23683. }
  23684. .comment {
  23685. background: #f9f9f9;
  23686. border-radius: 0 0 4px 4px;
  23687. display: flex;
  23688. flex-direction: row;
  23689. flex-wrap: nowrap;
  23690. align-items: center;
  23691. justify-content: flex-end;
  23692. height: 35px;
  23693. }
  23694. .commentList {
  23695. display: flex;
  23696. flex-direction: row;
  23697. flex-wrap: nowrap;
  23698. align-items: center;
  23699. justify-content: center;
  23700. align-content: center;
  23701. /* margin-left: 15px; */
  23702. /* margin-left: 8px; */
  23703. }
  23704. .scoreImg {
  23705. width: 17px;
  23706. height: 17px;
  23707. }
  23708. .studentDetail {
  23709. display: flex;
  23710. flex-direction: row;
  23711. flex-wrap: nowrap;
  23712. /* align-items: center; */
  23713. align-items: flex-start;
  23714. }
  23715. .tx {
  23716. width: 50px;
  23717. }
  23718. .tx > img {
  23719. width: 100%;
  23720. height: 100%;
  23721. }
  23722. .nameAndTime {
  23723. display: flex;
  23724. flex-direction: column;
  23725. flex-wrap: nowrap;
  23726. align-items: flex-start;
  23727. margin-left: 10px;
  23728. }
  23729. .worksAnswer {
  23730. color: #4078dd;
  23731. margin: 10px 0;
  23732. font-size: 16px;
  23733. position: relative;
  23734. }
  23735. .worksAnswer > img {
  23736. width: 500px;
  23737. height: 300px;
  23738. object-fit: contain;
  23739. margin: 0 auto;
  23740. display: block;
  23741. }
  23742. .commentTop {
  23743. border-bottom: 1px solid #eaeaea;
  23744. padding-bottom: 10px;
  23745. }
  23746. .commentBox {
  23747. padding-top: 15px;
  23748. }
  23749. .pl {
  23750. font-size: 18px;
  23751. }
  23752. .plPerson {
  23753. width: 100%;
  23754. }
  23755. .plName {
  23756. display: flex;
  23757. flex-direction: row;
  23758. flex-wrap: nowrap;
  23759. align-items: baseline;
  23760. color: #78787a;
  23761. width: 100%;
  23762. }
  23763. .deleteComment {
  23764. cursor: pointer;
  23765. margin-left: auto;
  23766. color: #237ade;
  23767. }
  23768. .plContent {
  23769. margin-top: 5px;
  23770. }
  23771. .evalCss {
  23772. background: #fff;
  23773. font-size: 18px;
  23774. }
  23775. .nav {
  23776. color: #9d9d9d;
  23777. padding: 5px 0 15px 20px;
  23778. }
  23779. .middleBox {
  23780. padding: 5px 0 15px 20px;
  23781. }
  23782. .pfBox {
  23783. padding-bottom: 30px;
  23784. }
  23785. .nameAndrate {
  23786. display: flex;
  23787. flex-direction: row;
  23788. flex-wrap: nowrap;
  23789. align-items: center;
  23790. padding-bottom: 10px;
  23791. height: 30px;
  23792. line-height: 30px;
  23793. }
  23794. .nameAndrate > div {
  23795. margin-left: 10px;
  23796. color: #000;
  23797. height: 30px;
  23798. }
  23799. .nameAndrate >>> .el-rate__icon {
  23800. font-size: 28px !important;
  23801. }
  23802. .pfBox > div:nth-child(2) {
  23803. background: #f7f6f9;
  23804. width: 400px;
  23805. min-height: 45px;
  23806. border-radius: 10px;
  23807. font-size: 16px;
  23808. display: flex;
  23809. flex-wrap: wrap;
  23810. align-items: center;
  23811. padding: 10px 20px;
  23812. box-sizing: border-box;
  23813. color: #000;
  23814. }
  23815. .bz {
  23816. display: flex;
  23817. flex-direction: row;
  23818. flex-wrap: nowrap;
  23819. align-items: flex-start;
  23820. }
  23821. .bz > div {
  23822. padding: 0 10px;
  23823. }
  23824. .select_box2_title {
  23825. background: #fff;
  23826. border-radius: 5px;
  23827. padding: 15px 10px;
  23828. box-sizing: border-box;
  23829. margin-bottom: 10px;
  23830. display: flex;
  23831. flex-direction: row;
  23832. flex-wrap: nowrap;
  23833. align-items: center;
  23834. }
  23835. .select_box2_title > div:nth-child(2) {
  23836. margin-left: 10px;
  23837. color: #c4c4c4;
  23838. }
  23839. .select_box2_box {
  23840. display: flex;
  23841. height: 500px;
  23842. }
  23843. .select_box2_img {
  23844. width: calc(100% - 310px);
  23845. height: 100%;
  23846. overflow: auto;
  23847. background: #fff;
  23848. border-radius: 5px;
  23849. }
  23850. .select_box2_img img {
  23851. width: 100%;
  23852. }
  23853. .select_box2_answer {
  23854. background: #fff;
  23855. margin-left: 10px;
  23856. border-radius: 5px;
  23857. width: 300px;
  23858. overflow: auto;
  23859. height: 90%;
  23860. display: flex;
  23861. flex-direction: column;
  23862. align-items: flex-start;
  23863. padding-top: 10px;
  23864. box-sizing: border-box;
  23865. position: relative;
  23866. }
  23867. .select_answer_title {
  23868. padding: 0 0 15px 20px;
  23869. color: #c4c4c4;
  23870. }
  23871. .select_box2_answer_box {
  23872. margin: 0 0 10px 20px;
  23873. width: 85%;
  23874. display: flex;
  23875. flex-direction: row;
  23876. flex-wrap: nowrap;
  23877. align-items: center;
  23878. }
  23879. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  23880. color: #000;
  23881. }
  23882. .upAnswerCss {
  23883. position: absolute;
  23884. bottom: 15px;
  23885. right: 15px;
  23886. }
  23887. .upAnswerCss >>> .el-button {
  23888. width: 95px;
  23889. height: 35px;
  23890. line-height: 35px;
  23891. padding: 0;
  23892. }
  23893. .rightWidthCss {
  23894. width: 60%;
  23895. display: flex;
  23896. flex-direction: row;
  23897. align-items: flex-start;
  23898. }
  23899. .rightAnswer {
  23900. display: flex;
  23901. flex-direction: row;
  23902. flex-wrap: nowrap;
  23903. align-items: center;
  23904. color: red;
  23905. margin-bottom: 31px;
  23906. }
  23907. .rightAnswerCss {
  23908. display: flex;
  23909. flex-direction: column;
  23910. flex-wrap: nowrap;
  23911. padding-top: 60px;
  23912. }
  23913. .blueCss {
  23914. color: #767de1;
  23915. margin-left: 10px;
  23916. }
  23917. .redCss {
  23918. color: red;
  23919. }
  23920. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  23921. color: rgb(0 123 255) !important;
  23922. }
  23923. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  23924. color: rgb(0 123 255) !important;
  23925. }
  23926. .zuoyeYulan {
  23927. padding-top: 0;
  23928. font-size: 18px;
  23929. display: flex;
  23930. align-items: flex-end;
  23931. }
  23932. .buttonA {
  23933. margin-left: 10px;
  23934. padding: 0;
  23935. }
  23936. .displayBox {
  23937. margin-bottom: 10px;
  23938. display: block;
  23939. border-bottom: 3px solid #eee;
  23940. display: flex;
  23941. align-items: center;
  23942. }
  23943. .easy_comment {
  23944. width: calc(100% - 90px);
  23945. margin-left: 10px;
  23946. display: flex;
  23947. flex-wrap: wrap;
  23948. }
  23949. .easy_comment > div {
  23950. border: 1px solid #4a4a4a;
  23951. color: #666;
  23952. border-radius: 15px;
  23953. padding: 5px 10px;
  23954. font-size: 16px;
  23955. margin-bottom: 10px;
  23956. margin-right: 5px;
  23957. cursor: pointer;
  23958. }
  23959. .easy_comment div:hover {
  23960. border: 1px solid #f7ba2a;
  23961. color: #c69217;
  23962. }
  23963. .xuan_right_box {
  23964. padding: 10px 0;
  23965. background: #f0f4fa;
  23966. margin: 0 15px 0 25px;
  23967. border-bottom-left-radius: 5px;
  23968. border-bottom-right-radius: 5px;
  23969. width: 91.5%;
  23970. }
  23971. .tool_right_box {
  23972. display: flex;
  23973. align-items: center;
  23974. }
  23975. .tool_right_box + .tool_right_box {
  23976. margin-top: 10px;
  23977. }
  23978. .right_box_xuan {
  23979. border-radius: 5px;
  23980. padding: 5px;
  23981. margin-left: 10px;
  23982. min-width: 85px;
  23983. background: #fff;
  23984. color: #0061ff;
  23985. border: 1px solid #0061ff;
  23986. font-size: 14px;
  23987. }
  23988. .pButton:hover {
  23989. opacity: 1 !important;
  23990. }
  23991. .pButton {
  23992. position: fixed;
  23993. text-align: center;
  23994. cursor: pointer;
  23995. z-index: 999;
  23996. right: 20px;
  23997. top: 110px;
  23998. width: 50px;
  23999. height: 50px;
  24000. display: flex;
  24001. align-items: center;
  24002. justify-content: center;
  24003. border-radius: 5px;
  24004. }
  24005. .pzClass {
  24006. width: calc(100% - 340px);
  24007. }
  24008. .newDialogCss {
  24009. /* position: fixed;
  24010. right: 5%;
  24011. top: 50%;
  24012. width: 340px;
  24013. transform: translateY(-50%);
  24014. height: 60%;
  24015. box-shadow: 0px 0 8px 0px #555555;
  24016. border-radius: 15px;
  24017. z-index: 999; */
  24018. position: fixed;
  24019. right: 20px;
  24020. top: 101px;
  24021. width: 330px;
  24022. height: calc(100% - 80px);
  24023. z-index: 999;
  24024. background: #fff;
  24025. border-top-right-radius: 0px;
  24026. border-bottom-right-radius: 0px;
  24027. overflow: hidden;
  24028. }
  24029. .newDialogCss>.scoreList{
  24030. width:100%;
  24031. height:100%;
  24032. box-sizing:border-box;
  24033. padding:10px 15px;
  24034. overflow:auto;
  24035. padding-bottom:80px;
  24036. }
  24037. .pzTop {
  24038. color: #fff;
  24039. background: #000;
  24040. display: flex;
  24041. flex-direction: row;
  24042. flex-wrap: nowrap;
  24043. align-items: center;
  24044. justify-content: space-between;
  24045. height: 40px;
  24046. border-radius: 15px 15px 0 0;
  24047. user-select: none;
  24048. }
  24049. .pzTop2 .checkbox {
  24050. display: flex;
  24051. align-items: center;
  24052. padding: 5px 10px;
  24053. flex: 0 0 auto;
  24054. font-weight: bold;
  24055. border-bottom: 1px solid #eee;
  24056. justify-content: space-between;
  24057. }
  24058. .checkbox>.cb-tabList{
  24059. display:flex;
  24060. align-items:center;
  24061. }
  24062. .cb-tabList>div{
  24063. margin-right:20px;
  24064. font-weight:400;
  24065. cursor:pointer;
  24066. }
  24067. .cb-tabList>.cb-tabItem{
  24068. color:#1684FC;
  24069. position:relative;
  24070. }
  24071. .cb-tabItem::after{
  24072. content:"";
  24073. width:100%;
  24074. height:2px;
  24075. background:#1684FC;
  24076. position:absolute;
  24077. bottom:-5px;
  24078. left:0
  24079. }
  24080. .pzTop2 .check {
  24081. text-align: center;
  24082. cursor: pointer;
  24083. box-sizing: border-box;
  24084. display: flex;
  24085. }
  24086. .pzTop2 img {
  24087. width: 25px;
  24088. cursor: pointer;
  24089. }
  24090. .pzTop > div:nth-child(1) {
  24091. padding-left: 10px;
  24092. }
  24093. .pzTop > div:nth-child(2) {
  24094. width: 15px;
  24095. height: 15px;
  24096. padding-right: 10px;
  24097. cursor: pointer;
  24098. }
  24099. .pzTop > div:nth-child(2) > img {
  24100. width: 100%;
  24101. height: 100%;
  24102. }
  24103. .pzBox,
  24104. .noPzBox {
  24105. height: calc(100% - 60px);
  24106. /* background: #ededed; */
  24107. background: #fff;
  24108. /* border-radius: 0 0 15px 15px; */
  24109. }
  24110. .noPzBox {
  24111. display: flex;
  24112. flex-direction: column;
  24113. flex-wrap: nowrap;
  24114. justify-content: center;
  24115. align-items: center;
  24116. }
  24117. .pzList {
  24118. background: #f7f7f7;
  24119. width: 90%;
  24120. margin: 0 auto 15px;
  24121. border-radius: 5px;
  24122. }
  24123. .pzNavTop {
  24124. display: flex;
  24125. flex-direction: row;
  24126. flex-wrap: nowrap;
  24127. padding: 10px 10px 0 10px;
  24128. align-items: center;
  24129. }
  24130. .pzDelete {
  24131. cursor: pointer;
  24132. margin-left: auto;
  24133. font-size: 14px;
  24134. color: #afafaf;
  24135. }
  24136. .pzNavTop > div:nth-child(1) {
  24137. background: #3760af;
  24138. width: 35px;
  24139. height: 35px;
  24140. color: #fff;
  24141. text-align: center;
  24142. line-height: 35px;
  24143. border-radius: 50%;
  24144. font-size: 14px;
  24145. }
  24146. .pzNavTop > div:nth-child(2) {
  24147. font-size: 18px;
  24148. color: #959595;
  24149. margin-left: 5px;
  24150. }
  24151. .pzContent {
  24152. padding: 10px;
  24153. word-break: break-word;
  24154. }
  24155. .pzContent audio {
  24156. width: 100%;
  24157. }
  24158. .pzContent audio::-webkit-media-controls-panel {
  24159. background: #fff;
  24160. }
  24161. .pzContent >>> img {
  24162. max-width: 100%;
  24163. }
  24164. .pzListBox {
  24165. padding-top: 15px;
  24166. height: calc(100% - 110px);
  24167. overflow: auto;
  24168. }
  24169. .addPzButton {
  24170. position: relative;
  24171. margin-top: 3px;
  24172. width: 100%;
  24173. }
  24174. .addPzButton .img1 {
  24175. position: absolute;
  24176. top: 50%;
  24177. right: 25px;
  24178. transform: translateY(-50%);
  24179. height: 100%;
  24180. display: flex;
  24181. align-items: center;
  24182. }
  24183. .addPzButton .img1 div {
  24184. display: flex;
  24185. }
  24186. .addPzButton .img1 div img {
  24187. width: 28px;
  24188. margin-left: 10px;
  24189. cursor: pointer;
  24190. }
  24191. .addPzButton .img1 div span {
  24192. font-size: 14px;
  24193. margin: 4px 0 0 3px;
  24194. color: #afafaf;
  24195. }
  24196. .addPz {
  24197. background: #4b79ce;
  24198. width: 100px;
  24199. color: #fff;
  24200. font-size: 12px;
  24201. height: 30px;
  24202. margin: 0 auto;
  24203. text-align: center;
  24204. line-height: 30px;
  24205. border-radius: 10px;
  24206. cursor: pointer;
  24207. }
  24208. .addDialogCss {
  24209. position: fixed;
  24210. width: 600px;
  24211. height: 70%;
  24212. min-height: 450px;
  24213. box-shadow: 0px 0 8px 0px #555555;
  24214. border-radius: 15px;
  24215. z-index: 999;
  24216. left: 50%;
  24217. top: 50%;
  24218. margin: -18% 0 0 -300px;
  24219. }
  24220. .teacherPz {
  24221. display: flex;
  24222. flex-direction: row;
  24223. align-items: center;
  24224. flex-wrap: nowrap;
  24225. }
  24226. .teacherPzImg {
  24227. width: 30px;
  24228. height: 30px;
  24229. }
  24230. .teacherPzImg > img {
  24231. width: 100%;
  24232. height: 100%;
  24233. }
  24234. .addPzBox {
  24235. height: calc(100% - 40px);
  24236. background: #ededed;
  24237. border-bottom-left-radius: 15px;
  24238. border-bottom-right-radius: 15px;
  24239. }
  24240. .pzAudioClass {
  24241. margin: 15px 14px;
  24242. background: #fff;
  24243. height: 100%;
  24244. display: flex;
  24245. justify-content: center;
  24246. align-items: center;
  24247. }
  24248. .pzConText {
  24249. width: 95%;
  24250. height: 100%;
  24251. margin: 10px auto 0;
  24252. border: none;
  24253. background: #fff;
  24254. border-radius: 0px;
  24255. }
  24256. .pzConText >>> .text {
  24257. height: calc(100% - 82px);
  24258. }
  24259. .addTextCss {
  24260. background: #4b79ce;
  24261. width: 80px;
  24262. height: 30px;
  24263. text-align: center;
  24264. color: #fff;
  24265. line-height: 30px;
  24266. border-radius: 10px;
  24267. margin: 10px auto 0;
  24268. cursor: pointer;
  24269. }
  24270. .pzConText:focus-visible {
  24271. border: none !important;
  24272. }
  24273. .maxWidth {
  24274. width: 1000px;
  24275. }
  24276. .noPz {
  24277. width: 150px;
  24278. margin: 0 auto 20%;
  24279. }
  24280. .noPz > img {
  24281. width: 100%;
  24282. height: 100%;
  24283. }
  24284. .timeAndReply {
  24285. display: flex;
  24286. flex-direction: row;
  24287. flex-wrap: nowrap;
  24288. justify-content: space-between;
  24289. align-items: center;
  24290. font-size: 14px;
  24291. box-sizing: border-box;
  24292. padding: 0 10px 10px 0px;
  24293. }
  24294. .timeAndReply .time {
  24295. color: #bfbfbf;
  24296. padding: 0 0 0 10px;
  24297. box-sizing: border-box;
  24298. }
  24299. .timeAndReply > div:last-child {
  24300. cursor: pointer;
  24301. color: #777;
  24302. }
  24303. /* table 样式 */
  24304. .cont >>> table {
  24305. border-top: 1px solid #ccc;
  24306. border-left: 1px solid #ccc;
  24307. }
  24308. .cont >>> table td,
  24309. .cont >>> table th {
  24310. border-bottom: 1px solid #ccc;
  24311. border-right: 1px solid #ccc;
  24312. /* padding: 20px 5px; */
  24313. padding: 5px 10px;
  24314. max-width: 0px;
  24315. height: 30px;
  24316. vertical-align: baseline;
  24317. box-sizing: border-box;
  24318. }
  24319. .cont >>> table th {
  24320. border-bottom: 2px solid #ccc;
  24321. text-align: center;
  24322. }
  24323. /* blockquote 样式 */
  24324. .cont >>> blockquote {
  24325. display: block;
  24326. border-left: 8px solid #d0e5f2;
  24327. padding: 5px 10px;
  24328. margin: 10px 0;
  24329. line-height: 1.4;
  24330. font-size: 100%;
  24331. background-color: #f1f1f1;
  24332. }
  24333. /* code 样式 */
  24334. .cont >>> code {
  24335. display: inline-block;
  24336. /* *display: inline; */
  24337. zoom: 1;
  24338. background-color: #f1f1f1;
  24339. border-radius: 3px;
  24340. padding: 3px 5px;
  24341. margin: 0 3px;
  24342. }
  24343. .cont >>> pre code {
  24344. display: block;
  24345. }
  24346. /* ul ol 样式 */
  24347. .cont >>> ul,
  24348. ol {
  24349. margin: 10px 0 10px 20px;
  24350. }
  24351. .addPzCheck {
  24352. display: flex;
  24353. flex-direction: row;
  24354. flex-wrap: nowrap;
  24355. padding: 10px 15px 0;
  24356. }
  24357. .addPzCheck span {
  24358. cursor: pointer;
  24359. padding-bottom: 5px;
  24360. font-weight: bold;
  24361. }
  24362. .addPzCheck span + span {
  24363. margin-left: 10px;
  24364. }
  24365. .addPzCheck .isChooseActive {
  24366. color: #3e88f4;
  24367. border-bottom: 2px solid #2f80f3;
  24368. }
  24369. /* code 样式 */
  24370. .cont {
  24371. /* -webkit-user-modify: read-write; */
  24372. overflow-wrap: break-word;
  24373. -webkit-line-break: after-white-space;
  24374. word-break: break-word;
  24375. white-space: pre-line;
  24376. }
  24377. .scoreBox,
  24378. .scoreDetailBox {
  24379. display: flex;
  24380. align-items: center;
  24381. justify-content: flex-start;
  24382. margin-top: 20px;
  24383. font-size: 18px;
  24384. width: 100%;
  24385. }
  24386. .scoreBox .t,
  24387. .scoreDetailBox .t {
  24388. margin-right: 10px;
  24389. width: 100px;
  24390. text-align: right;
  24391. }
  24392. .scoreDetailBox {
  24393. align-items: flex-start;
  24394. }
  24395. .scoreDetailBox >>> .el-textarea {
  24396. width: calc(100% - 200px);
  24397. }
  24398. .scoreBox >>> .el-input {
  24399. width: 130px;
  24400. font-size: 38px;
  24401. }
  24402. .scoreBox >>> .el-input__inner {
  24403. height: 60px;
  24404. }
  24405. .answerScore {
  24406. position: absolute;
  24407. top: 10px;
  24408. right: 10px;
  24409. background: #0000008f;
  24410. border-radius: 5px;
  24411. padding: 3px 5px;
  24412. font-size: 14px;
  24413. color: #fff;
  24414. cursor: pointer;
  24415. }
  24416. .open_box .switch_box {
  24417. width: 100%;
  24418. margin: 0 auto;
  24419. display: flex;
  24420. justify-content: space-between;
  24421. }
  24422. .open_box .switch_box + .switch_box {
  24423. margin-top: 10px;
  24424. }
  24425. .deleteImg,.deleteImg1 {
  24426. width: 25px !important;
  24427. height: 25px !important;
  24428. cursor: pointer;
  24429. position: absolute;
  24430. top: 10px;
  24431. right: 10px;
  24432. }
  24433. .deleteImg2 {
  24434. width: 23px !important;
  24435. height: 23px !important;
  24436. top: 5px;
  24437. right: 5px;
  24438. }
  24439. .deleteImg1{
  24440. width: 23px !important;
  24441. height: 23px !important;
  24442. top: 5px !important;
  24443. right: 30px !important;
  24444. }
  24445. .rightW {
  24446. right: 40px;
  24447. }
  24448. .drawPBox {
  24449. display: flex;
  24450. flex-direction: column;
  24451. position: relative;
  24452. }
  24453. .drawPBox span {
  24454. font-size: 18px;
  24455. color: #606266;
  24456. padding-bottom: 10px;
  24457. margin: 10px 0;
  24458. border-bottom: 1px solid #eaeaea;
  24459. }
  24460. .drawPBox img {
  24461. width: 500px;
  24462. height: 300px;
  24463. object-fit: contain;
  24464. cursor: pointer;
  24465. margin: 0 auto;
  24466. }
  24467. .sentenBox {
  24468. background: #fff;
  24469. height: 450px;
  24470. overflow: auto;
  24471. background-image: url("../../assets/icon/conSentences/stuBg.png");
  24472. background-position: 102%;
  24473. background-repeat: no-repeat;
  24474. background-size: 60%;
  24475. }
  24476. .addSen {
  24477. background: #409efe;
  24478. width: 90px;
  24479. color: #fff;
  24480. height: 35px;
  24481. text-align: center;
  24482. line-height: 35px;
  24483. border-radius: 5px;
  24484. float: right;
  24485. margin: 10px 20px 0 0;
  24486. cursor: pointer;
  24487. }
  24488. .sentenTop {
  24489. display: flex;
  24490. flex-direction: row;
  24491. flex-wrap: nowrap;
  24492. align-items: center;
  24493. padding: 55px 0 0 20px;
  24494. box-sizing: border-box;
  24495. }
  24496. .sentenTop > div:nth-child(2) {
  24497. width: 300px;
  24498. margin: 0 15px;
  24499. }
  24500. .sentenTop > div:nth-child(3) {
  24501. background: #409efe;
  24502. color: #fff;
  24503. width: 65px;
  24504. height: 35px;
  24505. text-align: center;
  24506. line-height: 35px;
  24507. border-radius: 5px;
  24508. cursor: pointer;
  24509. }
  24510. .cardList,
  24511. .cardList1 {
  24512. padding: 10px 0 10px 0;
  24513. display: flex;
  24514. flex-direction: row;
  24515. flex-wrap: wrap;
  24516. align-items: center;
  24517. box-sizing: border-box;
  24518. border-bottom: 1px solid #f4f4f4;
  24519. width: 98%;
  24520. margin: 0 auto;
  24521. min-width: 60%;
  24522. max-width: 85%;
  24523. }
  24524. .cardList1 {
  24525. padding: 10px 0 10px 10px !important;
  24526. margin: 0 !important;
  24527. }
  24528. .cardBox {
  24529. display: flex;
  24530. flex-direction: row;
  24531. flex-wrap: wrap;
  24532. align-items: center;
  24533. align-content: center;
  24534. }
  24535. .cardBox > div {
  24536. margin-bottom: 10px;
  24537. }
  24538. .isCard,
  24539. .isChooseCard,
  24540. .noCard,
  24541. .isCard1 {
  24542. min-width: 130px;
  24543. width: auto;
  24544. height: 60px;
  24545. text-align: center;
  24546. line-height: 60px;
  24547. font-size: 20px;
  24548. cursor: pointer;
  24549. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  24550. background-size: cover;
  24551. transition: all 2s;
  24552. margin-right: 20px;
  24553. background-size: 100% 100%;
  24554. padding: 0 20px;
  24555. box-sizing: border-box;
  24556. }
  24557. .isCard > div,
  24558. .noCard > div,
  24559. .isCard1 > div {
  24560. white-space: nowrap;
  24561. overflow: hidden;
  24562. text-overflow: ellipsis;
  24563. width: 100%;
  24564. margin: 0 auto;
  24565. }
  24566. .noCard {
  24567. background-image: none;
  24568. }
  24569. .isCard1 {
  24570. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  24571. }
  24572. .isChooseCard {
  24573. background-image: none;
  24574. border: 1px dashed #b9b9b9;
  24575. border-radius: 10px;
  24576. }
  24577. .card {
  24578. width: 130px;
  24579. height: 60px;
  24580. }
  24581. .card > img {
  24582. width: 100%;
  24583. height: 100%;
  24584. }
  24585. .rightCardBox {
  24586. margin: 10px 0 0 10px;
  24587. }
  24588. .rightCardBox > div:nth-child(1) {
  24589. margin-bottom: 10px;
  24590. }
  24591. .cardCss {
  24592. display: flex;
  24593. flex-direction: column;
  24594. flex-wrap: nowrap;
  24595. align-items: center;
  24596. border-bottom: 3px solid #b4c3d3;
  24597. padding: 0 0 5px 0;
  24598. margin-right: 10px;
  24599. }
  24600. .cardCss > div:nth-child(2) {
  24601. background: #5b7b9d;
  24602. color: #fff;
  24603. width: 20px;
  24604. height: 20px;
  24605. border-radius: 50%;
  24606. text-align: center;
  24607. line-height: 20px;
  24608. }
  24609. .isWrong {
  24610. display: flex;
  24611. flex-direction: row;
  24612. flex-wrap: nowrap;
  24613. align-content: center;
  24614. align-items: center;
  24615. }
  24616. .answerRight {
  24617. width: 25%;
  24618. }
  24619. .isTj {
  24620. display: flex;
  24621. flex-direction: row;
  24622. flex-wrap: nowrap;
  24623. align-items: center;
  24624. }
  24625. .isTj > div:nth-child(2) {
  24626. color: #727070;
  24627. margin-left: 10px;
  24628. }
  24629. .isTjImg {
  24630. width: 30px;
  24631. height: 30px;
  24632. }
  24633. .isTjImg > img {
  24634. width: 100%;
  24635. height: 100%;
  24636. }
  24637. .cardAnswerBox {
  24638. font-size: 18px;
  24639. width: 97%;
  24640. border: 5px;
  24641. padding: 0;
  24642. border-radius: 5px;
  24643. margin: 10px auto;
  24644. word-break: break-word;
  24645. }
  24646. .w_name {
  24647. margin-bottom: 10px;
  24648. }
  24649. .w_name span {
  24650. font-size: 16px;
  24651. }
  24652. .w_teachert {
  24653. width: 50px !important;
  24654. position: absolute;
  24655. height: auto !important;
  24656. z-index: 10;
  24657. right: 25px;
  24658. top: -25px;
  24659. }
  24660. .group_workBox {
  24661. }
  24662. .group_workBox + .group_workBox {
  24663. margin-top: 20px;
  24664. }
  24665. .group_box {
  24666. padding-bottom: 20px;
  24667. border-bottom: 2px solid #f0f0f0;
  24668. margin-top: 10px;
  24669. }
  24670. .group_title {
  24671. display: flex;
  24672. align-items: center;
  24673. justify-content: space-between;
  24674. width: 95%;
  24675. }
  24676. .group_name {
  24677. background-image: url(../../assets/icon/groupN.png);
  24678. width: 220px;
  24679. background-size: 100% 100%;
  24680. height: 67px;
  24681. padding: 0 20px 0 43px;
  24682. box-sizing: border-box;
  24683. line-height: 63px;
  24684. color: #fff;
  24685. overflow: hidden;
  24686. white-space: nowrap;
  24687. text-overflow: ellipsis;
  24688. }
  24689. .group_work {
  24690. width: 100%;
  24691. padding: 0 10px;
  24692. box-sizing: border-box;
  24693. display: flex;
  24694. flex-wrap: wrap;
  24695. }
  24696. .g_d_box {
  24697. display: flex;
  24698. flex-flow: wrap;
  24699. justify-content: space-around;
  24700. }
  24701. .g_d_box .isChair {
  24702. background-image: url(../../assets/avatar.png) !important;
  24703. }
  24704. .g_d_group {
  24705. width: 500px;
  24706. margin-bottom: 80px;
  24707. }
  24708. .g_d_group_chair {
  24709. display: flex;
  24710. align-items: center;
  24711. justify-content: center;
  24712. }
  24713. .g_d_group_chair > div + div {
  24714. margin-left: 30px;
  24715. }
  24716. .g_d_group_chair > div,
  24717. .g_d_group_chair2 > div {
  24718. display: flex;
  24719. flex-direction: column;
  24720. align-items: center;
  24721. }
  24722. .g_d_group_chair > div > span:nth-child(1),
  24723. .g_d_group_chair2 > div > span:nth-child(1) {
  24724. background-image: url(../../assets/icon/chair.png);
  24725. width: 50px;
  24726. height: 50px;
  24727. display: block;
  24728. background-size: 100% 100%;
  24729. }
  24730. .g_d_group_tableBox {
  24731. display: flex;
  24732. align-items: center;
  24733. justify-content: center;
  24734. }
  24735. .g_d_group_chair2 {
  24736. display: flex;
  24737. flex-direction: column;
  24738. align-items: center;
  24739. justify-content: center;
  24740. }
  24741. .g_d_group_chair2 > div + div {
  24742. margin-top: 10px;
  24743. }
  24744. .g_d_group_table {
  24745. background-image: url(../../assets/icon/groupBg.png);
  24746. width: 354px;
  24747. height: 196px;
  24748. background-size: 100% 100%;
  24749. display: flex;
  24750. align-items: center;
  24751. justify-content: center;
  24752. flex-direction: column;
  24753. color: #fff;
  24754. }
  24755. .g_d_group_table > div:nth-child(1) {
  24756. font-size: 24px;
  24757. margin-bottom: 5px;
  24758. }
  24759. .g_d_group_table > div:nth-child(2) div {
  24760. cursor: pointer;
  24761. background: #2e77bf;
  24762. padding: 4px 10px;
  24763. border-radius: 5px;
  24764. }
  24765. .groupBox {
  24766. }
  24767. .groupContent + .groupContent {
  24768. margin-top: 30px;
  24769. }
  24770. .groupTitle {
  24771. font-size: 24px;
  24772. color: rgb(80, 80, 80);
  24773. margin-bottom: 20px;
  24774. }
  24775. .groupName {
  24776. display: flex;
  24777. align-items: center;
  24778. }
  24779. .groupn {
  24780. font-size: 15px;
  24781. margin-right: 10px;
  24782. }
  24783. .groupName + .groupName {
  24784. margin-top: 15px;
  24785. }
  24786. .groupBtn {
  24787. margin-left: 10px;
  24788. }
  24789. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  24790. text-align: left;
  24791. }
  24792. .g_d_btnBox {
  24793. display: flex;
  24794. justify-content: flex-end;
  24795. align-items: center;
  24796. margin-bottom: 20px;
  24797. }
  24798. .updateChair {
  24799. position: relative;
  24800. }
  24801. .updateChairBtn {
  24802. position: absolute;
  24803. width: 50px;
  24804. height: 50px;
  24805. overflow: hidden;
  24806. /* display: flex; */
  24807. align-items: center;
  24808. justify-content: center;
  24809. background: #00000087;
  24810. color: #fff;
  24811. border-radius: 50px;
  24812. display: none;
  24813. cursor: pointer;
  24814. }
  24815. .updateChair:hover .updateChairBtn {
  24816. display: flex;
  24817. }
  24818. .group_staic_box {
  24819. display: flex;
  24820. padding: 30px 40px 10px;
  24821. flex-wrap: wrap;
  24822. }
  24823. .group_staic {
  24824. /* width: 50%; */
  24825. margin-bottom: 20px;
  24826. display: flex;
  24827. align-items: center;
  24828. }
  24829. .group_staic span:nth-child(1) {
  24830. width: 150px;
  24831. text-align: right;
  24832. margin-right: 15px;
  24833. }
  24834. .group_staic span:nth-child(2) {
  24835. background: rgb(0 123 255);
  24836. color: #fff;
  24837. border-radius: 5px;
  24838. padding: 5px;
  24839. }
  24840. .codeFileBox {
  24841. height: 300px;
  24842. background: #fff;
  24843. display: flex;
  24844. align-items: center;
  24845. justify-content: center;
  24846. }
  24847. .codeFileBox img {
  24848. width: 200px;
  24849. margin: 0;
  24850. height: auto;
  24851. }
  24852. .codeFileBox div {
  24853. background: rgb(80, 142, 226);
  24854. color: #fff;
  24855. padding: 10px 20px;
  24856. border-radius: 25px;
  24857. cursor: pointer;
  24858. margin-left: 15px;
  24859. }
  24860. .radioBox {
  24861. display: flex;
  24862. flex-direction: column;
  24863. flex-wrap: nowrap;
  24864. align-items: flex-start;
  24865. }
  24866. .radioBox > div {
  24867. margin: 10px 0 0 10px;
  24868. }
  24869. /* .radioBox >>> .el-radio__input,
  24870. .radioBox >>> .el-checkbox__inner {
  24871. margin-left: 10px;
  24872. } */
  24873. .radioBox >>> .el-radio__label,
  24874. .radioBox >>> .el-checkbox__label {
  24875. display: flex;
  24876. align-items: center;
  24877. width: 100%;
  24878. }
  24879. .radioBox >>> .el-radio__label > span {
  24880. width: 100%;
  24881. display: -webkit-box;
  24882. overflow: hidden;
  24883. white-space: normal !important;
  24884. text-overflow: ellipsis;
  24885. word-wrap: break-word;
  24886. }
  24887. .inImg {
  24888. width: 100px;
  24889. cursor: pointer;
  24890. }
  24891. .inImg > img {
  24892. width: 100%;
  24893. height: 100%;
  24894. object-fit: cover;
  24895. }
  24896. .timuImgBox {
  24897. margin: 10px 0;
  24898. display: flex;
  24899. flex-direction: column;
  24900. flex-wrap: wrap;
  24901. align-items: flex-start;
  24902. }
  24903. .timuImg {
  24904. width: 150px;
  24905. margin: 5px 0;
  24906. cursor: pointer;
  24907. }
  24908. .timuImg > img {
  24909. width: 100%;
  24910. height: 100%;
  24911. object-fit: cover;
  24912. }
  24913. .worksTop {
  24914. display: flex;
  24915. flex-direction: row;
  24916. align-items: flex-end;
  24917. }
  24918. .worksTitle{
  24919. display: flex;
  24920. flex-direction: row;
  24921. flex-wrap: nowrap;
  24922. align-items: center;
  24923. }
  24924. .worksTitle::before,.worksTop::before{
  24925. content: '';
  24926. display: block;
  24927. width: 3px;
  24928. height: 20px;
  24929. background: #0061FF;
  24930. border-radius: 3px;
  24931. margin: 0 5px 0 0;
  24932. }
  24933. .corOpen {
  24934. margin: 0 0 0 10px;
  24935. font-size: 14px;
  24936. cursor: pointer;
  24937. color: #505050;
  24938. }
  24939. .corOpen:hover {
  24940. color: #499eef;
  24941. }
  24942. .navCorOpenBox {
  24943. display: flex;
  24944. flex-direction: row;
  24945. align-items: center;
  24946. justify-content: space-between;
  24947. height: 55px;
  24948. background: #ffffff;
  24949. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  24950. border-radius: 8px 8px 0px 0px;
  24951. z-index: 9;
  24952. position: relative;
  24953. }
  24954. .navCorOpen {
  24955. padding-right: 15px;
  24956. cursor: pointer;
  24957. width: 45px;
  24958. display: flex;
  24959. }
  24960. .navCorOpen > img {
  24961. width: 100%;
  24962. height: 100%;
  24963. }
  24964. .mlImg {
  24965. width: 40px !important;
  24966. min-width: 40px;
  24967. cursor: pointer;
  24968. transform: rotate(180deg);
  24969. }
  24970. .mlImg > img {
  24971. width: 100%;
  24972. height: 100%;
  24973. }
  24974. .navLeftCss {
  24975. width: 100% !important;
  24976. left: 0 !important;
  24977. }
  24978. .isContentCss {
  24979. width: 100% !important;
  24980. }
  24981. .isAllWidth {
  24982. width: 100% !important;
  24983. }
  24984. .group_switch {
  24985. margin-right: 10px;
  24986. height: 30px;
  24987. display: flex;
  24988. align-items: center;
  24989. }
  24990. .group_switch > span {
  24991. margin-right: 5px;
  24992. }
  24993. .fileC_box {
  24994. padding-top: 15px;
  24995. }
  24996. .fileC_box > .fileC_title {
  24997. padding: 10px 5px 14px 10px;
  24998. border-top: 1px solid #cad1dc;
  24999. font-size: 14px;
  25000. font-weight: 400;
  25001. color: #cad1dc;
  25002. width: calc(100% - 20px);
  25003. margin: 0 auto;
  25004. box-sizing: border-box;
  25005. }
  25006. .pl_select_box {
  25007. height: 40px;
  25008. line-height: 40px;
  25009. width: 100%;
  25010. cursor: pointer;
  25011. padding: 0 20px;
  25012. box-sizing: border-box;
  25013. border-radius: 5px;
  25014. border: 1px solid #d6d6d6;
  25015. white-space: nowrap;
  25016. overflow: hidden;
  25017. text-overflow: ellipsis;
  25018. background: #fff;
  25019. text-align: left;
  25020. }
  25021. .newButton {
  25022. width: 102px;
  25023. height: 36px;
  25024. background: #e7ebf1;
  25025. border-radius: 4px;
  25026. color: #0e1e33;
  25027. font-weight: 400;
  25028. font-size: 14px;
  25029. border: none;
  25030. float: right;
  25031. margin-left: 10px;
  25032. }
  25033. .el-table >>> .even_row {
  25034. background-color: #f0f4fa;
  25035. }
  25036. .stageBoxCss,
  25037. .stageBoxIsCss {
  25038. display: flex;
  25039. flex-direction: row;
  25040. flex-wrap: nowrap;
  25041. align-items: center;
  25042. height: 50px;
  25043. border-bottom: 1px solid #e2f5fc;
  25044. cursor: pointer;
  25045. width: 100%;
  25046. }
  25047. .stageBoxIsCss {
  25048. background: #0061ff;
  25049. color: #fff;
  25050. border-radius: 8px;
  25051. }
  25052. .closeTri,
  25053. .closeTri1 {
  25054. min-width: 15px;
  25055. width: 15px;
  25056. height: 15px;
  25057. }
  25058. .closeTri1 {
  25059. padding-left: 10px;
  25060. cursor: pointer;
  25061. }
  25062. .closeTri > img,
  25063. .closeTri1 > img {
  25064. width: 100%;
  25065. height: 100%;
  25066. /* transition: all .5s; */
  25067. }
  25068. .noToolBlue {
  25069. min-width: 10px;
  25070. width: 10px;
  25071. height: 10px;
  25072. background: #0061ff;
  25073. border-radius: 50%;
  25074. margin-left: 13px;
  25075. }
  25076. .stageChild,
  25077. .toolChild {
  25078. height: 0;
  25079. overflow: hidden;
  25080. transition: all 0.5s;
  25081. }
  25082. .toolChild {
  25083. /* margin: 0 0 0 17px;
  25084. padding: 0 0 0 20px;
  25085. border-left: 1px solid #d7d7d7; */
  25086. }
  25087. .toolChild > div + div{
  25088. margin-top:5px;
  25089. }
  25090. .gjCss {
  25091. display: flex;
  25092. flex-direction: row;
  25093. flex-wrap: nowrap;
  25094. align-items: center;
  25095. padding: 10px 0 10px 40px;
  25096. box-sizing: border-box;
  25097. font-size: 14px;
  25098. cursor: pointer;
  25099. border-radius:5px;
  25100. }
  25101. .toolChild > div {
  25102. position: relative;
  25103. width: 100%;
  25104. }
  25105. .toolChild > div::before {
  25106. /* content: "";
  25107. width: 15px;
  25108. height: 1px;
  25109. background: #cad1dc;
  25110. position: absolute;
  25111. top: 24px;
  25112. left: -20px;
  25113. display: block; */
  25114. }
  25115. .isGjCss {
  25116. /* color: #0061ff; */
  25117. color:#fff;
  25118. background: rgb(55, 129, 252);
  25119. /* background-color: #e0eafb !important;
  25120. color: #0061ff !important; */
  25121. }
  25122. .navItem {
  25123. background: #ffffff;
  25124. border-radius: 4px;
  25125. width: 100%;
  25126. margin: 10px auto;
  25127. position: relative;
  25128. height: 40px;
  25129. display: flex;
  25130. flex-direction: row;
  25131. flex-wrap: nowrap;
  25132. align-items: center;
  25133. }
  25134. .navItemList {
  25135. display: flex;
  25136. flex-direction: row;
  25137. flex-wrap: nowrap;
  25138. align-items: center;
  25139. padding: 0 13px;
  25140. cursor: pointer;
  25141. width: calc(100% - 60px);
  25142. height: 100%;
  25143. }
  25144. .navItemList > div:first-child {
  25145. min-width: 60px;
  25146. }
  25147. .navItemList > div:last-child {
  25148. width: calc(100% - 80px);
  25149. white-space: nowrap;
  25150. overflow: hidden;
  25151. text-overflow: ellipsis;
  25152. word-break: break-word;
  25153. }
  25154. /* .isItemList > div {
  25155. color: #fff !important;
  25156. } */
  25157. .tool_work_box {
  25158. width: 100%;
  25159. padding: 0 37px 0;
  25160. box-sizing: border-box;
  25161. }
  25162. .tool_box {
  25163. width: 100%;
  25164. padding: 0 0 0 20px;
  25165. }
  25166. .tool_type_box {
  25167. display: flex;
  25168. flex-direction: row;
  25169. align-items: baseline;
  25170. flex-wrap: nowrap;
  25171. justify-content: flex-start;
  25172. position: relative;
  25173. }
  25174. .toolSort {
  25175. display: flex;
  25176. flex-direction: row;
  25177. flex-wrap: wrap;
  25178. justify-content: flex-start;
  25179. align-items: flex-start;
  25180. padding: 0 0 15px 0;
  25181. }
  25182. .toolSort > div {
  25183. margin: 0 10px 0 0;
  25184. width: 135px;
  25185. box-sizing: border-box;
  25186. border: 2px solid transparent;
  25187. }
  25188. .tools {
  25189. width: 100%;
  25190. display: flex;
  25191. flex-direction: column;
  25192. flex-wrap: nowrap;
  25193. align-items: flex-start;
  25194. }
  25195. .whiteBIcon {
  25196. width: fit-content;
  25197. cursor: pointer;
  25198. display: flex;
  25199. flex-direction: column;
  25200. flex-wrap: nowrap;
  25201. align-items: center;
  25202. font-size: 14px;
  25203. }
  25204. .tool:hover {
  25205. border: 2px solid #a5c7ff;
  25206. border-radius: 5px;
  25207. }
  25208. .whiteBIcon > img {
  25209. width: 65px;
  25210. height: 100%;
  25211. }
  25212. .whiteBIcon > img {
  25213. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25214. border-radius: 15px;
  25215. }
  25216. .check {
  25217. /* width: 20px;
  25218. height: 20px; */
  25219. cursor: pointer;
  25220. margin: 10px 0;
  25221. position: absolute;
  25222. right: 2px;
  25223. top: -5px;
  25224. }
  25225. .noChoose,
  25226. .isChoose {
  25227. width: 15px;
  25228. height: 15px;
  25229. border-radius: 50%;
  25230. border: 1px solid #adadad;
  25231. }
  25232. .isChoose {
  25233. border: 4px solid #0363ff !important;
  25234. width: 10px;
  25235. height: 10px;
  25236. }
  25237. .isToolChoose {
  25238. border: 2px solid #5394ff !important;
  25239. border-radius: 5px;
  25240. box-shadow: 0 0 6px 0px #5394ff;
  25241. }
  25242. .checkDiv {
  25243. display: flex;
  25244. align-items: center;
  25245. }
  25246. .checkDiv span {
  25247. margin-left: 5px;
  25248. color: #858585;
  25249. }
  25250. .check img {
  25251. width: 20px;
  25252. height: 20px;
  25253. }
  25254. .lockTaskIcon {
  25255. width: 20px;
  25256. height: 20px;
  25257. position: absolute;
  25258. right: 10px;
  25259. top: 10px;
  25260. }
  25261. .lockTaskIcon > img {
  25262. width: 100%;
  25263. height: 100%;
  25264. }
  25265. .pick_box {
  25266. display: flex;
  25267. align-items: flex-start;
  25268. flex-wrap: wrap;
  25269. }
  25270. .selectBox {
  25271. width: 110px;
  25272. margin-left: 10px;
  25273. margin: 0 10px 0 auto;
  25274. }
  25275. .selectBox >>> .el-input__inner {
  25276. height: 30px;
  25277. line-height: 30px;
  25278. }
  25279. .selectBox >>> .el-input__icon {
  25280. line-height: 30px;
  25281. }
  25282. .sentenceTitle {
  25283. display: flex;
  25284. flex-direction: row;
  25285. flex-wrap: nowrap;
  25286. align-items: center;
  25287. }
  25288. .sentenceTitle::before {
  25289. content: attr(index);
  25290. background: #3681fc;
  25291. border-radius: 50%;
  25292. color: #fff;
  25293. width: 25px;
  25294. height: 25px;
  25295. min-width: 25px;
  25296. min-height: 25px;
  25297. text-align: center;
  25298. line-height: 25px;
  25299. margin-right: 5px;
  25300. }
  25301. .hfBox {
  25302. padding: 10px;
  25303. box-sizing: border-box;
  25304. }
  25305. .whoReplyWho {
  25306. display: flex;
  25307. flex-direction: row;
  25308. flex-wrap: nowrap;
  25309. align-items: baseline;
  25310. justify-content: flex-start;
  25311. }
  25312. .hfBottom {
  25313. display: flex;
  25314. flex-direction: row;
  25315. flex-wrap: nowrap;
  25316. align-items: center;
  25317. justify-content: space-between;
  25318. font-size: 14px;
  25319. }
  25320. .deleteHfItem {
  25321. cursor: pointer;
  25322. width: 20px;
  25323. height: 20px;
  25324. }
  25325. .deleteHfItem > img {
  25326. width: 100%;
  25327. height: 100%;
  25328. }
  25329. .whoReplyWho > .hfImg {
  25330. width: 12px;
  25331. height: 12px;
  25332. margin: 0 5px;
  25333. }
  25334. .whoReplyWho > .hfImg > img {
  25335. width: 100%;
  25336. height: 100%;
  25337. }
  25338. .hfContent {
  25339. padding-top: 10px;
  25340. box-sizing: border-box;
  25341. display: -webkit-box;
  25342. overflow: hidden;
  25343. white-space: normal !important;
  25344. text-overflow: ellipsis;
  25345. word-wrap: break-word;
  25346. -webkit-box-orient: vertical;
  25347. }
  25348. .hfTime {
  25349. text-align: left;
  25350. box-sizing: border-box;
  25351. padding: 10px 0 10px 0px;
  25352. color: #bfbfbf;
  25353. font-size: 14px;
  25354. }
  25355. .btnAllNT {
  25356. position: fixed;
  25357. bottom: 100px;
  25358. right: 40px;
  25359. z-index: 999;
  25360. display: flex;
  25361. flex-direction: row;
  25362. }
  25363. .btnAllNT > img {
  25364. cursor: pointer;
  25365. width: 80px;
  25366. }
  25367. .toolMask {
  25368. position: fixed;
  25369. width: 100%;
  25370. height: 100%;
  25371. background: #3f3c3c;
  25372. opacity: 0.5;
  25373. top: 0;
  25374. left: 0;
  25375. z-index: 999;
  25376. }
  25377. .addToolCss {
  25378. position: fixed;
  25379. z-index: 999;
  25380. background: #fff;
  25381. right: 5%;
  25382. bottom: 18%;
  25383. min-width: 1035px;
  25384. min-height: 300px;
  25385. border-radius: 10px;
  25386. box-shadow: 0 0 8px 1px #b2b2b2;
  25387. }
  25388. .toolTop {
  25389. display: flex;
  25390. flex-direction: row;
  25391. flex-wrap: nowrap;
  25392. justify-content: space-between;
  25393. align-items: center;
  25394. padding: 20px;
  25395. }
  25396. .toolTop > div:nth-child(2) {
  25397. width: 15px;
  25398. height: 15px;
  25399. padding-right: 10px;
  25400. cursor: pointer;
  25401. }
  25402. .toolTop > div:nth-child(2) > img {
  25403. width: 100%;
  25404. height: 100%;
  25405. }
  25406. .fullStyle>>>.el-dialog__body {
  25407. height: calc(100% - 125px) !important;
  25408. box-sizing: border-box;
  25409. padding: 30px 0 !important;
  25410. background: #fff !important;
  25411. }
  25412. .fullStyle>>>.el-dialog {
  25413. width: 100% !important;
  25414. max-width: 100% !important;
  25415. height: 100% !important;
  25416. margin: 0 !important;
  25417. }
  25418. .fullStyle {
  25419. width: 100% !important;
  25420. max-width: 100% !important;
  25421. height: 100% !important;
  25422. margin: 0 auto !important;
  25423. }
  25424. .fullStyle>>>.el-dialog__footer{
  25425. background: #fff !important;
  25426. }
  25427. .engUpBox {
  25428. width: 100%;
  25429. height: 100%;
  25430. }
  25431. .engTitle,
  25432. .engText {
  25433. display: flex;
  25434. flex-direction: row;
  25435. flex-wrap: nowrap;
  25436. align-items: flex-start;
  25437. padding: 0 20px 20px 20px;
  25438. box-sizing: border-box;
  25439. }
  25440. .engTitle > .div:first-child,
  25441. .engText > div:first-child {
  25442. min-width: 75px;
  25443. }
  25444. .correctBox{
  25445. width: 100%;
  25446. display: flex;
  25447. flex-direction: row;
  25448. flex-wrap: nowrap;
  25449. align-items: flex-start;
  25450. }
  25451. .oldBox{
  25452. width: 50%;
  25453. height: 100%;
  25454. display: flex;
  25455. flex-direction: column;
  25456. flex-wrap: nowrap;
  25457. align-items: center;
  25458. border-top: 1px solid #d9d9d9;
  25459. border-left: 1px solid #d9d9d9;
  25460. border-right: 1px solid #d9d9d9;
  25461. }
  25462. .oldBox>div:first-child{
  25463. width: 100%;
  25464. text-align: center;
  25465. background: #d9d9d9;
  25466. height: 35px;
  25467. line-height: 35px;
  25468. font-weight: bold;
  25469. }
  25470. .oldText{
  25471. width: 100%;
  25472. height: calc(100% - 35px);
  25473. overflow: auto;
  25474. margin: 10px 0;
  25475. display: flex;
  25476. flex-direction: column;
  25477. flex-wrap: nowrap;
  25478. align-content: center;
  25479. align-items: center;
  25480. }
  25481. .detailBox{
  25482. width: 50%;
  25483. padding: 10px;
  25484. background: #f6f6f6;
  25485. border-radius: 5px;
  25486. }
  25487. .oldDetail,.oldDetail1{
  25488. padding-bottom: 30px;
  25489. }
  25490. .oldImg{
  25491. width:30px;
  25492. height: 30px;
  25493. }
  25494. .oldImg>img{
  25495. width: 100%;
  25496. height: 100%;
  25497. }
  25498. .allName{
  25499. min-width: 200px;
  25500. white-space: nowrap;
  25501. overflow: hidden;
  25502. text-overflow: ellipsis;
  25503. word-break: break-word;
  25504. cursor: pointer;
  25505. text-align: center;
  25506. border: 1px solid #bcc2cc;
  25507. box-sizing: border-box;
  25508. }
  25509. .engUpTop{
  25510. max-height: 300px;
  25511. overflow: auto;
  25512. }
  25513. .isUpdateToolDetailClass{
  25514. padding: 0 !important;
  25515. }
  25516. .isUpdateToolDetailClass textarea{
  25517. padding:12px;
  25518. font-size: 16px;
  25519. min-height:100%;
  25520. width: 100%;
  25521. box-sizing:border-box;
  25522. outline: none;
  25523. border:none;
  25524. line-height: 30px;
  25525. resize: none;
  25526. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25527. color: #838383;
  25528. }
  25529. .show_taskD {
  25530. min-width: fit-content;
  25531. margin-left: 10px;
  25532. display: flex;
  25533. align-items: center;
  25534. font-size: 14px;
  25535. cursor: pointer;
  25536. color: #717c8d;
  25537. }
  25538. .show_taskD > img {
  25539. width: 15px;
  25540. margin-right: 5px;
  25541. transition: 0.2s all;
  25542. transform: rotate(-90deg);
  25543. }
  25544. .show_taskD.show > img {
  25545. transform: rotate(0deg);
  25546. }
  25547. .correctCss{
  25548. position: absolute;
  25549. bottom: -70px;
  25550. background: #409eff;
  25551. color: #fff;
  25552. }
  25553. .ScoreBtn{
  25554. background: rgba(87, 159, 248, 1);
  25555. display: flex;
  25556. justify-content: center;
  25557. align-items: center;
  25558. color: #fff;
  25559. font-size: 14px;
  25560. padding:8px 12px;
  25561. border-radius: 5px;
  25562. cursor: pointer;
  25563. }
  25564. .max-height-popover .el-popover {
  25565. min-height: 200px;
  25566. max-height: 400px; /* 设置最大高度 */
  25567. overflow: auto; /* 超出部分显示滚动条 */
  25568. }
  25569. .blueRootCss{
  25570. display: block;
  25571. margin-right: 5px;
  25572. }
  25573. </style>